Skip to content

Commit 7223faa

Browse files
committed
Merge branch 'master' of https://github.com/pran0x/CTFPanel
2 parents 9fd3ab5 + 8c20460 commit 7223faa

482 files changed

Lines changed: 29015 additions & 6391 deletions

File tree

Some content is hidden

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

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: CTFd
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Mirror core-theme
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
mirror:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0 # need full history for subtree
15+
16+
- name: Setup SSH for deploy key
17+
run: |
18+
mkdir -p ~/.ssh
19+
echo "${{ secrets.CORE_THEME_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
20+
chmod 600 ~/.ssh/id_ed25519
21+
ssh-keyscan github.com >> ~/.ssh/known_hosts
22+
23+
- name: Setup git identity
24+
run: |
25+
git config user.name "github-actions[bot]"
26+
git config user.email "username@users.noreply.github.com"
27+
28+
- name: Push subtree
29+
run: |
30+
git subtree split --prefix=core-theme -b mirror-core-theme-subtree
31+
git push git@github.com:CTFd/core-theme.git mirror-core-theme-subtree:main
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Theme Verification
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
name: Theme Verification
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 20.19
24+
25+
- name: Verify admin theme
26+
run: |
27+
pwd
28+
yarn install --non-interactive
29+
yarn verify
30+
working-directory: ./CTFd/themes/admin
31+
32+
# TODO: Replace in 4.0 with deprecation of previous core theme
33+
- name: Verify core theme
34+
run: |
35+
pwd
36+
yarn install --non-interactive
37+
yarn verify
38+
working-directory: ./CTFd/themes/core

.prettierignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
CTFd/themes/**/vendor/
2+
CTFd/themes/core-deprecated/
3+
CTFd/themes/core/static/
4+
CTFd/themes/core-beta/**/*
5+
CTFd/themes/admin/static/**/*
6+
*.html
7+
*.njk
8+
*.png
9+
*.svg
10+
*.ico
11+
*.ai
12+
*.svg
13+
*.mp3
14+
*.webm
15+
.pytest_cache
16+
venv*
17+
.venv*

0 commit comments

Comments
 (0)