Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
1fb622e
Merge pull request #37 from zlt2000/dev
zlt2000 Mar 8, 2022
4cc1c4a
Merge pull request #39 from zlt2000/dev
zlt2000 May 8, 2022
78641ee
Merge pull request #41 from zlt2000/dev
zlt2000 Jun 10, 2022
d6657de
Merge pull request #43 from zlt2000/dev
zlt2000 Jul 10, 2022
f53ea2c
Merge pull request #47 from zlt2000/dev
zlt2000 Sep 9, 2022
df1ce5a
修复oidc-sso样例工程的数据问题
Sep 17, 2022
f8b5856
Merge pull request #48 from zlt2000/dev
zlt2000 Sep 17, 2022
c16e8b3
beta
gs-ica Oct 3, 2022
81d68e3
beta-0.1
gs-ica Oct 3, 2022
6213606
1.整合后端,调整目录结构 2.编写README
gs-ica Oct 3, 2022
51b4786
Merge remote-tracking branch 'origin/react-dev' into react-dev
gs-ica Oct 6, 2022
e8f3095
1.整合后端,调整目录结构 2.编写README
gs-ica Oct 6, 2022
3839bdf
增加用户、角色的编辑、删除等操作
gs-ica Oct 11, 2022
c8131e9
增加菜单CRUD,token删除,慢sql查询,个人信息更新,所属应用切换事件
qujay Oct 14, 2022
5f7bba4
增加菜单CRUD,token删除,慢sql查询,个人信息更新,所属应用切换事件
qujay Oct 14, 2022
c2fae3a
Merge branch 'react-dev' of https://github.com/zlt2000/microservices-…
qujay Oct 14, 2022
8f84d26
完成前端个人信息头像上传
qujay Oct 16, 2022
32cc8d8
1.新增系统管理-文件中心”列表页面
qujay Oct 18, 2022
1cf4629
新增应用管理新增、修改功能
gs-ica Oct 18, 2022
6669e0c
修改用户搜索的api地址
Oct 19, 2022
de6d75f
增加编译和运行的bat快捷程序
Oct 19, 2022
cedf383
建立新的react-web模块,react工程迁移到这个模块
gs-ica Oct 19, 2022
0f8d86a
移动工程
qujay Oct 19, 2022
e260265
基于dangerouslySetInnerHTML实现用户搜索中的高亮显示
gs-ica Oct 19, 2022
a5fdecc
Merge remote-tracking branch 'github/react-dev' into react-dev
Oct 21, 2022
40c1ecf
1. 去掉zlt-web的父级依赖,为一个独立模块;因为目前这个依赖了“frontend-maven-plugin”打包可能会有问题,导致…
Oct 22, 2022
fa0d663
Merge pull request #52 from zlt2000/react-dev
zlt2000 Oct 23, 2022
c8a9909
Merge branch 'master' into dev
zlt2000 Nov 10, 2022
c29bd6b
Merge pull request #54 from zlt2000/dev
zlt2000 Nov 10, 2022
cf3a286
Bump jackson-databind from 2.12.4 to 2.13.4.1
dependabot[bot] Nov 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<hibernate-validator.version>6.2.0.Final</hibernate-validator.version>
<dubbo.version>2.7.8</dubbo.version>
<curator.version>5.1.0</curator.version>
<jackson-databind.version>2.12.4</jackson-databind.version>
<jackson-databind.version>2.13.4.1</jackson-databind.version>
<commons-configuration.version>1.10</commons-configuration.version>
<zuul.version>2.2.9.RELEASE</zuul.version>
<aws-java-sdk-s3.version>1.12.40</aws-java-sdk-s3.version>
Expand Down
1 change: 1 addition & 0 deletions zlt-demo/sso-demo/oidc-sso/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ alter table oauth_client_details add support_id_token tinyint(1) DEFAULT 1 COMME
alter table oauth_client_details add id_token_validity int(11) DEFAULT 60 COMMENT 'id_token有效期';

update oauth_client_details set additional_information = '{"LOGOUT_NOTIFY_URL_LIST":"http://127.0.0.1:8082/logoutNotify"}'
, web_server_redirect_uri = 'http://127.0.0.1:8082/callback.html'
where client_id = 'webApp';
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public class ApiController {
@Value("${zlt.sso.redirect-uri:}")
private String redirectUri;

@Value("${zlt.sso.scope:}")
private String scope;

@Value("${zlt.sso.access-token-uri:}")
private String accessTokenUri;

Expand Down Expand Up @@ -146,7 +149,7 @@ public Map<String, Object> getAccessToken(String code) {
param.add("code", code);
param.add("grant_type", "authorization_code");
param.add("redirect_uri", redirectUri);
param.add("scope", "all");
param.add("scope", scope);
param.add("nonce", this.genNonce());
HttpEntity<MultiValueMap<String, String>> request = new HttpEntity<>(param, headers);
ResponseEntity<Map> response = restTemplate.postForEntity(accessTokenUri, request , Map.class);
Expand Down
3 changes: 2 additions & 1 deletion zlt-demo/sso-demo/oidc-sso/src/main/resources/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ zlt:
client-secret: webApp
redirect-uri: http://127.0.0.1:8082/callback.html
access-token-uri: http://127.0.0.1:9900/api-uaa/oauth/token
jwt-key-uri: http://127.0.0.1:9900/api-uaa/tokens/key
jwt-key-uri: http://127.0.0.1:9900/api-uaa/tokens/key
scope: app
2 changes: 1 addition & 1 deletion zlt-doc/sql/oauth-center.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ CREATE TABLE `oauth_client_details` (
-- ----------------------------
-- Records of oauth_client_details
-- ----------------------------
INSERT INTO `oauth_client_details` VALUES (1, 'webApp', NULL, '$2a$10$06msMGYRH8nrm4iVnKFNKOoddB8wOwymVhbUzw/d3ZixD7Nq8ot72', 'webApp', 'app', 'authorization_code,password,refresh_token,client_credentials,implicit,password_code,openId,mobile_password', NULL, NULL, 3600, NULL, '{"LOGOUT_NOTIFY_URL_LIST":"http://127.0.0.1:8082/logoutNotify"}', 'true', NULL, NULL, 'pc端', 1, 60);
INSERT INTO `oauth_client_details` VALUES (1, 'webApp', NULL, '$2a$10$06msMGYRH8nrm4iVnKFNKOoddB8wOwymVhbUzw/d3ZixD7Nq8ot72', 'webApp', 'app', 'authorization_code,password,refresh_token,client_credentials,implicit,password_code,openId,mobile_password', 'http://127.0.0.1:8082/callback.html', NULL, 3600, NULL, '{"LOGOUT_NOTIFY_URL_LIST":"http://127.0.0.1:8082/logoutNotify"}', 'true', NULL, NULL, 'pc端', 1, 60);
INSERT INTO `oauth_client_details` VALUES (2, 'app', NULL, '$2a$10$i3F515wEDiB4Gvj9ym9Prui0dasRttEUQ9ink4Wpgb4zEDCAlV8zO', 'app', 'app', 'authorization_code,password,refresh_token', 'http://127.0.0.1:8081/callback.html', NULL, 3600, NULL, '{"LOGOUT_NOTIFY_URL_LIST":"http://127.0.0.1:8081/logoutNotify"}', 'true', NULL, NULL, '移动端', 1, 60);
INSERT INTO `oauth_client_details` VALUES (3, 'zlt', NULL, '$2a$10$/o.wuORzVcXaezmYVzwYMuoY7qeWXBALwQmkskXD/7C6rqfCyPrna', 'zlt', 'all', 'authorization_code,password,refresh_token,client_credentials', 'http://127.0.0.1:8080/singleLogin', NULL, 3600, 28800, '{}', 'true', '2018-12-27 00:50:30', '2018-12-27 00:50:30', '第三方应用', 1, 60);
2 changes: 1 addition & 1 deletion zlt-job/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<commons-lang3.version>3.8.1</commons-lang3.version>
<groovy.version>2.5.5</groovy.version>
<quartz.version>2.3.0</quartz.version>
<jackson.version>2.9.8</jackson.version>
<jackson.version>2.13.4.1</jackson.version>
</properties>

<profiles>
Expand Down
76 changes: 76 additions & 0 deletions zlt-web/react-web/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Central-Platform UI

本模块是基于`企业级微服务框架`后端 API 所开发的前端项目。

采用[Ant Design Pro](https://pro.ant.design/)框架,基于[UmiJS v3.x](https://v3.umijs.org/)和[ProComponents](https://procomponents.ant.design/);
图表采用[Ant Design Charts](https://charts.ant.design/)。

## 1.目录说明
考虑到部署方便,集成了SpringBootWeb,目录结构基于Maven规范。
```lua
zlt-web -- 前端一级工程
│ ├─src -- 源码
│ │ ├─main --
│ │ │ ├─frontend -- 前端源码
│ │ │ ├─java -- 后端源码
```
## 2.后端使用说明
模块已集成Maven插件`frontend-maven-plugin`用于编译前端代码
>由于需要安装前端环境并编译前端代码,首次运行需要时间较长
### 打包运行
```bash
mvn package
```
在target目录下生成zlt-web-5.4.0.jar(springboot jar)。
```bash
java -jar zlt-web-5.4.0.jar
```

### IDE中运行

如在本地开发,在运行`SpringBootApplication`前必须先执行
```bash
mvn compile
```

### 配置
前缀:`zlt.ui`

| 配置项 | 类型 | 是否必须 | 默认值 | 说明 |
|--------------|--------|------|-----|-------|
| path-context | String | 否 | "/" | 上下文路径 |

## 3.前端使用说明
所有前端代码在`frontend`目录下。
### 环境准备

安装 `node_modules`:

```bash
npm install
```

or

```bash
yarn
```

### 运行项目

```bash
npm start
```

### 编译项目

```bash
npm run build
```
### More
开发参考
* [Ant Design Pro](https://pro.ant.design/) 开箱即用的中台前端/设计解决方案
* [UmiJS v3.x](https://v3.umijs.org/) 可扩展的企业级前端应用框架
* [Ant Design](https://ant.design/index-cn) 基于 Ant Design 设计体系的 React UI 组件库
* [ProComponents](https://procomponents.ant.design/) 基于 Ant Design 设计规范,提供更高程度的抽象,提供更上层的设计规范
* [Ant Design Charts](https://charts.ant.design/) 简单好用的 React 图表库