From 33f7e093e98fa485f802ca4752969237a98469b5 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 18 Jan 2023 11:42:03 -0800 Subject: [PATCH 01/24] fix: make perm selector look nicer --- .../client/src/components/MkTokenGenerateWindow.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/client/src/components/MkTokenGenerateWindow.vue b/packages/client/src/components/MkTokenGenerateWindow.vue index 31fd73722..319eb6661 100644 --- a/packages/client/src/components/MkTokenGenerateWindow.vue +++ b/packages/client/src/components/MkTokenGenerateWindow.vue @@ -2,28 +2,28 @@
{{ information }}
- - - +
{{ i18n.ts.name }}
+
{{ i18n.ts.permission }}
{{ i18n.ts.disableAll }} - {{ i18n.ts.enableAll }} - {{ i18n.t(`_permissions.${kind}`) }} + {{ i18n.ts.enableAll }} + {{ i18n.t(`_permissions.${kind}`) }}
From aee954e08762c3ae57bd4adc18e154707e62914e Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Wed, 18 Jan 2023 21:35:38 +0100 Subject: [PATCH 02/24] potential fix --- packages/client/src/pages/messaging/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pages/messaging/index.vue b/packages/client/src/pages/messaging/index.vue index 1966f2969..79cb1f731 100644 --- a/packages/client/src/pages/messaging/index.vue +++ b/packages/client/src/pages/messaging/index.vue @@ -89,14 +89,14 @@ definePageMetadata({ const dmsPagination = { endpoint: 'messaging/history' as const, - limit: 15, + limit: 100, params: { group: false, }, }; const groupsPagination = { endpoint: 'messaging/history' as const, - limit: 5, + limit: 30, params: { group: true, }, From 4446345cf0bbd94af091ab65d82715322368a3e6 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Wed, 18 Jan 2023 22:01:33 +0100 Subject: [PATCH 03/24] quick fix --- packages/client/src/pages/messaging/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/pages/messaging/index.vue b/packages/client/src/pages/messaging/index.vue index 79cb1f731..c9d68ccae 100644 --- a/packages/client/src/pages/messaging/index.vue +++ b/packages/client/src/pages/messaging/index.vue @@ -89,7 +89,7 @@ definePageMetadata({ const dmsPagination = { endpoint: 'messaging/history' as const, - limit: 100, + limit: 99, params: { group: false, }, From 34b14c98e18ad1b03c031816ab693898d895921e Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Wed, 18 Jan 2023 23:48:05 +0100 Subject: [PATCH 04/24] YEET --- packages/client/src/components/MkPagination.vue | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/packages/client/src/components/MkPagination.vue b/packages/client/src/components/MkPagination.vue index 3327a6796..95b86c51a 100644 --- a/packages/client/src/components/MkPagination.vue +++ b/packages/client/src/components/MkPagination.vue @@ -278,17 +278,6 @@ const prepend = (item: Item): void => { // Prepend the item items.value.unshift(item); if(props.externalItemArray) props.externalItemArray.value.unshift(item); - - // オーバーフローしたら古いアイテムは捨てる - if (items.value.length >= props.displayLimit) { - // このやり方だとVue 3.2以降アニメーションが動かなくなる - //this.items = items.value.slice(0, props.displayLimit); - while (items.value.length >= props.displayLimit) { - items.value.pop(); - if(props.externalItemArray) props.externalItemArray.value.pop(); - } - more.value = true; - } } else { queue.value.push(item); onScrollTop(rootEl.value, () => { @@ -308,7 +297,8 @@ const append = (item: Item): void => { const removeItem = (finder: (item: Item) => boolean): boolean => { const i = items.value.findIndex(finder); - if (i === -1) { + const j = props.externalItemArray?.findIndex(finder); + if (i === -1 && j === -1) { return false; } @@ -319,7 +309,8 @@ const removeItem = (finder: (item: Item) => boolean): boolean => { const updateItem = (id: Item['id'], replacer: (old: Item) => Item): boolean => { const i = items.value.findIndex(item => item.id === id); - if (i === -1) { + const j = props.externalItemArray?.findIndex(item => item.id === id); + if (i === -1 && j === -1) { return false; } From 3162539c37adc5951c1d99292236aa0047c1ccb9 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Wed, 18 Jan 2023 23:54:59 +0100 Subject: [PATCH 05/24] chore: reformat MkPagination --- .../client/src/components/MkPagination.vue | 89 ++++++++++--------- 1 file changed, 48 insertions(+), 41 deletions(-) diff --git a/packages/client/src/components/MkPagination.vue b/packages/client/src/components/MkPagination.vue index 95b86c51a..84c79fe28 100644 --- a/packages/client/src/components/MkPagination.vue +++ b/packages/client/src/components/MkPagination.vue @@ -1,34 +1,37 @@ - + + >.groupsbuttons { + max-width: 100%; + display: flex; + justify-content: center; + margin-bottom: 1rem; + } +} + From 74e3de94fa023c3f5e8419db47a2355b8f96aba8 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Thu, 19 Jan 2023 00:29:04 +0100 Subject: [PATCH 10/24] wip --- packages/client/src/pages/messaging/index.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/client/src/pages/messaging/index.vue b/packages/client/src/pages/messaging/index.vue index ca4e3e3af..8faca318e 100644 --- a/packages/client/src/pages/messaging/index.vue +++ b/packages/client/src/pages/messaging/index.vue @@ -41,7 +41,7 @@