feat(web): vite + vue 3 + ts + tailwind + naive ui scaffolding

This commit is contained in:
2026-04-29 07:32:32 +08:00
parent b72de98f15
commit aef7b0b661
11 changed files with 3244 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
<template>
<div class="min-h-screen flex items-center justify-center">
<p class="text-lg">Agent Coding Workflow scaffolding ready.</p>
</div>
</template>
<script setup lang="ts">
// 占位组件:I5 接入 router 后改写为 RouterView + NConfigProvider。
</script>
+11
View File
@@ -0,0 +1,11 @@
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import './styles/tailwind.css'
import './styles/tokens.css'
const app = createApp(App)
app.use(createPinia())
app.mount('#app')
+3
View File
@@ -0,0 +1,3 @@
@import "tailwindcss";
@variant dark (&:where(.dark, .dark *));
+20
View File
@@ -0,0 +1,20 @@
:root {
--color-bg: #ffffff;
--color-fg: #1a1a1a;
--color-muted: #6b7280;
--color-accent: #2563eb;
}
.dark {
--color-bg: #0f1115;
--color-fg: #e5e7eb;
--color-muted: #9ca3af;
--color-accent: #60a5fa;
}
body {
background: var(--color-bg);
color: var(--color-fg);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
Arial, "Microsoft YaHei", sans-serif;
}