mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Dev helpers, string cleanup

+27 -8
+4 -5
src/components/dialogs/nuxs/TenMillion/index.tsx
··· 430 430 style={[ 431 431 a.text_sm, 432 432 a.font_semibold, 433 - , 434 433 a.leading_tight, 435 434 lightTheme.atoms.text_contrast_low, 436 435 ]}> ··· 533 532 fontWeight: '900', 534 533 }, 535 534 ]}> 536 - Thanks for being an early part of Bluesky. 535 + <Trans>You're part of the next wave of the internet.</Trans> 537 536 </Text> 538 537 539 538 <Text style={[a.leading_snug, a.text_lg, a.pb_xl]}> 540 539 <Trans> 541 - We're rebuilding the social internet together. Congratulations, 542 - we're glad you're here. 540 + Thanks for being part of our first 10 million users. We're glad 541 + you're here. 543 542 </Trans>{' '} 544 543 </Text> 545 544 ··· 554 553 a.pt_xl, 555 554 ]}> 556 555 <Text style={[a.text_md, a.italic, t.atoms.text_contrast_medium]}> 557 - Brag a little! 556 + <Trans>Brag a little!</Trans> 558 557 </Text> 559 558 560 559 <Button
+18 -2
src/components/dialogs/nuxs/index.tsx
··· 1 1 import React from 'react' 2 2 3 - import {Nux, useNuxs, useUpsertNuxMutation} from '#/state/queries/nuxs' 3 + import { 4 + Nux, 5 + useNuxs, 6 + useRemoveNuxsMutation, 7 + useUpsertNuxMutation, 8 + } from '#/state/queries/nuxs' 4 9 import {useSession} from '#/state/session' 5 - import {isSnoozed, snooze} from '#/components/dialogs/nuxs/snoozing' 10 + import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing' 6 11 import {TenMillion} from '#/components/dialogs/nuxs/TenMillion' 12 + import {IS_DEV} from '#/env' 7 13 8 14 type Context = { 9 15 activeNux: Nux | undefined ··· 33 39 }) 34 40 const [activeNux, setActiveNux] = React.useState<Nux | undefined>() 35 41 const {mutate: upsertNux} = useUpsertNuxMutation() 42 + const {mutate: removeNuxs} = useRemoveNuxsMutation() 36 43 37 44 const snoozeNuxDialog = React.useCallback(() => { 38 45 snooze() ··· 50 57 expiresAt: nux?.expiresAt, 51 58 }) 52 59 }, [activeNux, setActiveNux, upsertNux, nuxs]) 60 + 61 + if (IS_DEV && typeof window !== 'undefined') { 62 + // @ts-ignore 63 + window.clearNuxDialog = (id: Nux) => { 64 + if (!IS_DEV || !id) return 65 + removeNuxs([id]) 66 + unsnooze() 67 + } 68 + } 53 69 54 70 React.useEffect(() => { 55 71 if (snoozed) return
+4
src/components/dialogs/nuxs/snoozing.ts
··· 5 5 device.set(['lastNuxDialog'], new Date().toISOString()) 6 6 } 7 7 8 + export function unsnooze() { 9 + device.set(['lastNuxDialog'], undefined) 10 + } 11 + 8 12 export function isSnoozed() { 9 13 const lastNuxDialog = device.get(['lastNuxDialog']) 10 14 if (!lastNuxDialog) return false
+1 -1
src/storage/schema.ts
··· 2 2 * Device data that's specific to the device and does not vary based account 3 3 */ 4 4 export type Device = { 5 - lastNuxDialog: string 5 + lastNuxDialog: string | undefined 6 6 }