From 58625b604aa03cd4e6e4f1ad3dfecc513fce2787 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 23 Jul 2026 14:53:48 +0200 Subject: [PATCH] Prettier --- web/lib/firebase/init.ts | 5 +- web/lib/firebase/users.ts | 8 +- web/lib/icons/triangle-outline-icon.svg | 14 +- web/lib/icons/trophy-icon.svg | 17 +- web/lib/util/delete.ts | 5 +- web/lib/util/scroll.ts | 4 +- web/lib/util/strings.ts | 3 +- web/public/favicon-black.svg | 490 ++++++++++++------------ web/public/favicon.svg | 160 ++++---- web/public/fonts/icomoon.svg | 26 +- 10 files changed, 367 insertions(+), 365 deletions(-) diff --git a/web/lib/firebase/init.ts b/web/lib/firebase/init.ts index 10827390..b610391c 100644 --- a/web/lib/firebase/init.ts +++ b/web/lib/firebase/init.ts @@ -7,10 +7,7 @@ export const app = getApps().length ? getApp() : initializeApp(FIREBASE_CONFIG) // Initialize storage with emulator support export const storage = getStorage() -export const privateStorage = getStorage( - app, - 'gs://' + FIREBASE_CONFIG.privateBucket -) +export const privateStorage = getStorage(app, 'gs://' + FIREBASE_CONFIG.privateBucket) // Connect to storage emulator if in emulator mode if (IS_FIREBASE_EMULATOR) { diff --git a/web/lib/firebase/users.ts b/web/lib/firebase/users.ts index 70d3aaa9..cf5f94b3 100644 --- a/web/lib/firebase/users.ts +++ b/web/lib/firebase/users.ts @@ -6,7 +6,13 @@ import {debug} from 'common/logger' import {type User} from 'common/user' import dayjs from 'dayjs' import utc from 'dayjs/plugin/utc' -import {connectAuthEmulator, getAuth, GoogleAuthProvider, signInWithCredential, signInWithPopup,} from 'firebase/auth' +import { + connectAuthEmulator, + getAuth, + GoogleAuthProvider, + signInWithCredential, + signInWithPopup, +} from 'firebase/auth' import {isAndroidApp} from 'web/lib/util/webview' import {safeLocalStorage} from '../util/local' diff --git a/web/lib/icons/triangle-outline-icon.svg b/web/lib/icons/triangle-outline-icon.svg index a33c827a..cb542bfb 100644 --- a/web/lib/icons/triangle-outline-icon.svg +++ b/web/lib/icons/triangle-outline-icon.svg @@ -1,12 +1,12 @@ - + diff --git a/web/lib/icons/trophy-icon.svg b/web/lib/icons/trophy-icon.svg index b08fdd74..07ea3a91 100644 --- a/web/lib/icons/trophy-icon.svg +++ b/web/lib/icons/trophy-icon.svg @@ -1,21 +1,10 @@ - + - - + + diff --git a/web/lib/util/delete.ts b/web/lib/util/delete.ts index d814ff47..37a2f0db 100644 --- a/web/lib/util/delete.ts +++ b/web/lib/util/delete.ts @@ -4,7 +4,10 @@ import {api} from 'web/lib/api' import {firebaseLogout} from 'web/lib/firebase/users' import {track} from 'web/lib/service/analytics' -export async function deleteAccount(reasons?: {reasonCategory?: string | null; reasonDetails?: string}) { +export async function deleteAccount(reasons?: { + reasonCategory?: string | null + reasonDetails?: string +}) { track('delete account') await api('me/delete', reasons || {}) await firebaseLogout() diff --git a/web/lib/util/scroll.ts b/web/lib/util/scroll.ts index eddf75be..aaafb1dd 100644 --- a/web/lib/util/scroll.ts +++ b/web/lib/util/scroll.ts @@ -4,8 +4,6 @@ export const scrollIntoViewCentered = (element: HTMLElement) => { const absoluteElementTop = elementRect.top + window.pageYOffset const halfWindowHeight = window.innerHeight / 2 const middle = - absoluteElementTop - - halfWindowHeight + - Math.min(elementRect.height / 2, halfWindowHeight - 58) + absoluteElementTop - halfWindowHeight + Math.min(elementRect.height / 2, halfWindowHeight - 58) window.scrollTo(0, middle) } diff --git a/web/lib/util/strings.ts b/web/lib/util/strings.ts index 88b27283..27ab326e 100644 --- a/web/lib/util/strings.ts +++ b/web/lib/util/strings.ts @@ -2,5 +2,4 @@ * Returns the possessive form of a name. * Adds 's unless the name already ends with s, in which case just adds '. */ -export const possessive = (name: string) => - name.endsWith('s') ? `${name}'` : `${name}'s` +export const possessive = (name: string) => (name.endsWith('s') ? `${name}'` : `${name}'s`) diff --git a/web/public/favicon-black.svg b/web/public/favicon-black.svg index 63623653..20121a4a 100644 --- a/web/public/favicon-black.svg +++ b/web/public/favicon-black.svg @@ -1,248 +1,248 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/public/favicon.svg b/web/public/favicon.svg index 50fc596d..7e378604 100644 --- a/web/public/favicon.svg +++ b/web/public/favicon.svg @@ -1,76 +1,86 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/public/fonts/icomoon.svg b/web/public/fonts/icomoon.svg index 750b73cb..63d3eea1 100644 --- a/web/public/fonts/icomoon.svg +++ b/web/public/fonts/icomoon.svg @@ -1,17 +1,17 @@ - Generated by IcoMoon - - - - - - - - + Generated by IcoMoon + + + + + + + +