diff --git a/package.json b/package.json index 76914002..ca57abfc 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "serve": "vite preview" }, "dependencies": { + "@element-plus/icons": "^0.0.11", "axios": "^0.21.1", "element-plus": "^1.1.0-beta.7", "eslint": "^7.32.0", diff --git a/src/assets/scss/_common.scss b/src/assets/scss/_common.scss index 0f33372c..fb64f4b2 100644 --- a/src/assets/scss/_common.scss +++ b/src/assets/scss/_common.scss @@ -7,3 +7,7 @@ body { * { box-sizing: border-box; } + +#app { + background-color: #f5f5f5; +} diff --git a/src/components/common/TopHeader.vue b/src/components/common/TopHeader.vue index 083155ce..49b2563b 100644 --- a/src/components/common/TopHeader.vue +++ b/src/components/common/TopHeader.vue @@ -7,8 +7,8 @@ - - + + diff --git a/src/components/content/Sidebar.vue b/src/components/content/Sidebar.vue new file mode 100644 index 00000000..46a23b91 --- /dev/null +++ b/src/components/content/Sidebar.vue @@ -0,0 +1,27 @@ + + + diff --git a/src/i18n/zh/common/button.ts b/src/i18n/zh/common/button.ts new file mode 100644 index 00000000..683394a9 --- /dev/null +++ b/src/i18n/zh/common/button.ts @@ -0,0 +1,3 @@ +export default { + +} \ No newline at end of file diff --git a/src/i18n/zh/common/index.ts b/src/i18n/zh/common/index.ts new file mode 100644 index 00000000..5a49c847 --- /dev/null +++ b/src/i18n/zh/common/index.ts @@ -0,0 +1,9 @@ +import button from './button'; +import message from './message'; + +export default { + button, + message, + home: '首页', + editor: '编辑器' +}; diff --git a/src/i18n/zh/common/message.ts b/src/i18n/zh/common/message.ts new file mode 100644 index 00000000..6ea55f59 --- /dev/null +++ b/src/i18n/zh/common/message.ts @@ -0,0 +1,3 @@ +export default { + copied: '复制成功' +}; diff --git a/src/i18n/zh/content/editor.ts b/src/i18n/zh/content/editor.ts new file mode 100644 index 00000000..5b50130f --- /dev/null +++ b/src/i18n/zh/content/editor.ts @@ -0,0 +1,7 @@ +export default { + theme: '主题', + highlight: '代码高亮', + bold: '粗体', + italic: '斜体', + strikeout: '删除线' +}; diff --git a/src/i18n/zh/content/index.ts b/src/i18n/zh/content/index.ts new file mode 100644 index 00000000..906beae2 --- /dev/null +++ b/src/i18n/zh/content/index.ts @@ -0,0 +1,7 @@ +import sidebar from './sidebar'; +import editor from './editor'; + +export default { + sidebar, + editor +}; diff --git a/src/i18n/zh/content/sidebar.ts b/src/i18n/zh/content/sidebar.ts new file mode 100644 index 00000000..604b97c1 --- /dev/null +++ b/src/i18n/zh/content/sidebar.ts @@ -0,0 +1,4 @@ +export default { + article: '文章管理', + platform: '平台管理' +}; diff --git a/src/i18n/zh/index.ts b/src/i18n/zh/index.ts index 5e4b1a55..18d258bc 100644 --- a/src/i18n/zh/index.ts +++ b/src/i18n/zh/index.ts @@ -1,16 +1,7 @@ +import common from './common/index'; +import content from './content/index'; + export default { - message: { - copied: '复制成功' - }, - menu: { - home: '首页', - editor: '编辑器' - }, - option: { - theme: '主题', - highlight: '代码高亮', - bold: '粗体', - italic: '斜体', - strikeout: '删除线' - } + common, + content }; diff --git a/src/layouts/Content.vue b/src/layouts/Content.vue index f46db43c..c0a013be 100644 --- a/src/layouts/Content.vue +++ b/src/layouts/Content.vue @@ -4,7 +4,9 @@ - side + + + @@ -13,10 +15,12 @@