tangled
alpha
login
or
join now
ansxor.ca
/
witchsky.app
forked from
jollywhoppers.com/witchsky.app
1
fork
atom
Bluesky app fork with some witchin' additions 💫
1
fork
atom
overview
issues
pulls
pipelines
replace deer settings with runes
xan.lol
1 month ago
711c6982
4382ba2a
verified
This commit was signed with the committer's
known signature
.
xan.lol
SSH Key Fingerprint:
SHA256:7Zs+dcly5YqxBg7v8XsE1uPMYCobHKBw7CDiNxpmSrY=
+14
-14
5 changed files
expand all
collapse all
unified
split
src
Navigation.tsx
lib
routes
types.ts
routes.ts
screens
Settings
RunesSettings.tsx
Settings.tsx
+4
-4
src/Navigation.tsx
···
105
import {AppIconSettingsScreen} from '#/screens/Settings/AppIconSettings'
106
import {AppPasswordsScreen} from '#/screens/Settings/AppPasswords'
107
import {ContentAndMediaSettingsScreen} from '#/screens/Settings/ContentAndMediaSettings'
108
-
import {DeerSettingsScreen} from '#/screens/Settings/DeerSettings'
109
import {ExternalMediaPreferencesScreen} from '#/screens/Settings/ExternalMediaPreferences'
110
import {FindContactsSettingsScreen} from '#/screens/Settings/FindContactsSettings'
111
import {FollowingFeedPreferencesScreen} from '#/screens/Settings/FollowingFeedPreferences'
···
124
import {RepostNotificationSettingsScreen} from '#/screens/Settings/NotificationSettings/RepostNotificationSettings'
125
import {RepostsOnRepostsNotificationSettingsScreen} from '#/screens/Settings/NotificationSettings/RepostsOnRepostsNotificationSettings'
126
import {PrivacyAndSecuritySettingsScreen} from '#/screens/Settings/PrivacyAndSecuritySettings'
0
127
import {SettingsScreen} from '#/screens/Settings/Settings'
128
import {ThreadPreferencesScreen} from '#/screens/Settings/ThreadPreferences'
129
import {
···
408
}}
409
/>
410
<Stack.Screen
411
-
name="DeerSettings"
412
-
getComponent={() => DeerSettingsScreen}
413
options={{
414
-
title: title(msg`Experiments`),
415
requireAuth: true,
416
}}
417
/>
···
105
import {AppIconSettingsScreen} from '#/screens/Settings/AppIconSettings'
106
import {AppPasswordsScreen} from '#/screens/Settings/AppPasswords'
107
import {ContentAndMediaSettingsScreen} from '#/screens/Settings/ContentAndMediaSettings'
0
108
import {ExternalMediaPreferencesScreen} from '#/screens/Settings/ExternalMediaPreferences'
109
import {FindContactsSettingsScreen} from '#/screens/Settings/FindContactsSettings'
110
import {FollowingFeedPreferencesScreen} from '#/screens/Settings/FollowingFeedPreferences'
···
123
import {RepostNotificationSettingsScreen} from '#/screens/Settings/NotificationSettings/RepostNotificationSettings'
124
import {RepostsOnRepostsNotificationSettingsScreen} from '#/screens/Settings/NotificationSettings/RepostsOnRepostsNotificationSettings'
125
import {PrivacyAndSecuritySettingsScreen} from '#/screens/Settings/PrivacyAndSecuritySettings'
126
+
import {RunesSettingsScreen} from '#/screens/Settings/RunesSettings'
127
import {SettingsScreen} from '#/screens/Settings/Settings'
128
import {ThreadPreferencesScreen} from '#/screens/Settings/ThreadPreferences'
129
import {
···
408
}}
409
/>
410
<Stack.Screen
411
+
name="RunesSettings"
412
+
getComponent={() => RunesSettingsScreen}
413
options={{
414
+
title: title(msg`Runes`),
415
requireAuth: true,
416
}}
417
/>
+1
-1
src/lib/routes/types.ts
···
49
PreferencesExternalEmbeds: undefined
50
AccessibilitySettings: undefined
51
AppearanceSettings: undefined
52
-
DeerSettings: undefined
53
AccountSettings: undefined
54
PrivacyAndSecuritySettings: undefined
55
ActivityPrivacySettings: undefined
···
49
PreferencesExternalEmbeds: undefined
50
AccessibilitySettings: undefined
51
AppearanceSettings: undefined
52
+
RunesSettings: undefined
53
AccountSettings: undefined
54
PrivacyAndSecuritySettings: undefined
55
ActivityPrivacySettings: undefined
+1
-1
src/routes.ts
···
47
PreferencesThreads: '/settings/threads',
48
PreferencesExternalEmbeds: '/settings/external-embeds',
49
AccessibilitySettings: '/settings/accessibility',
50
-
DeerSettings: '/settings/deer',
51
AppearanceSettings: '/settings/appearance',
52
SavedFeeds: '/settings/saved-feeds',
53
AccountSettings: '/settings/account',
···
47
PreferencesThreads: '/settings/threads',
48
PreferencesExternalEmbeds: '/settings/external-embeds',
49
AccessibilitySettings: '/settings/accessibility',
50
+
RunesSettings: '/settings/runes',
51
AppearanceSettings: '/settings/appearance',
52
SavedFeeds: '/settings/saved-feeds',
53
AccountSettings: '/settings/account',
+4
-4
src/screens/Settings/DeerSettings.tsx
src/screens/Settings/RunesSettings.tsx
···
131
import {Button, ButtonText} from '#/components/Button'
132
import * as Dialog from '#/components/Dialog'
133
import * as Toggle from '#/components/forms/Toggle'
134
-
import {Atom_Stroke2_Corner0_Rounded as DeerIcon} from '#/components/icons/Atom'
135
import {ChainLink_Stroke2_Corner0_Rounded as ChainLinkIcon} from '#/components/icons/ChainLink'
136
import {Eye_Stroke2_Corner0_Rounded as VisibilityIcon} from '#/components/icons/Eye'
137
import {Earth_Stroke2_Corner2_Rounded as EarthIcon} from '#/components/icons/Globe'
···
488
)
489
}
490
491
-
export function DeerSettingsScreen({}: Props) {
492
const {_} = useLingui()
493
494
const goLinksEnabled = useGoLinksEnabled()
···
584
<Layout.Header.BackButton />
585
<Layout.Header.Content>
586
<Layout.Header.TitleText>
587
-
<Trans>Experiments</Trans>
588
</Layout.Header.TitleText>
589
</Layout.Header.Content>
590
<Layout.Header.Slot />
···
592
<Layout.Content>
593
<SettingsList.Container>
594
<SettingsList.Group contentContainerStyle={[a.gap_sm]}>
595
-
<SettingsList.ItemIcon icon={DeerIcon} />
596
<SettingsList.ItemText>
597
<Trans>Redirects</Trans>
598
</SettingsList.ItemText>
···
131
import {Button, ButtonText} from '#/components/Button'
132
import * as Dialog from '#/components/Dialog'
133
import * as Toggle from '#/components/forms/Toggle'
134
+
import {Atom_Stroke2_Corner0_Rounded as AtomIcon} from '#/components/icons/Atom'
135
import {ChainLink_Stroke2_Corner0_Rounded as ChainLinkIcon} from '#/components/icons/ChainLink'
136
import {Eye_Stroke2_Corner0_Rounded as VisibilityIcon} from '#/components/icons/Eye'
137
import {Earth_Stroke2_Corner2_Rounded as EarthIcon} from '#/components/icons/Globe'
···
488
)
489
}
490
491
+
export function RunesSettingsScreen({}: Props) {
492
const {_} = useLingui()
493
494
const goLinksEnabled = useGoLinksEnabled()
···
584
<Layout.Header.BackButton />
585
<Layout.Header.Content>
586
<Layout.Header.TitleText>
587
+
<Trans>Runes</Trans>
588
</Layout.Header.TitleText>
589
</Layout.Header.Content>
590
<Layout.Header.Slot />
···
592
<Layout.Content>
593
<SettingsList.Container>
594
<SettingsList.Group contentContainerStyle={[a.gap_sm]}>
595
+
<SettingsList.ItemIcon icon={AtomIcon} />
596
<SettingsList.ItemText>
597
<Trans>Redirects</Trans>
598
</SettingsList.ItemText>
+4
-4
src/screens/Settings/Settings.tsx
···
40
import {useDialogControl} from '#/components/Dialog'
41
import {SwitchAccountDialog} from '#/components/dialogs/SwitchAccount'
42
import {Accessibility_Stroke2_Corner2_Rounded as AccessibilityIcon} from '#/components/icons/Accessibility'
43
-
import {Atom_Stroke2_Corner0_Rounded as DeerIcon} from '#/components/icons/Atom'
44
import {Bell_Stroke2_Corner0_Rounded as NotificationIcon} from '#/components/icons/Bell'
45
import {BubbleInfo_Stroke2_Corner2_Rounded as BubbleInfoIcon} from '#/components/icons/BubbleInfo'
46
import {ChevronTop_Stroke2_Corner0_Rounded as ChevronUpIcon} from '#/components/icons/Chevron'
···
233
<Trans>Appearance</Trans>
234
</SettingsList.ItemText>
235
</SettingsList.LinkItem>
236
-
<SettingsList.LinkItem to="/settings/deer" label={_(msg`Deer`)}>
237
-
<SettingsList.ItemIcon icon={DeerIcon} />
238
<SettingsList.ItemText>
239
-
<Trans>Experiments</Trans>
240
</SettingsList.ItemText>
241
</SettingsList.LinkItem>
242
<SettingsList.LinkItem
···
40
import {useDialogControl} from '#/components/Dialog'
41
import {SwitchAccountDialog} from '#/components/dialogs/SwitchAccount'
42
import {Accessibility_Stroke2_Corner2_Rounded as AccessibilityIcon} from '#/components/icons/Accessibility'
43
+
import {Atom_Stroke2_Corner0_Rounded as AtomIcon} from '#/components/icons/Atom'
44
import {Bell_Stroke2_Corner0_Rounded as NotificationIcon} from '#/components/icons/Bell'
45
import {BubbleInfo_Stroke2_Corner2_Rounded as BubbleInfoIcon} from '#/components/icons/BubbleInfo'
46
import {ChevronTop_Stroke2_Corner0_Rounded as ChevronUpIcon} from '#/components/icons/Chevron'
···
233
<Trans>Appearance</Trans>
234
</SettingsList.ItemText>
235
</SettingsList.LinkItem>
236
+
<SettingsList.LinkItem to="/settings/runes" label={_(msg`Runes`)}>
237
+
<SettingsList.ItemIcon icon={AtomIcon} />
238
<SettingsList.ItemText>
239
+
<Trans>Runes</Trans>
240
</SettingsList.ItemText>
241
</SettingsList.LinkItem>
242
<SettingsList.LinkItem