Commit Graph

1279 Commits

Author SHA1 Message Date
nemunaire 8aba067d05 settings: Convert JSON strings to the given type 2022-10-29 17:21:50 +02:00
nemunaire 95aadffb2e fic: Use user order to sort exercices in interface 2022-10-29 17:21:50 +02:00
nemunaire c78545c18b sync: Report custom errors 2022-10-29 17:21:50 +02:00
nemunaire 08ea1bac0d admin: Arrange unlockedChallengeUpTo field 2022-10-29 17:21:50 +02:00
nemunaire a0013947dd admin: Disable syncVideos when prod mod enabled 2022-10-29 17:21:50 +02:00
nemunaire c7968fb256 admin: Add button to switch from WIP to PROD 2022-10-29 17:21:50 +02:00
nemunaire c34fe51641 admin: config is not defined on sync page, use settings instead 2022-10-29 17:21:50 +02:00
nemunaire e84b1d67cb Fix go vet errors 2022-10-29 17:21:50 +02:00
nemunaire b0129e5239 sync: Use errors instead of string to report 2022-10-29 17:21:49 +02:00
nemunaire d8943ba1f3 admin: Improve resolutions.json 2022-10-29 17:21:49 +02:00
Élie BRAMI 8afbacd654 build: reduce nix cache miss.
Each pkgs.buildGoModule create a .go-modules sub derivation that is equivalent
to the vendor directory (aka it is copied to vendor). Before we have a cache
miss because this sub derivation has another name but it is the same (comapared
with nix-diff) here we rename this sub derivation to hit the network only once.

before:
$ nix build .#all --dry-run
these 15 derivations will be built:
  /nix/store/64z5ixzsfd536jkybap6364wlkm4s8jn-admin-202208232340-go-modules.drv
  /nix/store/hjj8dv97h00y5wfvw4xk0ax4745473zl-frontend-202208232340-go-modules.drv
  /nix/store/xrx1b6hnvq13qkijqrbw7jsbr3gf5fn8-dashboard-202208232340-go-modules.drv
  /nix/store/kv0spqnh3il0lgimg7gk40cxh5gspvkp-dashboard-202208232340.drv
  /nix/store/mpa6f97mrvfq7nd0vrwgsq9z2k3hhzgw-scores-sync-zqds-202208232340-go-modules.drv
  /nix/store/nl1p2k58rdazvjhpifc76948x5bjwr0f-repochecker-202208232340-go-modules.drv
  /nix/store/pc290pk0rxhm2vrrbn78f92r3k7mmhzx-backend-202208232340-go-modules.drv
  /nix/store/p5v7ghgndp78gx7g653kdw4yasyxnlad-backend-202208232340.drv
  /nix/store/sj3vv4sxva1rkrxrb6k7p66vq1b5nlgq-qa-202208232340-go-modules.drv
  /nix/store/q3f00kq76iq453awbihgh30r8j9np7g0-qa-202208232340.drv
  /nix/store/q6zcphpyqlk5yc9r0z9c4lbayvr1rnm6-scores-sync-zqds-202208232340.drv
  /nix/store/r4bq4b8g0pjn3k0r9wh70divbm9m7m3v-frontend-202208232340.drv
  /nix/store/wffyj2nbgzi0qmv6iqx0kn0hzzm41i61-repochecker-202208232340.drv
  /nix/store/yfisx4c6zhqcqyflbj064s0p60930v82-admin-202208232340.drv
  /nix/store/vk06zp9q2hs6149n363hmk8azfhxr683-fic-all.drv
this path will be fetched (0.01 MiB download, 0.04 MiB unpacked):
  /nix/store/7cifvbmgjm5y9ds5a7c6c861g1xcm1qr-stdenv-linux

after:
$ nix build .#all --dry-run
these 9 derivations will be built:
  /nix/store/826caq9p8rphffwyrvcpxgrs6p3xla13-fic-.-.-202208232340-go-modules.drv
  /nix/store/29gr8z8zm1qxd3hg4nfj5zpz39w5239j-qa-202208232340.drv
  /nix/store/2clvljkrlpfxfrlb4cyk68n8zq5xg3m4-dashboard-202208232340.drv
  /nix/store/5nz6izdjhsklq354m1fdssbadr2fnpkk-repochecker-202208232340.drv
  /nix/store/95pzd7y6n99v4dn4xyfi677kmdq536qg-frontend-202208232340.drv
  /nix/store/i79s2fkj5g75729lg76b2i126m7q36w9-scores-sync-zqds-202208232340.drv
  /nix/store/q1v7hq02hmqn4nql5rcyiwf6grlrdc4q-admin-202208232340.drv
  /nix/store/vkid4pr7r6w3glfhfyfg5malp501jkaf-backend-202208232340.drv
  /nix/store/f94c2m5fq6il03f97lyswcwg15s3c50w-fic-all.drv
this path will be fetched (0.01 MiB download, 0.04 MiB unpacked):
  /nix/store/7cifvbmgjm5y9ds5a7c6c861g1xcm1qr-stdenv-linux
2022-08-27 00:43:15 +02:00
Élie BRAMI af388dbfff flakes: Add .#all target. 2022-08-24 01:40:00 +02:00
Élie BRAMI 04a9e3b3b6 deps: Update vendorSha256 with script. 2022-08-24 00:51:49 +02:00
Élie BRAMI a3144fac45 feat: Avoid question in label.
continuous-integration/drone/push Build is passing Details
2022-06-12 23:12:23 +02:00
nemunaire 05f396f5c9 Remove all favicon
continuous-integration/drone/push Build is failing Details
2022-06-12 14:48:55 +02:00
nemunaire e0034a1fc1 Add .dockerignore 2022-06-12 13:18:18 +02:00
nemunaire b26ef1c0ce ui: Home button redirect to main_link 2022-06-12 13:18:18 +02:00
nemunaire 223f44572e admin: Can import videos 2022-06-12 13:18:18 +02:00
nemunaire dfe62e0b97 sync: Also allow overview.md for themes 2022-06-12 12:06:02 +02:00
nemunaire cf75367b5b ui: Fix main_logo loading 2022-06-12 12:06:02 +02:00
nemunaire 01a9bb2e94 ui: Prefix $FILES$ by base path 2022-06-12 12:06:02 +02:00
nemunaire 4cce95245e dockerfile: Update to node 16 + alpine 3.15 2022-06-12 12:06:02 +02:00
nemunaire d69c062d40 frontend: Fix chbase.sh using new version of svelte 2022-06-10 18:56:00 +02:00
nemunaire 9f45f10775 sync: Also ignore theme directories starting by _ 2022-06-10 18:54:25 +02:00
nemunaire 0f75b71f5f repochecker: Don't prefix stderr messages
continuous-integration/drone/push Build is failing Details
2022-06-10 16:54:13 +02:00
nemunaire 7b300d4ffe backend: Check file error
continuous-integration/drone/tag Build is failing Details
continuous-integration/drone/push Build is failing Details
2022-06-08 17:13:41 +02:00
nemunaire 32d003f7b7 admin: Fix public retrieval 2022-06-08 16:49:28 +02:00
nemunaire 4b1b5445f7 backend: Don't consider non error in MCQ as good response 2022-06-08 16:49:28 +02:00
nemunaire 0a8d0dad30 Can Unlock challenge up to a certain level 2022-06-08 16:47:03 +02:00
nemunaire e922171f17 evdist: Fix some segv 2022-06-08 12:31:08 +02:00
nemunaire 7a5c1eeba7 admin: Fix flag edition 2022-06-08 12:24:38 +02:00
nemunaire 38857054ba dashboard: Fix dockerfile 2022-06-08 11:23:55 +02:00
nemunaire 36af72d616 admin: Fix team symlink for dex generation 2022-06-08 11:22:30 +02:00
nemunaire 498e3c5b63 evdist: Chmod temporary files 2022-06-08 10:00:21 +02:00
nemunaire 30a665ff72 Add theodore keys 2022-06-08 10:00:01 +02:00
nemunaire 750db69b06 settings: Can display a global message on all pages 2022-06-08 09:12:56 +02:00
nemunaire e9dd35f8ac settings: Can disable all submission button for maintenance 2022-06-08 09:12:56 +02:00
nemunaire 329bd246c7 admin: Add stats about submissions rate 2022-06-08 04:02:06 +02:00
nemunaire 116c061715 dashboard: Update 2022-06-08 03:39:50 +02:00
nemunaire 9ea415b857 admin: Fix nil pointer when seeing public team 2022-06-08 03:06:29 +02:00
nemunaire 159672ec47 admin: Don't erase challenge.json if already exists 2022-06-08 03:00:50 +02:00
nemunaire cfde1689cc Remove from frontend the settings distribution role 2022-06-08 02:57:29 +02:00
nemunaire af6e86d4ef evdist: New project to handle settings programming 2022-06-08 02:57:29 +02:00
nemunaire 0831ea6088 remote-challenge-sync-airbus: WIP 2022-06-08 02:57:29 +02:00
nemunaire a82defe2a7 fickit: Add missing gateway 2022-06-08 02:57:29 +02:00
nemunaire a7dda3a999 fickit: Reenable dhcpd on admin 2022-06-08 02:57:29 +02:00
nemunaire cdc342bea3 fickit: Missing SYNC dir 2022-06-08 02:57:29 +02:00
nemunaire d2d7b35623 remote-challenge-sync-airbus: Handle interrupts 2022-06-08 02:57:29 +02:00
nemunaire cc1b212cca remote-challenge-sync-airbus: Add inotify watcher 2022-06-08 02:57:29 +02:00
nemunaire 367e686e8a remote-challenge-sync-airbus: WIP 2022-06-07 16:18:48 +02:00