Skip to content

Commit

Permalink
Refactor layouts into lib/components/layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Apr 22, 2024
1 parent 76d94a5 commit 93e3faa
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 36 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
import { getContext } from "svelte";
import { SidebarCollapse16, SidebarExpand16 } from "svelte-octicons";
import Button from "./common/Button.svelte";
import Flex from "./common/Flex.svelte";
import SignedIn from "./common/SignedIn.svelte";
import UserMenu from "./navigation/UserMenu.svelte";
import OrgMenu from "./navigation/OrgMenu.svelte";
import Button from "../common/Button.svelte";
import Flex from "../common/Flex.svelte";
import SignedIn from "../common/SignedIn.svelte";
import UserMenu from "../navigation/UserMenu.svelte";
import OrgMenu from "../navigation/OrgMenu.svelte";
import { SIGN_IN_URL } from "@/config/config";
import Breadcrumbs from "./navigation/Breadcrumbs.svelte";
import LanguageMenu from "./navigation/LanguageMenu.svelte";
import HelpMenu from "./navigation/HelpMenu.svelte";
import Breadcrumbs from "../navigation/Breadcrumbs.svelte";
import LanguageMenu from "../navigation/LanguageMenu.svelte";
import HelpMenu from "../navigation/HelpMenu.svelte";
export let modal: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
import Button from "$lib/components/common/Button.svelte";
import SidebarItem from "$lib/components/sidebar/SidebarItem.svelte";
import documents from "../../api/fixtures/documents/documents.json";
import Flex from "../common/Flex.svelte";
import SidebarGroup from "../sidebar/SidebarGroup.svelte";
import Action from "../common/Action.svelte";
import documents from "../../../api/fixtures/documents/documents.json";
import Flex from "../../common/Flex.svelte";
import SidebarGroup from "../../sidebar/SidebarGroup.svelte";
import Action from "../../common/Action.svelte";
import Pin from "@/common/Pin.svelte";
import ResultsList from "../documents/ResultsList.svelte";
import ContentLayout from "../ContentLayout.svelte";
import PageToolbar from "../common/PageToolbar.svelte";
import Search from "../inputs/Search.svelte";
import ResultsList from "../../documents/ResultsList.svelte";
import ContentLayout from "../../ContentLayout.svelte";
import PageToolbar from "../../common/PageToolbar.svelte";
import Search from "../../inputs/Search.svelte";
import { addons } from "@/test/handlers/addons";
Expand Down
14 changes: 0 additions & 14 deletions src/lib/components/stories/Logo.stories.svelte

This file was deleted.

5 changes: 2 additions & 3 deletions src/routes/app/add-ons/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
import Search from "@/lib/components/inputs/Search.svelte";
import Pin from "@/common/icons/Pin.svelte";
import Star from "@/common/icons/Star.svelte";
import Credit from "@/common/icons/Credit.svelte";
import ContentLayout from "$lib/components/ContentLayout.svelte";
import ContentLayout from "$lib/components/layouts/ContentLayout.svelte";
import Empty from "$lib/components/common/Empty.svelte";
import MainLayout from "$lib/components/MainLayout.svelte";
import MainLayout from "$lib/components/layouts/MainLayout.svelte";
import PageToolbar from "$lib/components/common/PageToolbar.svelte";
import Error from "@/lib/components/common/Error.svelte";
import ListItem from "$lib/components/addons/AddOnListItem.svelte";
Expand Down
2 changes: 1 addition & 1 deletion src/routes/app/add-ons/[owner]/[repo]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import MainLayout from "@/lib/components/MainLayout.svelte";
import MainLayout from "@/lib/components/layouts/MainLayout.svelte";
export let data;
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/app/upload/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import "@/style/kit.css";
import MainLayout from "@/lib/components/MainLayout.svelte";
import MainLayout from "@/lib/components/layouts/MainLayout.svelte";
import SignedIn from "@/lib/components/common/SignedIn.svelte";
import Documents from "../sidebar/Documents.svelte";
Expand Down
2 changes: 1 addition & 1 deletion src/routes/documents/[id]-[slug]/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import type { Project } from "$lib/api/types";
import MainLayout from "$lib/components/MainLayout.svelte";
import MainLayout from "$lib/components/layouts/MainLayout.svelte";
import SignedIn from "$lib/components/common/SignedIn.svelte";
// sidebars
Expand Down

0 comments on commit 93e3faa

Please sign in to comment.