diff --git a/vitepress-docs/docs/public/feature/another-worker-enhanced-01.png b/vitepress-docs/docs/public/feature/another-worker-enhanced-01.png index eb39010b..baddc6e5 100644 Binary files a/vitepress-docs/docs/public/feature/another-worker-enhanced-01.png and b/vitepress-docs/docs/public/feature/another-worker-enhanced-01.png differ diff --git a/vitepress-docs/docs/public/feature/another-worker-enhanced-02.png b/vitepress-docs/docs/public/feature/another-worker-enhanced-02.png index 89ac83d8..534f711c 100644 Binary files a/vitepress-docs/docs/public/feature/another-worker-enhanced-02.png and b/vitepress-docs/docs/public/feature/another-worker-enhanced-02.png differ diff --git a/vitepress-docs/docs/public/feature/another-worker-enhanced-03.png b/vitepress-docs/docs/public/feature/another-worker-enhanced-03.png index 913799c1..11614351 100644 Binary files a/vitepress-docs/docs/public/feature/another-worker-enhanced-03.png and b/vitepress-docs/docs/public/feature/another-worker-enhanced-03.png differ diff --git a/vitepress-docs/docs/public/feature/another-worker-enhanced-04.png b/vitepress-docs/docs/public/feature/another-worker-enhanced-04.png index 67f59aed..e2e6a813 100644 Binary files a/vitepress-docs/docs/public/feature/another-worker-enhanced-04.png and b/vitepress-docs/docs/public/feature/another-worker-enhanced-04.png differ diff --git a/vitepress-docs/docs/public/feature/oauth2-login.png b/vitepress-docs/docs/public/feature/oauth2-login.png index ba880725..e24eb88c 100644 Binary files a/vitepress-docs/docs/public/feature/oauth2-login.png and b/vitepress-docs/docs/public/feature/oauth2-login.png differ diff --git a/vitepress-docs/docs/public/readme_assets/d1.png b/vitepress-docs/docs/public/readme_assets/d1.png index e20e8743..95619ba7 100644 Binary files a/vitepress-docs/docs/public/readme_assets/d1.png and b/vitepress-docs/docs/public/readme_assets/d1.png differ diff --git a/vitepress-docs/docs/public/readme_assets/demo.png b/vitepress-docs/docs/public/readme_assets/demo.png index 098d1cb5..269bf734 100644 Binary files a/vitepress-docs/docs/public/readme_assets/demo.png and b/vitepress-docs/docs/public/readme_assets/demo.png differ diff --git a/vitepress-docs/docs/public/readme_assets/email.png b/vitepress-docs/docs/public/readme_assets/email.png index 4ef138fa..1e3cbbc9 100644 Binary files a/vitepress-docs/docs/public/readme_assets/email.png and b/vitepress-docs/docs/public/readme_assets/email.png differ diff --git a/vitepress-docs/docs/public/readme_assets/worker.png b/vitepress-docs/docs/public/readme_assets/worker.png index 2ac8a451..868390ad 100644 Binary files a/vitepress-docs/docs/public/readme_assets/worker.png and b/vitepress-docs/docs/public/readme_assets/worker.png differ diff --git a/vitepress-docs/docs/public/ui_install/d1-exec.png b/vitepress-docs/docs/public/ui_install/d1-exec.png index 656c35af..fe131132 100644 Binary files a/vitepress-docs/docs/public/ui_install/d1-exec.png and b/vitepress-docs/docs/public/ui_install/d1-exec.png differ diff --git a/vitepress-docs/docs/public/ui_install/d1.png b/vitepress-docs/docs/public/ui_install/d1.png index 24b28f76..8ee4a24d 100644 Binary files a/vitepress-docs/docs/public/ui_install/d1.png and b/vitepress-docs/docs/public/ui_install/d1.png differ diff --git a/vitepress-docs/docs/public/ui_install/pages-1.png b/vitepress-docs/docs/public/ui_install/pages-1.png index ead1d28f..2b3aaa5d 100644 Binary files a/vitepress-docs/docs/public/ui_install/pages-1.png and b/vitepress-docs/docs/public/ui_install/pages-1.png differ diff --git a/vitepress-docs/docs/public/ui_install/pages.png b/vitepress-docs/docs/public/ui_install/pages.png index e6a4c9aa..76b51d69 100644 Binary files a/vitepress-docs/docs/public/ui_install/pages.png and b/vitepress-docs/docs/public/ui_install/pages.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-1.png b/vitepress-docs/docs/public/ui_install/worker-1.png index 7fddd7c8..7a21ba89 100644 Binary files a/vitepress-docs/docs/public/ui_install/worker-1.png and b/vitepress-docs/docs/public/ui_install/worker-1.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-2.png b/vitepress-docs/docs/public/ui_install/worker-2.png index eb2ee988..e4685aaf 100644 Binary files a/vitepress-docs/docs/public/ui_install/worker-2.png and b/vitepress-docs/docs/public/ui_install/worker-2.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-3.png b/vitepress-docs/docs/public/ui_install/worker-3.png index 2777cad9..af2cb05e 100644 Binary files a/vitepress-docs/docs/public/ui_install/worker-3.png and b/vitepress-docs/docs/public/ui_install/worker-3.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-bindings.png b/vitepress-docs/docs/public/ui_install/worker-bindings.png new file mode 100644 index 00000000..f311eee2 Binary files /dev/null and b/vitepress-docs/docs/public/ui_install/worker-bindings.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-d1-1.png b/vitepress-docs/docs/public/ui_install/worker-d1-1.png new file mode 100644 index 00000000..a1b74f5a Binary files /dev/null and b/vitepress-docs/docs/public/ui_install/worker-d1-1.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-d1-2.png b/vitepress-docs/docs/public/ui_install/worker-d1-2.png new file mode 100644 index 00000000..279d854f Binary files /dev/null and b/vitepress-docs/docs/public/ui_install/worker-d1-2.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-d1.png b/vitepress-docs/docs/public/ui_install/worker-d1.png index 2fcc0551..a0b6cacd 100644 Binary files a/vitepress-docs/docs/public/ui_install/worker-d1.png and b/vitepress-docs/docs/public/ui_install/worker-d1.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-kv-0.png b/vitepress-docs/docs/public/ui_install/worker-kv-0.png new file mode 100644 index 00000000..8ad3d59e Binary files /dev/null and b/vitepress-docs/docs/public/ui_install/worker-kv-0.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-kv-1.png b/vitepress-docs/docs/public/ui_install/worker-kv-1.png new file mode 100644 index 00000000..8c6380c1 Binary files /dev/null and b/vitepress-docs/docs/public/ui_install/worker-kv-1.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-kv-2.png b/vitepress-docs/docs/public/ui_install/worker-kv-2.png new file mode 100644 index 00000000..5d601e26 Binary files /dev/null and b/vitepress-docs/docs/public/ui_install/worker-kv-2.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-kv-bind.png b/vitepress-docs/docs/public/ui_install/worker-kv-bind.png deleted file mode 100644 index ec79a99b..00000000 Binary files a/vitepress-docs/docs/public/ui_install/worker-kv-bind.png and /dev/null differ diff --git a/vitepress-docs/docs/public/ui_install/worker-kv.png b/vitepress-docs/docs/public/ui_install/worker-kv.png index 870d8870..84103aab 100644 Binary files a/vitepress-docs/docs/public/ui_install/worker-kv.png and b/vitepress-docs/docs/public/ui_install/worker-kv.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-runtime.png b/vitepress-docs/docs/public/ui_install/worker-runtime.png index f21cf82c..afed4da8 100644 Binary files a/vitepress-docs/docs/public/ui_install/worker-runtime.png and b/vitepress-docs/docs/public/ui_install/worker-runtime.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker-var.png b/vitepress-docs/docs/public/ui_install/worker-var.png index 0fc819c2..9658aee0 100644 Binary files a/vitepress-docs/docs/public/ui_install/worker-var.png and b/vitepress-docs/docs/public/ui_install/worker-var.png differ diff --git a/vitepress-docs/docs/public/ui_install/worker_home.png b/vitepress-docs/docs/public/ui_install/worker_home.png index d4c09edb..b4352000 100644 Binary files a/vitepress-docs/docs/public/ui_install/worker_home.png and b/vitepress-docs/docs/public/ui_install/worker_home.png differ diff --git a/vitepress-docs/docs/zh/guide/ui/d1.md b/vitepress-docs/docs/zh/guide/ui/d1.md index 58b2589a..145bec4a 100644 --- a/vitepress-docs/docs/zh/guide/ui/d1.md +++ b/vitepress-docs/docs/zh/guide/ui/d1.md @@ -2,7 +2,7 @@ ## 创建数据库 -打开 cloudflare 控制台,选择 `Workers & Pages` -> `D1` -> `Create Database`,点击创建数据库 +打开 cloudflare 控制台,选择 `Storage & Databases` -> `D1 SQL Database` -> `Create Database`,点击创建数据库 ![d1](/ui_install/d1.png) @@ -10,13 +10,11 @@ ## 初始化数据库 -你也可以跳过初始化数据库,在部署完成后,在 admin 页面的 `快速设置` -> `数据库` 中,点击 `初始化数据库` 按钮来初始化数据库 - ::: warning 注意 -下面输入的是 `db/schema.sql` 的内容 +你也可以跳过初始化数据库,在部署完成后,在 admin 页面的 `快速设置` -> `数据库` 中,点击 `初始化数据库` 按钮来初始化数据库 ::: -打开 `Console` 标签页,输入 `db/schema.sql` 的内容,点击 `Execute` 执行 +打开 `Console` 标签页,输入仓库中 [db/schema.sql](https://github.com/dreamhunter2333/cloudflare_temp_email/blob/main/db/schema.sql) 文件的内容,点击 `Execute` 执行 ![d1](/ui_install/d1-exec.png) diff --git a/vitepress-docs/docs/zh/guide/ui/pages.md b/vitepress-docs/docs/zh/guide/ui/pages.md index 9d29d9b3..f6efa61e 100644 --- a/vitepress-docs/docs/zh/guide/ui/pages.md +++ b/vitepress-docs/docs/zh/guide/ui/pages.md @@ -42,11 +42,11 @@ const generate = async () => { } -1. 点击 `Workers & Pages` -> `Overview` -> `Create Application` +1. 点击 `Compute (Workers)` -> `Workers & Pages` -> `Create` ![create pages](/ui_install/worker_home.png) -2. 选择 `Pages`,选择 `Create using direct upload` +2. 选择 `Pages`,选择 `Use direct upload` ![pages](/ui_install/pages.png) diff --git a/vitepress-docs/docs/zh/guide/ui/worker.md b/vitepress-docs/docs/zh/guide/ui/worker.md index 58f78e96..085fe239 100644 --- a/vitepress-docs/docs/zh/guide/ui/worker.md +++ b/vitepress-docs/docs/zh/guide/ui/worker.md @@ -3,15 +3,16 @@ > [!warning] 注意 > `worker.dev` 域名在中国无法访问,请自定义域名 -1. 点击 `Workers & Pages` -> `Overview` -> `Create Application` +1. 点击 `Compute (Workers)` -> `Workers & Pages` -> `Create` ![create worker](/ui_install/worker_home.png) 2. 选择 `Worker`,点击 `Create Worker`, 修改名称然后点击 `Deploy` ![worker1](/ui_install/worker-1.png) + ![worker2](/ui_install/worker-2.png) -3. 回到 `Overview`,找到刚刚创建的 worker,点击 `Settings` -> `Runtime`, 修改 `Compatibility flags`, 增加 `nodejs_compat`, 兼容日期也需要大于图片中的日期。 +3. 回到 `Workers & Pages`,找到刚刚创建的 worker,点击 `Settings` -> `Runtime`, 修改 `Compatibility flags`, 手动输入增加 `nodejs_compat`, 兼容日期也需要大于图片中的日期。 ![worker-runtime](/ui_install/worker-runtime.png) @@ -26,10 +27,11 @@ > > 参考: [issues156](https://github.com/dreamhunter2333/cloudflare_temp_email/issues/156#issuecomment-2079453822) - ![worker2](/ui_install/worker-2.png) + ![worker3](/ui_install/worker-3.png) + ![worker-upload](/ui_install/worker-upload.png) -6. 点击 `Settings` -> `Variables`, 如图所示添加变量 +6. 点击 `Settings` -> `Variables and Secrets`, 如图所示添加变量 ![worker-var](/ui_install/worker-var.png) @@ -51,12 +53,16 @@ | `ENABLE_USER_CREATE_EMAIL` | 文本/JSON | 是否允许用户创建邮箱, 不配置则不允许 | `true` | | `ENABLE_USER_DELETE_EMAIL` | 文本/JSON | 是否允许用户删除邮件, 不配置则不允许 | `true` | -7. 点击 `Settings` -> `Variables`, 下拉找到 `D1 Database`, 点击 `Add Binding`, 名称如图,选择刚刚创建的 D1 数据库,点击 `Deploy` +7. 点击 `Settings` -> `Bindings`, 点击 `Add Binding`, 名称如图,选择刚刚创建的 D1 数据库,点击 `Add Binding` > [!NOTE] 重要 > 注意此处 `D1 Database` 的绑定名称必须为 `DB` - ![worker-d1](/ui_install/worker-d1.png) + ![worker-bindings](/ui_install/worker-bindings.png) + + ![worker-d1-1](/ui_install/worker-d1-1.png) + + ![worker-d1-2](/ui_install/worker-d1-2.png) 8. 点击 `Settings` -> `Trggers`, 这里可以添加自己的域名,你也可以使用自动生成的 `*.workers.dev` 的域名。记录下这个域名,后面部署前端会用到。 @@ -67,24 +73,35 @@ ![worker3](/ui_install/worker-3.png) -9. 如果你要启用注册用户功能,并需要发送邮件验证,则需要创建 `KV` 缓存, 不需要可跳过此步骤,点击 `Workers & Pages` -> `KV` -> `Create Namespace`, 如图,点击 `Create Namespace`,然后在 `Settings` -> `Variables`, 下拉找到 `KV`, 点击 `Add Binding`, 名称如图,选择刚刚创建的 `KV` 缓存,点击 `Deploy` +9. 如果你要启用注册用户功能,并需要发送邮件验证,则需要创建 `KV` 缓存, 不需要可跳过此步骤 > [!NOTE] 重要 > 如果你要启用注册用户功能,并需要发送邮件验证,则需要创建 `KV` 缓存, 不需要可跳过此步骤 > > 注意此处 `KV` 的绑定名称必须为 `KV` + 点击 `Storage & Databases` -> `KV` -> `Create Namespace`, 如图,点击 `Create Namespace` + ![worker-kv](/ui_install/worker-kv.png) - ![worker-kv-bind](/ui_install/worker-kv-bind.png) + + ![worker-kv-0](/ui_install/worker-kv-0.png) + + 然后点击 `Settings` -> `Bindings`, 点击 `Add Binding`, 名称如图,选择刚刚创建的 KV,点击 `Add Binding` + + ![worker-bindings](/ui_install/worker-bindings.png) + + ![worker-kv-1](/ui_install/worker-kv-1.png) + + ![worker-kv-2](/ui_install/worker-kv-2.png) 10. Telegram Bot 配置 > [!NOTE] > 如果不需要 Telegram Bot, 可跳过此步骤 - 请先创建一个 Telegram Bot,然后获取 `token`,然后执行下面的命令,将 `token` 添加到 `Variables` 中, Name: `TELEGRAM_BOT_TOKEN` + 请先创建一个 Telegram Bot,然后获取 `token`,将 `token` 添加到 `Variables and Secrets` 中, 变量名称: `TELEGRAM_BOT_TOKEN` -11. 如果你想要使用 admin 页面中的定时任务清理邮件,需要到 `Settings` -> `Triggers` -> `Cron Triggers` 中添加定时任务. +11. 如果你想要使用 admin 页面中的定时任务清理邮件,需要到 `Settings` -> `Trigger Events` -> `Cron Triggers` 中添加定时任务. > [!NOTE] > 选择 `cron` 表达式,输入 `0 0 * * *`(此表达式表示每天午夜运行),点击 `Add` 增加。请根据您的需求调整此表达式。