mirror of
https://github.com/Damillora/Shioriko.git
synced 2025-02-23 17:33:39 +00:00
feat: refactor locations of web components
This commit is contained in:
parent
6b96b44803
commit
2ab5e10549
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import AuthCheck from "./AuthCheck.svelte";
|
import AuthCheck from "$lib/components/checks/AuthCheck.svelte";
|
||||||
import TagLinkNumbered from "./TagLinkNumbered.svelte";
|
import TagLinkNumbered from "$lib/components/ui/TagLinkNumbered.svelte";
|
||||||
let { post, toggleEditMenu, toggleDeleteMenu } = $props();
|
let { post, toggleEditMenu, toggleDeleteMenu } = $props();
|
||||||
|
|
||||||
const trimUrl = (str) => {
|
const trimUrl = (str) => {
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import AuthCheck from "$lib/components/AuthCheck.svelte";
|
import AuthCheck from "$lib/components/checks/AuthCheck.svelte";
|
||||||
|
|
||||||
let { data, toggleEditMenu } = $props();
|
let { data, toggleEditMenu } = $props();
|
||||||
</script>
|
</script>
|
@ -2,8 +2,8 @@
|
|||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
|
|
||||||
import { getRelatedTags } from "$lib/api";
|
import { getRelatedTags } from "$lib/api";
|
||||||
import AuthCheck from "$lib/components/AuthCheck.svelte";
|
import AuthCheck from "$lib/components/checks/AuthCheck.svelte";
|
||||||
import TagLinkNumbered from "$lib/components/TagLinkNumbered.svelte";
|
import TagLinkNumbered from "$lib/components/ui/TagLinkNumbered.svelte";
|
||||||
|
|
||||||
let { tag, data, toggleRenameMenu } = $props();
|
let { tag, data, toggleRenameMenu } = $props();
|
||||||
let related_tags = $state([]);
|
let related_tags = $state([]);
|
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import "../app.scss";
|
import "../app.scss";
|
||||||
import Navbar from "$lib/components/Navbar.svelte";
|
import Navbar from "$lib/components/ui/Navbar.svelte";
|
||||||
interface Props {
|
interface Props {
|
||||||
children?: import('svelte').Snippet;
|
children?: import('svelte').Snippet;
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
import { getPost, postDelete } from "$lib/api";
|
import { getPost, postDelete } from "$lib/api";
|
||||||
import { goto } from "$app/navigation";
|
import { goto } from "$app/navigation";
|
||||||
import EditPostPanel from "$lib/components/EditPostPanel.svelte";
|
import EditPostPanel from "$lib/components/panels/EditPostPanel.svelte";
|
||||||
import ViewPostPanel from "$lib/components/ViewPostPanel.svelte";
|
import ViewPostPanel from "$lib/components/panels/ViewPostPanel.svelte";
|
||||||
|
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/stores";
|
||||||
const { id } = $page.params;
|
const { id } = $page.params;
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
import { run } from 'svelte/legacy';
|
import { run } from 'svelte/legacy';
|
||||||
|
|
||||||
import { getPostSearchTag, getTag, getTagAutocomplete } from "$lib/api";
|
import { getPostSearchTag, getTag, getTagAutocomplete } from "$lib/api";
|
||||||
import TagLinkNumbered from "$lib/components/TagLinkNumbered.svelte";
|
import TagLinkNumbered from "$lib/components/ui/TagLinkNumbered.svelte";
|
||||||
import PostGallery from "$lib/components/Post/PostGallery.svelte";
|
import PostGallery from "$lib/components/ui/PostGallery.svelte";
|
||||||
import queryString from "query-string";
|
import queryString from "query-string";
|
||||||
import Tags from "svelte-tags-input";
|
import Tags from "svelte-tags-input";
|
||||||
import { paginate } from "$lib/simple-pagination";
|
import { paginate } from "$lib/simple-pagination";
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
|
|
||||||
import { getTag, getPostSearchTag } from "$lib/api";
|
import { getTag, getPostSearchTag } from "$lib/api";
|
||||||
import EditTagNotesPanel from "$lib/components/TagNotes/EditTagNotesPanel.svelte";
|
import EditTagNotesPanel from "$lib/components/panels/EditTagNotesPanel.svelte";
|
||||||
import ViewTagNotesPanel from "$lib/components/TagNotes/ViewTagNotesPanel.svelte";
|
import ViewTagNotesPanel from "$lib/components/panels/ViewTagNotesPanel.svelte";
|
||||||
import ViewTagPanel from "$lib/components/Tag/ViewTagPanel.svelte";
|
import ViewTagPanel from "$lib/components/panels/ViewTagPanel.svelte";
|
||||||
import EditTagPanel from "$lib/components/Tag/EditTagPanel.svelte";
|
import EditTagPanel from "$lib/components/panels/EditTagPanel.svelte";
|
||||||
import PostGallery from "$lib/components/Post/PostGallery.svelte";
|
import PostGallery from "$lib/components/ui/PostGallery.svelte";
|
||||||
|
|
||||||
|
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/stores";
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import { uploadBlob, postCreate, getTagAutocomplete } from "$lib/api";
|
import { uploadBlob, postCreate, getTagAutocomplete } from "$lib/api";
|
||||||
import { goto } from "$app/navigation";
|
import { goto } from "$app/navigation";
|
||||||
import Tags from "svelte-tags-input";
|
import Tags from "svelte-tags-input";
|
||||||
import AuthRequired from "$lib/components/AuthRequired.svelte";
|
import AuthRequired from "$lib/components/checks/AuthRequired.svelte";
|
||||||
|
|
||||||
let currentProgress = $state(0);
|
let currentProgress = $state(0);
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
import { getUserProfile } from "$lib/api";
|
import { getUserProfile } from "$lib/api";
|
||||||
import AuthRequired from "$lib/components/AuthRequired.svelte";
|
import AuthRequired from "$lib/components/checks/AuthRequired.svelte";
|
||||||
|
|
||||||
let user = $state();
|
let user = $state();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user