-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1344 from andrew-bierman/andrew_testing
Andrew testing
- Loading branch information
Showing
261 changed files
with
14,363 additions
and
1,859 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"expo": { | ||
"name": "packrat-world", | ||
"slug": "packrat-world", | ||
"version": "0.0.1", | ||
"description": "PackRat is the ultimate adventure planner designed for those who love to explore the great outdoors. Our app helps users plan and organize their trips with ease, whether it's a weekend camping trip, a day hike, or a cross-country road trip.", | ||
"sdkVersion": "50.0.0", | ||
"platforms": [ | ||
"ios", | ||
"android", | ||
"web" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
apps/expo/app/(app)/(drawer)/(tabs)/(stack)/pack-templates/[id].tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React from 'react'; | ||
import { Platform } from 'react-native'; | ||
import { Stack } from 'expo-router'; | ||
import Head from 'expo-router/head'; | ||
import useTheme from 'app/hooks/useTheme'; | ||
import { DrawerToggleButton } from '@react-navigation/drawer'; | ||
import { PackTemplateDetailsScreen } from 'app/modules/pack-templates'; | ||
|
||
export default function Pack() { | ||
const { currentTheme } = useTheme(); | ||
|
||
return ( | ||
<> | ||
{Platform.OS === 'web' && ( | ||
<Head> | ||
<title>Pack Template</title> | ||
<meta name="description" content="Pack Template" /> | ||
</Head> | ||
)} | ||
<Stack.Screen | ||
options={{ | ||
// https://reactnavigation.org/docs/headers#setting-the-header-title | ||
title: 'Pack Template', | ||
headerRight: () => ( | ||
<DrawerToggleButton tintColor={currentTheme.colors.tertiaryBlue} /> | ||
), | ||
|
||
headerStyle: { | ||
backgroundColor: currentTheme.colors.background, | ||
}, | ||
headerTitleStyle: { | ||
fontSize: 24, | ||
}, | ||
headerTintColor: currentTheme.colors.tertiaryBlue, | ||
// https://reactnavigation.org/docs/headers#adjusting-header-styles | ||
|
||
// https://reactnavigation.org/docs/headers#replacing-the-title-with-a-custom-component | ||
}} | ||
/> | ||
<PackTemplateDetailsScreen /> | ||
</> | ||
); | ||
} |
43 changes: 43 additions & 0 deletions
43
apps/expo/app/(app)/(drawer)/(tabs)/(stack)/pack-templates/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React from 'react'; | ||
import { FeedScreen } from 'app/modules/feed'; | ||
import { Platform } from 'react-native'; | ||
import { Stack } from 'expo-router'; | ||
import Head from 'expo-router/head'; | ||
import useTheme from 'app/hooks/useTheme'; | ||
import { DrawerToggleButton } from '@react-navigation/drawer'; | ||
|
||
export default function PackTemplates() { | ||
const { currentTheme } = useTheme(); | ||
|
||
return ( | ||
<> | ||
{Platform.OS === 'web' && ( | ||
<Head> | ||
<title>Pack Templates</title> | ||
</Head> | ||
)} | ||
<Stack.Screen | ||
options={{ | ||
// https://reactnavigation.org/docs/headers#setting-the-header-title | ||
title: 'Pack Templates', | ||
headerRight: () => ( | ||
<DrawerToggleButton tintColor={currentTheme.colors.tertiaryBlue} /> | ||
), | ||
|
||
headerStyle: { | ||
backgroundColor: currentTheme.colors.background, | ||
}, | ||
headerTitleStyle: { | ||
fontSize: 24, | ||
}, | ||
headerTintColor: currentTheme.colors.tertiaryBlue, | ||
|
||
// https://reactnavigation.org/docs/headers#adjusting-header-styles | ||
|
||
// https://reactnavigation.org/docs/headers#replacing-the-title-with-a-custom-component | ||
}} | ||
/> | ||
<FeedScreen feedType="packTemplates" /> | ||
</> | ||
); | ||
} |
42 changes: 42 additions & 0 deletions
42
apps/expo/app/(app)/(drawer)/(tabs)/(stack)/products/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from 'react'; | ||
import { ProductsScreen } from 'app/modules/item'; | ||
import { Platform } from 'react-native'; | ||
import { Stack } from 'expo-router'; | ||
import Head from 'expo-router/head'; | ||
import useTheme from 'app/hooks/useTheme'; | ||
import { DrawerToggleButton } from '@react-navigation/drawer'; | ||
|
||
export default function ProductsPage() { | ||
const { currentTheme } = useTheme(); | ||
|
||
return ( | ||
<> | ||
{Platform.OS === 'web' && ( | ||
<Head> | ||
<title>Products</title> | ||
</Head> | ||
)} | ||
<Stack.Screen | ||
options={{ | ||
// https://reactnavigation.org/docs/headers#setting-the-header-title | ||
title: 'Products', | ||
headerRight: () => ( | ||
<DrawerToggleButton tintColor={currentTheme.colors.tertiaryBlue} /> | ||
), | ||
|
||
headerStyle: { | ||
backgroundColor: currentTheme.colors.background, | ||
}, | ||
headerTitleStyle: { | ||
fontSize: 24, | ||
}, | ||
headerTintColor: currentTheme.colors.tertiaryBlue, | ||
// https://reactnavigation.org/docs/headers#adjusting-header-styles | ||
|
||
// https://reactnavigation.org/docs/headers#replacing-the-title-with-a-custom-component | ||
}} | ||
/> | ||
<ProductsScreen /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import LandingPage from 'app/components/landing_page'; | ||
import { ConnectionGate } from 'app/components/ConnectionGate'; | ||
import { Redirect } from 'expo-router'; | ||
|
||
export default function Entry() { | ||
return ( | ||
<> | ||
<ConnectionGate mode="connected"> | ||
<LandingPage /> | ||
</ConnectionGate> | ||
<ConnectionGate mode="offline"> | ||
<Redirect href="offline/maps" /> | ||
</ConnectionGate> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
import { OfflineTabs } from 'app/components/navigation/OfflineTabs'; | ||
import { useUserInOfflineMode } from 'app/modules/auth'; | ||
import { Redirect } from 'expo-router'; | ||
import { SafeArea } from 'app/provider/safe-area'; | ||
|
||
export default function OfflineLayout() { | ||
const { isLoading } = useUserInOfflineMode(); | ||
if (isLoading) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<SafeArea> | ||
<OfflineTabs /> | ||
</SafeArea> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import { Stack } from 'expo-router'; | ||
import { OfflineMapsScreen } from 'app/modules/map/screens/OfflineMapsScreen'; | ||
import { EmptyState } from '@packrat/ui'; | ||
import { MapPin } from '@tamagui/lucide-icons'; | ||
import { OfflineMessage } from 'app/components/OfflineMessage'; | ||
|
||
export default function OfflineMaps() { | ||
return ( | ||
<> | ||
<Stack.Screen | ||
options={{ | ||
title: 'Map', | ||
}} | ||
/> | ||
<OfflineMessage /> | ||
<OfflineMapsScreen | ||
fallback={ | ||
<EmptyState | ||
icon={<MapPin size={32} />} | ||
text="No maps available. Connect to the network to add maps." | ||
/> | ||
} | ||
/> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { Stack } from 'expo-router'; | ||
import { FeedScreen } from 'app/modules/feed'; | ||
import { OfflineMessage } from 'app/components/OfflineMessage'; | ||
|
||
export default function OfflineMaps() { | ||
return ( | ||
<> | ||
<Stack.Screen | ||
options={{ | ||
title: 'Packs', | ||
headerShown: false, | ||
}} | ||
/> | ||
<OfflineMessage /> | ||
<FeedScreen feedType="userPacks" listStyle={{ paddingTop: 50 }} /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { PackTemplateDetailsScreen } from 'app/modules/pack-templates'; | ||
import { AuthWrapper } from 'app/modules/auth'; | ||
|
||
// export const runtime = 'experimental-edge' | ||
|
||
function PackTemplate() { | ||
return ( | ||
<> | ||
<PackTemplateDetailsScreen /> | ||
</> | ||
); | ||
} | ||
|
||
export default PackTemplate; | ||
|
||
PackTemplate.getLayout = function getLayout(page: any) { | ||
return <AuthWrapper>{page}</AuthWrapper>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import { FeedScreen } from 'app/modules/feed'; | ||
import { AuthWrapper } from 'app/modules/auth'; | ||
|
||
// export const runtime = 'experimental-edge' | ||
|
||
function PackTemplates() { | ||
return <FeedScreen feedType="packTemplates" />; | ||
} | ||
|
||
export default PackTemplates; | ||
|
||
PackTemplates.getLayout = function getLayout(page: any) { | ||
return <AuthWrapper>{page}</AuthWrapper>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ProductsScreen } from 'app/modules/item'; | ||
import { AuthWrapper } from 'app/modules/auth'; | ||
// export const runtime = 'experimental-edge'; | ||
|
||
export default function ProductsPage() { | ||
return ( | ||
<> | ||
<ProductsScreen /> | ||
</> | ||
); | ||
} | ||
|
||
ProductsPage.getLayout = function getLayout(page: any) { | ||
return <AuthWrapper>{page}</AuthWrapper>; | ||
}; |
Oops, something went wrong.