Commit Graph

738 Commits (2d49c8dd9aab76767c7181fd0bc3e2f6a8edc0b3)

Author SHA1 Message Date
Kevin Chung 2d49c8dd9a Switch to using a Flask SQLAlchemy pagination object for submission searching 2020-04-27 15:04:29 -04:00
Kevin Chung c42c2d7fc9 Merge branch '1339-submission-searching' of github.com:CTFd/CTFd into 1339-submission-searching 2020-04-27 13:46:52 -04:00
Kevin Chung 8c10c731be Add UI for submission searching 2020-04-27 13:46:36 -04:00
Kevin Chung fb8d9a44c2
Merge pull request #1344 from developerfred/issue/1342
* Switches to using the Faker library for `populate.py`
* Closes #1342
2020-04-27 12:47:46 -04:00
Kevin Chung dc31717148
Merge branch 'master' into issue/1342 2020-04-27 03:28:22 -04:00
Kevin Chung 5b6eb16c60
Merge pull request #1350 from CTFd/pin-banal
* Pin banal==0.4.2
2020-04-27 03:27:43 -04:00
Kevin Chung 9588ab3caa Fix email issue and remove file extensions list 2020-04-27 02:36:59 -04:00
Kevin Chung 7d71eedb8e Pin banal==0.4.2 because of https://github.com/pudo/banal/issues/5 2020-04-26 22:04:19 -04:00
Kevin Chung c9d31b67aa
Merge pull request #1343 from CTFd/improved-page-select
* Changes page selection to be a select of pages. The page will be redirected to after a new page is selected.
2020-04-26 01:39:00 -04:00
codingsh 5a8e1b5b76 feat: add Faker and change populate.py #1342 2020-04-25 19:14:44 -03:00
Kevin Chung 04eedb4a4e Run yarn build 2020-04-25 16:45:24 -04:00
Kevin Chung 1ad520a8e7 Run prettier 2020-04-25 13:05:00 -04:00
Kevin Chung ff2e4c9dd0 Change the page selector to be less verbose 2020-04-25 13:05:00 -04:00
Kevin Chung 45d4892c61
Merge pull request #1340 from CTFd/1338-challenge-searching
* Copies basic challenge searching functionality from Users searching
2020-04-25 12:56:55 -04:00
Kevin Chung 4936b85ebb Pin banal because of https://github.com/pudo/banal/issues/5 2020-04-25 12:53:52 -04:00
Kevin Chung a9a17052b5 Add UI for submission searching 2020-04-25 03:14:58 -04:00
Kevin Chung dbb07b5beb Clean code a bit 2020-04-25 02:55:22 -04:00
Kevin Chung 58246bad18 Pin banal verison to a working version for Python 2 2020-04-25 02:19:02 -04:00
Kevin Chung 7fbcf9793b Remove unused import 2020-04-24 15:45:42 -04:00
Kevin Chung 449e0d8939 Add basic challenge searching functionality 2020-04-24 15:35:00 -04:00
Kevin Chung 2f36c5d680
Adding sortable columns to admin panel (#1337)
* Columns can opt-in to being sortable with the `sort-col` class on `th` elements
* Add checkboxes to main admin panels and convert per-line actions into bulk actions
2020-04-23 13:35:23 -04:00
Kevin Chung 8ab99dc577 Remove commented HTML 2020-04-23 13:34:38 -04:00
Kevin Chung 1f87efb6c1
Better constant value management (#1335)
* Starts work on #929 
* Adds Enum classes that can be accessed from JS, Jinja, and Python code. This allows for the sharing of constant values between the three major codebases in CTFd.
2020-04-23 10:48:09 -04:00
Kevin Chung 89a266cf2c Run yarn build 2020-04-23 08:52:29 -04:00
Kevin Chung 0bb1a5d0bd Run make format 2020-04-23 02:28:05 -04:00
Kevin Chung d8e766734a Add bulk buttons 2020-04-22 20:32:10 -04:00
Kevin Chung d5fd2f8f2a Setup bulk deletion buttons 2020-04-22 18:49:57 -04:00
Kevin Chung 5f4af2a3f2 Fix tables 2020-04-22 17:24:33 -04:00
Kevin Chung be643dee90 Run prettier 2020-04-22 15:26:08 -04:00
Kevin Chung 7b9cd1df25 Consolidate buttons 2020-04-22 15:20:27 -04:00
Kevin Chung 3d058bce05 Switch to using outline button 2020-04-22 14:57:37 -04:00
Kevin Chung 3a15c155c7 Make it easier to click checkbox 2020-04-21 22:38:46 -04:00
Kevin Chung fa434c4bdd
Fix file downloads in Windows (#1336)
* Fixes an issue where files could not be downloaded when running on Windows
* Closes #1334
2020-04-21 15:40:06 -04:00
Kevin Chung 052911f930 Add a construct for sortable columns 2020-04-21 15:39:14 -04:00
Kevin Chung 24c3520685
Change challenge visibility badge on challenge update (#1331)
* Refresh challenge visibility badge after challenge update. A stopgap solution until a better state based UI is implemented. 
* Closes #1267
2020-04-18 03:43:30 -04:00
Kevin Chung 25fe789da8
Add fix for SMTP server overriding and #1306 (#1330)
* Fix a potential issue where config.py SMTP settings might not have been overrideable from the Admin Panel
* Closes #1306 by using `email.message.EmailMessage` in Python 3. Python 2 will use the old `sendmail` behavior.
2020-04-18 03:33:34 -04:00
Kevin Chung cd6439f2eb
Add a bell curve graph and total points calculation (#1325)
* Add a bell curve graph and total points calculation to admin panel statistics
* Closes #608
2020-04-17 03:10:55 -04:00
Kevin Chung ccefe47468 Handle logging situation where a submission isn't provided to challenge attempt 2020-04-17 01:48:09 -04:00
Kevin Chung e113b2d627 Fix Admin Panel link from deprecating session type 2020-04-15 03:38:25 -04:00
Kevin Chung 0cfbf90201 Closes #1256 2020-04-15 03:24:16 -04:00
Kevin Chung 578b5261b2
Deprecates storing user type in session (#1323)
* Deprecates storing session["type"] as a means of referring to the user's current level. Instead you should refer to the database.
* Adds `CTFd.utils.user.get_current_user_type()` to get the current user's type or return None if the user is unauthed. 
* Closes #1279
2020-04-15 03:04:18 -04:00
Kevin Chung c21707c14d
Add eslint command to yarn (#1324)
* Adds a `yarn lint` command that runs `eslint`
* Starts work on #1245
2020-04-15 02:41:23 -04:00
Kevin Chung 329e0c0455 Remove Github action until 3.0 2020-04-14 17:07:31 -04:00
Kevin Chung 154e281612 Remove Python 2.7 2020-04-14 17:03:38 -04:00
Kevin Chung 2a90f77ed3 Run on any push 2020-04-14 17:00:32 -04:00
Kevin Chung c5ec896b38
Add Github Action for lint (#1321) 2020-04-14 16:58:09 -04:00
‏‏Dave 6f87129846
Replace flask_restful with flask_restx (#1282)
Co-authored-by: Kevin Chung <kchung@ctfd.io>
2020-04-14 15:26:50 -04:00
Kevin Chung 05e5730c54
Fix media library refresh on upload (#1319) 2020-04-14 12:42:15 -04:00
Kevin Chung 4b6c9ec8bd
Mark 2.3.3 (#1316)
2.3.3 / 2020-04-12
==================

**General**
* Re-enable the Jinja LRU Cache for **significant speedups** when returning HTML content

**API**
* `POST /api/v1/unlocks` will no longer allow duplicate unlocks to happen

**Admin Panel**
* Makes `Account Visibility` subtext clearer by explaining the `Private` setting in Config Panel

**Themes**
* Fixes an issue with using a theme with a purely numeric name
* Fixes issue where the scoreboard graph always said Teams regardless of mode

**Miscellaneous**
* Bump max log file size to 10 MB and fix log rotation
* Docker image dependencies (apk & pip) are no longer cached reducing the image size slightly
2020-04-12 15:33:00 -04:00
Kevin Chung 04e6b2011f
Prevent accidental double unlocks (#1315)
* Prevent a hint from being unlocked twice
* Closes  #1301
2020-04-11 22:03:51 -04:00