From b43717579ef3025cb52b04ff9ffc125111eada9b Mon Sep 17 00:00:00 2001 From: Astrol99 Date: Tue, 15 Apr 2025 02:07:16 -0500 Subject: [PATCH 001/100] init: template --- longhorn-studies/.gitignore | 33 +- longhorn-studies/.npmrc | 1 + longhorn-studies/App.tsx | 20 - longhorn-studies/app-env.d.ts | 2 + longhorn-studies/app.json | 45 +- longhorn-studies/app/+html.tsx | 46 + longhorn-studies/app/+not-found.tsx | 24 + longhorn-studies/app/_layout.tsx | 7 + longhorn-studies/app/details.tsx | 17 + longhorn-studies/app/index.tsx | 19 + longhorn-studies/assets/splash-icon.png | Bin 17547 -> 0 bytes longhorn-studies/assets/splash.png | Bin 0 -> 47346 bytes longhorn-studies/babel.config.js | 10 + longhorn-studies/cesconfig.json | 44 + longhorn-studies/components/Button.tsx | 22 + longhorn-studies/components/Container.tsx | 9 + .../components/EditScreenInfo.tsx | 29 + longhorn-studies/components/ScreenContent.tsx | 25 + longhorn-studies/eas.json | 21 + longhorn-studies/global.css | 3 + longhorn-studies/index.ts | 8 - longhorn-studies/metro.config.js | 9 + longhorn-studies/package-lock.json | 11374 ---------------- longhorn-studies/package.json | 69 +- longhorn-studies/pnpm-lock.yaml | 10554 ++++++++++++++ longhorn-studies/prettier.config.js | 10 + longhorn-studies/store/store.ts | 15 + longhorn-studies/supabaseClient.ts | 6 - longhorn-studies/tailwind.config.js | 4 +- longhorn-studies/tsconfig.json | 11 +- longhorn-studies/utils/supabase.ts | 14 + longhorn-studies/yarn.lock | 6622 --------- 32 files changed, 10984 insertions(+), 18089 deletions(-) create mode 100644 longhorn-studies/.npmrc delete mode 100644 longhorn-studies/App.tsx create mode 100644 longhorn-studies/app-env.d.ts create mode 100644 longhorn-studies/app/+html.tsx create mode 100644 longhorn-studies/app/+not-found.tsx create mode 100644 longhorn-studies/app/_layout.tsx create mode 100644 longhorn-studies/app/details.tsx create mode 100644 longhorn-studies/app/index.tsx delete mode 100644 longhorn-studies/assets/splash-icon.png create mode 100644 longhorn-studies/assets/splash.png create mode 100644 longhorn-studies/babel.config.js create mode 100644 longhorn-studies/cesconfig.json create mode 100644 longhorn-studies/components/Button.tsx create mode 100644 longhorn-studies/components/Container.tsx create mode 100644 longhorn-studies/components/EditScreenInfo.tsx create mode 100644 longhorn-studies/components/ScreenContent.tsx create mode 100644 longhorn-studies/eas.json create mode 100644 longhorn-studies/global.css delete mode 100644 longhorn-studies/index.ts create mode 100644 longhorn-studies/metro.config.js delete mode 100644 longhorn-studies/package-lock.json create mode 100644 longhorn-studies/pnpm-lock.yaml create mode 100644 longhorn-studies/prettier.config.js create mode 100644 longhorn-studies/store/store.ts delete mode 100644 longhorn-studies/supabaseClient.ts create mode 100644 longhorn-studies/utils/supabase.ts delete mode 100644 longhorn-studies/yarn.lock diff --git a/longhorn-studies/.gitignore b/longhorn-studies/.gitignore index d16e1ef..1861e08 100644 --- a/longhorn-studies/.gitignore +++ b/longhorn-studies/.gitignore @@ -1,36 +1,25 @@ -# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files - -# dependencies node_modules/ - -# Expo .expo/ dist/ -web-build/ -expo-env.d.ts - -# Native -*.orig.* +npm-debug.* *.jks *.p8 *.p12 *.key *.mobileprovision +*.orig.* +web-build/ +# expo router +expo-env.d.ts -# Metro -.metro-health-check* +# firebase/supabase/vexo +.env -# debug -npm-debug.* -yarn-debug.* -yarn-error.* +ios +android # macOS .DS_Store -*.pem - -# local env files -.env*.local -# typescript -*.tsbuildinfo +# Temporary files created by Metro to check the health of the file watcher +.metro-health-check* \ No newline at end of file diff --git a/longhorn-studies/.npmrc b/longhorn-studies/.npmrc new file mode 100644 index 0000000..cc8df9d --- /dev/null +++ b/longhorn-studies/.npmrc @@ -0,0 +1 @@ +node-linker=hoisted \ No newline at end of file diff --git a/longhorn-studies/App.tsx b/longhorn-studies/App.tsx deleted file mode 100644 index 0329d0c..0000000 --- a/longhorn-studies/App.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { StatusBar } from 'expo-status-bar'; -import { StyleSheet, Text, View } from 'react-native'; - -export default function App() { - return ( - - Open up App.tsx to start working on your app! - - - ); -} - -const styles = StyleSheet.create({ - container: { - flex: 1, - backgroundColor: '#fff', - alignItems: 'center', - justifyContent: 'center', - }, -}); diff --git a/longhorn-studies/app-env.d.ts b/longhorn-studies/app-env.d.ts new file mode 100644 index 0000000..88dc403 --- /dev/null +++ b/longhorn-studies/app-env.d.ts @@ -0,0 +1,2 @@ +// @ts-ignore +/// diff --git a/longhorn-studies/app.json b/longhorn-studies/app.json index ea9a9c4..915f8fc 100644 --- a/longhorn-studies/app.json +++ b/longhorn-studies/app.json @@ -3,29 +3,54 @@ "name": "longhorn-studies", "slug": "longhorn-studies", "version": "1.0.0", + "scheme": "longhorn-studies", + "web": { + "bundler": "metro", + "output": "static", + "favicon": "./assets/favicon.png" + }, + "plugins": [ + "expo-router", + [ + "expo-dev-launcher", + { + "launchMode": "most-recent" + } + ] + ], + "experiments": { + "typedRoutes": true, + "tsconfigPaths": true + }, "orientation": "portrait", "icon": "./assets/icon.png", "userInterfaceStyle": "light", - "newArchEnabled": true, "splash": { - "image": "./assets/splash-icon.png", + "image": "./assets/splash.png", "resizeMode": "contain", "backgroundColor": "#ffffff" }, + "assetBundlePatterns": [ + "**/*" + ], "ios": { - "supportsTablet": true + "supportsTablet": true, + "bundleIdentifier": "com.astrol.longhornstudies" }, "android": { "adaptiveIcon": { "foregroundImage": "./assets/adaptive-icon.png", "backgroundColor": "#ffffff" - } + }, + "package": "com.astrol.longhornstudies" }, - "web": { - "favicon": "./assets/favicon.png" - }, - "plugins": [ - "expo-secure-store" - ] + "extra": { + "router": { + "origin": false + }, + "eas": { + "projectId": "d0effcda-ca19-4b03-ab11-0d0b955619ca" + } + } } } diff --git a/longhorn-studies/app/+html.tsx b/longhorn-studies/app/+html.tsx new file mode 100644 index 0000000..2fe2848 --- /dev/null +++ b/longhorn-studies/app/+html.tsx @@ -0,0 +1,46 @@ +import { ScrollViewStyleReset } from 'expo-router/html'; + +// This file is web-only and used to configure the root HTML for every +// web page during static rendering. +// The contents of this function only run in Node.js environments and +// do not have access to the DOM or browser APIs. +export default function Root({ children }: { children: React.ReactNode }) { + return ( + + + + + + {/* + This viewport disables scaling which makes the mobile website act more like a native app. + However this does reduce built-in accessibility. If you want to enable scaling, use this instead: + + */} + + {/* + Disable body scrolling on web. This makes ScrollView components work closer to how they do on native. + However, body scrolling is often nice to have for mobile web. If you want to enable it, remove this line. + */} + + + {/* Using raw CSS styles as an escape-hatch to ensure the background color never flickers in dark-mode. */} +