Skip to content

Commit bae3690

Browse files
authored
Merge pull request #177 from TFNS/dev
v2.1.1
2 parents 71e183e + 64a73bc commit bae3690

13 files changed

Lines changed: 4215 additions & 3593 deletions

File tree

api/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
# Global args, set before the first FROM, shared by all stages
44
ARG NODE_ENV="production"
5+
ARG NODE_DIGEST="sha256:1a9a71ea86aad332aa7740316d4111ee1bd4e890df47d3b5eff3e5bded3b3d10"
56

67
################################################################################
78
# Build stage 1 - `yarn build`
89

9-
FROM node:16-alpine as builder
10+
FROM node@${NODE_DIGEST} as builder
1011
# Import our shared args
1112
ARG NODE_ENV
1213

@@ -24,7 +25,7 @@ RUN yarn run build
2425
################################################################################
2526
# Build stage 2 - COPY the relevant things (multiple steps)
2627

27-
FROM node:16-alpine as clean
28+
FROM node@${NODE_DIGEST} as clean
2829
# Import our shared args
2930
ARG NODE_ENV
3031

@@ -36,7 +37,7 @@ COPY --from=builder /app/migrations/ /app/migrations/
3637
################################################################################
3738
# Build stage FINAL - COPY everything, once, and then do a clean `yarn install`
3839

39-
FROM node:16-alpine
40+
FROM node@${NODE_DIGEST}
4041
# Import our shared args
4142
ARG NODE_ENV
4243

api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"lint-staged": "^11.2.3",
4141
"nodemon": "^2.0.7",
4242
"prettier": "^2.2.1",
43-
"ts-node": "^9.1.1",
43+
"ts-node": "^10.9.1",
4444
"tslint": "^6.1.3",
45-
"typescript": "^4.2.4"
45+
"typescript": "^4.7.4"
4646
}
4747
}

api/yarn.lock

Lines changed: 492 additions & 790 deletions
Large diffs are not rendered by default.

db/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM postgres:14
1+
FROM postgres@sha256:596e4c843a9db32269a3757624d8a6a6f633e01895acb83fe0842497fd897eb7
22

33
COPY create-multiple-postgresql-databases.sh /docker-entrypoint-initdb.d/create-multiple-postgresql-databases.sh

docker-compose.dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
ports:
1616
- '5432:5432'
1717
hedgedoc:
18-
image: quay.io/hedgedoc/hedgedoc:1.9.3-alpine
18+
image: quay.io/hedgedoc/hedgedoc:1.9.4
1919
environment:
2020
CMD_DB_URL: 'postgres://ctfnote:ctfnote@db:5432/hedgedoc'
2121
CMD_URL_PATH: 'pad'

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ services:
4242
ports:
4343
- 8080:80
4444
hedgedoc:
45-
image: quay.io/hedgedoc/hedgedoc:1.9.3-alpine
45+
image: quay.io/hedgedoc/hedgedoc:1.9.4
4646
environment:
4747
- CMD_DB_URL=postgres://ctfnote:ctfnote@db:5432/hedgedoc
4848
- CMD_URL_PATH=pad

front/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16-alpine AS build-deps
1+
FROM node@sha256:1a9a71ea86aad332aa7740316d4111ee1bd4e890df47d3b5eff3e5bded3b3d10 AS build-deps
22

33
RUN mkdir -p /usr/src/app
44
COPY package.json quasar.conf.js .eslintrc.js .eslintignore tsconfig.json .postcssrc.js yarn.lock babel.config.js quasar.extensions.json /usr/src/app/
@@ -12,7 +12,7 @@ WORKDIR /usr/src/app
1212
RUN yarn build
1313

1414
# _--------_
15-
FROM nginx:1.21.6-alpine
15+
FROM nginx@sha256:f335d7436887b39393409261603fb248e0c385ec18997d866dd44f7e9b621096
1616

1717
RUN mkdir -p /logs
1818

front/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@apollo/client": "^3.4.15",
18+
"@quasar/cli": "^1.3.2",
1819
"@quasar/extras": "^1.0.0",
1920
"@quasar/quasar-app-extension-apollo": "^2.0.0-beta.3",
2021
"@quasar/quasar-ui-qcalendar": "^4.0.0-beta.7",
@@ -38,7 +39,7 @@
3839
"@graphql-codegen/typescript-document-nodes": "^2.1.4",
3940
"@graphql-codegen/typescript-operations": "^2.1.6",
4041
"@graphql-codegen/typescript-vue-apollo": "^3.1.4",
41-
"@quasar/app": "^3.0.0",
42+
"@quasar/app-webpack": "^3.5.3",
4243
"@quasar/quasar-app-extension-qmarkdown": "^2.0.0-alpha.8",
4344
"@types/apollo-upload-client": "^14.1.0",
4445
"@types/color-hash": "^1.0.1",

front/src/components/Menu/CtfMenu.vue

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
<template>
2-
<template v-if="ctf && $q.screen.gt.sm">
3-
<q-separator dark vertical />
4-
<div class="row items-center justify-center">
5-
<q-btn
6-
class="q-mr-sm"
7-
type="a"
8-
target="_blank"
9-
:href="ctf.ctfUrl"
10-
flat
11-
icon="language"
12-
size="sm"
13-
round
14-
/>
15-
<q-btn flat no-caps :to="ctf.tasksLink">{{ ctf.title }}</q-btn>
16-
</div>
2+
<template v-if="ctf && $q.screen.gt.xs">
3+
<template v-if="$q.screen.gt.sm">
4+
<q-separator dark vertical />
5+
<div class="row items-center justify-center">
6+
<q-btn
7+
class="q-mr-sm"
8+
type="a"
9+
target="_blank"
10+
:href="ctf.ctfUrl"
11+
flat
12+
icon="language"
13+
size="sm"
14+
round
15+
/>
16+
<q-btn flat no-caps :to="ctf.tasksLink">{{ ctf.title }}</q-btn>
17+
</div>
18+
</template>
1719
<q-separator v-show="ctf.tasks.length" dark vertical />
1820
<task-list-menu v-show="ctf.tasks.length" :ctf="ctf" :task-id="taskId" />
1921
</template>

front/src/ctfnote/parsers/ctfd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { parseJson, parseJsonStrict } from '../utils';
33

44
const CTFDParser: Parser = {
55
name: 'CTFd parser',
6-
hint: 'paste ctfd /api/v1/challenge',
6+
hint: 'paste ctfd /api/v1/challenges',
77

88
parse(s: string): ParsedTask[] {
99
const tasks = [];

0 commit comments

Comments
 (0)