Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c195f25
Setting up GitHub Classroom Feedback
github-classroom[bot] Nov 9, 2024
9314d88
add deadline
github-classroom[bot] Nov 9, 2024
499d154
initial commit
octomaanav Nov 9, 2024
36c79ee
folder structure made
octomaanav Nov 9, 2024
4673f12
improved Boilerplate structure
KDT2006 Nov 9, 2024
d3ddb2d
basic user page
octomaanav Nov 9, 2024
4341208
Merge branch 'main' of https://github.com/UBH-Fall-2024/ub-hacking-cr…
octomaanav Nov 9, 2024
dac7cad
Finished users page
octomaanav Nov 9, 2024
7e88eec
basic user page designed
octomaanav Nov 9, 2024
c5af558
User Queue style change
KDT2006 Nov 9, 2024
7a953b1
Auth Page done
KDT2006 Nov 9, 2024
99b02eb
finished admin screen
octomaanav Nov 9, 2024
eb44289
Merge branch 'main' of https://github.com/UBH-Fall-2024/ub-hacking-cr…
octomaanav Nov 9, 2024
b2939cc
Colors changed
octomaanav Nov 9, 2024
2f17092
Navigation and Minor fixes
KDT2006 Nov 10, 2024
f6a7d0e
Navigation fix
KDT2006 Nov 10, 2024
2e70fcf
I dont fucking know
octomaanav Nov 10, 2024
78300eb
Supabase
KDT2006 Nov 10, 2024
ef4a5e6
IDK
octomaanav Nov 10, 2024
201fb92
I DID MOST OF THE WORK! -- Student Working && TA Pending
KDT2006 Nov 10, 2024
37d9dfb
Merge branch 'main' of https://github.com/UBH-Fall-2024/ub-hacking-cr…
octomaanav Nov 10, 2024
861dd50
Working for TAs as well
KDT2006 Nov 10, 2024
56323cd
Merge branch 'main' of https://github.com/UBH-Fall-2024/ub-hacking-cr…
octomaanav Nov 10, 2024
9f65757
final
octomaanav Nov 10, 2024
8cac507
Final
KDT2006 Nov 10, 2024
a8ae8b6
Improved Navigation flow, Added custom component for alert
KDT2006 Nov 28, 2024
a826264
Upgraded Expo SDK(New Arch), Added autolab oauth and supabase integra…
KDT2006 Dec 20, 2024
d9a1a86
Basic font-fetching and usage
KDT2006 Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-22041afd0340ce965d47ae6ef1cefeee28c7c493a6346c4f15d667ab976d596c.svg)](https://classroom.github.com/a/_U2QbDVP)
38 changes: 38 additions & 0 deletions TAQ/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

# dependencies
node_modules/

# Expo
.expo/
dist/
web-build/

# Native
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision

# Metro
.metro-health-check*

# debug
npm-debug.*
yarn-debug.*
yarn-error.*

# macOS
.DS_Store
*.pem

# local env files
.env*.local

# typescript
*.tsbuildinfo

# android bundle
android/
49 changes: 49 additions & 0 deletions TAQ/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import { useEffect, useState } from "react";
import Navigation from "./Navigation";
import * as Font from "expo-font";

export default function App() {
const [fontsLoaded, setFontsLoaded] = useState(false);

// MESS WITH IT LATER..
// const isReady = useSplashScreen(async () => {
// // Simulate loading assets or initialization
// await new Promise((resolve) => setTimeout(resolve, 2000));

// // Load fonts here
// });

// if (!isReady) {
// return null; // Render nothing while the app is preparing
// }

useEffect(() => {
// Load fonts here for now(later in splashScreen)
const loadFonts = async () => {
await Font.loadAsync({
// Poppins
"Poppins-Regular": require("./assets/fonts/Poppins/Poppins-Regular.ttf"),
"Poppins-Medium": require("./assets/fonts/Poppins/Poppins-Medium.ttf"),
"Poppins-Bold": require("./assets/fonts/Poppins/Poppins-Bold.ttf"),

// Montserrat
"Montserrat-Regular": require("./assets/fonts/Montserrat/Montserrat-Regular.ttf"),
"Montserrat-Medium": require("./assets/fonts/Montserrat/Montserrat-Medium.ttf"),
"Montserrat-Bold": require("./assets/fonts/Montserrat/Montserrat-Bold.ttf"),
});
};

loadFonts()
.then(() => {
setFontsLoaded(true);
console.log("Fonts loaded");
})
.catch((err) => console.warn(err));
}, []);

if (!fontsLoaded) {
return null;
}

return <Navigation />;
}
72 changes: 72 additions & 0 deletions TAQ/Navigation.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import * as React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Home from "./screens/Home";
import Locations from "./screens/Locations";
import Auth from "./screens/Auth";
import StudentAdd from "./screens/StudentAdd";
import ClassQueue from "./screens/ClassQueue";
import { Colors } from "./config/Colors";
import { Platform, Text, View } from "react-native";
import * as linking from "expo-linking";

const Stack = createNativeStackNavigator();

const prefix = linking.createURL("/");

function RootStack() {
return (
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name="Auth" component={Auth} />
<Stack.Screen
name="Courses"
component={Home}
options={{
animation: "slide_from_bottom",
headerBackButtonMenuEnabled: false,
gestureEnabled: false,
}}
/>
<Stack.Screen
name="Location"
component={Locations}
options={{
animation: Platform.OS === "ios" ? "ios_from_right" : "fade",
}}
/>
<Stack.Screen
name="SQueue"
component={StudentAdd}
options={{
animation: Platform.OS === "ios" ? "ios_from_right" : "fade",
}}
/>
<Stack.Screen
name="Queue"
component={ClassQueue}
options={{
animation: Platform.OS === "ios" ? "ios_from_right" : "fade",
}}
/>
</Stack.Navigator>
);
}

export default function Navigation() {
const linking = {
prefixes: [prefix],
// config: {
// screens: {
// Auth: "auth",
// },
// },
};

return (
<View style={{ backgroundColor: Colors.Background, flex: 1 }}>
<NavigationContainer linking={linking} fallback={<Text>Loading...</Text>}>
<RootStack />
</NavigationContainer>
</View>
);
}
34 changes: 34 additions & 0 deletions TAQ/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"expo": {
"name": "TAQ",
"slug": "TAQ",
"version": "1.0.0",
"newArchEnabled": true,
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.kdt_2006.TAQ"
},
"web": {
"favicon": "./assets/favicon.png"
},
"scheme": "nextup",
"plugins": [
"expo-secure-store",
"expo-font"
]
}
}
Binary file added TAQ/assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions TAQ/assets/data/courses.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export default courses = [
{
id: 1,
created_at: "2023-10-01T08:15:32",
name: "Systems Programming",
code: "CSE 220",
location: ["Carl’s Corner"],
},
{
id: 2,
created_at: "2023-10-01T09:20:18",
name: "Data Structures and Algorithms",
code: "CSE 250",
location: ["Davis 113Y", "Baldy 21", "Norton 250"],
},
];
Binary file added TAQ/assets/data/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions TAQ/assets/data/queues.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added TAQ/assets/data/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TAQ/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TAQ/assets/fonts/Montserrat/Montserrat-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
93 changes: 93 additions & 0 deletions TAQ/assets/fonts/Montserrat/OFL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2024 The Montserrat.Git Project Authors (https://github.com/JulietaUla/Montserrat.git)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Loading