Skip to content

Feature Release: CTFGuide Learn #223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Jan 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
31 changes: 19 additions & 12 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,32 @@ const withPWA = require('next-pwa')({

/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config, { dev }) => {
if (!dev) {
config.plugins = config.plugins.filter(
(plugin) => plugin.constructor.name !== 'ESLintWebpackPlugin'
);
}

return config;
},
reactStrictMode: false,
eslint: {
ignoreDuringBuilds: true,
},
experimental: {
scrollRestoration: true,
esmExternals: true, // Add this to ensure esmExternals is true
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',
},
],
},
];
},
ignoreDuringBuilds: true,
transpilePackages: ['react-md-editor']
};

module.exports = withPWA(removeImports(nextConfig));
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@
"@fortawesome/react-fontawesome": "^0.2.0",
"@headlessui/react": "^1.7.2",
"@heroicons/react": "^2.0.13",
"@monaco-editor/react": "^4.6.0",
"@mui/material": "^5.15.2",
"@mui/x-charts": "^6.18.4",
"@react-oauth/google": "^0.12.1",
"@stripe/stripe-js": "^2.1.7",
"@tailwindcss/forms": "^0.5.3",
"@tremor/react": "^1.8.1",
"@uiw/react-markdown-editor": "^6.1.1",
"@uiw/react-md-editor": "3.6.0",
"@uiw/react-markdown-preview": "^5.1.3",
"@uiw/react-md-editor": "^4.0.5",
"@vercel/analytics": "^1.3.1",
"@webcontainer/api": "^1.5.1-internal.5",
"asciinema-player": "3.6.3",
"autoprefixer": "^10.4.12",
"babel-plugin-macros": "^3.1.0",
Expand All @@ -39,7 +42,7 @@
"easymde": "^2.18.0",
"enable": "^3.4.0",
"focus-visible": "^5.2.0",
"framer-motion": "^10.2.4",
"framer-motion": "^11.15.0",
"heroicons": "^2.0.13",
"jwt-decode": "^4.0.0",
"lucide-react": "^0.456.0",
Expand All @@ -53,10 +56,11 @@
"puppeteer": "^22.0.0",
"react": "18.2.0",
"react-activity-calendar": "^2.2.11",
"react-beautiful-dnd": "^13.1.1",
"react-chartjs-2": "^5.2.0",
"react-circular-progressbar": "^2.1.0",
"react-collapsible": "^2.10.0",
"react-confetti": "^6.1.0",
"react-confetti": "^6.2.2",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "18.2.0",
Expand All @@ -81,6 +85,7 @@
"react-tooltip": "^5.25.1",
"react-top-loading-bar": "^2.3.1",
"react-transition-group": "^4.4.5",
"react-use": "^17.6.0",
"react-visibility-sensor": "^5.1.1",
"reactjs-popup": "^2.0.5",
"reactour": "^1.19.4",
Expand All @@ -92,7 +97,8 @@
"tailwind-merge": "^2.3.0",
"tailwindcss": "^3.2.1",
"tailwindcss-animate": "^1.0.7",
"xterm": "^5.3.0"
"xterm": "^5.3.0",
"xterm-addon-fit": "^0.8.0"
},
"devDependencies": {
"eslint": "8.26.0",
Expand Down
Binary file added public/loader.webp
Binary file not shown.
Binary file added public/whereami.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/components/StandardNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,16 @@ export function StandardNav({ guestAllowed, alignCenter = true }) {
</Link>
</div>
<div className=" vertical-align md:ml-6 md:flex ">
<Link
href="/learn/modules"
className={
linkClass('/learn/modules') + ' hidden lg:inline-flex'
}
>
Learn

<span className="bg-blue-600 text-xs ml-2 text-white px-2 rounded-full">New!</span>
</Link>
<Link
href="/practice"
className={
Expand Down Expand Up @@ -648,6 +658,13 @@ export function StandardNav({ guestAllowed, alignCenter = true }) {
>
Dashboard
</Disclosure.Button>
<Disclosure.Button
as="a"
href="../practice"
className="block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-300 hover:border-gray-300 hover:text-gray-100 sm:pl-5 sm:pr-6"
>
Learn
</Disclosure.Button>
<Disclosure.Button
as="a"
href="../practice"
Expand Down
Empty file.
17 changes: 0 additions & 17 deletions src/components/learn/GithubMarkdown.jsx

This file was deleted.

114 changes: 0 additions & 114 deletions src/components/learn/LearnNav.jsx

This file was deleted.

99 changes: 0 additions & 99 deletions src/components/learn/LearningModule.jsx

This file was deleted.

Loading