From f01bd0f85ea870fa4b0d00f74881d0c0e2aa3b16 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Thu, 6 Oct 2022 14:56:28 +0800 Subject: [PATCH] feat(notification): migrated notification module from plugins to built-in --- package.json | 4 +- public/index.html | 2 + public/simplemde/simplemde.css | 7 + public/simplemde/simplemde.js | 15 ++ src/i18n/lang/en/common.ts | 2 + src/i18n/lang/en/router.ts | 1 + src/i18n/lang/en/views/index.ts | 2 + src/i18n/lang/en/views/notification.ts | 68 ++++++ src/i18n/lang/zh/common.ts | 2 + src/i18n/lang/zh/router.ts | 1 + src/i18n/lang/zh/views/index.ts | 2 + src/i18n/lang/zh/views/notification.ts | 68 ++++++ src/interfaces/global.d.ts | 1 + src/interfaces/i18n/common.d.ts | 2 + src/interfaces/i18n/router.d.ts | 1 + src/interfaces/i18n/views/index.d.ts | 1 + src/interfaces/i18n/views/notification.d.ts | 61 +++++ src/interfaces/models/notification.d.ts | 39 ++++ src/package/create-app.ts | 12 +- src/router/index.ts | 3 + src/router/notification.ts | 18 ++ src/views/login/Login.vue | 6 +- src/views/notification/NotificationDetail.vue | 202 ++++++++++++++++ .../NotificationDetailTabTemplate.vue | 103 +++++++++ .../NotificationDetailTabTriggers.vue | 65 ++++++ src/views/notification/NotificationForm.vue | 180 +++++++++++++++ src/views/notification/NotificationList.vue | 216 ++++++++++++++++++ src/views/notification/NotificationTab.vue | 68 ++++++ yarn.lock | 142 ++++++++++++ 29 files changed, 1284 insertions(+), 10 deletions(-) create mode 100644 public/simplemde/simplemde.css create mode 100644 public/simplemde/simplemde.js create mode 100644 src/i18n/lang/en/views/notification.ts create mode 100644 src/i18n/lang/zh/views/notification.ts create mode 100644 src/interfaces/i18n/views/notification.d.ts create mode 100644 src/interfaces/models/notification.d.ts create mode 100644 src/router/notification.ts create mode 100644 src/views/notification/NotificationDetail.vue create mode 100644 src/views/notification/NotificationDetailTabTemplate.vue create mode 100644 src/views/notification/NotificationDetailTabTriggers.vue create mode 100644 src/views/notification/NotificationForm.vue create mode 100644 src/views/notification/NotificationList.vue create mode 100644 src/views/notification/NotificationTab.vue diff --git a/package.json b/package.json index a1ba5d76dd57a..232235d1c40b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "crawlab-ui", - "version": "0.6.0-13", + "version": "0.6.0-14", "private": false, "author": { "name": "Marvin Zhang", @@ -52,6 +52,7 @@ "@types/md5": "^2.2.1", "@types/pinyin": "^2.8.2", "@types/showdown": "^1.9.4", + "@types/simplemde": "^1.11.8", "@types/url-join": "^4.0.1", "atom-material-icons": "^3.0.0", "axios": "^0.21.1", @@ -72,6 +73,7 @@ "pinyin": "^2.10.2", "point-cluster": "^3.1.8", "showdown": "^1.9.1", + "simplemde": "^1.11.2", "url-join": "^4.0.1", "vue": "^3.2", "vue-clipboard3": "^1.0.1", diff --git a/public/index.html b/public/index.html index 001e24e4692aa..463160fce4839 100644 --- a/public/index.html +++ b/public/index.html @@ -8,6 +8,8 @@ <%= htmlWebpackPlugin.options.title %> + + diff --git a/src/views/notification/NotificationDetailTabTemplate.vue b/src/views/notification/NotificationDetailTabTemplate.vue new file mode 100644 index 0000000000000..47212045a3a19 --- /dev/null +++ b/src/views/notification/NotificationDetailTabTemplate.vue @@ -0,0 +1,103 @@ +