Skip to content

Commit 92107e8

Browse files
committed
Update Frontend Dependencies
Had to change a lot due to sveltejs/kit#13999.
1 parent f21200c commit 92107e8

File tree

104 files changed

+889
-849
lines changed

Some content is hidden

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

104 files changed

+889
-849
lines changed

modules/frontend-e2e/package-lock.json

Lines changed: 106 additions & 117 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/frontend/package-lock.json

Lines changed: 361 additions & 362 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
},
1616
"devDependencies": {
1717
"@sveltejs/adapter-node": "^5.0.0",
18-
"@sveltejs/kit": "^2.12.0",
18+
"@sveltejs/kit": "^2.26.0",
1919
"@sveltejs/vite-plugin-svelte": "^5.0.0",
20+
"@tailwindcss/vite": "^4.1.11",
2021
"@types/dom-view-transitions": "^1.0.4",
2122
"@types/eslint": "^9.6.0",
2223
"@types/fhir": "^0.0.41",
@@ -34,7 +35,6 @@
3435
"svelte": "^5.0.0",
3536
"svelte-check": "^4.0.0",
3637
"tailwindcss": "^4.1.11",
37-
"@tailwindcss/vite": "^4.1.11",
3838
"tslib": "^2.4.1",
3939
"typescript": "^5.5.0",
4040
"typescript-eslint": "^8.0.0",

modules/frontend/src/lib/breadcrumb/home.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script lang="ts">
2-
import { base } from '$app/paths';
2+
import { resolve } from '$app/paths';
33
</script>
44

55
<li>
66
<div>
7-
<a href={base} class="text-gray-400 hover:text-gray-500">
7+
<a href={resolve('/')} class="text-gray-400 hover:text-gray-500">
88
<svg class="h-5 w-5 shrink-0" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
99
<path
1010
fill-rule="evenodd"
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<script lang="ts">
2-
import { base } from '$app/paths';
2+
import { resolve } from '$app/paths';
3+
34
import Entry from './entry.svelte';
45
</script>
56

67
<Entry>
7-
<a href="{base}/metadata" class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"
8+
<a href={resolve('/metadata')} class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"
89
>Metadata</a
910
>
1011
</Entry>

modules/frontend/src/lib/breadcrumb/resource-history.svelte

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
<script lang="ts">
2-
import { base } from '$app/paths';
3-
import { page } from '$app/state';
2+
import { resolve } from '$app/paths';
3+
44
import Entry from './entry.svelte';
55
66
interface Props {
7+
type: string;
8+
id: string;
79
last?: boolean;
810
}
911
10-
let { last = false }: Props = $props();
12+
let { type, id, last = false }: Props = $props();
1113
</script>
1214

1315
<Entry>
1416
{#if last}
1517
<span class="ml-4 text-sm font-medium text-gray-500">History</span>
1618
{:else}
1719
<a
18-
href="{base}/{page.params.type}/{page.params.id}/_history"
20+
href={resolve('/[type=type]/[id=id]/_history', { type: type, id: id })}
1921
class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700">History</a
2022
>
2123
{/if}

modules/frontend/src/lib/breadcrumb/resource.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
<script lang="ts">
22
import type { FhirResource } from 'fhir/r4';
33
4-
import { base } from '$app/paths';
5-
import { page } from '$app/state';
4+
import { resolve } from '$app/paths';
65
76
import Entry from './entry.svelte';
87
import { title } from '$lib/resource.js';
98
109
interface Props {
11-
type?: string;
10+
type: string;
11+
id: string;
1212
resource?: FhirResource;
1313
last?: boolean;
1414
}
1515
16-
let { type = page.params.type, resource, last = false }: Props = $props();
16+
let { type, id, resource, last = false }: Props = $props();
1717
18-
let name = $derived(resource ? title(resource) : page.params.id);
18+
let name = $derived(resource ? title(resource) : id);
1919
</script>
2020

2121
<Entry>
2222
{#if last}
2323
<span class="ml-4 text-sm font-medium text-gray-500">{name}</span>
2424
{:else}
2525
<a
26-
href="{base}/{type}/{page.params.id}"
26+
href={resolve('/[type=type]/[id=id]', { type: type, id: id })}
2727
class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700">{name}</a
2828
>
2929
{/if}

modules/frontend/src/lib/breadcrumb/type-history.svelte

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
<script lang="ts">
2-
import { base } from '$app/paths';
3-
import { page } from '$app/state';
2+
import { resolve } from '$app/paths';
3+
44
import Entry from './entry.svelte';
55
66
interface Props {
7+
type: string;
78
last?: boolean;
89
}
910
10-
let { last = false }: Props = $props();
11+
let { type, last = false }: Props = $props();
1112
</script>
1213

1314
<Entry>
1415
{#if last}
1516
<span class="ml-4 text-sm font-medium text-gray-500">History</span>
1617
{:else}
1718
<a
18-
href="{base}/{page.params.type}/_history"
19+
href={resolve('/[type=type]/_history', { type: type })}
1920
class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700">History</a
2021
>
2122
{/if}
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
<script lang="ts">
2-
import { base } from '$app/paths';
3-
import { page } from '$app/state';
2+
import { resolve } from '$app/paths';
3+
44
import Entry from './entry.svelte';
55
66
interface Props {
7-
type?: string;
7+
type: string;
88
last?: boolean;
99
}
1010
11-
let { type = page.params.type, last = false }: Props = $props();
11+
let { type, last = false }: Props = $props();
1212
</script>
1313

1414
<Entry>
1515
{#if last}
1616
<span class="ml-4 text-sm font-medium text-gray-500">{type}</span>
1717
{:else}
18-
<a href="{base}/{type}" class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"
19-
>{type}</a
18+
<a
19+
href={resolve('/[type=type]', { type: type })}
20+
class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700">{type}</a
2021
>
2122
{/if}
2223
</Entry>
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
<script lang="ts">
2-
import { base } from '$app/paths';
3-
import { page } from '$app/state';
2+
import { resolve } from '$app/paths';
3+
44
import Entry from './entry.svelte';
5+
6+
interface Props {
7+
type: string;
8+
id: string;
9+
vid: string;
10+
}
11+
12+
let props: Props = $props();
513
</script>
614

715
<Entry>
816
<a
9-
href="{base}/{page.params.type}/{page.params.id}/_history/{page.params.vid}"
10-
class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700">Version-{page.params.vid}</a
17+
href={resolve('/[type=type]/[id=id]/_history/[vid=vid]', props)}
18+
class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700">Version-{props.vid}</a
1119
>
1220
</Entry>

0 commit comments

Comments
 (0)