Skip to content

perfectblue/ctfd-theme-pbctf

This branch is 53 commits ahead of, 532 commits behind tsg-ut/ctfd-theme-tsgctf:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 23, 2024
369ca87 · Oct 23, 2024
Apr 24, 2019
Oct 11, 2024
Oct 11, 2024
Apr 24, 2019
Oct 23, 2024
May 6, 2019
Oct 11, 2024
Oct 4, 2021
Apr 24, 2019
Apr 27, 2019
Apr 25, 2019
Nov 30, 2020
Apr 24, 2019
Nov 30, 2020
Feb 15, 2023
Oct 11, 2024
Oct 11, 2024
Oct 11, 2024

Repository files navigation

ctfd-theme-pbctf

Custom CTFd theme made for pbctf

Setup

cd /path/to/CTFd
git clone https://github.com/perfectblue/ctfd-theme-pbctf.git themes/pbctf -b dist

Related projects

Development

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
# when you use this please serve patched CTFd server as below at localhost:8000
$ npm run dev

# Run this initially to setup the ctfdist directory (to allow version
# controlling of the ctfdist directory on the dist branch)
git clone https://github.com/perfectblue/ctfd-theme-pbctf.git -b dist ctfdist

# build the theme into ctfdist directory
$ npm run build

# build static website
$ SESSION=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx npm run generate

Following patch is required during development (don't do this in production):

diff --git a/CTFd/api/v1/users.py b/CTFd/api/v1/users.py
index 9317209..a52bdda 100644
--- a/CTFd/api/v1/users.py
+++ b/CTFd/api/v1/users.py
@@ -41,7 +41,8 @@ class UserList(Resource):

         return {
             'success': True,
-            'data': response.data
+            'data': response.data,
+            'nonce': session.get('nonce')
         }

     @users_namespace.doc(params={'notify': 'Whether to send the created user an email with their credentials'})

About

Custom CTFd theme made for TSG CTF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 71.2%
  • JavaScript 28.8%