Skip to content

Commit

Permalink
Deploy v0 of website
Browse files Browse the repository at this point in the history
  • Loading branch information
sidlak-c137 committed Oct 2, 2023
1 parent 2aa6a93 commit 2f1f18c
Show file tree
Hide file tree
Showing 150 changed files with 3,882 additions and 4,418 deletions.
5 changes: 0 additions & 5 deletions .firebaserc

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/deploy-pr.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/deploy-v2.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/deploy.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/js.yml

This file was deleted.

117 changes: 15 additions & 102 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,123 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/src/back_end/node_modules
node_modules
package-lock.json
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
.vscode
*.pem

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

package-lock.json
yarn.lock

# Created by https://www.toptal.com/developers/gitignore/api/intellij+all
# Edit at https://www.toptal.com/developers/gitignore?templates=intellij+all

### Intellij+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### Intellij+all Patch ###
# Ignore everything but code style settings and run configurations
# that are supposed to be shared within teams.

.idea/*

!.idea/codeStyles
!.idea/runConfigurations
# local env files
.env*.local

.firebase
# vercel
.vercel

# End of https://www.toptal.com/developers/gitignore/api/intellij+all
# typescript
*.tsbuildinfo
12 changes: 8 additions & 4 deletions frontend-v2/Context/AuthContext.tsx → Context/AuthContext.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
import { createContext, useContext, useEffect, useState } from "react"

import { GithubAuthProvider, GoogleAuthProvider, signInWithPopup } from "firebase/auth"
import { auth } from "back_end/utils"
import { GoogleAuthProvider, signInWithPopup } from "firebase/auth"
// @ts-ignore
import { auth } from "@/back_end/utils"

// @ts-ignore
import { checkAdmin } from "@/utils/api";


const AuthContext = createContext<any>({})
// rome-ignore lint/suspicious/noExplicitAny: <explanation>
const AuthContext = createContext<any>({})

export const useAuth = () => useContext(AuthContext)
export const AuthContextProvider = ({children}: {children:React.ReactNode}) => {

const provider = new GoogleAuthProvider();
provider.setCustomParameters({ prompt: 'select_account' });

// rome-ignore lint/suspicious/noExplicitAny: <explanation>
const [currentUser, setCurrentUser] = useState<any>(null)
const [isAdmin, setAdmin] = useState(false)
const [loading, setLoading] = useState(true)
Expand All @@ -36,7 +39,8 @@ export const AuthContextProvider = ({children}: {children:React.ReactNode}) => {

useEffect(() => {

const unsubscribe = auth.onAuthStateChanged(async user => {
// rome-ignore lint/suspicious/noExplicitAny: <explanation>
const unsubscribe = auth.onAuthStateChanged(async (user: any) => {
setCurrentUser(user)
if (user) {
setAdmin(await checkAdmin(user))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 12 additions & 15 deletions frontend-v2/components/AdminForm.tsx → components/AdminForm.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import React, { useEffect, useRef, useState } from "react";
import React, { useEffect, useState } from "react";
import {
Box,
Button,
Divider,
Heading,
FormControl,
FormLabel,
Input,
Textarea,
VStack,
Flex,
Grid,
Spacer
} from "@chakra-ui/react";

import {
Expand All @@ -22,14 +16,17 @@ import {
personTemplate,
projectTemplate,
Value
} from "../pages/admin";

import * as ImageService from "../back_end/api/image.js"
import * as EventService from "../back_end/api/events.js"
import * as LeadService from "../back_end/api/leads.js"
import * as ProjectService from "../back_end/api/projects.js"

import { connectStorageEmulator } from "firebase/storage";
// @ts-ignore
} from "@/devpages/admin";

// @ts-ignore
import * as ImageService from "@/back_end/api/image.js"
// @ts-ignore
import * as EventService from "@/back_end/api/events.js"
// @ts-ignore
import * as LeadService from "@/back_end/api/leads.js"
// @ts-ignore
import * as ProjectService from "@/back_end/api/projects.js"

type _Item = _Person | _Project | _Event;

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
Flex,
Text,
VStack,
Spacer,
} from "@chakra-ui/react";

interface IEventPanel {
Expand Down
File renamed without changes.
Loading

0 comments on commit 2f1f18c

Please sign in to comment.