-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: ZainabImadulla <[email protected]> Co-authored-by: josh-torre <[email protected]> Co-authored-by: Josh T <[email protected]> Co-authored-by: Stone Liu <[email protected]> Co-authored-by: Zainab Imadulla <[email protected]>
- Loading branch information
1 parent
b902257
commit 88397a1
Showing
31 changed files
with
669 additions
and
352 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
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
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 { S3ServiceImpl } from './s3Service'; | ||
|
||
/** | ||
* Will send the list of files to the s3 bucket and return the urls in a list with the same index. | ||
* | ||
* @param files The list of files put into the S3 bucket | ||
*/ | ||
export default async function sendFilesToS3( | ||
files: File[], | ||
): Promise<(string | null)[]> { | ||
let outListURLs = []; | ||
const s3Service = new S3ServiceImpl(); | ||
for (let fileIndex = 0; fileIndex < files.length; fileIndex++) { | ||
outListURLs.push(await s3Service.upload(files[fileIndex])); | ||
} | ||
|
||
return outListURLs; | ||
} |
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
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,32 @@ | ||
import { View, Text } from 'react-native'; | ||
import Button from '../../components/button'; | ||
import { useAuthStore } from '../../auth/authStore'; | ||
import { router } from 'expo-router'; | ||
import PostCreation from '../(postcreation)'; | ||
|
||
const Home = () => { | ||
const { logout, loading, error: authError, isAuthenticated } = useAuthStore(); | ||
|
||
return ( | ||
<View className="flex-1 justify-center items-center"> | ||
<Text className="text-3xl pb-[5%]">Home</Text> | ||
{authError && ( | ||
<Text className="text-red-500"> | ||
Failed to logout. Please try again. | ||
</Text> | ||
)} | ||
<Button | ||
onPress={logout} | ||
textOnly | ||
text={loading ? 'Logging out' : 'Logout'} | ||
/> | ||
<Button | ||
onPress={() => router.push('/(postcreation)')} | ||
textOnly | ||
text="PostCreation" | ||
></Button> | ||
</View> | ||
); | ||
}; | ||
|
||
export default Home; |
This file was deleted.
Oops, something went wrong.
69 changes: 0 additions & 69 deletions
69
frontend/app/(app)/postcreation/components/date-picker.tsx
This file was deleted.
Oops, something went wrong.
88 changes: 0 additions & 88 deletions
88
frontend/app/(app)/postcreation/components/fish-search.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.