From 72ce783510ae7794344baf749db16db69849406d Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 1 Sep 2018 23:05:51 +0800 Subject: [PATCH] Add defaultSettings.js link --- src/components/SettingDrawer/index.js | 13 ++++++++++++- src/components/SettingDrawer/index.less | 1 - src/locales/en-US.js | 2 +- src/locales/zh-CN.js | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/components/SettingDrawer/index.js b/src/components/SettingDrawer/index.js index 8950bb7a..a860902d 100644 --- a/src/components/SettingDrawer/index.js +++ b/src/components/SettingDrawer/index.js @@ -213,7 +213,18 @@ class SettingDrawer extends PureComponent { + {formatMessage({ id: 'app.setting.production.hint' })}{' '} + + src/defaultSettings.js + + + } /> diff --git a/src/components/SettingDrawer/index.less b/src/components/SettingDrawer/index.less index 57d88cb8..5b660525 100644 --- a/src/components/SettingDrawer/index.less +++ b/src/components/SettingDrawer/index.less @@ -70,6 +70,5 @@ .productionHint { font-size: 12px; - color: @text-color-secondary; margin-top: 16px; } diff --git a/src/locales/en-US.js b/src/locales/en-US.js index 55a76664..f48a6092 100644 --- a/src/locales/en-US.js +++ b/src/locales/en-US.js @@ -181,5 +181,5 @@ export default { 'app.setting.copy': 'Copy Setting', 'app.setting.copyinfo': 'copy success,please replace defaultSettings in src/models/setting.js', 'app.setting.production.hint': - 'Setting panel show in development enviorment only, please modify src/defaultSettings.js mannually.', + 'Setting panel show in development enviorment only, please mannually modify', }; diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js index 42cbeb84..bf237dfc 100644 --- a/src/locales/zh-CN.js +++ b/src/locales/zh-CN.js @@ -177,5 +177,5 @@ export default { 'app.setting.copy': '拷贝设置', 'app.setting.copyinfo': '拷贝成功,请到 src/defaultSettings.js 中替换默认配置', 'app.setting.production.hint': - '配置栏只在开发环境用于预览,请拷贝后手动修改 src/defaultSettings.js', + '配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件', }; -- GitLab