This commit is contained in:
2026-06-02 13:34:54 +08:00
parent d7469b9622
commit 4d9b763d18
46 changed files with 0 additions and 2718 deletions

View File

@@ -1,10 +0,0 @@
<template>
<n-config-provider :locale="zhCN" :date-locale="dateZhCN">
<router-view />
</n-config-provider>
</template>
<script setup lang="ts">
import { zhCN, dateZhCN } from "naive-ui";
</script>
<style scoped lang="scss"></style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -1,7 +0,0 @@
import { create, NButton, NConfigProvider } from "naive-ui";
const useNaiveUi = create({
components: [NButton, NConfigProvider]
});
export default useNaiveUi;

View File

@@ -1,5 +0,0 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

View File

@@ -1,2 +0,0 @@
/** 全局样式 */
@use "./global.scss";

View File

@@ -1,4 +0,0 @@
/**
* 引入 Tailwind CSS
*/
@import "tailwindcss";

View File

@@ -1 +0,0 @@
$bgColor: #ff0000;

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 8.5 KiB

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>

Before

Width:  |  Height:  |  Size: 496 B

View File

@@ -1 +0,0 @@
// 占位

View File

@@ -1,16 +0,0 @@
<script setup lang="ts">
import { ref } from "vue";
const count = ref(0);
</script>
<template>
<section id="center" class="bg-amber-200">
<div>
<h1>Get started</h1>
<p>Edit <code>src/App.vue</code> and save to test <code>HMR</code></p>
</div>
<button type="button" class="counter" @click="count++">Count is {{ count }}</button>
</section>
</template>
<style scoped lang="scss"></style>

7
src/env.d.ts vendored
View File

@@ -1,7 +0,0 @@
/// <reference types="vite/client" />
declare module "*.vue" {
import type { DefineComponent } from "vue";
const component: DefineComponent<{}, {}, any>;
export default component;
}

View File

@@ -1,11 +0,0 @@
<template>
<div class="flex min-h-full">
<router-view></router-view>
</div>
</template>
<script setup lang="ts">
// flex min-h-full flex-1 overflow-x-hidden select-none
</script>
<style scoped lang="scss"></style>

View File

@@ -1 +0,0 @@
export { default as AuthPageLayout } from "./authPageLayout.vue";

View File

@@ -1,13 +0,0 @@
import { createApp } from "vue";
import { initPinia } from "@/pinia";
import { router } from "@/router";
import useNaiveUi from "@/assets/naiveUI/useNaiveUi.ts";
import App from "./App.vue";
/** 引入 Tailwind CSS必须在 SCSS 之前,确保 Vite 插件能正确拦截处理) */
import "@/assets/style/tailwind.css";
import "@/assets/style/index.scss";
const app = createApp(App);
app.use(initPinia());
app.use(router).use(useNaiveUi).mount("#app");

View File

@@ -1,2 +0,0 @@
export * from "./setup.ts";
export * from "./modules";

View File

@@ -1,11 +0,0 @@
import { defineStore } from "pinia";
export const useAccountStore = defineStore(
"account",
() => {
// TODO: 账号信息
},
{
persist: true
}
);

View File

@@ -1 +0,0 @@
export * from "./account.ts";

View File

@@ -1,9 +0,0 @@
import { createPinia } from "pinia";
import piniaPluginPersistedState from "pinia-plugin-persistedstate";
export function initPinia() {
const pinia = createPinia();
// 持久化存储
pinia.use(piniaPluginPersistedState);
return pinia;
}

View File

@@ -1,19 +0,0 @@
import type { Router } from "vue-router";
/**
* 通用路由守卫
*/
function setupCommonGuard(router: Router) {
// @ts-ignore
router.beforeEach(async (to, from) => {
// TODO: 路由守卫
return true;
});
}
// 路由守卫
function createRouterGuard(router: Router) {
setupCommonGuard(router);
}
export { createRouterGuard };

View File

@@ -1,16 +0,0 @@
import { createMemoryHistory, createRouter } from "vue-router";
import routes from "./routes";
import { createRouterGuard } from "@/router/guard.ts";
/**
* 创建路由实例
*/
const router = createRouter({
history: createMemoryHistory(),
routes
});
// 创建路由守卫
createRouterGuard(router);
export { router };

View File

@@ -1,29 +0,0 @@
import type { RouteRecordRaw } from "vue-router";
const routes: RouteRecordRaw[] = [
{
path: "/",
name: "Root",
component: () => import("@/components/HelloWorld.vue"),
children: []
},
{
path: "/auth",
name: "Authentication",
component: () => import("@/layouts/authPage/authPageLayout.vue"),
children: [
{
path: "login",
name: "Login",
component: () => import("@/views/auth/login.vue")
},
{
path: "register",
name: "Register",
component: () => import("@/views/auth/register.vue")
}
]
}
];
export default routes;

View File

@@ -1,7 +0,0 @@
<template>
<div class="h-2/5"></div>
</template>
<script setup lang="ts"></script>
<style scoped lang="scss"></style>

View File

@@ -1,5 +0,0 @@
<template></template>
<script setup lang="ts"></script>
<style scoped lang="scss"></style>