From 16261883e5e81dc4206cc595c834ba843101cd35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Fri, 19 Jul 2019 07:24:37 +0800 Subject: [PATCH] =?UTF-8?q?:arrow=5Fup:=20Upgrading=20dependencies.=20?= =?UTF-8?q?=E5=8D=87=E7=BA=A7nacos=201.1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gogs/ISSUE_TEMPLATE.md | 24 +- pigx-register/pom.xml | 4 +- .../nacos/console/config/ConfigConstants.java | 24 +- .../console/config/WebSecurityConfig.java | 94 +- .../console/controller/AuthController.java | 82 +- .../console/controller/HealthController.java | 120 +- .../controller/NamespaceController.java | 226 +-- .../controller/ServerStateController.java | 26 +- .../filter/JwtAuthenticationTokenFilter.java | 72 +- .../nacos/console/model/Namespace.java | 102 +- .../nacos/console/model/NamespaceAllInfo.java | 30 +- .../CustomAuthenticationProvider.java | 32 +- .../console/security/CustomUserDetails.java | 66 +- .../CustomUserDetailsServiceImpl.java | 20 +- .../security/JwtAuthenticationEntryPoint.java | 16 +- .../nacos/console/utils/JwtTokenUtils.java | 6 +- .../console/utils/PasswordEncoderUtil.java | 6 +- .../src/main/resources/bootstrap.yml | 7 +- .../main/resources/static/console-fe/.babelrc | 0 .../resources/static/console-fe/.editorconfig | 0 .../resources/static/console-fe/.eslintignore | 0 .../resources/static/console-fe/.eslintrc | 0 .../resources/static/console-fe/.gitignore | 0 .../static/console-fe/.prettierignore | 0 .../resources/static/console-fe/.prettierrc | 0 .../resources/static/console-fe/README.md | 0 .../resources/static/console-fe/package.json | 3 +- .../console-fe/public/css/bootstrap.css | 0 .../console-fe/public/css/codemirror.css | 0 .../console-fe/public/css/console1412.css | 0 .../console-fe/public/css/font-awesome.css | 0 .../public/css/fonts/aliyun-console-font.eot | Bin .../public/css/fonts/aliyun-console-font.ttf | Bin .../public/css/fonts/aliyun-console-font.woff | Bin .../css/fonts/font_515771_emcns5054x3whfr.ttf | Bin .../fonts/font_515771_emcns5054x3whfr.woff | Bin .../public/css/fonts/roboto-bold.ttf | Bin .../public/css/fonts/roboto-bold.woff | Bin .../public/css/fonts/roboto-bold.woff2 | Bin .../public/css/fonts/roboto-regular.ttf | Bin .../public/css/fonts/roboto-regular.woff | Bin .../public/css/fonts/roboto-regular.woff2 | Bin .../static/console-fe/public/css/icon.css | 0 .../static/console-fe/public/css/merge.css | 0 .../TB118jPv_mWBKNjSZFBXXXxUFXa-2000-390.svg | 1 - .../console-fe/public/img/black_dot.png | Bin .../static/console-fe/public/img/nacos.png | Bin .../static/console-fe/public/index.html | 2 +- .../public/js/codemirror.addone.fullscreen.js | 0 .../public/js/codemirror.addone.json-lint.js | 0 .../public/js/codemirror.addone.lint.js | 0 .../static/console-fe/public/js/codemirror.js | 0 .../public/js/codemirror.lib.clike-lint.js | 0 .../public/js/codemirror.lib.json-lint.js | 0 .../console-fe/public/js/diff_match_patch.js | 0 .../static/console-fe/public/js/javascript.js | 0 .../static/console-fe/public/js/jquery.js | 0 .../static/console-fe/public/js/loader.js | 0 .../static/console-fe/public/js/merge.js | 0 .../public/js/vs/base/worker/workerMain.js | 0 .../public/js/vs/basic-languages/src/bat.js | 0 .../js/vs/basic-languages/src/coffee.js | 0 .../public/js/vs/basic-languages/src/cpp.js | 0 .../js/vs/basic-languages/src/csharp.js | 0 .../public/js/vs/basic-languages/src/css.js | 0 .../js/vs/basic-languages/src/dockerfile.js | 0 .../js/vs/basic-languages/src/fsharp.js | 0 .../public/js/vs/basic-languages/src/go.js | 0 .../js/vs/basic-languages/src/handlebars.js | 0 .../public/js/vs/basic-languages/src/html.js | 0 .../public/js/vs/basic-languages/src/ini.js | 0 .../public/js/vs/basic-languages/src/java.js | 0 .../public/js/vs/basic-languages/src/less.js | 0 .../public/js/vs/basic-languages/src/lua.js | 0 .../js/vs/basic-languages/src/markdown.js | 0 .../public/js/vs/basic-languages/src/msdax.js | 0 .../js/vs/basic-languages/src/objective-c.js | 0 .../public/js/vs/basic-languages/src/php.js | 0 .../js/vs/basic-languages/src/postiats.js | 0 .../js/vs/basic-languages/src/powershell.js | 0 .../public/js/vs/basic-languages/src/pug.js | 0 .../js/vs/basic-languages/src/python.js | 0 .../public/js/vs/basic-languages/src/r.js | 0 .../public/js/vs/basic-languages/src/razor.js | 0 .../public/js/vs/basic-languages/src/ruby.js | 0 .../public/js/vs/basic-languages/src/sb.js | 0 .../public/js/vs/basic-languages/src/scss.js | 0 .../js/vs/basic-languages/src/solidity.js | 0 .../public/js/vs/basic-languages/src/sql.js | 0 .../public/js/vs/basic-languages/src/swift.js | 0 .../public/js/vs/basic-languages/src/vb.js | 0 .../public/js/vs/basic-languages/src/xml.js | 0 .../public/js/vs/basic-languages/src/yaml.js | 0 .../suggest/browser/media/String_16x.svg | 0 .../browser/media/String_inverse_16x.svg | 0 .../public/js/vs/editor/editor.main.css | 0 .../public/js/vs/editor/editor.main.js | 0 .../public/js/vs/editor/editor.main.nls.de.js | 0 .../public/js/vs/editor/editor.main.nls.es.js | 0 .../public/js/vs/editor/editor.main.nls.fr.js | 0 .../public/js/vs/editor/editor.main.nls.hu.js | 0 .../public/js/vs/editor/editor.main.nls.it.js | 0 .../public/js/vs/editor/editor.main.nls.ja.js | 0 .../public/js/vs/editor/editor.main.nls.js | 0 .../public/js/vs/editor/editor.main.nls.ko.js | 0 .../js/vs/editor/editor.main.nls.pt-br.js | 0 .../public/js/vs/editor/editor.main.nls.ru.js | 0 .../public/js/vs/editor/editor.main.nls.tr.js | 0 .../js/vs/editor/editor.main.nls.zh-cn.js | 0 .../js/vs/editor/editor.main.nls.zh-tw.js | 0 .../browser/quickOpen/symbol-sprite.svg | 0 .../public/js/vs/language/css/cssMode.js | 0 .../public/js/vs/language/css/cssWorker.js | 0 .../public/js/vs/language/html/htmlMode.js | 0 .../public/js/vs/language/html/htmlWorker.js | 0 .../public/js/vs/language/json/jsonMode.js | 0 .../public/js/vs/language/json/jsonWorker.js | 0 .../typescript/lib/typescriptServices.js | 0 .../js/vs/language/typescript/src/mode.js | 0 .../js/vs/language/typescript/src/worker.js | 0 .../static/console-fe/public/js/vs/loader.js | 0 .../static/console-fe/public/js/xml.js | 0 .../src/components/BatchHandle/BatchHandle.js | 0 .../src/components/BatchHandle/index.js | 0 .../src/components/BatchHandle/index.scss | 0 .../src/components/CloneDialog/CloneDialog.js | 0 .../src/components/CloneDialog/index.js | 0 .../src/components/CloneDialog/index.scss | 0 .../components/DeleteDialog/DeleteDialog.js | 0 .../src/components/DeleteDialog/index.js | 0 .../src/components/DeleteDialog/index.scss | 0 .../DiffEditorDialog/DiffEditorDialog.js | 0 .../src/components/DiffEditorDialog/index.js | 0 .../components/DiffEditorDialog/index.scss | 0 .../EditorNameSpace/EditorNameSpace.js | 0 .../src/components/EditorNameSpace/index.js | 0 .../src/components/EditorNameSpace/index.scss | 0 .../components/ExportDialog/ExportDialog.js | 0 .../src/components/ExportDialog/index.js | 0 .../src/components/ExportDialog/index.scss | 0 .../components/ImportDialog/ImportDialog.js | 0 .../src/components/ImportDialog/index.js | 0 .../src/components/ImportDialog/index.scss | 0 .../components/MonacoEditor/MonacoEditor.tsx | 0 .../src/components/MonacoEditor/constant.ts | 0 .../src/components/MonacoEditor/index.scss | 0 .../src/components/MonacoEditor/index.tsx | 0 .../components/NameSpaceList/NameSpaceList.js | 0 .../src/components/NameSpaceList/index.js | 0 .../src/components/NameSpaceList/index.scss | 0 .../components/NewNameSpace/NewNameSpace.js | 0 .../src/components/NewNameSpace/index.js | 0 .../src/components/NewNameSpace/index.scss | 0 .../src/components/RegionGroup/RegionGroup.js | 0 .../src/components/RegionGroup/index.js | 0 .../src/components/RegionGroup/index.scss | 0 .../src/components/ShowCodeing/ShowCodeing.js | 0 .../src/components/ShowCodeing/index.js | 0 .../src/components/ShowCodeing/index.scss | 0 .../components/SuccessDialog/SuccessDialog.js | 0 .../src/components/SuccessDialog/index.js | 0 .../src/components/SuccessDialog/index.scss | 0 .../resources/static/console-fe/src/config.js | 4 +- .../static/console-fe/src/constants.js | 3 + .../static/console-fe/src/globalLib.js | 0 .../static/console-fe/src/i18ndoc.js | 0 .../resources/static/console-fe/src/index.js | 8 +- .../static/console-fe/src/index.scss | 0 .../static/console-fe/src/layouts/Header.js | 12 +- .../console-fe/src/layouts/MainLayout.js | 11 +- .../static/console-fe/src/layouts/index.scss | 0 .../resources/static/console-fe/src/lib.js | 0 .../static/console-fe/src/locales/en-US.js | 75 + .../static/console-fe/src/locales/index.js | 0 .../static/console-fe/src/locales/zh-CN.js | 78 +- .../resources/static/console-fe/src/menu.js | 46 + .../ConfigDetail/ConfigDetail.js | 0 .../ConfigDetail/index.js | 0 .../ConfigDetail/index.scss | 0 .../ConfigEditor/ConfigEditor.js | 0 .../ConfigEditor/index.js | 2 +- .../ConfigEditor/index.scss | 61 + .../ConfigRollback/ConfigRollback.js | 0 .../ConfigRollback/index.js | 0 .../ConfigRollback/index.scss | 0 .../ConfigSync/ConfigSync.js | 0 .../ConfigSync/index.js | 0 .../ConfigSync/index.scss | 0 .../ConfigurationManagement.js | 439 ++++- .../ConfigurationManagement/DashboardCard.js | 0 .../ConfigurationManagement/index.js | 0 .../ConfigurationManagement/index.scss | 0 .../HistoryDetail/HistoryDetail.js | 0 .../HistoryDetail/index.js | 0 .../HistoryDetail/index.scss | 0 .../HistoryRollback/HistoryRollback.js | 0 .../HistoryRollback/index.js | 0 .../HistoryRollback/index.scss | 0 .../ListeningToQuery/ListeningToQuery.js | 0 .../ListeningToQuery/index.js | 0 .../ListeningToQuery/index.scss | 0 .../NewConfig/NewConfig.js | 2 +- .../NewConfig/index.js | 0 .../NewConfig/index.scss | 0 .../console-fe/src/pages/Login/Login.jsx | 0 .../console-fe/src/pages/Login/index.jsx | 0 .../console-fe/src/pages/Login/index.scss | 0 .../src/pages/NameSpace/NameSpace.js | 0 .../console-fe/src/pages/NameSpace/index.js | 0 .../console-fe/src/pages/NameSpace/index.scss | 0 .../ServiceDetail/EditClusterDialog.js | 9 +- .../ServiceDetail/EditInstanceDialog.js | 9 +- .../ServiceDetail/EditServiceDialog.js | 7 +- .../ServiceDetail/InstanceTable.js | 6 +- .../ServiceDetail/ServiceDetail.js | 17 +- .../ServiceDetail/ServiceDetail.scss | 0 .../ServiceDetail/constant.js | 0 .../ServiceManagement/ServiceDetail/index.js | 0 .../ServiceList/ServiceList.js | 73 +- .../ServiceList/ServiceList.scss | 0 .../ServiceManagement/ServiceList/index.js | 0 .../static/console-fe/src/reducers/base.js | 0 .../static/console-fe/src/reducers/index.js | 3 +- .../static/console-fe/src/reducers/locale.js | 0 .../console-fe/src/utils/ajaxrequest.js | 0 .../static/console-fe/src/utils/cookie.js | 0 .../console-fe/src/utils/localstorage.js | 0 .../static/console-fe/src/utils/nacosutil.js | 28 - .../static/console-fe/src/utils/request.js | 0 .../console-fe/src/utils/validateContent.js | 21 +- .../static/console-fe/test/.editorconfig | 0 .../static/console-fe/test/.gitignore | 0 .../static/console-fe/test/README.md | 0 .../static/console-fe/test/commons/commons.md | 0 .../static/console-fe/test/config.json | 0 .../resources/static/console-fe/test/hosts | 0 .../static/console-fe/test/install.sh | 1 + .../static/console-fe/test/package.json | 0 .../resources/static/console-fe/test/run.bat | 0 .../resources/static/console-fe/test/run.sh | 0 .../sample/configurationManagement.spec.js | 0 .../test/uploadfiles/uploadfiles.md | 0 .../resources/static/console-fe/tsconfig.json | 0 .../resources/static/console-fe/yarn.lock | 1708 +++++++++-------- .../src/main/resources/static/css/main.css | 2 +- .../TB118jPv_mWBKNjSZFBXXXxUFXa-2000-390.svg | 1 - .../main/resources/static/img/black_dot.png | Bin .../src/main/resources/static/img/nacos.png | Bin .../src/main/resources/static/index.html | 4 +- .../src/main/resources/static/js/main.js | 190 +- .../src/main/resources/static/login.html | 0 .../pigx/admin/api/entity/SysDept.java | 2 +- .../pigx/admin/api/entity/SysRole.java | 2 - 253 files changed, 2290 insertions(+), 1497 deletions(-) mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/config/WebSecurityConfig.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/controller/AuthController.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/controller/HealthController.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/controller/NamespaceController.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/controller/ServerStateController.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/filter/JwtAuthenticationTokenFilter.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/model/Namespace.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/model/NamespaceAllInfo.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomAuthenticationProvider.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomUserDetails.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomUserDetailsServiceImpl.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/security/JwtAuthenticationEntryPoint.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/utils/JwtTokenUtils.java mode change 100755 => 100644 pigx-register/src/main/java/com/alibaba/nacos/console/utils/PasswordEncoderUtil.java mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/.babelrc mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/.editorconfig mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/.eslintignore mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/.eslintrc mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/.gitignore mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/.prettierignore mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/.prettierrc mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/README.md mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/package.json mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/bootstrap.css mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/codemirror.css mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/console1412.css mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/font-awesome.css mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/fonts/aliyun-console-font.eot mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/fonts/aliyun-console-font.ttf mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/fonts/aliyun-console-font.woff mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/fonts/font_515771_emcns5054x3whfr.ttf mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/fonts/font_515771_emcns5054x3whfr.woff mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-bold.ttf mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-bold.woff mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-bold.woff2 mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-regular.ttf mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-regular.woff mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-regular.woff2 mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/icon.css mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/css/merge.css delete mode 100755 pigx-register/src/main/resources/static/console-fe/public/img/TB118jPv_mWBKNjSZFBXXXxUFXa-2000-390.svg mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/img/black_dot.png mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/img/nacos.png mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/index.html mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/codemirror.addone.fullscreen.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/codemirror.addone.json-lint.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/codemirror.addone.lint.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/codemirror.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/codemirror.lib.clike-lint.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/codemirror.lib.json-lint.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/diff_match_patch.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/javascript.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/jquery.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/loader.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/merge.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/base/worker/workerMain.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/bat.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/coffee.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/cpp.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/csharp.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/css.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/dockerfile.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/fsharp.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/go.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/handlebars.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/html.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/ini.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/java.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/less.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/lua.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/markdown.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/msdax.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/objective-c.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/php.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/postiats.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/powershell.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/pug.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/python.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/r.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/razor.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/ruby.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/sb.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/scss.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/solidity.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/sql.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/swift.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/vb.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/xml.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/yaml.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/contrib/suggest/browser/media/String_16x.svg mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/contrib/suggest/browser/media/String_inverse_16x.svg mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.css mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.de.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.es.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.fr.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.hu.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.it.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.ja.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.ko.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.pt-br.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.ru.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.tr.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.zh-cn.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.zh-tw.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/standalone/browser/quickOpen/symbol-sprite.svg mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/language/css/cssMode.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/language/css/cssWorker.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/language/html/htmlMode.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/language/html/htmlWorker.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/language/json/jsonMode.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/language/json/jsonWorker.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/language/typescript/lib/typescriptServices.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/language/typescript/src/mode.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/language/typescript/src/worker.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/vs/loader.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/public/js/xml.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/BatchHandle/BatchHandle.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/BatchHandle/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/BatchHandle/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/CloneDialog/CloneDialog.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/CloneDialog/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/CloneDialog/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/DeleteDialog/DeleteDialog.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/DeleteDialog/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/DeleteDialog/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/DiffEditorDialog/DiffEditorDialog.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/DiffEditorDialog/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/DiffEditorDialog/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/EditorNameSpace/EditorNameSpace.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/EditorNameSpace/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/EditorNameSpace/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/ExportDialog/ExportDialog.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/ExportDialog/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/ExportDialog/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/ImportDialog/ImportDialog.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/ImportDialog/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/ImportDialog/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/MonacoEditor/MonacoEditor.tsx mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/MonacoEditor/constant.ts mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/MonacoEditor/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/MonacoEditor/index.tsx mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/NameSpaceList/NameSpaceList.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/NameSpaceList/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/NameSpaceList/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/NewNameSpace/NewNameSpace.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/NewNameSpace/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/NewNameSpace/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/RegionGroup/RegionGroup.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/RegionGroup/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/RegionGroup/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/ShowCodeing.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/SuccessDialog/SuccessDialog.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/SuccessDialog/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/components/SuccessDialog/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/config.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/constants.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/globalLib.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/i18ndoc.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/layouts/Header.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/layouts/MainLayout.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/layouts/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/lib.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/locales/en-US.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/locales/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/locales/zh-CN.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/menu.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigDetail/ConfigDetail.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigDetail/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigDetail/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/ConfigEditor.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigRollback/ConfigRollback.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigRollback/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigRollback/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigSync/ConfigSync.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigSync/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigSync/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigurationManagement/DashboardCard.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigurationManagement/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigurationManagement/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/HistoryDetail/HistoryDetail.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/HistoryDetail/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/HistoryDetail/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/HistoryRollback/HistoryRollback.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/HistoryRollback/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/HistoryRollback/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ListeningToQuery/ListeningToQuery.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ListeningToQuery/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ListeningToQuery/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/NewConfig/NewConfig.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/NewConfig/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/NewConfig/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/Login/Login.jsx mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/Login/index.jsx mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/Login/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/NameSpace/NameSpace.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/NameSpace/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/NameSpace/index.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/EditClusterDialog.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/EditInstanceDialog.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/EditServiceDialog.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/InstanceTable.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/ServiceDetail.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/ServiceDetail.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/constant.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceList/ServiceList.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceList/ServiceList.scss mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceList/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/reducers/base.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/reducers/index.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/reducers/locale.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/utils/ajaxrequest.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/utils/cookie.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/utils/localstorage.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/utils/nacosutil.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/utils/request.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/src/utils/validateContent.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/test/.editorconfig mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/test/.gitignore mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/test/README.md mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/test/commons/commons.md mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/test/config.json mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/test/hosts mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/test/install.sh mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/test/package.json mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/test/run.bat mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/test/run.sh mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/test/sample/configurationManagement.spec.js mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/test/uploadfiles/uploadfiles.md mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/tsconfig.json mode change 100755 => 100644 pigx-register/src/main/resources/static/console-fe/yarn.lock mode change 100755 => 100644 pigx-register/src/main/resources/static/css/main.css delete mode 100755 pigx-register/src/main/resources/static/img/TB118jPv_mWBKNjSZFBXXXxUFXa-2000-390.svg mode change 100755 => 100644 pigx-register/src/main/resources/static/img/black_dot.png mode change 100755 => 100644 pigx-register/src/main/resources/static/img/nacos.png mode change 100755 => 100644 pigx-register/src/main/resources/static/index.html mode change 100755 => 100644 pigx-register/src/main/resources/static/js/main.js mode change 100755 => 100644 pigx-register/src/main/resources/static/login.html diff --git a/.gogs/ISSUE_TEMPLATE.md b/.gogs/ISSUE_TEMPLATE.md index 115bb1a28..e055c551b 100644 --- a/.gogs/ISSUE_TEMPLATE.md +++ b/.gogs/ISSUE_TEMPLATE.md @@ -1,11 +1,28 @@ +特别说明: 为了方便其他群友查阅和工程师定位问题 +- 以下格式请按要求填写,务必提供回显步骤,修改了什么参数等 +- 只有图或者只有文字描述,看图识字 | 阅读理解的直接禁止登录私服 +- 问题范围请局限PigX 现有功能范围内,扩展业务问题属于超纲直接关闭 +- PigX 使用的组件均为开源组件,去对应组件的issue列表翻翻 可能会有更好的发现 + +附录: [提问的艺术](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md) + +> A级 蠢问题:救命啊!我的笔记本电脑不能正常显示了! + +> B级 聪明问题:X.org 6.8.1 的鼠标光标会变形,某牌显卡 MV1005 芯片组。 + +> C级 更聪明问题:X.org 6.8.1 的鼠标光标,在某牌显卡 MV1005 芯片组环境下 - 会变形。 + +--- + ### 版本信息 - pigx版本: - 操作系统: - 是否修改包名: +- 此描述属于上述哪个等级: -### 报错信息 (注意格式化) +### 报错信息 (截图/日志) ``` @@ -13,7 +30,10 @@ ``` -### 问题描述(包括回显步骤、截图 (此项没有直接关闭、不予解决)) +### 问题描述(回显步骤) + + + diff --git a/pigx-register/pom.xml b/pigx-register/pom.xml index 465fbc118..0aaf4d623 100755 --- a/pigx-register/pom.xml +++ b/pigx-register/pom.xml @@ -30,12 +30,12 @@ com.alibaba.nacos nacos-config - 1.0.0 + 1.1.0 com.alibaba.nacos nacos-naming - 1.0.0 + 1.1.0 diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/config/ConfigConstants.java b/pigx-register/src/main/java/com/alibaba/nacos/console/config/ConfigConstants.java index 5fa167bc6..09b6c2485 100644 --- a/pigx-register/src/main/java/com/alibaba/nacos/console/config/ConfigConstants.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/config/ConfigConstants.java @@ -1,5 +1,27 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (wangiegie@gmail.com) + */ + package com.alibaba.nacos.console.config; +/** + * @author lengleng + * @date 2019-07-16 + */ + /** * @author lengleng * @date 2019-04-19 @@ -22,4 +44,4 @@ public interface ConfigConstants { */ String TOMCAT_ACCESS_LOG = "server.tomcat.accesslog.enabled"; -} +} \ No newline at end of file diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/config/WebSecurityConfig.java b/pigx-register/src/main/java/com/alibaba/nacos/console/config/WebSecurityConfig.java old mode 100755 new mode 100644 index 1ef0eaff2..d8f9e1e8b --- a/pigx-register/src/main/java/com/alibaba/nacos/console/config/WebSecurityConfig.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/config/WebSecurityConfig.java @@ -44,64 +44,64 @@ import org.springframework.security.web.authentication.UsernamePasswordAuthentic @EnableGlobalMethodSecurity(prePostEnabled = true) public class WebSecurityConfig extends WebSecurityConfigurerAdapter { - public static final String AUTHORIZATION_HEADER = "Authorization"; + public static final String AUTHORIZATION_HEADER = "Authorization"; - public static final String AUTHORIZATION_TOKEN = "access_token"; + public static final String AUTHORIZATION_TOKEN = "access_token"; - public static final String SECURITY_IGNORE_URLS_SPILT_CHAR = ","; + public static final String SECURITY_IGNORE_URLS_SPILT_CHAR = ","; - @Autowired - private CustomUserDetailsServiceImpl userDetailsService; + @Autowired + private CustomUserDetailsServiceImpl userDetailsService; - @Autowired - private JwtAuthenticationEntryPoint unauthorizedHandler; + @Autowired + private JwtAuthenticationEntryPoint unauthorizedHandler; - @Autowired - private JwtTokenUtils tokenProvider; + @Autowired + private JwtTokenUtils tokenProvider; - @Autowired - private Environment env; + @Autowired + private Environment env; - @Bean(name = BeanIds.AUTHENTICATION_MANAGER) - @Override - public AuthenticationManager authenticationManagerBean() throws Exception { - return super.authenticationManagerBean(); - } + @Bean(name = BeanIds.AUTHENTICATION_MANAGER) + @Override + public AuthenticationManager authenticationManagerBean() throws Exception { + return super.authenticationManagerBean(); + } - @Override - protected void configure(AuthenticationManagerBuilder auth) throws Exception { - auth.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder()); - } + @Override + protected void configure(AuthenticationManagerBuilder auth) throws Exception { + auth.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder()); + } - @Override - public void configure(WebSecurity web) { - String ignoreURLs = env.getProperty("nacos.security.ignore.urls", "/**"); - for (String ignoreURL : ignoreURLs.trim().split(SECURITY_IGNORE_URLS_SPILT_CHAR)) { - web.ignoring().antMatchers(ignoreURL.trim()); - } - } + @Override + public void configure(WebSecurity web) { + String ignoreUrls = env.getProperty("nacos.security.ignore.urls", "/**"); + for (String ignoreUrl : ignoreUrls.trim().split(SECURITY_IGNORE_URLS_SPILT_CHAR)) { + web.ignoring().antMatchers(ignoreUrl.trim()); + } + } - @Override - protected void configure(HttpSecurity http) throws Exception { - http - .authorizeRequests() - .anyRequest().authenticated().and() - // custom token authorize exception handler - .exceptionHandling() - .authenticationEntryPoint(unauthorizedHandler).and() - // since we use jwt, session is not necessary - .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and() - // since we use jwt, csrf is not necessary - .csrf().disable(); - http.addFilterBefore(new JwtAuthenticationTokenFilter(tokenProvider), UsernamePasswordAuthenticationFilter.class); + @Override + protected void configure(HttpSecurity http) throws Exception { + http + .authorizeRequests() + .anyRequest().authenticated().and() + // custom token authorize exception handler + .exceptionHandling() + .authenticationEntryPoint(unauthorizedHandler).and() + // since we use jwt, session is not necessary + .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and() + // since we use jwt, csrf is not necessary + .csrf().disable(); + http.addFilterBefore(new JwtAuthenticationTokenFilter(tokenProvider), UsernamePasswordAuthenticationFilter.class); - // disable cache - http.headers().cacheControl(); - } + // disable cache + http.headers().cacheControl(); + } - @Bean - public PasswordEncoder passwordEncoder() { - return new BCryptPasswordEncoder(); - } + @Bean + public PasswordEncoder passwordEncoder() { + return new BCryptPasswordEncoder(); + } } diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/controller/AuthController.java b/pigx-register/src/main/java/com/alibaba/nacos/console/controller/AuthController.java old mode 100755 new mode 100644 index edc3ba5f4..2466eee49 --- a/pigx-register/src/main/java/com/alibaba/nacos/console/controller/AuthController.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/controller/AuthController.java @@ -15,18 +15,20 @@ */ package com.alibaba.nacos.console.controller; -import com.alibaba.nacos.console.config.WebSecurityConfig; import com.alibaba.nacos.config.server.model.RestResult; +import com.alibaba.nacos.console.config.WebSecurityConfig; import com.alibaba.nacos.console.utils.JwtTokenUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.authentication.BadCredentialsException; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; -import org.springframework.web.bind.annotation.*; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.RestController; + import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -39,44 +41,44 @@ import javax.servlet.http.HttpServletResponse; @RequestMapping("/v1/auth") public class AuthController { - @Autowired - private JwtTokenUtils jwtTokenUtils; - @Autowired - private AuthenticationManager authenticationManager; + @Autowired + private JwtTokenUtils jwtTokenUtils; + @Autowired + private AuthenticationManager authenticationManager; - /** - * Whether the Nacos is in broken states or not, and cannot recover except by being restarted - * - * @return HTTP code equal to 200 indicates that Nacos is in right states. HTTP code equal to 500 indicates that - * Nacos is in broken states. - */ + /** + * Whether the Nacos is in broken states or not, and cannot recover except by being restarted + * + * @return HTTP code equal to 200 indicates that Nacos is in right states. HTTP code equal to 500 indicates that + * Nacos is in broken states. + */ - @ResponseBody - @RequestMapping(value = "login", method = RequestMethod.POST) - public RestResult login(HttpServletRequest request, HttpServletResponse response) throws Exception { - String username = request.getParameter("username"); - String password = request.getParameter("password"); + @ResponseBody + @RequestMapping(value = "login", method = RequestMethod.POST) + public RestResult login(HttpServletRequest request, HttpServletResponse response) throws Exception { + String username = request.getParameter("username"); + String password = request.getParameter("password"); - // 通过用户名和密码创建一个 Authentication 认证对象,实现类为 UsernamePasswordAuthenticationToken - UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, password); - RestResult rr = new RestResult(); + // 通过用户名和密码创建一个 Authentication 认证对象,实现类为 UsernamePasswordAuthenticationToken + UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, password); + RestResult rr = new RestResult(); - try { - //通过 AuthenticationManager(默认实现为ProviderManager)的authenticate方法验证 Authentication 对象 - Authentication authentication = authenticationManager.authenticate(authenticationToken); - //将 Authentication 绑定到 SecurityContext - SecurityContextHolder.getContext().setAuthentication(authentication); - //生成Token - String token = jwtTokenUtils.createToken(authentication); - //将Token写入到Http头部 - response.addHeader(WebSecurityConfig.AUTHORIZATION_HEADER, "Bearer " + token); - rr.setCode(200); - rr.setData("Bearer " + token); - return rr; - } catch (BadCredentialsException authentication) { - rr.setCode(401); - rr.setMessage("Login failed"); - return rr; - } - } + try { + //通过 AuthenticationManager(默认实现为ProviderManager)的authenticate方法验证 Authentication 对象 + Authentication authentication = authenticationManager.authenticate(authenticationToken); + //将 Authentication 绑定到 SecurityContext + SecurityContextHolder.getContext().setAuthentication(authentication); + //生成Token + String token = jwtTokenUtils.createToken(authentication); + //将Token写入到Http头部 + response.addHeader(WebSecurityConfig.AUTHORIZATION_HEADER, "Bearer " + token); + rr.setCode(200); + rr.setData("Bearer " + token); + return rr; + } catch (BadCredentialsException authentication) { + rr.setCode(401); + rr.setMessage("Login failed"); + return rr; + } + } } diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/controller/HealthController.java b/pigx-register/src/main/java/com/alibaba/nacos/console/controller/HealthController.java old mode 100755 new mode 100644 index 028bbcaad..204537d1e --- a/pigx-register/src/main/java/com/alibaba/nacos/console/controller/HealthController.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/controller/HealthController.java @@ -35,74 +35,74 @@ import javax.servlet.http.HttpServletRequest; @RequestMapping("/v1/console/health") public class HealthController { - private static final Logger logger = LoggerFactory.getLogger(HealthController.class); + private static final Logger logger = LoggerFactory.getLogger(HealthController.class); - private final PersistService persistService; - private final OperatorController apiCommands; + private final PersistService persistService; + private final OperatorController apiCommands; - @Autowired - public HealthController(PersistService persistService, OperatorController apiCommands) { - this.persistService = persistService; - this.apiCommands = apiCommands; - } + @Autowired + public HealthController(PersistService persistService, OperatorController apiCommands) { + this.persistService = persistService; + this.apiCommands = apiCommands; + } - /** - * Whether the Nacos is in broken states or not, and cannot recover except by being restarted - * - * @return HTTP code equal to 200 indicates that Nacos is in right states. HTTP code equal to 500 indicates that - * Nacos is in broken states. - */ - @ResponseBody - @RequestMapping(value = "liveness", method = RequestMethod.GET) - public ResponseEntity liveness() { - return ResponseEntity.ok().body("OK"); - } + /** + * Whether the Nacos is in broken states or not, and cannot recover except by being restarted + * + * @return HTTP code equal to 200 indicates that Nacos is in right states. HTTP code equal to 500 indicates that + * Nacos is in broken states. + */ + @ResponseBody + @RequestMapping(value = "liveness", method = RequestMethod.GET) + public ResponseEntity liveness() { + return ResponseEntity.ok().body("OK"); + } - /** - * Ready to receive the request or not - * - * @return HTTP code equal to 200 indicates that Nacos is ready. HTTP code equal to 500 indicates that Nacos is not - * ready. - */ - @ResponseBody - @RequestMapping(value = "readiness", method = RequestMethod.GET) - public ResponseEntity readiness(HttpServletRequest request) { - boolean isConfigReadiness = isConfigReadiness(); - boolean isNamingReadiness = isNamingReadiness(request); + /** + * Ready to receive the request or not + * + * @return HTTP code equal to 200 indicates that Nacos is ready. HTTP code equal to 500 indicates that Nacos is not + * ready. + */ + @ResponseBody + @RequestMapping(value = "readiness", method = RequestMethod.GET) + public ResponseEntity readiness(HttpServletRequest request) { + boolean isConfigReadiness = isConfigReadiness(); + boolean isNamingReadiness = isNamingReadiness(request); - if (isConfigReadiness && isNamingReadiness) { - return ResponseEntity.ok().body("OK"); - } + if (isConfigReadiness && isNamingReadiness) { + return ResponseEntity.ok().body("OK"); + } - if (!isConfigReadiness && !isNamingReadiness) { - return ResponseEntity.status(500).body("Config and Naming are not in readiness"); - } + if (!isConfigReadiness && !isNamingReadiness) { + return ResponseEntity.status(500).body("Config and Naming are not in readiness"); + } - if (!isConfigReadiness) { - return ResponseEntity.status(500).body("Config is not in readiness"); - } + if (!isConfigReadiness) { + return ResponseEntity.status(500).body("Config is not in readiness"); + } - return ResponseEntity.status(500).body("Naming is not in readiness"); - } + return ResponseEntity.status(500).body("Naming is not in readiness"); + } - private boolean isConfigReadiness() { - // check db - try { - persistService.configInfoCount(""); - return true; - } catch (Exception e) { - logger.error("Config health check fail.", e); - } - return false; - } + private boolean isConfigReadiness() { + // check db + try { + persistService.configInfoCount(""); + return true; + } catch (Exception e) { + logger.error("Config health check fail.", e); + } + return false; + } - private boolean isNamingReadiness(HttpServletRequest request) { - try { - apiCommands.metrics(request); - return true; - } catch (Exception e) { - logger.error("Naming health check fail.", e); - } - return false; - } + private boolean isNamingReadiness(HttpServletRequest request) { + try { + apiCommands.metrics(request); + return true; + } catch (Exception e) { + logger.error("Naming health check fail.", e); + } + return false; + } } diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/controller/NamespaceController.java b/pigx-register/src/main/java/com/alibaba/nacos/console/controller/NamespaceController.java old mode 100755 new mode 100644 index 1e30435b5..f1f9cdbae --- a/pigx-register/src/main/java/com/alibaba/nacos/console/controller/NamespaceController.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/controller/NamespaceController.java @@ -44,123 +44,123 @@ import java.util.UUID; @RequestMapping("/v1/console/namespaces") public class NamespaceController { - @Autowired - private transient PersistService persistService; + @Autowired + private transient PersistService persistService; - /** - * Get namespace list - * - * @param request request - * @param response response - * @return namespace list - */ - @ResponseBody - @RequestMapping(method = RequestMethod.GET) - public RestResult> getNamespaces(HttpServletRequest request, HttpServletResponse response) { - RestResult> rr = new RestResult>(); - rr.setCode(200); - // TODO 获取用kp - List tenantInfos = persistService.findTenantByKp("1"); - Namespace namespace0 = new Namespace("", "Public", 200, persistService.configInfoCount(""), 0); - List namespaces = new ArrayList(); - namespaces.add(namespace0); - for (TenantInfo tenantInfo : tenantInfos) { - int configCount = persistService.configInfoCount(tenantInfo.getTenantId()); - Namespace namespaceTmp = new Namespace(tenantInfo.getTenantId(), tenantInfo.getTenantName(), 200, - configCount, 2); - namespaces.add(namespaceTmp); - } - rr.setData(namespaces); - return rr; - } + /** + * Get namespace list + * + * @param request request + * @param response response + * @return namespace list + */ + @ResponseBody + @RequestMapping(method = RequestMethod.GET) + public RestResult> getNamespaces(HttpServletRequest request, HttpServletResponse response) { + RestResult> rr = new RestResult>(); + rr.setCode(200); + // TODO 获取用kp + List tenantInfos = persistService.findTenantByKp("1"); + Namespace namespace0 = new Namespace("", "public", 200, persistService.configInfoCount(""), 0); + List namespaces = new ArrayList(); + namespaces.add(namespace0); + for (TenantInfo tenantInfo : tenantInfos) { + int configCount = persistService.configInfoCount(tenantInfo.getTenantId()); + Namespace namespaceTmp = new Namespace(tenantInfo.getTenantId(), tenantInfo.getTenantName(), 200, + configCount, 2); + namespaces.add(namespaceTmp); + } + rr.setData(namespaces); + return rr; + } - /** - * get namespace all info by namespace id - * - * @param request request - * @param response response - * @param namespaceId namespaceId - * @return namespace all info - */ - @ResponseBody - @RequestMapping(params = "show=all", method = RequestMethod.GET) - public NamespaceAllInfo getNamespace(HttpServletRequest request, HttpServletResponse response, - @RequestParam("namespaceId") String namespaceId) { - // TODO 获取用kp - if (StringUtils.isBlank(namespaceId)) { - NamespaceAllInfo namespaceTmp = new NamespaceAllInfo(namespaceId, "Public", 200, persistService.configInfoCount(""), 0, - "Public Namespace"); - return namespaceTmp; - } else { - TenantInfo tenantInfo = persistService.findTenantByKp("1", namespaceId); - int configCount = persistService.configInfoCount(namespaceId); - NamespaceAllInfo namespaceTmp = new NamespaceAllInfo(namespaceId, tenantInfo.getTenantName(), 200, - configCount, 2, tenantInfo.getTenantDesc()); - return namespaceTmp; - } - } + /** + * get namespace all info by namespace id + * + * @param request request + * @param response response + * @param namespaceId namespaceId + * @return namespace all info + */ + @ResponseBody + @RequestMapping(params = "show=all", method = RequestMethod.GET) + public NamespaceAllInfo getNamespace(HttpServletRequest request, HttpServletResponse response, + @RequestParam("namespaceId") String namespaceId) { + // TODO 获取用kp + if (StringUtils.isBlank(namespaceId)) { + NamespaceAllInfo namespaceTmp = new NamespaceAllInfo(namespaceId, "Public", 200, persistService.configInfoCount(""), 0, + "Public Namespace"); + return namespaceTmp; + } else { + TenantInfo tenantInfo = persistService.findTenantByKp("1", namespaceId); + int configCount = persistService.configInfoCount(namespaceId); + NamespaceAllInfo namespaceTmp = new NamespaceAllInfo(namespaceId, tenantInfo.getTenantName(), 200, + configCount, 2, tenantInfo.getTenantDesc()); + return namespaceTmp; + } + } - /** - * create namespace - * - * @param request request - * @param response response - * @param namespaceName namespace Name - * @param namespaceDesc namespace Desc - * @return whether create ok - * @throws NacosException - */ - @RequestMapping(method = RequestMethod.POST) - @ResponseBody - public Boolean createNamespace(HttpServletRequest request, HttpServletResponse response, - @RequestParam("namespaceName") String namespaceName, - @RequestParam(value = "namespaceDesc", required = false) String namespaceDesc) - throws NacosException { - // TODO 获取用kp - String namespaceId = UUID.randomUUID().toString(); - persistService.insertTenantInfoAtomic("1", namespaceId, namespaceName, namespaceDesc, "nacos", - System.currentTimeMillis()); - return true; - } + /** + * create namespace + * + * @param request request + * @param response response + * @param namespaceName namespace Name + * @param namespaceDesc namespace Desc + * @return whether create ok + * @throws NacosException + */ + @RequestMapping(method = RequestMethod.POST) + @ResponseBody + public Boolean createNamespace(HttpServletRequest request, HttpServletResponse response, + @RequestParam("namespaceName") String namespaceName, + @RequestParam(value = "namespaceDesc", required = false) String namespaceDesc) + throws NacosException { + // TODO 获取用kp + String namespaceId = UUID.randomUUID().toString(); + persistService.insertTenantInfoAtomic("1", namespaceId, namespaceName, namespaceDesc, "nacos", + System.currentTimeMillis()); + return true; + } - /** - * edit namespace - * - * @param request request - * @param response response - * @param namespace namespace - * @param namespaceShowName namespace ShowName - * @param namespaceDesc namespace Desc - * @return whether edit ok - * @throws NacosException NacosException - */ - @RequestMapping(method = RequestMethod.PUT) - @ResponseBody - public Boolean editNamespace(HttpServletRequest request, HttpServletResponse response, - @RequestParam("namespace") String namespace, - @RequestParam("namespaceShowName") String namespaceShowName, - @RequestParam(value = "namespaceDesc", required = false) String namespaceDesc) - throws NacosException { - // TODO 获取用kp - persistService.updateTenantNameAtomic("1", namespace, namespaceShowName, namespaceDesc); - return true; - } + /** + * edit namespace + * + * @param request request + * @param response response + * @param namespace namespace + * @param namespaceShowName namespace ShowName + * @param namespaceDesc namespace Desc + * @return whether edit ok + * @throws NacosException NacosException + */ + @RequestMapping(method = RequestMethod.PUT) + @ResponseBody + public Boolean editNamespace(HttpServletRequest request, HttpServletResponse response, + @RequestParam("namespace") String namespace, + @RequestParam("namespaceShowName") String namespaceShowName, + @RequestParam(value = "namespaceDesc", required = false) String namespaceDesc) + throws NacosException { + // TODO 获取用kp + persistService.updateTenantNameAtomic("1", namespace, namespaceShowName, namespaceDesc); + return true; + } - /** - * del namespace by id - * - * @param request request - * @param response response - * @param namespaceId namespace Id - * @return whether del ok - * @throws NacosException NacosException - */ - @RequestMapping(method = RequestMethod.DELETE) - @ResponseBody - public Boolean deleteConfig(HttpServletRequest request, HttpServletResponse response, - @RequestParam("namespaceId") String namespaceId) throws NacosException { - persistService.removeTenantInfoAtomic("1", namespaceId); - return true; - } + /** + * del namespace by id + * + * @param request request + * @param response response + * @param namespaceId namespace Id + * @return whether del ok + * @throws NacosException NacosException + */ + @RequestMapping(method = RequestMethod.DELETE) + @ResponseBody + public Boolean deleteConfig(HttpServletRequest request, HttpServletResponse response, + @RequestParam("namespaceId") String namespaceId) throws NacosException { + persistService.removeTenantInfoAtomic("1", namespaceId); + return true; + } } diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/controller/ServerStateController.java b/pigx-register/src/main/java/com/alibaba/nacos/console/controller/ServerStateController.java old mode 100755 new mode 100644 index f1fb43ead..40907f748 --- a/pigx-register/src/main/java/com/alibaba/nacos/console/controller/ServerStateController.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/controller/ServerStateController.java @@ -25,6 +25,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; + import java.util.HashMap; import java.util.Map; @@ -36,25 +37,24 @@ import java.util.Map; @RequestMapping("/v1/console/server") public class ServerStateController { - private static final Logger logger = LoggerFactory.getLogger(ServerStateController.class); + private static final Logger logger = LoggerFactory.getLogger(ServerStateController.class); - public static String VERSION ; + public static String VERSION; - @ResponseBody - @RequestMapping(value = "state", method = RequestMethod.GET) - public ResponseEntity serverState() { - Map serverState = new HashMap(3); - serverState.put("standalone_mode",SystemUtils.STANDALONE_MODE ? - SystemUtils.STANDALONE_MODE_ALONE : SystemUtils.STANDALONE_MODE_CLUSTER); + @ResponseBody + @RequestMapping(value = "state", method = RequestMethod.GET) + public ResponseEntity serverState() { + Map serverState = new HashMap(3); + serverState.put("standalone_mode", SystemUtils.STANDALONE_MODE ? + SystemUtils.STANDALONE_MODE_ALONE : SystemUtils.STANDALONE_MODE_CLUSTER); - serverState.put("function_mode", SystemUtils.FUNCTION_MODE); - serverState.put("version", VersionUtils.VERSION); - - return ResponseEntity.ok().body(serverState); - } + serverState.put("function_mode", SystemUtils.FUNCTION_MODE); + serverState.put("version", VersionUtils.VERSION); + return ResponseEntity.ok().body(serverState); + } } diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/filter/JwtAuthenticationTokenFilter.java b/pigx-register/src/main/java/com/alibaba/nacos/console/filter/JwtAuthenticationTokenFilter.java old mode 100755 new mode 100644 index 6d7e85459..918112bf4 --- a/pigx-register/src/main/java/com/alibaba/nacos/console/filter/JwtAuthenticationTokenFilter.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/filter/JwtAuthenticationTokenFilter.java @@ -35,46 +35,46 @@ import java.io.IOException; */ public class JwtAuthenticationTokenFilter extends OncePerRequestFilter { - private static final String TOKEN_PREFIX = "Bearer "; + private static final String TOKEN_PREFIX = "Bearer "; - private JwtTokenUtils tokenProvider; + private JwtTokenUtils tokenProvider; - public JwtAuthenticationTokenFilter(JwtTokenUtils tokenProvider) { - this.tokenProvider = tokenProvider; - } + public JwtAuthenticationTokenFilter(JwtTokenUtils tokenProvider) { + this.tokenProvider = tokenProvider; + } - @Override - protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException { - String jwt = resolveToken(request); + @Override + protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException { + String jwt = resolveToken(request); - if (jwt != null && !"".equals(jwt.trim()) && SecurityContextHolder.getContext().getAuthentication() == null) { - if (this.tokenProvider.validateToken(jwt)) { - /** - * get auth info - */ - Authentication authentication = this.tokenProvider.getAuthentication(jwt); - /** - * save user info to securityContext - */ - SecurityContextHolder.getContext().setAuthentication(authentication); - } - } + if (jwt != null && !"".equals(jwt.trim()) && SecurityContextHolder.getContext().getAuthentication() == null) { + if (this.tokenProvider.validateToken(jwt)) { + /** + * get auth info + */ + Authentication authentication = this.tokenProvider.getAuthentication(jwt); + /** + * save user info to securityContext + */ + SecurityContextHolder.getContext().setAuthentication(authentication); + } + } - chain.doFilter(request, response); - } + chain.doFilter(request, response); + } - /** - * Get token from header - */ - private String resolveToken(HttpServletRequest request) { - String bearerToken = request.getHeader(WebSecurityConfig.AUTHORIZATION_HEADER); - if (StringUtils.hasText(bearerToken) && bearerToken.startsWith(TOKEN_PREFIX)) { - return bearerToken.substring(7); - } - String jwt = request.getParameter(WebSecurityConfig.AUTHORIZATION_TOKEN); - if (StringUtils.hasText(jwt)) { - return jwt; - } - return null; - } + /** + * Get token from header + */ + private String resolveToken(HttpServletRequest request) { + String bearerToken = request.getHeader(WebSecurityConfig.AUTHORIZATION_HEADER); + if (StringUtils.hasText(bearerToken) && bearerToken.startsWith(TOKEN_PREFIX)) { + return bearerToken.substring(7); + } + String jwt = request.getParameter(WebSecurityConfig.AUTHORIZATION_TOKEN); + if (StringUtils.hasText(jwt)) { + return jwt; + } + return null; + } } diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/model/Namespace.java b/pigx-register/src/main/java/com/alibaba/nacos/console/model/Namespace.java old mode 100755 new mode 100644 index c617f10c0..42b76ce0d --- a/pigx-register/src/main/java/com/alibaba/nacos/console/model/Namespace.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/model/Namespace.java @@ -22,72 +22,72 @@ package com.alibaba.nacos.console.model; */ public class Namespace { - private String namespace; + private String namespace; - private String namespaceShowName; + private String namespaceShowName; - private int quota; + private int quota; - private int configCount; - /** - * 0 : Global configuration, 1 : Default private namespace ,2 : Custom namespace - */ - private int type; + private int configCount; + /** + * 0 : Global configuration, 1 : Default private namespace ,2 : Custom namespace + */ + private int type; - public String getNamespaceShowName() { - return namespaceShowName; - } + public Namespace() { + } - public void setNamespaceShowName(String namespaceShowName) { - this.namespaceShowName = namespaceShowName; - } + public Namespace(String namespace, String namespaceShowName) { + this.namespace = namespace; + this.namespaceShowName = namespaceShowName; + } - public String getNamespace() { - return namespace; - } + public Namespace(String namespace, String namespaceShowName, int quota, int configCount, int type) { + this.namespace = namespace; + this.namespaceShowName = namespaceShowName; + this.quota = quota; + this.configCount = configCount; + this.type = type; + } - public void setNamespace(String namespace) { - this.namespace = namespace; - } + public String getNamespaceShowName() { + return namespaceShowName; + } - public Namespace() { - } + public void setNamespaceShowName(String namespaceShowName) { + this.namespaceShowName = namespaceShowName; + } - public Namespace(String namespace, String namespaceShowName) { - this.namespace = namespace; - this.namespaceShowName = namespaceShowName; - } + public String getNamespace() { + return namespace; + } - public Namespace(String namespace, String namespaceShowName, int quota, int configCount, int type) { - this.namespace = namespace; - this.namespaceShowName = namespaceShowName; - this.quota = quota; - this.configCount = configCount; - this.type = type; - } + public void setNamespace(String namespace) { + this.namespace = namespace; + } - public int getQuota() { - return quota; - } + public int getQuota() { + return quota; + } - public void setQuota(int quota) { - this.quota = quota; - } + public void setQuota(int quota) { + this.quota = quota; + } - public int getConfigCount() { - return configCount; - } + public int getConfigCount() { + return configCount; + } - public void setConfigCount(int configCount) { - this.configCount = configCount; - } + public void setConfigCount(int configCount) { + this.configCount = configCount; + } - public int getType() { - return type; - } + public int getType() { + return type; + } - public void setType(int type) { - this.type = type; - } + public void setType(int type) { + this.type = type; + } } diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/model/NamespaceAllInfo.java b/pigx-register/src/main/java/com/alibaba/nacos/console/model/NamespaceAllInfo.java old mode 100755 new mode 100644 index ebd36bdf0..57e0d18b5 --- a/pigx-register/src/main/java/com/alibaba/nacos/console/model/NamespaceAllInfo.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/model/NamespaceAllInfo.java @@ -22,25 +22,23 @@ package com.alibaba.nacos.console.model; */ public class NamespaceAllInfo extends Namespace { - private String namespaceDesc; + private String namespaceDesc; - public String getNamespaceDesc() { - return namespaceDesc; - } + public NamespaceAllInfo() { + } - public void setNamespaceDesc(String namespaceDesc) { - this.namespaceDesc = namespaceDesc; - } + public NamespaceAllInfo(String namespace, String namespaceShowName, int quota, int configCount, int type, + String namespaceDesc) { + super(namespace, namespaceShowName, quota, configCount, type); + this.namespaceDesc = namespaceDesc; + } - public NamespaceAllInfo() { - } + public String getNamespaceDesc() { + return namespaceDesc; + } - ; - - public NamespaceAllInfo(String namespace, String namespaceShowName, int quota, int configCount, int type, - String namespaceDesc) { - super(namespace, namespaceShowName, quota, configCount, type); - this.namespaceDesc = namespaceDesc; - } + public void setNamespaceDesc(String namespaceDesc) { + this.namespaceDesc = namespaceDesc; + } } diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomAuthenticationProvider.java b/pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomAuthenticationProvider.java old mode 100755 new mode 100644 index 893cc313d..2516af535 --- a/pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomAuthenticationProvider.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomAuthenticationProvider.java @@ -31,25 +31,25 @@ import org.springframework.stereotype.Component; @Component public class CustomAuthenticationProvider implements AuthenticationProvider { - @Autowired - private CustomUserDetailsServiceImpl userDetailsService; + @Autowired + private CustomUserDetailsServiceImpl userDetailsService; - @Override - public Authentication authenticate(Authentication authentication) throws AuthenticationException { + @Override + public Authentication authenticate(Authentication authentication) throws AuthenticationException { - String username = (String) authentication.getPrincipal(); - String password = (String) authentication.getCredentials(); - UserDetails userDetails = userDetailsService.loadUserByUsername(username); + String username = (String) authentication.getPrincipal(); + String password = (String) authentication.getCredentials(); + UserDetails userDetails = userDetailsService.loadUserByUsername(username); - if (!password.equals(userDetails.getPassword())) { - return new UsernamePasswordAuthenticationToken(username, null, null); - } - return null; - } + if (!password.equals(userDetails.getPassword())) { + return new UsernamePasswordAuthenticationToken(username, null, null); + } + return null; + } - @Override - public boolean supports(Class aClass) { - return aClass.equals(UsernamePasswordAuthenticationToken.class); - } + @Override + public boolean supports(Class aClass) { + return aClass.equals(UsernamePasswordAuthenticationToken.class); + } } diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomUserDetails.java b/pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomUserDetails.java old mode 100755 new mode 100644 index 6e34e4a51..edfd5e14b --- a/pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomUserDetails.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomUserDetails.java @@ -29,45 +29,45 @@ import java.util.Collection; */ public class CustomUserDetails implements UserDetails { - private User user; + private User user; - public CustomUserDetails(User user) { - this.user = user; - } + public CustomUserDetails(User user) { + this.user = user; + } - @Override - public Collection getAuthorities() { - // TODO: get authorities - return AuthorityUtils.commaSeparatedStringToAuthorityList(""); - } + @Override + public Collection getAuthorities() { + // TODO: get authorities + return AuthorityUtils.commaSeparatedStringToAuthorityList(""); + } - @Override - public String getPassword() { - return user.getPassword(); - } + @Override + public String getPassword() { + return user.getPassword(); + } - @Override - public String getUsername() { - return user.getUsername(); - } + @Override + public String getUsername() { + return user.getUsername(); + } - @Override - public boolean isAccountNonExpired() { - return true; - } + @Override + public boolean isAccountNonExpired() { + return true; + } - @Override - public boolean isAccountNonLocked() { - return true; - } + @Override + public boolean isAccountNonLocked() { + return true; + } - @Override - public boolean isCredentialsNonExpired() { - return true; - } + @Override + public boolean isCredentialsNonExpired() { + return true; + } - @Override - public boolean isEnabled() { - return true; - } + @Override + public boolean isEnabled() { + return true; + } } diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomUserDetailsServiceImpl.java b/pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomUserDetailsServiceImpl.java old mode 100755 new mode 100644 index 649bb235d..70e1011d3 --- a/pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomUserDetailsServiceImpl.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/security/CustomUserDetailsServiceImpl.java @@ -32,15 +32,15 @@ import org.springframework.stereotype.Service; @Service public class CustomUserDetailsServiceImpl implements UserDetailsService { - @Autowired - private transient PersistService persistService; + @Autowired + private transient PersistService persistService; - @Override - public UserDetails loadUserByUsername(String userName) throws UsernameNotFoundException { - User user = persistService.findUserByUsername(userName); - if (user == null) { - throw new UsernameNotFoundException(userName); - } - return new CustomUserDetails(user); - } + @Override + public UserDetails loadUserByUsername(String userName) throws UsernameNotFoundException { + User user = persistService.findUserByUsername(userName); + if (user == null) { + throw new UsernameNotFoundException(userName); + } + return new CustomUserDetails(user); + } } diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/security/JwtAuthenticationEntryPoint.java b/pigx-register/src/main/java/com/alibaba/nacos/console/security/JwtAuthenticationEntryPoint.java old mode 100755 new mode 100644 index 9fe911c85..73483d7c5 --- a/pigx-register/src/main/java/com/alibaba/nacos/console/security/JwtAuthenticationEntryPoint.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/security/JwtAuthenticationEntryPoint.java @@ -34,13 +34,13 @@ import java.io.IOException; @Component public class JwtAuthenticationEntryPoint implements AuthenticationEntryPoint { - private static final Logger logger = LoggerFactory.getLogger(JwtAuthenticationEntryPoint.class); + private static final Logger logger = LoggerFactory.getLogger(JwtAuthenticationEntryPoint.class); - @Override - public void commence(HttpServletRequest httpServletRequest, - HttpServletResponse httpServletResponse, - AuthenticationException e) throws IOException, ServletException { - logger.error("Responding with unauthorized error. Message - {}", e.getMessage()); - httpServletResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized"); - } + @Override + public void commence(HttpServletRequest httpServletRequest, + HttpServletResponse httpServletResponse, + AuthenticationException e) throws IOException, ServletException { + logger.error("Responding with unauthorized error. Message - {}", e.getMessage()); + httpServletResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized"); + } } diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/utils/JwtTokenUtils.java b/pigx-register/src/main/java/com/alibaba/nacos/console/utils/JwtTokenUtils.java old mode 100755 new mode 100644 index 2671288b9..b48cf709a --- a/pigx-register/src/main/java/com/alibaba/nacos/console/utils/JwtTokenUtils.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/utils/JwtTokenUtils.java @@ -38,10 +38,8 @@ import java.util.List; @Component public class JwtTokenUtils { - private final Logger log = LoggerFactory.getLogger(JwtTokenUtils.class); - private static final String AUTHORITIES_KEY = "auth"; - + private final Logger log = LoggerFactory.getLogger(JwtTokenUtils.class); /** * secret key */ @@ -118,7 +116,7 @@ public class JwtTokenUtils { try { Jwts.parser().setSigningKey(secretKey).parseClaimsJws(token); return true; - } catch (SecurityException e) { + } catch (SignatureException e) { log.info("Invalid JWT signature."); log.trace("Invalid JWT signature trace: {}", e); } catch (MalformedJwtException e) { diff --git a/pigx-register/src/main/java/com/alibaba/nacos/console/utils/PasswordEncoderUtil.java b/pigx-register/src/main/java/com/alibaba/nacos/console/utils/PasswordEncoderUtil.java old mode 100755 new mode 100644 index 4e1587671..4dffd14e9 --- a/pigx-register/src/main/java/com/alibaba/nacos/console/utils/PasswordEncoderUtil.java +++ b/pigx-register/src/main/java/com/alibaba/nacos/console/utils/PasswordEncoderUtil.java @@ -24,7 +24,7 @@ import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; */ public class PasswordEncoderUtil { - public static void main(String[] args) { - System.out.println(new BCryptPasswordEncoder().encode("nacos")); - } + public static void main(String[] args) { + System.out.println(new BCryptPasswordEncoder().encode("nacos")); + } } diff --git a/pigx-register/src/main/resources/bootstrap.yml b/pigx-register/src/main/resources/bootstrap.yml index c566d0493..2266e9382 100755 --- a/pigx-register/src/main/resources/bootstrap.yml +++ b/pigx-register/src/main/resources/bootstrap.yml @@ -4,8 +4,10 @@ nacos: eventTaskInterval: 10 labelTaskInterval: 300 loadDataAtStart: false + security: # 删除此配置无需登录验证 + ignore: + urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/login,/v1/console/health/**,/v1/cs/**,/v1/ns/**,/v1/cmdb/**,/actuator/**,/v1/console/server/** -# 数据源相关配置 db: num: 1 user: root @@ -21,4 +23,5 @@ spring: server: tomcat: - basedir: logs \ No newline at end of file + basedir: logs + diff --git a/pigx-register/src/main/resources/static/console-fe/.babelrc b/pigx-register/src/main/resources/static/console-fe/.babelrc old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/.editorconfig b/pigx-register/src/main/resources/static/console-fe/.editorconfig old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/.eslintignore b/pigx-register/src/main/resources/static/console-fe/.eslintignore old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/.eslintrc b/pigx-register/src/main/resources/static/console-fe/.eslintrc old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/.gitignore b/pigx-register/src/main/resources/static/console-fe/.gitignore old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/.prettierignore b/pigx-register/src/main/resources/static/console-fe/.prettierignore old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/.prettierrc b/pigx-register/src/main/resources/static/console-fe/.prettierrc old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/README.md b/pigx-register/src/main/resources/static/console-fe/README.md old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/package.json b/pigx-register/src/main/resources/static/console-fe/package.json old mode 100755 new mode 100644 index 8cbc20288..5cdb349f9 --- a/pigx-register/src/main/resources/static/console-fe/package.json +++ b/pigx-register/src/main/resources/static/console-fe/package.json @@ -75,6 +75,7 @@ "react-router-dom": "^4.3.1", "react-router-redux": "^4.0.8", "redux": "^4.0.1", - "redux-thunk": "^2.3.0" + "redux-thunk": "^2.3.0", + "yamljs": "^0.3.0" } } diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/bootstrap.css b/pigx-register/src/main/resources/static/console-fe/public/css/bootstrap.css old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/codemirror.css b/pigx-register/src/main/resources/static/console-fe/public/css/codemirror.css old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/console1412.css b/pigx-register/src/main/resources/static/console-fe/public/css/console1412.css old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/font-awesome.css b/pigx-register/src/main/resources/static/console-fe/public/css/font-awesome.css old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/fonts/aliyun-console-font.eot b/pigx-register/src/main/resources/static/console-fe/public/css/fonts/aliyun-console-font.eot old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/fonts/aliyun-console-font.ttf b/pigx-register/src/main/resources/static/console-fe/public/css/fonts/aliyun-console-font.ttf old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/fonts/aliyun-console-font.woff b/pigx-register/src/main/resources/static/console-fe/public/css/fonts/aliyun-console-font.woff old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/fonts/font_515771_emcns5054x3whfr.ttf b/pigx-register/src/main/resources/static/console-fe/public/css/fonts/font_515771_emcns5054x3whfr.ttf old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/fonts/font_515771_emcns5054x3whfr.woff b/pigx-register/src/main/resources/static/console-fe/public/css/fonts/font_515771_emcns5054x3whfr.woff old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-bold.ttf b/pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-bold.ttf old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-bold.woff b/pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-bold.woff old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-bold.woff2 b/pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-bold.woff2 old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-regular.ttf b/pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-regular.ttf old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-regular.woff b/pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-regular.woff old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-regular.woff2 b/pigx-register/src/main/resources/static/console-fe/public/css/fonts/roboto-regular.woff2 old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/icon.css b/pigx-register/src/main/resources/static/console-fe/public/css/icon.css old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/css/merge.css b/pigx-register/src/main/resources/static/console-fe/public/css/merge.css old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/img/TB118jPv_mWBKNjSZFBXXXxUFXa-2000-390.svg b/pigx-register/src/main/resources/static/console-fe/public/img/TB118jPv_mWBKNjSZFBXXXxUFXa-2000-390.svg deleted file mode 100755 index 8264c1aea..000000000 --- a/pigx-register/src/main/resources/static/console-fe/public/img/TB118jPv_mWBKNjSZFBXXXxUFXa-2000-390.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/pigx-register/src/main/resources/static/console-fe/public/img/black_dot.png b/pigx-register/src/main/resources/static/console-fe/public/img/black_dot.png old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/img/nacos.png b/pigx-register/src/main/resources/static/console-fe/public/img/nacos.png old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/index.html b/pigx-register/src/main/resources/static/console-fe/public/index.html old mode 100755 new mode 100644 index 5d4dbe01b..cde191100 --- a/pigx-register/src/main/resources/static/console-fe/public/index.html +++ b/pigx-register/src/main/resources/static/console-fe/public/index.html @@ -19,7 +19,7 @@ Nacos - + diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/codemirror.addone.fullscreen.js b/pigx-register/src/main/resources/static/console-fe/public/js/codemirror.addone.fullscreen.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/codemirror.addone.json-lint.js b/pigx-register/src/main/resources/static/console-fe/public/js/codemirror.addone.json-lint.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/codemirror.addone.lint.js b/pigx-register/src/main/resources/static/console-fe/public/js/codemirror.addone.lint.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/codemirror.js b/pigx-register/src/main/resources/static/console-fe/public/js/codemirror.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/codemirror.lib.clike-lint.js b/pigx-register/src/main/resources/static/console-fe/public/js/codemirror.lib.clike-lint.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/codemirror.lib.json-lint.js b/pigx-register/src/main/resources/static/console-fe/public/js/codemirror.lib.json-lint.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/diff_match_patch.js b/pigx-register/src/main/resources/static/console-fe/public/js/diff_match_patch.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/javascript.js b/pigx-register/src/main/resources/static/console-fe/public/js/javascript.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/jquery.js b/pigx-register/src/main/resources/static/console-fe/public/js/jquery.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/loader.js b/pigx-register/src/main/resources/static/console-fe/public/js/loader.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/merge.js b/pigx-register/src/main/resources/static/console-fe/public/js/merge.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/base/worker/workerMain.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/base/worker/workerMain.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/bat.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/bat.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/coffee.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/coffee.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/cpp.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/cpp.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/csharp.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/csharp.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/css.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/css.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/dockerfile.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/dockerfile.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/fsharp.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/fsharp.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/go.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/go.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/handlebars.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/handlebars.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/html.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/html.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/ini.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/ini.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/java.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/java.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/less.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/less.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/lua.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/lua.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/markdown.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/markdown.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/msdax.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/msdax.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/objective-c.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/objective-c.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/php.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/php.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/postiats.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/postiats.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/powershell.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/powershell.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/pug.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/pug.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/python.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/python.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/r.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/r.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/razor.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/razor.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/ruby.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/ruby.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/sb.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/sb.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/scss.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/scss.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/solidity.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/solidity.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/sql.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/sql.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/swift.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/swift.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/vb.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/vb.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/xml.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/xml.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/yaml.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/basic-languages/src/yaml.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/contrib/suggest/browser/media/String_16x.svg b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/contrib/suggest/browser/media/String_16x.svg old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/contrib/suggest/browser/media/String_inverse_16x.svg b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/contrib/suggest/browser/media/String_inverse_16x.svg old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.css b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.css old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.de.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.de.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.es.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.es.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.fr.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.fr.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.hu.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.hu.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.it.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.it.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.ja.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.ja.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.ko.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.ko.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.pt-br.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.pt-br.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.ru.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.ru.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.tr.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.tr.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.zh-cn.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.zh-cn.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.zh-tw.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.nls.zh-tw.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/standalone/browser/quickOpen/symbol-sprite.svg b/pigx-register/src/main/resources/static/console-fe/public/js/vs/editor/standalone/browser/quickOpen/symbol-sprite.svg old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/css/cssMode.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/css/cssMode.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/css/cssWorker.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/css/cssWorker.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/html/htmlMode.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/html/htmlMode.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/html/htmlWorker.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/html/htmlWorker.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/json/jsonMode.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/json/jsonMode.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/json/jsonWorker.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/json/jsonWorker.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/typescript/lib/typescriptServices.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/typescript/lib/typescriptServices.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/typescript/src/mode.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/typescript/src/mode.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/typescript/src/worker.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/language/typescript/src/worker.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/vs/loader.js b/pigx-register/src/main/resources/static/console-fe/public/js/vs/loader.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/public/js/xml.js b/pigx-register/src/main/resources/static/console-fe/public/js/xml.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/BatchHandle/BatchHandle.js b/pigx-register/src/main/resources/static/console-fe/src/components/BatchHandle/BatchHandle.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/BatchHandle/index.js b/pigx-register/src/main/resources/static/console-fe/src/components/BatchHandle/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/BatchHandle/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/BatchHandle/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/CloneDialog/CloneDialog.js b/pigx-register/src/main/resources/static/console-fe/src/components/CloneDialog/CloneDialog.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/CloneDialog/index.js b/pigx-register/src/main/resources/static/console-fe/src/components/CloneDialog/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/CloneDialog/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/CloneDialog/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/DeleteDialog/DeleteDialog.js b/pigx-register/src/main/resources/static/console-fe/src/components/DeleteDialog/DeleteDialog.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/DeleteDialog/index.js b/pigx-register/src/main/resources/static/console-fe/src/components/DeleteDialog/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/DeleteDialog/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/DeleteDialog/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/DiffEditorDialog/DiffEditorDialog.js b/pigx-register/src/main/resources/static/console-fe/src/components/DiffEditorDialog/DiffEditorDialog.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/DiffEditorDialog/index.js b/pigx-register/src/main/resources/static/console-fe/src/components/DiffEditorDialog/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/DiffEditorDialog/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/DiffEditorDialog/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/EditorNameSpace/EditorNameSpace.js b/pigx-register/src/main/resources/static/console-fe/src/components/EditorNameSpace/EditorNameSpace.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/EditorNameSpace/index.js b/pigx-register/src/main/resources/static/console-fe/src/components/EditorNameSpace/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/EditorNameSpace/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/EditorNameSpace/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/ExportDialog/ExportDialog.js b/pigx-register/src/main/resources/static/console-fe/src/components/ExportDialog/ExportDialog.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/ExportDialog/index.js b/pigx-register/src/main/resources/static/console-fe/src/components/ExportDialog/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/ExportDialog/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/ExportDialog/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/ImportDialog/ImportDialog.js b/pigx-register/src/main/resources/static/console-fe/src/components/ImportDialog/ImportDialog.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/ImportDialog/index.js b/pigx-register/src/main/resources/static/console-fe/src/components/ImportDialog/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/ImportDialog/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/ImportDialog/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/MonacoEditor/MonacoEditor.tsx b/pigx-register/src/main/resources/static/console-fe/src/components/MonacoEditor/MonacoEditor.tsx old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/MonacoEditor/constant.ts b/pigx-register/src/main/resources/static/console-fe/src/components/MonacoEditor/constant.ts old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/MonacoEditor/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/MonacoEditor/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/MonacoEditor/index.tsx b/pigx-register/src/main/resources/static/console-fe/src/components/MonacoEditor/index.tsx old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/NameSpaceList/NameSpaceList.js b/pigx-register/src/main/resources/static/console-fe/src/components/NameSpaceList/NameSpaceList.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/NameSpaceList/index.js b/pigx-register/src/main/resources/static/console-fe/src/components/NameSpaceList/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/NameSpaceList/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/NameSpaceList/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/NewNameSpace/NewNameSpace.js b/pigx-register/src/main/resources/static/console-fe/src/components/NewNameSpace/NewNameSpace.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/NewNameSpace/index.js b/pigx-register/src/main/resources/static/console-fe/src/components/NewNameSpace/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/NewNameSpace/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/NewNameSpace/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/RegionGroup/RegionGroup.js b/pigx-register/src/main/resources/static/console-fe/src/components/RegionGroup/RegionGroup.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/RegionGroup/index.js b/pigx-register/src/main/resources/static/console-fe/src/components/RegionGroup/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/RegionGroup/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/RegionGroup/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/ShowCodeing.js b/pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/ShowCodeing.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/index.js b/pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/SuccessDialog/SuccessDialog.js b/pigx-register/src/main/resources/static/console-fe/src/components/SuccessDialog/SuccessDialog.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/SuccessDialog/index.js b/pigx-register/src/main/resources/static/console-fe/src/components/SuccessDialog/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/SuccessDialog/index.scss b/pigx-register/src/main/resources/static/console-fe/src/components/SuccessDialog/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/config.js b/pigx-register/src/main/resources/static/console-fe/src/config.js old mode 100755 new mode 100644 index a26530339..f47f11321 --- a/pigx-register/src/main/resources/static/console-fe/src/config.js +++ b/pigx-register/src/main/resources/static/console-fe/src/config.js @@ -24,7 +24,7 @@ module.exports = { { key: 'home', // 用作顶部菜单的选中 text: 'HOME', - link: 'https://pig4cloud.com', + link: 'https://nacos.io/en-us/index.html', }, { key: 'docs', @@ -84,7 +84,7 @@ module.exports = { { key: 'home', text: '首页', - link: 'https://pig4cloud.com', + link: 'https://nacos.io/zh-cn/', }, { key: 'docs', diff --git a/pigx-register/src/main/resources/static/console-fe/src/constants.js b/pigx-register/src/main/resources/static/console-fe/src/constants.js old mode 100755 new mode 100644 index 6e254b966..5b67ffe4d --- a/pigx-register/src/main/resources/static/console-fe/src/constants.js +++ b/pigx-register/src/main/resources/static/console-fe/src/constants.js @@ -20,3 +20,6 @@ export const LANGUAGE_SWITCH = 'LANGUAGE_SWITCH'; export const REDUX_DEVTOOLS = '__REDUX_DEVTOOLS_EXTENSION__'; export const GET_STATE = 'GET_STATE'; + +export const GET_SUBSCRIBERS = 'GET_SUBSCRIBERS'; +export const REMOVE_SUBSCRIBERS = 'REMOVE_SUBSCRIBERS'; diff --git a/pigx-register/src/main/resources/static/console-fe/src/globalLib.js b/pigx-register/src/main/resources/static/console-fe/src/globalLib.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/i18ndoc.js b/pigx-register/src/main/resources/static/console-fe/src/i18ndoc.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/index.js b/pigx-register/src/main/resources/static/console-fe/src/index.js old mode 100755 new mode 100644 index 07b6752d1..2bea03949 --- a/pigx-register/src/main/resources/static/console-fe/src/index.js +++ b/pigx-register/src/main/resources/static/console-fe/src/index.js @@ -41,6 +41,9 @@ import ListeningToQuery from './pages/ConfigurationManagement/ListeningToQuery'; import ConfigurationManagement from './pages/ConfigurationManagement/ConfigurationManagement'; import ServiceList from './pages/ServiceManagement/ServiceList'; import ServiceDetail from './pages/ServiceManagement/ServiceDetail'; +import SubscriberList from './pages/ServiceManagement/SubscriberList'; +import ClusterNodeList from './pages/ClusterManagement/ClusterNodeList'; +import Welcome from './pages/Welcome/Welcome'; import reducers from './reducers'; import { changeLanguage } from './reducers/locale'; @@ -68,7 +71,8 @@ const store = createStore( ); const MENU = [ - { path: '/', exact: true, render: () => }, + { path: '/', exact: true, render: () => }, + { path: '/welcome', component: Welcome }, { path: '/namespace', component: Namespace }, { path: '/newconfig', component: Newconfig }, { path: '/configsync', component: Configsync }, @@ -81,6 +85,8 @@ const MENU = [ { path: '/configurationManagement', component: ConfigurationManagement }, { path: '/serviceManagement', component: ServiceList }, { path: '/serviceDetail', component: ServiceDetail }, + { path: '/subscriberList', component: SubscriberList }, + { path: '/clusterManagement', component: ClusterNodeList }, ]; @connect( diff --git a/pigx-register/src/main/resources/static/console-fe/src/index.scss b/pigx-register/src/main/resources/static/console-fe/src/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/layouts/Header.js b/pigx-register/src/main/resources/static/console-fe/src/layouts/Header.js old mode 100755 new mode 100644 index 1e5bae145..5b9520f09 --- a/pigx-register/src/main/resources/static/console-fe/src/layouts/Header.js +++ b/pigx-register/src/main/resources/static/console-fe/src/layouts/Header.js @@ -67,23 +67,23 @@ class Header extends React.Component { location: { pathname }, } = this.props; const { home, docs, blog, community, languageSwitchButton } = locale; - const BASE_URL = `https://pig4cloud.com/`; + const BASE_URL = `https://nacos.io/${language.toLocaleLowerCase()}/`; const NAV_MENU = [ { id: 1, title: home, link: BASE_URL }, - { id: 2, title: docs, link: BASE_URL }, - { id: 3, title: blog, link: BASE_URL }, - { id: 4, title: community, link: BASE_URL }, + { id: 2, title: docs, link: `${BASE_URL}docs/what-is-nacos.html` }, + { id: 3, title: blog, link: `${BASE_URL}blog/index.html` }, + { id: 4, title: community, link: `${BASE_URL}community/index.html` }, ]; return (
{siteConfig.name} { @@ -407,6 +407,12 @@ class MainLayout extends React.Component { ) { item.enable = true; } + if ( + item.serviceName === 'clusterManagementVirtual' && + (functionMode === null || functionMode === 'cluster') + ) { + item.enable = true; + } return item; }), }, @@ -418,6 +424,9 @@ class MainLayout extends React.Component { if (functionMode === 'naming' && location.pathname === configUrl) { history.push(serviceUrl); } + if (functionMode === 'cluster' && location.pathname === clusterUrl) { + history.push(clusterUrl); + } } componentWillReceiveProps() { diff --git a/pigx-register/src/main/resources/static/console-fe/src/layouts/index.scss b/pigx-register/src/main/resources/static/console-fe/src/layouts/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/lib.js b/pigx-register/src/main/resources/static/console-fe/src/lib.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/locales/en-US.js b/pigx-register/src/main/resources/static/console-fe/src/locales/en-US.js old mode 100755 new mode 100644 index 524425aec..acc8e2982 --- a/pigx-register/src/main/resources/static/console-fe/src/locales/en-US.js +++ b/pigx-register/src/main/resources/static/console-fe/src/locales/en-US.js @@ -44,8 +44,11 @@ const I18N_CONF = { listeningToQuery: 'Listening Query', serviceManagementVirtual: 'ServiceManagement', serviceManagement: 'Service List', + subscriberList: 'Subscribers', serviceDetail: 'Service Details', namespace: 'Namespace', + clusterManagementVirtual: 'ClusterManagement', + clusterManagement: 'Cluster Node List', }, NameSpace: { namespace: 'Namespaces', @@ -84,11 +87,37 @@ const I18N_CONF = { columnHealthyInstanceCount: 'Healthy Instance Count', operation: 'Operation', detail: 'Details', + sampleCode: 'Code Example', deleteAction: 'Delete', prompt: 'Confirm', promptDelete: 'Do you want to delete the service?', create: 'Create Service', }, + SubscriberList: { + subscriberList: 'Subscriber List', + serviceName: 'Service Name', + serviceNamePlaceholder: 'Enter Service Name', + groupName: 'Group Name', + groupNamePlaceholder: 'Enter Group Name', + query: 'Search', + pubNoData: 'No results found.', + address: 'Address', + clientVersion: 'Client Version', + appName: 'Application Name', + searchServiceNamePrompt: 'Service name required!', + }, + ClusterNodeList: { + clusterNodeList: 'Node List', + nodeIp: 'NodeIp', + nodeIpPlaceholder: 'Please enter node Ip', + query: 'Search', + pubNoData: 'No results found.', + nodeState: 'NodeState', + clusterTerm: 'ClusterTerm', + leaderDueMs: 'LeaderDue(ms)', + heartbeatDueMs: 'HeartbeatDue(ms)', + voteFor: 'VoteFor', + }, EditClusterDialog: { updateCluster: 'Update Cluster', checkType: 'Check Type', @@ -223,6 +252,45 @@ const I18N_CONF = { pleaseEnterTag: 'Enter Tag', application: 'Application', operation: 'Operation', + export: 'Export query results', + import: 'Import', + uploadBtn: 'Upload File', + importSucc: 'The import was successful', + importAbort: 'Import abort', + importSuccBegin: 'The import was successful,with ', + importSuccEnd: 'configuration items imported', + importFail: 'Import failed', + importDataValidationError: 'No legitimate data was read, please check the imported data file.', + metadataIllegal: 'The imported metadata file is illegal', + namespaceNotExist: 'namespace does not exist', + abortImport: 'Abort import', + skipImport: 'Skip', + overwriteImport: 'Overwrite', + importRemind: + 'File upload will be imported directly into the configuration, please be careful!', + samePreparation: 'Same preparation', + targetNamespace: 'Target namespace', + conflictConfig: 'Conflict-detected configuration items', + failureEntries: 'Failure entries', + unprocessedEntries: 'Unprocessed entries', + skippedEntries: 'skipped entries', + exportSelected: 'Export selected configs', + clone: 'Clone', + exportSelectedAlertTitle: 'Export config', + exportSelectedAlertContent: 'please select the configuration to export', + cloneSucc: 'The clone was successful', + cloneAbort: 'Clone abort', + cloneSuccBegin: 'The clone was successful,with ', + cloneSuccEnd: 'configuration items cloned', + cloneFail: 'Clone failed', + getNamespaceFailed: 'get the namespace failed', + startCloning: 'Start Clone', + cloningConfiguration: 'Clone config', + source: 'Source :', + configurationNumber: 'Items:', + target: 'Target:', + selectNamespace: 'Select Namespace', + selectedEntry: '| Selected Entry', }, NewConfig: { newListingMain: 'Create Configuration', @@ -283,9 +351,12 @@ const I18N_CONF = { }, ConfigEditor: { official: 'Official', + production: 'Production', + beta: 'BETA', wrong: 'Error', submitFailed: 'Cannot be empty, submit failed', toedittitle: 'Edit Configuration', + newConfigEditor: 'New Config Editor', toedit: 'Edit Configuration', vdchart: 'Illegal characters not allowed', recipientFrom: 'Data ID cannot be empty', @@ -301,8 +372,12 @@ const I18N_CONF = { escExit: 'Press F1 to view in full screen', releaseBeta: 'Press Esc to exit ', release: 'Beta Publish', + stopPublishBeta: 'Stop Beta', + betaPublish: 'Beta Publish:', + betaSwitchPrompt: 'Not checked by default.', publish: 'Publish', back: 'Back', + codeValErrorPrompt: 'Configuration information may have syntax errors. Are you sure to submit?', }, EditorNameSpace: { notice: 'Notice', diff --git a/pigx-register/src/main/resources/static/console-fe/src/locales/index.js b/pigx-register/src/main/resources/static/console-fe/src/locales/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/locales/zh-CN.js b/pigx-register/src/main/resources/static/console-fe/src/locales/zh-CN.js old mode 100755 new mode 100644 index 84edb7e22..df9bf0e09 --- a/pigx-register/src/main/resources/static/console-fe/src/locales/zh-CN.js +++ b/pigx-register/src/main/resources/static/console-fe/src/locales/zh-CN.js @@ -44,8 +44,11 @@ const I18N_CONF = { listeningToQuery: '监听查询', serviceManagementVirtual: '服务管理', serviceManagement: '服务列表', + subscriberList: '订阅者列表', serviceDetail: '服务详情', namespace: '命名空间', + clusterManagementVirtual: '集群管理', + clusterManagement: '节点列表', }, NameSpace: { namespace: '命名空间', @@ -84,11 +87,37 @@ const I18N_CONF = { columnHealthyInstanceCount: '健康实例数', operation: '操作', detail: '详情', + sampleCode: '示例代码', deleteAction: '删除', prompt: '提示', promptDelete: '确定要删除当前服务吗?', create: '创建服务', }, + SubscriberList: { + subscriberList: '订阅者列表', + serviceName: '服务名称', + serviceNamePlaceholder: '请输入服务名称', + groupName: '分组名称', + groupNamePlaceholder: '请输入分组名称', + query: '查询', + pubNoData: '没有数据', + address: '地址', + clientVersion: '客户端版本', + appName: '应用名', + searchServiceNamePrompt: '请输入服务名称!', + }, + ClusterNodeList: { + clusterNodeList: '节点列表', + nodeIp: '节点Ip', + nodeIpPlaceholder: '请输入节点Ip', + query: '查询', + pubNoData: '没有数据', + nodeState: '节点状态', + clusterTerm: '集群任期', + leaderDueMs: 'Leader止时(ms)', + heartbeatDueMs: '心跳止时(ms)', + voteFor: '投票对象', + }, EditClusterDialog: { updateCluster: '更新集群', checkType: '检查类型', @@ -222,6 +251,44 @@ const I18N_CONF = { pleaseEnterTag: '请输入标签', application: '归属应用:', operation: '操作', + export: '导出查询结果', + import: '导入配置', + uploadBtn: '上传文件', + importSucc: '导入成功', + importAbort: '导入终止', + importSuccBegin: '导入成功,导入了', + importSuccEnd: '项配置', + importFail: '导入失败', + importDataValidationError: '未读取到合法数据,请检查导入的数据文件。', + metadataIllegal: '导入的元数据文件非法', + namespaceNotExist: 'namespace 不存在', + abortImport: '终止导入', + skipImport: '跳过', + overwriteImport: '覆盖', + importRemind: '文件上传后将直接导入配置,请务必谨慎操作!', + samePreparation: '相同配置', + targetNamespace: '目标空间', + conflictConfig: '检测到冲突的配置项', + failureEntries: '失败的条目', + unprocessedEntries: '未处理的条目', + skippedEntries: '跳过的条目', + exportSelected: '导出选中的配置', + clone: '克隆', + exportSelectedAlertTitle: '配置导出', + exportSelectedAlertContent: '请选择要导出的配置', + cloneSucc: '克隆成功', + cloneAbort: '克隆终止', + cloneSuccBegin: '克隆成功,克隆了', + cloneSuccEnd: '项配置', + cloneFail: '克隆失败', + getNamespaceFailed: '获取命名空间失败', + startCloning: '开始克隆', + cloningConfiguration: '克隆配置', + source: '源空间:', + configurationNumber: '配置数量:', + target: '目标空间:', + selectNamespace: '请选择命名空间', + selectedEntry: '| 选中的条目', }, NewConfig: { newListingMain: '新建配置', @@ -282,10 +349,13 @@ const I18N_CONF = { }, ConfigEditor: { official: '正式', + production: '正式', + beta: 'BETA', wrong: '错误', submitFailed: '不能为空, 提交失败', toedittitle: '编辑配置', toedit: '编辑配置', + newConfigEditor: '新建配置', vdchart: '请勿输入非法字符', recipientFrom: 'Data ID不能为空', homeApplication: 'Group不能为空', @@ -293,15 +363,19 @@ const I18N_CONF = { groupNotEmpty: '更多高级选项', tags: '标签:', pleaseEnterTag: '请输入标签', - targetEnvironment: '归属应用:', + targetEnvironment: '归属应用:', description: '描述:', - format: '配置格式:', + format: '配置格式:', configcontent: '配置内容', escExit: '按F1显示全屏', releaseBeta: '按Esc退出全屏', release: '发布Beta', + stopPublishBeta: '停止Beta', + betaPublish: 'Beta发布:', + betaSwitchPrompt: '默认不要勾选。', publish: '发布', back: '返回', + codeValErrorPrompt: '配置信息可能有语法错误, 确定提交吗?', }, EditorNameSpace: { notice: '提示', diff --git a/pigx-register/src/main/resources/static/console-fe/src/menu.js b/pigx-register/src/main/resources/static/console-fe/src/menu.js old mode 100755 new mode 100644 index c8bc67347..a2f9ff07f --- a/pigx-register/src/main/resources/static/console-fe/src/menu.js +++ b/pigx-register/src/main/resources/static/console-fe/src/menu.js @@ -209,6 +209,21 @@ module.exports = { }, ], }, + { + isExtend: false, + name: '订阅者列表', + title: '订阅者列表', + isVirtual: false, + projectName: 'nacos', + serviceName: 'subscriberList', + link: 'subscriberList', + hasFusion: true, + template: '', + registerName: 'com.alibaba.nacos.page.subscriberList', + useRouter: false, + id: 'subscriberList', + children: [], + }, ], }, { @@ -227,6 +242,37 @@ module.exports = { useRouter: false, id: 'namespace', }, + { + enable: false, + isExtend: true, + name: '集群管理', + title: '集群管理', + isVirtual: true, + projectName: 'nacos', + serviceName: 'clusterManagementVirtual', + link: 'clusterManagementVirtual', + hasFusion: true, + template: '', + registerName: 'com.alibaba.nacos.page.clusterManagementVirtual', + useRouter: false, + id: 'com.alibaba.nacos.page.clusterManagementVirtual', + children: [ + { + isExtend: false, + name: '节点状态', + title: '节点状态', + isVirtual: false, + projectName: 'nacos', + serviceName: 'clusterManagement', + link: 'clusterManagement', + hasFusion: true, + template: '', + registerName: 'com.alibaba.nacos.page.clusterManagement', + useRouter: false, + id: 'clusterManagement', + }, + ], + }, ], defaultKey: 'configurationManagement', projectName: 'nacos', diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigDetail/ConfigDetail.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigDetail/ConfigDetail.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigDetail/index.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigDetail/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigDetail/index.scss b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigDetail/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/ConfigEditor.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/ConfigEditor.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/index.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/index.js old mode 100755 new mode 100644 index 3b3fa94dd..983d38f29 --- a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/index.js +++ b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/index.js @@ -11,6 +11,6 @@ * limitations under the License. */ -import ConfigEditor from './ConfigEditor'; +import ConfigEditor from './NewConfigEditor'; export default ConfigEditor; diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/index.scss b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/index.scss old mode 100755 new mode 100644 index f278dae3e..30d9a632c --- a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/index.scss +++ b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/index.scss @@ -10,3 +10,64 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +.config-editor { + padding: 10px; + .func-title { + overflow: hidden; + height: 50px; + width: 100%; + font-weight: 500; + margin-bottom: 9px; + font-size: 18px; + line-height: 36px; + color: #73777a; + } + .form { + display: table; + .next-form-item { + display: table-row; + .next-form-item-label { + white-space: nowrap; + word-break: keep-all; + } + .next-form-item-control, + .next-select { + width: 100%; + } + .next-form-item-label, + .next-form-item-control { + display: table-cell; + } + } + .next-form-item-control { + padding-bottom: 12px; + } + .next-checkbox-label { + color: #73777a; + font-weight: normal; + } + .next-radio-label { + color: #73777a; + } + .switch { + color: #33cde5; + cursor: pointer; + user-select: none; + } + .help-label > * { + display: inline-block; + } + .help-label > i { + color: #1dc11d; + margin: 0 0.25em; + } + } + .button-list { + text-align: right; + button { + margin-left: 1em; + font-size: 14px; + } + } +} diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigRollback/ConfigRollback.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigRollback/ConfigRollback.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigRollback/index.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigRollback/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigRollback/index.scss b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigRollback/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigSync/ConfigSync.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigSync/ConfigSync.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigSync/index.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigSync/index.js old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigSync/index.scss b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigSync/index.scss old mode 100755 new mode 100644 diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js old mode 100755 new mode 100644 index 71ce3ea34..fb3f245cc --- a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js +++ b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js @@ -29,6 +29,9 @@ import { Pagination, Select, Table, + Grid, + Upload, + Message, } from '@alifd/next'; import BatchHandle from 'components/BatchHandle'; import RegionGroup from 'components/RegionGroup'; @@ -41,6 +44,8 @@ import './index.scss'; import { LANGUAGE_KEY } from '../../../constants'; const { Panel } = Collapse; +const { Row, Col } = Grid; +const configsTableSelected = new Map(); @ConfigProvider.config class ConfigurationManagement extends React.Component { @@ -667,6 +672,376 @@ class ConfigurationManagement extends React.Component { }); } + exportData() { + let url = + `v1/cs/configs?export=true&group=${this.group}&tenant=${getParams('namespace')}&appName=${ + this.appName + }&ids=&dataId=` + this.dataId; + window.location.href = url; + } + + exportSelectedData() { + const { locale = {} } = this.props; + if (configsTableSelected.size === 0) { + Dialog.alert({ + title: locale.exportSelectedAlertTitle, + content: locale.exportSelectedAlertContent, + }); + } else { + let idsStr = ''; + configsTableSelected.forEach((value, key, map) => { + idsStr = `${idsStr + key},`; + }); + let url = `v1/cs/configs?export=true&group=&tenant=&appName=&ids=${idsStr}`; + window.location.href = url; + } + } + + cloneSelectedDataConfirm() { + const { locale = {} } = this.props; + const self = this; + self.field.setValue('sameConfigPolicy', 'ABORT'); + self.field.setValue('cloneTargetSpace', undefined); + if (configsTableSelected.size === 0) { + Dialog.alert({ + title: locale.exportSelectedAlertTitle, + content: locale.exportSelectedAlertContent, + }); + return; + } + request({ + url: 'v1/console/namespaces?namespaceId=', + beforeSend() { + self.openLoading(); + }, + success(data) { + if (!data || data.code !== 200 || !data.data) { + Dialog.alert({ + title: locale.getNamespaceFailed, + content: locale.getNamespaceFailed, + }); + } + let namespaces = data.data; + let namespaceSelectData = []; + namespaces.forEach(item => { + if (self.state.nownamespace_id !== item.namespace) { + let dataItem = {}; + if (item.namespaceShowName === 'public') { + dataItem.label = 'public | public'; + dataItem.value = 'public'; + } else { + dataItem.label = `${item.namespaceShowName} | ${item.namespace}`; + dataItem.value = item.namespace; + } + namespaceSelectData.push(dataItem); + } + }); + const cloneConfirm = Dialog.confirm({ + title: locale.cloningConfiguration, + footer: false, + content: ( +
+
+ {locale.source} + {self.state.nownamespace_name} |{' '} + {self.state.nownamespace_id} +
+
+ {locale.configurationNumber} + {configsTableSelected.size} + {locale.selectedEntry} +
+
+ {'*'} + {locale.target} + { + if (value) { + self.field.setValue('sameConfigPolicy', value); + } + }} + /> +
+
+ +
+
+ ), + }); + }, + error(data) { + self.setState({ + dataSource: [], + total: 0, + currentPage: 0, + }); + }, + complete() { + self.closeLoading(); + }, + }); + } + + processImportAndCloneResult(ret, locale, confirm, isImport) { + const resultCode = ret.code; + if (resultCode === 200) { + confirm.hide(); + if (ret.data.failData && ret.data.failData.length > 0) { + Dialog.alert({ + title: isImport ? locale.importAbort : locale.cloneAbort, + content: ( +
+

+ {locale.conflictConfig}:{ret.data.failData[0].group}/{ret.data.failData[0].dataId} +

+
+
+ {locale.failureEntries}: {ret.data.failData.length} +
+ + + +
+
+
+
+ {locale.unprocessedEntries}: {ret.data.skipData ? ret.data.skipData.length : 0} +
+ + + +
+
+
+ ), + }); + } else if (ret.data.skipCount && ret.data.skipCount > 0) { + Dialog.alert({ + title: isImport ? locale.importSucc : locale.cloneSucc, + content: ( +
+
+
+ {locale.skippedEntries}: {ret.data.skipData.length} +
+ + + +
+
+
+ ), + }); + } else { + let message = `${isImport ? locale.importSuccBegin : locale.cloneSuccBegin}${ + ret.data.succCount + }${isImport ? locale.importSuccEnd : locale.cloneSuccEnd}`; + Message.success(message); + } + this.getData(); + } else { + let alertContent = isImport ? locale.importFailMsg : locale.cloneFailMsg; + if (resultCode === 100001) { + alertContent = locale.namespaceNotExist; + } + if (resultCode === 100002) { + alertContent = locale.metadataIllegal; + } + if (resultCode === 100003 || resultCode === 100004 || resultCode === 100005) { + alertContent = locale.importDataValidationError; + } + Dialog.alert({ + title: isImport ? locale.importFail : locale.cloneFail, + content: alertContent, + }); + } + } + + importData() { + const { locale = {} } = this.props; + const self = this; + self.field.setValue('sameConfigPolicy', 'ABORT'); + const uploadProps = { + accept: 'application/zip', + action: `v1/cs/configs?import=true&namespace=${getParams('namespace')}`, + data: { + policy: self.field.getValue('sameConfigPolicy'), + }, + beforeUpload(file, options) { + options.data = { + policy: self.field.getValue('sameConfigPolicy'), + }; + return options; + }, + onSuccess(ret) { + self.processImportAndCloneResult(ret.response, locale, importConfirm, true); + }, + onError(err) { + Dialog.alert({ + title: locale.importFail, + content: locale.importDataValidationError, + }); + }, + }; + const importConfirm = Dialog.confirm({ + title: locale.import, + footer: false, + content: ( +
+
+ {locale.targetNamespace}: + {this.state.nownamespace_name} |{' '} + {this.state.nownamespace_id} +
+
+ {locale.samePreparation}: + ",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+I+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+T+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]")}),le(function(e){e.innerHTML="";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),i.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=$.test(c=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&le(function(e){p.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",R)}),g=g.length&&new RegExp(g.join("|")),s=s.length&&new RegExp(s.join("|")),t=$.test(i.compareDocumentPosition),y=t||$.test(i.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,a=t&&t.parentNode;return e===a||!(!a||1!==a.nodeType||!(n.contains?n.contains(a):e.compareDocumentPosition&&16&e.compareDocumentPosition(a)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument===_&&y(_,e)?-1:t===k||t.ownerDocument===_&&y(_,t)?1:l?j(l,e)-j(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,a=0,o=e.parentNode,r=t.parentNode,i=[e],s=[t];if(!o||!r)return e===k?-1:t===k?1:o?-1:r?1:l?j(l,e)-j(l,t):0;if(o===r)return ce(e,t);for(n=e;n=n.parentNode;)i.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;i[a]===s[a];)a++;return a?ce(i[a],s[a]):i[a]===_?-1:s[a]===_?1:0}),k},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&w(e),t=t.replace(K,"='$1']"),p.matchesSelector&&S&&!L[t+" "]&&(!s||!s.test(t))&&(!g||!g.test(t)))try{var n=c.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&B.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=f[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&f(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,a,o){return function(e){var t=re.attr(e,n);return null==t?"!="===a:!a||(t+="","="===a?t===o:"!="===a?t!==o:"^="===a?o&&0===t.indexOf(o):"*="===a?o&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,a){return _(n)?T.grep(e,function(e,t){return!!n.call(e,t,e)!==a}):n.nodeType?T.grep(e,function(e){return e===n!==a}):"string"!=typeof n?T.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var a,o;if(!e)return this;if(n=n||E,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):_(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this);if(!(a="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:O.exec(e))||!a[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(a[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(a[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),C.test(a[1])&&T.isPlainObject(t))for(a in t)_(this[a])?this[a](t[a]):this.attr(a,t[a]);return this}return(o=S.getElementById(a[2]))&&(this[0]=o,this.length=1),this}).prototype=T.fn,E=T(S);var N=/^(?:parents|prev(?:Until|All))/,Y={children:!0,contents:!0,next:!0,prev:!0};function j(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]+)/i,ce=/^$|^module$|\/(?:java|ecma)script/i,de={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function fe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&L(e,t)?T.merge([e],n):n}function pe(e,t){for(var n=0,a=e.length;nx",y.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue;var _e=S.documentElement,ve=/^key/,be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Me=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function ke(){return!1}function Se(){try{return S.activeElement}catch(e){}}function Te(e,t,n,a,o,r){var i,s;if("object"==typeof t){for(s in"string"!=typeof n&&(a=a||n,n=void 0),t)Te(e,s,n,a,t[s],r);return e}if(null==a&&null==o?(o=n,a=n=void 0):null==o&&("string"==typeof n?(o=a,a=void 0):(o=a,a=n,n=void 0)),!1===o)o=ke;else if(!o)return e;return 1===r&&(i=o,(o=function(e){return T().off(e),i.apply(this,arguments)}).guid=i.guid||(i.guid=T.guid++)),e.each(function(){T.event.add(this,t,o,a,n)})}T.event={global:{},add:function(t,e,n,a,o){var r,i,s,l,u,c,d,f,p,h,m,g=J.get(t);if(g)for(n.handler&&(n=(r=n).handler,o=r.selector),o&&T.find.matchesSelector(_e,o),n.guid||(n.guid=T.guid++),(l=g.events)||(l=g.events={}),(i=g.handle)||(i=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(P)||[""]).length;u--;)p=m=(s=Me.exec(e[u])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},c=T.extend({type:p,origType:m,data:a,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:h.join(".")},r),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,a,h,i)||t.addEventListener&&t.addEventListener(p,i)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,c):f.push(c),T.event.global[p]=!0)},remove:function(e,t,n,a,o){var r,i,s,l,u,c,d,f,p,h,m,g=J.hasData(e)&&J.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(P)||[""]).length;u--;)if(p=m=(s=Me.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},f=l[p=(a?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=r=f.length;r--;)c=f[r],!o&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||a&&a!==c.selector&&("**"!==a||!c.selector)||(f.splice(r,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));i&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||T.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[u],n,a,!0);T.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,a,o,r,i,s=T.event.fix(e),l=new Array(arguments.length),u=(J.get(this,"events")||{})[s.type]||[],c=T.event.special[s.type]||{};for(l[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Le=/\s*$/g;function Ee(e,t){return L(e,"table")&&L(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ye(e,t){var n,a,o,r,i,s,l,u;if(1===t.nodeType){if(J.hasData(e)&&(r=J.access(e),i=J.set(t,r),u=r.events))for(o in delete i.handle,i.events={},u)for(n=0,a=u[o].length;n")},clone:function(e,t,n){var a,o,r,i,s,l,u,c=e.cloneNode(!0),d=T.contains(e.ownerDocument,e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(i=fe(c),a=0,o=(r=fe(e)).length;a").prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(e){a.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),S.head.appendChild(a[0])},abort:function(){o&&o()}}});var Wt,Vt=[],Kt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||T.expando+"_"+bt++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,n){var a,o,r,i=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(e.data)&&"data");if(i||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=_(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,i?e[i]=e[i].replace(Kt,"$1"+a):!1!==e.jsonp&&(e.url+=(Mt.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return r||T.error(a+" was not called"),r[0]},e.dataTypes[0]="json",o=k[a],k[a]=function(){r=arguments},n.always(function(){void 0===o?T(k).removeProp(a):k[a]=o,e[a]&&(e.jsonpCallback=t.jsonpCallback,Vt.push(a)),r&&_(o)&&o(r[0]),r=o=void 0}),"script"}),y.createHTMLDocument=((Wt=S.implementation.createHTMLDocument("").body).innerHTML="
",2===Wt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((a=(t=S.implementation.createHTMLDocument("")).createElement("base")).href=S.location.href,t.head.appendChild(a)):t=S),r=!n&&[],(o=C.exec(e))?[t.createElement(o[1])]:(o=ye([e],t,r),r&&r.length&&T(r).remove(),T.merge([],o.childNodes)));var a,o,r},T.fn.load=function(e,t,n){var a,o,r,i=this,s=e.indexOf(" ");return-1").append(T.parseHTML(e)).find(a):e)}).always(n&&function(e,t){i.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(e,t,n){var a,o,r,i,s,l,u=T.css(e,"position"),c=T(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),r=T.css(e,"top"),l=T.css(e,"left"),o=("absolute"===u||"fixed"===u)&&-1<(r+l).indexOf("auto")?(i=(a=c.position()).top,a.left):(i=parseFloat(r)||0,parseFloat(l)||0),_(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(d.top=t.top-s.top+i),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):c.css(d)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,a=this[0];return a?a.getClientRects().length?(e=a.getBoundingClientRect(),n=a.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,a=this[0],o={top:0,left:0};if("fixed"===T.css(a,"position"))t=a.getBoundingClientRect();else{for(t=this.offset(),n=a.ownerDocument,e=a.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==a&&1===e.nodeType&&((o=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),o.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-T.css(a,"marginTop",!0),left:t.left-o.left-T.css(a,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||_e})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var r="pageYOffset"===o;T.fn[t]=function(e){return W(this,function(e,t,n){var a;if(v(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===n)return a?a[o]:e[t];a?a.scrollTo(r?a.pageXOffset:n,r?n:a.pageYOffset):e[t]=n},t,e,arguments.length)}}),T.each(["top","left"],function(e,n){T.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=Re(e,n),Ie.test(t)?T(e).position()[n]+"px":t})}),T.each({Height:"height",Width:"width"},function(i,s){T.each({padding:"inner"+i,content:s,"":"outer"+i},function(a,r){T.fn[r]=function(e,t){var n=arguments.length&&(a||"boolean"!=typeof e),o=a||(!0===e||!0===t?"margin":"border");return W(this,function(e,t,n){var a;return v(e)?0===r.indexOf("outer")?e["inner"+i]:e.document.documentElement["client"+i]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+i],a["scroll"+i],e.body["offset"+i],a["offset"+i],a["client"+i])):void 0===n?T.css(e,t,o):T.style(e,t,n,o)},s,n?e:void 0,n)}})}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){T.fn[n]=function(e,t){return 0this.menuNode.clientHeight)){var e=this.menuNode.clientHeight+this.menuNode.scrollTop,t=this.itemNode.offsetTop+this.itemNode.offsetHeight;e, or explicitly pass "'+h+'" as a prop to "'+o+'".'),n.initSelector(),n.initSubscription(),n}w(e,a);var t=e.prototype;return t.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[_]=t||this.context[_],e},t.componentDidMount=function(){f&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},t.componentWillReceiveProps=function(e){this.selector.run(e)},t.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},t.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=P,this.store=null,this.selector.run=P,this.selector.shouldComponentUpdate=!1},t.getWrappedInstance=function(){return E()(g,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+l+"() call."),this.wrappedInstance},t.setWrappedInstance=function(e){this.wrappedInstance=e},t.initSelector=function(){var n,a,o,e=i(this.store.dispatch,r);this.selector=(n=e,a=this.store,o={run:function(e){try{var t=n(a.getState(),e);(t!==o.props||o.error)&&(o.shouldComponentUpdate=!0,o.props=t,o.error=null)}catch(e){o.shouldComponentUpdate=!0,o.error=e}}}),this.selector.run(this.props)},t.initSubscription=function(){if(f){var e=(this.propsMode?this.props:this.context)[_];this.subscription=new N(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},t.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(j)):this.notifyNestedSubs()},t.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},t.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},t.addExtraProps=function(e){if(!(g||c||this.propsMode&&this.subscription))return e;var t=L({},e);return g&&(t.ref=this.setWrappedInstance),c&&(t[c]=this.renderCount++),this.propsMode&&this.subscription&&(t[_]=this.subscription),t},t.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(k.createElement)(n,this.addExtraProps(e.props))},e}(k.Component);return t.WrappedComponent=n,t.displayName=o,t.childContextTypes=M,t.contextTypes=b,t.propTypes=b,D()(t,n)}}var c=Object.prototype.hasOwnProperty;function d(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function v(e,t){if(d(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var o=0;o or withRouter() outside a ");var l=t.route,u=(a||l.location).pathname;return Object(f.a)(u,{path:o,strict:r,exact:i,sensitive:s},l.match)},i.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),o()(!(this.props.component&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored"),o()(!(this.props.render&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored")},i.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},i.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,a=t.component,o=t.render,r=this.context.router,i=r.history,s=r.route,l=r.staticContext,u={match:e,location:this.props.location||s.location,history:i,staticContext:l};return a?e?d.a.createElement(a,u):null:o?e?o(u):null:"function"==typeof n?n(u):n&&!h(n)?d.a.Children.only(n):null},i}(d.a.Component);m.propTypes={computedMatch:l.a.object,path:l.a.string,exact:l.a.bool,strict:l.a.bool,sensitive:l.a.bool,component:l.a.func,render:l.a.func,children:l.a.oneOfType([l.a.func,l.a.node]),location:l.a.object},m.contextTypes={router:l.a.shape({history:l.a.object.isRequired,route:l.a.object.isRequired,staticContext:l.a.object})},m.childContextTypes={router:l.a.object.isRequired},t.a=m},function(e,t,n){"use strict";var a=n(104),y=n.n(a),_={},v=0;t.a=function(e){var t=1document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[u][i[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[u]=o(e),n=new l,l[u]=null,n[s]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t,n){var a=n(69).f,o=n(64),r=n(73)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&a(e,r,{configurable:!0,value:t})}},function(e,t,n){t.f=n(73)},function(e,t,n){var a=n(57),o=n(63),r=n(92),i=n(122),s=n(69).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=r?{}:a.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:i.f(e)})}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(t,e){if(!t)return null;if("string"==typeof t)return document.getElementById(t);"function"==typeof t&&(t=t(e));if(!t)return null;try{return(0,a.findDOMNode)(t)}catch(e){return t}};var a=n(24);e.exports=t.default},function(s,e,l){"use strict";(function(e){var n=l(47),a=l(440),t={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var r,i={adapter:("undefined"!=typeof XMLHttpRequest?r=l(301):void 0!==e&&(r=l(301)),r),transformRequest:[function(e,t){return a(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return 200<=e&&e<300}};i.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){i.headers[e]={}}),n.forEach(["post","put","patch"],function(e){i.headers[e]=n.merge(t)}),s.exports=i}).call(this,l(439))},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var a,o,h=f(n(5)),r=f(n(4)),i=f(n(6)),s=f(n(7)),l=n(0),m=f(l),u=f(n(2)),g=f(n(12)),c=f(n(23)),d=n(11),y=f(n(87));function f(e){return e&&e.__esModule?e:{default:e}}var _=d.func.bindCtx,v=d.obj.pickOthers,p=(o=a=function(n){function p(e){(0,r.default)(this,p);var t=(0,i.default)(this,n.call(this,e));return _(t,["handleKeyDown","handleClick"]),t}return(0,s.default)(p,n),p.prototype.getSelected=function(){var e=this.props,t=e._key,n=e.root,a=e.selected,o=n.props.selectMode,r=n.state.selectedKeys;return a||!!o&&-1o;)i(a,n=t[o++])&&(~l(r,n)||r.push(n));return r}},function(e,t,n){var a=n(147);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var a=n(113);e.exports=function(e){return Object(a(e))}},function(e,t,n){"use strict";var v=n(92),b=n(83),M=n(150),w=n(68),k=n(119),S=n(376),T=n(121),x=n(379),L=n(73)("iterator"),C=!([].keys&&"next"in[].keys()),D="values",E=function(){return this};e.exports=function(e,t,n,a,o,r,i){S(n,t,a);var s,l,u,c=function(e){if(!C&&e in h)return h[e];switch(e){case"keys":case D:return function(){return new n(this,e)}}return function(){return new n(this,e)}},d=t+" Iterator",f=o==D,p=!1,h=e.prototype,m=h[L]||h["@@iterator"]||o&&h[o],g=m||c(o),y=o?f?c("entries"):g:void 0,_="Array"==t&&h.entries||m;if(_&&(u=x(_.call(new e)))!==Object.prototype&&u.next&&(T(u,d,!0),v||"function"==typeof u[L]||w(u,L,E)),f&&m&&m.name!==D&&(p=!0,g=function(){return m.call(this)}),v&&!i||!C&&!p&&h[L]||w(h,L,g),k[t]=g,k[d]=E,o)if(s={values:f?g:c(D),keys:r?g:c("keys"),entries:y},i)for(l in s)l in h||M(h,l,s[l]);else b(b.P+b.F*(C||p),t,s);return s}},function(e,t,n){e.exports=n(68)},function(e,t,n){var a=n(145),o=n(117).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,o)}},function(e,t,n){var a=n(94),o=n(90),r=n(72),i=n(112),s=n(64),l=n(143),u=Object.getOwnPropertyDescriptor;t.f=n(71)?u:function(e,t){if(e=r(e),t=i(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return o(!a.f.call(e,t),e[t])}},function(e,t,n){"use strict"; - /* - object-assign - (c) Sindre Sorhus - @license MIT - */var l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),r=1;re.clientHeight&&0a.length&&a.every(function(e,t){return e===n[t]})},y.prototype.handleOpen=function(t,e,n,a){var o=this,r=void 0,i=this.props,s=i.mode,l=i.openMode,u=this.state.openKeys,c=u.indexOf(t);e&&-1===c?"inline"===s?"single"===l?(r=u.filter(function(e){return!o.isSibling(o.k2n[t].pos,o.k2n[e].pos)})).push(t):r=u.concat(t):(r=u.filter(function(e){return o.isAncestor(o.k2n[t].pos,o.k2n[e].pos)})).push(t):!e&&-1this.popupNode.offsetWidth&&y(this.popupNode,"width",p.offsetWidth+"px")}"outside"!==u||"hoz"===l&&1===n||(y(this.popupNode,"height",f.offsetHeight+"px"),y(this.popupNode,"overflow-y","scroll"));var h=this.popupProps;h.onOpen&&h.onOpen()},D.prototype.handlePopupClose=function(){var e=this.props.root.popupNodes,t=e.indexOf(this.popupNode);-1e.slidesToShow&&(t=e.slideWidth*e.slidesToShow*-1,o=e.slideHeight*e.slidesToShow*-1),e.slideCount%e.slidesToScroll!=0){var r=e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow;if(e.rtl)r=(e.slideIndex>=e.slideCount?e.slideCount-e.slideIndex:e.slideIndex)+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow;r&&(o=e.slideIndex>e.slideCount?(t=(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideWidth*-1,(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideHeight*-1):(t=e.slideCount%e.slidesToScroll*e.slideWidth*-1,e.slideCount%e.slidesToScroll*e.slideHeight*-1))}}else e.slideCount%e.slidesToScroll!=0&&e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow&&(t=(e.slidesToShow-e.slideCount%e.slidesToScroll)*e.slideWidth);if(e.centerMode&&(e.infinite?t+=e.slideWidth*Math.floor(e.slidesToShow/2):t=e.slideWidth*Math.floor(e.slidesToShow/2)),n=e.vertical?e.slideIndex*e.slideHeight*-1+o:e.slideIndex*e.slideWidth*-1+t,!0===e.variableWidth){var i=void 0;n=(a=e.slideCount<=e.slidesToShow||!1===e.infinite?s.default.findDOMNode(e.trackRef).childNodes[e.slideIndex]:(i=e.slideIndex+e.slidesToShow,s.default.findDOMNode(e.trackRef).childNodes[i]))?-1*a.offsetLeft:0,!0===e.centerMode&&(a=!1===e.infinite?s.default.findDOMNode(e.trackRef).children[e.slideIndex]:s.default.findDOMNode(e.trackRef).children[e.slideIndex+e.slidesToShow+1])&&(n=-1*a.offsetLeft+(e.listWidth-a.offsetWidth)/2)}return n}},function(e,t,n){"use strict";n(590)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.routerMiddleware=t.routerActions=t.goForward=t.goBack=t.go=t.replace=t.push=t.CALL_HISTORY_METHOD=t.routerReducer=t.LOCATION_CHANGE=t.syncHistoryWithStore=void 0;var a=n(291);Object.defineProperty(t,"LOCATION_CHANGE",{enumerable:!0,get:function(){return a.LOCATION_CHANGE}}),Object.defineProperty(t,"routerReducer",{enumerable:!0,get:function(){return a.routerReducer}});var o=n(292);Object.defineProperty(t,"CALL_HISTORY_METHOD",{enumerable:!0,get:function(){return o.CALL_HISTORY_METHOD}}),Object.defineProperty(t,"push",{enumerable:!0,get:function(){return o.push}}),Object.defineProperty(t,"replace",{enumerable:!0,get:function(){return o.replace}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return o.go}}),Object.defineProperty(t,"goBack",{enumerable:!0,get:function(){return o.goBack}}),Object.defineProperty(t,"goForward",{enumerable:!0,get:function(){return o.goForward}}),Object.defineProperty(t,"routerActions",{enumerable:!0,get:function(){return o.routerActions}});var r=s(n(421)),i=s(n(422));function s(e){return e&&e.__esModule?e:{default:e}}t.syncHistoryWithStore=r.default,t.routerMiddleware=i.default},function(e,t,n){"use strict";function a(o){return function(e){var n=e.dispatch,a=e.getState;return function(t){return function(e){return"function"==typeof e?e(n,a,o):t(e)}}}}var o=a();o.withExtraArgument=a,t.a=o},function(e,t,n){"use strict";var a=n(135),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},d={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function f(e){return a.isMemo(e)?r:i[e.$$typeof]||o}i[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var p=Object.defineProperty,h=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,_=Object.prototype;e.exports=function e(t,n,a){if("string"==typeof n)return t;if(_){var o=y(n);o&&o!==_&&e(t,o,a)}var r=h(n);m&&(r=r.concat(m(n)));for(var i=f(t),s=f(n),l=0;l\n com.alibaba.nacos\n nacos-client\n ${version}\n \n*/\npackage com.alibaba.nacos.example;\n\nimport java.util.Properties;\nimport java.util.concurrent.Executor;\nimport com.alibaba.nacos.api.NacosFactory;\nimport com.alibaba.nacos.api.config.ConfigService;\nimport com.alibaba.nacos.api.config.listener.Listener;\nimport com.alibaba.nacos.api.exception.NacosException;\n\n/**\n * Config service example\n * \n * @author Nacos\n *\n */\npublic class ConfigExample {\n\n\tpublic static void main(String[] args) throws NacosException, InterruptedException {\n\t\tString serverAddr = "localhost";\n\t\tString dataId = "'.concat(e.dataId,'";\n\t\tString group = "').concat(e.group,'";\n\t\tProperties properties = new Properties();\n\t\tproperties.put(PropertyKeyConst.SERVER_ADDR, serverAddr);\n\t\tConfigService configService = NacosFactory.createConfigService(properties);\n\t\tString content = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\t\tconfigService.addListener(dataId, group, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void receiveConfigInfo(String configInfo) {\n\t\t\t\tSystem.out.println("recieve:" + configInfo);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Executor getExecutor() {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t\t\n\t\tboolean isPublishOk = configService.publishConfig(dataId, group, "content");\n\t\tSystem.out.println(isPublishOk);\n\t\t\n\t\tThread.sleep(3000);\n\t\tcontent = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\n\t\tboolean isRemoveOk = configService.removeConfig(dataId, group);\n\t\tSystem.out.println(isRemoveOk);\n\t\tThread.sleep(3000);\n\n\t\tcontent = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\t\tThread.sleep(300000);\n\n\t}\n}\n')}},{key:"getNodejsCode",value:function(e){return"TODO"}},{key:"getCppCode",value:function(e){return"TODO"}},{key:"getShellCode",value:function(e){return"TODO"}},{key:"getPythonCode",value:function(e){return"TODO"}},{key:"openDialog",value:function(e){var t=this;this.setState({dialogvisible:!0}),this.record=e,setTimeout(function(){t.getData()})}},{key:"closeDialog",value:function(){this.setState({dialogvisible:!1})}},{key:"createCodeMirror",value:function(e,t){var n=this.refs.codepreview;n&&(n.innerHTML="",this.cm=window.CodeMirror(n,{value:t,mode:e,height:400,width:500,lineNumbers:!0,theme:"xq-light",lint:!0,tabMode:"indent",autoMatchParens:!0,textWrapping:!0,gutters:["CodeMirror-lint-markers"],extraKeys:{F1:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}}))}},{key:"changeTab",value:function(e,t){var n=this;setTimeout(function(){n[e]=!0,n.createCodeMirror("text/javascript",t)})}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,n=X.a.createElement("div",null);return X.a.createElement("div",null,X.a.createElement(H.a,{title:t.sampleCode,style:{width:"80%"},visible:this.state.dialogvisible,footer:n,onClose:this.closeDialog.bind(this)},X.a.createElement("div",{style:{height:500}},X.a.createElement(g.a,{tip:t.loading,style:{width:"100%"},visible:this.state.loading},X.a.createElement(re.a,{shape:"text",style:{height:40,paddingBottom:10}},X.a.createElement(ie,{title:"Java",key:1,onClick:this.changeTab.bind(this,"commoneditor1",this.defaultCode)}),X.a.createElement(ie,{title:"Spring Boot",key:2,onClick:this.changeTab.bind(this,"commoneditor2",this.sprigboot_code)}),X.a.createElement(ie,{title:"Spring Cloud",key:21,onClick:this.changeTab.bind(this,"commoneditor21",this.sprigcloud_code)}),X.a.createElement(ie,{title:"Node.js",key:3,onClick:this.changeTab.bind(this,"commoneditor3",this.nodejsCode)}),X.a.createElement(ie,{title:"C++",key:4,onClick:this.changeTab.bind(this,"commoneditor4",this.cppCode)}),X.a.createElement(ie,{title:"Shell",key:5,onClick:this.changeTab.bind(this,"commoneditor5",this.shellCode)}),X.a.createElement(ie,{title:"Python",key:6,onClick:this.changeTab.bind(this,"commoneditor6",this.pythonCode)})),X.a.createElement("div",{ref:"codepreview"})))))}}]),n}(X.a.Component),o.displayName="ShowCodeing",a=r))||a,le=(n(76),n(38)),ue=n.n(le),ce=(n(577),ue.a.Row),de=ue.a.Col,fe=(0,G.a.config)((l=s=function(e){function n(e){var t;return Object(F.a)(this,n),(t=Object(V.a)(this,Object(K.a)(n).call(this,e))).state={visible:!1,title:"",content:"",isok:!0,dataId:"",group:""},t}return Object(U.a)(n,e),Object(W.a)(n,[{key:"componentDidMount",value:function(){this.initData()}},{key:"initData",value:function(){var e=this.props.locale,t=void 0===e?{}:e;this.setState({title:t.confManagement})}},{key:"openDialog",value:function(e){this.setState({visible:!0,title:e.title,content:e.content,isok:e.isok,dataId:e.dataId,group:e.group,message:e.message})}},{key:"closeDialog",value:function(){this.setState({visible:!1})}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,n=X.a.createElement("div",{style:{textAlign:"right"}},X.a.createElement(b.a,{type:"primary",onClick:this.closeDialog.bind(this)},t.determine));return X.a.createElement("div",null,X.a.createElement(H.a,{visible:this.state.visible,footer:n,style:{width:555},onCancel:this.closeDialog.bind(this),onClose:this.closeDialog.bind(this),title:t.deletetitle},X.a.createElement("div",null,X.a.createElement(ce,null,X.a.createElement(de,{span:"4",style:{paddingTop:16}},X.a.createElement(j.a,{type:"".concat(this.state.isok?"success":"delete","-filling"),style:{color:this.state.isok?"green":"red"},size:"xl"})),X.a.createElement(de,{span:"20"},X.a.createElement("div",null,X.a.createElement("h3",null,this.state.isok?t.deletedSuccessfully:t.deleteFailed),X.a.createElement("p",null,X.a.createElement("span",{style:{color:"#999",marginRight:5}},"Data ID:"),X.a.createElement("span",{style:{color:"#c7254e"}},this.state.dataId)),X.a.createElement("p",null,X.a.createElement("span",{style:{color:"#999",marginRight:5}},"Group:"),X.a.createElement("span",{style:{color:"#c7254e"}},this.state.group)),this.state.isok?"":X.a.createElement("p",{style:{color:"red"}},this.state.message)))))))}}]),n}(X.a.Component),s.displayName="DeleteDialog",i=l))||i,pe=(n(578),n(342)),he=n.n(pe),me=(0,G.a.config)((d=c=function(e){function t(){return Object(F.a)(this,t),Object(V.a)(this,Object(K.a)(t).apply(this,arguments))}return Object(U.a)(t,e),Object(W.a)(t,[{key:"render",value:function(){var e=this.props,t=e.data,n=void 0===t?{}:t,a=e.height,o=e.locale,r=void 0===o?{}:o;return X.a.createElement("div",null,"notice"===n.modeType?X.a.createElement("div",{"data-spm-click":"gostr=/aliyun;locaid=notice"},X.a.createElement(he.a,{style:{marginBottom:1l?P.a.createElement($.a,{className:"pagination",total:s.count,pageSize:l,onChange:function(e){return a.onChangePage(e)}}):null,P.a.createElement(Z,{ref:this.editInstanceDialog,serviceName:r,clusterName:n,openLoading:function(){return a.openLoading()},closeLoading:function(){return a.closeLoading()},getInstanceList:function(){return a.getInstanceList()}})):null}}]),n}(P.a.Component),c.displayName="InstanceTable",u=d))||u,te=(n(591),Y.a.Item),ne={labelCol:{fixedSpan:10},wrapperCol:{span:14}},ae=(0,O.a.config)((h=p=function(e){function n(e){var t;return Object(T.a)(this,n),(t=Object(L.a)(this,Object(C.a)(n).call(this,e))).editServiceDialog=P.a.createRef(),t.editClusterDialog=P.a.createRef(),t.state={serviceName:Object(q.a)(e.location.search,"name"),groupName:Object(q.a)(e.location.search,"groupName"),loading:!1,currentPage:1,clusters:[],instances:{},service:{},pageSize:10,pageNum:{}},t}return Object(D.a)(n,e),Object(x.a)(n,[{key:"componentDidMount",value:function(){this.state.serviceName?this.getServiceDetail():this.props.history.goBack()}},{key:"getServiceDetail",value:function(){var r=this,e=this.state,t=e.serviceName,n=e.groupName;Object(I.c)({url:"v1/ns/catalog/service?serviceName=".concat(t,"&groupName=").concat(n),beforeSend:function(){return r.openLoading()},success:function(e){var t=e.clusters,n=void 0===t?[]:t,a=e.service,o=void 0===a?{}:a;return r.setState({service:o,clusters:n})},error:function(e){return k.a.error(e.responseText||"error")},complete:function(){return r.closeLoading()}})}},{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"openEditServiceDialog",value:function(){this.editServiceDialog.current.getInstance().show(this.state.service)}},{key:"openClusterDialog",value:function(e){this.editClusterDialog.current.getInstance().show(e)}},{key:"render",value:function(){var t=this,e=this.props.locale,n=void 0===e?{}:e,a=this.state,o=a.serviceName,r=a.loading,i=a.service,s=void 0===i?{}:i,l=a.clusters,u=s.metadata,c=void 0===u?{}:u,d=s.selector,f=void 0===d?{}:d,p=Object(q.b)(B.c)(c);return P.a.createElement("div",{className:"main-container service-detail"},P.a.createElement(g.a,{shape:"flower",tip:"Loading...",className:"loading",visible:r,color:"#333"},P.a.createElement("h1",{style:{position:"relative",width:"100%"}},n.serviceDetails,P.a.createElement(M.a,{type:"primary",className:"header-btn",onClick:function(){return t.props.history.goBack()}},n.back),P.a.createElement(M.a,{type:"normal",className:"header-btn",onClick:function(){return t.openEditServiceDialog()}},n.editService)),P.a.createElement(Y.a,ne,P.a.createElement(te,{label:"".concat(n.serviceName,":")},P.a.createElement(S.a,{value:s.name,readOnly:!0})),P.a.createElement(te,{label:"".concat(n.groupName,":")},P.a.createElement(S.a,{value:s.groupName,readOnly:!0})),P.a.createElement(te,{label:"".concat(n.protectThreshold,":")},P.a.createElement(S.a,{value:s.protectThreshold,readOnly:!0})),P.a.createElement(te,{label:"".concat(n.metadata,":")},P.a.createElement(U.a,{language:"properties",width:"100%",height:200,value:p,options:B.e})),P.a.createElement(te,{label:"".concat(n.type,":")},P.a.createElement(S.a,{value:f.type,readOnly:!0})),"label"===s.type&&P.a.createElement(te,{label:"".concat(n.selector,":")},P.a.createElement(S.a,{value:f.selector,readOnly:!0}))),l.map(function(e){return P.a.createElement(_.a,{key:e.name,className:"cluster-card",title:"".concat(n.cluster,":"),subTitle:e.name,contentHeight:"auto",extra:P.a.createElement(M.a,{type:"normal",onClick:function(){return t.openClusterDialog(e)}},n.editCluster)},P.a.createElement(ee,{clusterName:e.name,serviceName:o}))})),P.a.createElement(A.a,{ref:this.editServiceDialog,openLoading:function(){return t.openLoading()},closeLoading:function(){return t.closeLoading()},getServiceDetail:function(){return t.getServiceDetail()}}),P.a.createElement(G,{ref:this.editClusterDialog,openLoading:function(){return t.openLoading()},closeLoading:function(){return t.closeLoading()},getServiceDetail:function(){return t.getServiceDetail()}}))}}]),n}(P.a.Component),p.displayName="ServiceDetail",f=h))||f;t.a=ae},function(e,t,n){"use strict";n(40);var a,o,r,i,s,l,u=n(25),c=n.n(u),d=(n(29),n(19)),f=n.n(d),p=(n(328),n(106)),h=n.n(p),m=(n(30),n(23)),g=n.n(m),y=(n(58),n(31)),_=n.n(y),v=(n(32),n(10)),b=n.n(v),M=(n(49),n(26)),w=n.n(M),k=(n(33),n(20)),S=n.n(k),T=(n(44),n(28)),x=n.n(T),L=n(14),C=n(15),D=n(16),E=n(17),O=n(22),N=n(18),Y=(n(27),n(8)),j=n.n(Y),P=(n(97),n(79)),I=n.n(P),A=(n(35),n(9)),H=n.n(A),R=(n(133),n(56)),z=n.n(R),F=n(42),W=n.n(F),V=n(0),K=n.n(V),B=n(1),U=(n(76),n(38)),q=n.n(U),G=(n(555),q.a.Row),J=q.a.Col,$=(0,j.a.config)((r=o=function(e){function n(e){var t;return Object(L.a)(this,n),(t=Object(D.a)(this,Object(E.a)(n).call(this,e))).diffeditor=K.a.createRef(),t.state={dialogvisible:!1},t}return Object(N.a)(n,e),Object(C.a)(n,[{key:"openDialog",value:function(e,t){var n=this;this.setState({dialogvisible:!0}),setTimeout(function(){n.createDiffCodeMirror(e,t)})}},{key:"closeDialog",value:function(){this.setState({dialogvisible:!1})}},{key:"createDiffCodeMirror",value:function(e,t){var n=this.diffeditor.current;n.innerHTML="",this.diffeditor=window.CodeMirror.MergeView(n,{value:e||"",readOnly:!0,origLeft:null,orig:t||"",lineNumbers:!0,mode:this.mode,theme:"xq-light",highlightDifferences:!0,connect:"align",collapseIdentical:!1})}},{key:"confirmPub",value:function(){this.closeDialog(),this.props.publishConfig()}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,n=K.a.createElement("div",null," ",K.a.createElement(f.a,{type:"primary",onClick:this.confirmPub.bind(this)},t.publish));return K.a.createElement("div",null,K.a.createElement(S.a,{title:t.contents,style:{width:"80%"},visible:this.state.dialogvisible,footer:n,onClose:this.closeDialog.bind(this)},K.a.createElement("div",{style:{height:400}},K.a.createElement("div",null,K.a.createElement(G,null,K.a.createElement(J,{style:{textAlign:"center"}},t.currentArea),K.a.createElement(J,{style:{textAlign:"center"}},t.originalValue))),K.a.createElement("div",{style:{clear:"both",height:480},ref:this.diffeditor}))))}}]),n}(K.a.Component),o.displayName="DiffEditorDialog",a=r))||a,Q=n(80),X=n(107),Z=(n(556),z.a.Item),ee=H.a.Item,te=I.a.Group,ne=(0,j.a.config)((l=s=function(e){function t(e){var n;return Object(L.a)(this,t),(n=Object(D.a)(this,Object(E.a)(t).call(this,e)))._publishConfig=function(e){var t=n.props.locale,o=void 0===t?{}:t,r=Object(O.a)(n);n.codeValue=e,n.tenant=Object(B.b)("namespace")||"",n.serverId=Object(B.b)("serverId")||"center";var i={dataId:n.field.getValue("dataId"),appName:n.inApp?n.edasAppId:n.field.getValue("appName"),group:n.field.getValue("group"),desc:n.field.getValue("desc"),config_tags:n.state.config_tags.join(),type:n.state.configType,content:e,tenant:n.tenant};Object(B.c)({type:"post",contentType:"application/x-www-form-urlencoded",url:"v1/cs/configs",data:i,success:function(e){var t={};if(t.maintitle=o.toedittitle,t.title=K.a.createElement("div",null,o.toedit),t.content="",t.dataId=i.dataId,t.group=i.group,null!=e){t.isok=!0;var n=r.state.activeKey.split("-")[0];if("normal"===n&&!0===r.hasips){var a=(new Date).getTime();r.setState({tag:[{title:o.official,key:"normal-".concat(a)},{title:"BETA",key:"beta-".concat(a)}],hasbeta:!0,activeKey:"beta-".concat(a)}),i.betaIps=i.betaIps||i.ips,r.valueMap.beta=i,r.changeTab("beta-".concat(a))}"normal"===n&&!1===r.hasips&&(r.valueMap.normal=i),"beta"===n&&!0===r.hasips&&(r.valueMap.beta=i)}else t.isok=!1,t.message=e.message;r.successDialog.current.getInstance().openDialog(t)},error:function(){}})},n.diffEditorDialog=K.a.createRef(),n.successDialog=K.a.createRef(),n.edasAppName=Object(B.b)("edasAppName")||"",n.edasAppId=Object(B.b)("edasAppId")||"",n.inApp=n.edasAppName,n.field=new x.a(Object(O.a)(n)),n.dataId=Object(B.b)("dataId")||"yanlin",n.group=Object(B.b)("group")||"DEFAULT_GROUP",n.tenant=Object(B.b)("namespace")||"",n.state={configType:"text",codeValue:"",envname:"center",targetEnvName:"",envlist:[],envvalues:[],loading:!1,showmore:!1,activeKey:"normal",hasbeta:!1,ips:"",checkedBeta:!1,tagLst:[],config_tags:[],switchEncrypt:!1,tag:[]},n.codeValue="",n.mode="text",n.ips="",n.valueMap={},n.searchDataId=Object(B.b)("searchDataId")||"",n.searchGroup=Object(B.b)("searchGroup")||"",n}return Object(N.a)(t,e),Object(C.a)(t,[{key:"componentDidMount",value:function(){this.initData(),this.betaips=document.getElementById("betaips"),this.getDataDetail(),this.chontenttab=document.getElementById("chontenttab")}},{key:"initData",value:function(){var e=this.props.locale,t=void 0===e?{}:e;this.setState({tag:[{title:t.official,key:"normal"}]}),this.dataId.startsWith("cipher-")&&this.setState({switchEncrypt:!0})}},{key:"initMoacoEditor",value:function(e,t){var n=this;window.monaco?this.monacoEditor=window.monaco.editor.create(document.getElementById("container"),{value:t,language:this.state.configType,codeLens:!0,selectOnLineNumbers:!0,roundedSelection:!1,readOnly:!1,lineNumbersMinChars:!0,theme:"vs-dark",wordWrapColumn:120,folding:!1,showFoldingControls:"always",wordWrap:"wordWrapColumn",cursorStyle:"line",automaticLayout:!0}):window.importEditor(function(){n.monacoEditor=window.monaco.editor.create(document.getElementById("container"),{value:t,language:n.state.configType,codeLens:!0,selectOnLineNumbers:!0,roundedSelection:!1,readOnly:!1,lineNumbersMinChars:!0,theme:"vs-dark",wordWrapColumn:120,folding:!1,showFoldingControls:"always",wordWrap:"wordWrapColumn",cursorStyle:"line",automaticLayout:!0})})}},{key:"toggleMore",value:function(){this.setState({showmore:!this.state.showmore})}},{key:"navTo",value:function(e){this.serverId=Object(B.b)("serverId")||"",this.tenant=Object(B.b)("namespace")||"",this.props.history.push("".concat(e,"?serverId=").concat(this.serverId||"","&dataId=").concat(this.dataId,"&group=").concat(this.group,"&namespace=").concat(this.tenant))}},{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"getDataDetail",value:function(){var e=this.props.locale,o=void 0===e?{}:e,r=this;this.tenant=Object(B.b)("namespace")||"",this.serverId=Object(B.b)("serverId")||"center";var t="v1/cs/configs?show=all&dataId=".concat(this.dataId,"&group=").concat(this.group);Object(B.c)({url:t,beforeSend:function(){r.openLoading()},success:function(e){if(null!=e){var t=e;r.valueMap.normal=t,r.field.setValue("dataId",t.dataId),r.field.setValue("appName",r.inApp?r.edasAppName:t.appName),r.field.setValue("group",t.group),r.field.setValue("desc",t.desc),r.codeValue=t.content||"";var n=t.type||"text";if(r.setState({configType:n}),r.initMoacoEditor(n,r.codeValue),null!=t.configTags){var a=t.configTags.split(",");r.setConfigTags(a)}r.serverId={}.serverId,r.targetEnvs=[]}else S.a.alert({title:o.wrong,content:e.message})},complete:function(){r.closeLoading()}})}},{key:"goList",value:function(){var e=Object(B.b)("namespace");this.props.history.push("/configurationManagement?serverId=".concat(this.serverId,"&group=").concat(this.searchGroup,"&dataId=").concat(this.searchDataId,"&namespace=").concat(e))}},{key:"createCodeMirror",value:function(e,t){var n=this.refs.commoneditor;n.innerHTML="",this.commoneditor=window.CodeMirror(n,{value:t,mode:e,lineNumbers:!0,theme:"xq-light",lint:!0,gutters:["CodeMirror-lint-markers"],extraKeys:{F1:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}}),this.commoneditor.on("change",this.codemirrorValueChanged.bind(this))}},{key:"codemirrorValueChanged",value:function(e){this.diffeditor&&this.diffeditor.edit.doc.setValue(e.getValue())}},{key:"createDiffCodeMirror",value:function(e,t){var n=this.diffEditorDialog.current.getInstance();n.innerHTML="",this.diffeditor=window.CodeMirror.MergeView(n,{value:e||"",origLeft:null,orig:t||"",lineNumbers:!0,mode:this.mode,theme:"xq-light",highlightDifferences:!0,connect:"align",collapseIdentical:!1})}},{key:"changeConfig",value:function(e){0===e&&(this.createCodeMirror("text",this.codeValue),this.mode="text"),1===e&&(this.createCodeMirror("application/json",this.codeValue),this.mode="application/json"),2===e&&(this.createCodeMirror("xml",this.codeValue),this.mode="xml"),this.setState({configType:e})}},{key:"setCodeValue",value:function(e){this.setState({codeValue:e})}},{key:"toggleDiff",value:function(e){if(e){this.chontenttab.style.display="block";var t=this.commoneditor.doc.getValue();this.diffeditor||this.createDiffCodeMirror(t,this.codeValue)}else this.chontenttab.style.display="none"}},{key:"publishConfig",value:function(){var o=this,e=this.props.locale,r=void 0===e?{}:e;this.field.validate(function(e,t){if(!e){var n="",a=o.state.configType;(n=o.monacoEditor?o.monacoEditor.getValue():o.codeValue)?X.a.validate({content:n,type:a})?o._publishConfig(n):S.a.confirm({content:"配置信息可能有语法错误, 确定提交吗?",onOk:function(){o._publishConfig(n)}}):w.a.error({content:r.submitFailed,align:"cc cc"})}})}},{key:"validateChart",value:function(e,t,n){var a=this.props.locale,o=void 0===a?{}:a;/[@#\$%\^&\*]+/g.test(t)?n(o.vdchart):n()}},{key:"changeEnv",value:function(e){this.targetEnvs=e,this.setState({envvalues:e})}},{key:"changeBeta",value:function(e){this.betaips.style.display=e?"block":"none",this.setState({checkedBeta:e})}},{key:"getIps",value:function(e){this.ips=e,this.setState({ips:e})}},{key:"setConfigTags",value:function(n){5this.state.pageSize&&P.a.createElement("div",{style:{marginTop:10,textAlign:"right"}},P.a.createElement(b.a,{current:this.state.currentPage,total:this.state.total,pageSize:this.state.pageSize,onChange:function(e){return a.setState({currentPage:e},function(){return a.queryServiceList()})}}))),P.a.createElement(H.a,{ref:this.editServiceDialog,openLoading:function(){return a.openLoading()},closeLoading:function(){return a.closeLoading()},queryServiceList:function(){return a.setState({currentPage:1},function(){return a.queryServiceList()})}}))}}]),t}(P.a.Component),o.displayName="ServiceList",a=r))||a;t.a=V},function(e,t,n){"use strict";var a=n(102);t.a=a.a},function(e,t,B){"use strict";B.r(t),function(e){B(40);var t,n=B(25),a=B.n(n),o=(B(27),B(8)),r=B.n(o),i=B(14),s=B(15),l=B(16),u=B(17),c=B(18),d=B(41),f=B(0),p=B.n(f),h=B(24),m=B.n(h),g=B(67),y=B(334),_=B(335),v=B(88),b=B(593),M=B(594),w=B(596),k=B(358),S=(B(424),B(338)),T=B(39),x=B(349),L=B(346),C=B(350),D=B(351),E=B(352),O=B(348),N=B(353),Y=B(354),j=B(355),P=B(356),I=B(345),A=B(357),H=B(347),R=B(343),z=B(110);B(592);e.hot,localStorage.getItem(T.b)||localStorage.setItem(T.b,"zh-CN"===navigator.language?"zh-CN":"en-US");var F=Object(g.c)(Object(d.a)({},R.a,{routing:y.routerReducer})),W=Object(g.e)(F,Object(g.d)(Object(g.a)(_.a),window[T.d]?window[T.d]():function(e){return e})),V=[{path:"/",exact:!0,render:function(){return p.a.createElement(b.a,{to:"/configurationManagement"})}},{path:"/namespace",component:L.a},{path:"/newconfig",component:C.a},{path:"/configsync",component:D.a},{path:"/configdetail",component:E.a},{path:"/configeditor",component:O.a},{path:"/historyDetail",component:N.a},{path:"/configRollback",component:Y.a},{path:"/historyRollback",component:j.a},{path:"/listeningToQuery",component:P.a},{path:"/configurationManagement",component:I.a},{path:"/serviceManagement",component:A.a},{path:"/serviceDetail",component:H.a}],K=Object(v.b)(function(e){return Object(d.a)({},e.locale)},{changeLanguage:z.a})(t=function(e){function n(e){var t;return Object(i.a)(this,n),(t=Object(l.a)(this,Object(u.a)(n).call(this,e))).state={shownotice:"none",noticecontent:"",nacosLoading:{}},t}return Object(c.a)(n,e),Object(s.a)(n,[{key:"componentDidMount",value:function(){var e=localStorage.getItem(T.b);this.props.changeLanguage(e)}},{key:"render",value:function(){var e=this.props.locale;return p.a.createElement(a.a,Object.assign({className:"nacos-loading",shape:"flower",tip:"loading...",visible:!1,fullScreen:!0},this.state.nacosLoading),p.a.createElement(r.a,{locale:e},this.router))}},{key:"router",get:function(){return p.a.createElement(M.a,null,p.a.createElement(w.a,null,p.a.createElement(k.a,{path:"/login",component:x.a}),p.a.createElement(S.a,null,V.map(function(e){return p.a.createElement(k.a,Object.assign({key:e.path},e))}))))}}]),n}(p.a.Component))||t;m.a.render(p.a.createElement(v.a,{store:W},p.a.createElement(K,null)),document.getElementById("root"))}.call(this,B(141)(e))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports={default:n(365),__esModule:!0}},function(e,t,n){n(366),e.exports=n(63).Object.assign},function(e,t,n){var a=n(83);a(a.S+a.F,"Object",{assign:n(368)})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var f=n(91),p=n(118),h=n(94),m=n(148),g=n(146),o=Object.assign;e.exports=!o||n(85)(function(){var e={},t={},n=Symbol(),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=a})?function(e,t){for(var n=m(e),a=arguments.length,o=1,r=p.f,i=h.f;o=t.length?{value:void 0,done:!0}:(e=a(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var l=n(114),u=n(113);e.exports=function(s){return function(e,t){var n,a,o=String(u(e)),r=l(t),i=o.length;return r<0||i<=r?s?"":void 0:(n=o.charCodeAt(r))<55296||56319=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,a("keys"),a("values"),a("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(385),__esModule:!0}},function(e,t,n){n(386),n(391),n(392),n(393),e.exports=n(63).Symbol},function(e,t,n){"use strict";var a=n(57),i=n(64),o=n(71),r=n(83),s=n(150),l=n(387).KEY,u=n(85),c=n(116),d=n(121),f=n(93),p=n(73),h=n(122),m=n(123),g=n(388),y=n(389),_=n(84),v=n(70),b=n(72),M=n(112),w=n(90),k=n(120),S=n(390),T=n(152),x=n(69),L=n(91),C=T.f,D=x.f,E=S.f,O=a.Symbol,N=a.JSON,Y=N&&N.stringify,j="prototype",P=p("_hidden"),I=p("toPrimitive"),A={}.propertyIsEnumerable,H=c("symbol-registry"),R=c("symbols"),z=c("op-symbols"),F=Object[j],W="function"==typeof O,V=a.QObject,K=!V||!V[j]||!V[j].findChild,B=o&&u(function(){return 7!=k(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,n){var a=C(F,t);a&&delete F[t],D(e,t,n),a&&e!==F&&D(F,t,a)}:D,U=function(e){var t=R[e]=k(O[j]);return t._k=e,t},q=W&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},G=function(e,t,n){return e===F&&G(z,t,n),_(e),t=M(t,!0),_(n),i(R,t)?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=k(n,{enumerable:w(0,!1)})):(i(e,P)||D(e,P,w(1,{})),e[P][t]=!0),B(e,t,n)):D(e,t,n)},J=function(e,t){_(e);for(var n,a=g(t=b(t)),o=0,r=a.length;oo;)i(R,t=n[o++])||t==P||t==l||a.push(t);return a},Z=function(e){for(var t,n=e===F,a=E(n?z:b(e)),o=[],r=0;a.length>r;)!i(R,t=a[r++])||n&&!i(F,t)||o.push(R[t]);return o};W||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var t=f(0te;)p(ee[te++]);for(var ne=L(p.store),ae=0;ne.length>ae;)m(ne[ae++]);r(r.S+r.F*!W,"Symbol",{for:function(e){return i(H,e+="")?H[e]:H[e]=O(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in H)if(H[t]===e)return t},useSetter:function(){K=!0},useSimple:function(){K=!1}}),r(r.S+r.F*!W,"Object",{create:function(e,t){return void 0===t?k(e):J(k(e),t)},defineProperty:G,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),N&&r(r.S+r.F*(!W||u(function(){var e=O();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))})),"JSON",{stringify:function(e){for(var t,n,a=[e],o=1;arguments.length>o;)a.push(arguments[o++]);if(n=t=a[1],(v(t)||void 0!==e)&&!q(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),a[1]=t,Y.apply(N,a)}}),O[j][I]||n(68)(O[j],I,O[j].valueOf),d(O,"Symbol"),d(Math,"Math",!0),d(a.JSON,"JSON",!0)},function(e,t,n){var a=n(93)("meta"),o=n(70),r=n(64),i=n(69).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(85)(function(){return l(Object.preventExtensions({}))}),c=function(e){i(e,a,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:a,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,a)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[a].i},getWeak:function(e,t){if(!r(e,a)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[a].w},onFreeze:function(e){return u&&d.NEED&&l(e)&&!r(e,a)&&c(e),e}}},function(e,t,n){var s=n(91),l=n(118),u=n(94);e.exports=function(e){var t=s(e),n=l.f;if(n)for(var a,o=n(e),r=u.f,i=0;o.length>i;)r.call(e,a=o[i++])&&t.push(a);return t}},function(e,t,n){var a=n(147);e.exports=Array.isArray||function(e){return"Array"==a(e)}},function(e,t,n){var a=n(72),o=n(151).f,r={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==r.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(a(e))}},function(e,t){},function(e,t,n){n(123)("asyncIterator")},function(e,t,n){n(123)("observable")},function(e,t,n){e.exports={default:n(395),__esModule:!0}},function(e,t,n){n(396),e.exports=n(63).Object.setPrototypeOf},function(e,t,n){var a=n(83);a(a.S,"Object",{setPrototypeOf:n(397).set})},function(e,t,o){var n=o(70),a=o(84),r=function(e,t){if(a(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,n,a){try{(a=o(142)(Function.call,o(152).f(Object.prototype,"__proto__").set,2))(e,[]),n=!(e instanceof Array)}catch(e){n=!0}return function(e,t){return r(e,t),n?e.__proto__=t:a(e,t),e}}({},!1):void 0),check:r}},function(e,t,n){e.exports={default:n(399),__esModule:!0}},function(e,t,n){n(400);var a=n(63).Object;e.exports=function(e,t){return a.create(e,t)}},function(e,t,n){var a=n(83);a(a.S,"Object",{create:n(120)})},function(e,t,n){"use strict"; - /** @license React v16.8.3 - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var c=n(153),a="function"==typeof Symbol&&Symbol.for,d=a?Symbol.for("react.element"):60103,u=a?Symbol.for("react.portal"):60106,o=a?Symbol.for("react.fragment"):60107,r=a?Symbol.for("react.strict_mode"):60108,i=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,l=a?Symbol.for("react.context"):60110,f=a?Symbol.for("react.concurrent_mode"):60111,p=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,m=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function _(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=0;a