feat: upgrade dependencies && add ci build telegram-frontend.zip (#467)

This commit is contained in:
Dream Hunter
2024-11-06 23:42:39 +08:00
committed by GitHub
parent cc9ac67319
commit 49b3f10838
10 changed files with 2807 additions and 2686 deletions

View File

@@ -32,6 +32,12 @@ jobs:
- name: Zip Frontend dist
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
run: cd worker && cp wrangler.toml.template wrangler.toml
@@ -43,4 +49,5 @@ jobs:
with:
files: |
frontend/dist/frontend.zip
frontend/dist/telegram-frontend.zip
worker/dist/worker.js

View File

@@ -4,6 +4,7 @@
## main(v0.7.6)
- feat: 支持提前设置 bot info, 降低 telegram 回调延迟 (#441)
- feat: 增加 telegram mini app 的 build 压缩包
## v0.7.5

View File

@@ -18,7 +18,7 @@
},
"dependencies": {
"@simplewebauthn/browser": "^10.0.0",
"@unhead/vue": "^1.11.6",
"@unhead/vue": "^1.11.11",
"@vicons/material": "^0.12.0",
"@vueuse/core": "^10.11.1",
"@wangeditor/editor": "^5.1.23",
@@ -29,7 +29,7 @@
"naive-ui": "^2.40.1",
"postal-mime": "^2.3.2",
"vooks": "^0.2.12",
"vue": "^3.5.9",
"vue": "^3.5.12",
"vue-clipboard3": "^2.0.0",
"vue-i18n": "^9.14.1",
"vue-router": "^4.4.5"
@@ -39,11 +39,11 @@
"@vitejs/plugin-vue": "^5.1.4",
"unplugin-auto-import": "^0.18.3",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.8",
"vite": "^5.4.10",
"vite-plugin-pwa": "^0.19.8",
"vite-plugin-top-level-await": "^1.4.4",
"vite-plugin-wasm": "^3.3.0",
"workbox-window": "^7.1.0",
"wrangler": "^3.78.11"
"workbox-window": "^7.3.0",
"wrangler": "^3.84.1"
}
}

2454
frontend/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,6 +11,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"wrangler": "^3.78.11"
"wrangler": "^3.84.1"
}
}

View File

@@ -4,9 +4,9 @@
"version": "0.7.6",
"type": "module",
"devDependencies": {
"@types/node": "^22.3.0",
"vitepress": "^1.3.2",
"wrangler": "^3.71.0"
"@types/node": "^22.9.0",
"vitepress": "^1.5.0",
"wrangler": "^3.84.1"
},
"scripts": {
"dev": "vitepress dev docs",

File diff suppressed because it is too large Load Diff

View File

@@ -11,19 +11,19 @@
"build": "wrangler deploy --dry-run --outdir dist --minify"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240925.0",
"@cloudflare/workers-types": "^4.20241022.0",
"@eslint/js": "8.56.0",
"@simplewebauthn/types": "^10.0.0",
"eslint": "8.56.0",
"globals": "^15.9.0",
"globals": "^15.12.0",
"typescript-eslint": "^7.18.0",
"wrangler": "^3.78.11"
"wrangler": "^3.84.1"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.658.1",
"@aws-sdk/s3-request-presigner": "^3.658.1",
"@aws-sdk/client-s3": "^3.685.0",
"@aws-sdk/s3-request-presigner": "^3.685.0",
"@simplewebauthn/server": "^10.0.1",
"hono": "^4.6.3",
"hono": "^4.6.9",
"mimetext": "^3.0.24",
"postal-mime": "^2.3.2",
"resend": "^3.5.0",

1677
worker/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -55,6 +55,12 @@ app.use('/*', async (c, next) => {
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()
});