Skip to content

Commit ce19941

Browse files
shubham-1806ZaBarudovigneshd332
authored
Feat : Home,commit history,dc modal (#10)
* feat(Homepage,Commitpage) : Added commit history and home page designs * feat: Change Navbar, SideBar and Add Profile Page * fix : Signup bug (#9) * feat: Change Navbar, SideBar and Add Profile Page * fix: fix sign up bug in navbar Co-authored-by: zabarudo <smartkevin2003@gmail.com> * fix:Final Changes * fix : dependencies issues * fix : Add yarn.lock * fix : lint issues * fix : remove unnecessary imports * fix : add react-code-blocks * Fix(homePage,CommitPage) : Required changes * fix : Minor changes * Fix : load commit and minor styling * Fix(UI) : styles and bgEffect * Fix : add types for modal and imports for assets * update: mock api url (#14) Co-authored-by: zabarudo <smartkevin2003@gmail.com> Co-authored-by: Vignesh Duraisamy <vigneshd332@gmail.com>
1 parent 1b24094 commit ce19941

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1664
-1071
lines changed

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
});
3939
}
4040
</script>
41+
<script>const global = globalThis;</script>
4142
<script type="module" src="/src/main.tsx"></script>
4243
</body>
4344

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"react-ace": "^10.1.0",
4747
"react-ansi": "^3.0.2",
4848
"react-bootstrap": "^2.7.0",
49+
"react-code-blocks": "^0.0.9-0",
4950
"react-dom": "^18.2.0",
5051
"react-flags-select": "^2.2.3",
5152
"react-google-recaptcha": "^2.1.0",

packages/client/src/models/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const AuthStatusResponseStatusEnum = {
3636
ActivationPending: 'ACTIVATION_PENDING',
3737
} as const;
3838
export type AuthStatusResponseStatusEnum =
39-
typeof AuthStatusResponseStatusEnum[keyof typeof AuthStatusResponseStatusEnum];
39+
(typeof AuthStatusResponseStatusEnum)[keyof typeof AuthStatusResponseStatusEnum];
4040

4141
/**
4242
*
@@ -46,7 +46,7 @@ export const ChallengeType = {
4646
Code: 'CODE',
4747
Map: 'MAP',
4848
} as const;
49-
export type ChallengeType = typeof ChallengeType[keyof typeof ChallengeType];
49+
export type ChallengeType = (typeof ChallengeType)[keyof typeof ChallengeType];
5050

5151
/**
5252
* Code model
@@ -447,7 +447,7 @@ export const GameStatus = {
447447
Executed: 'EXECUTED',
448448
ExecuteError: 'EXECUTE_ERROR',
449449
} as const;
450-
export type GameStatus = typeof GameStatus[keyof typeof GameStatus];
450+
export type GameStatus = (typeof GameStatus)[keyof typeof GameStatus];
451451

452452
/**
453453
* Model for Generic Error
@@ -473,7 +473,7 @@ export const Language = {
473473
Java: 'JAVA',
474474
Python: 'PYTHON',
475475
} as const;
476-
export type Language = typeof Language[keyof typeof Language];
476+
export type Language = (typeof Language)[keyof typeof Language];
477477

478478
/**
479479
* Leaderboard entry model
@@ -553,7 +553,7 @@ export const MatchMode = {
553553
Manual: 'MANUAL',
554554
Auto: 'AUTO',
555555
} as const;
556-
export type MatchMode = typeof MatchMode[keyof typeof MatchMode];
556+
export type MatchMode = (typeof MatchMode)[keyof typeof MatchMode];
557557

558558
/**
559559
* Notification model
@@ -932,4 +932,4 @@ export const Verdict = {
932932
Player2: 'PLAYER2',
933933
Tie: 'TIE',
934934
} as const;
935-
export type Verdict = typeof Verdict[keyof typeof Verdict];
935+
export type Verdict = (typeof Verdict)[keyof typeof Verdict];

public/assets/DownArrow.svg

Lines changed: 3 additions & 0 deletions
Loading

public/assets/Map.jpeg

87.1 KB
Loading

public/assets/bgEffect.mp4

3.48 MB
Binary file not shown.

public/assets/bytehoc_final.webp

-105 KB
Binary file not shown.

src/AllRoutes.tsx

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const IncompleteProfile = lazy(
2828
() =>
2929
import('./components/Auth/Auth/Login/IncompleteProfile/incompeleteProfile'),
3030
);
31+
const Profile = lazy(() => import('./components/Profile/Profile'));
3132

3233
export default function AllRoutes(): JSX.Element {
3334
const dispatch = useAppDispatch();
@@ -39,22 +40,6 @@ export default function AllRoutes(): JSX.Element {
3940
}
4041
}, []);
4142

42-
// return (
43-
// <Routes>
44-
// <Route path="/dashboard" element={<Dashboard />} />
45-
// <Route path="/mapdesigner" element={<MapDesigner />} />
46-
// <Route path="/history" element={<History />} />
47-
// <Route path="/leaderboard" element={<Leaderboard />} />
48-
// <Route path="/battletv" element={<BattleTV />} />
49-
// <Route path="/activate" element={<Verify />} />
50-
// <Route path="/incomplete-profile" element={<IncompleteProfile />} />
51-
// <Route path="/login" element={<Login />} />
52-
// <Route path="/register" element={<Register />} />
53-
// <Route path="/reset-password" element={<ResetPassword />} />
54-
// <Route path="/" element={<Home />} />
55-
// </Routes>
56-
// );
57-
5843
return logIn ? (
5944
<Routes>
6045
<Route path="/" element={<Home />} />
@@ -65,6 +50,7 @@ export default function AllRoutes(): JSX.Element {
6550
<Route path="/battletv" element={<BattleTV />} />
6651
<Route path="/activate" element={<Verify />} />
6752
<Route path="/incomplete-profile" element={<IncompleteProfile />} />
53+
<Route path="/profile" element={<Profile />} />
6854
<Route path="*" element={<Redirect />} />
6955
</Routes>
7056
) : (

src/assets/bell_icon.png

529 Bytes
Loading

src/assets/challenge_available.png

681 Bytes
Loading

0 commit comments

Comments
 (0)