From 024ad936f49be495397bf7b87b453b77e1d6a641 Mon Sep 17 00:00:00 2001 From: zlt2000 Date: Wed, 13 Dec 2023 22:33:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20react=E5=89=8D=E7=AB=AF=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=AE=A1=E7=90=86=E5=A2=9E=E5=8A=A0=E2=80=9C=E4=BB=A4?= =?UTF-8?q?=E7=89=8C=E7=B1=BB=E5=9E=8B=E2=80=9D=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/App/components/CreateForm.tsx | 33 ++++--------------- .../system/App/components/UpdateForm.tsx | 30 ++++------------- .../frontend/src/pages/system/App/index.tsx | 12 ++----- .../frontend/src/pages/system/Token/index.tsx | 1 + .../frontend/src/services/system/typings.d.ts | 2 +- 5 files changed, 18 insertions(+), 60 deletions(-) diff --git a/zlt-web/react-web/src/main/frontend/src/pages/system/App/components/CreateForm.tsx b/zlt-web/react-web/src/main/frontend/src/pages/system/App/components/CreateForm.tsx index c143c1fc..aeb44303 100644 --- a/zlt-web/react-web/src/main/frontend/src/pages/system/App/components/CreateForm.tsx +++ b/zlt-web/react-web/src/main/frontend/src/pages/system/App/components/CreateForm.tsx @@ -27,8 +27,7 @@ const UpdateForm: React.FC = (props) => { autoapprove: 'true', accessTokenValiditySeconds: '18000', refreshTokenValiditySeconds: '28800', - supportIdToken: 'true', - idTokenValiditySeconds: '60', + tokenFormat: 'reference', authorizedGrantTypeCodes: 'authorization_code,password,client_credentials,implicit,refresh_token,password_code,openId,mobile_password'.split(","), }} @@ -172,39 +171,21 @@ const UpdateForm: React.FC = (props) => { fieldProps={{suffix:'秒'}} /> - ); diff --git a/zlt-web/react-web/src/main/frontend/src/pages/system/App/components/UpdateForm.tsx b/zlt-web/react-web/src/main/frontend/src/pages/system/App/components/UpdateForm.tsx index 9f2034f3..116650f9 100644 --- a/zlt-web/react-web/src/main/frontend/src/pages/system/App/components/UpdateForm.tsx +++ b/zlt-web/react-web/src/main/frontend/src/pages/system/App/components/UpdateForm.tsx @@ -162,39 +162,21 @@ const UpdateForm: React.FC = (props) => { fieldProps={{suffix:'秒'}} /> - ); diff --git a/zlt-web/react-web/src/main/frontend/src/pages/system/App/index.tsx b/zlt-web/react-web/src/main/frontend/src/pages/system/App/index.tsx index 009c7355..befc6ad2 100644 --- a/zlt-web/react-web/src/main/frontend/src/pages/system/App/index.tsx +++ b/zlt-web/react-web/src/main/frontend/src/pages/system/App/index.tsx @@ -118,17 +118,11 @@ const TableList: React.FC = () => { width: 40, }, { - title: '支持ID令牌', - key: 'supportIdToken', + title: '令牌类型', + key: 'tokenFormat', width: 40, align: 'center', - renderText: (_, record) => (record.supportIdToken ? '是' : '否'), - }, - { - title: 'ID时效', - dataIndex: 'idTokenValiditySeconds', - valueType: 'second', - width: 40, + renderText: (_, record) => (record.tokenFormat == 'reference' ? '引用令牌' : '自包含令牌'), }, { title: '操作', diff --git a/zlt-web/react-web/src/main/frontend/src/pages/system/Token/index.tsx b/zlt-web/react-web/src/main/frontend/src/pages/system/Token/index.tsx index 16fb0077..7aca7be6 100644 --- a/zlt-web/react-web/src/main/frontend/src/pages/system/Token/index.tsx +++ b/zlt-web/react-web/src/main/frontend/src/pages/system/Token/index.tsx @@ -56,6 +56,7 @@ const TableList: React.FC = () => { { title: 'token', dataIndex: 'tokenValue', + width: 120, }, { title: '到期时间', diff --git a/zlt-web/react-web/src/main/frontend/src/services/system/typings.d.ts b/zlt-web/react-web/src/main/frontend/src/services/system/typings.d.ts index 780ce80c..a932fb77 100644 --- a/zlt-web/react-web/src/main/frontend/src/services/system/typings.d.ts +++ b/zlt-web/react-web/src/main/frontend/src/services/system/typings.d.ts @@ -76,7 +76,7 @@ declare namespace SYSTEM { refreshTokenValiditySeconds?: number; resourceIds?: string; scope?: string; - supportIdToken?: boolean; + tokenFormat?: string; updateTime?: Date; webServerRedirectUri?: string; };