Commit Graph

42 Commits

Author SHA1 Message Date
Yuzhong Zhang d651bde38b 添加 .gitattributes 文件以自动处理文本文件的换行符,并在 .idea 目录中添加 .gitignore 文件以忽略特定的 IDE 配置文件和数据源存储文件。 2025-07-08 16:35:57 +08:00
Yuzhong Zhang a090ce26cd use submodule 2025-07-08 14:44:24 +08:00
Yuzhong Zhang 31b7b513a9 Update docker-compose.yml 2025-07-06 22:21:13 +08:00
Yuzhong Zhang b570b004d7 添加env example 2025-07-06 20:33:03 +08:00
Yuzhong Zhang 82da279332 Update README docs and add feature screenshots
Renamed 'Excalidraw Complete' to 'Excalidraw Full' in both English and Chinese README files. Added new sections highlighting core differences from the official Excalidraw, and included four illustrative screenshots to showcase multi-canvas management, storage options, OAuth2 login, and AI features.
2025-07-06 16:10:49 +08:00
Yuzhong Zhang a7c4624e70 Update README and docker-compose; add Chinese README
Expanded and clarified the main README with new features, configuration, and deployment instructions. Added a Chinese translation (README_zh.md). Updated docker-compose.yml to improve volume and env file mounting.
2025-07-06 16:02:39 +08:00
Yuzhong Zhang 7083d04fbf 文件系统的存储方式 2025-07-06 15:38:48 +08:00
Yuzhong Zhang 44414af085 Add thumbnail support to Canvas and storage backends
Introduces a 'thumbnail' field to the Canvas model and updates all storage backends (AWS S3, filesystem, memory, and SQLite) to handle storing and retrieving this field. Also updates the API handler to accept and save the thumbnail, and switches SQLite driver to modernc.org/sqlite for improved compatibility. Updates .gitignore to exclude .db files.
2025-07-06 15:02:58 +08:00
Yuzhong Zhang e4981703fe 优化缩略图的处理 2025-07-06 14:28:05 +08:00
Yuzhong Zhang 15327cee5a Update docker-build.yml 2025-07-06 13:05:20 +08:00
Yuzhong Zhang 41b7d7f06a 移除posthog 2025-07-06 12:58:20 +08:00
Yuzhong Zhang 29286f6d32 Update vite.config.mts 2025-07-06 12:55:53 +08:00
Yuzhong Zhang 356f0280c4 del build dist 2025-07-06 12:47:55 +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 fb9af7c7ca Update excalidraw-complete.Dockerfile 2025-07-05 23:49:27 +08:00
Yuzhong Zhang 999465cc50 Add option to disable vite checker via env variable
Introduced the DISABLE_VITE_CHECKER environment variable to conditionally disable the vite checker plugin in the build process. Updated the Dockerfile to set this variable during the Docker build, allowing builds to bypass vite checker when needed.
2025-07-05 23:45:23 +08:00
Yuzhong Zhang 96ac0f1a2d 1 2025-07-05 23:41:30 +08:00
Yuzhong Zhang 88d3983f26 更新项目配置与构建流程
本次提交包含以下主要更改:
1. 更新 `.gitignore` 文件,移除对子目录环境变量文件的忽略。
2. 修改 `excalidraw-complete.Dockerfile`,将构建工具从 `npm` 更改为 `pnpm`,并移除不必要的补丁步骤。
3. 更新 GitHub Actions 工作流 `docker-build.yml`,移除对子模块的递归检出。
4. 修改 `excalidraw/.env.production` 文件,调整后端 API 地址为本地开发环境,并更新 Firebase 配置。
5. 移除 `husky` 相关依赖及配置,简化项目依赖。

这些更改旨在优化开发环境配置,提高构建效率,并简化项目依赖管理。
2025-07-05 23:39:52 +08:00
Yuzhong Zhang b9ba07ea5d app init 2025-07-05 23:27:59 +08:00
Yuzhong Zhang 602f4629ff init frontend 2025-07-05 23:22:48 +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
Yuzhong Zhang 61abbc612b fix 2025-06-23 13:02:10 +08:00
Yuzhong Zhang ce0d79c2f0 fix 2025-06-23 12:56:37 +08:00
Yuzhong Zhang 1b50a9e398 fix 2025-06-23 12:49:48 +08:00
Yuzhong Zhang 7b2f7af77c fix 2025-06-23 12:34:34 +08:00
Yuzhong Zhang 1d2ff532f5 fix 2025-06-23 12:12:10 +08:00
Yuzhong Zhang d08386e7d6 fix 2025-06-23 12:00:27 +08:00
Yuzhong Zhang 315f16d8b7 添加 GitHub Actions 工作流以构建和推送 Docker 镜像
此更改引入了一个新的工作流文件 `docker-build.yml`,用于在推送和拉取请求时自动构建和推送 Docker 镜像。工作流包括前端构建、上传工件、登录容器注册表以及提取元数据等步骤,旨在简化 CI/CD 流程并提高构建效率。
2025-06-23 11:56:16 +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
Patrick Wieschollek 293c56fdaa Merge pull request #10 from codiflow/patch-2
Update README.md
2024-05-24 15:42:29 +02:00
Christian 🦄 fc6de8bf05 Update README.md 2024-05-24 15:23:00 +02:00
Christian 🦄 9568cb57b5 Update README.md 2024-05-24 09:29:58 +00:00
Christian 🦄 20f66fa125 Fixed commands for building from src 2024-05-24 09:29:53 +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 2347954061 Pack as docker for AWS Fargate
Spawning this a AWS Fargate services requires a docker image.
2024-05-24 09:24:13 +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