From 1ea585e727d97ccc17c7515fe3d7345991cb2303 Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Wed, 18 Sep 2024 23:44:14 -0400 Subject: [PATCH 01/23] Update middleware.js --- src/middleware.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/middleware.js b/src/middleware.js index 241bb6dd..a3d69092 100644 --- a/src/middleware.js +++ b/src/middleware.js @@ -14,6 +14,7 @@ export function middleware(req) { // List of paths that don't require authentication const publicPaths = [ + '/', '/login', '/careers', '/register', From 372a427d605402987df7d241660690c5e190b581 Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Thu, 19 Sep 2024 17:16:52 -0400 Subject: [PATCH 02/23] Update StandardNav.jsx --- src/components/StandardNav.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/StandardNav.jsx b/src/components/StandardNav.jsx index 278160f3..923c7d11 100644 --- a/src/components/StandardNav.jsx +++ b/src/components/StandardNav.jsx @@ -677,9 +677,9 @@ export function StandardNav({ guestAllowed, alignCenter = true }) { /> -
+

- Our terminal infrastructure is experiencing issues due to hardware faults. We are taking steps to resolve this and get things working again as possible. + Our server hosting provider is experience issues which may result in CTFGuide not working as expected. Join our Discord for updates.

From 008a1108d89bade2c801efa6378cffdbbc219c91 Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Thu, 19 Sep 2024 17:37:21 -0400 Subject: [PATCH 03/23] Update StandardNav.jsx --- src/components/StandardNav.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/StandardNav.jsx b/src/components/StandardNav.jsx index 923c7d11..f746df13 100644 --- a/src/components/StandardNav.jsx +++ b/src/components/StandardNav.jsx @@ -679,7 +679,7 @@ export function StandardNav({ guestAllowed, alignCenter = true }) {

- Our server hosting provider is experience issues which may result in CTFGuide not working as expected. Join our Discord for updates. + Our server hosting provider is experiencing issues which may result in CTFGuide not working as expected. Join our Discord for updates.

From ac8987d504d8bb5800c893f562937a1135dbe7c4 Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Fri, 20 Sep 2024 00:31:55 -0400 Subject: [PATCH 04/23] Update StandardNav.jsx --- src/components/StandardNav.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/StandardNav.jsx b/src/components/StandardNav.jsx index f746df13..7a7b638c 100644 --- a/src/components/StandardNav.jsx +++ b/src/components/StandardNav.jsx @@ -677,7 +677,7 @@ export function StandardNav({ guestAllowed, alignCenter = true }) { /> -
+

Our server hosting provider is experiencing issues which may result in CTFGuide not working as expected. Join our Discord for updates.

From 6f52f9ca1666f8282d1d8d671c1a99c9df8713b7 Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Wed, 11 Dec 2024 11:53:13 -0500 Subject: [PATCH 05/23] Update careers.jsx --- src/pages/careers.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/careers.jsx b/src/pages/careers.jsx index 88973679..ad6d2636 100644 --- a/src/pages/careers.jsx +++ b/src/pages/careers.jsx @@ -217,7 +217,7 @@ We're remote-friendly, but a lot of us are in State College, PA. Work where you

Kshitij Kochhar

SWE

-
+

Kristopher Hicks

SWE

@@ -229,11 +229,11 @@ We're remote-friendly, but a lot of us are in State College, PA. Work where you

Anindya Das

SWE Intern

-
+

Sai Rangineeni

SWE Intern

-
+

Ben Haulk

SWE Intern

@@ -241,7 +241,7 @@ We're remote-friendly, but a lot of us are in State College, PA. Work where you

Travis Peck

SWE Intern

-
+

Ishan Voleti

SWE Intern

From 32d7508e9b9e6ca989e501614a967bd82826f0ad Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Wed, 11 Dec 2024 11:53:34 -0500 Subject: [PATCH 06/23] Update careers.jsx --- src/pages/careers.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/careers.jsx b/src/pages/careers.jsx index ad6d2636..3ecbfc3a 100644 --- a/src/pages/careers.jsx +++ b/src/pages/careers.jsx @@ -225,7 +225,7 @@ We're remote-friendly, but a lot of us are in State College, PA. Work where you

Josh Herron

Infrastructure

-
+

Anindya Das

SWE Intern

From da6f5feca8a234307d43cd673a9304c267c085c1 Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Sat, 14 Dec 2024 13:46:05 -0500 Subject: [PATCH 07/23] Update Hero.jsx --- src/components/home/Hero.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/home/Hero.jsx b/src/components/home/Hero.jsx index 4ec3bf51..511b1c42 100644 --- a/src/components/home/Hero.jsx +++ b/src/components/home/Hero.jsx @@ -23,7 +23,7 @@ export function Hero() { // use mock data if api is down setActivityFeed([ - { userName: 'laphatize', challengeName: 'Excel-lently Hidden', profilePic: 'https://imagedelivery.net/1Dym4oPRvM_5USnDWCdSCw/7523c0cb-2330-443c-94f1-030cd8bde300/public' }, + { userName: 'laphatize', challengeName: 'Excel-lently Hidden', profilePic: 'https://avatars.githubusercontent.com/u/190905122?s=160&v=4' }, { userName: 'herronjo', challengeName: 'Trading Bananas' , profilePic: 'https://imagedelivery.net/1Dym4oPRvM_5USnDWCdSCw/1bd03d05-1057-48fc-3d3f-b3ed512cb500/public' }, { userName: 'thunderbird', challengeName: 'Sneaky Cat ' , profilePic: 'https://imagedelivery.net/1Dym4oPRvM_5USnDWCdSCw/3b312b5f-c90d-490d-80d0-e52b367d4400/public' }, { userName: 'stevestef', challengeName: 'Pretty Obvious', profilePic: 'https://imagedelivery.net/1Dym4oPRvM_5USnDWCdSCw/3e75c7a3-dfe9-47cc-0d46-736187e62400/public' }, @@ -280,4 +280,4 @@ export function Hero() {
); -} \ No newline at end of file +} From 8c1808b7b54d8be2ce44f33aadb27ebd8cf964d1 Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Sat, 4 Jan 2025 23:28:56 -0500 Subject: [PATCH 08/23] feat: fix bug with image rednering --- next.config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/next.config.js b/next.config.js index a89afb9b..3d1f7099 100644 --- a/next.config.js +++ b/next.config.js @@ -32,6 +32,18 @@ const nextConfig = { }, ]; }, + images: { + remotePatterns: [ + { + protocol: 'https', + hostname: '**', + }, + { + protocol: 'http', + hostname: '**', + }, + ], + }, }; module.exports = withPWA(removeImports(nextConfig)); \ No newline at end of file From e254eea83904302b6a75a8393338d901431d7dea Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Sat, 4 Jan 2025 23:33:56 -0500 Subject: [PATCH 09/23] feat: cors fix --- next.config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/next.config.js b/next.config.js index 3d1f7099..3f019bd3 100644 --- a/next.config.js +++ b/next.config.js @@ -28,6 +28,18 @@ const nextConfig = { key: 'Cross-Origin-Opener-Policy', value: 'same-origin', }, + { + key: 'Access-Control-Allow-Origin', + value: '*', + }, + { + key: 'Access-Control-Allow-Methods', + value: '*', + }, + { + key: 'Access-Control-Allow-Headers', + value: '*', + }, ], }, ]; From f5974f7d970faf4bdc496682126cdc463d7039fb Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Sun, 5 Jan 2025 00:15:53 -0500 Subject: [PATCH 10/23] feat: cors fix --- next.config.js | 43 ++----------------------------------------- 1 file changed, 2 insertions(+), 41 deletions(-) diff --git a/next.config.js b/next.config.js index 3f019bd3..5f97a335 100644 --- a/next.config.js +++ b/next.config.js @@ -15,47 +15,8 @@ const nextConfig = { esmExternals: 'loose', }, transpilePackages: ['@uiw/react-md-editor', '@uiw/react-markdown-preview'], - async headers() { - return [ - { - source: '/:path*', - headers: [ - { - key: 'Cross-Origin-Embedder-Policy', - value: 'require-corp', - }, - { - key: 'Cross-Origin-Opener-Policy', - value: 'same-origin', - }, - { - key: 'Access-Control-Allow-Origin', - value: '*', - }, - { - key: 'Access-Control-Allow-Methods', - value: '*', - }, - { - key: 'Access-Control-Allow-Headers', - value: '*', - }, - ], - }, - ]; - }, - images: { - remotePatterns: [ - { - protocol: 'https', - hostname: '**', - }, - { - protocol: 'http', - hostname: '**', - }, - ], - }, + + }; module.exports = withPWA(removeImports(nextConfig)); \ No newline at end of file From a5b9fe9952a0a1c8d4a90514c598b97aefc0a054 Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Sun, 5 Jan 2025 00:26:48 -0500 Subject: [PATCH 11/23] feat: beta learn flag --- src/pages/learn/modules.jsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/pages/learn/modules.jsx b/src/pages/learn/modules.jsx index 8bd3c630..f11f275b 100644 --- a/src/pages/learn/modules.jsx +++ b/src/pages/learn/modules.jsx @@ -12,6 +12,7 @@ const ModulesPage = () => { const [modules, setModules] = useState(null); const [loading, setLoading] = useState(true); const [nextLesson, setNextLesson] = useState(null); + const [showBetaModal, setShowBetaModal] = useState(true); const [stats, setStats] = useState({ completedModules: 0, totalModules: 0, @@ -104,6 +105,20 @@ const ModulesPage = () => {
+ {showBetaModal && ( +
+
+

Beta Feature

+

This feature is heavily in development and is currently in beta.

+ +
+
+ )}
{loading ? ( From 80cd825402d179a63720689508300cc2090f436c Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Sun, 5 Jan 2025 00:30:05 -0500 Subject: [PATCH 12/23] feat: update coloring of modal --- src/pages/learn/modules.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/learn/modules.jsx b/src/pages/learn/modules.jsx index f11f275b..37e93384 100644 --- a/src/pages/learn/modules.jsx +++ b/src/pages/learn/modules.jsx @@ -107,7 +107,7 @@ const ModulesPage = () => { {showBetaModal && (
-
+

Beta Feature

This feature is heavily in development and is currently in beta.

+ + + + + +
+
+
+ + {isLoading ? (
⚙️
@@ -919,8 +1100,8 @@ const LessonViewer = ({ lessonData }) => {
{/* Left side - Lesson Content */} -
-

{lessonData?.title}

+
+

{currentPage?.title}

{
{/* Right side - Ubuntu Terminal */} -
+
{fetchingTerminal ? (
@@ -958,7 +1143,7 @@ const LessonViewer = ({ lessonData }) => { isTerminalBooted ? ( <> {foundTerminal && ( -
+

Username: {userName}

)} -