From 31105e89c89fd9581455ee39d8f3025db82e1f43 Mon Sep 17 00:00:00 2001 From: Shikong <919411476@qq.com> Date: Sat, 25 Feb 2023 22:45:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E5=90=88=20Quasar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.storybook/preview.ts | 12 + .../matrix-middle-service-web/package.json | 11 +- .../postcss.config.cjs | 6 + .../matrix-middle-service-web/src/App.vue | 2 +- .../src/components/HelloWorld.vue | 2 +- .../matrix-middle-service-web/src/index.css | 4 + .../matrix-middle-service-web/src/main.ts | 43 +- .../src/quasar-variables.sass | 12 + .../src/router/index.ts | 31 ++ .../src/router/routes.ts | 10 + .../src/stores/index.ts | 18 + .../tailwind.config.cjs | 9 + .../matrix-middle-service-web/vite.config.ts | 10 +- frontend/matrix-middle-service-web/yarn.lock | 389 +++++++++++++++++- 14 files changed, 541 insertions(+), 18 deletions(-) create mode 100644 frontend/matrix-middle-service-web/postcss.config.cjs create mode 100644 frontend/matrix-middle-service-web/src/index.css create mode 100644 frontend/matrix-middle-service-web/src/quasar-variables.sass create mode 100644 frontend/matrix-middle-service-web/src/router/index.ts create mode 100644 frontend/matrix-middle-service-web/src/router/routes.ts create mode 100644 frontend/matrix-middle-service-web/src/stores/index.ts create mode 100644 frontend/matrix-middle-service-web/tailwind.config.cjs diff --git a/frontend/matrix-middle-service-web/.storybook/preview.ts b/frontend/matrix-middle-service-web/.storybook/preview.ts index 7503580..e32fea8 100644 --- a/frontend/matrix-middle-service-web/.storybook/preview.ts +++ b/frontend/matrix-middle-service-web/.storybook/preview.ts @@ -1,4 +1,16 @@ import type { Preview } from "@storybook/vue3"; +import '../src/index.css' + +// Import icon libraries +import '@quasar/extras/material-icons/material-icons.css' +import '@quasar/extras/fontawesome-v5/fontawesome-v5.css' + +// A few examples for animations from Animate.css: +// import @quasar/extras/animate/fadeIn.css +// import @quasar/extras/animate/fadeOut.css + +// Import Quasar css +import 'quasar/src/css/index.sass' const preview: Preview = { parameters: { diff --git a/frontend/matrix-middle-service-web/package.json b/frontend/matrix-middle-service-web/package.json index b52c270..2ad72f7 100644 --- a/frontend/matrix-middle-service-web/package.json +++ b/frontend/matrix-middle-service-web/package.json @@ -11,10 +11,15 @@ "build-storybook": "storybook build" }, "dependencies": { - "vue": "^3.2.45" + "@quasar/extras": "^1.15.11", + "pinia": "^2.0.30", + "quasar": "^2.11.5", + "vue": "^3.2.45", + "vue-router": "^4.1.6" }, "devDependencies": { "@babel/core": "^7.21.0", + "@quasar/vite-plugin": "^1.3.0", "@storybook/addon-actions": "^7.0.0-beta.54", "@storybook/addon-essentials": "^7.0.0-beta.54", "@storybook/addon-interactions": "^7.0.0-beta.54", @@ -25,10 +30,14 @@ "@storybook/vue3": "^7.0.0-beta.54", "@storybook/vue3-vite": "^7.0.0-beta.54", "@vitejs/plugin-vue": "^4.0.0", + "autoprefixer": "latest", "babel-loader": "^8.3.0", + "postcss": "latest", "react": "^18.2.0", "react-dom": "^18.2.0", + "sass": "1.32.0", "storybook": "^7.0.0-beta.54", + "tailwindcss": "latest", "typescript": "^4.9.3", "vite": "^4.1.0", "vue-loader": "^16.8.3", diff --git a/frontend/matrix-middle-service-web/postcss.config.cjs b/frontend/matrix-middle-service-web/postcss.config.cjs new file mode 100644 index 0000000..33ad091 --- /dev/null +++ b/frontend/matrix-middle-service-web/postcss.config.cjs @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/frontend/matrix-middle-service-web/src/App.vue b/frontend/matrix-middle-service-web/src/App.vue index bb666a8..b3e89cb 100644 --- a/frontend/matrix-middle-service-web/src/App.vue +++ b/frontend/matrix-middle-service-web/src/App.vue @@ -14,7 +14,7 @@ import HelloWorld from './components/HelloWorld.vue' -