Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Oct 15, 2023
2 parents 3a7eac4 + 8620245 commit f1337af
Show file tree
Hide file tree
Showing 25 changed files with 361 additions and 94 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ VITE_BASHAWAY_BE_URL=https://api.staging.bashaway.sliitfoss.org
VITE_FIREBASE_CONFIG=
VITE_AZURE_UPLOAD_SAS_TOKEN=
VITE_AZURE_DOWNLOAD_SAS_TOKEN=
VITE_AZURE_GENERIC_UPLOAD_SAS_TOKEN=
VITE_AZURE_STORAGE_ACCOUNT=
VITE_AZURE_GENERIC_STORAGE_ACCOUNT=
VITE_AZURE_STORAGE_CONTAINER=
VITE_APP_ENV=local
VITE_SENTRY_DSN=
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
VITE_FIREBASE_CONFIG: ${{ secrets.STAGING_FIREBASE_CONFIG }}
VITE_AZURE_UPLOAD_SAS_TOKEN: ${{ secrets.STAGING_AZURE_UPLOAD_SAS_TOKEN }}
VITE_AZURE_DOWNLOAD_SAS_TOKEN: ${{ secrets.STAGING_AZURE_DOWNLOAD_SAS_TOKEN }}
VITE_AZURE_GENERIC_UPLOAD_SAS_TOKEN: ${{ secrets.STAGING_AZURE_GENERIC_UPLOAD_SAS_TOKEN }}
VITE_AZURE_STORAGE_ACCOUNT: ${{ secrets.STAGING_AZURE_STORAGE_ACCOUNT }}
VITE_AZURE_GENERIC_STORAGE_ACCOUNT: ${{ secrets.STAGING_AZURE_GENERIC_STORAGE_ACCOUNT }}
VITE_AZURE_STORAGE_CONTAINER: ${{ secrets.STAGING_AZURE_STORAGE_CONTAINER }}
VITE_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
VITE_APP_ENV: staging
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
VITE_FIREBASE_CONFIG: ${{ secrets.STAGING_FIREBASE_CONFIG }}
VITE_AZURE_UPLOAD_SAS_TOKEN: ${{ secrets.STAGING_AZURE_UPLOAD_SAS_TOKEN }}
VITE_AZURE_DOWNLOAD_SAS_TOKEN: ${{ secrets.STAGING_AZURE_DOWNLOAD_SAS_TOKEN }}
VITE_AZURE_GENERIC_UPLOAD_SAS_TOKEN: ${{ secrets.STAGING_AZURE_GENERIC_UPLOAD_SAS_TOKEN }}
VITE_AZURE_STORAGE_ACCOUNT: ${{ secrets.STAGING_AZURE_STORAGE_ACCOUNT }}
VITE_AZURE_GENERIC_STORAGE_ACCOUNT: ${{ secrets.STAGING_AZURE_GENERIC_STORAGE_ACCOUNT }}
VITE_AZURE_STORAGE_CONTAINER: ${{ secrets.STAGING_AZURE_STORAGE_CONTAINER }}
VITE_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
VITE_APP_ENV: staging
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bashaway-event-portal",
"version": "2.0.0",
"version": "2.1.0",
"scripts": {
"dev": "vite",
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build",
Expand All @@ -13,7 +13,7 @@
"@azure/storage-blob": "12.15.0",
"@reduxjs/toolkit": "1.9.5",
"@sentry/react": "7.69.0",
"@sliit-foss/bashaway-ui": "0.5.4",
"@sliit-foss/bashaway-ui": "0.10.3",
"async-mutex": "^0.4.0",
"firebase": "10.2.0",
"framer-motion": "10.14.0",
Expand All @@ -22,7 +22,6 @@
"lucide-react": "0.263.1",
"moment-timezone": "0.5.43",
"react": "18.0.0",
"react-countdown": "2.3.5",
"react-dom": "18.0.0",
"react-icons": "4.10.1",
"react-loader-spinner": "5.3.4",
Expand Down
94 changes: 76 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion src/app.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Suspense, lazy } from "react";
import { Provider } from "react-redux";
import { useLocation } from "react-router-dom";
import { motion } from "framer-motion";
Expand All @@ -7,6 +8,8 @@ import { default as AnimatedRoutes } from "@/routes";
import { store } from "@/store";
import { ErrorBoundary, Loader, Toaster, TooltipProvider } from "@sliit-foss/bashaway-ui/components";

const IdentificationForm = lazy(() => import("@/components/identification-form"));

const App = () => {
const location = useLocation();
const completed = useAuth();
Expand All @@ -17,7 +20,7 @@ const App = () => {
<Header />
<motion.main
key={location.pathname}
className="w-full max-w-body mx-auto px-8 lg:px-24 flex flex-col items-center relative z-[5] font-inter break-words overflow-x-hidden pt-[calc(70px+64px)] xs:pt-[calc(90px+64px)] pb-[64px]"
className="w-full max-w-body mx-auto px-8 lg:px-24 flex flex-col items-center relative z-[5] font-inter break-words overflow-x-hidden pt-[calc(70px+64px)] xs:pt-[calc(86px+64px)] pb-[64px]"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0, transition: { duration: 0.3 } }}
Expand All @@ -28,6 +31,9 @@ const App = () => {
<Footer />
<Loader />
<Toaster />
<Suspense>
<IdentificationForm />
</Suspense>
<div
className={`fixed inset-0 h-screen w-full bg-white z-50 transition-all duration-long ${
completed ? "opacity-0 pointer-events-none" : "opacity-100"
Expand Down
1 change: 0 additions & 1 deletion src/components/home/index.jsx
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default as Timer } from "./timer";
export * from "./question";
2 changes: 1 addition & 1 deletion src/components/home/question/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useMemo } from "react";
import { CheckCircle2, XCircle } from "lucide-react";
import { default as ReactMarkdown } from "react-markdown";
import { Link } from "react-router-dom";
import { startCase } from "lodash";
import { default as startCase } from "lodash/startCase";
import { twMerge } from "tailwind-merge";
import { challengeColor } from "@/utils";
import { Tooltip, TooltipContent, TooltipTrigger } from "@sliit-foss/bashaway-ui/components";
Expand Down
50 changes: 0 additions & 50 deletions src/components/home/timer.jsx

This file was deleted.

Loading

0 comments on commit f1337af

Please sign in to comment.