frontend: improve directory structure

This commit is contained in:
hippoz 2022-04-26 03:09:16 +03:00
parent f17fd0174b
commit 2ab2899529
No known key found for this signature in database
GPG key ID: 7C52899193467641
12 changed files with 12 additions and 12 deletions

View file

@ -1,5 +1,5 @@
<script> <script>
import Main from "./pages/main/Main.svelte"; import Main from "./Main.svelte";
</script> </script>
<Main /> <Main />

View file

@ -1,8 +1,8 @@
<script> <script>
import { CloudIcon } from "svelte-feather-icons"; import { CloudIcon } from "svelte-feather-icons";
import { gatewayStatus, selectedChannel } from "../../../stores"; import { gatewayStatus, selectedChannel } from "../stores";
import ChannelView from "./ChannelView.svelte"; import ChannelView from "./ChannelView.svelte";
import OverlayProvider from "./OverlayProvider.svelte"; import OverlayProvider from "./overlays/OverlayProvider.svelte";
import Sidebar from "./Sidebar.svelte"; import Sidebar from "./Sidebar.svelte";
</script> </script>

View file

@ -1,7 +1,7 @@
<script> <script>
import request from "../../../request"; import request from "../request";
import { apiRoute } from "../../../storage"; import { apiRoute } from "../storage";
import { messagesStoreProvider, userInfoStore } from "../../../stores"; import { messagesStoreProvider, userInfoStore } from "../stores";
export let channel; export let channel;
let messageInput = ""; let messageInput = "";

View file

@ -1,6 +1,6 @@
<script> <script>
import { afterUpdate, beforeUpdate, onMount } from "svelte"; import { afterUpdate, beforeUpdate, onMount } from "svelte";
import { messagesStoreProvider } from "../../../stores.js"; import { messagesStoreProvider } from "../stores.js";
import Message from "./Message.svelte"; import Message from "./Message.svelte";
export let channelId; export let channelId;

View file

@ -1,6 +1,6 @@
<script> <script>
import { HashIcon, PlusIcon, MoreVerticalIcon } from "svelte-feather-icons"; import { HashIcon, PlusIcon, MoreVerticalIcon } from "svelte-feather-icons";
import { channels, overlayStore, selectedChannel } from "../../../stores"; import { channels, overlayStore, selectedChannel } from "../stores";
import UserTopBar from "./UserTopBar.svelte"; import UserTopBar from "./UserTopBar.svelte";
</script> </script>

View file

@ -1,6 +1,6 @@
<script> <script>
import { AtSignIcon } from "svelte-feather-icons"; import { AtSignIcon } from "svelte-feather-icons";
import { userInfoStore } from "../../../stores"; import { userInfoStore } from "../stores";
</script> </script>
<div class="top-bar"> <div class="top-bar">

View file

@ -1,7 +1,7 @@
<script> <script>
import { overlayStore } from "../../../stores"; import { overlayStore } from "../../stores";
import EditChannel from "../../modals/EditChannel.svelte"; import EditChannel from "./EditChannel.svelte";
import CreateChannel from "../../modals/CreateChannel.svelte"; import CreateChannel from "./CreateChannel.svelte";
</script> </script>
{#if $overlayStore.createChannel} {#if $overlayStore.createChannel}