Skip to content

Commit

Permalink
fix: |UI| date parse error at mobile devices (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamhunter2333 authored Jan 30, 2025
1 parent 6ae3b0d commit 7f6a02c
Show file tree
Hide file tree
Showing 10 changed files with 1,138 additions and 1,122 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<!-- markdownlint-disable-file MD004 MD024 MD034 MD036 -->
# CHANGE LOG

## main(v0.8.6)
## main(v0.8.7)

- fix: |UI| 修复移动设备日期显示问题

## v0.8.6

- feat: |UI| 公告支持 html 格式
- feat: |UI| `COPYRIGHT` 支持 html 格式
Expand Down
6 changes: 3 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudflare_temp_email",
"version": "0.8.6",
"version": "0.8.7",
"private": true,
"type": "module",
"scripts": {
Expand Down Expand Up @@ -28,7 +28,7 @@
"jszip": "^3.10.1",
"mail-parser-wasm": "^0.2.1",
"naive-ui": "^2.41.0",
"postal-mime": "^2.4.1",
"postal-mime": "^2.4.3",
"vooks": "^0.2.12",
"vue": "^3.5.13",
"vue-clipboard3": "^2.0.0",
Expand All @@ -47,6 +47,6 @@
"vite-plugin-wasm": "^3.4.1",
"workbox-build": "^7.3.0",
"workbox-window": "^7.3.0",
"wrangler": "^3.104.0"
"wrangler": "^3.106.0"
}
}
989 changes: 499 additions & 490 deletions frontend/pnpm-lock.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions frontend/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export const utcToLocalDate = (utcDate: string, useUTCDate: boolean) => {
}
try {
const date = new Date(utcDateString);
// if invalid date string
if (isNaN(date.getTime())) return utcDateString;

return date.toLocaleString();
} catch (e) {
console.error(e);
Expand Down
4 changes: 2 additions & 2 deletions pages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "temp-email-pages",
"version": "0.8.6",
"version": "0.8.7",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -11,6 +11,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"wrangler": "^3.104.0"
"wrangler": "^3.106.0"
}
}
8 changes: 4 additions & 4 deletions vitepress-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "temp-mail-docs",
"private": true,
"version": "0.8.6",
"version": "0.8.7",
"type": "module",
"devDependencies": {
"@types/node": "^22.10.7",
"vitepress": "^1.6.2",
"wrangler": "^3.104.0"
"@types/node": "^22.12.0",
"vitepress": "^1.6.3",
"wrangler": "^3.106.0"
},
"scripts": {
"dev": "vitepress dev docs",
Expand Down
476 changes: 238 additions & 238 deletions vitepress-docs/pnpm-lock.yaml

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions worker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudflare_temp_email",
"version": "0.8.6",
"version": "0.8.7",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -11,21 +11,21 @@
"build": "wrangler deploy --dry-run --outdir dist --minify"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250121.0",
"@cloudflare/workers-types": "^4.20250129.0",
"@eslint/js": "9.18.0",
"@simplewebauthn/types": "10.0.0",
"eslint": "9.18.0",
"globals": "^15.14.0",
"typescript-eslint": "^8.21.0",
"wrangler": "^3.104.0"
"typescript-eslint": "^8.22.0",
"wrangler": "^3.106.0"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.732.0",
"@aws-sdk/s3-request-presigner": "^3.732.0",
"@aws-sdk/client-s3": "^3.738.0",
"@aws-sdk/s3-request-presigner": "^3.738.0",
"@simplewebauthn/server": "10.0.1",
"hono": "^4.6.17",
"hono": "^4.6.19",
"mimetext": "^3.0.27",
"postal-mime": "^2.4.1",
"postal-mime": "^2.4.3",
"resend": "^4.1.1",
"telegraf": "4.16.3"
},
Expand Down
Loading

0 comments on commit 7f6a02c

Please sign in to comment.