-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: make the node dashboard plugin to work
Signed-off-by: barnettZQG <[email protected]>
- Loading branch information
1 parent
2e452d4
commit f10a8eb
Showing
179 changed files
with
1,372 additions
and
824 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export interface Cluster { | ||
name: string; | ||
kubeConfig: string; | ||
alias?: string; | ||
status?: string; | ||
icon?: string; | ||
description?: string; | ||
createTime?: string; | ||
dashboardURL?: string; | ||
labels?: {}; | ||
providerInfo?: { | ||
provider: string; | ||
clusterID: string; | ||
clusterName?: string; | ||
regionID?: string; | ||
vpcID?: string; | ||
zoneID?: string; | ||
}; | ||
} | ||
|
||
export interface CreateCluster { | ||
name: string; | ||
alias?: string; | ||
icon?: string; | ||
description?: string; | ||
dashboardURL?: string; | ||
kubeConfig: string; | ||
labels?: {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './cluster'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './types'; | ||
export * from './plugins'; | ||
export * from './api'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
import path from 'path'; | ||
import dts from 'rollup-plugin-dts'; | ||
import esbuild from 'rollup-plugin-esbuild'; | ||
import { externals } from 'rollup-plugin-node-externals'; | ||
import json from '@rollup/plugin-json'; | ||
|
||
const pkg = require('./package.json'); | ||
|
||
export default [ | ||
{ | ||
input: 'src/types.ts', | ||
plugins: [externals({ deps: true, packagePath: './package.json' }), resolve(), esbuild(), json()], | ||
output: [ | ||
{ | ||
format: 'cjs', | ||
sourcemap: true, | ||
dir: path.dirname(pkg.publishConfig.main), | ||
}, | ||
{ | ||
format: 'esm', | ||
sourcemap: true, | ||
dir: path.dirname(pkg.publishConfig.module), | ||
preserveModules: true, | ||
// @ts-expect-error (TS cannot assure that `process.env.PROJECT_CWD` is a string) | ||
preserveModulesRoot: path.join(process.env.PROJECT_CWD, `packages/velux-ui/src`), | ||
}, | ||
], | ||
}, | ||
{ | ||
input: './compiled/types.d.ts', | ||
plugins: [dts()], | ||
output: { | ||
file: pkg.publishConfig.types, | ||
format: 'es', | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.