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>
import Main from "./pages/main/Main.svelte";
import Main from "./Main.svelte";
</script>
<Main />

View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
<script>
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";
</script>

View file

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

View file

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