├── public ├── CNAME └── favicon.ico ├── commitlint.config.js ├── src ├── assets │ ├── logo.png │ └── img │ │ └── login-bg.jpg ├── store │ ├── modules │ │ ├── NumFactory │ │ │ ├── module.ts │ │ │ └── index.ts │ │ └── UserFactory │ │ │ ├── module.ts │ │ │ └── index.ts │ ├── module.ts │ └── index.ts ├── shims-vue.d.ts ├── views │ ├── stores │ │ └── PVPVC.vue │ ├── resource │ │ ├── Services.vue │ │ ├── Deployments.vue │ │ ├── StatefulSets.vue │ │ ├── PodInfo.vue │ │ └── Pod.vue │ ├── Stores.vue │ ├── Images.vue │ ├── Templeton.vue │ ├── rbac │ │ └── Namespaces.vue │ ├── Vuex.vue │ ├── Axios.vue │ ├── Xterm.vue │ ├── Resource.vue │ ├── Login.vue │ └── Home.vue ├── utils │ ├── import-ui-framework.ts │ └── axios.ts ├── main.ts ├── App.vue ├── style │ └── basic.styl ├── router │ └── index.ts └── components │ ├── Main.vue │ └── Header.vue ├── images └── README │ ├── image-20210608204425146.png │ ├── image-20210608204720670.png │ └── image-20210608204744563.png ├── .prettierrc ├── tests ├── Header.spec.ts └── Test.spec.ts ├── index.html ├── jest.config.js ├── .editorconfig ├── tsconfig.json ├── vite.config.ts ├── .gitignore ├── .eslintrc.js ├── README.md ├── .cz-config.js └── package.json /public/CNAME: -------------------------------------------------------------------------------- 1 | www.haozheyu.top 2 | -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { extends: ['@commitlint/config-conventional'] } 2 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haozheyu/k8s_dashboard/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haozheyu/k8s_dashboard/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /src/assets/img/login-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haozheyu/k8s_dashboard/HEAD/src/assets/img/login-bg.jpg -------------------------------------------------------------------------------- /src/store/modules/NumFactory/module.ts: -------------------------------------------------------------------------------- 1 | export default interface NumFactoryStateTypes { 2 | name: string 3 | count: number 4 | } 5 | -------------------------------------------------------------------------------- /images/README/image-20210608204425146.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haozheyu/k8s_dashboard/HEAD/images/README/image-20210608204425146.png -------------------------------------------------------------------------------- /images/README/image-20210608204720670.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haozheyu/k8s_dashboard/HEAD/images/README/image-20210608204720670.png -------------------------------------------------------------------------------- /images/README/image-20210608204744563.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haozheyu/k8s_dashboard/HEAD/images/README/image-20210608204744563.png -------------------------------------------------------------------------------- /src/store/modules/UserFactory/module.ts: -------------------------------------------------------------------------------- 1 | export default interface UserFactoryStateTypes { 2 | username :string 3 | IsLogin : boolean 4 | } 5 | -------------------------------------------------------------------------------- /src/shims-vue.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | import { DefineComponent } from 'vue' 3 | const component: DefineComponent<{}, {}, any> 4 | export default component 5 | } 6 | -------------------------------------------------------------------------------- /src/views/stores/PVPVC.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 14 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "useTabs": false, 3 | "tabWidth": 2, 4 | "printWidth": 88, 5 | "singleQuote": true, 6 | "trailingComma": "none", 7 | "bracketSpacing": true, 8 | "semi": false 9 | } 10 | -------------------------------------------------------------------------------- /src/utils/import-ui-framework.ts: -------------------------------------------------------------------------------- 1 | import { App } from 'vue' 2 | import ElementPlus from 'element-plus' 3 | import 'element-plus/lib/theme-chalk/index.css' 4 | 5 | export default function importUiFramework(app: App) { 6 | app.use(ElementPlus) 7 | return app 8 | } 9 | -------------------------------------------------------------------------------- /src/store/module.ts: -------------------------------------------------------------------------------- 1 | import NumFactoryStateTypes from './modules/NumFactory/module' 2 | 3 | export default interface RootStateTypes { 4 | text: string 5 | } 6 | 7 | export interface AllStateTypes extends RootStateTypes { 8 | numFactoryModule: NumFactoryStateTypes 9 | } 10 | -------------------------------------------------------------------------------- /src/views/resource/Services.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 15 | 16 | -------------------------------------------------------------------------------- /src/views/resource/Deployments.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 15 | 16 | -------------------------------------------------------------------------------- /src/views/resource/StatefulSets.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 15 | 16 | -------------------------------------------------------------------------------- /tests/Header.spec.ts: -------------------------------------------------------------------------------- 1 | import { mount } from '@vue/test-utils' 2 | // @ts-ignore 3 | import Header from '../src/components/Header.vue' 4 | 5 | describe('Header.vue', () => { 6 | it('renders', () => { 7 | const wrapper = mount(Header) 8 | expect(wrapper.html()).toContain('Vite2.x + Vue3.x + TypeScript Starter') 9 | }) 10 | }) 11 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |store Root is: {{ text }}
5 |store doubleCount is: {{ count }}
6 |Tips : 用户名和密码随便填。
39 |namespace: {{ scope.row.namespace }}
27 | 28 | 29 |podIPs: {{ scope.row.podIP }}
58 | 59 | 60 |