Open hiisukun opened 1 week ago
I will note that using the core-beta that shipped with 3.7.3 works fine -- but changing to core-beta-built-today
in the admin selection panel causes the above crash. Switching back to the built-in corrects it straight away, and I can use the CTFd instance without issue.
@hiisukun Very recent change that has not shipped in a proper release yet https://github.com/CTFd/CTFd/commit/ac8c46d214897e8e3c7087c00a8692a2efca3a23
We could issue a 3.7.4 release but I think it would be better for you to work off of CTFd master because this light/dark theme change has not really baked a lot.
Alternatively you could remove this line: https://github.com/CTFd/core-beta/blob/main/templates/base.html#L17 and inline the code as shown here: https://github.com/CTFd/core-beta/commit/81c8774af3c82c7b4f68fbd8f066417a0f3212fd#diff-690b81fad8df2a1f1ce37c846641d9247e3472d244f17039d2910a5ed0c98d5e
Excellent, thanks @ColdHeat - that worked a charm. I think it resulted in my CTFd being in dark-mode (though it's night time here..) but that's no issue.
Is the color_mode_switcher.js
and theme work stable? I might be happy to cherry pick that to our 3.7.3 event, if the CTFd changes are just that assets.py
.
And thanks for the fast reply! : )
I think there are some rough edges with dark mode but it works well enough. Aside from the assets.py change there's nothing in it that should cause any breakages.
Hey team -- I cloned core-beta from
main
today, ranyarn build
without issue, but when I put the theme in a fresh CTFd:3.7.3 container I get "Internal Server Error" when loading the CTFd instance root/homepage.The container log shows
TypeError: _AssetsWrapper.js() got an unexpected keyword argument 'type'
.Any suggestions? I'd like to use a CTFd 'release' that is tagged, so if there is an older core-beta commit I need to work from that might be fine.
Here's the full log: