From c14d3f70a38fac3c03ba887d59f0b75a80d95a94 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 19 Mar 2024 22:03:58 +0800 Subject: [PATCH] :sparkles: Editable realm --- .../publish/{PostAction.vue => PostTools.vue} | 0 .../src/components/realms/RealmAction.vue | 36 ++++++ .../src/components/realms/RealmEditor.vue | 77 +++++++----- pkg/views/src/components/realms/RealmList.vue | 38 ++---- .../src/components/realms/RealmTools.vue | 12 ++ pkg/views/src/layouts/master.vue | 6 +- pkg/views/src/router/index.ts | 4 +- pkg/views/src/stores/editor.ts | 20 +--- pkg/views/src/stores/realms.ts | 36 ++++++ pkg/views/src/views/realms/details.vue | 83 ------------- pkg/views/src/views/realms/page.vue | 110 ++++++++++++++++++ 11 files changed, 258 insertions(+), 164 deletions(-) rename pkg/views/src/components/publish/{PostAction.vue => PostTools.vue} (100%) create mode 100644 pkg/views/src/components/realms/RealmAction.vue create mode 100644 pkg/views/src/components/realms/RealmTools.vue create mode 100644 pkg/views/src/stores/realms.ts delete mode 100644 pkg/views/src/views/realms/details.vue create mode 100644 pkg/views/src/views/realms/page.vue diff --git a/pkg/views/src/components/publish/PostAction.vue b/pkg/views/src/components/publish/PostTools.vue similarity index 100% rename from pkg/views/src/components/publish/PostAction.vue rename to pkg/views/src/components/publish/PostTools.vue diff --git a/pkg/views/src/components/realms/RealmAction.vue b/pkg/views/src/components/realms/RealmAction.vue new file mode 100644 index 0000000..9c72ac5 --- /dev/null +++ b/pkg/views/src/components/realms/RealmAction.vue @@ -0,0 +1,36 @@ + + + diff --git a/pkg/views/src/components/realms/RealmEditor.vue b/pkg/views/src/components/realms/RealmEditor.vue index 6328e67..b46ff7a 100644 --- a/pkg/views/src/components/realms/RealmEditor.vue +++ b/pkg/views/src/components/realms/RealmEditor.vue @@ -1,37 +1,40 @@ diff --git a/pkg/views/src/components/realms/RealmList.vue b/pkg/views/src/components/realms/RealmList.vue index f390f19..ded6afc 100644 --- a/pkg/views/src/components/realms/RealmList.vue +++ b/pkg/views/src/components/realms/RealmList.vue @@ -6,52 +6,34 @@ - + - - - - - Something went wrong... {{ error }} diff --git a/pkg/views/src/components/realms/RealmTools.vue b/pkg/views/src/components/realms/RealmTools.vue new file mode 100644 index 0000000..ceb8332 --- /dev/null +++ b/pkg/views/src/components/realms/RealmTools.vue @@ -0,0 +1,12 @@ + + + diff --git a/pkg/views/src/layouts/master.vue b/pkg/views/src/layouts/master.vue index 76d46c4..1549e85 100644 --- a/pkg/views/src/layouts/master.vue +++ b/pkg/views/src/layouts/master.vue @@ -88,7 +88,8 @@ - + + \ No newline at end of file diff --git a/pkg/views/src/views/realms/page.vue b/pkg/views/src/views/realms/page.vue new file mode 100644 index 0000000..9e22e90 --- /dev/null +++ b/pkg/views/src/views/realms/page.vue @@ -0,0 +1,110 @@ + + +