Compare commits
2 Commits
1690aa4c12
...
25e7927c70
| Author | SHA1 | Date | |
|---|---|---|---|
|
25e7927c70
|
|||
|
6d89ea4481
|
@@ -76,7 +76,6 @@ PATCH_FILES=(
|
|||||||
"130-atproto-ozone-enable-daemon-v2.patch"
|
"130-atproto-ozone-enable-daemon-v2.patch"
|
||||||
"200-feed-generator-custom.patch"
|
"200-feed-generator-custom.patch"
|
||||||
"210-bgs-since-empty-fix.patch"
|
"210-bgs-since-empty-fix.patch"
|
||||||
"220-atproto-dockerfile-copy-services.patch"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
function at-repos-clone() {
|
function at-repos-clone() {
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
diff --git a/src/screens/Settings/AboutSettings.tsx b/src/screens/Settings/AboutSettings.tsx
|
|
||||||
index 9ba067a2f..e34b9f9b0 100644
|
|
||||||
--- a/src/screens/Settings/AboutSettings.tsx
|
--- a/src/screens/Settings/AboutSettings.tsx
|
||||||
+++ b/src/screens/Settings/AboutSettings.tsx
|
+++ b/src/screens/Settings/AboutSettings.tsx
|
||||||
@@ -78,7 +78,7 @@ export function AboutSettingsScreen({}: Props) {
|
@@ -79,7 +79,7 @@
|
||||||
<Layout.Content>
|
<Layout.Content>
|
||||||
<SettingsList.Container>
|
<SettingsList.Container>
|
||||||
<SettingsList.LinkItem
|
<SettingsList.LinkItem
|
||||||
@@ -11,7 +9,7 @@ index 9ba067a2f..e34b9f9b0 100644
|
|||||||
label={_(msg`Terms of Service`)}>
|
label={_(msg`Terms of Service`)}>
|
||||||
<SettingsList.ItemIcon icon={NewspaperIcon} />
|
<SettingsList.ItemIcon icon={NewspaperIcon} />
|
||||||
<SettingsList.ItemText>
|
<SettingsList.ItemText>
|
||||||
@@ -86,7 +86,7 @@ export function AboutSettingsScreen({}: Props) {
|
@@ -87,7 +87,7 @@
|
||||||
</SettingsList.ItemText>
|
</SettingsList.ItemText>
|
||||||
</SettingsList.LinkItem>
|
</SettingsList.LinkItem>
|
||||||
<SettingsList.LinkItem
|
<SettingsList.LinkItem
|
||||||
@@ -20,11 +18,9 @@ index 9ba067a2f..e34b9f9b0 100644
|
|||||||
label={_(msg`Privacy Policy`)}>
|
label={_(msg`Privacy Policy`)}>
|
||||||
<SettingsList.ItemIcon icon={NewspaperIcon} />
|
<SettingsList.ItemIcon icon={NewspaperIcon} />
|
||||||
<SettingsList.ItemText>
|
<SettingsList.ItemText>
|
||||||
diff --git a/src/screens/Takendown.tsx b/src/screens/Takendown.tsx
|
|
||||||
index 660aecf1a..f19a62c0f 100644
|
|
||||||
--- a/src/screens/Takendown.tsx
|
--- a/src/screens/Takendown.tsx
|
||||||
+++ b/src/screens/Takendown.tsx
|
+++ b/src/screens/Takendown.tsx
|
||||||
@@ -212,10 +212,10 @@ export function Takendown() {
|
@@ -210,10 +210,10 @@
|
||||||
<Trans>
|
<Trans>
|
||||||
Your account was found to be in violation of the{' '}
|
Your account was found to be in violation of the{' '}
|
||||||
<SimpleInlineLinkText
|
<SimpleInlineLinkText
|
||||||
@@ -38,15 +34,14 @@ index 660aecf1a..f19a62c0f 100644
|
|||||||
</SimpleInlineLinkText>
|
</SimpleInlineLinkText>
|
||||||
. You have been sent an email outlining the specific violation
|
. You have been sent an email outlining the specific violation
|
||||||
and suspension period, if applicable. You can appeal this
|
and suspension period, if applicable. You can appeal this
|
||||||
diff --git a/src/view/screens/PrivacyPolicy.tsx b/src/view/screens/PrivacyPolicy.tsx
|
|
||||||
index a89eaadc4..71ce7c81f 100644
|
|
||||||
--- a/src/view/screens/PrivacyPolicy.tsx
|
--- a/src/view/screens/PrivacyPolicy.tsx
|
||||||
+++ b/src/view/screens/PrivacyPolicy.tsx
|
+++ b/src/view/screens/PrivacyPolicy.tsx
|
||||||
@@ -1,51 +1,49 @@
|
@@ -1,52 +1,49 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
-import {View} from 'react-native'
|
-import {View} from 'react-native'
|
||||||
-import {msg, Trans} from '@lingui/macro'
|
-import {msg} from '@lingui/core/macro'
|
||||||
-import {useLingui} from '@lingui/react'
|
-import {useLingui} from '@lingui/react'
|
||||||
|
-import {Trans} from '@lingui/react/macro'
|
||||||
-import {useFocusEffect} from '@react-navigation/native'
|
-import {useFocusEffect} from '@react-navigation/native'
|
||||||
-
|
-
|
||||||
-import {usePalette} from '#/lib/hooks/usePalette'
|
-import {usePalette} from '#/lib/hooks/usePalette'
|
||||||
@@ -62,26 +57,25 @@ index a89eaadc4..71ce7c81f 100644
|
|||||||
+import {ScrollView} from 'react-native'
|
+import {ScrollView} from 'react-native'
|
||||||
import * as Layout from '#/components/Layout'
|
import * as Layout from '#/components/Layout'
|
||||||
-import {ViewHeader} from '../com/util/ViewHeader'
|
-import {ViewHeader} from '../com/util/ViewHeader'
|
||||||
-
|
+import {useSetTitle} from '#/lib/hooks/useSetTitle'
|
||||||
|
+import {atoms as a, useTheme} from '#/alf'
|
||||||
|
+import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
-type Props = NativeStackScreenProps<CommonNavigatorParams, 'PrivacyPolicy'>
|
-type Props = NativeStackScreenProps<CommonNavigatorParams, 'PrivacyPolicy'>
|
||||||
-export const PrivacyPolicyScreen = (_props: Props) => {
|
-export const PrivacyPolicyScreen = (_props: Props) => {
|
||||||
- const pal = usePalette('default')
|
- const pal = usePalette('default')
|
||||||
- const {_} = useLingui()
|
- const {_} = useLingui()
|
||||||
- const setMinimalShellMode = useSetMinimalShellMode()
|
- const setMinimalShellMode = useSetMinimalShellMode()
|
||||||
-
|
+export function PrivacyPolicyScreen() {
|
||||||
|
+ useSetTitle('Privacy Policy')
|
||||||
|
+ const t = useTheme()
|
||||||
|
|
||||||
- useFocusEffect(
|
- useFocusEffect(
|
||||||
- React.useCallback(() => {
|
- React.useCallback(() => {
|
||||||
- setMinimalShellMode(false)
|
- setMinimalShellMode(false)
|
||||||
- }, [setMinimalShellMode]),
|
- }, [setMinimalShellMode]),
|
||||||
- )
|
- )
|
||||||
+import {useSetTitle} from '#/lib/hooks/useSetTitle'
|
-
|
||||||
+import {atoms as a, useTheme} from '#/alf'
|
|
||||||
+import {Text} from '#/components/Typography'
|
|
||||||
+
|
|
||||||
+export function PrivacyPolicyScreen() {
|
|
||||||
+ useSetTitle('Privacy Policy')
|
|
||||||
+ const t = useTheme()
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout.Screen>
|
<Layout.Screen>
|
||||||
- <ViewHeader title={_(msg`Privacy Policy`)} />
|
- <ViewHeader title={_(msg`Privacy Policy`)} />
|
||||||
@@ -135,15 +129,14 @@ index a89eaadc4..71ce7c81f 100644
|
|||||||
</ScrollView>
|
</ScrollView>
|
||||||
</Layout.Screen>
|
</Layout.Screen>
|
||||||
)
|
)
|
||||||
diff --git a/src/view/screens/TermsOfService.tsx b/src/view/screens/TermsOfService.tsx
|
|
||||||
index d843c713c..c6a36268b 100644
|
|
||||||
--- a/src/view/screens/TermsOfService.tsx
|
--- a/src/view/screens/TermsOfService.tsx
|
||||||
+++ b/src/view/screens/TermsOfService.tsx
|
+++ b/src/view/screens/TermsOfService.tsx
|
||||||
@@ -1,49 +1,49 @@
|
@@ -1,50 +1,49 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
-import {View} from 'react-native'
|
-import {View} from 'react-native'
|
||||||
-import {msg, Trans} from '@lingui/macro'
|
-import {msg} from '@lingui/core/macro'
|
||||||
-import {useLingui} from '@lingui/react'
|
-import {useLingui} from '@lingui/react'
|
||||||
|
-import {Trans} from '@lingui/react/macro'
|
||||||
-import {useFocusEffect} from '@react-navigation/native'
|
-import {useFocusEffect} from '@react-navigation/native'
|
||||||
-
|
-
|
||||||
-import {usePalette} from '#/lib/hooks/usePalette'
|
-import {usePalette} from '#/lib/hooks/usePalette'
|
||||||
@@ -159,26 +152,25 @@ index d843c713c..c6a36268b 100644
|
|||||||
+import {ScrollView} from 'react-native'
|
+import {ScrollView} from 'react-native'
|
||||||
import * as Layout from '#/components/Layout'
|
import * as Layout from '#/components/Layout'
|
||||||
-import {ViewHeader} from '../com/util/ViewHeader'
|
-import {ViewHeader} from '../com/util/ViewHeader'
|
||||||
-
|
+import {useSetTitle} from '#/lib/hooks/useSetTitle'
|
||||||
|
+import {atoms as a, useTheme} from '#/alf'
|
||||||
|
+import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
-type Props = NativeStackScreenProps<CommonNavigatorParams, 'TermsOfService'>
|
-type Props = NativeStackScreenProps<CommonNavigatorParams, 'TermsOfService'>
|
||||||
-export const TermsOfServiceScreen = (_props: Props) => {
|
-export const TermsOfServiceScreen = (_props: Props) => {
|
||||||
- const pal = usePalette('default')
|
- const pal = usePalette('default')
|
||||||
- const setMinimalShellMode = useSetMinimalShellMode()
|
- const setMinimalShellMode = useSetMinimalShellMode()
|
||||||
- const {_} = useLingui()
|
- const {_} = useLingui()
|
||||||
-
|
+export function TermsOfServiceScreen() {
|
||||||
|
+ useSetTitle('Terms of Service')
|
||||||
|
+ const t = useTheme()
|
||||||
|
|
||||||
- useFocusEffect(
|
- useFocusEffect(
|
||||||
- React.useCallback(() => {
|
- React.useCallback(() => {
|
||||||
- setMinimalShellMode(false)
|
- setMinimalShellMode(false)
|
||||||
- }, [setMinimalShellMode]),
|
- }, [setMinimalShellMode]),
|
||||||
- )
|
- )
|
||||||
+import {useSetTitle} from '#/lib/hooks/useSetTitle'
|
-
|
||||||
+import {atoms as a, useTheme} from '#/alf'
|
|
||||||
+import {Text} from '#/components/Typography'
|
|
||||||
+
|
|
||||||
+export function TermsOfServiceScreen() {
|
|
||||||
+ useSetTitle('Terms of Service')
|
|
||||||
+ const t = useTheme()
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout.Screen>
|
<Layout.Screen>
|
||||||
- <ViewHeader title={_(msg`Terms of Service`)} />
|
- <ViewHeader title={_(msg`Terms of Service`)} />
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
diff --git a/src/view/com/posts/DiscoverFallbackHeader.tsx b/src/view/com/posts/DiscoverFallbackHeader.tsx
|
|
||||||
index e35a33aaf..a36f84ae0 100644
|
|
||||||
--- a/src/view/com/posts/DiscoverFallbackHeader.tsx
|
--- a/src/view/com/posts/DiscoverFallbackHeader.tsx
|
||||||
+++ b/src/view/com/posts/DiscoverFallbackHeader.tsx
|
+++ b/src/view/com/posts/DiscoverFallbackHeader.tsx
|
||||||
@@ -7,37 +7,5 @@ import {TextLink} from '../util/Link'
|
@@ -7,37 +7,5 @@
|
||||||
import {Text} from '../util/text/Text'
|
import {Text} from '../util/text/Text'
|
||||||
|
|
||||||
export function DiscoverFallbackHeader() {
|
export function DiscoverFallbackHeader() {
|
||||||
- const pal = usePalette('default')
|
- const pal = usePalette('default')
|
||||||
- return (
|
- return (
|
||||||
@@ -41,20 +39,18 @@ index e35a33aaf..a36f84ae0 100644
|
|||||||
- )
|
- )
|
||||||
+ return null
|
+ return null
|
||||||
}
|
}
|
||||||
diff --git a/src/view/com/posts/FollowingEmptyState.tsx b/src/view/com/posts/FollowingEmptyState.tsx
|
|
||||||
index 352cc1dc0..f477521af 100644
|
|
||||||
--- a/src/view/com/posts/FollowingEmptyState.tsx
|
--- a/src/view/com/posts/FollowingEmptyState.tsx
|
||||||
+++ b/src/view/com/posts/FollowingEmptyState.tsx
|
+++ b/src/view/com/posts/FollowingEmptyState.tsx
|
||||||
@@ -1,37 +1,14 @@
|
@@ -1,38 +1,15 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {StyleSheet, View} from 'react-native'
|
import {StyleSheet, View} from 'react-native'
|
||||||
-import {
|
-import {
|
||||||
- FontAwesomeIcon,
|
- FontAwesomeIcon,
|
||||||
- type FontAwesomeIconStyle,
|
- type FontAwesomeIconStyle,
|
||||||
-} from '@fortawesome/react-native-fontawesome'
|
-} from '@fortawesome/react-native-fontawesome'
|
||||||
import {Trans} from '@lingui/macro'
|
import {Trans} from '@lingui/react/macro'
|
||||||
-import {useNavigation} from '@react-navigation/native'
|
-import {useNavigation} from '@react-navigation/native'
|
||||||
|
|
||||||
import {usePalette} from '#/lib/hooks/usePalette'
|
import {usePalette} from '#/lib/hooks/usePalette'
|
||||||
import {MagnifyingGlassIcon} from '#/lib/icons'
|
import {MagnifyingGlassIcon} from '#/lib/icons'
|
||||||
-import {type NavigationProp} from '#/lib/routes/types'
|
-import {type NavigationProp} from '#/lib/routes/types'
|
||||||
@@ -62,12 +58,12 @@ index 352cc1dc0..f477521af 100644
|
|||||||
-import {IS_WEB} from '#/env'
|
-import {IS_WEB} from '#/env'
|
||||||
-import {Button} from '../util/forms/Button'
|
-import {Button} from '../util/forms/Button'
|
||||||
import {Text} from '../util/text/Text'
|
import {Text} from '../util/text/Text'
|
||||||
|
|
||||||
export function FollowingEmptyState() {
|
export function FollowingEmptyState() {
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
- const palInverted = usePalette('inverted')
|
- const palInverted = usePalette('inverted')
|
||||||
- const navigation = useNavigation<NavigationProp>()
|
- const navigation = useNavigation<NavigationProp>()
|
||||||
-
|
|
||||||
- const onPressFindAccounts = React.useCallback(() => {
|
- const onPressFindAccounts = React.useCallback(() => {
|
||||||
- if (IS_WEB) {
|
- if (IS_WEB) {
|
||||||
- navigation.navigate('Search', {})
|
- navigation.navigate('Search', {})
|
||||||
@@ -80,10 +76,11 @@ index 352cc1dc0..f477521af 100644
|
|||||||
- const onPressDiscoverFeeds = React.useCallback(() => {
|
- const onPressDiscoverFeeds = React.useCallback(() => {
|
||||||
- navigation.navigate('Feeds')
|
- navigation.navigate('Feeds')
|
||||||
- }, [navigation])
|
- }, [navigation])
|
||||||
|
-
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
@@ -45,36 +22,6 @@ export function FollowingEmptyState() {
|
<View style={styles.inner}>
|
||||||
|
@@ -45,36 +22,6 @@
|
||||||
happening.
|
happening.
|
||||||
</Trans>
|
</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
@@ -120,7 +117,7 @@ index 352cc1dc0..f477521af 100644
|
|||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
@@ -98,13 +45,4 @@ const styles = StyleSheet.create({
|
@@ -98,13 +45,4 @@
|
||||||
marginLeft: 'auto',
|
marginLeft: 'auto',
|
||||||
marginRight: 'auto',
|
marginRight: 'auto',
|
||||||
},
|
},
|
||||||
@@ -134,32 +131,30 @@ index 352cc1dc0..f477521af 100644
|
|||||||
- borderRadius: 30,
|
- borderRadius: 30,
|
||||||
- },
|
- },
|
||||||
})
|
})
|
||||||
diff --git a/src/view/com/posts/FollowingEndOfFeed.tsx b/src/view/com/posts/FollowingEndOfFeed.tsx
|
|
||||||
index e3c84d782..efb55d406 100644
|
|
||||||
--- a/src/view/com/posts/FollowingEndOfFeed.tsx
|
--- a/src/view/com/posts/FollowingEndOfFeed.tsx
|
||||||
+++ b/src/view/com/posts/FollowingEndOfFeed.tsx
|
+++ b/src/view/com/posts/FollowingEndOfFeed.tsx
|
||||||
@@ -1,36 +1,13 @@
|
@@ -1,37 +1,14 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {Dimensions, StyleSheet, View} from 'react-native'
|
import {Dimensions, StyleSheet, View} from 'react-native'
|
||||||
-import {
|
-import {
|
||||||
- FontAwesomeIcon,
|
- FontAwesomeIcon,
|
||||||
- type FontAwesomeIconStyle,
|
- type FontAwesomeIconStyle,
|
||||||
-} from '@fortawesome/react-native-fontawesome'
|
-} from '@fortawesome/react-native-fontawesome'
|
||||||
import {Trans} from '@lingui/macro'
|
import {Trans} from '@lingui/react/macro'
|
||||||
-import {useNavigation} from '@react-navigation/native'
|
-import {useNavigation} from '@react-navigation/native'
|
||||||
|
|
||||||
import {usePalette} from '#/lib/hooks/usePalette'
|
import {usePalette} from '#/lib/hooks/usePalette'
|
||||||
-import {type NavigationProp} from '#/lib/routes/types'
|
-import {type NavigationProp} from '#/lib/routes/types'
|
||||||
import {s} from '#/lib/styles'
|
import {s} from '#/lib/styles'
|
||||||
-import {IS_WEB} from '#/env'
|
-import {IS_WEB} from '#/env'
|
||||||
-import {Button} from '../util/forms/Button'
|
-import {Button} from '../util/forms/Button'
|
||||||
import {Text} from '../util/text/Text'
|
import {Text} from '../util/text/Text'
|
||||||
|
|
||||||
export function FollowingEndOfFeed() {
|
export function FollowingEndOfFeed() {
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
- const palInverted = usePalette('inverted')
|
- const palInverted = usePalette('inverted')
|
||||||
- const navigation = useNavigation<NavigationProp>()
|
- const navigation = useNavigation<NavigationProp>()
|
||||||
-
|
|
||||||
- const onPressFindAccounts = React.useCallback(() => {
|
- const onPressFindAccounts = React.useCallback(() => {
|
||||||
- if (IS_WEB) {
|
- if (IS_WEB) {
|
||||||
- navigation.navigate('Search', {})
|
- navigation.navigate('Search', {})
|
||||||
@@ -172,10 +167,11 @@ index e3c84d782..efb55d406 100644
|
|||||||
- const onPressDiscoverFeeds = React.useCallback(() => {
|
- const onPressDiscoverFeeds = React.useCallback(() => {
|
||||||
- navigation.navigate('Feeds')
|
- navigation.navigate('Feeds')
|
||||||
- }, [navigation])
|
- }, [navigation])
|
||||||
|
-
|
||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
@@ -41,41 +18,8 @@ export function FollowingEndOfFeed() {
|
style={[
|
||||||
|
@@ -41,41 +18,8 @@
|
||||||
]}>
|
]}>
|
||||||
<View style={styles.inner}>
|
<View style={styles.inner}>
|
||||||
<Text type="xl-medium" style={[s.textCenter, pal.text]}>
|
<Text type="xl-medium" style={[s.textCenter, pal.text]}>
|
||||||
@@ -183,7 +179,8 @@ index e3c84d782..efb55d406 100644
|
|||||||
- You've reached the end of your feed! Find some more accounts to
|
- You've reached the end of your feed! Find some more accounts to
|
||||||
- follow.
|
- follow.
|
||||||
- </Trans>
|
- </Trans>
|
||||||
- </Text>
|
+ <Trans>You've reached the end of your feed!</Trans>
|
||||||
|
</Text>
|
||||||
- <Button
|
- <Button
|
||||||
- type="inverted"
|
- type="inverted"
|
||||||
- style={styles.emptyBtn}
|
- style={styles.emptyBtn}
|
||||||
@@ -200,8 +197,7 @@ index e3c84d782..efb55d406 100644
|
|||||||
-
|
-
|
||||||
- <Text type="xl-medium" style={[s.textCenter, pal.text, s.mt20]}>
|
- <Text type="xl-medium" style={[s.textCenter, pal.text, s.mt20]}>
|
||||||
- <Trans>You can also discover new Custom Feeds to follow.</Trans>
|
- <Trans>You can also discover new Custom Feeds to follow.</Trans>
|
||||||
+ <Trans>You've reached the end of your feed!</Trans>
|
- </Text>
|
||||||
</Text>
|
|
||||||
- <Button
|
- <Button
|
||||||
- type="inverted"
|
- type="inverted"
|
||||||
- style={[styles.emptyBtn, s.mt10]}
|
- style={[styles.emptyBtn, s.mt10]}
|
||||||
@@ -218,7 +214,7 @@ index e3c84d782..efb55d406 100644
|
|||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
@@ -93,13 +37,4 @@ const styles = StyleSheet.create({
|
@@ -93,13 +37,4 @@
|
||||||
width: '100%',
|
width: '100%',
|
||||||
maxWidth: 460,
|
maxWidth: 460,
|
||||||
},
|
},
|
||||||
@@ -232,11 +228,9 @@ index e3c84d782..efb55d406 100644
|
|||||||
- borderRadius: 30,
|
- borderRadius: 30,
|
||||||
- },
|
- },
|
||||||
})
|
})
|
||||||
diff --git a/src/view/com/posts/PostFeed.tsx b/src/view/com/posts/PostFeed.tsx
|
|
||||||
index 4f25468c9..a72a10b80 100644
|
|
||||||
--- a/src/view/com/posts/PostFeed.tsx
|
--- a/src/view/com/posts/PostFeed.tsx
|
||||||
+++ b/src/view/com/posts/PostFeed.tsx
|
+++ b/src/view/com/posts/PostFeed.tsx
|
||||||
@@ -766,7 +766,7 @@ let PostFeed = ({
|
@@ -765,7 +765,7 @@
|
||||||
} else if (row.type === 'feedShutdownMsg') {
|
} else if (row.type === 'feedShutdownMsg') {
|
||||||
return <FeedShutdownMsg feedUri={feedUriOrActorDid} />
|
return <FeedShutdownMsg feedUri={feedUriOrActorDid} />
|
||||||
} else if (row.type === 'interstitialFollows') {
|
} else if (row.type === 'interstitialFollows') {
|
||||||
|
|||||||
@@ -7,22 +7,21 @@
|
|||||||
import {
|
import {
|
||||||
type AppBskyActorDefs,
|
type AppBskyActorDefs,
|
||||||
moderateProfile,
|
moderateProfile,
|
||||||
@@ -9,8 +9,10 @@
|
@@ -11,7 +11,10 @@
|
||||||
} from '@atproto/api'
|
|
||||||
import {msg, Trans} from '@lingui/macro'
|
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
+import {useQuery} from '@tanstack/react-query'
|
import {Trans} from '@lingui/react/macro'
|
||||||
|
|
||||||
|
+import {useQuery} from '@tanstack/react-query'
|
||||||
|
+
|
||||||
import {useHaptics} from '#/lib/haptics'
|
import {useHaptics} from '#/lib/haptics'
|
||||||
+import {useOpenLink} from '#/lib/hooks/useOpenLink'
|
+import {useOpenLink} from '#/lib/hooks/useOpenLink'
|
||||||
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
||||||
import {sanitizeHandle} from '#/lib/strings/handles'
|
import {sanitizeHandle} from '#/lib/strings/handles'
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
@@ -45,6 +47,103 @@
|
@@ -47,6 +50,103 @@
|
||||||
import {ProfileHeaderMetrics} from './Metrics'
|
|
||||||
import {ProfileHeaderShell} from './Shell'
|
import {ProfileHeaderShell} from './Shell'
|
||||||
import {ProfileHeaderSuggestedFollows} from './SuggestedFollows'
|
import {ProfileHeaderSuggestedFollows} from './SuggestedFollows'
|
||||||
+
|
|
||||||
+const SERVICE_FAVICONS: Record<string, any> = {
|
+const SERVICE_FAVICONS: Record<string, any> = {
|
||||||
+ 'syui.ai': require('../../../../assets/favicons/syui.ai.png'),
|
+ 'syui.ai': require('../../../../assets/favicons/syui.ai.png'),
|
||||||
+ 'bsky.app': require('../../../../assets/favicons/bsky.app.png'),
|
+ 'bsky.app': require('../../../../assets/favicons/bsky.app.png'),
|
||||||
@@ -119,10 +118,11 @@
|
|||||||
+ </View>
|
+ </View>
|
||||||
+ )
|
+ )
|
||||||
+}
|
+}
|
||||||
|
+
|
||||||
interface Props {
|
interface Props {
|
||||||
profile: AppBskyActorDefs.ProfileViewDetailed
|
profile: AppBskyActorDefs.ProfileViewDetailed
|
||||||
@@ -151,6 +250,7 @@
|
descriptionRT: RichTextAPI | null
|
||||||
|
@@ -152,6 +252,7 @@
|
||||||
{!isPlaceholderProfile && !isBlockedUser && (
|
{!isPlaceholderProfile && !isBlockedUser && (
|
||||||
<View style={a.gap_md}>
|
<View style={a.gap_md}>
|
||||||
<ProfileHeaderMetrics profile={profile} />
|
<ProfileHeaderMetrics profile={profile} />
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
--- a/src/screens/Profile/Header/ProfileHeaderStandard.tsx
|
--- a/src/screens/Profile/Header/ProfileHeaderStandard.tsx
|
||||||
+++ b/src/screens/Profile/Header/ProfileHeaderStandard.tsx
|
+++ b/src/screens/Profile/Header/ProfileHeaderStandard.tsx
|
||||||
@@ -46,6 +46,7 @@
|
@@ -48,6 +48,7 @@
|
||||||
import {ProfileHeaderHandle} from './Handle'
|
import {ProfileHeaderHandle} from './Handle'
|
||||||
import {ProfileHeaderMetrics} from './Metrics'
|
import {ProfileHeaderMetrics} from './Metrics'
|
||||||
import {ProfileHeaderShell} from './Shell'
|
import {ProfileHeaderShell} from './Shell'
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
import {ProfileHeaderSuggestedFollows} from './SuggestedFollows'
|
import {ProfileHeaderSuggestedFollows} from './SuggestedFollows'
|
||||||
|
|
||||||
const SERVICE_FAVICONS: Record<string, any> = {
|
const SERVICE_FAVICONS: Record<string, any> = {
|
||||||
@@ -251,6 +252,7 @@
|
@@ -253,6 +254,7 @@
|
||||||
<View style={a.gap_md}>
|
<View style={a.gap_md}>
|
||||||
<ProfileHeaderMetrics profile={profile} />
|
<ProfileHeaderMetrics profile={profile} />
|
||||||
<ProfileServiceLinks profile={profile} />
|
<ProfileServiceLinks profile={profile} />
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
import Animated, {FadeIn, FadeOut} from 'react-native-reanimated'
|
import Animated, {FadeIn, FadeOut} from 'react-native-reanimated'
|
||||||
import {Image} from 'expo-image'
|
import {Image} from 'expo-image'
|
||||||
+import {useVideoPlayer, VideoView} from 'expo-video'
|
+import {useVideoPlayer, VideoView} from 'expo-video'
|
||||||
import {msg, Trans} from '@lingui/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
import {Trans} from '@lingui/react/macro'
|
||||||
@@ -14,10 +15,13 @@
|
@@ -15,10 +16,13 @@
|
||||||
import splashImagePointer from '../../../../assets/splash/illustration-mobile.png'
|
import splashImagePointer from '../../../../assets/splash/illustration-mobile.png'
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import darkSplashImagePointer from '../../../../assets/splash/illustration-mobile-dark.png'
|
import darkSplashImagePointer from '../../../../assets/splash/illustration-mobile-dark.png'
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
export const SplashScreen = ({
|
export const SplashScreen = ({
|
||||||
onPressSignin,
|
onPressSignin,
|
||||||
@@ -52,13 +56,30 @@
|
@@ -53,13 +57,30 @@
|
||||||
}
|
}
|
||||||
}, [t, isDarkMode])
|
}, [t, isDarkMode])
|
||||||
|
|
||||||
|
|||||||
40
ios/patching/045-social-app-ios-composer-cancel.patch
Normal file
40
ios/patching/045-social-app-ios-composer-cancel.patch
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
--- a/src/view/com/composer/Composer.tsx
|
||||||
|
+++ b/src/view/com/composer/Composer.tsx
|
||||||
|
@@ -717,16 +717,7 @@
|
||||||
|
post.shortenedGraphemeLength > 0 || post.embed.media || post.embed.link,
|
||||||
|
)
|
||||||
|
|
||||||
|
- // Show discard prompt if there's content AND either:
|
||||||
|
- // - No draft is loaded (new composition)
|
||||||
|
- // - Draft is loaded but has been modified
|
||||||
|
- if (hasContent && (!composerState.draftId || composerState.isDirty)) {
|
||||||
|
- closeAllDialogs()
|
||||||
|
- Keyboard.dismiss()
|
||||||
|
- discardPromptControl.open()
|
||||||
|
- } else {
|
||||||
|
- onClose()
|
||||||
|
- }
|
||||||
|
+ onClose()
|
||||||
|
}, [
|
||||||
|
thread,
|
||||||
|
composerState.draftId,
|
||||||
|
@@ -1551,18 +1542,7 @@
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
- {!isReply && (
|
||||||
|
- <DraftsButton
|
||||||
|
- onSelectDraft={onSelectDraft}
|
||||||
|
- onSaveDraft={onSaveDraft}
|
||||||
|
- onDiscard={onDiscard}
|
||||||
|
- isEmpty={isEmpty}
|
||||||
|
- isDirty={isDirty}
|
||||||
|
- isEditingDraft={isEditingDraft}
|
||||||
|
- canSaveDraft={canSaveDraft}
|
||||||
|
- textLength={textLength}
|
||||||
|
- />
|
||||||
|
- )}
|
||||||
|
+ {/* DraftsButton removed */}
|
||||||
|
<Button
|
||||||
|
testID="composerPublishBtn"
|
||||||
|
label={
|
||||||
@@ -52,6 +52,7 @@ PATCH_FILES_IOS=(
|
|||||||
"042-social-app-ios-at-links.patch"
|
"042-social-app-ios-at-links.patch"
|
||||||
"043-social-app-ios-rightnav-links.patch"
|
"043-social-app-ios-rightnav-links.patch"
|
||||||
"044-social-app-ios-splash-video.patch"
|
"044-social-app-ios-splash-video.patch"
|
||||||
|
"045-social-app-ios-composer-cancel.patch"
|
||||||
)
|
)
|
||||||
|
|
||||||
function ios-env() {
|
function ios-env() {
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
--- a/services/pds/Dockerfile
|
|
||||||
+++ b/services/pds/Dockerfile
|
|
||||||
@@ -46,6 +46,7 @@
|
|
||||||
COPY ./packages/ws-client ./packages/ws-client
|
|
||||||
COPY ./packages/xrpc-server ./packages/xrpc-server
|
|
||||||
COPY ./packages/xrpc ./packages/xrpc
|
|
||||||
+COPY ./services/pds ./services/pds
|
|
||||||
|
|
||||||
# install all deps
|
|
||||||
RUN PUPPETEER_SKIP_DOWNLOAD=true pnpm install --frozen-lockfile
|
|
||||||
--- a/services/bsky/Dockerfile
|
|
||||||
+++ b/services/bsky/Dockerfile
|
|
||||||
@@ -45,6 +45,7 @@
|
|
||||||
COPY ./packages/ws-client ./packages/ws-client
|
|
||||||
COPY ./packages/xrpc-server ./packages/xrpc-server
|
|
||||||
COPY ./packages/xrpc ./packages/xrpc
|
|
||||||
+COPY ./services/bsky ./services/bsky
|
|
||||||
|
|
||||||
# install all deps
|
|
||||||
RUN PUPPETEER_SKIP_DOWNLOAD=true pnpm install --frozen-lockfile
|
|
||||||
--- a/services/ozone/Dockerfile
|
|
||||||
+++ b/services/ozone/Dockerfile
|
|
||||||
@@ -46,6 +46,7 @@
|
|
||||||
COPY ./packages/ws-client ./packages/ws-client
|
|
||||||
COPY ./packages/xrpc ./packages/xrpc
|
|
||||||
COPY ./packages/xrpc-server ./packages/xrpc-server
|
|
||||||
+COPY ./services/ozone ./services/ozone
|
|
||||||
|
|
||||||
# install all deps
|
|
||||||
RUN PUPPETEER_SKIP_DOWNLOAD=true pnpm install --frozen-lockfile
|
|
||||||
Reference in New Issue
Block a user