Yuzhong Zhang
4da39f2d6a
添加 OIDC 认证支持,更新环境变量配置,重构 Docker Compose 文件,移除旧的 Dex 初始化脚本,优化用户模型,更新前端登录流程,支持通过 OIDC 登录。
2025-08-18 20:50:43 +08:00
Yuzhong Zhang
cd2662b349
更新主机地址替换逻辑,支持通过环境变量配置后端主机,增强反向代理和跨域支持。
2025-07-09 13:44:27 +08:00
Yuzhong Zhang
54603463c5
优化 handleUI 函数,改进文件路径处理逻辑
...
本次提交主要更改了 `handleUI` 函数的实现,具体包括:
1. 将返回类型从 `http.Handler` 修改为 `http.HandlerFunc`。
2. 改进了对请求路径的处理,确保根路径请求返回 `index.html`。
3. 增强了对嵌入文件系统中不存在文件的处理逻辑,支持客户端路由。
4. 更新了内容类型检测逻辑,确保根据请求路径正确设置响应的 Content-Type。
这些更改旨在提升文件处理的灵活性和准确性,改善用户体验。
2025-07-05 23:59:31 +08:00
Yuzhong Zhang
94953a5eac
更新项目架构与存储适配器,添加用户认证功能
...
本次提交包含以下主要更改:
1. 更新 `.gitignore` 文件,添加对 `node_modules` 和环境变量文件的忽略。
2. 修改 `.gitmodules` 文件,替换为新的子模块 `cloudflare-worker`。
3. 新增 `ARCHITECTURE.md` 和 `PROJECT_REFACTOR_PLAN.md` 文档,详细描述项目架构和改造计划。
4. 实现用户认证功能,添加 GitHub OAuth 处理逻辑,支持 JWT 生成与解析。
5. 引入新的存储接口 `CanvasStore`,并实现相应的存储逻辑,支持用户画布的增删改查。
6. 更新 `main.go` 文件,整合新的认证与存储逻辑,优化路由设置。
这些更改旨在提升项目的可扩展性与用户体验,支持多用户环境下的画布管理与存储。
2025-07-05 23:13:17 +08:00
patwie
5ae64e7aca
Make server listen address configurable via flags
...
To improve the flexibility and configurability of the server, add a
`listen` flag to specify the server's listen address. This replaces
the hardcoded `localhost:3002` string.
This change addresses the need for configuring the server address
dynamically, facilitating easier deployment and testing.
Resolves : #8
2024-06-10 09:20:00 +00:00
patwie
257e46d2c8
Add structured logging to documentStore methods
...
To troubleshoot reported issues, we add more debugging outputs in
the logging. This includes detailed, structured logs in the Create
and FindID methods to provide better traceability and debuggability.
These changes help diagnose issues by providing detailed context in
the logs, which should improve the ability to identify and resolve
problems.
See also: #9
2024-06-10 09:11:26 +00:00
patwie
f1bedf8a0d
Redirect to index.html
...
The new hot-patching does not handle "/" correctly. Here, we correctly
route to index.html.
2024-05-24 09:25:08 +00:00
patwie
0e8c968aa3
Add health endpoint
...
Hosting this behind an ALB/ELB requires a health check route.
2024-05-24 09:23:56 +00:00
patwie
eea09906f4
Intercept calls to firebase API
...
Instead of calling any third-party or home, we provide the stub for
firebase API calls.
2024-04-14 13:29:39 +00:00
patwie
3893dfb13e
Add excalidraw as submodule
2024-03-29 13:53:53 +00:00
patwie
31c8029402
Add different data providers and improve docs
...
This adds support for switching between in-memory, local filesystem, s3
or sqlite.
2024-03-29 13:10:54 +00:00
patwie
2dd1421b6e
Add webUI into binary
...
To get the most simple deployment of excalidraw, the binary should ship
all components (webUI, socket.io, data storage).
2024-03-29 09:55:57 +00:00
patwie
36e3ecb5c7
Initial prototype
2024-03-28 23:57:33 +00:00