+
-
+
{{ item.name }}
diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts
index ddaf8e6..ee5d9a6 100644
--- a/frontend/nuxt.config.ts
+++ b/frontend/nuxt.config.ts
@@ -10,13 +10,19 @@ export default defineNuxtConfig({
experimental: {
reactivityTransform: true,
inlineSSRStyles: false,
- componentIslands: true,
},
css: [
'@unocss/reset/tailwind.css',
+ '@/assets/css/main.css',
],
colorMode: {
- classSuffix: '',
+ preference: 'system', // default value of $colorMode.preference
+ fallback: 'light', // fallback value if not system preference found
+ hid: 'nuxt-color-mode-script',
+ globalName: '__NUXT_COLOR_MODE__',
+ classPrefix: '',
+ classSuffix: '-mode',
+ storageKey: 'nuxt-color-mode',
},
extends: [
'nuxt-seo-kit',
@@ -28,7 +34,7 @@ export default defineNuxtConfig({
siteDescription: 'Yet Another Blog In JueJin Style By ByteDream',
language: 'zh-CN',
titleSeparator: 'ยท',
- trailingSlash: true,
+ trailingSlash: false,
mode: process.env.NODE_ENV,
strapi_base_url: process.env.NODE_ENV === 'development' ? 'http://127.0.0.1:8886' : 'https://cms.marlene.top',
graphql_url: process.env.NODE_ENV === 'development' ? 'http://127.0.0.1:8886/graphql' : 'https://cms.marlene.top/graphql',
diff --git a/frontend/unocss.config.ts b/frontend/unocss.config.ts
index d024e38..5f4f0dc 100644
--- a/frontend/unocss.config.ts
+++ b/frontend/unocss.config.ts
@@ -8,11 +8,11 @@ import {
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
-
export default defineConfig({
shortcuts: [
['btn', 'px-4 py-1 rounded inline-block bg-teal-600 text-white cursor-pointer hover:bg-teal-700 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
['icon-btn', 'inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-teal-600'],
+ ['f-c-c', 'flex justify-center items-center'],
],
presets: [
presetUno(),
@@ -28,9 +28,16 @@ export default defineConfig({
mono: 'DM Mono',
},
}),
+
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
+ theme: {
+ colors: {
+ primary: 'var(--primary-color)',
+ dark_bg: 'var(--dark-bg)',
+ },
+ },
})
diff --git a/package.json b/package.json
index 6fe8b5d..e4a01f2 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,8 @@
"postinstall": "nuxi prepare",
"build": "npx turbo build --no-cache --force",
"lint:fix": "npx turbo lint:fix",
- "typecheck": "npx turbo typecheck"
+ "typecheck": "npx turbo typecheck",
+ "start": "npx turbo start"
},
"packageManager": "yarn@1.22.19",
"workspaces": [