Commit Graph

234 Commits

Author SHA1 Message Date
f17541e252 Move settings and started file into SETTINGS directory 2018-01-17 18:52:38 +01:00
76a4c09f37 admin: add comments 2018-01-17 18:52:37 +01:00
eefac93091 admin: display publication confirmation; show an alert when empty scene 2018-01-17 18:52:37 +01:00
f2089c4d96 admin: display team history 2018-01-17 18:52:37 +01:00
41400a8710 admin: add history route in API 2018-01-17 18:52:37 +01:00
7b2fdaf0ad admin: alert can contains yes/no buttons 2018-01-17 18:52:36 +01:00
070807b485 admin: can dismiss alert 2018-01-17 18:52:36 +01:00
df5c9532cd admin: add confirmation message box on error and some success 2018-01-17 18:52:36 +01:00
1458c71cfa admin: improve team-print view 2018-01-17 18:52:36 +01:00
88ef2f64c0 admin: ensure _public is created at startup 2018-01-17 18:52:36 +01:00
a15b285090 admin: fix form to append teams 2018-01-17 18:52:35 +01:00
82ecd0d6dd admin: Fix redirections when using baseurl 2018-01-17 18:52:35 +01:00
d03350f6b3 Fix generated JSON in case of error 2018-01-17 18:52:35 +01:00
ce46313dd1 admin: make baseurl optional 2018-01-17 18:52:35 +01:00
410ab529ae admin: don't need submission directory anymore 2018-01-17 18:52:35 +01:00
d0f588e47d Generate DNS from env 2018-01-17 18:52:34 +01:00
db210ebc5e admin: improve design of settings page 2018-01-17 18:52:34 +01:00
2235470d9d admin: manage team certificate from interface 2018-01-17 18:52:34 +01:00
2e8d28542e admin: unify API to revoke certificates 2018-01-17 18:52:34 +01:00
31c079701f admin: Add a page to list teams and members 2018-01-17 18:52:34 +01:00
6148897dac settings: add title and authors 2018-01-17 18:52:33 +01:00
963c6ff4f2 admin: fix and generalize team stats 2018-01-17 18:52:33 +01:00
dea178b7ba admin: add danger alert in select 2018-01-17 18:52:33 +01:00
1ebcdd7687 Move PKI scripts at root 2018-01-17 18:52:33 +01:00
cc3892463a Compute hint mime type in a variable and display it instead of the hint content 2018-01-17 18:52:33 +01:00
50ec3df2d6 admin: add a route to simulate time.json on backend machine 2018-01-17 18:52:33 +01:00
7597fcfe5b admin: add button and route to reset some parts 2018-01-17 18:52:32 +01:00
7478051425 admin: interface to edit teams 2018-01-17 18:52:32 +01:00
4fe641a9f5 change the way themes are stored in stats 2018-01-17 18:52:31 +01:00
17f51f5e7b admin: can force page regeneration 2018-01-17 18:52:31 +01:00
318bc4bc4d Update openssl settings 2018-01-17 18:52:31 +01:00
544bbb745c admin: new route /members/ 2018-01-17 18:52:31 +01:00
416ad65c87 admin: add public interface management 2018-01-17 18:52:31 +01:00
d4177f6228 admin: allow import of remote hint and partials remote parts 2018-01-17 18:52:31 +01:00
b8b1f14806 admin: restore function to add team and members 2018-01-17 18:52:31 +01:00
8e91e7edbe admin: sanitize use of InitialName when needed 2018-01-17 18:52:30 +01:00
4550f653ea admin: Display time before start in UI 2018-01-17 18:52:30 +01:00
67f27d3d8b Force cd into PKI directory 2018-01-17 18:52:30 +01:00
b1c4ebfe45 settings: admin interface see default params 2018-01-17 18:52:30 +01:00
ef4a738672 admin: control settings 2018-01-17 18:52:29 +01:00
b42016c74a Coefficients transit and display on UI 2018-01-17 18:52:29 +01:00
b772a22705 Hints can something else than text 2018-01-17 18:52:29 +01:00
91182b1877 admin: Improve CA API 2018-01-17 18:52:28 +01:00
1c879fe50e squash! WIP: apply a coeff on given points 2018-01-17 18:52:14 +01:00
3f80b89a4c fill_exercices: flags.txt files can use tabulation char as separator instead of : 2018-01-17 18:51:54 +01:00
f3a484fb67 fill_exercice: define HINT_COST 2018-01-17 18:51:54 +01:00
1bd403cd8c Handle file import digest 2018-01-17 18:51:53 +01:00
0b4e8a233c admin: various fixes in fill_exercices 2018-01-17 18:51:53 +01:00
119280d814 admin: can pass args to fill_exercices to limit the fill to a theme or an exercice 2018-01-17 18:51:53 +01:00
63931f73ba admin: new argument --rapidimport to speed up the import but don't ensure consistency 2018-01-17 18:51:53 +01:00
f0621fa191 [admin] Add new routes to manage hints, files and keys 2018-01-17 18:51:53 +01:00
b6782962f1 [admin] Add events 2018-01-17 18:51:53 +01:00
863070c037 [admin] Add exercices related pages 2018-01-17 18:51:53 +01:00
6a4868b9b3 [admin] Add page title 2018-01-17 18:51:52 +01:00
27ca960b2a [admin] Add ng-sanitize 2018-01-17 18:51:52 +01:00
2e718b22b6 Merge exercices API routes 2018-01-17 18:51:52 +01:00
4b4c6881c7 Bump new version API 2018-01-17 18:51:52 +01:00
3b320469b5 Use github.com/julienschmidt/httprouter instead of gorilla 2018-01-17 18:51:52 +01:00
5a0b81ba32 Merge big splitted files before import 2018-01-17 18:51:52 +01:00
7fe35c5f1c WIP misc 2018-01-17 18:51:51 +01:00
25bf34e82c Multiple hints 2018-01-17 18:51:50 +01:00
1054dd7086 admin/api: use gorilla/mux instead of Go router 2018-01-17 18:51:44 +01:00
384b6cd212 themes: don't expect authors to be dirty 2017-11-25 15:01:01 +01:00
9894a91948 admin: can give the static dir location 2017-11-25 15:01:01 +01:00
5fa19223a9 admin: can change the baseurl interface 2017-11-25 15:01:01 +01:00
aa7afe1a6a by default, only listen on localhost 2017-11-25 15:01:00 +01:00
018282d798 fill_team: improve script reliability 2017-11-25 15:01:00 +01:00
e0a1aeb053 admin: add ability to add files from local storage 2017-11-25 15:00:54 +01:00
c137969b6a Add a logger prefix 2017-04-05 01:51:20 +02:00
347f317dd9 [admin] Improve interface 2017-04-05 01:51:20 +02:00
017adfb2b1 [admin] statistic generation 2017-01-12 11:55:30 +01:00
5e74b3f7ce [admin] Can retrieves tries rate 2017-01-12 11:55:29 +01:00
bde582ad4b Don't use the default mux for handling requests 2016-10-13 19:56:31 +02:00
fc0834ea4c log.Fatal already do Exit(1) 2016-10-13 19:56:31 +02:00
ad95ce6f16 admin: display team details instead of members 2016-10-13 19:56:30 +02:00
c711f9e78e admin: add exercices/ API to access and modify exercices 2016-10-13 19:56:30 +02:00
61f96a643c Use initial name instead of ID 2016-10-13 19:56:29 +02:00
467641f4f2 Add initial_name field in DB 2016-10-13 19:56:29 +02:00
1c62f61bf0 Backend: extract file generation and team renaming in dedicated files 2016-10-13 19:56:27 +02:00
ee67788d59 Expect full downloadable file pathname (allow CDN) 2016-10-13 19:56:26 +02:00
bd0deecc89 Team colors are uint32 2016-10-13 19:56:25 +02:00
a8031452f7 New scripts to get files 2016-10-13 19:56:23 +02:00
f3a15b00e9 Too much things 2016-02-01 16:07:41 +01:00
9b293b7d32 themes.json: add stat of tries count 2016-01-25 03:08:42 +01:00
6863891ba2 Improve team interface 2016-01-24 16:49:00 +01:00
e207e90c2e my.json now contains team members, instead of teams.json 2016-01-24 14:33:16 +01:00
2b2b1a893d admin: page for team binding 2016-01-24 14:33:16 +01:00
86d36589d4 Generate 12 empty extra teams 2016-01-24 14:33:16 +01:00
645f40f0c6 format 2016-01-23 13:19:28 +01:00
8788eea4f0 Use MySQL instead of SQLite 2016-01-23 13:17:24 +01:00
859dbc68cb Add authors in themes 2016-01-23 12:57:15 +01:00
e628e7931c Extract my.json generation 2016-01-23 12:57:15 +01:00
992dbfc67d Bufferize file download (to avoid OOM) 2016-01-23 12:57:14 +01:00
499346e611 Fully automated fill_exercice.sh 2016-01-23 12:57:14 +01:00
58fb73f742 admin: Don't download file already downloaded 2016-01-23 12:57:14 +01:00
46dcff83c3 admin: improve human interface 2016-01-23 12:57:14 +01:00
61dc38c09c admin: Implement theme modification through PATCH 2016-01-23 12:57:13 +01:00
ad6199269b admin: Add /exercices pages to get all exercices of a theme 2016-01-23 12:57:13 +01:00
c9e4d3e27c admin: fix static routing 2016-01-23 12:57:13 +01:00
db2e286677 Minor fix number of imported team 2016-01-23 12:57:13 +01:00
4f97d2088d Semi-manual fill_exercice.sh 2016-01-23 12:57:13 +01:00
b30d109529 Add color and error recovery 2016-01-23 12:57:12 +01:00
fa8343405b Use same BASEURI as gosrc 2016-01-23 12:57:12 +01:00
763396193e Improve fill_exo 2016-01-23 12:57:12 +01:00
2d7a7f67e8 Return an error if the file doesn't exists 2016-01-23 12:57:12 +01:00
d4ee546a91 Add script to append exercices 2016-01-23 12:57:12 +01:00
3aafb15f19 Add rank 2016-01-21 05:34:00 +01:00
5a8d2c36b7 Export themes.json 2016-01-21 05:34:00 +01:00
47610f0e2a Export teams.json 2016-01-21 05:34:00 +01:00
2f61d4d141 Display hash in hexadecimal form 2016-01-21 05:33:59 +01:00
69ad64715c Import file from owncloud 2016-01-21 05:33:59 +01:00
97bb149eb6 Add a script to fill DB with teams 2016-01-21 05:33:59 +01:00
ede5bb18b1 Add certificate generation and revokation 2016-01-21 05:33:59 +01:00
9324f6f5fa API can respond directly []byte (like files) 2016-01-21 05:33:58 +01:00
a1d60ee78f Sent keys type in my.json 2016-01-21 05:33:58 +01:00
59ae11e68d Add a color field for teams 2016-01-21 05:33:58 +01:00
8655997246 Add API for keys and files 2016-01-21 05:33:58 +01:00
989d5a6349 Generate my.json for each team 2016-01-21 05:33:57 +01:00
a6a152166e Report errors 2016-01-21 05:33:57 +01:00
92b81e467f Move common structs to libfic 2016-01-19 14:42:37 +01:00
d841542be4 Add a link for generation nginx certificate configuration 2016-01-19 14:42:37 +01:00
77fcaa39ff If a function returns a string, just display it 2016-01-19 14:42:37 +01:00
c2d26b6053 Add/remove/view themes and exercices 2016-01-19 14:42:37 +01:00
5bc3395b04 Allow team to be added by name, without member first 2016-01-19 14:42:36 +01:00
181953a9f0 Work on admin web interface 2016-01-19 14:42:36 +01:00
d635420a9f Add static page routing, place API under /api/ 2016-01-15 19:18:04 +01:00
e89af34c5c Change internal variable representation vs JSON one 2016-01-15 13:09:12 +01:00
8cf2a36fe1 Implement team deletion 2016-01-15 13:09:12 +01:00
40f7d7a0be Add theme listing 2016-01-15 13:09:12 +01:00
b958b01635 Implement team creation 2016-01-15 13:09:12 +01:00
5a6bac928e Add team listing 2016-01-15 13:09:12 +01:00
6ec37b83ce Add DB objects 2016-01-15 13:09:12 +01:00
abd5e2025e Add DB creation from schema 2016-01-15 13:09:12 +01:00
a5dc600f28 Add API basis 2016-01-15 13:09:12 +01:00