-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into UserChallenge_plugin
- Loading branch information
Showing
44 changed files
with
488 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
python -m pip install --upgrade pip | ||
python -m pip install -r linting.txt | ||
sudo yarn --cwd CTFd/themes/admin install --non-interactive | ||
sudo yarn global add prettier@^3.2.5 | ||
sudo yarn global add [email protected] | ||
- name: Lint | ||
run: make lint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: Theme Verification | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
name: Theme Verification | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Verify admin theme | ||
run: | | ||
pwd | ||
yarn install --non-interactive | ||
yarn verify | ||
working-directory: ./CTFd/themes/admin | ||
|
||
# TODO: Replace in 4.0 with deprecation of previous core theme | ||
- name: Verify core-beta theme | ||
run: | | ||
pwd | ||
yarn install --non-interactive | ||
yarn verify | ||
working-directory: ./CTFd/themes/core-beta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class UserConfirmTokenInvalidException(Exception): | ||
pass | ||
|
||
|
||
class UserResetPasswordTokenInvalidException(Exception): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from wtforms import RadioField | ||
|
||
from CTFd.constants.languages import LANGUAGE_NAMES | ||
from CTFd.forms import BaseForm | ||
|
||
|
||
def LanguageForm(*args, **kwargs): | ||
from CTFd.utils.user import get_locale | ||
|
||
class _LanguageForm(BaseForm): | ||
"""Language form for only switching langauge without rendering all profile settings""" | ||
|
||
language = RadioField( | ||
"", | ||
choices=LANGUAGE_NAMES.items(), | ||
default=get_locale(), | ||
) | ||
|
||
return _LanguageForm(*args, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...dmin/static/assets/CommentBox-B45_juxF.js → ...dmin/static/assets/CommentBox-Bb-LQ90m.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.../static/assets/echarts.common-KFqNeB6w.js → .../static/assets/echarts.common-BkpF2UHI.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.