From 06fbace5d10d2e5e306d3155f29df9ddf8454bae Mon Sep 17 00:00:00 2001 From: ioococ Date: Mon, 10 Nov 2025 15:26:33 +0800 Subject: [PATCH 1/3] =?UTF-8?q?chore:=20=E4=BD=BF=E7=94=A8=20pnpm=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=89=E8=A3=85=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 444833b..adbaa61 100644 --- a/README.md +++ b/README.md @@ -26,17 +26,17 @@ See [Vite Configuration Reference](https://vite.dev/config/). ## Project Setup ```sh -npm install +pnpm install ``` ### Compile and Hot-Reload for Development ```sh -npm run dev +pnpm run dev ``` ### Type-Check, Compile and Minify for Production ```sh -npm run build +pnpm run build ``` From ef811b6f2584698b37d642391b6fcf7a9c4a7403 Mon Sep 17 00:00:00 2001 From: ioococ Date: Mon, 10 Nov 2025 15:29:27 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=B8=A6?= =?UTF-8?q?=E6=9C=89DaisyUI=E6=94=AF=E6=8C=81=E7=9A=84Tailwind=20CSS?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/base.css | 2 ++ tailwind.config.js | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tailwind.config.js diff --git a/src/assets/base.css b/src/assets/base.css index 8816868..2689f41 100644 --- a/src/assets/base.css +++ b/src/assets/base.css @@ -1,3 +1,5 @@ +@import "tailwindcss"; + /* color palette from */ :root { --vt-c-white: #ffffff; diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..28921b9 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,11 @@ +/** @type {import('tailwindcss').Config} */ +export default { + content: [ + "./index.html", + "./src/**/*.{vue,js,ts,jsx,tsx}", + ], + plugins: [require("daisyui")], + daisyui: { + themes: ["light", "dark"], + }, +} From 79c1b465e885dbfeafc7dcf2d3490a27aa28564f Mon Sep 17 00:00:00 2001 From: ioococ Date: Mon, 10 Nov 2025 15:30:59 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E5=B9=B6=E6=B7=BB=E5=8A=A0=E7=9B=91=E6=8E=A7=E5=92=8C?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=8A=82=E7=82=B9=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 116 +++++++++++++++++--------------------- src/assets/main.css | 6 -- src/router/index.ts | 14 +++-- src/views/HomeView.vue | 11 ++-- src/views/MonitorView.vue | 10 ++++ src/views/SubmitView.vue | 10 ++++ 6 files changed, 83 insertions(+), 84 deletions(-) create mode 100644 src/views/MonitorView.vue create mode 100644 src/views/SubmitView.vue diff --git a/src/App.vue b/src/App.vue index a99cd2c..a1b64b2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,84 +1,70 @@ diff --git a/src/assets/main.css b/src/assets/main.css index 36fb845..67b26be 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,8 +1,6 @@ @import './base.css'; #app { - max-width: 1280px; - margin: 0 auto; padding: 2rem; font-weight: normal; } @@ -23,13 +21,9 @@ a, @media (min-width: 1024px) { body { - display: flex; - place-items: center; } #app { - display: grid; - grid-template-columns: 1fr 1fr; padding: 0 2rem; } } diff --git a/src/router/index.ts b/src/router/index.ts index 3e49915..2efc3c1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -10,12 +10,14 @@ const router = createRouter({ component: HomeView, }, { - path: '/about', - name: 'about', - // route level code-splitting - // this generates a separate chunk (About.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import('../views/AboutView.vue'), + path: '/monitor', + name: 'monitor', + component: () => import('../views/MonitorView.vue'), + }, + { + path: '/submit', + name: 'submit', + component: () => import('../views/SubmitView.vue'), }, ], }) diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index d5c0217..8695732 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,9 +1,6 @@ - - diff --git a/src/views/MonitorView.vue b/src/views/MonitorView.vue new file mode 100644 index 0000000..ce0df23 --- /dev/null +++ b/src/views/MonitorView.vue @@ -0,0 +1,10 @@ + + + diff --git a/src/views/SubmitView.vue b/src/views/SubmitView.vue new file mode 100644 index 0000000..1ae18b2 --- /dev/null +++ b/src/views/SubmitView.vue @@ -0,0 +1,10 @@ + + +