You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
npmrun fd65d13487 fix(drone): navigate to the unzip directory before starting the application 1 week ago
.vscode feat: integrate Nuxt UI, add Tailwind CSS support, and restructure app layout 3 weeks ago
.agents/skills/frontend-design feat(frontend-design): add new skill for creating high-quality frontend interfaces 3 weeks ago
.cursor/skills/backend-security-audit feat(security): add backend security audit skill and enhance user registration error handling 3 weeks ago
app feat(quick-note): enhance quick note editor with content change events and mobile responsiveness 2 weeks ago
build-files ad 1 week ago
docs docs(quick-note): add design spec and implementation plan 2 weeks ago
packages feat(quick-note): enhance quick note editor with content change events and mobile responsiveness 2 weeks ago
public feat(media): refactor media handling to use static directory structure 2 weeks ago
scripts fix(drone): update deployment configuration for SSH handling and branch trigger 1 week ago
server feat(quick-note): add resizable quick note modal with per-user persistence 2 weeks ago
skills feat(frontend-design): add new skill for creating high-quality frontend interfaces 3 weeks ago
.drone.yml fix(drone): navigate to the unzip directory before starting the application 1 week ago
.env.example feat(deploy): add CI/CD pipeline and deployment script 2 weeks ago
.gitignore fix(drone): update deployment configuration for SSH handling and branch trigger 1 week ago
README.md feat(export): add export center UI and usage docs 2 weeks ago
bun.lock feat(markdown): migrate editor to Vditor with mobile-aware behavior 2 weeks ago
nuxt.config.ts feat(quick-note): enhance quick note editor with content change events and mobile responsiveness 2 weeks ago
package.json feat(drone): enhance deployment configuration with additional environment variables and PM2 commands 1 week ago
skills-lock.json feat(frontend-design): add new skill for creating high-quality frontend interfaces 3 weeks ago
tsconfig.json init 4 weeks ago

README.md

需求

  • 最好用linux开发,window可以用wsl

文档

提醒

用 Linux 开发与部署,包管理器采用 bun@1.3.11。数据库为 postgres(通过 DATABASE_URL 连接;本地可参考 .env.example 复制为 .env.local)。部署时可直接打包 .output 目录,在服务器环境执行迁移命令,省时省力。

部署

提供最简单的部署方式:

  1. bun run build
  2. 进入.output文件夹
  3. 编辑.env环境变量
  4. sh run.sh 不采用重量级的docker,可以直接打包.output到服务器部署,数据库目前只支持sqlite

用户数据导出 API

已登录用户可通过以下接口发起并获取导出结果:

  1. POST /api/me/export/request

    • 用途:创建导出任务并异步执行。
    • 请求体:{ "maskPolicy": "masked" | "raw" }(可省略,默认 masked)。
    • 返回示例:{ "code": 0, "data": { "taskId": 123, "status": "pending" } }
  2. GET /api/me/export/tasks

    • 用途:查询当前用户导出任务列表。
    • 返回数据包含:idstatusmaskPolicyoutputNametotalByteserrorCodeerrorMessagecreatedAtupdatedAtexpiresAt
  3. GET /api/me/export/tasks/:id/download

    • 用途:下载已完成任务的 manifest.json
    • 说明:仅可下载当前用户自己的任务;任务未完成会返回 409,已过期返回 410