no message
Former-commit-id: dbd4696bacf079b582cb3f6a54b9ffe2a69d5748 [formerly dbd4696bacf079b582cb3f6a54b9ffe2a69d5748 [formerly dbd4696bacf079b582cb3f6a54b9ffe2a69d5748 [formerly dbd4696bacf079b582cb3f6a54b9ffe2a69d5748 [formerly c26024789dc074976e69b0f040d9e421d62a3bd7 [formerly 7f6ec45d8e64b5e71a26a65aaa51005bb461700a]]]]] Former-commit-id: 1cb4df18981f54cd03913a6a27d9425b33305b3d Former-commit-id: ef454fd3e98fbffd46407633c2646a18d88daa98 Former-commit-id: f1a9a0cfe1c664c403e89bff0df1f23dcfb9d888 [formerly 6394f709c6b19f25bd85e7aff6b4fe9d0205e1e7] Former-commit-id: 9a7013b959cea245d98b7d8757345d37e4b44fc7 Former-commit-id: 3f08905223925a2b2186a1250126a1771fb71c35 Former-commit-id: 4d3fe83da00fa5d857f9b4e6f49d59cf2310277d Former-commit-id: 42302494ffdf0eff5f603432d0616b59134527c9 Former-commit-id: 753d52c189ff17383a8f6a78722350b3a0f03db8
This commit is contained in:
@@ -1 +1 @@
|
|||||||
961b48ccb8ed6a26747b373e793852ded4210ed3
|
b6bb25353a9e136a4ba55d703d528bc069f5b6d6
|
||||||
@@ -16,8 +16,15 @@ function loadLocaleMessages () {
|
|||||||
return messages
|
return messages
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const messages = loadLocaleMessages()
|
||||||
|
|
||||||
|
Vue.prototype.$languages = Object.keys(messages).map(langlage => ({
|
||||||
|
label: messages[langlage]._name,
|
||||||
|
value: langlage
|
||||||
|
}))
|
||||||
|
|
||||||
export default new VueI18n({
|
export default new VueI18n({
|
||||||
locale: process.env.VUE_APP_I18N_LOCALE || 'en',
|
locale: process.env.VUE_APP_I18N_LOCALE || 'en',
|
||||||
fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',
|
fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',
|
||||||
messages: loadLocaleMessages()
|
messages
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"_name": "English",
|
||||||
"public": {
|
"public": {
|
||||||
"error-message": {
|
"error-message": {
|
||||||
"form-not-valid": "Form Check Failure"
|
"form-not-valid": "Form Check Failure"
|
||||||
@@ -39,26 +40,6 @@
|
|||||||
"sub-title": "Elegant mid-background integration solution",
|
"sub-title": "Elegant mid-background integration solution",
|
||||||
"title": "D2 Admin"
|
"title": "D2 Admin"
|
||||||
},
|
},
|
||||||
"help": {
|
|
||||||
"chat": {
|
|
||||||
"title": {
|
|
||||||
"qq": "QQ group [ 1500 / 2000 people ]",
|
|
||||||
"we": "Invite into the WeChat group after becoming friends with the author"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"href": {
|
|
||||||
"doc": "https://doc.d2admin.fairyever.com/"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"doc": "Document",
|
|
||||||
"github": "Homepage",
|
|
||||||
"issues": "Issues",
|
|
||||||
"new-issue": "New issue"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"title": "Help"
|
|
||||||
},
|
|
||||||
"page": {
|
"page": {
|
||||||
"link": {
|
"link": {
|
||||||
"href": {
|
"href": {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"_name": "日本語",
|
||||||
"public": {
|
"public": {
|
||||||
"error-message": {
|
"error-message": {
|
||||||
"form-not-valid": "フォームの検証に失敗しました"
|
"form-not-valid": "フォームの検証に失敗しました"
|
||||||
@@ -39,26 +40,6 @@
|
|||||||
"sub-title": "エレガントなミッドバックグラウンド統合ソリューション",
|
"sub-title": "エレガントなミッドバックグラウンド統合ソリューション",
|
||||||
"title": "D2 Admin"
|
"title": "D2 Admin"
|
||||||
},
|
},
|
||||||
"help": {
|
|
||||||
"chat": {
|
|
||||||
"title": {
|
|
||||||
"qq": "QQグループ[1500/2000人]",
|
|
||||||
"we": "著者と友達になった後にWeChatグループに招待する"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"href": {
|
|
||||||
"doc": "https://doc.d2admin.fairyever.com/"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"doc": "文書",
|
|
||||||
"github": "ホームページ",
|
|
||||||
"issues": "問題",
|
|
||||||
"new-issue": "新しい号"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"title": "ヘルプ"
|
|
||||||
},
|
|
||||||
"page": {
|
"page": {
|
||||||
"link": {
|
"link": {
|
||||||
"href": {
|
"href": {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"_name": "简体中文",
|
||||||
"public": {
|
"public": {
|
||||||
"error-message": {
|
"error-message": {
|
||||||
"form-not-valid": "表单校验失败"
|
"form-not-valid": "表单校验失败"
|
||||||
@@ -39,26 +40,6 @@
|
|||||||
"sub-title": "优雅的中后台集成方案",
|
"sub-title": "优雅的中后台集成方案",
|
||||||
"title": "D2 Admin"
|
"title": "D2 Admin"
|
||||||
},
|
},
|
||||||
"help": {
|
|
||||||
"chat": {
|
|
||||||
"title": {
|
|
||||||
"qq": "QQ群 [ 1500+ / 2000 人 ]",
|
|
||||||
"we": "与作者成为好友后邀请进微信群"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"href": {
|
|
||||||
"doc": "https://doc.d2admin.fairyever.com/zh/"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"doc": "文档",
|
|
||||||
"github": "主页",
|
|
||||||
"issues": "issues",
|
|
||||||
"new-issue": "New issue"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"title": "帮助"
|
|
||||||
},
|
|
||||||
"page": {
|
"page": {
|
||||||
"link": {
|
"link": {
|
||||||
"href": {
|
"href": {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"_name": "繁體中文",
|
||||||
"public": {
|
"public": {
|
||||||
"error-message": {
|
"error-message": {
|
||||||
"form-not-valid": "表單校驗失敗"
|
"form-not-valid": "表單校驗失敗"
|
||||||
@@ -39,26 +40,6 @@
|
|||||||
"sub-title": "優雅的中後台集成方案",
|
"sub-title": "優雅的中後台集成方案",
|
||||||
"title": "D2 Admin"
|
"title": "D2 Admin"
|
||||||
},
|
},
|
||||||
"help": {
|
|
||||||
"chat": {
|
|
||||||
"title": {
|
|
||||||
"qq": "QQ群 [ 1500 / 2000 人 ]",
|
|
||||||
"we": "與作者成為好友後邀請進微信群"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"href": {
|
|
||||||
"doc": "https://doc.d2admin.fairyever.com/"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"doc": "文檔",
|
|
||||||
"github": "主頁",
|
|
||||||
"issues": "issues",
|
|
||||||
"new-issue": "New issue"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"title": "幫助"
|
|
||||||
},
|
|
||||||
"page": {
|
"page": {
|
||||||
"link": {
|
"link": {
|
||||||
"href": {
|
"href": {
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
b27de32f6832b50dc5b8b1dc613060a81f88a8e9
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
12bb778e8779f32a46ee756e6dbb890024b40f5d
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
<img
|
|
||||||
src="./image/d2-help-button@2x.png"
|
|
||||||
style="width: 138px;"
|
|
||||||
@click="dialogVisible = true">
|
|
||||||
<el-dialog
|
|
||||||
:title="$t('views.system.index.help.title')"
|
|
||||||
width="600px"
|
|
||||||
:visible.sync="dialogVisible"
|
|
||||||
:append-to-body="true">
|
|
||||||
<div style="margin-top: -25px; margin-bottom: -25px;">
|
|
||||||
<el-button-group class="d2-mb">
|
|
||||||
<el-button @click="$open('https://github.com/d2-projects/d2-admin')">
|
|
||||||
<d2-icon name="github" class="d2-mr-5"/>
|
|
||||||
{{ $t('views.system.index.help.link.text.github') }}
|
|
||||||
</el-button>
|
|
||||||
<el-button @click="$open($t('views.system.index.help.link.href.doc'))">
|
|
||||||
<d2-icon name="book" class="d2-mr-5"/>
|
|
||||||
{{ $t('views.system.index.help.link.text.doc') }}
|
|
||||||
</el-button>
|
|
||||||
<el-button @click="$open('https://github.com/d2-projects/d2-admin/issues')">
|
|
||||||
<d2-icon name="question" class="d2-mr-5"/>
|
|
||||||
{{ $t('views.system.index.help.link.text.issues') }}
|
|
||||||
</el-button>
|
|
||||||
<el-button @click="$open('https://github.com/d2-projects/d2-admin/issues/new/choose')">
|
|
||||||
<d2-icon name="plus" class="d2-mr-5"/>
|
|
||||||
{{ $t('views.system.index.help.link.text.new-issue') }}
|
|
||||||
</el-button>
|
|
||||||
</el-button-group>
|
|
||||||
<el-row :gutter="20">
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-alert
|
|
||||||
:closable="false"
|
|
||||||
type="info"
|
|
||||||
:title="$t('views.system.index.help.chat.title.qq')" class="d2-mb"/>
|
|
||||||
<img src="./image/qq.jpg" style="width: 100%;">
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-alert
|
|
||||||
:closable="false"
|
|
||||||
type="info"
|
|
||||||
:title="$t('views.system.index.help.chat.title.we')" class="d2-mb"/>
|
|
||||||
<img src="./image/we.jpg" style="width: 100%;">
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</div>
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
dialogVisible: false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
@@ -23,19 +23,16 @@
|
|||||||
</el-popover>
|
</el-popover>
|
||||||
</div>
|
</div>
|
||||||
<d2-badge/>
|
<d2-badge/>
|
||||||
<d2-help-btn/>
|
|
||||||
</template>
|
</template>
|
||||||
</d2-page-cover>
|
</d2-page-cover>
|
||||||
</d2-container>
|
</d2-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import D2HelpBtn from './components/d2-help-btn'
|
|
||||||
import D2Badge from './components/d2-badge'
|
import D2Badge from './components/d2-badge'
|
||||||
import D2PageCover from './components/d2-page-cover'
|
import D2PageCover from './components/d2-page-cover'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
D2HelpBtn,
|
|
||||||
D2Badge,
|
D2Badge,
|
||||||
D2PageCover
|
D2PageCover
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
cbc630abf031357f47241555ef834ae7c2a9c140
|
d6bf19e1aedf9bb938dc54b2f593b5d782650496
|
||||||
Reference in New Issue
Block a user