mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-08 17:08:59 +08:00
feat: upgrade dependencies && add ci build telegram-frontend.zip (#467)
This commit is contained in:
@@ -32,6 +32,12 @@ jobs:
|
|||||||
- name: Zip Frontend dist
|
- name: Zip Frontend dist
|
||||||
run: cd frontend/dist/ && zip -r frontend.zip *
|
run: cd frontend/dist/ && zip -r frontend.zip *
|
||||||
|
|
||||||
|
- name: Build Telegram Frontend
|
||||||
|
run: cd frontend && pnpm install --no-frozen-lockfile && pnpm build:telegram
|
||||||
|
|
||||||
|
- name: Zip Telegram Frontend dist
|
||||||
|
run: cd frontend/dist/ && zip -r telegram-frontend.zip *
|
||||||
|
|
||||||
- name: cp wrangler.toml
|
- name: cp wrangler.toml
|
||||||
run: cd worker && cp wrangler.toml.template wrangler.toml
|
run: cd worker && cp wrangler.toml.template wrangler.toml
|
||||||
|
|
||||||
@@ -43,4 +49,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
frontend/dist/frontend.zip
|
frontend/dist/frontend.zip
|
||||||
|
frontend/dist/telegram-frontend.zip
|
||||||
worker/dist/worker.js
|
worker/dist/worker.js
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
## main(v0.7.6)
|
## main(v0.7.6)
|
||||||
|
|
||||||
- feat: 支持提前设置 bot info, 降低 telegram 回调延迟 (#441)
|
- feat: 支持提前设置 bot info, 降低 telegram 回调延迟 (#441)
|
||||||
|
- feat: 增加 telegram mini app 的 build 压缩包
|
||||||
|
|
||||||
## v0.7.5
|
## v0.7.5
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@simplewebauthn/browser": "^10.0.0",
|
"@simplewebauthn/browser": "^10.0.0",
|
||||||
"@unhead/vue": "^1.11.6",
|
"@unhead/vue": "^1.11.11",
|
||||||
"@vicons/material": "^0.12.0",
|
"@vicons/material": "^0.12.0",
|
||||||
"@vueuse/core": "^10.11.1",
|
"@vueuse/core": "^10.11.1",
|
||||||
"@wangeditor/editor": "^5.1.23",
|
"@wangeditor/editor": "^5.1.23",
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
"naive-ui": "^2.40.1",
|
"naive-ui": "^2.40.1",
|
||||||
"postal-mime": "^2.3.2",
|
"postal-mime": "^2.3.2",
|
||||||
"vooks": "^0.2.12",
|
"vooks": "^0.2.12",
|
||||||
"vue": "^3.5.9",
|
"vue": "^3.5.12",
|
||||||
"vue-clipboard3": "^2.0.0",
|
"vue-clipboard3": "^2.0.0",
|
||||||
"vue-i18n": "^9.14.1",
|
"vue-i18n": "^9.14.1",
|
||||||
"vue-router": "^4.4.5"
|
"vue-router": "^4.4.5"
|
||||||
@@ -39,11 +39,11 @@
|
|||||||
"@vitejs/plugin-vue": "^5.1.4",
|
"@vitejs/plugin-vue": "^5.1.4",
|
||||||
"unplugin-auto-import": "^0.18.3",
|
"unplugin-auto-import": "^0.18.3",
|
||||||
"unplugin-vue-components": "^0.27.4",
|
"unplugin-vue-components": "^0.27.4",
|
||||||
"vite": "^5.4.8",
|
"vite": "^5.4.10",
|
||||||
"vite-plugin-pwa": "^0.19.8",
|
"vite-plugin-pwa": "^0.19.8",
|
||||||
"vite-plugin-top-level-await": "^1.4.4",
|
"vite-plugin-top-level-await": "^1.4.4",
|
||||||
"vite-plugin-wasm": "^3.3.0",
|
"vite-plugin-wasm": "^3.3.0",
|
||||||
"workbox-window": "^7.1.0",
|
"workbox-window": "^7.3.0",
|
||||||
"wrangler": "^3.78.11"
|
"wrangler": "^3.84.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+1125
-1329
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -11,6 +11,6 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"wrangler": "^3.78.11"
|
"wrangler": "^3.84.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
"version": "0.7.6",
|
"version": "0.7.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^22.3.0",
|
"@types/node": "^22.9.0",
|
||||||
"vitepress": "^1.3.2",
|
"vitepress": "^1.5.0",
|
||||||
"wrangler": "^3.71.0"
|
"wrangler": "^3.84.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vitepress dev docs",
|
"dev": "vitepress dev docs",
|
||||||
|
|||||||
Generated
+797
-521
File diff suppressed because it is too large
Load Diff
+6
-6
@@ -11,19 +11,19 @@
|
|||||||
"build": "wrangler deploy --dry-run --outdir dist --minify"
|
"build": "wrangler deploy --dry-run --outdir dist --minify"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@cloudflare/workers-types": "^4.20240925.0",
|
"@cloudflare/workers-types": "^4.20241022.0",
|
||||||
"@eslint/js": "8.56.0",
|
"@eslint/js": "8.56.0",
|
||||||
"@simplewebauthn/types": "^10.0.0",
|
"@simplewebauthn/types": "^10.0.0",
|
||||||
"eslint": "8.56.0",
|
"eslint": "8.56.0",
|
||||||
"globals": "^15.9.0",
|
"globals": "^15.12.0",
|
||||||
"typescript-eslint": "^7.18.0",
|
"typescript-eslint": "^7.18.0",
|
||||||
"wrangler": "^3.78.11"
|
"wrangler": "^3.84.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "^3.658.1",
|
"@aws-sdk/client-s3": "^3.685.0",
|
||||||
"@aws-sdk/s3-request-presigner": "^3.658.1",
|
"@aws-sdk/s3-request-presigner": "^3.685.0",
|
||||||
"@simplewebauthn/server": "^10.0.1",
|
"@simplewebauthn/server": "^10.0.1",
|
||||||
"hono": "^4.6.3",
|
"hono": "^4.6.9",
|
||||||
"mimetext": "^3.0.24",
|
"mimetext": "^3.0.24",
|
||||||
"postal-mime": "^2.3.2",
|
"postal-mime": "^2.3.2",
|
||||||
"resend": "^3.5.0",
|
"resend": "^3.5.0",
|
||||||
|
|||||||
Generated
+856
-821
File diff suppressed because it is too large
Load Diff
@@ -55,6 +55,12 @@ app.use('/*', async (c, next) => {
|
|||||||
return c.text("Webhook is disabled", 403);
|
return c.text("Webhook is disabled", 403);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!c.env.DB) {
|
||||||
|
return c.text("DB is not available", 400);
|
||||||
|
}
|
||||||
|
if (!c.env.JWT_SECRET) {
|
||||||
|
return c.text("JWT_SECRET is not set", 400);
|
||||||
|
}
|
||||||
await next()
|
await next()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user