Browse Source

Move publication components into their own sub-directory

master
buttercat1791 10 months ago
parent
commit
42cb538be5
  1. 10
      deno.lock
  2. 0
      src/lib/components/publications/Publication.svelte
  3. 0
      src/lib/components/publications/PublicationFeed.svelte
  4. 2
      src/lib/components/publications/PublicationHeader.svelte
  5. 0
      src/lib/components/publications/PublicationSection.svelte
  6. 2
      src/routes/+page.svelte
  7. 2
      src/routes/publication/+page.svelte

10
deno.lock

@ -3168,6 +3168,13 @@ @@ -3168,6 +3168,13 @@
"integrity": "sha512-rAbqEGa8ovJy4pyBxZM70hg4pE6gDgaQ0Sl9M3enG3I0d6H4XSAM3GeNGLKnsBpuijUow064sf7ww1nutC5/3w=="
}
},
"redirects": {
"https://esm.sh/bech32": "https://esm.sh/bech32@2.0.0"
},
"remote": {
"https://esm.sh/bech32@2.0.0": "1b943d1583f3708812c3cfccc8236cf92d8f9b191881984e26e0b9decaed9a16",
"https://esm.sh/bech32@2.0.0/denonext/bech32.mjs": "80859514ec6ba04858364eba363d5ac73ac8d97086754e0baf14fa31d4f1b63a"
},
"workspace": {
"dependencies": [
"npm:@nostr-dev-kit/ndk-cache-dexie@2.5",
@ -3201,8 +3208,10 @@ @@ -3201,8 +3208,10 @@
"npm:@types/d3@^7.4.3",
"npm:@types/he@1.2",
"npm:@types/node@22",
"npm:@types/qrcode@^1.5.5",
"npm:asciidoctor@3.0",
"npm:autoprefixer@10",
"npm:bech32@2",
"npm:d3@^7.9.0",
"npm:eslint-plugin-svelte@2",
"npm:flowbite-svelte-icons@2.1",
@ -3217,6 +3226,7 @@ @@ -3217,6 +3226,7 @@
"npm:postcss@8",
"npm:prettier-plugin-svelte@3",
"npm:prettier@3",
"npm:qrcode@^1.5.4",
"npm:svelte-check@4",
"npm:svelte@5",
"npm:tailwind-merge@^3.3.0",

0
src/lib/components/Publication.svelte → src/lib/components/publications/Publication.svelte

0
src/lib/components/PublicationFeed.svelte → src/lib/components/publications/PublicationFeed.svelte

2
src/lib/components/PublicationHeader.svelte → src/lib/components/publications/PublicationHeader.svelte

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
import { ndkInstance } from '$lib/ndk';
import { naddrEncode } from '$lib/utils';
import type { NDKEvent } from '@nostr-dev-kit/ndk';
import { standardRelays } from '../consts';
import { standardRelays } from '../../consts';
import { Card, Img } from "flowbite-svelte";
import CardActions from "$components/util/CardActions.svelte";
import { userBadge } from "$lib/snippets/UserSnippets.svelte";

0
src/lib/components/PublicationSection.svelte → src/lib/components/publications/PublicationSection.svelte

2
src/routes/+page.svelte

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
import { Alert, Button, Dropdown, Radio, Input } from "flowbite-svelte";
import { ChevronDownOutline, HammerSolid } from "flowbite-svelte-icons";
import { inboxRelays, ndkSignedIn } from '$lib/ndk';
import PublicationFeed from '$lib/components/PublicationFeed.svelte';
import PublicationFeed from '$lib/components/publications/PublicationFeed.svelte';
import { feedType } from '$lib/stores';
$effect(() => {

2
src/routes/publication/+page.svelte

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<script lang="ts">
import Publication from "$lib/components/Publication.svelte";
import Publication from "$lib/components/publications/Publication.svelte";
import { TextPlaceholder } from "flowbite-svelte";
import type { PageProps } from "./$types";
import { onDestroy, setContext } from "svelte";

Loading…
Cancel
Save