From 3dfc79bdd3a8ecd9aad5fee99205e004c0bdf849 Mon Sep 17 00:00:00 2001 From: CaiHaosen <“caihaosen@mail.bnu.edu.cn> Date: Wed, 28 Aug 2024 11:05:55 +0800 Subject: [PATCH] refactor: split HtmlInjection form into creation and editing components --- ui/src/views/HtmlInjectionAdd.vue | 154 -------------------- ui/src/views/HtmlInjectionCreationModal.vue | 58 ++++++++ ui/src/views/HtmlInjectionEditionModal.vue | 52 +++++++ ui/src/views/HtmlInjectionForm.vue | 88 +++++++++++ ui/src/views/HtmlInjectionList.vue | 90 +++++++----- 5 files changed, 252 insertions(+), 190 deletions(-) delete mode 100644 ui/src/views/HtmlInjectionAdd.vue create mode 100644 ui/src/views/HtmlInjectionCreationModal.vue create mode 100644 ui/src/views/HtmlInjectionEditionModal.vue create mode 100644 ui/src/views/HtmlInjectionForm.vue diff --git a/ui/src/views/HtmlInjectionAdd.vue b/ui/src/views/HtmlInjectionAdd.vue deleted file mode 100644 index 5462871f..00000000 --- a/ui/src/views/HtmlInjectionAdd.vue +++ /dev/null @@ -1,154 +0,0 @@ - - - - - diff --git a/ui/src/views/HtmlInjectionCreationModal.vue b/ui/src/views/HtmlInjectionCreationModal.vue new file mode 100644 index 00000000..ca0a306b --- /dev/null +++ b/ui/src/views/HtmlInjectionCreationModal.vue @@ -0,0 +1,58 @@ + + + + diff --git a/ui/src/views/HtmlInjectionEditionModal.vue b/ui/src/views/HtmlInjectionEditionModal.vue new file mode 100644 index 00000000..f257fd5b --- /dev/null +++ b/ui/src/views/HtmlInjectionEditionModal.vue @@ -0,0 +1,52 @@ + + + + diff --git a/ui/src/views/HtmlInjectionForm.vue b/ui/src/views/HtmlInjectionForm.vue new file mode 100644 index 00000000..ded8ffc6 --- /dev/null +++ b/ui/src/views/HtmlInjectionForm.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/ui/src/views/HtmlInjectionList.vue b/ui/src/views/HtmlInjectionList.vue index e0411f60..bdf9c8d4 100644 --- a/ui/src/views/HtmlInjectionList.vue +++ b/ui/src/views/HtmlInjectionList.vue @@ -1,5 +1,5 @@