polarismesh / polaris-console Goto Github PK
View Code? Open in Web Editor NEWConsole for Polaris
License: Other
Console for Polaris
License: Other
GET: /metrics/server/interfaces
{
"code": "",
"info": "",
"data": [
{
"name": "/v1/RegisterInstance",
"desc": "注册服务实例",
"type": "Register:服务注册/HealthCheck:监控检查/Discovery:服务发现/Config:配置读取",
}
]
}
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.
控制台的权限策略管理入口,是否需要跟功能开关相关联。
目前如果在北极星服务将auth的open都关闭,则控制台不会显示入口。但我觉得这里应该是可以解耦。
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.
部分非1080P分辨率的屏幕展示注册配置监控视图时,会出现文字重叠的情况,希望能优化一下适配问题。
main 分支
nonacosa@localhost web % node -v
v18.1.0
nonacosa@localhost web % npm -v
8.12.2
polaris-console/web 目录下:
rm- rf ./build
cnpm i
npm build
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
侧边栏:故障容错->熔断降级
公共部分
熔断规则详情(节点熔断)
版本: polaris-standalone-release_v1.2.1.darwin.amd64.zip
build.sh缺失以下脚本,导致无法build成功
set -e
if [[ $(uname) == 'Darwin' ]]; then
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
md5sum() {
md5 $*
}
fi
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 或者其他可以配置文件里面
提供Swagger UI 供加载Polaris Server的OpenAPI 接口
正常用户路径 http://127.0.0.1:8088/#/user
点击查看用户详情后显示http://127.0.0.1:8088/#/user-detail?id=token
使用spring cloud gateway 网关转发后 用户路径为 http://127.0.0.1:8080/polaris/#/user
点击查看用户详情后显示http://127.0.0.1:8080/#/user-detail?id=token
少了polaris/ 判断
登录成功, 不会回跳登陆页了, 但是这个接口/core/v1/auth/status
还是会返回{"code":407,"info":"Proxy Authentication Required"}
原因是浏览器cookie缓存jwt未清空, 清空浏览器cookie缓存即可
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
暂时先支持一下几种
支持方式
issue #49
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.