Skip to content

Commit efc030d

Browse files
committed
merge: main
2 parents 9194c4e + f03f10d commit efc030d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+8195
-7906
lines changed
Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
import type { StorybookConfig } from '@storybook/sveltekit';
22

3-
import { join, dirname } from 'path';
3+
import { join, dirname } from "path"
44

55
/**
6-
* This function is used to resolve the absolute path of a package.
7-
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
8-
*/
6+
* This function is used to resolve the absolute path of a package.
7+
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
8+
*/
99
function getAbsolutePath(value: string): any {
10-
return dirname(require.resolve(join(value, 'package.json')));
10+
return dirname(require.resolve(join(value, 'package.json')))
1111
}
1212
const config: StorybookConfig = {
13-
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|ts|svelte)'],
14-
addons: [getAbsolutePath('@storybook/addon-svelte-csf')],
15-
framework: {
16-
name: getAbsolutePath('@storybook/sveltekit'),
17-
options: {}
18-
}
13+
"stories": [
14+
"../src/**/*.mdx",
15+
"../src/**/*.stories.@(js|ts|svelte)"
16+
],
17+
"addons": [
18+
getAbsolutePath('@storybook/addon-svelte-csf')
19+
],
20+
"framework": {
21+
"name": getAbsolutePath('@storybook/sveltekit'),
22+
"options": {}
23+
}
1924
};
20-
export default config;
25+
export default config;
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import type { Preview } from '@storybook/sveltekit';
2-
import '../src/app.css';
1+
import type { Preview } from '@storybook/sveltekit'
2+
import "../src/app.css";
33

44
const preview: Preview = {
5-
parameters: {
6-
controls: {
7-
matchers: {
8-
color: /(background|color)$/i,
9-
date: /Date$/i
10-
}
11-
}
12-
}
5+
parameters: {
6+
controls: {
7+
matchers: {
8+
color: /(background|color)$/i,
9+
date: /Date$/i,
10+
},
11+
},
12+
},
1313
};
1414

15-
export default preview;
15+
export default preview;

infrastructure/control-panel/package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,14 @@
88
"build": "vite build",
99
"preview": "vite preview",
1010
"prepare": "svelte-kit sync || echo ''",
11-
"check": "pnpm exec biome check ./src",
11+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1212
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
13-
"format": "pnpm exec biome format --write ./src",
14-
"check-format": "pnpm exec biome format ./src",
15-
"lint": "pnpm exec biome lint --write ./src",
16-
"check-lint": "pnpm exec biome lint ./src",
13+
"format": "prettier --write .",
14+
"lint": "prettier --check . && eslint .",
1715
"storybook": "storybook dev -p 6006",
1816
"build-storybook": "storybook build"
1917
},
2018
"devDependencies": {
21-
"@biomejs/biome": "1.9.4",
2219
"@eslint/compat": "^1.2.5",
2320
"@eslint/js": "^9.18.0",
2421
"@storybook/addon-svelte-csf": "^5.0.7",
@@ -28,14 +25,21 @@
2825
"@sveltejs/vite-plugin-svelte": "^6.0.0",
2926
"@tailwindcss/vite": "^4.0.0",
3027
"@types/node": "^22",
28+
"eslint": "^9.18.0",
29+
"eslint-config-prettier": "^10.0.1",
30+
"eslint-plugin-storybook": "^9.0.17",
31+
"eslint-plugin-svelte": "^3.0.0",
3132
"globals": "^16.0.0",
33+
"prettier": "^3.4.2",
34+
"prettier-plugin-svelte": "^3.3.3",
35+
"prettier-plugin-tailwindcss": "^0.6.11",
3236
"storybook": "^9.0.17",
3337
"svelte": "^5.0.0",
3438
"svelte-check": "^4.0.0",
3539
"tailwindcss": "^4.0.0",
3640
"typescript": "^5.0.0",
3741
"typescript-eslint": "^8.20.0",
38-
"vite": "6.3.5"
42+
"vite": "^7.0.4"
3943
},
4044
"dependencies": {
4145
"@inlang/paraglide-js": "^2.0.0"

infrastructure/control-panel/src/app.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
@import "tailwindcss";
1+
@import 'tailwindcss';
2+
23

34
@theme {
45
/* Custom theme */
@@ -32,4 +33,4 @@
3233
--color-danger-300: #ff968e;
3334
--color-danger-400: #ff7b77;
3435
--color-danger-500: #ff5255;
35-
}
36+
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// See https://svelte.dev/docs/kit/types#app.d.ts
22
// for information about these interfaces
33
declare global {
4-
namespace App {
5-
// interface Error {}
6-
// interface Locals {}
7-
// interface PageData {}
8-
// interface PageState {}
9-
// interface Platform {}
10-
}
4+
namespace App {
5+
// interface Error {}
6+
// interface Locals {}
7+
// interface PageData {}
8+
// interface PageState {}
9+
// interface Platform {}
10+
}
1111
}
1212

1313
export {};
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import { paraglideMiddleware } from "$lib/paraglide/server";
2-
import type { Handle } from "@sveltejs/kit";
1+
import type { Handle } from '@sveltejs/kit';
2+
import { paraglideMiddleware } from '$lib/paraglide/server';
33

44
const handleParaglide: Handle = ({ event, resolve }) =>
5-
paraglideMiddleware(event.request, ({ request, locale }) => {
6-
event.request = request;
5+
paraglideMiddleware(event.request, ({ request, locale }) => {
6+
event.request = request;
77

8-
return resolve(event, {
9-
transformPageChunk: ({ html }) =>
10-
html.replace("%paraglide.lang%", locale),
11-
});
12-
});
8+
return resolve(event, {
9+
transformPageChunk: ({ html }) => html.replace('%paraglide.lang%', locale)
10+
});
11+
});
1312

1413
export const handle: Handle = handleParaglide;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { deLocalizeUrl } from "$lib/paraglide/runtime";
1+
import { deLocalizeUrl } from '$lib/paraglide/runtime';
22

33
export const reroute = (request) => deLocalizeUrl(request.url).pathname;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts">
2-
import "../app.css";
2+
import '../app.css';
33
4-
let { children } = $props();
4+
let { children } = $props();
55
</script>
66

77
{@render children()}

infrastructure/control-panel/src/routes/demo/paraglide/+page.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script lang="ts">
2-
import { goto } from "$app/navigation";
3-
import { page } from "$app/state";
4-
import { m } from "$lib/paraglide/messages.js";
5-
import { setLocale } from "$lib/paraglide/runtime";
2+
import { setLocale } from '$lib/paraglide/runtime';
3+
import { page } from '$app/state';
4+
import { goto } from '$app/navigation';
5+
import { m } from '$lib/paraglide/messages.js';
66
</script>
77

88
<h1>{m.hello_world({ name: 'SvelteKit User' })}</h1>

platforms/blabsy/src/components/chat/chat-window.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ export function ChatWindow(): JSX.Element {
119119
void Promise.all(
120120
unreadMessages.map((message) => markAsRead(message.id))
121121
);
122-
}
123-
}, [currentChat, user, messages, markAsRead]);
122+
}});
124123

125124
const handleSubmit = async (e: React.FormEvent): Promise<void> => {
126125
e.preventDefault();

0 commit comments

Comments
 (0)