From 71b22398e562a49d248a501b78b21a99c86506d3 Mon Sep 17 00:00:00 2001 From: anko9801 Date: Wed, 28 Aug 2024 20:31:14 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=8E=A8=20=E3=83=AC=E3=82=A4=E3=82=A2?= =?UTF-8?q?=E3=82=A6=E3=83=88=E3=81=AE=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CSS 何も分からない --- src/pages/AdminPage.vue | 102 ++++++++++++++++++++++------------------ 1 file changed, 55 insertions(+), 47 deletions(-) diff --git a/src/pages/AdminPage.vue b/src/pages/AdminPage.vue index 20cde50d..97e6b2f3 100644 --- a/src/pages/AdminPage.vue +++ b/src/pages/AdminPage.vue @@ -20,10 +20,12 @@ const userStore = useUserStore() const tagStore = useTagStore() const toast = useToast() -const { isAdminFetched, admins, adminOptions } = storeToRefs(adminStore) +const { isAdminFetched, adminOptions } = storeToRefs(adminStore) const { me, isUserFetched, isAdmin, userMap } = storeToRefs(userStore) const { isTagFetched, tagIdOptions } = storeToRefs(tagStore) +const admins = ['test', 'mehm'] + const addList = ref([]) const removeList = ref([]) const deleteTagList = ref([]) @@ -56,60 +58,66 @@ if (me.value?.admin) { From 3181bd29e59429171084b5ce45a4214a059d316d Mon Sep 17 00:00:00 2001 From: anko9801 Date: Wed, 28 Aug 2024 20:34:01 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=94=A5=20=E9=96=8B=E7=99=BA=E7=94=A8?= =?UTF-8?q?=E3=81=AE=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/AdminPage.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pages/AdminPage.vue b/src/pages/AdminPage.vue index 97e6b2f3..95c39c81 100644 --- a/src/pages/AdminPage.vue +++ b/src/pages/AdminPage.vue @@ -20,12 +20,10 @@ const userStore = useUserStore() const tagStore = useTagStore() const toast = useToast() -const { isAdminFetched, adminOptions } = storeToRefs(adminStore) +const { isAdminFetched, admins, adminOptions } = storeToRefs(adminStore) const { me, isUserFetched, isAdmin, userMap } = storeToRefs(userStore) const { isTagFetched, tagIdOptions } = storeToRefs(tagStore) -const admins = ['test', 'mehm'] - const addList = ref([]) const removeList = ref([]) const deleteTagList = ref([]) @@ -63,10 +61,10 @@ if (me.value?.admin) {

管理

-
    +
    • -
      - {{ admin }} +
      + {{ userMap[admin] }}
    From f6dc6528548795a6e7b288e27845790b8e0b5a91 Mon Sep 17 00:00:00 2001 From: anko9801 Date: Sat, 7 Sep 2024 14:39:42 +0900 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=8E=A8=20=E3=83=9E=E3=83=AB=E3=83=81?= =?UTF-8?q?=E3=82=BB=E3=83=AC=E3=82=AF=E3=83=88=E3=81=AE=E6=A8=AA=E5=B9=85?= =?UTF-8?q?=E3=81=AE=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/shared/InputSelectMultiple.vue | 6 ++-- src/pages/AdminPage.vue | 35 ++++++++++--------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/src/components/shared/InputSelectMultiple.vue b/src/components/shared/InputSelectMultiple.vue index a55fc334..126d5361 100644 --- a/src/components/shared/InputSelectMultiple.vue +++ b/src/components/shared/InputSelectMultiple.vue @@ -181,7 +181,7 @@ const handleKeydown = (e: KeyboardEvent, option: Value) => { const length = searchQuery.value !== '' ? searchedOptions.value.length - : props.options?.length ?? 0 + : (props.options?.length ?? 0) focusingListItemIndex.value = (focusingListItemIndex.value + 1) % length const buttonEl = listItemRefs.value[focusingListItemIndex.value] .firstChild as HTMLButtonElement @@ -202,7 +202,7 @@ const handleKeydown = (e: KeyboardEvent, option: Value) => { const length = searchQuery.value !== '' ? searchedOptions.value.length - : props.options?.length ?? 0 + : (props.options?.length ?? 0) focusingListItemIndex.value = (focusingListItemIndex.value - 1 + length) % length const buttonEl = listItemRefs.value[focusingListItemIndex.value] @@ -241,7 +241,7 @@ const calcWidth = computed(() => { if (/w-/.test(props.class)) { return props.class } - return `${props.class} w-70` + return `${props.class}` }) /* ドロップダウンの位置を計算する処理 */ diff --git a/src/pages/AdminPage.vue b/src/pages/AdminPage.vue index 95c39c81..7052d74c 100644 --- a/src/pages/AdminPage.vue +++ b/src/pages/AdminPage.vue @@ -56,7 +56,7 @@ if (me.value?.admin) {