Skip to content

Commit 1888acf

Browse files
committed
fix: paraglide removed
1 parent e516e58 commit 1888acf

10 files changed

Lines changed: 53 additions & 96 deletions

File tree

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
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": [
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-
}
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+
}
2419
};
25-
export default config;
20+
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;
Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
@import 'tailwindcss';
22

3-
43
@theme {
5-
/* Custom theme */
6-
--color-primary: #8e52ff;
7-
--color-primary-100: #e8dcff;
8-
--color-primary-200: #d2baff;
9-
--color-primary-300: #bb97ff;
10-
--color-primary-400: #a575ff;
11-
--color-primary-500: #8e52ff;
4+
/* Custom theme */
5+
--color-primary: #8e52ff;
6+
--color-primary-100: #e8dcff;
7+
--color-primary-200: #d2baff;
8+
--color-primary-300: #bb97ff;
9+
--color-primary-400: #a575ff;
10+
--color-primary-500: #8e52ff;
1211

13-
--color-secondary: #73efd5;
14-
--color-secondary-100: #e3fcf7;
15-
--color-secondary-200: #c7f9ee;
16-
--color-secondary-300: #abf6e6;
17-
--color-secondary-400: #8ff2dd;
18-
--color-secondary-500: #73efd5;
12+
--color-secondary: #73efd5;
13+
--color-secondary-100: #e3fcf7;
14+
--color-secondary-200: #c7f9ee;
15+
--color-secondary-300: #abf6e6;
16+
--color-secondary-400: #8ff2dd;
17+
--color-secondary-500: #73efd5;
1918

20-
--color-white: #ffffff;
21-
--color-gray: #f5f5f5;
19+
--color-white: #ffffff;
20+
--color-gray: #f5f5f5;
2221

23-
--color-black: #1f1f1f;
24-
--color-black-100: #d2d2d2;
25-
--color-black-300: #a5a5a5;
26-
--color-black-500: #797979;
27-
--color-black-700: #4c4c4c;
28-
--color-black-900: #1f1f1f;
22+
--color-black: #1f1f1f;
23+
--color-black-100: #d2d2d2;
24+
--color-black-300: #a5a5a5;
25+
--color-black-500: #797979;
26+
--color-black-700: #4c4c4c;
27+
--color-black-900: #1f1f1f;
2928

30-
--color-danger: #ff5255;
31-
--color-danger-100: #ffdcdd;
32-
--color-danger-200: #ffb1a7;
33-
--color-danger-300: #ff968e;
34-
--color-danger-400: #ff7b77;
35-
--color-danger-500: #ff5255;
36-
}
29+
--color-danger: #ff5255;
30+
--color-danger-100: #ffdcdd;
31+
--color-danger-200: #ffb1a7;
32+
--color-danger-300: #ff968e;
33+
--color-danger-400: #ff7b77;
34+
--color-danger-500: #ff5255;
35+
}
Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +0,0 @@
1-
import type { Handle } from '@sveltejs/kit';
2-
import { paraglideMiddleware } from '$lib/paraglide/server';
3-
4-
const handleParaglide: Handle = ({ event, resolve }) =>
5-
paraglideMiddleware(event.request, ({ request, locale }) => {
6-
event.request = request;
7-
8-
return resolve(event, {
9-
transformPageChunk: ({ html }) => html.replace('%paraglide.lang%', locale)
10-
});
11-
});
12-
13-
export const handle: Handle = handleParaglide;
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
import { deLocalizeUrl } from '$lib/paraglide/runtime';
2-
3-
export const reroute = (request) => deLocalizeUrl(request.url).pathname;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
<h1>Welcome to SvelteKit</h1>
2-
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
1+
<h1 class="text-primary">New Project Control-Panel</h1>

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

Lines changed: 0 additions & 1 deletion
This file was deleted.

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

Lines changed: 0 additions & 18 deletions
This file was deleted.

platforms/pictique/src/lib/fragments/SettingsNavigationButton/SettingsNavigationButton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<img
3939
width="24px"
4040
height="24px"
41-
class="flex aspect-square size-10 items-center justify-center rounded-full md:size-12 object-cover"
41+
class="flex aspect-square size-10 items-center justify-center rounded-full object-cover md:size-12"
4242
src={profileSrc}
4343
alt=""
4444
/>

platforms/pictique/src/lib/store/store.svelte.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ export const uploadedImages: { value: Image[] | null } = $state({
2323
export const audience: { value: string } = $state({
2424
value: 'Everyone'
2525
});
26-

0 commit comments

Comments
 (0)