feat: 自定义 404/500 错误页面#28
Open
xiokuai wants to merge 78 commits into
Open
Conversation
* Add markdown * Add md for comment * Add Chinese lables for form * Add markdown refer
11.9 Development
Nov.14 Dev
Add support of LaTex
Dev 2025.1.18
Replace FBV with CBV
Update html
feat: 优化架构
Allow users to switch between light/dark/auto themes via localStorage, instead of relying solely on OS prefers-color-scheme.
与主题切换功能保持一致,手动切换暗色时样式也能正确生效。
用户名限制 2-20 字符,仅允许字母、数字、下划线和中文。
根据 review 反馈,主题切换不应在需要登录的设置页面, 改为导航栏右侧图标按钮,未登录用户也可使用。
根据 review 反馈,将 README 改为英文,中文文档保留为 README_CN.md。
使用随机加法验证替代简单弹窗,风格与帖子删除页面统一。 解决分支冲突,合并楼层号功能。
feat: 在设置页面添加主题切换按钮
docs: 重写 README
feat: 添加评论删除功能
fix: 帖子详情页暗色样式适配主题切换
毛玻璃卡片设计,随机背景图片
Contributor
Author
|
事实上,这个东西主要是写给我自己的,为了防止在coding时望着404疯掉m,颜控是胜利awa |
Owner
|
图片不应该放在代码仓库中,尤其是大量的图片。(背景图片用处不大) |
Owner
实际上,开发(环境变量DEBUG=1)时404和500都会返回详细错误信息:) |
Contributor
Author
|
我知道,但这个能让我心情变好,这很重要!!! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
包含内容
forum/templates/404.html- 页面未找到forum/templates/500.html- 服务器错误forum/static/img/- 19 张背景图片