6c905dc3ce
feat: implement dynamic README loading based on user language
...
- Updated app.py to load the README content from language-specific markdown files located in the templates directory.
- Added new index.md files for English and Chinese, providing localized information about PsychoScales.Org and its resources.
2025-06-17 08:27:01 +08:00
27794895c9
feat: implement multilingual template support
...
- Updated app.py to dynamically load Jinja2 templates based on the detected language.
- Created new template files for English and Chinese, including base, index, list, scale, and result pages.
- Modified template rendering logic to utilize the appropriate language-specific templates based on user preferences.
2025-06-17 08:08:18 +08:00
8f202262ee
feat: add language detection middleware for request handling
...
- Implemented LanguageMiddleware to determine the user's language based on query parameters, Accept-Language header, or IP address.
- Updated the FastAPI app to include the middleware and pass the detected language to templates.
- Modified base.html to dynamically set the HTML language attribute based on the detected language.
2025-06-17 07:48:38 +08:00
345c571dda
feat: 增加公共文件访问功能并添加favicon和robots.txt
...
- 新增公共文件访问接口,允许从public目录获取文件
- 添加favicon.ico以改善网站标识
- 新增robots.txt以指导搜索引擎爬虫行为
2025-06-16 03:50:28 +08:00
df77a10735
添加均分计算
2025-05-17 20:03:45 +08:00
mxr612
ca37b9758b
docs: 更新页面标题以反映品牌名称和动态内容
...
更新了 `index.html` 中的标题为 "心尺.Org",以更准确地反映品牌名称。同时,将 `list.html` 中的标题改为动态显示 `{{ tag }}`,以便根据页面内容动态调整标题。
2025-04-26 21:44:04 +08:00
mxr612
88d046d9cc
docs: 将“心尺”统一更新为“心尺.Org”
...
将README.md和base.html中的“心尺”统一更新为“心尺.Org”,以确保品牌名称的一致性。
2025-04-26 21:31:57 +08:00
mxr612
0a6e38b7e3
docs: 更新页面标题为“心尺”
...
将页面标题从“心尺 PsychoScales”简化为“心尺”,以保持简洁性和一致性。
2025-04-26 21:21:30 +08:00
mxr612
6b41b8e096
refactor: 重构标签处理和界面文本
...
- 删除tagmap.yml文件,简化标签处理逻辑
- 将标签存储方式从字典改为列表,减少复杂性
- 更新界面文本,将"PsychoScales"替换为"心尺"
- 修改README.md中的项目描述,使其更简洁清晰
2025-04-26 20:44:29 +08:00
mxr612
c4efd778a9
style: 调整CSS样式和HTML模板格式
...
- 修改`styles.css`中的`input[type="submit"]`样式,增加宽度并调整边距
- 修复`scale.html`中的拼写错误,将`lable`改为`label`
- 更新`base.html`的meta描述和关键词,优化SEO
- 调整HTML模板中的格式和缩进,提高代码可读性
2025-04-22 21:09:49 +08:00
mxr612
74931a5161
更新了base中的js放置和meta信息
2025-03-15 21:37:54 +08:00
mxr612
74546fc2fb
更改了两处量表配置命名,优化了一处css
2025-03-14 23:52:54 +08:00
mxr612
4fc9660f8b
修复了量表计算逻辑,修复了量表required提示
2025-03-10 12:48:42 +00:00
mxr612
7e85847a41
更改了item range的标注方式,为PSAI作准备。
2025-03-10 06:37:20 +00:00
mxr612
e90daedb48
修复了list页html safe
2025-03-09 10:43:52 +00:00
mxr612
f817765913
优化了list页面样式
2025-03-09 10:38:10 +00:00
mxr612
e2199cfe5a
导航栏适配了移动设备
2025-03-09 09:53:06 +00:00
mxr612
fa2c0af4ec
优化了提交按钮样式,修复了结果页标题
2025-03-09 03:39:10 +00:00
mxr612
4a99a7b9d1
将tag目录置为/tag/{tag},避免与其他目录冲突。
2025-03-08 07:55:25 +00:00
mxr612
441768dab0
使用了html模板;增加了导航栏;将lang改为看起来更加通用的tag
2025-03-07 12:47:41 +00:00
mxr612
4954abfca4
增加了首页语言分类及语言二级菜单,美化了结果路径,添加了内容层级及content居中
2025-03-07 03:54:04 +00:00
mxr612
1e4470650a
增加了浮动abstract和一个量表
2025-03-06 09:26:21 +00:00
mxr612
22c222813b
完善了样例量表,增加了描述中数学公式的支持。
2025-03-05 11:49:52 +00:00
mxr612
9356c13339
替换json为yml加载,简化了编辑。同时优化了数据结构
2025-03-05 10:08:57 +00:00
mxr612
df675505d9
更换url风格,修复了https下的表单提交报错
2025-03-05 08:17:36 +00:00
mxr612
e1f804fbef
通过写死Static路径改善https适配
2025-03-05 07:27:04 +00:00
mxr612
f2011039be
优化了CSS:表单选项尺寸和在移动设备上的表现
2025-03-05 04:08:00 +00:00
mxr612
1566a795eb
添加了CSS样式
2025-03-05 03:34:45 +00:00
mxr612
f0440a21a2
增添了首页加载README.md
2025-03-05 03:09:51 +00:00
mxr612
97a3b7b7bf
使用Flask和PyScript构建了一个简单的量表网站框架,实现了:
...
1. 纯json的量表编辑
2. 任意区间的Ratio填写
3. 可选的Reverse item
4. 可按照子量表计算结果
2025-03-04 19:29:43 +08:00