Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Dec 5, 2024
1 parent 9650041 commit 9f349f2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/lib/components/common/Copy.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<script lang="ts">
import { _ } from "svelte-i18n";
import copy from "$lib/utils/copy";
import { Copy16 } from "svelte-octicons";
import Button from "./Button.svelte";
import copy from "$lib/utils/copy";
export let text: string;
export let hideLabel = false;
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/documents/Share.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
} from "svelte-octicons";
import Button from "$lib/components/common/Button.svelte";
import Copy from "../common/Copy.svelte";
import CustomizeEmbed, { embedSettings } from "./CustomizeEmbed.svelte";
import Field from "$lib/components/common/Field.svelte";
import FieldLabel from "$lib/components/common/FieldLabel.svelte";
Expand All @@ -42,7 +43,6 @@
pageUrl,
} from "$lib/api/documents";
import { canonicalNoteUrl, noteUrl } from "$lib/api/notes";
import Copy from "../common/Copy.svelte";
export let document: Document;
export let page: number = 1;
Expand Down
15 changes: 8 additions & 7 deletions src/lib/components/projects/ProjectShare.svelte
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
<script lang="ts">
import { _ } from "svelte-i18n";
import { Copy16, ShieldLock24 } from "svelte-octicons";
import type { Project } from "$lib/api/types";
import { canonicalUrl, embedUrl } from "$lib/api/projects";
import { _ } from "svelte-i18n";
import { ShieldLock24 } from "svelte-octicons";
import Button from "$lib/components/common/Button.svelte";
import Copy from "../common/Copy.svelte";
import Field from "$lib/components/common/Field.svelte";
import FieldLabel from "$lib/components/common/FieldLabel.svelte";
import Text from "$lib/components/inputs/Text.svelte";
import TextArea from "$lib/components/inputs/TextArea.svelte";
import Tip from "$lib/components/common/Tip.svelte";
import Portal from "$lib/components/layouts/Portal.svelte";
import Modal from "$lib/components/layouts/Modal.svelte";
import EditProject from "$lib/components/forms/EditProject.svelte";
import copy from "$lib/utils/copy";
import Copy from "../common/Copy.svelte";
import { canonicalUrl, embedUrl } from "$lib/api/projects";
export let project: Project;
Expand All @@ -27,7 +28,7 @@
$: permalink = canonicalUrl(project);
$: embedSrc = embedUrl(project);
$: iframe = `<iframe src="${embedUrl(project).href}" />`;
$: iframe = `<iframe src="${embedSrc.href}" />`;
</script>

<div class="share">
Expand Down

0 comments on commit 9f349f2

Please sign in to comment.