From 95f26e2dd264b8f9d63352b71e9ea5a6cb09f763 Mon Sep 17 00:00:00 2001 From: PeterAlbus Date: Tue, 29 Mar 2022 00:02:53 +0800 Subject: [PATCH] add comment module --- components.d.ts | 3 + src/components/Comment.vue | 353 ++++++++++++++++++++ src/components/FriendLinks.vue | 2 +- src/components/TopNavBar.vue | 4 +- src/router/index.ts | 1 + src/views/Blog.vue | 13 +- src/views/EditBlog.vue | 2 +- src/views/Register.vue | 23 +- src/views/UploadPhoto.vue | 2 +- src/views/UserCenter.vue | 583 ++++++++++++++++++++++++++++++++- 10 files changed, 969 insertions(+), 17 deletions(-) create mode 100644 src/components/Comment.vue diff --git a/components.d.ts b/components.d.ts index b8e4399..f02fb04 100644 --- a/components.d.ts +++ b/components.d.ts @@ -5,10 +5,13 @@ declare module 'vue' { export interface GlobalComponents { Banner: typeof import('./src/components/Banner.vue')['default'] + Comment: typeof import('./src/components/Comment.vue')['default'] ElAvatar: typeof import('element-plus/es')['ElAvatar'] ElButton: typeof import('element-plus/es')['ElButton'] ElCard: typeof import('element-plus/es')['ElCard'] + ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCol: typeof import('element-plus/es')['ElCol'] + ElDialog: typeof import('element-plus/es')['ElDialog'] ElDivider: typeof import('element-plus/es')['ElDivider'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] diff --git a/src/components/Comment.vue b/src/components/Comment.vue new file mode 100644 index 0000000..1057734 --- /dev/null +++ b/src/components/Comment.vue @@ -0,0 +1,353 @@ + + + + + diff --git a/src/components/FriendLinks.vue b/src/components/FriendLinks.vue index 746ae3b..a66c042 100644 --- a/src/components/FriendLinks.vue +++ b/src/components/FriendLinks.vue @@ -1,6 +1,6 @@