-
{{ $t('settings.title') }}
+
Page style setting
- {{ $t('settings.theme') }}
+ Theme Color
- {{ $t('settings.tagsView') }}
+ Open Tags-View
- {{ $t('settings.fixedHeader') }}
+ Fixed Header
- {{ $t('settings.sidebarLogo') }}
+ Sidebar Logo
diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue
index b4422cf8..2d49dd87 100644
--- a/src/layout/components/Sidebar/SidebarItem.vue
+++ b/src/layout/components/Sidebar/SidebarItem.vue
@@ -3,14 +3,14 @@
-
+
-
+
import path from 'path'
-import { generateTitle } from '@/utils/i18n'
import { isExternal } from '@/utils/validate'
import Item from './Item'
import AppLink from './Link'
@@ -90,9 +89,7 @@ export default {
return this.basePath
}
return path.resolve(this.basePath, routePath)
- },
-
- generateTitle
+ }
}
}
diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue
index 19d3083f..24a92f1d 100644
--- a/src/layout/components/TagsView/index.vue
+++ b/src/layout/components/TagsView/index.vue
@@ -12,31 +12,21 @@
@click.middle.native="closeSelectedTag(tag)"
@contextmenu.prevent.native="openMenu(tag,$event)"
>
- {{ generateTitle(tag.title) }}
+ {{ tag.title }}
-
-
diff --git a/src/views/i18n-demo/local.js b/src/views/i18n-demo/local.js
deleted file mode 100644
index ae38dd28..00000000
--- a/src/views/i18n-demo/local.js
+++ /dev/null
@@ -1,83 +0,0 @@
-
-export default {
- zh: {
- i18nView: {
- title: '切换语言',
- note: '本项目国际化基于 vue-i18n',
- datePlaceholder: '请选择日期',
- selectPlaceholder: '请选择',
- tableDate: '日期',
- tableName: '姓名',
- tableAddress: '地址',
- default: '默认按钮',
- primary: '主要按钮',
- success: '成功按钮',
- info: '信息按钮',
- warning: '警告按钮',
- danger: '危险按钮',
- one: '一',
- two: '二',
- three: '三'
- }
- },
- en: {
- i18nView: {
- title: 'Switch Language',
- note: 'The internationalization of this project is based on vue-i18n',
- datePlaceholder: 'Pick a day',
- selectPlaceholder: 'Select',
- tableDate: 'tableDate',
- tableName: 'tableName',
- tableAddress: 'tableAddress',
- default: 'default:',
- primary: 'primary',
- success: 'success',
- info: 'info',
- warning: 'warning',
- danger: 'danger',
- one: 'One',
- two: 'Two',
- three: 'Three'
- }
- },
- es: {
- i18nView: {
- title: 'Switch Language',
- note: 'The internationalization of this project is based on vue-i18n',
- datePlaceholder: 'Pick a day',
- selectPlaceholder: 'Select',
- tableDate: 'tableDate',
- tableName: 'tableName',
- tableAddress: 'tableAddress',
- default: 'default:',
- primary: 'primary',
- success: 'success',
- info: 'info',
- warning: 'warning',
- danger: 'danger',
- one: 'One',
- two: 'Two',
- three: 'Three'
- }
- },
- ja: {
- i18nView: {
- title: '言語切替',
- note: 'vue-i18nを使っています',
- datePlaceholder: '日時選択',
- selectPlaceholder: '選択してください',
- tableDate: '日時',
- tableName: '姓名',
- tableAddress: '住所',
- default: 'default',
- primary: 'primary',
- success: 'success',
- info: 'info',
- warning: 'warning',
- danger: 'danger',
- one: '1',
- two: '2',
- three: '3'
- }
- }
-}
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 27f11ef5..fd09b6d7 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -3,10 +3,7 @@
-
- {{ $t('login.title') }}
-
-
+ Login Form
@@ -16,7 +13,7 @@
-
- {{ $t('login.logIn') }}
-
+ Login
- {{ $t('login.username') }} : admin
- {{ $t('login.password') }} : {{ $t('login.any') }}
+ Username : admin
+ Password : any
-
- {{ $t('login.username') }} : editor
-
- {{ $t('login.password') }} : {{ $t('login.any') }}
+ Username : editor
+ Password : any
- {{ $t('login.thirdparty') }}
+ Or connect with
-
- {{ $t('login.thirdpartyTips') }}
+
+ Can not be simulated on local, so please combine you own business simulation! ! !
@@ -82,12 +75,11 @@
diff --git a/src/views/dashboard/admin/components/PieChart.vue b/src/views/dashboard/admin/components/PieChart.vue
index ff1bc52c..d5d59ff3 100644
--- a/src/views/dashboard/admin/components/PieChart.vue
+++ b/src/views/dashboard/admin/components/PieChart.vue
@@ -28,7 +28,9 @@ export default {
}
},
mounted() {
- this.initChart()
+ this.$nextTick(() => {
+ this.initChart()
+ })
this.__resizeHandler = debounce(() => {
if (this.chart) {
this.chart.resize()
@@ -58,7 +60,6 @@ export default {
bottom: '10',
data: ['Industries', 'Technology', 'Forex', 'Gold', 'Forecasts']
},
- calculable: true,
series: [
{
name: 'WEEKLY WRITE ARTICLES',
diff --git a/src/views/dashboard/admin/components/RaddarChart.vue b/src/views/dashboard/admin/components/RaddarChart.vue
index de70e523..cd2257b0 100644
--- a/src/views/dashboard/admin/components/RaddarChart.vue
+++ b/src/views/dashboard/admin/components/RaddarChart.vue
@@ -30,7 +30,9 @@ export default {
}
},
mounted() {
- this.initChart()
+ this.$nextTick(() => {
+ this.initChart()
+ })
this.__resizeHandler = debounce(() => {
if (this.chart) {
this.chart.resize()
diff --git a/src/views/dashboard/admin/index.vue b/src/views/dashboard/admin/index.vue
index a766f04a..8cb557be 100644
--- a/src/views/dashboard/admin/index.vue
+++ b/src/views/dashboard/admin/index.vue
@@ -115,4 +115,10 @@ export default {
margin-bottom: 32px;
}
}
+
+@media (max-width:1024px) {
+ .chart-wrapper {
+ padding: 8px;
+ }
+}
From 3a4543478f621c87356bf1faa6ac26eaa89718bb Mon Sep 17 00:00:00 2001
From: toruksmakto <42709228+toruksmakto@users.noreply.github.com>
Date: Sun, 12 May 2019 12:00:00 +0800
Subject: [PATCH 10/64] feat[ErrorLog]: add a clear button in ErrorLog
component (#2065)
---
src/components/ErrorLog/index.vue | 12 +++++++++++-
src/store/modules/errorLog.js | 6 ++++++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/src/components/ErrorLog/index.vue b/src/components/ErrorLog/index.vue
index 7ffa573b..6119c037 100644
--- a/src/components/ErrorLog/index.vue
+++ b/src/components/ErrorLog/index.vue
@@ -6,7 +6,11 @@
-
+
+
+ Error Log
+ Clear All
+
@@ -54,6 +58,12 @@ export default {
errorLogs() {
return this.$store.getters.errorLogs
}
+ },
+ methods: {
+ clearAll() {
+ this.dialogTableVisible = false
+ this.$store.dispatch('errorLog/clearErrorLog')
+ }
}
}
diff --git a/src/store/modules/errorLog.js b/src/store/modules/errorLog.js
index 8e3db060..6b01f957 100644
--- a/src/store/modules/errorLog.js
+++ b/src/store/modules/errorLog.js
@@ -5,12 +5,18 @@ const state = {
const mutations = {
ADD_ERROR_LOG: (state, log) => {
state.logs.push(log)
+ },
+ CLEAR_ERROR_LOG: (state) => {
+ state.logs.splice(0)
}
}
const actions = {
addErrorLog({ commit }, log) {
commit('ADD_ERROR_LOG', log)
+ },
+ clearErrorLog({ commit }) {
+ commit('CLEAR_ERROR_LOG')
}
}
From 27df99791582b8a7a8cf1d35ec8a40ec2406ca33 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?=
Date: Sun, 12 May 2019 14:01:04 +0800
Subject: [PATCH 11/64] fix[redirect]: fix redirect bug in vue-devtools (#2066)
---
src/views/redirect/index.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/redirect/index.vue b/src/views/redirect/index.vue
index bf56fbcd..64624c65 100644
--- a/src/views/redirect/index.vue
+++ b/src/views/redirect/index.vue
@@ -4,6 +4,7 @@ export default {
const { params, query } = this.$route
const { path } = params
this.$router.replace({ path: '/' + path, query })
+ return
},
render: function(h) {
return h() // avoid warning message
From 2096ae1b6ec0fbe0ccf31ed56f5257208d3a71c8 Mon Sep 17 00:00:00 2001
From: Pan
Date: Mon, 13 May 2019 09:57:33 +0800
Subject: [PATCH 12/64] perf[Tinymce]: update tinymce cdn version
---
vue.config.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vue.config.js b/vue.config.js
index dcb0c248..41a7f600 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -60,7 +60,7 @@ module.exports = {
const cdn = {
// inject tinymce into index.html
// why use this cdn, detail see https://github.com/PanJiaChen/tinymce-all-in-one
- js: ['https://cdn.jsdelivr.net/npm/tinymce-all-in-one@4.9.2/tinymce.min.js']
+ js: ['https://cdn.jsdelivr.net/npm/tinymce-all-in-one@4.9.3/tinymce.min.js']
}
config.plugin('html')
.tap(args => {
From 45edf7b0485bc99e95b9b189d65da6717aad7e91 Mon Sep 17 00:00:00 2001
From: Pan
Date: Mon, 13 May 2019 17:32:53 +0800
Subject: [PATCH 13/64] fix[redirect]: fix redirect bug in vue-devtool again
---
src/views/redirect/index.vue | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/views/redirect/index.vue b/src/views/redirect/index.vue
index 64624c65..db4c1d66 100644
--- a/src/views/redirect/index.vue
+++ b/src/views/redirect/index.vue
@@ -1,10 +1,9 @@
- <% } %>