diff --git a/components/account/AccountHeader.vue b/components/account/AccountHeader.vue index 233c96d4..135819c2 100644 --- a/components/account/AccountHeader.vue +++ b/components/account/AccountHeader.vue @@ -91,56 +91,58 @@ const isNotifiedOnPost = $computed(() => !!relationship?.notifying)
-
- -
-
- - -
- +
+ + + {{ $t('settings.profile.appearance.title') }} + + + + + + + + + + + + + +
-
- - - - - - - - - - - - - - {{ $t('settings.profile.appearance.title') }} - +
+
+ + +
+
diff --git a/components/common/CommonPaginator.vue b/components/common/CommonPaginator.vue index 9e9dc935..ee51666d 100644 --- a/components/common/CommonPaginator.vue +++ b/components/common/CommonPaginator.vue @@ -51,6 +51,23 @@ nuxtApp.hook('elk-logo:click', () => { update() nuxtApp.$scrollToTop() }) + +function createEntry(item: any) { + items.value = [...items.value, preprocess?.([item]) ?? item] +} + +function updateEntry(item: any) { + const id = item[keyProp] + const index = items.value.findIndex(i => (i as any)[keyProp] === id) + if (index > -1) + items.value = [...items.value.slice(0, index), preprocess?.([item]) ?? item, ...items.value.slice(index + 1)] +} + +function removeEntry(entryId: any) { + items.value = items.value.filter(i => (i as any)[keyProp] !== entryId) +} + +defineExpose({ createEntry, removeEntry, updateEntry })