diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index 77b66f4..0000000 Binary files a/public/favicon.ico and /dev/null differ diff --git a/public/favicon.png b/public/favicon.png deleted file mode 100644 index 9a9ce7c..0000000 Binary files a/public/favicon.png and /dev/null differ diff --git a/public/index.html b/public/index.html index d0b3e00..a96a0e4 100644 --- a/public/index.html +++ b/public/index.html @@ -1,129 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - flagnote.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - \ No newline at end of file +flagnote.com
\ No newline at end of file diff --git a/public/static/favicon.ico b/public/static/favicon.ico index 77b66f4..7ffa460 100644 Binary files a/public/static/favicon.ico and b/public/static/favicon.ico differ diff --git a/public/static/favicon.png b/public/static/favicon.png index 9a9ce7c..b5c42ce 100644 Binary files a/public/static/favicon.png and b/public/static/favicon.png differ diff --git a/public/static/logo.png b/public/static/logo.png new file mode 100644 index 0000000..1083d88 Binary files /dev/null and b/public/static/logo.png differ diff --git a/src/i18n/config/en.js b/src/i18n/config/en.js index 1cc7605..c1a2fb3 100644 --- a/src/i18n/config/en.js +++ b/src/i18n/config/en.js @@ -4,6 +4,7 @@ const en = { }, content: { blankTip: "I am Blank.", + noteTip: "Start writing something...", }, button: { ok: "OK", diff --git a/src/i18n/config/zh.js b/src/i18n/config/zh.js index da63767..5ec596d 100644 --- a/src/i18n/config/zh.js +++ b/src/i18n/config/zh.js @@ -3,7 +3,8 @@ const zh = { askTodelete: "是否确定要删除?", }, content: { - blankTip: "I am Blank.", + blankTip: "空白的内容。", + noteTip: "开始写下一些东西吧。。。" }, button: { ok: "好的", diff --git a/src/i18n/index.js b/src/i18n/index.js index 1e3f664..ab79f34 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -5,20 +5,26 @@ Vue.use(VueI18n); import zh from "./config/zh"; import en from "./config/en"; +const messages = { + zh, + en, +} + const i18n = new VueI18n({ + messages: messages, locale: getLocale(), - messages: { - zh, - en, - }, }); -function getLocale(){ - if(localStorage.getItem("locale")){ - return localStorage.getItem("locale").substring(0,2); - } +function getLocale() { + var lang = navigator.language; + if (lang) { + lang = lang.substring(0, 2); + } - return "en"; + if (Object.keys(messages).indexOf(lang) >= 0) { + return lang; + } + return "en"; } export default i18n; diff --git a/src/views/EditNote.vue b/src/views/EditNote.vue index cd3c03d..89a36b7 100644 --- a/src/views/EditNote.vue +++ b/src/views/EditNote.vue @@ -77,7 +77,7 @@
- refresh flagnote
@@ -148,7 +148,7 @@
diff --git a/src/views/ErrorView.vue b/src/views/ErrorView.vue index 362d248..f25ea49 100644 --- a/src/views/ErrorView.vue +++ b/src/views/ErrorView.vue @@ -1,5 +1,5 @@ diff --git a/src/views/InvalidateNote.vue b/src/views/InvalidateNote.vue index 725ac64..33a6e8d 100644 --- a/src/views/InvalidateNote.vue +++ b/src/views/InvalidateNote.vue @@ -53,7 +53,7 @@
- +
diff --git a/src/views/ViewNote.vue b/src/views/ViewNote.vue index 5e5e9a4..e02f6bf 100644 --- a/src/views/ViewNote.vue +++ b/src/views/ViewNote.vue @@ -163,7 +163,7 @@ :lg="{ span: 18, offset: 3 }" :xl="{ span: 16, offset: 4 }" :xxl="{ span: 16, offset: 4 }">
- refresh flagnote