Code Monkey home page Code Monkey logo

polaris-console's Introduction

Polaris Console

English | 中文

Introduction

Polaris Console is one of the components of Polaris, which provides easy-to-use administration pages and supports user and permission management.

Visit official website to learn more

Getting started

Build

Preparing environment:

  • Node Development Environment
  • Go 1.12 and above, this project relies on go mod for package management

Caution:

If npm install or npm run build fails, try:

  • Switching Node.js version to around 12.0
  • Set the format of web/build/copy-file.sh to Unix-like format

Package the project into an executable installer

./build.sh

polaris-console's People

Contributors

albertchamberlain avatar andrewshan avatar chuntaojun avatar dhbin avatar duanbaosheng avatar guiyangzhao avatar ilunz avatar lbbniu avatar lepdou avatar melodyl-xyz avatar onecer avatar pemako avatar qdsordinarydream avatar ranchowang avatar skyenought avatar tfffffff avatar wtifs avatar yidafu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

polaris-console's Issues

启动报错,start error

branch

main 分支

EVN

nonacosa@localhost web % node -v
v18.1.0
nonacosa@localhost web % npm -v
8.12.2

cmd

polaris-console/web 目录下:

 rm- rf ./build
 cnpm i
 npm build

This is build error log


nonacosa@localhost web % npm run build                   

> [email protected] build
> cross-env NODE_ENV=production webpack --config build/webpack.prod.conf.js && bash build/copy-file.sh && tar -czvf ./polaris-frontend.tar.gz ./dist

assets by status 3.47 MiB [cached] 3 assets
Entrypoint main = ./static/css/polaris-console.css static/js/polaris-console.js
orphan modules 5.94 MiB [orphan] 1402 modules
runtime modules 1.59 KiB 7 modules
built modules 7.81 MiB (javascript) 324 KiB (css/mini-extract) [built]
  javascript modules 7.81 MiB 596 modules
  css modules 324 KiB
    modules by path ./node_modules/[email protected]@monaco-editor/esm/vs/editor/ 25.7 KiB 19 modules
    modules by path ./node_modules/[email protected]@monaco-editor/esm/vs/base/ 20.8 KiB
      css ./node_modules/[email protected]@css-loader/dist/cjs.js!./node_modules/[email protected]@monaco-editor/esm/vs/base/browser/ui/aria/aria.css 480 bytes [built] [code generated]
      css ./node_modules/[email protected]@css-loader/dist/cjs.js!./node_modules/[email protected]@monaco-editor/esm/vs/base/browser/ui/sash/sash.css 2.04 KiB [built] [code generated]
      + 6 modules
    css ./node_modules/[email protected]@css-loader/dist/cjs.js!./node_modules/[email protected]@tea-component/dist/tea.css 277 KiB [built] [code generated]
    css ./node_modules/[email protected]@css-loader/dist/cjs.js!./node_modules/[email protected]@monaco-editor/esm/vs/platform/contextview/browser/contextMenuHandler.css 521 bytes [built] [code generated]
  ./node_modules/[email protected]@axios/package.json 2.04 KiB [built] [code generated]

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/auth/policy/Page.tsx
./src/polaris/auth/policy/Page.tsx 337:5-16
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/auth/policy/Page.tsx(337,6)
      TS2769: No overload matches this call.
  Overload 1 of 2, '(props: BasicPageProps | Readonly<BasicPageProps>): BasicLayout', gave the following error.
    Type '{ children: Element; title: string; store: any; selectors: GLOBAL_SELECTORS<{ composedId: (state: STATE_OF_REDUCERS<{ composedId: (state: ComposedId, action: { type: string; payload?: ComposedId; }) => ComposedId; ... 7 more ...; title: (state: string, action: { ...; }) => string; } & DUCKS_REDUCERS<...>>) => Compos...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
  Overload 2 of 2, '(props: BasicPageProps, context: any): BasicLayout', gave the following error.
    Type '{ children: Element; title: string; store: any; selectors: GLOBAL_SELECTORS<{ composedId: (state: STATE_OF_REDUCERS<{ composedId: (state: ComposedId, action: { type: string; payload?: ComposedId; }) => ComposedId; ... 7 more ...; title: (state: string, action: { ...; }) => string; } & DUCKS_REDUCERS<...>>) => Compos...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
 @ ./src/app.tsx 56:0-55 58:31-41
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/auth/user/Page.tsx
./src/polaris/auth/user/Page.tsx 85:5-16
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/auth/user/Page.tsx(85,6)
      TS2769: No overload matches this call.
  Overload 1 of 2, '(props: BasicPageProps | Readonly<BasicPageProps>): BasicLayout', gave the following error.
    Type '{ children: Element; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ composedId: (state: ComposedId, action: { type: string; payload?: ComposedId; }) => ComposedId; ... 9 more ...; title: (state: string, action: { ...; }) => string; } & DUCKS_REDUCERS<...>>) => { ...; }; ...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
  Overload 2 of 2, '(props: BasicPageProps, context: any): BasicLayout', gave the following error.
    Type '{ children: Element; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ composedId: (state: ComposedId, action: { type: string; payload?: ComposedId; }) => ComposedId; ... 9 more ...; title: (state: string, action: { ...; }) => string; } & DUCKS_REDUCERS<...>>) => { ...; }; ...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
 @ ./src/app.tsx 44:0-51 46:29-37
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/auth/userGroup/Page.tsx
./src/polaris/auth/userGroup/Page.tsx 71:5-16
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/auth/userGroup/Page.tsx(71,6)
      TS2769: No overload matches this call.
  Overload 1 of 2, '(props: BasicPageProps | Readonly<BasicPageProps>): BasicLayout', gave the following error.
    Type '{ children: Element; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ composedId: (state: ComposedId, action: { type: string; payload?: ComposedId; }) => ComposedId; ... 9 more ...; title: (state: string, action: { ...; }) => string; } & DUCKS_REDUCERS<...>>) => { ...; }; ...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
  Overload 2 of 2, '(props: BasicPageProps, context: any): BasicLayout', gave the following error.
    Type '{ children: Element; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ composedId: (state: ComposedId, action: { type: string; payload?: ComposedId; }) => ComposedId; ... 9 more ...; title: (state: string, action: { ...; }) => string; } & DUCKS_REDUCERS<...>>) => { ...; }; ...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
 @ ./src/app.tsx 50:0-61 52:34-47
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/components/BaseLayout.tsx
./src/polaris/common/components/BaseLayout.tsx 41:10-18
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/components/BaseLayout.tsx(41,11)
      TS2339: Property 'children' does not exist on type 'Readonly<BasicPageProps>'.
 @ ./src/polaris/namespace/Page.tsx 8:0-58 37:29-40
 @ ./src/app.tsx 17:0-56 19:34-47
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/components/LabelTable.tsx
./src/polaris/common/components/LabelTable.tsx 46:62-69
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/components/LabelTable.tsx(46,63)
      TS2322: Type 'string | { value: string; }' is not assignable to type 'ReactNode'.
  Type '{ value: string; }' is not assignable to type 'ReactNode'.
 @ ./src/polaris/service/utils.tsx 4:0-57 14:79-89
 @ ./src/polaris/service/Page.tsx 12:0-52 152:13-23 165:25-38
 @ ./src/app.tsx 14:0-52 16:32-43
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/components/LabelTable.tsx
./src/polaris/common/components/LabelTable.tsx 46:80-89
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/components/LabelTable.tsx(46,81)
      TS2322: Type 'string | { value: string; }' is not assignable to type 'ReactNode'.
 @ ./src/polaris/service/utils.tsx 4:0-57 14:79-89
 @ ./src/polaris/service/Page.tsx 12:0-52 152:13-23 165:25-38
 @ ./src/app.tsx 14:0-52 16:32-43
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/duckComponents/DetailPage.tsx
./src/polaris/common/duckComponents/DetailPage.tsx 93:5-15
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/duckComponents/DetailPage.tsx(93,6)
      TS2769: No overload matches this call.
  Overload 1 of 2, '(props: BasicPageProps | Readonly<BasicPageProps>): BasicLayout', gave the following error.
    Type '{ children: any[]; selectors: GLOBAL_SELECTORS<{ composedId: (state: STATE_OF_REDUCERS<{ id: (state: string, action: { type: string; payload?: string; }) => string; loading: (state: boolean, action: any) => boolean; error: (state: any, action: any) => any; ... 4 more ...; title: (state: string, action: { ...; }) => ...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
  Overload 2 of 2, '(props: BasicPageProps, context: any): BasicLayout', gave the following error.
    Type '{ children: any[]; selectors: GLOBAL_SELECTORS<{ composedId: (state: STATE_OF_REDUCERS<{ id: (state: string, action: { type: string; payload?: string; }) => string; loading: (state: boolean, action: any) => boolean; error: (state: any, action: any) => any; ... 4 more ...; title: (state: string, action: { ...; }) => ...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
 @ ./src/polaris/service/detail/Page.tsx 3:0-71 39:29-39
 @ ./src/app.tsx 20:0-65 22:38-55
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/duckComponents/SearchableSelect.tsx
195:14-41
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/duckComponents/SearchableSelect.tsx(195,15)
      TS2698: Spread types may only be created from object types.

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/duckComponents/SearchableSelect.tsx
210:16-21
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/duckComponents/SearchableSelect.tsx(210,17)
      TS2698: Spread types may only be created from object types.

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/ducks/GridPage.ts
./src/polaris/common/ducks/GridPage.ts 221:8-229:14
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/ducks/GridPage.ts(221,9)
      TS2322: Type '{ id: string; headTitle: ReactNode; required: boolean; defaults: boolean; hide: boolean; }[]' is not assignable to type 'ColumnField[]'.
  Type '{ id: string; headTitle: React.ReactNode; required: boolean; defaults: boolean; hide: boolean; }' is not assignable to type 'ColumnField'.
    Types of property 'headTitle' are incompatible.
      Type 'ReactNode' is not assignable to type 'ReactChild'.
        Type 'boolean' is not assignable to type 'ReactChild'.
 @ ./src/polaris/service/PageDuck.ts 2:0-52 27:45-57
 @ ./src/app.tsx 15:0-60 16:45-60
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/helpers/index.tsx
./src/polaris/common/helpers/index.tsx 14:9-27
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/helpers/index.tsx(14,10)
      TS2694: Namespace 'React' has no exported member 'StatelessComponent'.
 @ ./src/app.tsx 11:0-59 16:16-31 19:18-33 22:22-37 25:20-35 28:18-33 31:23-38 34:18-33 37:24-39 40:20-35 41:30-45 42:21-36 43:25-40 46:13-28 49:19-34 52:18-33 55:24-39 58:15-30 61:21-36 66:14-29 70:21-36
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/helpers/index.tsx
./src/polaris/common/helpers/index.tsx 16:19-37
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/helpers/index.tsx(16,20)
      TS2694: Namespace 'React' has no exported member 'StatelessComponent'.
 @ ./src/app.tsx 11:0-59 16:16-31 19:18-33 22:22-37 25:20-35 28:18-33 31:23-38 34:18-33 37:24-39 40:20-35 41:30-45 42:21-36 43:25-40 46:13-28 49:19-34 52:18-33 55:24-39 58:15-30 61:21-36 66:14-29 70:21-36
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/helpers/index.tsx
./src/polaris/common/helpers/index.tsx 19:9-27
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/helpers/index.tsx(19,10)
      TS2694: Namespace 'React' has no exported member 'StatelessComponent'.
 @ ./src/app.tsx 11:0-59 16:16-31 19:18-33 22:22-37 25:20-35 28:18-33 31:23-38 34:18-33 37:24-39 40:20-35 41:30-45 42:21-36 43:25-40 46:13-28 49:19-34 52:18-33 55:24-39 58:15-30 61:21-36 66:14-29 70:21-36
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/helpers/showDialog.tsx
./src/polaris/common/helpers/showDialog.tsx 35:12-30
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/common/helpers/showDialog.tsx(35,13)
      TS2694: Namespace 'React' has no exported member 'StatelessComponent'.
 @ ./src/polaris/service/PageDuck.ts 6:0-58 168:8-18 218:8-18
 @ ./src/app.tsx 15:0-60 16:45-60
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/configuration/fileGroup/Page.tsx
./src/polaris/configuration/fileGroup/Page.tsx 61:5-16
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/configuration/fileGroup/Page.tsx(61,6)
      TS2769: No overload matches this call.
  Overload 1 of 2, '(props: BasicPageProps | Readonly<BasicPageProps>): BasicLayout', gave the following error.
    Type '{ children: Element[]; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ selection: (state: string[], action: { type: string; payload?: string[]; }) => string[]; tags: (state: TagValue[], action: { ...; }) => TagValue[]; ... 12 more ...; title: (state: string, action: { ......' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
  Overload 2 of 2, '(props: BasicPageProps, context: any): BasicLayout', gave the following error.
    Type '{ children: Element[]; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ selection: (state: string[], action: { type: string; payload?: string[]; }) => string[]; tags: (state: TagValue[], action: { ...; }) => TagValue[]; ... 12 more ...; title: (state: string, action: { ......' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
 @ ./src/app.tsx 32:0-70 34:34-47
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/configuration/releaseHistory/Page.tsx
./src/polaris/configuration/releaseHistory/Page.tsx 64:5-16
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/configuration/releaseHistory/Page.tsx(64,6)
      TS2769: No overload matches this call.
  Overload 1 of 2, '(props: BasicPageProps | Readonly<BasicPageProps>): BasicLayout', gave the following error.
    Type '{ children: Element[]; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ tags: (state: any[], action: { type: string; payload?: any[]; }) => any[]; customFilters: (state: CustomFilters, action: { ...; }) => CustomFilters; ... 12 more ...; title: (state: string, action: { .....' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
  Overload 2 of 2, '(props: BasicPageProps, context: any): BasicLayout', gave the following error.
    Type '{ children: Element[]; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ tags: (state: any[], action: { type: string; payload?: any[]; }) => any[]; customFilters: (state: CustomFilters, action: { ...; }) => CustomFilters; ... 12 more ...; title: (state: string, action: { .....' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
 @ ./src/app.tsx 38:0-77 40:36-51
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/namespace/Page.tsx
./src/polaris/namespace/Page.tsx 35:5-16
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/namespace/Page.tsx(35,6)
      TS2769: No overload matches this call.
  Overload 1 of 2, '(props: BasicPageProps | Readonly<BasicPageProps>): BasicLayout', gave the following error.
    Type '{ children: Element[]; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ composedId: (state: ComposedId, action: { type: string; payload?: ComposedId; }) => ComposedId; ... 10 more ...; title: (state: string, action: { ...; }) => string; } & DUCKS_REDUCERS<...>>) => { ...; ...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
  Overload 2 of 2, '(props: BasicPageProps, context: any): BasicLayout', gave the following error.
    Type '{ children: Element[]; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ composedId: (state: ComposedId, action: { type: string; payload?: ComposedId; }) => ComposedId; ... 10 more ...; title: (state: string, action: { ...; }) => string; } & DUCKS_REDUCERS<...>>) => { ...; ...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
 @ ./src/app.tsx 17:0-56 19:34-47
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/service/Page.tsx
./src/polaris/service/Page.tsx 113:5-16
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/service/Page.tsx(113,6)
      TS2769: No overload matches this call.
  Overload 1 of 2, '(props: BasicPageProps | Readonly<BasicPageProps>): BasicLayout', gave the following error.
    Type '{ children: Element[]; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ customFilters: (state: CustomFilters, action: { type: string; payload?: CustomFilters; }) => CustomFilters; ... 14 more ...; title: (state: string, action: { ...; }) => string; } & DUCKS_REDUCERS<...>>...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
  Overload 2 of 2, '(props: BasicPageProps, context: any): BasicLayout', gave the following error.
    Type '{ children: Element[]; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ customFilters: (state: CustomFilters, action: { type: string; payload?: CustomFilters; }) => CustomFilters; ... 14 more ...; title: (state: string, action: { ...; }) => string; } & DUCKS_REDUCERS<...>>...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
 @ ./src/app.tsx 14:0-52 16:32-43
 @ ./src/index.tsx 7:0-24 16:25-28

ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/serviceAlias/Page.tsx
./src/polaris/serviceAlias/Page.tsx 52:5-16
[tsl] ERROR in /Users/nonacosa/code/polaris-console/web/src/polaris/serviceAlias/Page.tsx(52,6)
      TS2769: No overload matches this call.
  Overload 1 of 2, '(props: BasicPageProps | Readonly<BasicPageProps>): BasicLayout', gave the following error.
    Type '{ children: Element[]; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ customFilters: (state: CustomFilters, action: { type: string; payload?: CustomFilters; }) => CustomFilters; ... 14 more ...; title: (state: string, action: { ...; }) => string; } & DUCKS_REDUCERS<...>>...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
  Overload 2 of 2, '(props: BasicPageProps, context: any): BasicLayout', gave the following error.
    Type '{ children: Element[]; title: string; store: any; selectors: GLOBAL_SELECTORS<{ filter: (state: STATE_OF_REDUCERS<{ customFilters: (state: CustomFilters, action: { type: string; payload?: CustomFilters; }) => CustomFilters; ... 14 more ...; title: (state: string, action: { ...; }) => string; } & DUCKS_REDUCERS<...>>...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BasicLayout> & Readonly<BasicPageProps>'.
 @ ./src/app.tsx 67:0-62 70:37-53
 @ ./src/index.tsx 7:0-24 16:25-28

19 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.73.0 compiled with 19 errors in 34421 ms

服务熔断页面优化

侧边栏:故障容错->熔断降级

公共部分

  • 熔断规则名称
  • 熔断类型:节点熔断/服务熔断

熔断规则详情(节点熔断)

  • 目标服务(当请求路由到某个服务/接口/分组时,执行该熔断规则)
    • 命名空间(可选择全部或者1个)
    • 服务名(可选择全部或者1个)
    • 接口名称(可选择全部或者字符串匹配框)
    • 实例分组(下拉选择框,全部或者1个,分组名从路由规则来)
  • 熔断条件(满足以下任意条件即可触发熔断)
    • 什么是错误请求(多选,满足以下任意应答条件的请求会被标识为错误请求)
      • 错误类型(网络异常/应用异常/自定义异常),默认选择自定义即用户自己制定
      • 错误码(仅当应用层异常显示,字符串匹配框)
    • 何时进行熔断(如果满足以下任意条件,进行熔断)
      • 连续错误数
      • 错误率
      • 慢调用率
  • 熔断方案(满足熔断触发条件后的故障隔离方案)
    • 熔断时长
    • 熔断粒度:实例/实例分组
    • 半开恢复(多选、默认只选择请求放量):
      • 请求放量:当满足XX个连续成功请求后恢复
      • 主动探测:当满足XX个连续探测成功后恢复

build.sh脚本缺失

build.sh缺失以下脚本,导致无法build成功
set -e

if [[ $(uname) == 'Darwin' ]]; then
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}

md5sum() {
md5 $*
}
fi

Query monitoring information through polaris-console

Now the browser directly accesses the Prometheus service, which makes the container deployment more complicated.

The plan is to change the browser to request the polaris-console server and the polaris-console server to forward the request.

限流页面显示异常

单机版本polaris-console-release_v1.2.1.linux.amd64,连接mysql。限流规则页面显示异常,如下图:
bee9459b0777c01adddf766c9664321

使用curl添加限流规则后再访问页面,显示异常,如下图:
a042c8b0018ff296e71a4a198d9cff2

北极星配置中心页面,对比框弹窗调大一点

What is the feature you want to add?
目前配置发布页面以及配置发布历史页面的对比弹窗有点小,展示不全内容。建议调大一些
image

Why do you want to add this feature?

How to implement this feature?

Additional context
Add any other context or screenshots about the feature request here.

监控功能查询api域名问题

console平台中的监控功能前端查询api使用:
1:http://${BuildConfig.promethusHost}/api/v1/query_range
2:http://${BuildConfig.promethusHost}/api/v1/label/${params.labelKey}/values
前端代码 的${BuildConfig.promethusHost} 的域名是写死在 web/src/buildConfig/Base.ts 的promethusHost 文件字段;
因为promethus 监控软件是独立部署,ip和端口变化;这个 promethusHost 配置项不应写死在代码里;
应该作为yaml 或者其他可以配置文件里面

新版部署后登陆后出现407 - 解决方法

登录成功, 不会回跳登陆页了, 但是这个接口/core/v1/auth/status
还是会返回{"code":407,"info":"Proxy Authentication Required"}

原因是浏览器cookie缓存jwt未清空, 清空浏览器cookie缓存即可

指标监控优化

查询服务端接口定义列表

GET: /metrics/server/interfaces

{
  "code": "",
  "info": "",
  "data": [
    	{
	     "name":   "/v1/RegisterInstance",
	     "desc": "注册服务实例",
	     "type": "Register:服务注册/HealthCheck:监控检查/Discovery:服务发现/Config:配置读取",
	}
  ]
}

配置中心支持配置分组粒度的配置导入导出交互

配置支持按命名空间选择「全部配置分组」「某些配置分组」导入、导出。

文件格式:zip

格式:命名空间名称/配置分组/配置

导入时,需要用户选择遇到同名文件/文件夹是覆盖还是跳过。

一次导入一个zip包

image

image

image

导入过程:
image
导入成功:
image
导入失败:
image

优化过滤下拉框

北极星控制台现在有很多的过滤下拉框,但是大部分都没有“输入”过滤功能,例如:
image

image

当下拉选项多了之后,基本上没法用。

控制台所有这些地方,希望能优化成可输入筛选的下拉框

配置控制台页面优化

  • 配置文件编辑页面支持全屏编辑
  • 支持在配置编辑框中进行搜索
  • 支持对应语法高亮

企业微信截图_4546eaa2-594b-4bbd-a040-264b590789c6

支持 polaris-console & granfa 同机部署

支持方式

  • 构建 polaris-console 的时候,自动拉取对应的 granfa 安装包,start.sh 等脚本自动拉起
  • granfa 以内嵌的方式和 polaris-console 同进程运行

support mac build

What is the feature you want to add?
support standalone installation on mac

Why do you want to add this feature?
user want to quickly experience or debug on his laptop

How to implement this feature?
change the build.sh
change the workflow scripts

Additional context
Add any other context or screenshots about the feature request here.

服务列表支持优化的模糊搜索服务

What is the feature you want to add?
image

如果上图所示,目前需要用户手动输入 * 才可以模糊搜索,但是页面上又没有任何提示,所以用户很难使用模糊搜索的能力。

是否可以默认就是模糊搜索,前端自动加 *?

Additional context
Add any other context or screenshots about the feature request here.

增加文件发布状态提示,增加文件后缀提示

What is the feature you want to add?
1655271269813
1655271355266

Why do you want to add this feature?
1 如果文件比较多时候,不容易分辨哪个文件还没有发布

2 我在第一次建立文件的时候,没有加入yml后缀名,格式选择的yaml,在应用中引入的时候,也没加入后缀名,这个时候,应用不能正确识别这个文件为yaml文件。后台在配置中心将文件名增加上后缀,引入的时候也加上后缀,才正确识别了。

How to implement this feature?
增加必要的提示信息

前端支持事件中心、操作记录查询

polaris-console 需要支持直接对接腾讯云CLS以及开源的Loki插件

数据来源插件配置

对接腾讯云CLS配置

eventHub:
  type: cls
  options:
    topic:
    accessInfo:
      local:
        secretId:
        secretKey:
      remoteHttp:
        url:
history:
  type: cls
  options:
    topic:
    accessInfo:
      local:
        secretId:
        secretKey:
      remoteHttp:
        url:

对接Loki配置

eventHub:
  type: loki
  options:
    topic:
    tenantID:
    labels:
      key: value
history:
  type: loki
  options:
    topic:
    tenantID:
    labels:
      key: value

地理信息 展示与更新有问题

问题描述:

以自动注册的方式,将服务注册到北极星。

1、通过控制台 查看实例信息,发现实例标签包含region/zone等信息。但是地域信息无内容,预期应该是有的。
image

2、通过地域信息修改region/zone,结果无法同步到实例标签中。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.