Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CTFNote v3 #237

Merged
merged 471 commits into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
471 commits
Select commit Hold shift + click to select a range
bbfd513
Merge pull request #52 from JJ-8/0-tags-downstream
JJ-8 Jul 5, 2023
89a929e
Improve layout of task search / filtering on mobile devices
JJ-8 Jul 5, 2023
d8284d2
Choose table for desktop and classic for mobile
JJ-8 Jul 5, 2023
0e35b5c
Merge pull request #53 from JJ-8/0-mobile-task-list-improvements
JJ-8 Jul 5, 2023
8172afc
Rename .env to .env.example
JJ-8 Jul 5, 2023
06345d2
Mention .env.example in the README
JJ-8 Jul 5, 2023
aaba20a
Merge pull request #54 from JJ-8/0-remove-dotenv
JJ-8 Jul 5, 2023
ef0ce75
Rename channel mentions to channel names
MartinJM Jul 5, 2023
988b7e4
Add Discord server nickname to mentions
MartinJM Jul 5, 2023
81c3adf
Merge pull request #55 from MartinJM/improve_mention_resolution
JJ-8 Jul 5, 2023
bb45fda
Don't pin task link but add to topic
JJ-8 Jul 5, 2023
f441cc0
Remove unused imports
JJ-8 Jul 5, 2023
e343b8e
Merge pull request #56 from JJ-8/0-add-discord-integration-downstream
JJ-8 Jul 5, 2023
fcb45c9
Add `/delete` to delete Discord CTF integration
JJ-8 Jul 17, 2023
d3fbf0e
Merge pull request #57 from JJ-8/0-add-discord-integration-downstream
JJ-8 Jul 17, 2023
db0e226
Handle images in Discord archive
JJ-8 Jul 17, 2023
d31b2d4
Fetch tasks recursively for archive
JJ-8 Jul 17, 2023
a7b1d39
Merge pull request #58 from JJ-8/0-add-discord-integration-downstream
JJ-8 Jul 17, 2023
3c07e29
Handle cyclic referencing of subtask exporting
JJ-8 Jul 17, 2023
1b0e922
Exclude image upload from subtask discovery
JJ-8 Jul 17, 2023
25c97b9
Merge pull request #59 from JJ-8/0-add-discord-integration-downstream
JJ-8 Jul 17, 2023
d9bbb22
Handle user role change sync to Discord
JJ-8 Jul 21, 2023
47bdb5f
Support loading for SelectRole component
JJ-8 Jul 21, 2023
705f488
Add better Discord bot documentation
JJ-8 Jul 21, 2023
122662b
Merge pull request #61 from JJ-8/0-add-discord-integration-downstream
JJ-8 Jul 21, 2023
40b813a
Remove GHCR authentication notice in README
JJ-8 Jul 21, 2023
2a662ca
Merge pull request #62 from JJ-8/remove-ghcr-authentication-notice
JJ-8 Jul 21, 2023
89182da
Update Hedgedoc to 1.9.9
JJ-8 Jul 31, 2023
a097ed0
Merge pull request #63 from JJ-8/0-hedgedoc-1.9.9
JJ-8 Jul 31, 2023
9314edf
Add ångstromCTF parser
peace-maker Jul 11, 2023
2399f4f
Make angstrom parser tags compatible
JJ-8 Sep 14, 2023
88bf3b6
Merge pull request #64 from JJ-8/angstromparser-downstream
JJ-8 Sep 14, 2023
f88d7c0
Upgrade dependencies front / api
JJ-8 Sep 14, 2023
f1f070c
Make CTFNote live forever
JJ-8 Sep 14, 2023
0fc8ddd
Merge pull request #65 from JJ-8/upgrade-dependencies-september-2023
JJ-8 Sep 14, 2023
611bf0e
Fix 'hashes don't match for migration' error
JJ-8 Sep 14, 2023
690729f
Fix more 'hashes don't match for migration' errors
JJ-8 Sep 14, 2023
01f1963
Only bind to localhost by default
JJ-8 Nov 3, 2023
d397313
Add on it history
JJ-8 Dec 16, 2023
36856ac
Add cancel on it feature
JJ-8 Dec 16, 2023
4af7649
Merge pull request #66 from JJ-8/on-it-history
JJ-8 Dec 16, 2023
5df7d0d
Only allow cancel if worked on task
JJ-8 Dec 20, 2023
c7730ba
Merge pull request #67 from JJ-8/on-it-history
JJ-8 Dec 20, 2023
50e972a
Add Discord event link user importer
JJ-8 Dec 23, 2023
20419fa
Also support uninviting users when importing from Discord
JJ-8 Dec 23, 2023
82ae18d
Merge pull request #68 from JJ-8/discord-event-link-user-import
JJ-8 Dec 23, 2023
032386f
Don't change CTF permissions when Discord is not linked
JJ-8 Dec 23, 2023
176835c
Merge pull request #69 from JJ-8/discord-event-link-user-import
JJ-8 Dec 23, 2023
999bf86
Fix /start and /stop commands in Discord
JJ-8 Feb 3, 2024
72f9c4a
Fix race condition in deleting channels
JJ-8 Feb 3, 2024
a132aa7
Merge docker-compose.prebuild.yml into docker-compose.yml
JJ-8 Feb 23, 2024
817f9ed
Merge pull request #72 from JJ-8/docker-compose-merging
JJ-8 Feb 23, 2024
55d85bc
Prevent duplicate browser notifications with multiple tabs
markfijneman Mar 7, 2024
24418b7
Merge pull request #73 from markfijneman/duplicate-notification-fix
JJ-8 Mar 7, 2024
5cd9886
Allow row of user badges to split into multiple lines
markfijneman Mar 7, 2024
367d56c
Added tabledense task display
markfijneman Mar 7, 2024
1e256ba
Fixed typo in task solved notification
markfijneman Mar 7, 2024
6f6429a
Force TaskBtnGroup to be in a 2x2 grid on table task display
markfijneman Mar 7, 2024
b37f76b
Remove incorrect dollar in notification
JJ-8 Mar 8, 2024
f90c525
Center CTF logo and set logo background to black
markfijneman Mar 8, 2024
2822b0a
Add CTF logo to navigation bar
markfijneman Mar 8, 2024
1ad4c6c
Make CTF logo unclickable when url is not set
markfijneman Mar 8, 2024
bff66ed
Moved global search button to the right
markfijneman Mar 8, 2024
674d974
Add missing categories to HTB parser
JJ-8 Mar 8, 2024
4ca87c9
Merge pull request #76 from JJ-8:0-extend-htb-categories
JJ-8 Mar 8, 2024
aaf5835
Combine CTFNote and logo buttons
markfijneman Mar 8, 2024
4942a87
API: honour DB_HOST and DB_PORT
XeR Mar 8, 2024
927be31
Merge pull request #77 from JJ-8/234-use-dbhost-variable
JJ-8 Mar 8, 2024
ff998f3
Merge pull request #75 from markfijneman/taskbtngroup-grid
JJ-8 Mar 8, 2024
dccea8b
Changed layout of some navigation bar buttons
markfijneman Mar 8, 2024
0b2ded0
Don't include empty Discord chats in archive
JJ-8 Mar 8, 2024
c50d90f
Merge pull request #78 from JJ-8/71-dont-include-empty-chats-in-archive
JJ-8 Mar 8, 2024
e5f2ec3
Redesigned user dropdown menu
markfijneman Mar 8, 2024
c5f3928
Improved navigation bar layout for different screen sizes
markfijneman Mar 8, 2024
fc25f3f
Added tooltips to navigation bar buttons
markfijneman Mar 8, 2024
54d9a82
Revert TaskCard and TaskPlayerList changes
markfijneman Mar 8, 2024
925a2d8
Merge branch 'JJ-8:main' into navbar-redesign
markfijneman Mar 13, 2024
d5a5a8e
Changed CTF progress bar to Quasar component
markfijneman Mar 13, 2024
3f71fff
Move tag chip to separate component, restore click tags to filter
markfijneman Mar 13, 2024
e2e4220
Added condensed tag list component
markfijneman Mar 13, 2024
be97bc6
Replace settings icon in task menu with context menu
markfijneman Mar 13, 2024
d1e3a11
Refactor TaskListMenu variable names
markfijneman Mar 13, 2024
5c2e362
Add task tags to task switcher
markfijneman Mar 13, 2024
c912d2e
Added dense property to condensed tag list
markfijneman Mar 13, 2024
879c68e
Only enable clickable on tag chips when relevant
markfijneman Mar 13, 2024
37bad5c
Improved task switcher layout
markfijneman Mar 13, 2024
5cde365
Add task tags to navigation bar
markfijneman Mar 13, 2024
a4f00e1
Modified TaskBadge to support both task card and task switcher, added…
markfijneman Mar 13, 2024
d4344f6
Decreased task switcher density
markfijneman Mar 13, 2024
0b1fb94
Update filled textbox styling
markfijneman Mar 14, 2024
5b0cd5f
Updated EditCtfDialog design
markfijneman Mar 14, 2024
cb03dfc
Updated ImportCtfDialog design
markfijneman Mar 14, 2024
3f71754
Updated InviteUserDialog design
markfijneman Mar 14, 2024
a1fc796
Updated ResetPasswordDialog design
markfijneman Mar 14, 2024
e8ce949
Updated SearchDialog design
markfijneman Mar 14, 2024
ad35de9
Resolved Vue warnings
markfijneman Mar 14, 2024
292a837
Updated TaskEditDialog design
markfijneman Mar 16, 2024
38d2073
Updated solve task dialog design
markfijneman Mar 16, 2024
c650a99
Update task and CTF deletion dialog design
markfijneman Mar 16, 2024
b4b5882
Merge pull request #81 from markfijneman/ctf-card-progressbar
JJ-8 Mar 16, 2024
5caea6d
Updated TaskExportDialog design
markfijneman Mar 16, 2024
a8449c4
Merge branch 'JJ-8:main' into navbar-redesign
markfijneman Mar 16, 2024
782f181
Formatted code
markfijneman Mar 16, 2024
d1e792e
Add delay to tooltips
markfijneman Mar 16, 2024
2d614f4
Merge branch 'JJ-8:main' into tabledense-layout
markfijneman Mar 16, 2024
d81a7aa
Formatted code
markfijneman Mar 16, 2024
7f28af0
Reduced code duplication for TaskBtnGroup component
markfijneman Mar 16, 2024
385999d
Force category tags to be in a row on TableDense layout
markfijneman Mar 16, 2024
9f11920
Merge pull request #79 from markfijneman/navbar-redesign
JJ-8 Mar 16, 2024
ebc2b56
Updated TaskImportDialog design
markfijneman Mar 16, 2024
b2ce2a8
Changed TableDense button group color scheme
markfijneman Mar 16, 2024
fffd749
Re-add category tag wrapping
markfijneman Mar 16, 2024
6bec8eb
Updated design of more dialogs
markfijneman Mar 16, 2024
8065955
Small spacing changes
markfijneman Mar 16, 2024
e75553a
Added CTFTime icon to CTFTime URL/ID input fields
markfijneman Mar 16, 2024
c779de8
Made padding more consistent
markfijneman Mar 16, 2024
585564b
Merge pull request #74 from markfijneman/tabledense-layout
JJ-8 Mar 16, 2024
0fa925c
Allow ctrl+k search dialog hotkey inside iframe
JJ-8 Mar 16, 2024
91b6d31
Merge pull request #86 from JJ-8/hotkeys-inside-iframe
JJ-8 Mar 16, 2024
3917e0f
Serve hotkeys-iframe.js from a path from Hedgedoc to circumvent CSP
JJ-8 Mar 16, 2024
5de2ad2
Merge pull request #87 from JJ-8/csp-fix-hotkey-in-iframe
JJ-8 Mar 16, 2024
96f8d3c
Merge branch 'JJ-8:main' into dialog-styling
markfijneman Mar 20, 2024
cce414a
Swap order of import dialog columns to checkbox, title, tags
markfijneman Mar 20, 2024
5fa2b8a
Align categories to the right in task import dialog
markfijneman Mar 20, 2024
ffecd9c
Add label to flag submission dialog input
markfijneman Mar 20, 2024
931f118
Replaced q-form with div in task import dialog
markfijneman Mar 20, 2024
55bfae7
Merge branch 'main' into taskswitcher-layout
markfijneman Mar 20, 2024
6712a7e
Slightly increased density of task switcher menu
markfijneman Mar 20, 2024
06c05dc
Solved wrapping in navigation bar caused by category tags
markfijneman Mar 20, 2024
bbf656d
Hide tags in task switcher on small screens
markfijneman Mar 20, 2024
6199451
Resolved UI compiler warnings for TaskImportDialog
markfijneman Mar 20, 2024
18fdcb4
Set indicator color of all tabs to secondary
markfijneman Mar 20, 2024
34d935e
Redesigned login page
markfijneman Mar 20, 2024
a61e86a
Redesigned registration page
markfijneman Mar 20, 2024
57b7138
Redesigned password reset page
markfijneman Mar 20, 2024
2d8cff9
Set static width for all auth pages
markfijneman Mar 20, 2024
ab1cfae
Make auth pages centered
markfijneman Mar 20, 2024
04d919c
Hide CTFNote logo next to auth pages on smaller screens
markfijneman Mar 20, 2024
cae8b96
Always show CTFNote text in navigation bar on login screen
markfijneman Mar 20, 2024
5370cf0
Increase page padding on auth pages
markfijneman Mar 20, 2024
13f2f4d
Display admin settings page in a single column on small screens
markfijneman Mar 21, 2024
5e4c5ce
Adjust padding of cards in registration settings
markfijneman Mar 21, 2024
1e196da
Style inputs in registration settings
markfijneman Mar 21, 2024
b54e53c
Re-organize columns on registration settings to group registration an…
markfijneman Mar 21, 2024
2932733
Hide inputs for registration and calendar passwords when disabled
markfijneman Mar 21, 2024
82c45a7
Adjust padding of cards in profile settings
markfijneman Mar 21, 2024
52f85c5
Add icon support to color picker button
markfijneman Mar 21, 2024
3ed2a6e
Style inputs in profile settings
markfijneman Mar 21, 2024
61261d9
Moved Change password to left column in profile settings
markfijneman Mar 21, 2024
582d4a4
Fix color picker button being too large in some cases
markfijneman Mar 21, 2024
64424c9
Adjust padding for theme settings
markfijneman Mar 21, 2024
db59339
Update styling for registered users settings page
markfijneman Mar 21, 2024
b4e84d2
Removed borders from cards in settings pages
markfijneman Mar 21, 2024
82976b9
Added icons to notifications toggle
markfijneman Mar 21, 2024
c6b8338
Added Discord logo to CTFNote token field
markfijneman Mar 21, 2024
d688b6e
Merge pull request #83 from markfijneman/dialog-styling
JJ-8 Mar 24, 2024
e68196f
Undo auth page centering
markfijneman Mar 24, 2024
c578a0a
Merge branch 'JJ-8:main' into auth-styling
markfijneman Mar 24, 2024
7483b5f
Make color picker icon appear white in light mode
markfijneman Mar 24, 2024
e641328
Merge branch 'JJ-8:main' into settings-styling
markfijneman Mar 24, 2024
2f7ab4a
Merge tags list and condensed tags list into a single class
markfijneman Mar 24, 2024
852efc0
Changed condensed tags list hidden count color to accent
markfijneman Mar 24, 2024
ae1bdd8
Updated task list toolbar design
markfijneman Mar 24, 2024
49791e1
Merge pull request #88 from markfijneman/taskswitcher-layout
JJ-8 Mar 24, 2024
09d8755
Removed rounded corners from CTF pages
markfijneman Mar 24, 2024
3663196
Made CTFTime link smaller
markfijneman Mar 24, 2024
13e8a23
Disabled weight badge click animation
markfijneman Mar 24, 2024
0a8b281
Adjusted spacing and layout on CTF info page
markfijneman Mar 24, 2024
80e463b
Force tags to be lowercase in the frontend during parsing
JJ-8 Mar 24, 2024
26eb22a
Merge pull request #92 from JJ-8/89-fix-tags-casing
JJ-8 Mar 24, 2024
19a99d6
Merge CTF edit and delete buttons on info page on small screens
markfijneman Mar 24, 2024
5e56f6b
Remove separator between tabs and CTF pages
markfijneman Mar 24, 2024
7144c8b
Merge branch 'JJ-8:main' into ctf-styling
markfijneman Mar 24, 2024
aa94def
Enable contextMenu by default on CTF admin menu
markfijneman Mar 24, 2024
c7b7af5
Upgrade yarn and API dependencies
JJ-8 Mar 24, 2024
d56d425
Update .prettierrc config for trailing comma
JJ-8 Mar 24, 2024
ab8bd5e
Vertically stack CTF description and credentials on small screens
markfijneman Mar 24, 2024
76b708e
Upgrade frontend dependencies
JJ-8 Mar 24, 2024
80acb3a
Format frontend files
JJ-8 Mar 24, 2024
1ad9843
Fix frontend ESLint warnings
JJ-8 Mar 24, 2024
1376c6e
Update frontend yarn cache
JJ-8 Mar 24, 2024
515f778
Merge pull request #93 from JJ-8/upgrade-dependencies-march-2024
JJ-8 Mar 24, 2024
705e7ab
Upgrade NodeJS in API and front Docker container
JJ-8 Mar 24, 2024
f8f5b94
Use alpine NodeJS docker versions
JJ-8 Mar 24, 2024
9a3678d
Fix Docker image format
JJ-8 Mar 24, 2024
2498a94
Merge pull request #94 from JJ-8/upgrade-nodejs
JJ-8 Mar 24, 2024
ec04f35
Bump @babel/traverse from 7.22.19 to 7.24.1 in /front
dependabot[bot] Mar 24, 2024
b338b8c
Update install-state.gz due to dependabot upgrade
JJ-8 Mar 24, 2024
9537bc2
Upgrade top most yarn files
JJ-8 Mar 24, 2024
93901c3
Merge pull request #95 from JJ-8/dependabot/npm_and_yarn/front/babel/…
JJ-8 Mar 24, 2024
1c7d554
Make start and end time text on CTF info page white on light mode
markfijneman Mar 24, 2024
33ef1be
Merge branch 'JJ-8:main' into auth-styling
markfijneman Mar 27, 2024
b1c5452
Increased width of auth screens to make UUID tokens fit
markfijneman Mar 27, 2024
c0f14f8
Merge branch 'JJ-8:main' into settings-styling
markfijneman Mar 27, 2024
1ca040b
Made all table headers lowercase on admin user settings page
markfijneman Mar 27, 2024
99d9dab
Moved role column in admin user settings to the left of the username …
markfijneman Mar 27, 2024
c408ec7
Prepended # to pad URL in task iframe, fixes #96
markfijneman Mar 27, 2024
8d4adcc
Merge pull request #99 from markfijneman/double-history-fix
JJ-8 Mar 27, 2024
c30d72a
Merge branch 'JJ-8:main' into ctf-styling
markfijneman Mar 27, 2024
ec5b92c
Remove newline from last paragraph in descriptions on CTF info page
markfijneman Mar 27, 2024
871a3e0
Redesigned error page for unknown task IDs
markfijneman Mar 27, 2024
818d063
Redesigned CTF guest settings page
markfijneman Mar 27, 2024
785a4be
Adjusted padding for CTF info badges
markfijneman Mar 27, 2024
95ed482
Removed description on error page for unknown task IDs
markfijneman Mar 27, 2024
ab86380
Merge pull request #90 from markfijneman/auth-styling
JJ-8 Apr 5, 2024
2636be1
Merge pull request #91 from markfijneman/settings-styling
JJ-8 Apr 5, 2024
a4370a5
Focus input before opening animation finishes in global search dialog
markfijneman Apr 11, 2024
99a9298
Focus input before opening animation finishes in solve task popup
markfijneman Apr 11, 2024
0e4f1a7
Moved edit and delete buttons next to CTF title on info page
markfijneman Apr 11, 2024
10a5dab
Fixed spacing issues below description/credentials on CTF info page
markfijneman Apr 11, 2024
aa1b1a8
Removed description from CTF guest settings
markfijneman Apr 11, 2024
55b79ce
Increased Discord event link input width
markfijneman Apr 11, 2024
0e8d793
Made full table rows clickable on past CTFs page
markfijneman Apr 11, 2024
9d5f49a
Removed padding from past CTFs card
markfijneman Apr 11, 2024
7c650a2
Made past CTFs table dense
markfijneman Apr 11, 2024
78d87c0
Increased rows per page options for past CTFs table
markfijneman Apr 11, 2024
a322cbf
Made rows per page setting for past CTFs table persistent
markfijneman Apr 11, 2024
d6b1297
Merge pull request #103 from markfijneman/dialog-responsiveness-fix
JJ-8 Apr 12, 2024
b329be5
Merge pull request #100 from markfijneman/ctf-styling
JJ-8 Apr 12, 2024
f359e69
Merge pull request #104 from markfijneman/past-ctfs-styling
JJ-8 Apr 12, 2024
56c50cf
Added custom shortcuts to HedgeDoc editor
markfijneman Apr 12, 2024
bc4a998
Merge pull request #106 from markfijneman/hedgedoc-editor-hotkeys-fix
JJ-8 Apr 15, 2024
d821f16
Hide search dialog when pressing esc
JJ-8 Apr 15, 2024
f13396c
Merge pull request #107 from JJ-8/dialog-cancel-shortcut
JJ-8 Apr 15, 2024
ac4bafb
Increased Nginx upload limit to 5MB
markfijneman Apr 15, 2024
15be314
Only allow one solve task dialog to be opened at most
markfijneman Apr 15, 2024
ac3b2cc
Set nginx upload max size in hosting instructions
JJ-8 Apr 16, 2024
a3850c2
Make max upload size a global in the inner-nginx config
JJ-8 Apr 16, 2024
5d0aac6
Merge pull request #108 from markfijneman/increase-upload-size-limit
JJ-8 Apr 16, 2024
3c60d9b
Added shortcut for opening solve task dialog
markfijneman Apr 16, 2024
5a7e05e
Added component to preview key combinations for shortcuts
markfijneman Apr 16, 2024
b0abbb1
Replace modifier keys on macOS with symbols
markfijneman Apr 16, 2024
f2c4d06
Made search dialog use ShortcutPreview component
markfijneman Apr 17, 2024
8d01d04
Made solve task dialog use custom component
markfijneman Apr 17, 2024
605a873
Renamed ShortcutPreview to ShortcutHint
markfijneman Apr 17, 2024
a201dd3
Added shortcut hint to solve task dialog when opened on task pages
markfijneman Apr 17, 2024
5b0d771
Fixed flag not updating in task solve dialog when opened using shortcut
markfijneman Apr 17, 2024
4a6f239
Merge branch 'JJ-8:main' into solve-task-shortcut
markfijneman Apr 18, 2024
065275d
Insert iframe hotkey script on task page during iframe load instead o…
markfijneman Apr 18, 2024
09b6e3f
Merge branch 'solve-task-shortcut' of github.com:markfijneman/CTFNote…
markfijneman Apr 18, 2024
fdba7e8
Remove no-backdrop-dismiss from task solve dialog
markfijneman Apr 18, 2024
1e19acf
Fix Discord event link hanging issue
JJ-8 Apr 25, 2024
97bed41
Merge pull request #111 from JJ-8/discord-event-link-sync-hang
JJ-8 Apr 25, 2024
35beb0e
Merge pull request #109 from markfijneman/solve-task-shortcut
JJ-8 Apr 25, 2024
16aae89
Set docker-compose images back to upstream
JJ-8 Apr 25, 2024
f3db7cf
Merge branch 'main' into ctfnote-v3
JJ-8 Apr 25, 2024
bebdca1
Remove accidental paste in README
JJ-8 Apr 25, 2024
43ce571
Add back manual workflow trigger
JJ-8 Apr 25, 2024
1dd1b5a
Update husky dependency
JJ-8 Apr 28, 2024
ff942e8
Update contribution guidelines and mention Discord server
JJ-8 Apr 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 0 additions & 13 deletions .env

This file was deleted.

27 changes: 27 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Pad

# Secure: we're using HTTPS
# CMD_PROTOCOL_USESSL=true

# Domain: you need to define this if you wish to enable any options
# CMD_DOMAIN=example.org:1337

# Content-Security Policy
# CMD_CSP_ENABLE=true

# Upload on filesystem (instead of imgur)
# CMD_IMAGE_UPLOAD_TYPE=filesystem

# USE_DISCORD=false
# DISCORD_BOT_TOKEN=secret_token
# DISCORD_SERVER_ID=server_id
# DISCORD_VOICE_CHANNELS=3
# DISCORD_BOT_NAME=CTFNote

# Configure timezone and locale
# TZ=Europe/Paris
# LC_ALL=en_US.UTF-8

# Can be generated with e.g. pwgen -s 64 1
# Please provide a string of length 64+ characters
# SESSION_SECRET=
1 change: 1 addition & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "Build and publish Docker images to GHCR"

on:
workflow_dispatch:
push:
branches:
- "main"
Expand Down
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"singleQuote": false,
"semi": true,
"tabWidth": 2,
"useTabs": false,
"trailingComma": "es5"
}
Binary file not shown.
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.1.1.cjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.1.1.cjs
24 changes: 13 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# CTFNote - Contribution Guide

When contributing to this repository, please first discuss the change you wish to make via issue with the collaborators of this repository before making a change.
We have a [Discord server](https://discord.gg/uzTybeYuBg) where we discuss the development and feature of CTFNote.

When contributing to this repository, please first discuss the change you wish to make via issue with the collaborators of this repository before making a change, or have a chat in Discord if you do not want to create a full issue yet.

## Git process

Expand Down Expand Up @@ -44,21 +46,22 @@ $ yarn
This should run the prepare script and install the linting pre-commit hooks:

```
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
$ husky install
[##] 2/2husky - Git hooks installed
✨ Done in 0.40s.
➤ YN0000: · Yarn 4.1.1
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: · Done in 0s 103ms
```

### Start the third party containers

```shell
$ docker compose \
-f docker-compose.dev.yml \
up -d hedgedoc db adminer
up -d hedgedoc db
```

### Start the API
Expand All @@ -85,8 +88,7 @@ The following endpoint are exposed and can be used in the developpement environm
- [GraphiQL](http://localhost:3000/graphiql)
- [Hedgedoc](http://localhost:3001/)
- [Quasar APP](http://localhost:8088/)
- [Adminer](http://localhost:3002/?pgsql=db&username=ctfnote&db=ctfnote)

## Review

To merge a pull request, two distinct reviews from two different collaborators are required.
To merge a pull request, a review of a maintainer is required.
Loading