feat: sites and authors integration into existing screens (& formated all frontend files kinda accidentally)

This commit is contained in:
Florian Sylvain committed 2026-10-15 05:25:44 +02:00
1 parent 3d81d2c717
commit 6b8990c55e
239 files changed
+9194 -1354

No files matched your search

+14 -3
View File
@@ -42,7 +42,12 @@ const props = withDefaults(
ownEmail?: string
knownSlugs?: string[]
}>(),
{ author: undefined, ownProfile: false, ownEmail: '', knownSlugs: () => [] },
{
author: undefined,
ownProfile: false,
ownEmail: '',
knownSlugs: () => [],
},
)
const emit = defineEmits<{
@@ -58,7 +63,11 @@ const overlay = useLocalizedOverlay()
const editing = computed(() => props.author !== undefined)
const initialLinks: SocialLinkRow[] = (props.author?.social_links ?? []).map(
(link: SocialLink, index) => ({ key: index + 1, type: link.type, url: link.url }),
(link: SocialLink, index) => ({
key: index + 1,
type: link.type,
url: link.url,
}),
)
const values = reactive({
@@ -348,7 +357,9 @@ async function confirmUnlink() {
tone: 'neutral',
action: async () => {
try {
const updated = await updateAuthor(author.id, { user_id: null })
const updated = await updateAuthor(author.id, {
user_id: null,
})
baseUserId.value = null
linkedEmail.value = ''
emit('updated', updated)