删除多国语言配置,但是保留多国语功能
Former-commit-id: 0bc3afb90e0f6c085a680e39880f975717793b09 [formerly 0bc3afb90e0f6c085a680e39880f975717793b09 [formerly 0bc3afb90e0f6c085a680e39880f975717793b09 [formerly 0bc3afb90e0f6c085a680e39880f975717793b09 [formerly ec04dd1ed71e3ab98007073168daae880ad6bc9a [formerly 27f3e5cbfae961450c4738a9bc7aaa0e87d983bd]]]]] Former-commit-id: fcfaf06a9d9c9422931b9c6d0e58dcf5f2e0e9fe Former-commit-id: 1507dac206b02e590a62c343404760c4a10e1163 Former-commit-id: d32f3aa5207b09bcc61530258da7d285a7aca5e8 [formerly 7b9d2763618e82332e7348268bdbec79fd6b324f] Former-commit-id: 671052ad6a2d10a151f0befa1020be7b21890553 Former-commit-id: 7096b9fa103901dd06b437b5b692cf85ecb35f2f Former-commit-id: f1a6fbab21e2ecdf9752c8c4116b44c43d568bca Former-commit-id: 6fa9f1a3a296b50663854ec2c2089fe78b392f29 Former-commit-id: 99e9372f7be157d28e3977584a5281d991a5264c
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="page">
|
||||
<p class="page_title">404 page not found</p>
|
||||
<el-button class="d2-mt" @click="$router.replace({ path: '/' })">
|
||||
{{ $t('views.system.error.404.back') }}
|
||||
返回首页
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -2,45 +2,45 @@
|
||||
<div>
|
||||
<el-button type="primary" @click="dialogVisible = true" plain round>
|
||||
<d2-icon name="question-circle-o" class="d2-mr-5"/>
|
||||
{{ $t('views.system.index.help.button') }}
|
||||
需要帮助吗
|
||||
</el-button>
|
||||
<el-dialog
|
||||
:title="$t('views.system.index.help.dialog.title')"
|
||||
title="帮助"
|
||||
width="600px"
|
||||
:visible.sync="dialogVisible"
|
||||
:append-to-body="true">
|
||||
<div style="margin-top: -25px;">
|
||||
<h2 class="d2-mt-0">
|
||||
{{ $t('views.system.index.help.dialog.sub-title.doc') }}
|
||||
这里有一些参考资料
|
||||
</h2>
|
||||
<el-button-group>
|
||||
<el-button @click="$open('https://doc.d2admin.fairyever.com/zh/')">
|
||||
<d2-icon name="book" class="d2-mr-5"/>
|
||||
{{ $t('views.system.index.help.dialog.link.text.doc') }}
|
||||
文档
|
||||
</el-button>
|
||||
<el-button @click="$open('https://github.com/d2-projects/d2-admin/issues?q=is%3Aissue+is%3Aclosed')">
|
||||
<d2-icon name="question" class="d2-mr-5"/>
|
||||
{{ $t('views.system.index.help.dialog.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.dialog.link.text.new-issue') }}
|
||||
提交问题
|
||||
</el-button>
|
||||
</el-button-group>
|
||||
<h2>{{ $t('views.system.index.help.dialog.sub-title.join') }}</h2>
|
||||
<h2>询问其它使用者或作者</h2>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<img src="./image/qq.png" style="width: 100%;">
|
||||
<div class="d2-help--qr-info">
|
||||
{{ $t('views.system.index.help.dialog.join.qq.title') }}<br/>
|
||||
{{ $t('views.system.index.help.dialog.join.qq.sub-title') }}
|
||||
请使用手机 QQ 扫面上方二维码<br/>
|
||||
加入 2000 人用户大群共同交流
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<img src="./image/we.png" style="width: 100%;">
|
||||
<div class="d2-help--qr-info">
|
||||
{{ $t('views.system.index.help.dialog.join.we.title') }}<br/>
|
||||
{{ $t('views.system.index.help.dialog.join.we.sub-title') }}
|
||||
请使用手机微信扫面上方二维码<br/>
|
||||
添加作者微信好友,邀请加入微信群
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
<div class="d2-page-cover__logo">
|
||||
<slot/>
|
||||
</div>
|
||||
<p class="d2-page-cover__title">{{ $t('views.system.index.cover.title') }} {{$version}}</p>
|
||||
<p class="d2-page-cover__sub-title">{{ $t('views.system.index.cover.sub-title') }}</p>
|
||||
<p class="d2-page-cover__build-time">{{ $t('views.system.index.cover.build-time') }} {{$buildTime}}</p>
|
||||
<p class="d2-page-cover__title">D2 Admin {{$version}}</p>
|
||||
<p class="d2-page-cover__sub-title">优雅的中后台集成方案</p>
|
||||
<p class="d2-page-cover__build-time">FINAL BUILD TIME {{$buildTime}}</p>
|
||||
<slot name="footer"/>
|
||||
<a target="blank" href="https://github.com/d2-projects/d2-admin">
|
||||
<img
|
||||
style="position: absolute; top: 0; right: 0; border: 0; width: 150px;"
|
||||
src="./image/darkblue@2x.png"
|
||||
:alt="$t('views.system.index.cover.github-fork-alt')">
|
||||
alt="Fork me on GitHub">
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
@@ -33,22 +33,17 @@
|
||||
margin: 0px;
|
||||
margin-bottom: 20px;
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
line-height: 16px;
|
||||
color: $color-text-main;
|
||||
}
|
||||
.d2-page-cover__sub-title {
|
||||
margin: 0px;
|
||||
margin-bottom: 10px;
|
||||
font-size: 14px;
|
||||
line-height: 14px;
|
||||
margin-bottom: 5px;
|
||||
color: $color-text-normal;
|
||||
}
|
||||
.d2-page-cover__build-time {
|
||||
margin: 0px;
|
||||
margin-bottom: 10px;
|
||||
font-size: 12px;
|
||||
line-height: 12px;
|
||||
color: $color-text-placehoder;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,32 +5,32 @@
|
||||
<template slot="footer">
|
||||
<div class="btn-group">
|
||||
<span class="btn-group__btn" @click="$open('https://github.com/d2-projects')">
|
||||
{{ $t('views.system.index.page.link.text.d2-projects') }}
|
||||
开源组织
|
||||
</span> |
|
||||
<span class="btn-group__btn" @click="$open($t('views.system.index.page.link.href.doc'))">
|
||||
{{ $t('views.system.index.page.link.text.doc') }}
|
||||
<span class="btn-group__btn" @click="$open('https://doc.d2admin.fairyever.com/zh/')">
|
||||
文档
|
||||
</span> |
|
||||
<span class="btn-group__btn" @click="$open('https://github.com/d2-projects/d2-admin-start-kit')">
|
||||
{{ $t('views.system.index.page.link.text.start-kit') }}
|
||||
简化版
|
||||
</span> |
|
||||
<span class="btn-group__btn" @click="$open('https://alibaba.github.io/ice/scaffold?type=vue')">
|
||||
{{ $t('views.system.index.page.link.text.ice') }}
|
||||
飞冰
|
||||
</span> |
|
||||
<span class="btn-group__btn" @click="$open('https://juejin.im/user/57a48b632e958a006691b946/posts')">
|
||||
{{ $t('views.system.index.page.link.text.juejin') }}
|
||||
掘金
|
||||
</span> |
|
||||
<span class="btn-group__btn" @click="$open('https://daily.fairyever.com')">
|
||||
{{ $t('views.system.index.page.link.text.daily') }}
|
||||
日报
|
||||
</span> |
|
||||
<el-popover :width="172" trigger="hover">
|
||||
<p class="d2-mt-0 d2-mb-10">{{ $t('views.system.index.page.we.title') }}</p>
|
||||
<p class="d2-mt-0 d2-mb-10">今日前端</p>
|
||||
<img src="./image/qr@2x.png" style="width: 172px;">
|
||||
<span slot="reference" class="btn-group__btn btn-group__btn--link">
|
||||
<d2-icon name="weixin"/>
|
||||
{{ $t('views.system.index.page.we.button') }}
|
||||
微信公众号
|
||||
</span>
|
||||
<p style="font-size: 12px; margin-top: 0px; margin-bottom: 0px;">
|
||||
{{ $t('views.system.index.page.we.introduce') }}
|
||||
官方公众号,主要推送前端技术类文章、框架资源、学习教程,以及 D2 系列项目更新信息
|
||||
</p>
|
||||
</el-popover>
|
||||
</div>
|
||||
|
||||
@@ -4,31 +4,31 @@
|
||||
:data="log"
|
||||
size="mini"
|
||||
style="width: 100%"
|
||||
:empty-text="$t('views.system.log.table.empty-text')"
|
||||
empty-text="暂无日志信息"
|
||||
stripe>
|
||||
<!-- time -->
|
||||
<!-- 时间 -->
|
||||
<el-table-column
|
||||
prop="time"
|
||||
:label="$t('views.system.log.table.label.time')"
|
||||
label="Time"
|
||||
width="140">
|
||||
</el-table-column>
|
||||
<!-- message -->
|
||||
<!-- 信息 -->
|
||||
<el-table-column
|
||||
prop="message"
|
||||
:label="$t('views.system.log.table.label.message')">
|
||||
label="Message">
|
||||
</el-table-column>
|
||||
<!-- url -->
|
||||
<!-- 触发页面 -->
|
||||
<el-table-column
|
||||
:label="$t('views.system.log.table.label.url')"
|
||||
label="Url"
|
||||
align="center"
|
||||
min-width="200">
|
||||
<template slot-scope="scope">
|
||||
{{get(scope.row, 'meta.url')}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- componnet -->
|
||||
<!-- 触发组件 -->
|
||||
<el-table-column
|
||||
:label="$t('views.system.log.table.label.component')"
|
||||
label="Tag"
|
||||
align="center"
|
||||
min-width="120">
|
||||
<template slot-scope="scope">
|
||||
@@ -40,11 +40,11 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- more -->
|
||||
<!-- 查看详情 -->
|
||||
<el-table-column
|
||||
fixed="right"
|
||||
align="center"
|
||||
:label="$t('views.system.log.table.label.more')"
|
||||
label="More"
|
||||
width="100">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@@ -63,7 +63,7 @@
|
||||
:loading="uploading"
|
||||
@click="handleUpload">
|
||||
<d2-icon name="cloud-upload"/>
|
||||
{{ $t('views.system.log.upload.button', { number: log.length }) }}
|
||||
Upload {{log.length}} log data
|
||||
</el-button>
|
||||
</template>
|
||||
</d2-container>
|
||||
@@ -86,11 +86,11 @@ export default {
|
||||
methods: {
|
||||
get,
|
||||
handleShowMore (log) {
|
||||
// Print all information from a log to the console
|
||||
// 打印一条日志的所有信息到控制台
|
||||
this.$notify({
|
||||
type: 'info',
|
||||
title: this.$t('public.notify.special.show-log.title'),
|
||||
message: this.$t('public.notify.special.show-log.message')
|
||||
title: '日志详情',
|
||||
message: '完整的日志内容已经打印到控制台'
|
||||
})
|
||||
this.$log.capsule('D2Admin', 'handleShowMore', 'primary')
|
||||
console.group(log.message)
|
||||
@@ -99,20 +99,20 @@ export default {
|
||||
console.log(log.meta)
|
||||
console.groupEnd()
|
||||
},
|
||||
// Log upload
|
||||
// 日志上传
|
||||
handleUpload () {
|
||||
this.uploading = true
|
||||
this.$notify({
|
||||
type: 'info',
|
||||
title: this.$t('public.notify.special.upload.start.title'),
|
||||
message: this.$t('public.notify.special.upload.start.message')
|
||||
title: '日志上传',
|
||||
message: `开始上传${this.log.length}条日志`
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.uploading = false
|
||||
this.$notify({
|
||||
type: 'success',
|
||||
title: this.$t('public.notify.special.upload.success.title'),
|
||||
message: this.$t('public.notify.special.upload.success.message')
|
||||
title: '日志上传',
|
||||
message: '上传成功'
|
||||
})
|
||||
}, 3000)
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
9c9dbaa47996b7dceac7c165fed90e73e4da0237
|
||||
993e8039f53a8c7eceba1fbf441b887545d29a41
|
||||
Reference in New Issue
Block a user