@immich/ui 0.31.2 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@
6
6
 
7
7
  type Props = {
8
8
  class?: string;
9
- children: Snippet;
9
+ children?: Snippet;
10
10
  href: string;
11
11
  underline?: boolean;
12
12
  } & HTMLAnchorAttributes;
@@ -25,5 +25,9 @@
25
25
  rel={external ? 'noopener noreferrer' : undefined}
26
26
  {...restProps}
27
27
  >
28
- {@render children()}
28
+ {#if children}
29
+ {@render children()}
30
+ {:else}
31
+ {href}
32
+ {/if}
29
33
  </a>
@@ -2,7 +2,7 @@ import type { Snippet } from 'svelte';
2
2
  import type { HTMLAnchorAttributes } from 'svelte/elements';
3
3
  type Props = {
4
4
  class?: string;
5
- children: Snippet;
5
+ children?: Snippet;
6
6
  href: string;
7
7
  underline?: boolean;
8
8
  } & HTMLAnchorAttributes;
@@ -15,6 +15,7 @@
15
15
  mdiOfficeBuildingOutline,
16
16
  mdiScriptTextOutline,
17
17
  mdiServerOutline,
18
+ mdiShieldAccountOutline,
18
19
  mdiShoppingOutline,
19
20
  } from '@mdi/js';
20
21
  import { siAndroid, siApple, siDiscord, siGithub, siReddit } from 'simple-icons';
@@ -56,6 +57,7 @@
56
57
  <Heading size="tiny">Miscellaneous</Heading>
57
58
  <SiteFooterLink href={Constants.Pages.Roadmap} icon={mdiChartGantt} text="Roadmap" />
58
59
  <SiteFooterLink href={Constants.Pages.CursedKnowledge} icon={mdiBookshelf} text="Cursed Knowledge" />
60
+ <SiteFooterLink href={Constants.Pages.PrivacyPolicy} icon={mdiShieldAccountOutline} text="Privacy Policy" />
59
61
  </Stack>
60
62
  </div>
61
63
  <VStack class="text-center">
@@ -28,6 +28,7 @@ export declare const Constants: {
28
28
  Pages: {
29
29
  CursedKnowledge: string;
30
30
  Roadmap: string;
31
+ PrivacyPolicy: string;
31
32
  };
32
33
  Npm: {
33
34
  Sdk: string;
@@ -30,6 +30,7 @@ export const Constants = {
30
30
  Pages: {
31
31
  CursedKnowledge: 'https://immich.app/cursed-knowledge',
32
32
  Roadmap: 'https://immich.app/roadmap',
33
+ PrivacyPolicy: 'https://immich.app/privacy-policy',
33
34
  },
34
35
  Npm: {
35
36
  Sdk: 'https://www.npmjs.com/package/@immich/sdk',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immich/ui",
3
- "version": "0.31.2",
3
+ "version": "0.32.0",
4
4
  "license": "GNU Affero General Public License version 3",
5
5
  "scripts": {
6
6
  "create": "node scripts/create.js",