run linter
parent
a3c09f9f86
commit
1512b5cf68
|
@ -1,54 +1,54 @@
|
||||||
import 'react-native-url-polyfill/auto'
|
import 'react-native-url-polyfill/auto'
|
||||||
import 'lib/sentry' // must be near top
|
import 'lib/sentry' // must be near top
|
||||||
|
|
||||||
import React, {useState, useEffect} from 'react'
|
|
||||||
import {RootSiblingParent} from 'react-native-root-siblings'
|
|
||||||
import * as SplashScreen from 'expo-splash-screen'
|
|
||||||
import {GestureHandlerRootView} from 'react-native-gesture-handler'
|
|
||||||
import {QueryClientProvider} from '@tanstack/react-query'
|
|
||||||
import {
|
|
||||||
SafeAreaProvider,
|
|
||||||
initialWindowMetrics,
|
|
||||||
} from 'react-native-safe-area-context'
|
|
||||||
|
|
||||||
import 'view/icons'
|
import 'view/icons'
|
||||||
|
|
||||||
import {ThemeProvider as Alf} from '#/alf'
|
import {msg} from '@lingui/macro'
|
||||||
import {useColorModeTheme} from '#/alf/util/useColorModeTheme'
|
import {useLingui} from '@lingui/react'
|
||||||
import {init as initPersistedState} from '#/state/persisted'
|
import {QueryClientProvider} from '@tanstack/react-query'
|
||||||
import {listenSessionDropped} from './state/events'
|
import * as SplashScreen from 'expo-splash-screen'
|
||||||
import {ThemeProvider} from 'lib/ThemeContext'
|
import {StatusBar} from 'expo-status-bar'
|
||||||
import {s} from 'lib/styles'
|
import {useIntentHandler} from 'lib/hooks/useIntentHandler'
|
||||||
import {Shell} from 'view/shell'
|
|
||||||
import * as notifications from 'lib/notifications/notifications'
|
import * as notifications from 'lib/notifications/notifications'
|
||||||
import * as Toast from 'view/com/util/Toast'
|
|
||||||
import {queryClient} from 'lib/react-query'
|
import {queryClient} from 'lib/react-query'
|
||||||
import {TestCtrls} from 'view/com/testing/TestCtrls'
|
import {s} from 'lib/styles'
|
||||||
import {Provider as ShellStateProvider} from 'state/shell'
|
import {ThemeProvider} from 'lib/ThemeContext'
|
||||||
import {Provider as ModalStateProvider} from 'state/modals'
|
import {isAndroid} from 'platform/detection'
|
||||||
|
import React, {useEffect, useState} from 'react'
|
||||||
|
import {GestureHandlerRootView} from 'react-native-gesture-handler'
|
||||||
|
import {RootSiblingParent} from 'react-native-root-siblings'
|
||||||
|
import {
|
||||||
|
initialWindowMetrics,
|
||||||
|
SafeAreaProvider,
|
||||||
|
} from 'react-native-safe-area-context'
|
||||||
import {Provider as DialogStateProvider} from 'state/dialogs'
|
import {Provider as DialogStateProvider} from 'state/dialogs'
|
||||||
import {Provider as LightboxStateProvider} from 'state/lightbox'
|
|
||||||
import {Provider as MutedThreadsProvider} from 'state/muted-threads'
|
|
||||||
import {Provider as InvitesStateProvider} from 'state/invites'
|
import {Provider as InvitesStateProvider} from 'state/invites'
|
||||||
|
import {Provider as LightboxStateProvider} from 'state/lightbox'
|
||||||
|
import {Provider as ModalStateProvider} from 'state/modals'
|
||||||
|
import {Provider as MutedThreadsProvider} from 'state/muted-threads'
|
||||||
import {Provider as PrefsStateProvider} from 'state/preferences'
|
import {Provider as PrefsStateProvider} from 'state/preferences'
|
||||||
import {Provider as LoggedOutViewProvider} from 'state/shell/logged-out'
|
import {Provider as UnreadNotifsProvider} from 'state/queries/notifications/unread'
|
||||||
import {Provider as SelectedFeedProvider} from 'state/shell/selected-feed'
|
|
||||||
import I18nProvider from './locale/i18nProvider'
|
|
||||||
import {
|
import {
|
||||||
Provider as SessionProvider,
|
Provider as SessionProvider,
|
||||||
useSession,
|
useSession,
|
||||||
useSessionApi,
|
useSessionApi,
|
||||||
} from 'state/session'
|
} from 'state/session'
|
||||||
import {Provider as UnreadNotifsProvider} from 'state/queries/notifications/unread'
|
import {Provider as ShellStateProvider} from 'state/shell'
|
||||||
import * as persisted from '#/state/persisted'
|
import {Provider as LoggedOutViewProvider} from 'state/shell/logged-out'
|
||||||
import {Splash} from '#/Splash'
|
import {Provider as SelectedFeedProvider} from 'state/shell/selected-feed'
|
||||||
|
import {TestCtrls} from 'view/com/testing/TestCtrls'
|
||||||
|
import * as Toast from 'view/com/util/Toast'
|
||||||
|
import {Shell} from 'view/shell'
|
||||||
|
|
||||||
|
import {ThemeProvider as Alf} from '#/alf'
|
||||||
|
import {useColorModeTheme} from '#/alf/util/useColorModeTheme'
|
||||||
import {Provider as PortalProvider} from '#/components/Portal'
|
import {Provider as PortalProvider} from '#/components/Portal'
|
||||||
import {Provider as StatsigProvider} from '#/lib/statsig/statsig'
|
import {Provider as StatsigProvider} from '#/lib/statsig/statsig'
|
||||||
import {msg} from '@lingui/macro'
|
import {Splash} from '#/Splash'
|
||||||
import {useLingui} from '@lingui/react'
|
import {init as initPersistedState} from '#/state/persisted'
|
||||||
import {useIntentHandler} from 'lib/hooks/useIntentHandler'
|
import * as persisted from '#/state/persisted'
|
||||||
import {StatusBar} from 'expo-status-bar'
|
|
||||||
import {isAndroid} from 'platform/detection'
|
import I18nProvider from './locale/i18nProvider'
|
||||||
|
import {listenSessionDropped} from './state/events'
|
||||||
|
|
||||||
SplashScreen.preventAutoHideAsync()
|
SplashScreen.preventAutoHideAsync()
|
||||||
|
|
||||||
|
|
|
@ -1,39 +1,39 @@
|
||||||
import 'lib/sentry' // must be near top
|
import 'lib/sentry' // must be near top
|
||||||
|
|
||||||
import React, {useState, useEffect} from 'react'
|
|
||||||
import {QueryClientProvider} from '@tanstack/react-query'
|
|
||||||
import {SafeAreaProvider} from 'react-native-safe-area-context'
|
|
||||||
import {RootSiblingParent} from 'react-native-root-siblings'
|
|
||||||
|
|
||||||
import 'view/icons'
|
import 'view/icons'
|
||||||
|
|
||||||
import {ThemeProvider as Alf} from '#/alf'
|
import {QueryClientProvider} from '@tanstack/react-query'
|
||||||
import {useColorModeTheme} from '#/alf/util/useColorModeTheme'
|
import {useIntentHandler} from 'lib/hooks/useIntentHandler'
|
||||||
import {init as initPersistedState} from '#/state/persisted'
|
|
||||||
import {Shell} from 'view/shell/index'
|
|
||||||
import {ToastContainer} from 'view/com/util/Toast.web'
|
|
||||||
import {ThemeProvider} from 'lib/ThemeContext'
|
|
||||||
import {queryClient} from 'lib/react-query'
|
import {queryClient} from 'lib/react-query'
|
||||||
import {Provider as ShellStateProvider} from 'state/shell'
|
import {ThemeProvider} from 'lib/ThemeContext'
|
||||||
import {Provider as ModalStateProvider} from 'state/modals'
|
import React, {useEffect, useState} from 'react'
|
||||||
|
import {RootSiblingParent} from 'react-native-root-siblings'
|
||||||
|
import {SafeAreaProvider} from 'react-native-safe-area-context'
|
||||||
import {Provider as DialogStateProvider} from 'state/dialogs'
|
import {Provider as DialogStateProvider} from 'state/dialogs'
|
||||||
import {Provider as LightboxStateProvider} from 'state/lightbox'
|
|
||||||
import {Provider as MutedThreadsProvider} from 'state/muted-threads'
|
|
||||||
import {Provider as InvitesStateProvider} from 'state/invites'
|
import {Provider as InvitesStateProvider} from 'state/invites'
|
||||||
|
import {Provider as LightboxStateProvider} from 'state/lightbox'
|
||||||
|
import {Provider as ModalStateProvider} from 'state/modals'
|
||||||
|
import {Provider as MutedThreadsProvider} from 'state/muted-threads'
|
||||||
import {Provider as PrefsStateProvider} from 'state/preferences'
|
import {Provider as PrefsStateProvider} from 'state/preferences'
|
||||||
import {Provider as LoggedOutViewProvider} from 'state/shell/logged-out'
|
import {Provider as UnreadNotifsProvider} from 'state/queries/notifications/unread'
|
||||||
import {Provider as SelectedFeedProvider} from 'state/shell/selected-feed'
|
|
||||||
import I18nProvider from './locale/i18nProvider'
|
|
||||||
import {
|
import {
|
||||||
Provider as SessionProvider,
|
Provider as SessionProvider,
|
||||||
useSession,
|
useSession,
|
||||||
useSessionApi,
|
useSessionApi,
|
||||||
} from 'state/session'
|
} from 'state/session'
|
||||||
import {Provider as UnreadNotifsProvider} from 'state/queries/notifications/unread'
|
import {Provider as ShellStateProvider} from 'state/shell'
|
||||||
import * as persisted from '#/state/persisted'
|
import {Provider as LoggedOutViewProvider} from 'state/shell/logged-out'
|
||||||
|
import {Provider as SelectedFeedProvider} from 'state/shell/selected-feed'
|
||||||
|
import {ToastContainer} from 'view/com/util/Toast.web'
|
||||||
|
import {Shell} from 'view/shell/index'
|
||||||
|
|
||||||
|
import {ThemeProvider as Alf} from '#/alf'
|
||||||
|
import {useColorModeTheme} from '#/alf/util/useColorModeTheme'
|
||||||
import {Provider as PortalProvider} from '#/components/Portal'
|
import {Provider as PortalProvider} from '#/components/Portal'
|
||||||
import {Provider as StatsigProvider} from '#/lib/statsig/statsig'
|
import {Provider as StatsigProvider} from '#/lib/statsig/statsig'
|
||||||
import {useIntentHandler} from 'lib/hooks/useIntentHandler'
|
import {init as initPersistedState} from '#/state/persisted'
|
||||||
|
import * as persisted from '#/state/persisted'
|
||||||
|
|
||||||
|
import I18nProvider from './locale/i18nProvider'
|
||||||
|
|
||||||
function InnerApp() {
|
function InnerApp() {
|
||||||
const {isInitialLoad, currentAccount} = useSession()
|
const {isInitialLoad, currentAccount} = useSession()
|
||||||
|
|
|
@ -1,84 +1,85 @@
|
||||||
import * as React from 'react'
|
import {i18n, MessageDescriptor} from '@lingui/core'
|
||||||
import {
|
import {msg} from '@lingui/macro'
|
||||||
NavigationContainer,
|
|
||||||
createNavigationContainerRef,
|
|
||||||
CommonActions,
|
|
||||||
StackActions,
|
|
||||||
DefaultTheme,
|
|
||||||
DarkTheme,
|
|
||||||
} from '@react-navigation/native'
|
|
||||||
import {
|
import {
|
||||||
BottomTabBarProps,
|
BottomTabBarProps,
|
||||||
createBottomTabNavigator,
|
createBottomTabNavigator,
|
||||||
} from '@react-navigation/bottom-tabs'
|
} from '@react-navigation/bottom-tabs'
|
||||||
import {
|
import {
|
||||||
HomeTabNavigatorParams,
|
CommonActions,
|
||||||
SearchTabNavigatorParams,
|
createNavigationContainerRef,
|
||||||
FeedsTabNavigatorParams,
|
DarkTheme,
|
||||||
NotificationsTabNavigatorParams,
|
DefaultTheme,
|
||||||
FlatNavigatorParams,
|
NavigationContainer,
|
||||||
AllNavigatorParams,
|
StackActions,
|
||||||
MyProfileTabNavigatorParams,
|
} from '@react-navigation/native'
|
||||||
BottomTabNavigatorParams,
|
|
||||||
} from 'lib/routes/types'
|
|
||||||
import {BottomBar} from './view/shell/bottom-bar/BottomBar'
|
|
||||||
import {buildStateObject} from 'lib/routes/helpers'
|
|
||||||
import {State, RouteParams} from 'lib/routes/types'
|
|
||||||
import {isAndroid, isNative} from 'platform/detection'
|
|
||||||
import {useColorSchemeStyle} from 'lib/hooks/useColorSchemeStyle'
|
|
||||||
import {router} from './routes'
|
|
||||||
import {usePalette} from 'lib/hooks/usePalette'
|
|
||||||
import {bskyTitle} from 'lib/strings/headings'
|
|
||||||
import {JSX} from 'react/jsx-runtime'
|
|
||||||
import {timeout} from 'lib/async/timeout'
|
import {timeout} from 'lib/async/timeout'
|
||||||
import {useUnreadNotifications} from './state/queries/notifications/unread'
|
import {useColorSchemeStyle} from 'lib/hooks/useColorSchemeStyle'
|
||||||
import {useSession} from './state/session'
|
import {usePalette} from 'lib/hooks/usePalette'
|
||||||
import {useModalControls} from './state/modals'
|
import {buildStateObject} from 'lib/routes/helpers'
|
||||||
import {
|
import {
|
||||||
shouldRequestEmailConfirmation,
|
AllNavigatorParams,
|
||||||
setEmailConfirmationRequested,
|
BottomTabNavigatorParams,
|
||||||
} from './state/shell/reminders'
|
FeedsTabNavigatorParams,
|
||||||
|
FlatNavigatorParams,
|
||||||
|
HomeTabNavigatorParams,
|
||||||
|
MyProfileTabNavigatorParams,
|
||||||
|
NotificationsTabNavigatorParams,
|
||||||
|
SearchTabNavigatorParams,
|
||||||
|
} from 'lib/routes/types'
|
||||||
|
import {RouteParams, State} from 'lib/routes/types'
|
||||||
|
import {bskyTitle} from 'lib/strings/headings'
|
||||||
|
import {isAndroid, isNative} from 'platform/detection'
|
||||||
|
import * as React from 'react'
|
||||||
|
import {JSX} from 'react/jsx-runtime'
|
||||||
|
import {AppPasswords} from 'view/screens/AppPasswords'
|
||||||
|
import {ModerationBlockedAccounts} from 'view/screens/ModerationBlockedAccounts'
|
||||||
|
import {ModerationMutedAccounts} from 'view/screens/ModerationMutedAccounts'
|
||||||
|
import {PreferencesFollowingFeed} from 'view/screens/PreferencesFollowingFeed'
|
||||||
|
import {PreferencesThreads} from 'view/screens/PreferencesThreads'
|
||||||
|
import {SavedFeeds} from 'view/screens/SavedFeeds'
|
||||||
|
|
||||||
|
import HashtagScreen from '#/screens/Hashtag'
|
||||||
|
import {PreferencesExternalEmbeds} from '#/view/screens/PreferencesExternalEmbeds'
|
||||||
|
|
||||||
import {init as initAnalytics} from './lib/analytics/analytics'
|
import {init as initAnalytics} from './lib/analytics/analytics'
|
||||||
import {useWebScrollRestoration} from './lib/hooks/useWebScrollRestoration'
|
import {useWebScrollRestoration} from './lib/hooks/useWebScrollRestoration'
|
||||||
|
import {logEvent} from './lib/statsig/statsig'
|
||||||
import {HomeScreen} from './view/screens/Home'
|
import {router} from './routes'
|
||||||
import {SearchScreen} from './view/screens/Search'
|
import {useModalControls} from './state/modals'
|
||||||
|
import {useUnreadNotifications} from './state/queries/notifications/unread'
|
||||||
|
import {useSession} from './state/session'
|
||||||
|
import {
|
||||||
|
setEmailConfirmationRequested,
|
||||||
|
shouldRequestEmailConfirmation,
|
||||||
|
} from './state/shell/reminders'
|
||||||
|
import {CommunityGuidelinesScreen} from './view/screens/CommunityGuidelines'
|
||||||
|
import {CopyrightPolicyScreen} from './view/screens/CopyrightPolicy'
|
||||||
import {FeedsScreen} from './view/screens/Feeds'
|
import {FeedsScreen} from './view/screens/Feeds'
|
||||||
import {NotificationsScreen} from './view/screens/Notifications'
|
import {HomeScreen} from './view/screens/Home'
|
||||||
|
import {LanguageSettingsScreen} from './view/screens/LanguageSettings'
|
||||||
import {ListsScreen} from './view/screens/Lists'
|
import {ListsScreen} from './view/screens/Lists'
|
||||||
|
import {LogScreen} from './view/screens/Log'
|
||||||
import {ModerationScreen} from './view/screens/Moderation'
|
import {ModerationScreen} from './view/screens/Moderation'
|
||||||
import {ModerationModlistsScreen} from './view/screens/ModerationModlists'
|
import {ModerationModlistsScreen} from './view/screens/ModerationModlists'
|
||||||
import {NotFoundScreen} from './view/screens/NotFound'
|
import {NotFoundScreen} from './view/screens/NotFound'
|
||||||
import {SettingsScreen} from './view/screens/Settings'
|
import {NotificationsScreen} from './view/screens/Notifications'
|
||||||
import {LanguageSettingsScreen} from './view/screens/LanguageSettings'
|
|
||||||
import {ProfileScreen} from './view/screens/Profile'
|
|
||||||
import {ProfileFollowersScreen} from './view/screens/ProfileFollowers'
|
|
||||||
import {ProfileFollowsScreen} from './view/screens/ProfileFollows'
|
|
||||||
import {ProfileFeedScreen} from './view/screens/ProfileFeed'
|
|
||||||
import {ProfileFeedLikedByScreen} from './view/screens/ProfileFeedLikedBy'
|
|
||||||
import {ProfileListScreen} from './view/screens/ProfileList'
|
|
||||||
import {PostThreadScreen} from './view/screens/PostThread'
|
|
||||||
import {PostLikedByScreen} from './view/screens/PostLikedBy'
|
import {PostLikedByScreen} from './view/screens/PostLikedBy'
|
||||||
import {PostRepostedByScreen} from './view/screens/PostRepostedBy'
|
import {PostRepostedByScreen} from './view/screens/PostRepostedBy'
|
||||||
import {Storybook} from './view/screens/Storybook'
|
import {PostThreadScreen} from './view/screens/PostThread'
|
||||||
import {LogScreen} from './view/screens/Log'
|
|
||||||
import {SupportScreen} from './view/screens/Support'
|
|
||||||
import {PrivacyPolicyScreen} from './view/screens/PrivacyPolicy'
|
import {PrivacyPolicyScreen} from './view/screens/PrivacyPolicy'
|
||||||
|
import {ProfileScreen} from './view/screens/Profile'
|
||||||
|
import {ProfileFeedScreen} from './view/screens/ProfileFeed'
|
||||||
|
import {ProfileFeedLikedByScreen} from './view/screens/ProfileFeedLikedBy'
|
||||||
|
import {ProfileFollowersScreen} from './view/screens/ProfileFollowers'
|
||||||
|
import {ProfileFollowsScreen} from './view/screens/ProfileFollows'
|
||||||
|
import {ProfileListScreen} from './view/screens/ProfileList'
|
||||||
|
import {SearchScreen} from './view/screens/Search'
|
||||||
|
import {SettingsScreen} from './view/screens/Settings'
|
||||||
|
import {Storybook} from './view/screens/Storybook'
|
||||||
|
import {SupportScreen} from './view/screens/Support'
|
||||||
import {TermsOfServiceScreen} from './view/screens/TermsOfService'
|
import {TermsOfServiceScreen} from './view/screens/TermsOfService'
|
||||||
import {CommunityGuidelinesScreen} from './view/screens/CommunityGuidelines'
|
import {BottomBar} from './view/shell/bottom-bar/BottomBar'
|
||||||
import {CopyrightPolicyScreen} from './view/screens/CopyrightPolicy'
|
|
||||||
import {AppPasswords} from 'view/screens/AppPasswords'
|
|
||||||
import {ModerationMutedAccounts} from 'view/screens/ModerationMutedAccounts'
|
|
||||||
import {ModerationBlockedAccounts} from 'view/screens/ModerationBlockedAccounts'
|
|
||||||
import {SavedFeeds} from 'view/screens/SavedFeeds'
|
|
||||||
import {PreferencesFollowingFeed} from 'view/screens/PreferencesFollowingFeed'
|
|
||||||
import {PreferencesThreads} from 'view/screens/PreferencesThreads'
|
|
||||||
import {PreferencesExternalEmbeds} from '#/view/screens/PreferencesExternalEmbeds'
|
|
||||||
import {createNativeStackNavigatorWithAuth} from './view/shell/createNativeStackNavigatorWithAuth'
|
import {createNativeStackNavigatorWithAuth} from './view/shell/createNativeStackNavigatorWithAuth'
|
||||||
import {msg} from '@lingui/macro'
|
|
||||||
import {i18n, MessageDescriptor} from '@lingui/core'
|
|
||||||
import HashtagScreen from '#/screens/Hashtag'
|
|
||||||
import {logEvent} from './lib/statsig/statsig'
|
|
||||||
|
|
||||||
const navigationRef = createNavigationContainerRef<AllNavigatorParams>()
|
const navigationRef = createNavigationContainerRef<AllNavigatorParams>()
|
||||||
|
|
||||||
|
@ -670,11 +671,11 @@ function logModuleInitTime() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
export {
|
||||||
navigate,
|
|
||||||
resetToTab,
|
|
||||||
reset,
|
|
||||||
handleLink,
|
|
||||||
TabsNavigator,
|
|
||||||
FlatNavigator,
|
FlatNavigator,
|
||||||
|
handleLink,
|
||||||
|
navigate,
|
||||||
|
reset,
|
||||||
|
resetToTab,
|
||||||
RoutesContainer,
|
RoutesContainer,
|
||||||
|
TabsNavigator,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
|
import MaskedView from '@react-native-masked-view/masked-view'
|
||||||
|
import {Image} from 'expo-image'
|
||||||
|
import * as SplashScreen from 'expo-splash-screen'
|
||||||
import React, {useCallback, useEffect} from 'react'
|
import React, {useCallback, useEffect} from 'react'
|
||||||
import {
|
import {
|
||||||
View,
|
|
||||||
StyleSheet,
|
|
||||||
Image as RNImage,
|
|
||||||
AccessibilityInfo,
|
AccessibilityInfo,
|
||||||
|
Image as RNImage,
|
||||||
|
StyleSheet,
|
||||||
useColorScheme,
|
useColorScheme,
|
||||||
|
View,
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import * as SplashScreen from 'expo-splash-screen'
|
|
||||||
import {Image} from 'expo-image'
|
|
||||||
import Animated, {
|
import Animated, {
|
||||||
|
Easing,
|
||||||
interpolate,
|
interpolate,
|
||||||
runOnJS,
|
runOnJS,
|
||||||
useAnimatedStyle,
|
useAnimatedStyle,
|
||||||
useSharedValue,
|
useSharedValue,
|
||||||
withTiming,
|
withTiming,
|
||||||
Easing,
|
|
||||||
} from 'react-native-reanimated'
|
} from 'react-native-reanimated'
|
||||||
import MaskedView from '@react-native-masked-view/masked-view'
|
|
||||||
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
||||||
import Svg, {Path, SvgProps} from 'react-native-svg'
|
import Svg, {Path, SvgProps} from 'react-native-svg'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {web, native} from '#/alf/util/platform'
|
|
||||||
import * as tokens from '#/alf/tokens'
|
import * as tokens from '#/alf/tokens'
|
||||||
|
import {native, web} from '#/alf/util/platform'
|
||||||
|
|
||||||
export const atoms = {
|
export const atoms = {
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {Dimensions} from 'react-native'
|
import {Dimensions} from 'react-native'
|
||||||
|
|
||||||
import * as themes from '#/alf/themes'
|
import * as themes from '#/alf/themes'
|
||||||
|
|
||||||
export * from '#/alf/types'
|
|
||||||
export * as tokens from '#/alf/tokens'
|
|
||||||
export {atoms} from '#/alf/atoms'
|
export {atoms} from '#/alf/atoms'
|
||||||
export * from '#/alf/util/platform'
|
export * as tokens from '#/alf/tokens'
|
||||||
|
export * from '#/alf/types'
|
||||||
export * from '#/alf/util/flatten'
|
export * from '#/alf/util/flatten'
|
||||||
|
export * from '#/alf/util/platform'
|
||||||
|
|
||||||
type BreakpointName = keyof typeof breakpoints
|
type BreakpointName = keyof typeof breakpoints
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import {atoms} from '#/alf/atoms'
|
||||||
import * as tokens from '#/alf/tokens'
|
import * as tokens from '#/alf/tokens'
|
||||||
import type {Mutable} from '#/alf/types'
|
import type {Mutable} from '#/alf/types'
|
||||||
import {atoms} from '#/alf/atoms'
|
|
||||||
import {BLUE_HUE, GREEN_HUE, RED_HUE} from '#/alf/util/colorGeneration'
|
import {BLUE_HUE, GREEN_HUE, RED_HUE} from '#/alf/util/colorGeneration'
|
||||||
|
|
||||||
export type ThemeName = 'light' | 'dim' | 'dark'
|
export type ThemeName = 'light' | 'dim' | 'dark'
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import {
|
import {
|
||||||
BLUE_HUE,
|
BLUE_HUE,
|
||||||
RED_HUE,
|
|
||||||
GREEN_HUE,
|
|
||||||
generateScale,
|
generateScale,
|
||||||
|
GREEN_HUE,
|
||||||
|
RED_HUE,
|
||||||
} from '#/alf/util/colorGeneration'
|
} from '#/alf/util/colorGeneration'
|
||||||
|
|
||||||
export const scale = generateScale(6, 100)
|
export const scale = generateScale(6, 100)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {StyleProp, ViewStyle, TextStyle} from 'react-native'
|
import {StyleProp, TextStyle, ViewStyle} from 'react-native'
|
||||||
|
|
||||||
type LiteralToCommon<T extends PropertyKey> = T extends number
|
type LiteralToCommon<T extends PropertyKey> = T extends number
|
||||||
? number
|
? number
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
import * as SystemUI from 'expo-system-ui'
|
||||||
|
import {isWeb} from 'platform/detection'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {ColorSchemeName, useColorScheme} from 'react-native'
|
import {ColorSchemeName, useColorScheme} from 'react-native'
|
||||||
|
|
||||||
import {useThemePrefs} from 'state/shell'
|
import {useThemePrefs} from 'state/shell'
|
||||||
import {isWeb} from 'platform/detection'
|
|
||||||
import {ThemeName, light, dark, dim} from '#/alf/themes'
|
import {dark, dim, light, ThemeName} from '#/alf/themes'
|
||||||
import * as SystemUI from 'expo-system-ui'
|
|
||||||
|
|
||||||
export function useColorModeTheme(): ThemeName {
|
export function useColorModeTheme(): ThemeName {
|
||||||
const colorScheme = useColorScheme()
|
const colorScheme = useColorScheme()
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
Pressable,
|
|
||||||
Text,
|
|
||||||
PressableProps,
|
|
||||||
TextProps,
|
|
||||||
ViewStyle,
|
|
||||||
AccessibilityProps,
|
AccessibilityProps,
|
||||||
View,
|
Pressable,
|
||||||
TextStyle,
|
PressableProps,
|
||||||
StyleSheet,
|
|
||||||
StyleProp,
|
StyleProp,
|
||||||
|
StyleSheet,
|
||||||
|
Text,
|
||||||
|
TextProps,
|
||||||
|
TextStyle,
|
||||||
|
View,
|
||||||
|
ViewStyle,
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import LinearGradient from 'react-native-linear-gradient'
|
import LinearGradient from 'react-native-linear-gradient'
|
||||||
|
|
||||||
import {useTheme, atoms as a, tokens, android, flatten} from '#/alf'
|
import {android, atoms as a, flatten, tokens, useTheme} from '#/alf'
|
||||||
import {Props as SVGIconProps} from '#/components/icons/common'
|
import {Props as SVGIconProps} from '#/components/icons/common'
|
||||||
|
|
||||||
export type ButtonVariant = 'solid' | 'outline' | 'ghost' | 'gradient'
|
export type ButtonVariant = 'solid' | 'outline' | 'ghost' | 'gradient'
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
import {useDialogStateContext} from '#/state/dialogs'
|
|
||||||
import {
|
import {
|
||||||
DialogContextProps,
|
DialogContextProps,
|
||||||
DialogControlRefProps,
|
DialogControlRefProps,
|
||||||
DialogOuterProps,
|
DialogOuterProps,
|
||||||
} from '#/components/Dialog/types'
|
} from '#/components/Dialog/types'
|
||||||
|
import {useDialogStateContext} from '#/state/dialogs'
|
||||||
|
|
||||||
export const Context = React.createContext<DialogContextProps>({
|
export const Context = React.createContext<DialogContextProps>({
|
||||||
close: () => {},
|
close: () => {},
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import React, {useImperativeHandle} from 'react'
|
|
||||||
import {View, Dimensions, Keyboard, Pressable} from 'react-native'
|
|
||||||
import BottomSheet, {
|
import BottomSheet, {
|
||||||
BottomSheetBackdropProps,
|
BottomSheetBackdropProps,
|
||||||
BottomSheetScrollView,
|
BottomSheetScrollView,
|
||||||
|
@ -8,23 +6,24 @@ import BottomSheet, {
|
||||||
useBottomSheet,
|
useBottomSheet,
|
||||||
WINDOW_HEIGHT,
|
WINDOW_HEIGHT,
|
||||||
} from '@gorhom/bottom-sheet'
|
} from '@gorhom/bottom-sheet'
|
||||||
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
import React, {useImperativeHandle} from 'react'
|
||||||
|
import {Dimensions, Keyboard, Pressable, View} from 'react-native'
|
||||||
import Animated, {useAnimatedStyle} from 'react-native-reanimated'
|
import Animated, {useAnimatedStyle} from 'react-native-reanimated'
|
||||||
|
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
||||||
|
|
||||||
import {useTheme, atoms as a, flatten} from '#/alf'
|
import {atoms as a, flatten, useTheme} from '#/alf'
|
||||||
import {Portal} from '#/components/Portal'
|
import {Context} from '#/components/Dialog/context'
|
||||||
|
import {
|
||||||
|
DialogControlProps,
|
||||||
|
DialogInnerProps,
|
||||||
|
DialogOuterProps,
|
||||||
|
} from '#/components/Dialog/types'
|
||||||
import {createInput} from '#/components/forms/TextField'
|
import {createInput} from '#/components/forms/TextField'
|
||||||
|
import {Portal} from '#/components/Portal'
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
import {useDialogStateControlContext} from '#/state/dialogs'
|
import {useDialogStateControlContext} from '#/state/dialogs'
|
||||||
|
|
||||||
import {
|
export {useDialogContext, useDialogControl} from '#/components/Dialog/context'
|
||||||
DialogOuterProps,
|
|
||||||
DialogControlProps,
|
|
||||||
DialogInnerProps,
|
|
||||||
} from '#/components/Dialog/types'
|
|
||||||
import {Context} from '#/components/Dialog/context'
|
|
||||||
|
|
||||||
export {useDialogControl, useDialogContext} from '#/components/Dialog/context'
|
|
||||||
export * from '#/components/Dialog/types'
|
export * from '#/components/Dialog/types'
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
export const Input = createInput(BottomSheetTextInput)
|
export const Input = createInput(BottomSheetTextInput)
|
||||||
|
|
|
@ -1,20 +1,19 @@
|
||||||
import React, {useImperativeHandle} from 'react'
|
|
||||||
import {View, TouchableWithoutFeedback} from 'react-native'
|
|
||||||
import {FocusScope} from '@tamagui/focus-scope'
|
|
||||||
import Animated, {FadeInDown, FadeIn} from 'react-native-reanimated'
|
|
||||||
import {msg} from '@lingui/macro'
|
import {msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
import {FocusScope} from '@tamagui/focus-scope'
|
||||||
|
import React, {useImperativeHandle} from 'react'
|
||||||
|
import {TouchableWithoutFeedback, View} from 'react-native'
|
||||||
|
import Animated, {FadeIn, FadeInDown} from 'react-native-reanimated'
|
||||||
|
|
||||||
import {useTheme, atoms as a, useBreakpoints, web, flatten} from '#/alf'
|
import {atoms as a, flatten, useBreakpoints, useTheme, web} from '#/alf'
|
||||||
import {Portal} from '#/components/Portal'
|
|
||||||
|
|
||||||
import {DialogOuterProps, DialogInnerProps} from '#/components/Dialog/types'
|
|
||||||
import {Context} from '#/components/Dialog/context'
|
|
||||||
import {Button, ButtonIcon} from '#/components/Button'
|
import {Button, ButtonIcon} from '#/components/Button'
|
||||||
|
import {Context} from '#/components/Dialog/context'
|
||||||
|
import {DialogInnerProps, DialogOuterProps} from '#/components/Dialog/types'
|
||||||
import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times'
|
import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times'
|
||||||
|
import {Portal} from '#/components/Portal'
|
||||||
import {useDialogStateControlContext} from '#/state/dialogs'
|
import {useDialogStateControlContext} from '#/state/dialogs'
|
||||||
|
|
||||||
export {useDialogControl, useDialogContext} from '#/components/Dialog/context'
|
export {useDialogContext, useDialogControl} from '#/components/Dialog/context'
|
||||||
export * from '#/components/Dialog/types'
|
export * from '#/components/Dialog/types'
|
||||||
export {Input} from '#/components/forms/TextField'
|
export {Input} from '#/components/forms/TextField'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import {BottomSheetProps} from '@gorhom/bottom-sheet'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import type {AccessibilityProps} from 'react-native'
|
import type {AccessibilityProps} from 'react-native'
|
||||||
import {BottomSheetProps} from '@gorhom/bottom-sheet'
|
|
||||||
|
|
||||||
import {ViewStyleProp} from '#/alf'
|
import {ViewStyleProp} from '#/alf'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {atoms as a, useTheme, ViewStyleProp, flatten} from '#/alf'
|
|
||||||
|
import {atoms as a, flatten, useTheme, ViewStyleProp} from '#/alf'
|
||||||
|
|
||||||
export function Divider({style}: ViewStyleProp) {
|
export function Divider({style}: ViewStyleProp) {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
|
|
|
@ -2,14 +2,14 @@ import React from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
useTheme,
|
|
||||||
atoms as a,
|
atoms as a,
|
||||||
ViewStyleProp,
|
|
||||||
TextStyleProp,
|
|
||||||
flatten,
|
flatten,
|
||||||
|
TextStyleProp,
|
||||||
|
useTheme,
|
||||||
|
ViewStyleProp,
|
||||||
} from '#/alf'
|
} from '#/alf'
|
||||||
import {Growth_Stroke2_Corner0_Rounded as Growth} from '#/components/icons/Growth'
|
|
||||||
import {Props} from '#/components/icons/common'
|
import {Props} from '#/components/icons/common'
|
||||||
|
import {Growth_Stroke2_Corner0_Rounded as Growth} from '#/components/icons/Growth'
|
||||||
|
|
||||||
export function IconCircle({
|
export function IconCircle({
|
||||||
icon: Icon,
|
icon: Icon,
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
|
import {sanitizeUrl} from '@braintree/sanitize-url'
|
||||||
|
import {StackActions, useLinkProps} from '@react-navigation/native'
|
||||||
|
import {useNavigationDeduped} from 'lib/hooks/useNavigationDeduped'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {GestureResponderEvent} from 'react-native'
|
import {GestureResponderEvent} from 'react-native'
|
||||||
import {useLinkProps, StackActions} from '@react-navigation/native'
|
import {useOpenLink} from 'state/preferences/in-app-browser'
|
||||||
import {sanitizeUrl} from '@braintree/sanitize-url'
|
|
||||||
|
|
||||||
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
import {atoms as a, flatten, TextStyleProp, useTheme, web} from '#/alf'
|
||||||
import {isWeb} from '#/platform/detection'
|
|
||||||
import {useTheme, web, flatten, TextStyleProp, atoms as a} from '#/alf'
|
|
||||||
import {Button, ButtonProps} from '#/components/Button'
|
import {Button, ButtonProps} from '#/components/Button'
|
||||||
|
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
||||||
|
import {Text, TextProps} from '#/components/Typography'
|
||||||
import {AllNavigatorParams} from '#/lib/routes/types'
|
import {AllNavigatorParams} from '#/lib/routes/types'
|
||||||
import {
|
import {
|
||||||
convertBskyAppUrlIfNeeded,
|
convertBskyAppUrlIfNeeded,
|
||||||
isExternalUrl,
|
isExternalUrl,
|
||||||
linkRequiresWarning,
|
linkRequiresWarning,
|
||||||
} from '#/lib/strings/url-helpers'
|
} from '#/lib/strings/url-helpers'
|
||||||
import {useModalControls} from '#/state/modals'
|
import {isWeb} from '#/platform/detection'
|
||||||
import {router} from '#/routes'
|
import {router} from '#/routes'
|
||||||
import {Text, TextProps} from '#/components/Typography'
|
import {useModalControls} from '#/state/modals'
|
||||||
import {useOpenLink} from 'state/preferences/in-app-browser'
|
|
||||||
import {useNavigationDeduped} from 'lib/hooks/useNavigationDeduped'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Only available within a `Link`, since that inherits from `Button`.
|
* Only available within a `Link`, since that inherits from `Button`.
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
|
import {Trans} from '@lingui/macro'
|
||||||
|
import {StackActions} from '@react-navigation/native'
|
||||||
|
import {useNavigationDeduped} from 'lib/hooks/useNavigationDeduped'
|
||||||
|
import {cleanError} from 'lib/strings/errors'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {atoms as a, useBreakpoints, useTheme} from '#/alf'
|
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {CenteredView} from 'view/com/util/Views'
|
import {CenteredView} from 'view/com/util/Views'
|
||||||
import {Loader} from '#/components/Loader'
|
|
||||||
import {Trans} from '@lingui/macro'
|
import {atoms as a, useBreakpoints, useTheme} from '#/alf'
|
||||||
import {cleanError} from 'lib/strings/errors'
|
|
||||||
import {Button} from '#/components/Button'
|
import {Button} from '#/components/Button'
|
||||||
|
import {Loader} from '#/components/Loader'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
import {StackActions} from '@react-navigation/native'
|
|
||||||
import {router} from '#/routes'
|
import {router} from '#/routes'
|
||||||
import {useNavigationDeduped} from 'lib/hooks/useNavigationDeduped'
|
|
||||||
|
|
||||||
export function ListFooter({
|
export function ListFooter({
|
||||||
isFetching,
|
isFetching,
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Animated, {
|
import Animated, {
|
||||||
Easing,
|
Easing,
|
||||||
useSharedValue,
|
|
||||||
useAnimatedStyle,
|
useAnimatedStyle,
|
||||||
|
useSharedValue,
|
||||||
withRepeat,
|
withRepeat,
|
||||||
withTiming,
|
withTiming,
|
||||||
} from 'react-native-reanimated'
|
} from 'react-native-reanimated'
|
||||||
|
|
||||||
import {atoms as a, useTheme, flatten} from '#/alf'
|
import {atoms as a, flatten, useTheme} from '#/alf'
|
||||||
import {Props, useCommonSVGProps} from '#/components/icons/common'
|
import {Props, useCommonSVGProps} from '#/components/icons/common'
|
||||||
import {Loader_Stroke2_Corner0_Rounded as Icon} from '#/components/icons/Loader'
|
import {Loader_Stroke2_Corner0_Rounded as Icon} from '#/components/icons/Loader'
|
||||||
|
|
||||||
|
|
|
@ -1,25 +1,24 @@
|
||||||
import React from 'react'
|
|
||||||
import {View, Pressable, ViewStyle, StyleProp} from 'react-native'
|
|
||||||
import flattenReactChildren from 'react-keyed-flatten-children'
|
|
||||||
|
|
||||||
import {atoms as a, useTheme} from '#/alf'
|
|
||||||
import * as Dialog from '#/components/Dialog'
|
|
||||||
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
|
||||||
import {Text} from '#/components/Typography'
|
|
||||||
|
|
||||||
import {Context} from '#/components/Menu/context'
|
|
||||||
import {
|
|
||||||
ContextType,
|
|
||||||
TriggerProps,
|
|
||||||
ItemProps,
|
|
||||||
GroupProps,
|
|
||||||
ItemTextProps,
|
|
||||||
ItemIconProps,
|
|
||||||
} from '#/components/Menu/types'
|
|
||||||
import {Button, ButtonText} from '#/components/Button'
|
|
||||||
import {msg} from '@lingui/macro'
|
import {msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {isNative} from 'platform/detection'
|
import {isNative} from 'platform/detection'
|
||||||
|
import React from 'react'
|
||||||
|
import flattenReactChildren from 'react-keyed-flatten-children'
|
||||||
|
import {Pressable, StyleProp, View, ViewStyle} from 'react-native'
|
||||||
|
|
||||||
|
import {atoms as a, useTheme} from '#/alf'
|
||||||
|
import {Button, ButtonText} from '#/components/Button'
|
||||||
|
import * as Dialog from '#/components/Dialog'
|
||||||
|
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
||||||
|
import {Context} from '#/components/Menu/context'
|
||||||
|
import {
|
||||||
|
ContextType,
|
||||||
|
GroupProps,
|
||||||
|
ItemIconProps,
|
||||||
|
ItemProps,
|
||||||
|
ItemTextProps,
|
||||||
|
TriggerProps,
|
||||||
|
} from '#/components/Menu/types'
|
||||||
|
import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
export {useDialogControl as useMenuControl} from '#/components/Dialog'
|
export {useDialogControl as useMenuControl} from '#/components/Dialog'
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,23 @@
|
||||||
/* eslint-disable react/prop-types */
|
/* eslint-disable react/prop-types */
|
||||||
|
|
||||||
import React from 'react'
|
|
||||||
import {View, Pressable, ViewStyle, StyleProp} from 'react-native'
|
|
||||||
import * as DropdownMenu from '@radix-ui/react-dropdown-menu'
|
import * as DropdownMenu from '@radix-ui/react-dropdown-menu'
|
||||||
|
import React from 'react'
|
||||||
|
import {Pressable, StyleProp, View, ViewStyle} from 'react-native'
|
||||||
|
|
||||||
|
import {atoms as a, flatten, useTheme, web} from '#/alf'
|
||||||
import * as Dialog from '#/components/Dialog'
|
import * as Dialog from '#/components/Dialog'
|
||||||
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
||||||
import {atoms as a, useTheme, flatten, web} from '#/alf'
|
import {Context} from '#/components/Menu/context'
|
||||||
import {Text} from '#/components/Typography'
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ContextType,
|
ContextType,
|
||||||
TriggerProps,
|
|
||||||
ItemProps,
|
|
||||||
GroupProps,
|
GroupProps,
|
||||||
ItemTextProps,
|
|
||||||
ItemIconProps,
|
ItemIconProps,
|
||||||
|
ItemProps,
|
||||||
|
ItemTextProps,
|
||||||
RadixPassThroughTriggerProps,
|
RadixPassThroughTriggerProps,
|
||||||
|
TriggerProps,
|
||||||
} from '#/components/Menu/types'
|
} from '#/components/Menu/types'
|
||||||
import {Context} from '#/components/Menu/context'
|
import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
export function useMenuControl(): Dialog.DialogControlProps {
|
export function useMenuControl(): Dialog.DialogControlProps {
|
||||||
const id = React.useId()
|
const id = React.useId()
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
|
AccessibilityProps,
|
||||||
GestureResponderEvent,
|
GestureResponderEvent,
|
||||||
PressableProps,
|
PressableProps,
|
||||||
AccessibilityProps,
|
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
|
|
||||||
import {Props as SVGIconProps} from '#/components/icons/common'
|
|
||||||
import * as Dialog from '#/components/Dialog'
|
|
||||||
import {TextStyleProp, ViewStyleProp} from '#/alf'
|
import {TextStyleProp, ViewStyleProp} from '#/alf'
|
||||||
|
import * as Dialog from '#/components/Dialog'
|
||||||
|
import {Props as SVGIconProps} from '#/components/icons/common'
|
||||||
|
|
||||||
export type ContextType = {
|
export type ContextType = {
|
||||||
control: Dialog.DialogOuterProps['control']
|
control: Dialog.DialogOuterProps['control']
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import React from 'react'
|
|
||||||
import {View, PressableProps} from 'react-native'
|
|
||||||
import {msg} from '@lingui/macro'
|
import {msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
import React from 'react'
|
||||||
|
import {PressableProps, View} from 'react-native'
|
||||||
|
|
||||||
import {useTheme, atoms as a, useBreakpoints} from '#/alf'
|
import {atoms as a, useBreakpoints, useTheme} from '#/alf'
|
||||||
import {Text} from '#/components/Typography'
|
|
||||||
import {Button} from '#/components/Button'
|
import {Button} from '#/components/Button'
|
||||||
|
|
||||||
import * as Dialog from '#/components/Dialog'
|
import * as Dialog from '#/components/Dialog'
|
||||||
|
import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
export {useDialogControl as usePromptControl} from '#/components/Dialog'
|
export {useDialogControl as usePromptControl} from '#/components/Dialog'
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
import React from 'react'
|
import {AppBskyRichtextFacet, RichText as RichTextAPI} from '@atproto/api'
|
||||||
import {RichText as RichTextAPI, AppBskyRichtextFacet} from '@atproto/api'
|
|
||||||
import {useLingui} from '@lingui/react'
|
|
||||||
import {msg} from '@lingui/macro'
|
import {msg} from '@lingui/macro'
|
||||||
|
import {useLingui} from '@lingui/react'
|
||||||
import {atoms as a, TextStyleProp, flatten, useTheme, web, native} from '#/alf'
|
|
||||||
import {InlineLink} from '#/components/Link'
|
|
||||||
import {Text, TextProps} from '#/components/Typography'
|
|
||||||
import {toShortUrl} from 'lib/strings/url-helpers'
|
import {toShortUrl} from 'lib/strings/url-helpers'
|
||||||
import {TagMenu, useTagMenuControl} from '#/components/TagMenu'
|
import React from 'react'
|
||||||
import {isNative} from '#/platform/detection'
|
|
||||||
|
import {atoms as a, flatten, native, TextStyleProp, useTheme, web} from '#/alf'
|
||||||
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
||||||
|
import {InlineLink} from '#/components/Link'
|
||||||
|
import {TagMenu, useTagMenuControl} from '#/components/TagMenu'
|
||||||
|
import {Text, TextProps} from '#/components/Typography'
|
||||||
|
import {isNative} from '#/platform/detection'
|
||||||
|
|
||||||
const WORD_WRAP = {wordWrap: 1}
|
const WORD_WRAP = {wordWrap: 1}
|
||||||
|
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
|
import {msg, Trans} from '@lingui/macro'
|
||||||
|
import {useLingui} from '@lingui/react'
|
||||||
|
import {useNavigation} from '@react-navigation/native'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {useNavigation} from '@react-navigation/native'
|
|
||||||
import {useLingui} from '@lingui/react'
|
|
||||||
import {msg, Trans} from '@lingui/macro'
|
|
||||||
|
|
||||||
import {atoms as a, native, useTheme} from '#/alf'
|
import {atoms as a, native, useTheme} from '#/alf'
|
||||||
import * as Dialog from '#/components/Dialog'
|
|
||||||
import {Text} from '#/components/Typography'
|
|
||||||
import {Button, ButtonText} from '#/components/Button'
|
import {Button, ButtonText} from '#/components/Button'
|
||||||
import {MagnifyingGlass2_Stroke2_Corner0_Rounded as Search} from '#/components/icons/MagnifyingGlass2'
|
import * as Dialog from '#/components/Dialog'
|
||||||
import {Person_Stroke2_Corner0_Rounded as Person} from '#/components/icons/Person'
|
|
||||||
import {Mute_Stroke2_Corner0_Rounded as Mute} from '#/components/icons/Mute'
|
|
||||||
import {Divider} from '#/components/Divider'
|
import {Divider} from '#/components/Divider'
|
||||||
|
import {MagnifyingGlass2_Stroke2_Corner0_Rounded as Search} from '#/components/icons/MagnifyingGlass2'
|
||||||
|
import {Mute_Stroke2_Corner0_Rounded as Mute} from '#/components/icons/Mute'
|
||||||
|
import {Person_Stroke2_Corner0_Rounded as Person} from '#/components/icons/Person'
|
||||||
import {Link} from '#/components/Link'
|
import {Link} from '#/components/Link'
|
||||||
|
import {Loader} from '#/components/Loader'
|
||||||
|
import {Text} from '#/components/Typography'
|
||||||
import {makeSearchLink} from '#/lib/routes/links'
|
import {makeSearchLink} from '#/lib/routes/links'
|
||||||
import {NavigationProp} from '#/lib/routes/types'
|
import {NavigationProp} from '#/lib/routes/types'
|
||||||
|
import {isInvalidHandle} from '#/lib/strings/handles'
|
||||||
import {
|
import {
|
||||||
usePreferencesQuery,
|
usePreferencesQuery,
|
||||||
useUpsertMutedWordsMutation,
|
|
||||||
useRemoveMutedWordMutation,
|
useRemoveMutedWordMutation,
|
||||||
|
useUpsertMutedWordsMutation,
|
||||||
} from '#/state/queries/preferences'
|
} from '#/state/queries/preferences'
|
||||||
import {Loader} from '#/components/Loader'
|
|
||||||
import {isInvalidHandle} from '#/lib/strings/handles'
|
|
||||||
|
|
||||||
export function useTagMenuControl() {
|
export function useTagMenuControl() {
|
||||||
return Dialog.useDialogControl()
|
return Dialog.useDialogControl()
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
import React from 'react'
|
|
||||||
import {msg} from '@lingui/macro'
|
import {msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {useNavigation} from '@react-navigation/native'
|
import {useNavigation} from '@react-navigation/native'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
import {isInvalidHandle} from '#/lib/strings/handles'
|
|
||||||
import {EventStopper} from '#/view/com/util/EventStopper'
|
|
||||||
import {NativeDropdown} from '#/view/com/util/forms/NativeDropdown'
|
|
||||||
import {NavigationProp} from '#/lib/routes/types'
|
|
||||||
import {
|
|
||||||
usePreferencesQuery,
|
|
||||||
useUpsertMutedWordsMutation,
|
|
||||||
useRemoveMutedWordMutation,
|
|
||||||
} from '#/state/queries/preferences'
|
|
||||||
import {enforceLen} from '#/lib/strings/helpers'
|
|
||||||
import {web} from '#/alf'
|
import {web} from '#/alf'
|
||||||
import * as Dialog from '#/components/Dialog'
|
import * as Dialog from '#/components/Dialog'
|
||||||
|
import {NavigationProp} from '#/lib/routes/types'
|
||||||
|
import {isInvalidHandle} from '#/lib/strings/handles'
|
||||||
|
import {enforceLen} from '#/lib/strings/helpers'
|
||||||
|
import {
|
||||||
|
usePreferencesQuery,
|
||||||
|
useRemoveMutedWordMutation,
|
||||||
|
useUpsertMutedWordsMutation,
|
||||||
|
} from '#/state/queries/preferences'
|
||||||
|
import {EventStopper} from '#/view/com/util/EventStopper'
|
||||||
|
import {NativeDropdown} from '#/view/com/util/forms/NativeDropdown'
|
||||||
|
|
||||||
export function useTagMenuControl(): Dialog.DialogControlProps {
|
export function useTagMenuControl(): Dialog.DialogControlProps {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {Text as RNText, TextStyle, TextProps as RNTextProps} from 'react-native'
|
import {Text as RNText, TextProps as RNTextProps, TextStyle} from 'react-native'
|
||||||
import {UITextView} from 'react-native-ui-text-view'
|
import {UITextView} from 'react-native-ui-text-view'
|
||||||
|
|
||||||
import {useTheme, atoms, web, flatten} from '#/alf'
|
import {atoms, flatten, useTheme, web} from '#/alf'
|
||||||
import {isIOS, isNative} from '#/platform/detection'
|
import {isIOS, isNative} from '#/platform/detection'
|
||||||
|
|
||||||
export type TextProps = RNTextProps & {
|
export type TextProps = RNTextProps & {
|
||||||
|
|
|
@ -1,37 +1,36 @@
|
||||||
import React from 'react'
|
import {AppBskyActorDefs, sanitizeMutedWordValue} from '@atproto/api'
|
||||||
import {Keyboard, View} from 'react-native'
|
|
||||||
import {msg, Trans} from '@lingui/macro'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {AppBskyActorDefs, sanitizeMutedWordValue} from '@atproto/api'
|
import React from 'react'
|
||||||
|
import {Keyboard, View} from 'react-native'
|
||||||
|
|
||||||
import {
|
|
||||||
usePreferencesQuery,
|
|
||||||
useUpsertMutedWordsMutation,
|
|
||||||
useRemoveMutedWordMutation,
|
|
||||||
} from '#/state/queries/preferences'
|
|
||||||
import {isNative} from '#/platform/detection'
|
|
||||||
import {
|
import {
|
||||||
atoms as a,
|
atoms as a,
|
||||||
useTheme,
|
native,
|
||||||
useBreakpoints,
|
useBreakpoints,
|
||||||
|
useTheme,
|
||||||
ViewStyleProp,
|
ViewStyleProp,
|
||||||
web,
|
web,
|
||||||
native,
|
|
||||||
} from '#/alf'
|
} from '#/alf'
|
||||||
import {Text} from '#/components/Typography'
|
|
||||||
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
||||||
import {PlusLarge_Stroke2_Corner0_Rounded as Plus} from '#/components/icons/Plus'
|
import * as Dialog from '#/components/Dialog'
|
||||||
import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times'
|
import {useGlobalDialogsControlContext} from '#/components/dialogs/Context'
|
||||||
|
import {Divider} from '#/components/Divider'
|
||||||
|
import * as Toggle from '#/components/forms/Toggle'
|
||||||
import {Hashtag_Stroke2_Corner0_Rounded as Hashtag} from '#/components/icons/Hashtag'
|
import {Hashtag_Stroke2_Corner0_Rounded as Hashtag} from '#/components/icons/Hashtag'
|
||||||
import {PageText_Stroke2_Corner0_Rounded as PageText} from '#/components/icons/PageText'
|
import {PageText_Stroke2_Corner0_Rounded as PageText} from '#/components/icons/PageText'
|
||||||
import {Divider} from '#/components/Divider'
|
import {PlusLarge_Stroke2_Corner0_Rounded as Plus} from '#/components/icons/Plus'
|
||||||
|
import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times'
|
||||||
import {Loader} from '#/components/Loader'
|
import {Loader} from '#/components/Loader'
|
||||||
import {logger} from '#/logger'
|
|
||||||
import * as Dialog from '#/components/Dialog'
|
|
||||||
import * as Toggle from '#/components/forms/Toggle'
|
|
||||||
import * as Prompt from '#/components/Prompt'
|
import * as Prompt from '#/components/Prompt'
|
||||||
|
import {Text} from '#/components/Typography'
|
||||||
import {useGlobalDialogsControlContext} from '#/components/dialogs/Context'
|
import {logger} from '#/logger'
|
||||||
|
import {isNative} from '#/platform/detection'
|
||||||
|
import {
|
||||||
|
usePreferencesQuery,
|
||||||
|
useRemoveMutedWordMutation,
|
||||||
|
useUpsertMutedWordsMutation,
|
||||||
|
} from '#/state/queries/preferences'
|
||||||
|
|
||||||
export function MutedWordsDialog() {
|
export function MutedWordsDialog() {
|
||||||
const {mutedWordsDialogControl: control} = useGlobalDialogsControlContext()
|
const {mutedWordsDialogControl: control} = useGlobalDialogsControlContext()
|
||||||
|
|
|
@ -1,19 +1,18 @@
|
||||||
|
import {isAndroid} from 'platform/detection'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {View, Pressable} from 'react-native'
|
import {Pressable, View} from 'react-native'
|
||||||
|
import DatePicker from 'react-native-date-picker'
|
||||||
import {useTheme, atoms} from '#/alf'
|
|
||||||
import {Text} from '#/components/Typography'
|
|
||||||
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
|
||||||
import * as TextField from '#/components/forms/TextField'
|
|
||||||
import {CalendarDays_Stroke2_Corner0_Rounded as CalendarDays} from '#/components/icons/CalendarDays'
|
|
||||||
|
|
||||||
|
import {atoms, useTheme} from '#/alf'
|
||||||
import {DateFieldProps} from '#/components/forms/DateField/types'
|
import {DateFieldProps} from '#/components/forms/DateField/types'
|
||||||
import {
|
import {
|
||||||
localizeDate,
|
localizeDate,
|
||||||
toSimpleDateString,
|
toSimpleDateString,
|
||||||
} from '#/components/forms/DateField/utils'
|
} from '#/components/forms/DateField/utils'
|
||||||
import DatePicker from 'react-native-date-picker'
|
import * as TextField from '#/components/forms/TextField'
|
||||||
import {isAndroid} from 'platform/detection'
|
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
||||||
|
import {CalendarDays_Stroke2_Corner0_Rounded as CalendarDays} from '#/components/icons/CalendarDays'
|
||||||
|
import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
export * as utils from '#/components/forms/DateField/utils'
|
export * as utils from '#/components/forms/DateField/utils'
|
||||||
export const Label = TextField.Label
|
export const Label = TextField.Label
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
|
|
||||||
import {useTheme, atoms} from '#/alf'
|
|
||||||
import * as TextField from '#/components/forms/TextField'
|
|
||||||
import {toSimpleDateString} from '#/components/forms/DateField/utils'
|
|
||||||
import {DateFieldProps} from '#/components/forms/DateField/types'
|
|
||||||
import DatePicker from 'react-native-date-picker'
|
import DatePicker from 'react-native-date-picker'
|
||||||
|
|
||||||
|
import {atoms, useTheme} from '#/alf'
|
||||||
|
import {DateFieldProps} from '#/components/forms/DateField/types'
|
||||||
|
import {toSimpleDateString} from '#/components/forms/DateField/utils'
|
||||||
|
import * as TextField from '#/components/forms/TextField'
|
||||||
|
|
||||||
export * as utils from '#/components/forms/DateField/utils'
|
export * as utils from '#/components/forms/DateField/utils'
|
||||||
export const Label = TextField.Label
|
export const Label = TextField.Label
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {TextInput, TextInputProps, StyleSheet} from 'react-native'
|
import {StyleSheet, TextInput, TextInputProps} from 'react-native'
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {unstable_createElement} from 'react-native-web'
|
import {unstable_createElement} from 'react-native-web'
|
||||||
|
|
||||||
import * as TextField from '#/components/forms/TextField'
|
|
||||||
import {toSimpleDateString} from '#/components/forms/DateField/utils'
|
|
||||||
import {DateFieldProps} from '#/components/forms/DateField/types'
|
import {DateFieldProps} from '#/components/forms/DateField/types'
|
||||||
|
import {toSimpleDateString} from '#/components/forms/DateField/utils'
|
||||||
|
import * as TextField from '#/components/forms/TextField'
|
||||||
|
|
||||||
export * as utils from '#/components/forms/DateField/utils'
|
export * as utils from '#/components/forms/DateField/utils'
|
||||||
export const Label = TextField.Label
|
export const Label = TextField.Label
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
|
import {HITSLOP_20} from 'lib/constants'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
View,
|
AccessibilityProps,
|
||||||
|
StyleSheet,
|
||||||
TextInput,
|
TextInput,
|
||||||
TextInputProps,
|
TextInputProps,
|
||||||
TextStyle,
|
TextStyle,
|
||||||
|
View,
|
||||||
ViewStyle,
|
ViewStyle,
|
||||||
StyleSheet,
|
|
||||||
AccessibilityProps,
|
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
|
|
||||||
import {HITSLOP_20} from 'lib/constants'
|
import {android, atoms as a, useTheme, web} from '#/alf'
|
||||||
import {useTheme, atoms as a, web, android} from '#/alf'
|
|
||||||
import {Text} from '#/components/Typography'
|
|
||||||
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
||||||
import {Props as SVGIconProps} from '#/components/icons/common'
|
import {Props as SVGIconProps} from '#/components/icons/common'
|
||||||
|
import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
const Context = React.createContext<{
|
const Context = React.createContext<{
|
||||||
inputRef: React.RefObject<TextInput> | null
|
inputRef: React.RefObject<TextInput> | null
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
import {HITSLOP_10} from 'lib/constants'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {Pressable, View, ViewStyle} from 'react-native'
|
import {Pressable, View, ViewStyle} from 'react-native'
|
||||||
|
|
||||||
import {HITSLOP_10} from 'lib/constants'
|
import {atoms as a, flatten, native, useTheme, ViewStyleProp, web} from '#/alf'
|
||||||
import {useTheme, atoms as a, web, native, flatten, ViewStyleProp} from '#/alf'
|
|
||||||
import {Text} from '#/components/Typography'
|
|
||||||
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
||||||
import {CheckThick_Stroke2_Corner0_Rounded as Checkmark} from '#/components/icons/Check'
|
import {CheckThick_Stroke2_Corner0_Rounded as Checkmark} from '#/components/icons/Check'
|
||||||
|
import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
export type ItemState = {
|
export type ItemState = {
|
||||||
name: string
|
name: string
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {View, AccessibilityProps, TextStyle, ViewStyle} from 'react-native'
|
import {AccessibilityProps, TextStyle, View, ViewStyle} from 'react-native'
|
||||||
|
|
||||||
import {atoms as a, useTheme, native} from '#/alf'
|
|
||||||
import {Text} from '#/components/Typography'
|
|
||||||
|
|
||||||
|
import {atoms as a, native, useTheme} from '#/alf'
|
||||||
import * as Toggle from '#/components/forms/Toggle'
|
import * as Toggle from '#/components/forms/Toggle'
|
||||||
|
import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
export type ItemProps = Omit<Toggle.ItemProps, 'style' | 'role' | 'children'> &
|
export type ItemProps = Omit<Toggle.ItemProps, 'style' | 'role' | 'children'> &
|
||||||
AccessibilityProps &
|
AccessibilityProps &
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Svg, {Path} from 'react-native-svg'
|
import Svg, {Path} from 'react-native-svg'
|
||||||
|
|
||||||
import {useCommonSVGProps, Props} from '#/components/icons/common'
|
import {Props, useCommonSVGProps} from '#/components/icons/common'
|
||||||
|
|
||||||
export const IconTemplate_Stroke2_Corner0_Rounded = React.forwardRef(
|
export const IconTemplate_Stroke2_Corner0_Rounded = React.forwardRef(
|
||||||
function LogoImpl(props: Props, ref) {
|
function LogoImpl(props: Props, ref) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {StyleSheet, TextProps} from 'react-native'
|
import {StyleSheet, TextProps} from 'react-native'
|
||||||
import type {SvgProps, PathProps} from 'react-native-svg'
|
import type {PathProps, SvgProps} from 'react-native-svg'
|
||||||
|
|
||||||
import {tokens} from '#/alf'
|
import {tokens} from '#/alf'
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
import React, {ReactNode, createContext, useContext} from 'react'
|
import React, {createContext, ReactNode, useContext} from 'react'
|
||||||
import {TextStyle, ViewStyle} from 'react-native'
|
import {TextStyle, ViewStyle} from 'react-native'
|
||||||
import {darkTheme, defaultTheme, dimTheme} from './themes'
|
|
||||||
import {ThemeName} from '#/alf/themes'
|
import {ThemeName} from '#/alf/themes'
|
||||||
|
|
||||||
|
import {darkTheme, defaultTheme, dimTheme} from './themes'
|
||||||
|
|
||||||
export type ColorScheme = 'light' | 'dark'
|
export type ColorScheme = 'light' | 'dark'
|
||||||
|
|
||||||
export type PaletteColorName =
|
export type PaletteColorName =
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {describe, it, expect} from '@jest/globals'
|
|
||||||
import {RichText} from '@atproto/api'
|
import {RichText} from '@atproto/api'
|
||||||
|
import {describe, expect, it} from '@jest/globals'
|
||||||
|
|
||||||
import {hasMutedWord} from '../moderatePost_wrapped'
|
import {hasMutedWord} from '../moderatePost_wrapped'
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
import React from 'react'
|
|
||||||
import {AppState, AppStateStatus} from 'react-native'
|
|
||||||
import AsyncStorage from '@react-native-async-storage/async-storage'
|
import AsyncStorage from '@react-native-async-storage/async-storage'
|
||||||
import {createClient, SegmentClient} from '@segment/analytics-react-native'
|
import {createClient, SegmentClient} from '@segment/analytics-react-native'
|
||||||
import {sha256} from 'js-sha256'
|
import {sha256} from 'js-sha256'
|
||||||
|
import React from 'react'
|
||||||
|
import {AppState, AppStateStatus} from 'react-native'
|
||||||
import {Native} from 'sentry-expo'
|
import {Native} from 'sentry-expo'
|
||||||
|
|
||||||
import {useSession, SessionAccount} from '#/state/session'
|
|
||||||
import {ScreenPropertiesMap, TrackPropertiesMap} from './types'
|
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
|
import {SessionAccount, useSession} from '#/state/session'
|
||||||
|
|
||||||
|
import {ScreenPropertiesMap, TrackPropertiesMap} from './types'
|
||||||
|
|
||||||
type AppInfo = {
|
type AppInfo = {
|
||||||
build?: string | undefined
|
build?: string | undefined
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
import React from 'react'
|
|
||||||
import {createClient} from '@segment/analytics-react'
|
import {createClient} from '@segment/analytics-react'
|
||||||
import {sha256} from 'js-sha256'
|
import {sha256} from 'js-sha256'
|
||||||
|
import React from 'react'
|
||||||
import {Browser} from 'sentry-expo'
|
import {Browser} from 'sentry-expo'
|
||||||
|
|
||||||
import {ScreenPropertiesMap, TrackPropertiesMap} from './types'
|
|
||||||
import {useSession, SessionAccount} from '#/state/session'
|
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
|
import {SessionAccount, useSession} from '#/state/session'
|
||||||
|
|
||||||
|
import {ScreenPropertiesMap, TrackPropertiesMap} from './types'
|
||||||
|
|
||||||
type SegmentClient = ReturnType<typeof createClient>
|
type SegmentClient = ReturnType<typeof createClient>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {BskyAgent, stringifyLex, jsonToLex} from '@atproto/api'
|
import {BskyAgent, jsonToLex, stringifyLex} from '@atproto/api'
|
||||||
import RNFS from 'react-native-fs'
|
import RNFS from 'react-native-fs'
|
||||||
|
|
||||||
const GET_TIMEOUT = 15e3 // 15s
|
const GET_TIMEOUT = 15e3 // 15s
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
import {
|
import {
|
||||||
|
AppBskyEmbedRecord,
|
||||||
|
AppBskyEmbedRecordWithMedia,
|
||||||
AppBskyFeedDefs,
|
AppBskyFeedDefs,
|
||||||
AppBskyFeedPost,
|
AppBskyFeedPost,
|
||||||
AppBskyEmbedRecordWithMedia,
|
|
||||||
AppBskyEmbedRecord,
|
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
import {ReasonFeedSource} from './feed/types'
|
|
||||||
import {isPostInLanguage} from '../../locale/helpers'
|
import {isPostInLanguage} from '../../locale/helpers'
|
||||||
|
import {ReasonFeedSource} from './feed/types'
|
||||||
type FeedViewPost = AppBskyFeedDefs.FeedViewPost
|
type FeedViewPost = AppBskyFeedDefs.FeedViewPost
|
||||||
|
|
||||||
export type FeedTunerFn = (
|
export type FeedTunerFn = (
|
||||||
|
|
|
@ -2,9 +2,11 @@ import {
|
||||||
AppBskyFeedDefs,
|
AppBskyFeedDefs,
|
||||||
AppBskyFeedGetAuthorFeed as GetAuthorFeed,
|
AppBskyFeedGetAuthorFeed as GetAuthorFeed,
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
import {FeedAPI, FeedAPIResponse} from './types'
|
|
||||||
import {getAgent} from '#/state/session'
|
import {getAgent} from '#/state/session'
|
||||||
|
|
||||||
|
import {FeedAPI, FeedAPIResponse} from './types'
|
||||||
|
|
||||||
export class AuthorFeedAPI implements FeedAPI {
|
export class AuthorFeedAPI implements FeedAPI {
|
||||||
constructor(public params: GetAuthorFeed.QueryParams) {}
|
constructor(public params: GetAuthorFeed.QueryParams) {}
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,11 @@ import {
|
||||||
AppBskyFeedDefs,
|
AppBskyFeedDefs,
|
||||||
AppBskyFeedGetFeed as GetCustomFeed,
|
AppBskyFeedGetFeed as GetCustomFeed,
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
import {FeedAPI, FeedAPIResponse} from './types'
|
|
||||||
import {getAgent} from '#/state/session'
|
|
||||||
import {getContentLanguages} from '#/state/preferences/languages'
|
import {getContentLanguages} from '#/state/preferences/languages'
|
||||||
|
import {getAgent} from '#/state/session'
|
||||||
|
|
||||||
|
import {FeedAPI, FeedAPIResponse} from './types'
|
||||||
|
|
||||||
export class CustomFeedAPI implements FeedAPI {
|
export class CustomFeedAPI implements FeedAPI {
|
||||||
constructor(public params: GetCustomFeed.QueryParams) {}
|
constructor(public params: GetCustomFeed.QueryParams) {}
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
import {AppBskyFeedDefs} from '@atproto/api'
|
import {AppBskyFeedDefs} from '@atproto/api'
|
||||||
import {FeedAPI, FeedAPIResponse} from './types'
|
|
||||||
import {getAgent} from '#/state/session'
|
import {getAgent} from '#/state/session'
|
||||||
|
|
||||||
|
import {FeedAPI, FeedAPIResponse} from './types'
|
||||||
|
|
||||||
export class FollowingFeedAPI implements FeedAPI {
|
export class FollowingFeedAPI implements FeedAPI {
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
import {AppBskyFeedDefs} from '@atproto/api'
|
import {AppBskyFeedDefs} from '@atproto/api'
|
||||||
import {FeedAPI, FeedAPIResponse} from './types'
|
|
||||||
import {FollowingFeedAPI} from './following'
|
|
||||||
import {CustomFeedAPI} from './custom'
|
|
||||||
import {PROD_DEFAULT_FEED} from '#/lib/constants'
|
import {PROD_DEFAULT_FEED} from '#/lib/constants'
|
||||||
|
|
||||||
|
import {CustomFeedAPI} from './custom'
|
||||||
|
import {FollowingFeedAPI} from './following'
|
||||||
|
import {FeedAPI, FeedAPIResponse} from './types'
|
||||||
|
|
||||||
// HACK
|
// HACK
|
||||||
// the feed API does not include any facilities for passing down
|
// the feed API does not include any facilities for passing down
|
||||||
// non-post elements. adding that is a bit of a heavy lift, and we
|
// non-post elements. adding that is a bit of a heavy lift, and we
|
||||||
|
|
|
@ -2,9 +2,11 @@ import {
|
||||||
AppBskyFeedDefs,
|
AppBskyFeedDefs,
|
||||||
AppBskyFeedGetActorLikes as GetActorLikes,
|
AppBskyFeedGetActorLikes as GetActorLikes,
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
import {FeedAPI, FeedAPIResponse} from './types'
|
|
||||||
import {getAgent} from '#/state/session'
|
import {getAgent} from '#/state/session'
|
||||||
|
|
||||||
|
import {FeedAPI, FeedAPIResponse} from './types'
|
||||||
|
|
||||||
export class LikesFeedAPI implements FeedAPI {
|
export class LikesFeedAPI implements FeedAPI {
|
||||||
constructor(public params: GetActorLikes.QueryParams) {}
|
constructor(public params: GetActorLikes.QueryParams) {}
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,11 @@ import {
|
||||||
AppBskyFeedDefs,
|
AppBskyFeedDefs,
|
||||||
AppBskyFeedGetListFeed as GetListFeed,
|
AppBskyFeedGetListFeed as GetListFeed,
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
import {FeedAPI, FeedAPIResponse} from './types'
|
|
||||||
import {getAgent} from '#/state/session'
|
import {getAgent} from '#/state/session'
|
||||||
|
|
||||||
|
import {FeedAPI, FeedAPIResponse} from './types'
|
||||||
|
|
||||||
export class ListFeedAPI implements FeedAPI {
|
export class ListFeedAPI implements FeedAPI {
|
||||||
constructor(public params: GetListFeed.QueryParams) {}
|
constructor(public params: GetListFeed.QueryParams) {}
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
import {AppBskyFeedDefs, AppBskyFeedGetTimeline} from '@atproto/api'
|
import {AppBskyFeedDefs, AppBskyFeedGetTimeline} from '@atproto/api'
|
||||||
import shuffle from 'lodash.shuffle'
|
|
||||||
import {timeout} from 'lib/async/timeout'
|
|
||||||
import {bundleAsync} from 'lib/async/bundle'
|
import {bundleAsync} from 'lib/async/bundle'
|
||||||
|
import {timeout} from 'lib/async/timeout'
|
||||||
import {feedUriToHref} from 'lib/strings/url-helpers'
|
import {feedUriToHref} from 'lib/strings/url-helpers'
|
||||||
import {FeedTuner} from '../feed-manip'
|
import shuffle from 'lodash.shuffle'
|
||||||
import {FeedAPI, FeedAPIResponse, ReasonFeedSource} from './types'
|
|
||||||
import {FeedParams} from '#/state/queries/post-feed'
|
|
||||||
import {FeedTunerFn} from '../feed-manip'
|
|
||||||
import {getAgent} from '#/state/session'
|
|
||||||
import {getContentLanguages} from '#/state/preferences/languages'
|
import {getContentLanguages} from '#/state/preferences/languages'
|
||||||
|
import {FeedParams} from '#/state/queries/post-feed'
|
||||||
|
import {getAgent} from '#/state/session'
|
||||||
|
|
||||||
|
import {FeedTuner} from '../feed-manip'
|
||||||
|
import {FeedTunerFn} from '../feed-manip'
|
||||||
|
import {FeedAPI, FeedAPIResponse, ReasonFeedSource} from './types'
|
||||||
|
|
||||||
const REQUEST_WAIT_MS = 500 // 500ms
|
const REQUEST_WAIT_MS = 500 // 500ms
|
||||||
const POST_AGE_CUTOFF = 60e3 * 60 * 24 // 24hours
|
const POST_AGE_CUTOFF = 60e3 * 60 * 24 // 24hours
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import {
|
import {
|
||||||
AppBskyEmbedImages,
|
|
||||||
AppBskyEmbedExternal,
|
AppBskyEmbedExternal,
|
||||||
|
AppBskyEmbedImages,
|
||||||
AppBskyEmbedRecord,
|
AppBskyEmbedRecord,
|
||||||
AppBskyEmbedRecordWithMedia,
|
AppBskyEmbedRecordWithMedia,
|
||||||
AppBskyFeedThreadgate,
|
AppBskyFeedThreadgate,
|
||||||
|
@ -12,13 +12,15 @@ import {
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
import {AtUri} from '@atproto/api'
|
import {AtUri} from '@atproto/api'
|
||||||
import {isNetworkError} from 'lib/strings/errors'
|
import {isNetworkError} from 'lib/strings/errors'
|
||||||
import {LinkMeta} from '../link-meta/link-meta'
|
import {shortenLinks} from 'lib/strings/rich-text-manip'
|
||||||
import {isWeb} from 'platform/detection'
|
import {isWeb} from 'platform/detection'
|
||||||
import {ImageModel} from 'state/models/media/image'
|
import {ImageModel} from 'state/models/media/image'
|
||||||
import {shortenLinks} from 'lib/strings/rich-text-manip'
|
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
import {ThreadgateSetting} from '#/state/queries/threadgate'
|
import {ThreadgateSetting} from '#/state/queries/threadgate'
|
||||||
|
|
||||||
|
import {LinkMeta} from '../link-meta/link-meta'
|
||||||
|
|
||||||
export interface ExternalEmbedDraft {
|
export interface ExternalEmbedDraft {
|
||||||
uri: string
|
uri: string
|
||||||
isLoading: boolean
|
isLoading: boolean
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import VersionNumber from 'react-native-version-number'
|
|
||||||
import * as Updates from 'expo-updates'
|
import * as Updates from 'expo-updates'
|
||||||
|
import VersionNumber from 'react-native-version-number'
|
||||||
export const updateChannel = Updates.channel
|
export const updateChannel = Updates.channel
|
||||||
|
|
||||||
export const appVersion = `${VersionNumber.appVersion} (${VersionNumber.buildVersion})`
|
export const appVersion = `${VersionNumber.appVersion} (${VersionNumber.buildVersion})`
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {
|
import {
|
||||||
AppBskyFeedDefs,
|
|
||||||
AppBskyEmbedRecord,
|
AppBskyEmbedRecord,
|
||||||
AppBskyEmbedRecordWithMedia,
|
AppBskyEmbedRecordWithMedia,
|
||||||
|
AppBskyFeedDefs,
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
|
|
||||||
export function isEmbedByEmbedder(
|
export function isEmbedByEmbedder(
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import {useCallback} from 'react'
|
import {useCallback} from 'react'
|
||||||
|
|
||||||
import {isWeb} from '#/platform/detection'
|
|
||||||
import {useAnalytics} from '#/lib/analytics/analytics'
|
import {useAnalytics} from '#/lib/analytics/analytics'
|
||||||
import {useSessionApi, SessionAccount} from '#/state/session'
|
import {isWeb} from '#/platform/detection'
|
||||||
import * as Toast from '#/view/com/util/Toast'
|
import {SessionAccount, useSessionApi} from '#/state/session'
|
||||||
import {useCloseAllActiveElements} from '#/state/util'
|
|
||||||
import {useLoggedOutViewControls} from '#/state/shell/logged-out'
|
import {useLoggedOutViewControls} from '#/state/shell/logged-out'
|
||||||
|
import {useCloseAllActiveElements} from '#/state/util'
|
||||||
|
import * as Toast from '#/view/com/util/Toast'
|
||||||
|
|
||||||
export function useAccountSwitcher() {
|
export function useAccountSwitcher() {
|
||||||
const {track} = useAnalytics()
|
const {track} = useAnalytics()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {useRef, useEffect} from 'react'
|
import {useEffect, useRef} from 'react'
|
||||||
import {useAnimatedScrollHandler as useAnimatedScrollHandler_BUGGY} from 'react-native-reanimated'
|
import {useAnimatedScrollHandler as useAnimatedScrollHandler_BUGGY} from 'react-native-reanimated'
|
||||||
|
|
||||||
export const useAnimatedScrollHandler: typeof useAnimatedScrollHandler_BUGGY = (
|
export const useAnimatedScrollHandler: typeof useAnimatedScrollHandler_BUGGY = (
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react'
|
|
||||||
import {useTheme} from 'lib/ThemeContext'
|
|
||||||
import {choose} from 'lib/functions'
|
import {choose} from 'lib/functions'
|
||||||
|
import {useTheme} from 'lib/ThemeContext'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
export function useCustomPalette<T>({light, dark}: {light: T; dark: T}) {
|
export function useCustomPalette<T>({light, dark}: {light: T; dark: T}) {
|
||||||
const theme = useTheme()
|
const theme = useTheme()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {useEffect, useRef, useMemo, ForwardedRef} from 'react'
|
|
||||||
import {Platform, findNodeHandle} from 'react-native'
|
|
||||||
import type {ScrollView} from 'react-native'
|
|
||||||
import {mergeRefs} from 'lib/merge-refs'
|
import {mergeRefs} from 'lib/merge-refs'
|
||||||
|
import {ForwardedRef, useEffect, useMemo, useRef} from 'react'
|
||||||
|
import type {ScrollView} from 'react-native'
|
||||||
|
import {findNodeHandle, Platform} from 'react-native'
|
||||||
|
|
||||||
type Props<Scrollable extends ScrollView = ScrollView> = {
|
type Props<Scrollable extends ScrollView = ScrollView> = {
|
||||||
cursor?: string
|
cursor?: string
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import React from 'react'
|
|
||||||
import * as Linking from 'expo-linking'
|
import * as Linking from 'expo-linking'
|
||||||
import {isNative} from 'platform/detection'
|
import {isNative} from 'platform/detection'
|
||||||
import {useComposerControls} from 'state/shell'
|
import React from 'react'
|
||||||
import {useSession} from 'state/session'
|
import {useSession} from 'state/session'
|
||||||
|
import {useComposerControls} from 'state/shell'
|
||||||
import {useCloseAllActiveElements} from 'state/util'
|
import {useCloseAllActiveElements} from 'state/util'
|
||||||
|
|
||||||
type IntentType = 'compose'
|
type IntentType = 'compose'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import {useState, useEffect} from 'react'
|
|
||||||
import {Keyboard} from 'react-native'
|
|
||||||
import {isIOS} from 'platform/detection'
|
import {isIOS} from 'platform/detection'
|
||||||
|
import {useEffect, useState} from 'react'
|
||||||
|
import {Keyboard} from 'react-native'
|
||||||
|
|
||||||
export function useIsKeyboardVisible({
|
export function useIsKeyboardVisible({
|
||||||
iosUseWillEvents,
|
iosUseWillEvents,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import {interpolate, useAnimatedStyle} from 'react-native-reanimated'
|
import {interpolate, useAnimatedStyle} from 'react-native-reanimated'
|
||||||
|
|
||||||
import {useMinimalShellMode as useMinimalShellModeState} from '#/state/shell/minimal-mode'
|
import {useMinimalShellMode as useMinimalShellModeState} from '#/state/shell/minimal-mode'
|
||||||
import {useShellLayout} from '#/state/shell/shell-layout'
|
import {useShellLayout} from '#/state/shell/shell-layout'
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import React from 'react'
|
|
||||||
import {useNavigation} from '@react-navigation/core'
|
import {useNavigation} from '@react-navigation/core'
|
||||||
import {AllNavigatorParams, NavigationProp} from 'lib/routes/types'
|
|
||||||
import type {NavigationAction} from '@react-navigation/routers'
|
|
||||||
import {NavigationState} from '@react-navigation/native'
|
import {NavigationState} from '@react-navigation/native'
|
||||||
|
import type {NavigationAction} from '@react-navigation/routers'
|
||||||
import {useDedupe} from 'lib/hooks/useDedupe'
|
import {useDedupe} from 'lib/hooks/useDedupe'
|
||||||
|
import {AllNavigatorParams, NavigationProp} from 'lib/routes/types'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
export type DebouncedNavigationProp = Pick<
|
export type DebouncedNavigationProp = Pick<
|
||||||
NavigationProp,
|
NavigationProp,
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
|
import {t} from '@lingui/macro'
|
||||||
import * as Updates from 'expo-updates'
|
import * as Updates from 'expo-updates'
|
||||||
import {useCallback, useEffect} from 'react'
|
import {useCallback, useEffect} from 'react'
|
||||||
import {AppState} from 'react-native'
|
import {AppState} from 'react-native'
|
||||||
|
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
import {useModalControls} from '#/state/modals'
|
import {useModalControls} from '#/state/modals'
|
||||||
import {t} from '@lingui/macro'
|
|
||||||
|
|
||||||
export function useOTAUpdate() {
|
export function useOTAUpdate() {
|
||||||
const {openModal} = useModalControls()
|
const {openModal} = useModalControls()
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import {useMemo} from 'react'
|
import {useMemo} from 'react'
|
||||||
import {TextStyle, ViewStyle} from 'react-native'
|
import {TextStyle, ViewStyle} from 'react-native'
|
||||||
import {useTheme, PaletteColorName, PaletteColor} from '../ThemeContext'
|
|
||||||
|
import {PaletteColor, PaletteColorName, useTheme} from '../ThemeContext'
|
||||||
|
|
||||||
export interface UsePaletteValue {
|
export interface UsePaletteValue {
|
||||||
colors: PaletteColor
|
colors: PaletteColor
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {Camera} from 'expo-camera'
|
import {Camera} from 'expo-camera'
|
||||||
import * as MediaLibrary from 'expo-media-library'
|
import * as MediaLibrary from 'expo-media-library'
|
||||||
import {Linking} from 'react-native'
|
|
||||||
import {isWeb} from 'platform/detection'
|
import {isWeb} from 'platform/detection'
|
||||||
|
import {Linking} from 'react-native'
|
||||||
import {Alert} from 'view/com/util/Alert'
|
import {Alert} from 'view/com/util/Alert'
|
||||||
|
|
||||||
const openPermissionAlert = (perm: string) => {
|
const openPermissionAlert = (perm: string) => {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import {useEffect} from 'react'
|
|
||||||
import {useNavigation} from '@react-navigation/native'
|
import {useNavigation} from '@react-navigation/native'
|
||||||
|
|
||||||
import {NavigationProp} from 'lib/routes/types'
|
import {NavigationProp} from 'lib/routes/types'
|
||||||
import {bskyTitle} from 'lib/strings/headings'
|
import {bskyTitle} from 'lib/strings/headings'
|
||||||
|
import {useEffect} from 'react'
|
||||||
|
|
||||||
import {useUnreadNotifications} from '#/state/queries/notifications/unread'
|
import {useUnreadNotifications} from '#/state/queries/notifications/unread'
|
||||||
|
|
||||||
export function useSetTitle(title?: string) {
|
export function useSetTitle(title?: string) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import {useEffect, useState} from 'react'
|
|
||||||
import {useNavigation} from '@react-navigation/native'
|
import {useNavigation} from '@react-navigation/native'
|
||||||
import {getTabState, TabState} from 'lib/routes/helpers'
|
import {getTabState, TabState} from 'lib/routes/helpers'
|
||||||
|
import {useEffect, useState} from 'react'
|
||||||
|
|
||||||
export function useTabFocusEffect(
|
export function useTabFocusEffect(
|
||||||
tabName: string,
|
tabName: string,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {useState, useRef, useEffect, useCallback} from 'react'
|
import {useCallback, useEffect, useRef, useState} from 'react'
|
||||||
|
|
||||||
type Task<TServerState> = {
|
type Task<TServerState> = {
|
||||||
isOn: boolean
|
isOn: boolean
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import {useEffect} from 'react'
|
import {useEffect} from 'react'
|
||||||
|
|
||||||
import {isWeb} from '#/platform/detection'
|
import {isWeb} from '#/platform/detection'
|
||||||
|
|
||||||
let refCount = 0
|
let refCount = 0
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {useMediaQuery} from 'react-responsive'
|
|
||||||
import {isNative} from 'platform/detection'
|
import {isNative} from 'platform/detection'
|
||||||
|
import {useMediaQuery} from 'react-responsive'
|
||||||
|
|
||||||
export function useWebMediaQueries() {
|
export function useWebMediaQueries() {
|
||||||
const isDesktop = useMediaQuery({minWidth: 1300})
|
const isDesktop = useMediaQuery({minWidth: 1300})
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {useMemo, useState, useEffect} from 'react'
|
|
||||||
import {EventArg, useNavigation} from '@react-navigation/core'
|
import {EventArg, useNavigation} from '@react-navigation/core'
|
||||||
|
import {useEffect, useMemo, useState} from 'react'
|
||||||
|
|
||||||
if ('scrollRestoration' in history) {
|
if ('scrollRestoration' in history) {
|
||||||
// Tell the brower not to mess with the scroll.
|
// Tell the brower not to mess with the scroll.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {StyleProp, TextStyle, ViewStyle} from 'react-native'
|
import {StyleProp, TextStyle, ViewStyle} from 'react-native'
|
||||||
import Svg, {Path, Rect, Line, Ellipse} from 'react-native-svg'
|
import Svg, {Ellipse, Line, Path, Rect} from 'react-native-svg'
|
||||||
|
|
||||||
export function GridIcon({
|
export function GridIcon({
|
||||||
style,
|
style,
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
import {AppBskyFeedPost, BskyAgent} from '@atproto/api'
|
import {AppBskyFeedPost, BskyAgent} from '@atproto/api'
|
||||||
import * as apilib from 'lib/api/index'
|
import * as apilib from 'lib/api/index'
|
||||||
import {LikelyType, LinkMeta} from './link-meta'
|
import {ComposerOptsQuote} from 'state/shell/composer'
|
||||||
|
|
||||||
|
import {useFetchDid} from '#/state/queries/handle'
|
||||||
|
import {useGetPost} from '#/state/queries/post'
|
||||||
|
|
||||||
// import {match as matchRoute} from 'view/routes'
|
// import {match as matchRoute} from 'view/routes'
|
||||||
import {convertBskyAppUrlIfNeeded, makeRecordUri} from '../strings/url-helpers'
|
import {convertBskyAppUrlIfNeeded, makeRecordUri} from '../strings/url-helpers'
|
||||||
import {ComposerOptsQuote} from 'state/shell/composer'
|
import {LikelyType, LinkMeta} from './link-meta'
|
||||||
import {useGetPost} from '#/state/queries/post'
|
|
||||||
import {useFetchDid} from '#/state/queries/handle'
|
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
// import {Home} from 'view/screens/Home'
|
// import {Home} from 'view/screens/Home'
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
import {BskyAgent} from '@atproto/api'
|
import {BskyAgent} from '@atproto/api'
|
||||||
import {isBskyAppUrl} from '../strings/url-helpers'
|
|
||||||
import {extractBskyMeta} from './bsky'
|
|
||||||
import {LINK_META_PROXY} from 'lib/constants'
|
import {LINK_META_PROXY} from 'lib/constants'
|
||||||
import {getGiphyMetaUri} from 'lib/strings/embed-player'
|
import {getGiphyMetaUri} from 'lib/strings/embed-player'
|
||||||
|
|
||||||
|
import {isBskyAppUrl} from '../strings/url-helpers'
|
||||||
|
import {extractBskyMeta} from './bsky'
|
||||||
|
|
||||||
export enum LikelyType {
|
export enum LikelyType {
|
||||||
HTML,
|
HTML,
|
||||||
Text,
|
Text,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {Image} from 'react-native'
|
|
||||||
import type {Dimensions} from 'lib/media/types'
|
import type {Dimensions} from 'lib/media/types'
|
||||||
|
import {Image} from 'react-native'
|
||||||
|
|
||||||
const sizes: Map<string, Dimensions> = new Map()
|
const sizes: Map<string, Dimensions> = new Map()
|
||||||
const activeRequests: Map<string, Promise<Dimensions>> = new Map()
|
const activeRequests: Map<string, Promise<Dimensions>> = new Map()
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
import RNFetchBlob from 'rn-fetch-blob'
|
|
||||||
import ImageResizer from '@bam.tech/react-native-image-resizer'
|
import ImageResizer from '@bam.tech/react-native-image-resizer'
|
||||||
import {Image as RNImage, Share as RNShare} from 'react-native'
|
|
||||||
import {Image} from 'react-native-image-crop-picker'
|
|
||||||
import * as RNFS from 'react-native-fs'
|
|
||||||
import uuid from 'react-native-uuid'
|
|
||||||
import * as Sharing from 'expo-sharing'
|
|
||||||
import * as MediaLibrary from 'expo-media-library'
|
import * as MediaLibrary from 'expo-media-library'
|
||||||
import {Dimensions} from './types'
|
import * as Sharing from 'expo-sharing'
|
||||||
import {isAndroid, isIOS} from 'platform/detection'
|
import {isAndroid, isIOS} from 'platform/detection'
|
||||||
|
import {Image as RNImage, Share as RNShare} from 'react-native'
|
||||||
|
import * as RNFS from 'react-native-fs'
|
||||||
|
import {Image} from 'react-native-image-crop-picker'
|
||||||
|
import uuid from 'react-native-uuid'
|
||||||
|
import RNFetchBlob from 'rn-fetch-blob'
|
||||||
|
|
||||||
|
import {Dimensions} from './types'
|
||||||
|
|
||||||
export async function compressIfNeeded(
|
export async function compressIfNeeded(
|
||||||
img: Image,
|
img: Image,
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import {Dimensions} from './types'
|
|
||||||
import {Image as RNImage} from 'react-native-image-crop-picker'
|
import {Image as RNImage} from 'react-native-image-crop-picker'
|
||||||
import {getDataUriSize, blobToDataUri} from './util'
|
|
||||||
|
import {Dimensions} from './types'
|
||||||
|
import {blobToDataUri, getDataUriSize} from './util'
|
||||||
|
|
||||||
export async function compressIfNeeded(
|
export async function compressIfNeeded(
|
||||||
img: RNImage,
|
img: RNImage,
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
import {Image as RNImage} from 'react-native-image-crop-picker'
|
|
||||||
import RNFS from 'react-native-fs'
|
import RNFS from 'react-native-fs'
|
||||||
import {CropperOptions} from './types'
|
import {Image as RNImage} from 'react-native-image-crop-picker'
|
||||||
|
|
||||||
import {compressIfNeeded} from './manip'
|
import {compressIfNeeded} from './manip'
|
||||||
|
import {CropperOptions} from './types'
|
||||||
|
|
||||||
let _imageCounter = 0
|
let _imageCounter = 0
|
||||||
async function getFile() {
|
async function getFile() {
|
||||||
|
|
|
@ -3,9 +3,10 @@ import {
|
||||||
launchImageLibraryAsync,
|
launchImageLibraryAsync,
|
||||||
MediaTypeOptions,
|
MediaTypeOptions,
|
||||||
} from 'expo-image-picker'
|
} from 'expo-image-picker'
|
||||||
import {getDataUriSize} from './util'
|
|
||||||
import * as Toast from 'view/com/util/Toast'
|
import * as Toast from 'view/com/util/Toast'
|
||||||
|
|
||||||
|
import {getDataUriSize} from './util'
|
||||||
|
|
||||||
export async function openPicker(opts?: ImagePickerOptions) {
|
export async function openPicker(opts?: ImagePickerOptions) {
|
||||||
const response = await launchImageLibraryAsync({
|
const response = await launchImageLibraryAsync({
|
||||||
exif: false,
|
exif: false,
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
import {
|
import {
|
||||||
|
Image as RNImage,
|
||||||
openCamera as openCameraFn,
|
openCamera as openCameraFn,
|
||||||
openCropper as openCropperFn,
|
openCropper as openCropperFn,
|
||||||
Image as RNImage,
|
|
||||||
} from 'react-native-image-crop-picker'
|
} from 'react-native-image-crop-picker'
|
||||||
|
|
||||||
import {CameraOpts, CropperOptions} from './types'
|
import {CameraOpts, CropperOptions} from './types'
|
||||||
export {openPicker} from './picker.shared'
|
export {openPicker} from './picker.shared'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
/// <reference lib="dom" />
|
/// <reference lib="dom" />
|
||||||
|
|
||||||
import {CameraOpts, CropperOptions} from './types'
|
|
||||||
import {Image as RNImage} from 'react-native-image-crop-picker'
|
import {Image as RNImage} from 'react-native-image-crop-picker'
|
||||||
|
|
||||||
|
import {CameraOpts, CropperOptions} from './types'
|
||||||
export {openPicker} from './picker.shared'
|
export {openPicker} from './picker.shared'
|
||||||
import {unstable__openModal} from '#/state/modals'
|
import {unstable__openModal} from '#/state/modals'
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import {
|
import {
|
||||||
|
AppBskyActorDefs,
|
||||||
|
AppBskyEmbedExternal,
|
||||||
|
AppBskyEmbedImages,
|
||||||
AppBskyEmbedRecord,
|
AppBskyEmbedRecord,
|
||||||
AppBskyEmbedRecordWithMedia,
|
AppBskyEmbedRecordWithMedia,
|
||||||
moderatePost,
|
|
||||||
AppBskyActorDefs,
|
|
||||||
AppBskyFeedPost,
|
AppBskyFeedPost,
|
||||||
AppBskyRichtextFacet,
|
AppBskyRichtextFacet,
|
||||||
AppBskyEmbedImages,
|
moderatePost,
|
||||||
AppBskyEmbedExternal,
|
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
|
|
||||||
type ModeratePost = typeof moderatePost
|
type ModeratePost = typeof moderatePost
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {ModerationCause, ProfileModeration, PostModeration} from '@atproto/api'
|
import {ModerationCause, PostModeration, ProfileModeration} from '@atproto/api'
|
||||||
|
|
||||||
export interface ModerationCauseDescription {
|
export interface ModerationCauseDescription {
|
||||||
name: string
|
name: string
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
import * as Notifications from 'expo-notifications'
|
|
||||||
import {QueryClient} from '@tanstack/react-query'
|
import {QueryClient} from '@tanstack/react-query'
|
||||||
import {resetToTab} from '../../Navigation'
|
import * as Notifications from 'expo-notifications'
|
||||||
import {devicePlatform, isIOS} from 'platform/detection'
|
|
||||||
import {track} from 'lib/analytics/analytics'
|
import {track} from 'lib/analytics/analytics'
|
||||||
|
import {devicePlatform, isIOS} from 'platform/detection'
|
||||||
|
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
import {RQKEY as RQKEY_NOTIFS} from '#/state/queries/notifications/feed'
|
import {RQKEY as RQKEY_NOTIFS} from '#/state/queries/notifications/feed'
|
||||||
import {truncateAndInvalidate} from '#/state/queries/util'
|
import {truncateAndInvalidate} from '#/state/queries/util'
|
||||||
import {SessionAccount, getAgent} from '#/state/session'
|
import {getAgent, SessionAccount} from '#/state/session'
|
||||||
|
|
||||||
|
import {resetToTab} from '../../Navigation'
|
||||||
|
|
||||||
const SERVICE_DID = (serviceUrl?: string) =>
|
const SERVICE_DID = (serviceUrl?: string) =>
|
||||||
serviceUrl?.includes('staging')
|
serviceUrl?.includes('staging')
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
import {focusManager, QueryClient} from '@tanstack/react-query'
|
||||||
import {AppState, AppStateStatus} from 'react-native'
|
import {AppState, AppStateStatus} from 'react-native'
|
||||||
import {QueryClient, focusManager} from '@tanstack/react-query'
|
|
||||||
import {isNative} from '#/platform/detection'
|
import {isNative} from '#/platform/detection'
|
||||||
|
|
||||||
focusManager.setEventListener(onFocus => {
|
focusManager.setEventListener(onFocus => {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import {NavigationProp} from '@react-navigation/native'
|
import {NavigationProp} from '@react-navigation/native'
|
||||||
import {State, RouteParams} from './types'
|
|
||||||
|
import {RouteParams, State} from './types'
|
||||||
|
|
||||||
export function getRootNavigation<T extends {}>(
|
export function getRootNavigation<T extends {}>(
|
||||||
nav: NavigationProp<T>,
|
nav: NavigationProp<T>,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {RouteParams, Route} from './types'
|
import {Route, RouteParams} from './types'
|
||||||
|
|
||||||
export class Router {
|
export class Router {
|
||||||
routes: [string, Route][] = []
|
routes: [string, Route][] = []
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
* avoid future conflicts and/or circular deps
|
* avoid future conflicts and/or circular deps
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as info from 'expo-updates'
|
||||||
import {Platform} from 'react-native'
|
import {Platform} from 'react-native'
|
||||||
import app from 'react-native-version-number'
|
import app from 'react-native-version-number'
|
||||||
import * as info from 'expo-updates'
|
|
||||||
import {init} from 'sentry-expo'
|
import {init} from 'sentry-expo'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
import {isIOS, isAndroid} from 'platform/detection'
|
|
||||||
// import * as Sharing from 'expo-sharing'
|
// import * as Sharing from 'expo-sharing'
|
||||||
import Clipboard from '@react-native-clipboard/clipboard'
|
import Clipboard from '@react-native-clipboard/clipboard'
|
||||||
import * as Toast from '../view/com/util/Toast'
|
import {isAndroid, isIOS} from 'platform/detection'
|
||||||
import {Share} from 'react-native'
|
import {Share} from 'react-native'
|
||||||
|
|
||||||
|
import * as Toast from '../view/com/util/Toast'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function shares a URL using the native Share API if available, or copies it to the clipboard
|
* This function shares a URL using the native Share API if available, or copies it to the clipboard
|
||||||
* and displays a toast message if not (mostly on web)
|
* and displays a toast message if not (mostly on web)
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
|
import {sha256} from 'js-sha256'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
Statsig,
|
Statsig,
|
||||||
StatsigProvider,
|
StatsigProvider,
|
||||||
useGate as useStatsigGate,
|
useGate as useStatsigGate,
|
||||||
} from 'statsig-react-native-expo'
|
} from 'statsig-react-native-expo'
|
||||||
|
|
||||||
import {useSession} from '../../state/session'
|
import {useSession} from '../../state/session'
|
||||||
import {sha256} from 'js-sha256'
|
|
||||||
|
|
||||||
const statsigOptions = {
|
const statsigOptions = {
|
||||||
environment: {
|
environment: {
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
|
import {sha256} from 'js-sha256'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
Statsig,
|
Statsig,
|
||||||
StatsigProvider,
|
StatsigProvider,
|
||||||
useGate as useStatsigGate,
|
useGate as useStatsigGate,
|
||||||
} from 'statsig-react'
|
} from 'statsig-react'
|
||||||
|
|
||||||
import {useSession} from '../../state/session'
|
import {useSession} from '../../state/session'
|
||||||
import {sha256} from 'js-sha256'
|
|
||||||
|
|
||||||
const statsigOptions = {
|
const statsigOptions = {
|
||||||
environment: {
|
environment: {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import {ModerationUI} from '@atproto/api'
|
import {ModerationUI} from '@atproto/api'
|
||||||
|
|
||||||
import {describeModerationCause} from '../moderation'
|
import {describeModerationCause} from '../moderation'
|
||||||
|
|
||||||
// \u2705 = ✅
|
// \u2705 = ✅
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {Dimensions} from 'react-native'
|
|
||||||
import {isWeb} from 'platform/detection'
|
import {isWeb} from 'platform/detection'
|
||||||
|
import {Dimensions} from 'react-native'
|
||||||
const {height: SCREEN_HEIGHT} = Dimensions.get('window')
|
const {height: SCREEN_HEIGHT} = Dimensions.get('window')
|
||||||
|
|
||||||
export const embedPlayerSources = [
|
export const embedPlayerSources = [
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import {AppBskyRichtextFacet, RichText} from '@atproto/api'
|
import {AppBskyRichtextFacet, RichText} from '@atproto/api'
|
||||||
|
|
||||||
import {linkRequiresWarning} from './url-helpers'
|
import {linkRequiresWarning} from './url-helpers'
|
||||||
|
|
||||||
export function richTextToString(rt: RichText, loose: boolean): string {
|
export function richTextToString(rt: RichText, loose: boolean): string {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import {RichText, UnicodeString} from '@atproto/api'
|
import {RichText, UnicodeString} from '@atproto/api'
|
||||||
|
|
||||||
import {toShortUrl} from './url-helpers'
|
import {toShortUrl} from './url-helpers'
|
||||||
|
|
||||||
export function shortenLinks(rt: RichText): RichText {
|
export function shortenLinks(rt: RichText): RichText {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {AtUri} from '@atproto/api'
|
import {AtUri} from '@atproto/api'
|
||||||
import {BSKY_SERVICE} from 'lib/constants'
|
import {BSKY_SERVICE} from 'lib/constants'
|
||||||
import TLDs from 'tlds'
|
|
||||||
import psl from 'psl'
|
import psl from 'psl'
|
||||||
|
import TLDs from 'tlds'
|
||||||
|
|
||||||
export const BSKY_APP_HOST = 'https://bsky.app'
|
export const BSKY_APP_HOST = 'https://bsky.app'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import {Dimensions, StyleProp, StyleSheet, TextStyle} from 'react-native'
|
|
||||||
import {Theme, TypographyVariant} from './ThemeContext'
|
|
||||||
import {isWeb} from 'platform/detection'
|
import {isWeb} from 'platform/detection'
|
||||||
|
import {Dimensions, StyleProp, StyleSheet, TextStyle} from 'react-native'
|
||||||
|
|
||||||
|
import {Theme, TypographyVariant} from './ThemeContext'
|
||||||
|
|
||||||
// 1 is lightest, 2 is light, 3 is mid, 4 is dark, 5 is darkest
|
// 1 is lightest, 2 is light, 3 is mid, 4 is dark, 5 is darkest
|
||||||
export const colors = {
|
export const colors = {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
import {Platform} from 'react-native'
|
import {Platform} from 'react-native'
|
||||||
import type {Theme} from './ThemeContext'
|
|
||||||
import {colors} from './styles'
|
|
||||||
|
|
||||||
import {darkPalette, lightPalette, dimPalette} from '#/alf/themes'
|
import {darkPalette, dimPalette, lightPalette} from '#/alf/themes'
|
||||||
|
|
||||||
|
import {colors} from './styles'
|
||||||
|
import type {Theme} from './ThemeContext'
|
||||||
|
|
||||||
export const defaultTheme: Theme = {
|
export const defaultTheme: Theme = {
|
||||||
colorScheme: 'light',
|
colorScheme: 'light',
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {test, expect} from '@jest/globals'
|
import {expect, test} from '@jest/globals'
|
||||||
|
|
||||||
import {sanitizeAppLanguageSetting} from '#/locale/helpers'
|
import {sanitizeAppLanguageSetting} from '#/locale/helpers'
|
||||||
import {AppLanguage} from '#/locale/languages'
|
import {AppLanguage} from '#/locale/languages'
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
import {AppBskyFeedDefs, AppBskyFeedPost} from '@atproto/api'
|
import {AppBskyFeedDefs, AppBskyFeedPost} from '@atproto/api'
|
||||||
|
import * as bcp47Match from 'bcp-47-match'
|
||||||
import lande from 'lande'
|
import lande from 'lande'
|
||||||
import {hasProp} from 'lib/type-guards'
|
import {hasProp} from 'lib/type-guards'
|
||||||
import * as bcp47Match from 'bcp-47-match'
|
|
||||||
import {
|
import {
|
||||||
AppLanguage,
|
AppLanguage,
|
||||||
LANGUAGES_MAP_CODE2,
|
LANGUAGES_MAP_CODE2,
|
||||||
|
|
|
@ -1,23 +1,22 @@
|
||||||
import {useEffect} from 'react'
|
|
||||||
import {i18n} from '@lingui/core'
|
import {i18n} from '@lingui/core'
|
||||||
|
import {useEffect} from 'react'
|
||||||
|
|
||||||
import {useLanguagePrefs} from '#/state/preferences'
|
import {sanitizeAppLanguageSetting} from '#/locale/helpers'
|
||||||
import {messages as messagesEn} from '#/locale/locales/en/messages'
|
import {AppLanguage} from '#/locale/languages'
|
||||||
|
import {messages as messagesCa} from '#/locale/locales/ca/messages'
|
||||||
import {messages as messagesDe} from '#/locale/locales/de/messages'
|
import {messages as messagesDe} from '#/locale/locales/de/messages'
|
||||||
import {messages as messagesId} from '#/locale/locales/id/messages'
|
import {messages as messagesEn} from '#/locale/locales/en/messages'
|
||||||
import {messages as messagesEs} from '#/locale/locales/es/messages'
|
import {messages as messagesEs} from '#/locale/locales/es/messages'
|
||||||
import {messages as messagesFr} from '#/locale/locales/fr/messages'
|
import {messages as messagesFr} from '#/locale/locales/fr/messages'
|
||||||
import {messages as messagesHi} from '#/locale/locales/hi/messages'
|
import {messages as messagesHi} from '#/locale/locales/hi/messages'
|
||||||
|
import {messages as messagesId} from '#/locale/locales/id/messages'
|
||||||
|
import {messages as messagesIt} from '#/locale/locales/it/messages'
|
||||||
import {messages as messagesJa} from '#/locale/locales/ja/messages'
|
import {messages as messagesJa} from '#/locale/locales/ja/messages'
|
||||||
import {messages as messagesKo} from '#/locale/locales/ko/messages'
|
import {messages as messagesKo} from '#/locale/locales/ko/messages'
|
||||||
import {messages as messagesPt_BR} from '#/locale/locales/pt-BR/messages'
|
import {messages as messagesPt_BR} from '#/locale/locales/pt-BR/messages'
|
||||||
import {messages as messagesUk} from '#/locale/locales/uk/messages'
|
import {messages as messagesUk} from '#/locale/locales/uk/messages'
|
||||||
import {messages as messagesCa} from '#/locale/locales/ca/messages'
|
|
||||||
import {messages as messagesZh_CN} from '#/locale/locales/zh-CN/messages'
|
import {messages as messagesZh_CN} from '#/locale/locales/zh-CN/messages'
|
||||||
import {messages as messagesIt} from '#/locale/locales/it/messages'
|
import {useLanguagePrefs} from '#/state/preferences'
|
||||||
|
|
||||||
import {sanitizeAppLanguageSetting} from '#/locale/helpers'
|
|
||||||
import {AppLanguage} from '#/locale/languages'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We do a dynamic import of just the catalog that we need
|
* We do a dynamic import of just the catalog that we need
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue