Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

feat(demo): implement demo mode with client-side api mockup (#42)

Corentin THOMASSET4dd7f93660ac
diff --git a/apps/papra-client/package.json b/apps/papra-client/package.json
index 36c7900f..90276590 100644
--- a/apps/papra-client/package.json
+++ b/apps/papra-client/package.json
@@ -45,11 +45,13 @@
"jszip": "^3.10.1",
"lodash-es": "^4.17.21",
"ofetch": "^1.4.1",
+ "radix3": "^1.1.2",
"solid-js": "^1.8.11",
"solid-sonner": "^0.2.8",
"tailwind-merge": "^2.6.0",
"ts-pattern": "^5.5.0",
"unocss-preset-animations": "^1.1.0",
+ "unstorage": "^1.14.4",
"uqr": "^0.1.2",
"valibot": "1.0.0-beta.10"
},
diff --git a/apps/papra-client/src/modules/config/config.ts b/apps/papra-client/src/modules/config/config.ts
index 977bee7e..84a21deb 100644
--- a/apps/papra-client/src/modules/config/config.ts
+++ b/apps/papra-client/src/modules/config/config.ts
@@ -2,6 +2,7 @@ export const config = {
baseApiUrl: (import.meta.env.VITE_BASE_API_URL ?? 'http://localhost:1221/') as string,
vitrineBaseUrl: (import.meta.env.VITE_VITRINE_BASE_URL ?? 'http://localhost:3000/') as string,
isRegistrationEnabled: import.meta.env.VITE_IS_REGISTRATION_ENABLED === 'true',
+ isDemoMode: import.meta.env.VITE_IS_DEMO_MODE === 'true',
} as const;
export type Config = typeof config;
diff --git a/apps/papra-client/src/modules/demo/demo-api-mock.models.ts b/apps/papra-client/src/modules/demo/demo-api-mock.models.ts
new file mode 100644
index 00000000..0da03ede
--- /dev/null
+++ b/apps/papra-client/src/modules/demo/demo-api-mock.models.ts
@@ -0,0 +1,24 @@
+/* eslint-disable ts/no-empty-object-type */
+import type { HttpClientOptions, ResponseType } from '../shared/http/http-client';
+import { joinUrlPaths } from '@corentinth/chisels';
+
+type ExtractRouteParams<Path extends string> =
+ Path extends `${infer _Start}:${infer Param}/${infer Rest}`
+ ? { [k in Param | keyof ExtractRouteParams<`/${Rest}`>]: string }
+ : Path extends `${infer _Start}:${infer Param}`
+ ? { [k in Param]: string }
+ : {};
+
+export function defineHandler<Path extends string>({
+ path,
+ method,
+ handler,
+}: {
+ path: Path;
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE';
+ handler: <R extends ResponseType = 'json'>(params: { params: ExtractRouteParams<Path> } & HttpClientOptions<R>) => any;
+}) {
+ return {
+ [`/${joinUrlPaths(method, path)}`]: { handler },
+ };
+}
diff --git a/apps/papra-client/src/modules/demo/demo-api-mock.ts b/apps/papra-client/src/modules/demo/demo-api-mock.ts
new file mode 100644
index 00000000..0ca3de66
--- /dev/null
+++ b/apps/papra-client/src/modules/demo/demo-api-mock.ts
@@ -0,0 +1,215 @@
+import { get } from 'lodash-es';
+import { FetchError } from 'ofetch';
+import { createRouter } from 'radix3';
+import { defineHandler } from './demo-api-mock.models';
+import { documentFileStorage, documentStorage, organizationStorage } from './demo.storage';
+
+function assert(condition: unknown, { message = 'Error', status }: { message?: string; status?: number } = {}): asserts condition {
+ if (!condition) {
+ throw Object.assign(new FetchError(message), { status });
+ }
+}
+
+function toBase64(file: File): Promise<string> {
+ return new Promise((resolve, reject) => {
+ const reader = new FileReader();
+ reader.readAsDataURL(file);
+ reader.onload = () => resolve(reader.result as string);
+ reader.onerror = reject;
+ });
+}
+
+function fromBase64(base64: string) {
+ return fetch(base64).then(res => res.blob());
+}
+
+async function serializeFile(file: File) {
+ return {
+ name: file.name,
+ size: file.size,
+ type: file.type,
+ // base64
+ content: await toBase64(file),
+ };
+}
+
+async function deserializeFile({ name, type, content }: Awaited<ReturnType<typeof serializeFile>>) {
+ return new File([await fromBase64(content)], name, { type });
+}
+
+const inMemoryApiMock: Record<string, { handler: any }> = {
+ ...defineHandler({
+ path: '/api/users/me',
+ method: 'GET',
+ handler: () => ({
+ user: {
+ id: 'usr_1',
+ email: '[email protected]',
+ name: 'Jane Doe',
+ roles: [],
+ },
+ }),
+ }),
+
+ ...defineHandler({
+ path: '/api/organizations',
+ method: 'GET',
+ handler: async () => {
+ const keys = await organizationStorage.getKeys();
+ const organizations = await Promise.all(keys.map(key => organizationStorage.getItem(key)));
+
+ return { organizations };
+ },
+ }),
+
+ ...defineHandler({
+ path: '/api/organizations',
+ method: 'POST',
+ handler: async ({ body }) => {
+ const organization = {
+ id: `org_${Math.random().toString(36).slice(2)}`,
+ name: get(body, 'name'),
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ };
+
+ await organizationStorage.setItem(organization.id, organization);
+
+ return { organization };
+ },
+ }),
+
+ ...defineHandler({
+ path: '/api/organizations/:organizationId/documents',
+ method: 'GET',
+ handler: async ({ params: { organizationId }, query }) => {
+ const organization = organizationStorage.getItem(organizationId);
+ assert(organization, { status: 403 });
+
+ const allKeys = await documentStorage.getKeys();
+ const keys = allKeys.filter(key => key.startsWith(organizationId));
+
+ const documents = await Promise.all(keys.map(key => documentStorage.getItem(key)));
+
+ const {
+ pageIndex = 0,
+ pageSize = 10,
+ } = query ?? {};
+
+ return {
+ documents: documents.slice(pageIndex * pageSize, (pageIndex + 1) * pageSize),
+ documentsCount: documents.length,
+ };
+ },
+ }),
+
+ ...defineHandler({
+ path: '/api/organizations/:organizationId/documents',
+ method: 'POST',
+ handler: async ({ params: { organizationId }, body }) => {
+ // body is a FormData instance with file field
+
+ const file = (body as FormData).get('file') as File;
+
+ assert(file, { status: 400 });
+
+ const document = {
+ id: `doc_${Math.random().toString(36).slice(2)}`,
+ organizationId,
+ name: file.name,
+ originalName: file.name,
+ originalSize: file.size,
+ mimeType: file.type,
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ };
+
+ const key = `${organizationId}:${document.id}`;
+
+ await documentFileStorage.setItem(key, await serializeFile(file));
+ await documentStorage.setItem(key, document);
+
+ return { document };
+ },
+ }),
+
+ ...defineHandler({
+ path: '/api/organizations/:organizationId/documents/:documentId',
+ method: 'GET',
+ handler: async ({ params: { organizationId, documentId } }) => {
+ const key = `${organizationId}:${documentId}`;
+ const document = await documentStorage.getItem(key);
+
+ assert(document, { status: 404 });
+
+ return { document };
+ },
+ }),
+
+ ...defineHandler({
+ path: '/api/organizations/:organizationId/documents/:documentId',
+ method: 'DELETE',
+ handler: async ({ params: { organizationId, documentId } }) => {
+ const key = `${organizationId}:${documentId}`;
+
+ await documentStorage.removeItem(key);
+ await documentFileStorage.removeItem(key);
+ },
+ }),
+
+ ...defineHandler({
+ path: '/api/organizations/:organizationId/documents/:documentId/file',
+ method: 'GET',
+ handler: async ({ params }) => {
+ const { organizationId, documentId } = params;
+ const key = `${organizationId}:${documentId}`;
+
+ const file = await documentFileStorage.getItem(key);
+
+ assert(file, { status: 404 });
+
+ return deserializeFile(file);
+ },
+ }),
+
+ ...defineHandler({
+ path: '/api/organizations/:organizationId',
+ method: 'GET',
+ handler: async ({ params: { organizationId } }) => {
+ const organization = await organizationStorage.getItem(organizationId);
+
+ assert(organization, { status: 403 });
+
+ return {
+ organization,
+ };
+ },
+ }),
+
+ ...defineHandler({
+ path: '/api/organizations/:organizationId',
+ method: 'DELETE',
+ handler: async ({ params: { organizationId } }) => {
+ await organizationStorage.removeItem(organizationId);
+ },
+ }),
+
+ ...defineHandler({
+ path: '/api/organizations/:organizationId',
+ method: 'PUT',
+ handler: async ({ params: { organizationId }, body }) => {
+ const organization = await organizationStorage.getItem(organizationId);
+
+ assert(organization, { status: 403 });
+
+ organization.name = get(body, 'name');
+ organization.updatedAt = new Date();
+
+ await organizationStorage.setItem(organizationId, organization);
+
+ return { organization };
+ },
+ }),
+};
+
+export const router = createRouter({ routes: inMemoryApiMock, strictTrailingSlash: false });
diff --git a/apps/papra-client/src/modules/demo/demo-http-client.ts b/apps/papra-client/src/modules/demo/demo-http-client.ts
new file mode 100644
index 00000000..6991b145
--- /dev/null
+++ b/apps/papra-client/src/modules/demo/demo-http-client.ts
@@ -0,0 +1,23 @@
+/* eslint-disable no-console */
+import type { MappedResponseType } from 'ofetch';
+import type { HttpClientOptions, ResponseType } from '../shared/http/http-client';
+import { joinUrlPaths } from '@corentinth/chisels';
+import { router } from './demo-api-mock';
+
+export async function demoHttpClient<A, R extends ResponseType = 'json'>(options: HttpClientOptions<R>): Promise<MappedResponseType< R, A>> {
+ const path = `/${joinUrlPaths(options.method ?? 'GET', options.url)}`;
+ const matchedRoute = router.lookup(path);
+
+ if (!matchedRoute) {
+ console.warn(`[demo] No route found for ${options.method} ${options.url}`);
+ return {} as any;
+ }
+
+ const params = matchedRoute.params;
+
+ const data = await matchedRoute.handler({ params, ...options });
+
+ console.log(`[demo] ${options.method} ${options.url} `, data);
+
+ return data;
+}
diff --git a/apps/papra-client/src/modules/demo/demo.storage.ts b/apps/papra-client/src/modules/demo/demo.storage.ts
new file mode 100644
index 00000000..5390490e
--- /dev/null
+++ b/apps/papra-client/src/modules/demo/demo.storage.ts
@@ -0,0 +1,12 @@
+import type { Document } from '../documents/documents.types';
+import type { Organization } from '../organizations/organizations.types';
+import { createStorage, prefixStorage } from 'unstorage';
+import localStorageDriver from 'unstorage/drivers/localstorage';
+
+const storage = createStorage<any>({
+ driver: localStorageDriver({ base: 'demo:' }),
+});
+
+export const organizationStorage = prefixStorage<Organization>(storage, 'organizations');
+export const documentStorage = prefixStorage<Document>(storage, 'documents');
+export const documentFileStorage = prefixStorage(storage, 'documentFiles');
diff --git a/apps/papra-client/src/modules/shared/http/http-client.ts b/apps/papra-client/src/modules/shared/http/http-client.ts
index b33c1145..5bd1c1d9 100644
--- a/apps/papra-client/src/modules/shared/http/http-client.ts
+++ b/apps/papra-client/src/modules/shared/http/http-client.ts
@@ -1,12 +1,16 @@
import type { FetchOptions, ResponseType } from 'ofetch';
+import { config } from '@/modules/config/config';
+import { demoHttpClient } from '@/modules/demo/demo-http-client';
import { ofetch } from 'ofetch';
export { ResponseType };
export type HttpClientOptions<R extends ResponseType = 'json'> = Omit<FetchOptions<R>, 'baseURL'> & { url: string; baseUrl?: string };
-export function httpClient<A, R extends ResponseType = 'json'>({ url, baseUrl, ...rest }: HttpClientOptions<R>) {
+function baseHttpClient<A, R extends ResponseType = 'json'>({ url, baseUrl, ...rest }: HttpClientOptions<R>) {
return ofetch<A, R>(url, {
baseURL: baseUrl,
...rest,
});
}
+
+export const httpClient = config.isDemoMode ? demoHttpClient : baseHttpClient;
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 561aab7d..3d141cf1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -79,6 +79,9 @@ importers:
ofetch:
specifier: ^1.4.1
version: 1.4.1
+ radix3:
+ specifier: ^1.1.2
+ version: 1.1.2
solid-js:
specifier: ^1.8.11
version: 1.9.3
@@ -94,6 +97,9 @@ importers:
unocss-preset-animations:
specifier: ^1.1.0
+ unstorage:
+ specifier: ^1.14.4
+ version: 1.14.4
uqr:
specifier: ^0.1.2
version: 0.1.2
@@ -2440,6 +2446,9 @@ packages:
resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
+ resolution: {integrity: sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==}
+
resolution: {integrity: sha512-VgEUx3VwlExr5no0tXlBt+silBvhTryPwCXRI2Id1PN8WTKu7MreethvddqOubrYxkFdv/RnYrqlv1sFNAUelw==}
@@ -2450,6 +2459,9 @@ packages:
resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
engines: {node: '>= 8'}
+ resolution: {integrity: sha512-HsZgeVYaG+b5zA+9PbIPGq4+J/CJynJuearykPsXx4V/eMhyQ5EDVg3Ak2FBZtVXCiOLu/U7IiwDHTr9MA+IKw==}
+
resolution: {integrity: sha512-0eW44TGN5SQXU1mWSkKwFstI/22X2bG1nYzZTYMAWjylYURhse752YgbE4Cx46AC+bAvI+/dYTPRk1LqSUnu6w==}
engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
@@ -3025,6 +3037,9 @@ packages:
resolution: {integrity: sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-vFEAu/yf8UMUcB4s43OaDaigcqpQd14yanmOsn+NcRX3/guSKncyE2rOYhq8RIchgJrPSs/QiIddnTTR1ddiAg==}
+
resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
engines: {node: '>=8'}
@@ -3087,6 +3102,9 @@ packages:
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
+ resolution: {integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==}
+
resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}
@@ -3255,6 +3273,9 @@ packages:
resolution: {integrity: sha512-23I4pFZHmAemUnz8WZXbYRSKYj801VDaNv9ETuMh7IrMc7VuVVSo+Z9iLE3ni30+U48iDWfi30d3twAXBYmnCg==}
+ resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}
+
resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
@@ -3404,6 +3425,11 @@ packages:
resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
engines: {node: '>= 0.6'}
+ resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==}
+ engines: {node: '>=10.0.0'}
+ hasBin: true
+
resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==}
engines: {node: '>=4'}
@@ -3467,6 +3493,9 @@ packages:
resolution: {integrity: sha512-QZj2DfGplQAr2oj9KzceK9Hwz6Whxazmn85yYeVuS3u9XTMOGMRx0kO95MQ+vLsj/S/NwBDMMLU5hpxvI6Tklw==}
+ resolution: {integrity: sha512-FlDryZAahJmEF3VR3w1KogSEdWX3WhA5GPakFx4J81kEAiHyLMpdLLElS8n8dfNadMgAne/MywcvmogzscVt4g==}
+
resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
engines: {node: '>= 0.8.0'}
@@ -3594,6 +3623,9 @@ packages:
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
+ resolution: {integrity: sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==}
+
resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}
engines: {node: '>=0.10.0'}
@@ -3927,9 +3959,15 @@ packages:
resolution: {integrity: sha512-VQZ5PT9HDX+qag0XdgQi8tJepPhXiR/yVOkn707gJDKo31lGjRilPREiQJ9Z6zd/Ugpv6ZvO5VxVIcatldYcNQ==}
+ resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==}
+
resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==}
+ resolution: {integrity: sha512-wY5bskBQFL9n3Eca5XnhH6KbUo/tfvkwm9OpcdCvLaeA7piBNbavbOKJySEwQ1V0RH6HvNlSAFRTpvTqgKRQXQ==}
+
resolution: {integrity: sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==}
@@ -3960,6 +3998,65 @@ packages:
vite:
optional: true
+ resolution: {integrity: sha512-1SYeamwuYeQJtJ/USE1x4l17LkmQBzg7deBJ+U9qOBoHo15d1cDxG4jM31zKRgF7pG0kirZy4wVMX6WL6Zoscg==}
+ peerDependencies:
+ '@azure/app-configuration': ^1.8.0
+ '@azure/cosmos': ^4.2.0
+ '@azure/data-tables': ^13.3.0
+ '@azure/identity': ^4.5.0
+ '@azure/keyvault-secrets': ^4.9.0
+ '@azure/storage-blob': ^12.26.0
+ '@capacitor/preferences': ^6.0.3
+ '@deno/kv': '>=0.8.4'
+ '@netlify/blobs': ^6.5.0 || ^7.0.0 || ^8.1.0
+ '@planetscale/database': ^1.19.0
+ '@upstash/redis': ^1.34.3
+ '@vercel/blob': '>=0.27.0'
+ '@vercel/kv': ^1.0.1
+ aws4fetch: ^1.0.20
+ db0: '>=0.2.1'
+ idb-keyval: ^6.2.1
+ ioredis: ^5.4.2
+ uploadthing: ^7.4.1
+ peerDependenciesMeta:
+ '@azure/app-configuration':
+ optional: true
+ '@azure/cosmos':
+ optional: true
+ '@azure/data-tables':
+ optional: true
+ '@azure/identity':
+ optional: true
+ '@azure/keyvault-secrets':
+ optional: true
+ '@azure/storage-blob':
+ optional: true
+ '@capacitor/preferences':
+ optional: true
+ '@deno/kv':
+ optional: true
+ '@netlify/blobs':
+ optional: true
+ '@planetscale/database':
+ optional: true
+ '@upstash/redis':
+ optional: true
+ '@vercel/blob':
+ optional: true
+ '@vercel/kv':
+ optional: true
+ aws4fetch:
+ optional: true
+ db0:
+ optional: true
+ idb-keyval:
+ optional: true
+ ioredis:
+ optional: true
+ uploadthing:
+ optional: true
+
resolution: {integrity: sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==}
hasBin: true
@@ -6804,6 +6901,8 @@ snapshots:
+
dependencies:
browserslist: 4.24.3
@@ -6816,6 +6915,10 @@ snapshots:
shebang-command: 2.0.0
which: 2.0.2
+ dependencies:
+ uncrypto: 0.1.3
+
dependencies:
mdn-data: 2.12.2
@@ -7464,6 +7567,19 @@ snapshots:
dependencies:
duplexer: 0.1.2
+ dependencies:
+ cookie-es: 1.2.2
+ crossws: 0.3.1
+ defu: 6.1.4
+ destr: 2.0.3
+ iron-webcrypto: 1.2.1
+ ohash: 1.1.4
+ radix3: 1.1.2
+ ufo: 1.5.4
+ uncrypto: 0.1.3
+ unenv: 1.10.0
+
@@ -7527,6 +7643,8 @@ snapshots:
+
@@ -7691,6 +7809,8 @@ snapshots:
+
dependencies:
yallist: 3.1.1
@@ -8013,6 +8133,8 @@ snapshots:
dependencies:
mime-db: 1.52.0
+
@@ -8073,6 +8195,8 @@ snapshots:
node-fetch-native: 1.6.4
ufo: 1.5.4
+
dependencies:
deep-is: 0.1.4
@@ -8185,6 +8309,8 @@ snapshots:
+
dependencies:
loose-envify: 1.4.0
@@ -8515,8 +8641,18 @@ snapshots:
transitivePeerDependencies:
- supports-color
+
+ dependencies:
+ consola: 3.3.3
+ defu: 6.1.4
+ mime: 3.0.0
+ node-fetch-native: 1.6.4
+ pathe: 1.1.2
+
dependencies:
'@types/unist': 3.0.3
@@ -8568,6 +8704,17 @@ snapshots:
- supports-color
- vue
+ dependencies:
+ anymatch: 3.1.3
+ chokidar: 3.6.0
+ destr: 2.0.3
+ h3: 1.13.0
+ lru-cache: 10.4.3
+ node-fetch-native: 1.6.4
+ ofetch: 1.4.1
+ ufo: 1.5.4
+
dependencies:
browserslist: 4.24.3