Skip to content

Commit f7490ef

Browse files
refactor(frontend): migrate stores to Composition API (#396)
* fix(deps): bump vite from 5.4.15 to 5.4.16 in /frontend (#411) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.15 to 5.4.16. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v5.4.16/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.4.16/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 5.4.16 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: truncate long user notifications --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent a4ca376 commit f7490ef

13 files changed

Lines changed: 2925 additions & 2429 deletions

api/src/db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
QueueInfo,
1919
ScheduledTask,
2020
} from './types';
21-
import type { RegistrationParsed } from '@passwordless-id/webauthn/src/types';
21+
import type { RegistrationJSON } from '@passwordless-id/webauthn/dist/esm/types';
2222

2323
type LastChangelog = {
2424
date: Date;
@@ -141,7 +141,7 @@ export const userPasskeys = sqliteTable('user_passkeys', {
141141
userId: integer('userId')
142142
.notNull()
143143
.references(() => user.id),
144-
key: text('key', { mode: 'json' }).notNull().$type<RegistrationParsed>(),
144+
key: text('key', { mode: 'json' }).notNull().$type<RegistrationJSON>(),
145145
createdAt: integer('created_at', { mode: 'timestamp' }).notNull(),
146146
});
147147

api/src/object/ShopScrape.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,25 @@ export class ShopScrape implements DurableObject {
231231
let error = e;
232232

233233
if (e instanceof ApiClientRequestFailed) {
234+
let body = JSON.stringify(e.response.body);
235+
236+
if (body.length > 50) {
237+
body = body.substring(0, 50) + '...';
238+
}
239+
234240
error = `Request failed with status code: ${
235241
e.response.statusCode
236-
}: Body: ${JSON.stringify(e.response.body)}`;
242+
}: Body: ${body}`;
237243
} else if (e instanceof ApiClientAuthenticationFailed) {
244+
let body = JSON.stringify(e.response.body);
245+
246+
if (body.length > 50) {
247+
body = body.substring(0, 50) + '...';
248+
}
249+
238250
error = `Authentication failed with status code: ${
239251
e.response.statusCode
240-
}: Body: ${JSON.stringify(e.response.body)}`;
252+
}: Body: ${body}`;
241253
}
242254

243255
await Shops.notify(

frontend/components.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/* eslint-disable */
2-
/* prettier-ignore */
32
// @ts-nocheck
43
// Generated by unplugin-vue-components
54
// Read more: https://github.com/vuejs/core/pull/3399
5+
// biome-ignore lint: disable
66
export {}
77

8+
/* prettier-ignore */
89
declare module 'vue' {
910
export interface GlobalComponents {
1011
Alert: typeof import('./src/components/layout/Alert.vue')['default']

frontend/package.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "shopmon-frontend",
33
"private": true,
44
"version": "0.0.0",
5-
"packageManager": "pnpm@8.14.0",
5+
"packageManager": "pnpm@10.5.2",
66
"scripts": {
77
"dev": "vite --port 3000 --host",
88
"dev:local": "SHOPMON_API_URL=http://127.0.0.1:5789 vite --port 3000 --host",
@@ -12,38 +12,38 @@
1212
"wrangler": "wrangler"
1313
},
1414
"dependencies": {
15-
"@headlessui/vue": "1.7.16",
15+
"@headlessui/vue": "1.7.23",
1616
"@passwordless-id/webauthn": "^2.2.0",
17-
"@tailwindcss/forms": "0.5.7",
18-
"@trpc/client": "^10.45.1",
19-
"compare-versions": "^6.1.0",
20-
"fast-sort": "3.4.0",
21-
"fuse.js": "^7.0.0",
22-
"pinia": "2.1.7",
23-
"unplugin-icons": "0.18.1",
24-
"unplugin-vue-components": "0.26.0",
25-
"vee-validate": "4.12.3",
26-
"vue": "3.3.13",
27-
"vue-router": "4.2.5",
28-
"yup": "1.3.3"
17+
"@tailwindcss/forms": "0.5.10",
18+
"@trpc/client": "^10.45.2",
19+
"compare-versions": "^6.1.1",
20+
"fast-sort": "3.4.1",
21+
"fuse.js": "^7.1.0",
22+
"pinia": "3.0.1",
23+
"unplugin-icons": "22.1.0",
24+
"unplugin-vue-components": "28.4.1",
25+
"vee-validate": "4.15.0",
26+
"vue": "3.5.13",
27+
"vue-router": "4.5.0",
28+
"yup": "1.6.1"
2929
},
3030
"devDependencies": {
31-
"@iconify-json/fa-brands": "^1.1.8",
32-
"@iconify-json/fa6-regular": "1.1.18",
33-
"@iconify-json/fa6-solid": "1.1.20",
34-
"@iconify-json/ic": "1.1.17",
35-
"@iconify-json/line-md": "1.1.33",
36-
"@iconify-json/material-symbols": "^1.1.72",
37-
"@trpc/server": "^10.45.1",
38-
"@typescript-eslint/eslint-plugin": "6.15.0",
39-
"@typescript-eslint/parser": "6.15.0",
40-
"@vitejs/plugin-vue": "4.5.2",
41-
"autoprefixer": "10.4.16",
42-
"eslint": "8.56.0",
43-
"eslint-plugin-vue": "9.19.2",
44-
"postcss": "^8.4.35",
45-
"typescript": "5.3.3",
46-
"vite": "5.4.16",
47-
"wrangler": "^3.28.2"
31+
"@iconify-json/fa-brands": "^1.2.1",
32+
"@iconify-json/fa6-regular": "1.2.3",
33+
"@iconify-json/fa6-solid": "1.2.3",
34+
"@iconify-json/ic": "1.2.2",
35+
"@iconify-json/line-md": "1.2.5",
36+
"@iconify-json/material-symbols": "^1.2.14",
37+
"@trpc/server": "^10.45.2",
38+
"@typescript-eslint/eslint-plugin": "8.25.0",
39+
"@typescript-eslint/parser": "8.25.0",
40+
"@vitejs/plugin-vue": "5.2.1",
41+
"autoprefixer": "10.4.20",
42+
"eslint": "9.21.0",
43+
"eslint-plugin-vue": "9.32.0",
44+
"postcss": "^8.5.3",
45+
"typescript": "5.7.3",
46+
"vite": "6.2.0",
47+
"wrangler": "^3.111.0"
4848
}
4949
}

0 commit comments

Comments
 (0)