feat: PWA (#40)

This commit is contained in:
Dream Hunter
2023-12-12 17:26:56 +08:00
committed by GitHub
parent bf6374af52
commit c2c1e4ae59
10 changed files with 3218 additions and 664 deletions

View File

@@ -7,12 +7,12 @@
"start": "wrangler dev"
},
"devDependencies": {
"wrangler": "^3.5.1"
"wrangler": "^3.19.0"
},
"dependencies": {
"hono": "^3.4.3",
"hono": "^3.11.4",
"mailparser": "^3.6.5",
"postal-mime": "^1.0.16"
"postal-mime": "^1.1.0"
},
"pnpm": {
"patchedDependencies": {

582
worker/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -179,7 +179,7 @@ api.get('/admin/mails_unknow', async (c) => {
let count = 0;
if (offset == 0) {
const { count: mailCount } = await c.env.DB.prepare(`
SELECT count(*) FROM mails
SELECT count(*) as count FROM mails
where address NOT IN
(select concat('${c.env.PREFIX}', name) from address)`
).first();