This commit is contained in:
Valentyne Stigloher 2025-02-10 13:30:07 +01:00
parent 413af9bcee
commit beed980c7f
4 changed files with 8 additions and 8 deletions

View File

@ -15,7 +15,7 @@ const props = withDefaults(defineProps<{
year: () => newDate().getFullYear(), year: () => newDate().getFullYear(),
}); });
const emit = defineEmits< { const emit = defineEmits<{
add: [event: string]; add: [event: string];
delete: [event: string]; delete: [event: string];
}>(); }>();

View File

@ -4,7 +4,7 @@ defineProps<{
dismissed?: boolean; dismissed?: boolean;
}>(); }>();
const emit = defineEmits< { const emit = defineEmits<{
dismiss: []; dismiss: [];
blur: []; blur: [];
}>(); }>();

View File

@ -10,7 +10,7 @@ const props = withDefaults(defineProps<{
skipIcons: () => [], skipIcons: () => [],
}); });
const emit = defineEmits< { const emit = defineEmits<{
change: [icon: string]; change: [icon: string];
}>(); }>();

View File

@ -632,9 +632,9 @@ const cleanupOpinions = (opinions: OpinionFormValue[]) => {
}; };
type SaveProfile = Omit<Profile, 'linksMetadata' | 'verifiedLinks' | 'footerAreas' | 'credentials' | type SaveProfile = Omit<Profile, 'linksMetadata' | 'verifiedLinks' | 'footerAreas' | 'credentials' |
'card' | 'cardDark' | 'circle' | 'markdown' | 'events' | 'customEvents' | 'lastUpdate' | 'id' | 'access'> 'card' | 'cardDark' | 'circle' | 'markdown' | 'events' | 'customEvents' | 'lastUpdate' | 'id' | 'access'>
& Partial<Pick<Profile, 'markdown' | 'events' | 'customEvents'>> & Partial<Pick<Profile, 'markdown' | 'events' | 'customEvents'>>
& Pick<ProfileRow, 'footerAreas' | 'credentials'>; & Pick<ProfileRow, 'footerAreas' | 'credentials'>;
const saveProfile = async (req: Request, locale: string, { const saveProfile = async (req: Request, locale: string, {
opinions, names, pronouns, description, birthday, timezone, links, flags, customFlags, words, sensitive, opinions, names, pronouns, description, birthday, timezone, links, flags, customFlags, words, sensitive,
@ -1036,8 +1036,8 @@ interface ProfileExportData {
} }
type ProfileExportProfile = Omit<Profile, 'linksMetadata' | 'verifiedLinks' | 'footerAreas' | 'credentials' | type ProfileExportProfile = Omit<Profile, 'linksMetadata' | 'verifiedLinks' | 'footerAreas' | 'credentials' |
'card' | 'cardDark' | 'circle' | 'lastUpdate' | 'id' | 'access'> 'card' | 'cardDark' | 'circle' | 'lastUpdate' | 'id' | 'access'>
& Pick<ProfileRow, 'footerAreas' | 'credentials'>; & Pick<ProfileRow, 'footerAreas' | 'credentials'>;
router.get('/profile/export', handleErrorAsync(async (req: Request, res: Response) => { router.get('/profile/export', handleErrorAsync(async (req: Request, res: Response) => {
if (!req.user || req.user.bannedReason) { if (!req.user || req.user.bannedReason) {