diff --git a/dashboard/.env.development b/dashboard/.env.development new file mode 100644 index 0000000..88c4eb8 --- /dev/null +++ b/dashboard/.env.development @@ -0,0 +1,2 @@ +VITE_APP_API_BASE_URL="/api" +VITE_PROXY=[["/api", "http://localhost:36789"]] diff --git a/dashboard/package.json b/dashboard/package.json index 3a5df36..8be934b 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -9,7 +9,8 @@ }, "dependencies": { "ant-design-vue": "^3.1.1", - "vue": "^3.2.25" + "vue": "^3.2.25", + "vue-request": "^1.2.4" }, "devDependencies": { "@types/node": "^17.0.23", @@ -27,6 +28,7 @@ "postcss-import": "^14.1.0", "postcss-nested": "^5.0.6", "postcss-simple-vars": "^6.0.3", + "tailwindcss": "^3.0.24", "typescript": "^4.5.4", "unplugin-vue-components": "^0.19.3", "vite": "^2.9.1", diff --git a/dashboard/postcss.config.js b/dashboard/postcss.config.js new file mode 100644 index 0000000..33ad091 --- /dev/null +++ b/dashboard/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/dashboard/src/assets/css/index.css b/dashboard/src/assets/css/index.css new file mode 100644 index 0000000..dc83d5c --- /dev/null +++ b/dashboard/src/assets/css/index.css @@ -0,0 +1,3 @@ +/* @tailwind base; */ +@tailwind components; +@tailwind utilities; diff --git a/dashboard/src/components.d.ts b/dashboard/src/components.d.ts index ff00510..a9be5ca 100644 --- a/dashboard/src/components.d.ts +++ b/dashboard/src/components.d.ts @@ -14,6 +14,8 @@ declare module '@vue/runtime-core' { AMenu: typeof import('ant-design-vue/es')['Menu'] AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] ASubMenu: typeof import('ant-design-vue/es')['SubMenu'] + ATable: typeof import('ant-design-vue/es')['Table'] + ATag: typeof import('ant-design-vue/es')['Tag'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] diff --git a/dashboard/src/layout/aside.vue b/dashboard/src/layout/aside.vue index e5ef9a1..050369a 100644 --- a/dashboard/src/layout/aside.vue +++ b/dashboard/src/layout/aside.vue @@ -1,5 +1,5 @@