Skip to content

Commit 885871c

Browse files
authored
Merge pull request #237 from JJ-8/ctfnote-v3
CTFNote v3
2 parents 5cda0e7 + ff942e8 commit 885871c

2,030 files changed

Lines changed: 42440 additions & 20130 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.

.env

Lines changed: 0 additions & 13 deletions
This file was deleted.

.env.example

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Pad
2+
3+
# Secure: we're using HTTPS
4+
# CMD_PROTOCOL_USESSL=true
5+
6+
# Domain: you need to define this if you wish to enable any options
7+
# CMD_DOMAIN=example.org:1337
8+
9+
# Content-Security Policy
10+
# CMD_CSP_ENABLE=true
11+
12+
# Upload on filesystem (instead of imgur)
13+
# CMD_IMAGE_UPLOAD_TYPE=filesystem
14+
15+
# USE_DISCORD=false
16+
# DISCORD_BOT_TOKEN=secret_token
17+
# DISCORD_SERVER_ID=server_id
18+
# DISCORD_VOICE_CHANNELS=3
19+
# DISCORD_BOT_NAME=CTFNote
20+
21+
# Configure timezone and locale
22+
# TZ=Europe/Paris
23+
# LC_ALL=en_US.UTF-8
24+
25+
# Can be generated with e.g. pwgen -s 64 1
26+
# Please provide a string of length 64+ characters
27+
# SESSION_SECRET=

.github/workflows/build-and-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "Build and publish Docker images to GHCR"
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- "main"

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"singleQuote": false,
3+
"semi": true,
4+
"tabWidth": 2,
5+
"useTabs": false,
6+
"trailingComma": "es5"
7+
}
4.54 KB
Binary file not shown.

.yarn/releases/yarn-4.1.1.cjs

Lines changed: 893 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
5+
nodeLinker: node-modules
6+
7+
yarnPath: .yarn/releases/yarn-4.1.1.cjs

CONTRIBUTING.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# CTFNote - Contribution Guide
22

3-
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.
3+
We have a [Discord server](https://discord.gg/uzTybeYuBg) where we discuss the development and feature of CTFNote.
4+
5+
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.
46

57
## Git process
68

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

4648
```
47-
[1/4] 🔍 Resolving packages...
48-
[2/4] 🚚 Fetching packages...
49-
[3/4] 🔗 Linking dependencies...
50-
[4/4] 🔨 Building fresh packages...
51-
$ husky install
52-
[##] 2/2husky - Git hooks installed
53-
✨ Done in 0.40s.
49+
➤ YN0000: · Yarn 4.1.1
50+
➤ YN0000: ┌ Resolution step
51+
➤ YN0000: └ Completed
52+
➤ YN0000: ┌ Fetch step
53+
➤ YN0000: └ Completed
54+
➤ YN0000: ┌ Link step
55+
➤ YN0000: └ Completed
56+
➤ YN0000: · Done in 0s 103ms
5457
```
5558

5659
### Start the third party containers
5760

5861
```shell
5962
$ docker compose \
6063
-f docker-compose.dev.yml \
61-
up -d hedgedoc db adminer
64+
up -d hedgedoc db
6265
```
6366

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

9092
## Review
9193

92-
To merge a pull request, two distinct reviews from two different collaborators are required.
94+
To merge a pull request, a review of a maintainer is required.

0 commit comments

Comments
 (0)