Skip to content

tsg-ut/ctfd-theme-tsgctf

Repository files navigation

ctfd-theme-tsgctf

Custom CTFd theme made for TSG CTF

Setup

cd /path/to/CTFd
git clone https://github.com/tsg-ut/ctfd-theme-tsgctf.git themes/tsgctf -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

# build the theme into tsgctf 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 bd1d2ca9..3bbf28c0 100644
--- a/CTFd/api/v1/users.py
+++ b/CTFd/api/v1/users.py
@@ -125,16 +125,17 @@ class UserList(Resource):
                     "prev": users.prev_num,
                     "pages": users.pages,
                     "per_page": users.per_page,
                     "total": users.total,
                 }
             },
             "success": True,
             "data": response.data,
+            "nonce": session.get("nonce"),
         }
 
     @admins_only
     @users_namespace.doc(
         description="Endpoint to create a User object",
         responses={
             200: ("Success", "UserDetailedSuccessResponse"),
             400: (

About

Custom CTFd theme made for TSG CTF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published