From 60b3d73cc998b1ed8606ef19a7c992f729a731d8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 21 Dec 2022 11:04:49 +0900 Subject: [PATCH] use sortablejs-vue3 instead of vuedraggable for more stability --- packages/client/package.json | 5 +- packages/client/src/components/MkPostForm.vue | 6 +- .../src/components/MkPostFormAttaches.vue | 208 +++++++++--------- packages/client/src/components/MkWidgets.vue | 26 ++- .../pages/page-editor/page-editor.blocks.vue | 20 +- .../src/pages/page-editor/page-editor.vue | 40 ++-- .../client/src/pages/settings/reaction.vue | 13 +- yarn.lock | 37 ++-- 8 files changed, 176 insertions(+), 179 deletions(-) diff --git a/packages/client/package.json b/packages/client/package.json index 87ef6e363..c5fbf8031 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -46,6 +46,8 @@ "s-age": "1.1.2", "sass": "1.57.0", "seedrandom": "3.0.5", + "sortablejs": "^1.15.0", + "sortablejs-vue3": "^1.2.3", "strict-event-emitter-types": "2.0.0", "stringz": "2.1.0", "syuilo-password-strength": "0.0.1", @@ -61,8 +63,7 @@ "vanilla-tilt": "1.8.0", "vite": "4.0.2", "vue": "3.2.45", - "vue-prism-editor": "2.0.0-alpha.2", - "vuedraggable": "4.0.1" + "vue-prism-editor": "2.0.0-alpha.2" }, "devDependencies": { "@types/escape-regexp": "0.0.1", diff --git a/packages/client/src/components/MkPostForm.vue b/packages/client/src/components/MkPostForm.vue index a6215038f..691189979 100644 --- a/packages/client/src/components/MkPostForm.vue +++ b/packages/client/src/components/MkPostForm.vue @@ -43,7 +43,7 @@