From 8e8080b228689bf16336d8129d0c2ff46c49c154 Mon Sep 17 00:00:00 2001
From: dribble-njr <72367140+dribble-njr@users.noreply.github.com>
Date: Sun, 12 Jan 2025 09:19:18 +0800
Subject: [PATCH] feat: enhance post management (#514)
* fix: extension installation check
* perf: optimize post dialog
* feat: enhance post management
* fix: close #513
---
.../EditorHeader/PostInfo.vue | 125 ++++++++++++++----
.../EditorHeader/PostTaskDialog.vue | 119 +++++++++++++++++
src/types/index.ts | 23 ++++
3 files changed, 240 insertions(+), 27 deletions(-)
create mode 100644 src/components/CodemirrorEditor/EditorHeader/PostTaskDialog.vue
diff --git a/src/components/CodemirrorEditor/EditorHeader/PostInfo.vue b/src/components/CodemirrorEditor/EditorHeader/PostInfo.vue
index f136722..de51835 100644
--- a/src/components/CodemirrorEditor/EditorHeader/PostInfo.vue
+++ b/src/components/CodemirrorEditor/EditorHeader/PostInfo.vue
@@ -1,40 +1,58 @@
@@ -81,7 +124,7 @@ onMounted(() => {
提示
- 此功能由第三方浏览器插件支持,本平台不保证安全性。
+ 此功能由第三方浏览器插件支持,本平台不保证安全性及同步准确度。
@@ -91,9 +134,7 @@ onMounted(() => {
请安装
文章同步助手
@@ -121,14 +162,44 @@ onMounted(() => {
+
+
+
+
+
+
+
+
+
-
+
+
diff --git a/src/components/CodemirrorEditor/EditorHeader/PostTaskDialog.vue b/src/components/CodemirrorEditor/EditorHeader/PostTaskDialog.vue
new file mode 100644
index 0000000..24a60f7
--- /dev/null
+++ b/src/components/CodemirrorEditor/EditorHeader/PostTaskDialog.vue
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
diff --git a/src/types/index.ts b/src/types/index.ts
index 2ff12ff..5e59ce9 100644
--- a/src/types/index.ts
+++ b/src/types/index.ts
@@ -72,3 +72,26 @@ export interface Alert {
text: string
tokens: Token[]
}
+
+export interface PostAccount {
+ avatar: string
+ displayName: string
+ home: string
+ icon: string
+ supportTypes: string[]
+ title: string
+ type: string
+ uid: string
+ checked: boolean
+ status?: string
+ error?: string
+}
+
+export interface Post {
+ title: string
+ desc: string
+ thumb: string
+ content: string
+ markdown: string
+ accounts: PostAccount[]
+}