-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from terwer/dev
feat:#1 完成暗黑模式适配
- Loading branch information
Showing
12 changed files
with
252 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
html.dark body{ | ||
/* 自定义深色背景颜色 */ | ||
--custom-app-color:#ffffff; | ||
--custom-app-bg-color: #000000; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export default { | ||
"lang.choose": "Choose lang", | ||
"lang.choose.placeholder": "Please select language", | ||
"theme.mode.choose": "Mode", | ||
"theme.mode.dark": "Dark mode", | ||
"theme.mode.light": "Light mode", | ||
"theme.choose": "Choose theme", | ||
"theme.choose.default": "Default theme", | ||
"theme.choose.terwer": "Terwer theme", | ||
"ele.select.placeholder": "Select", | ||
"header.nowis":"Now is", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export default { | ||
"lang.choose": "语言选择", | ||
"lang.choose.placeholder": "请选择语言", | ||
"theme.mode.choose": "切换模式", | ||
"theme.mode.dark": "暗黑模式", | ||
"theme.mode.light": "浅色模式", | ||
"theme.choose": "主题选择", | ||
"theme.choose.default": "默认主题", | ||
"theme.choose.terwer": "特维主题", | ||
"ele.select.placeholder": "请选择", | ||
"header.nowis":"现在是", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import {createI18n} from 'vue-i18n' | ||
// import {zhCn, en} from "element-plus/es/locale"; | ||
import zh_CN from "~/locales/zh_CN"; | ||
import en_US from "~/locales/en_US"; | ||
|
||
export default defineNuxtPlugin(({vueApp}) => { | ||
const i18n = createI18n({ | ||
legacy: false, | ||
globalInjection: true, | ||
locale: 'zh_CN', // 默认显示语言 | ||
fallbackLocale: 'en_US', // 次要语言 | ||
messages: { | ||
zh_CN, | ||
en_US | ||
}, | ||
}) | ||
|
||
vueApp.use(i18n) | ||
}) |
Oops, something went wrong.
9a1a3d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
jvue-front – ./
jvue-front-git-main-terwergreen.vercel.app
jvue-front-terwergreen.vercel.app
jvue-front.vercel.app
terwer.space
www.terwer.space