Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experiment: remove barrel files #1504

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
154 changes: 77 additions & 77 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions src/lib/actions/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib/animations/AutoBox.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { rect } from '$lib/actions';
import { rect } from '$lib/actions/rect';
import { writable } from 'svelte/store';

const bodyRect = writable<DOMRect | null>(null);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/animations/Products/auth/controls.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Switch } from '$lib/components';
import Switch from '$lib/components/Switch.svelte';
import { objectKeys } from '$lib/utils/object';
import { authController } from '.';

Expand Down
2 changes: 1 addition & 1 deletion src/lib/animations/Products/functions/code.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { portal } from '$lib/actions';
import { portal } from '$lib/actions/portal';
import Code from '$lib/animations/CodeWindow/Code.svelte';
import { fade } from 'svelte/transition';
import { functionsController } from '.';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/animations/scroll-indicator.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { rect } from '$lib/actions';
import { rect } from '$lib/actions/rect';
import { clamp } from '$lib/utils/clamp';
import { onMount } from 'svelte';
import { writable } from 'svelte/store';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/MobileNav.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { afterNavigate } from '$app/navigation';
import { IsLoggedIn } from '$lib/components';
import IsLoggedIn from '$lib/components/IsLoggedIn.svelte';
import { GITHUB_REPO_LINK, GITHUB_STARS } from '$lib/constants';
import type { NavLink } from '$lib/layouts/Main.svelte';

Expand Down
16 changes: 0 additions & 16 deletions src/lib/components/index.ts

This file was deleted.

3 changes: 2 additions & 1 deletion src/lib/layouts/Docs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
</script>

<script lang="ts">
import { Search, IsLoggedIn } from '$lib/components';
import Search from '$lib/components/Search.svelte';
import IsLoggedIn from '$lib/components/IsLoggedIn.svelte';
import { isMac } from '$lib/utils/platform';
import { getContext, setContext } from 'svelte';
import { GITHUB_REPO_LINK, GITHUB_STARS } from '$lib/constants';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/layouts/DocsArticle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script lang="ts">
import { scrollToTop } from '$lib/actions/scrollToTop';

import { Feedback } from '$lib/components';
import Feedback from '$lib/components/Feedback.svelte';

export let title: string;
export let toc: Array<TocItem>;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/layouts/DocsTutorial.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { scrollToTop } from '$lib/actions/scrollToTop';
import { Feedback } from '$lib/components';
import Feedback from '$lib/components/Feedback.svelte';
import type { Tutorial } from '$markdoc/layouts/Tutorial.svelte';
import type { TocItem } from './DocsArticle.svelte';
import Heading from '$markdoc/nodes/Heading.svelte';
Expand Down
3 changes: 2 additions & 1 deletion src/lib/layouts/Main.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

<script lang="ts">
import { browser } from '$app/environment';
import { MobileNav, IsLoggedIn } from '$lib/components';
import MobileNav from '$lib/components/MobileNav.svelte';
import IsLoggedIn from '$lib/components/IsLoggedIn.svelte';
import { BANNER_KEY, GITHUB_REPO_LINK, GITHUB_STARS } from '$lib/constants';
import { isVisible } from '$lib/utils/isVisible';
import { createScrollInfo } from '$lib/utils/scroll';
Expand Down
3 changes: 2 additions & 1 deletion src/lib/layouts/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

<script lang="ts">
import { clickOutside } from '$lib/actions/clickOutside';
import { Tooltip, IsLoggedIn } from '$lib/components';
import Tooltip from '$lib/components/Tooltip.svelte';
import IsLoggedIn from '$lib/components/IsLoggedIn.svelte';
import { GITHUB_REPO_LINK, GITHUB_STARS } from '$lib/constants';
import { layoutState, toggleSidenav } from './Docs.svelte';
import SidebarNavButton from './SidebarNavButton.svelte';
Expand Down
2 changes: 1 addition & 1 deletion src/markdoc/layouts/Article.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</script>

<script lang="ts">
import { MainFooter } from '$lib/components';
import MainFooter from '$lib/components/MainFooter.svelte';
import SeoOgImage from '$lib/components/SeoOgImage.svelte';
import { DocsArticle } from '$lib/layouts';
import type { TocItem } from '$lib/layouts/DocsArticle.svelte';
Expand Down
4 changes: 3 additions & 1 deletion src/markdoc/layouts/Author.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<script lang="ts">
import { Article, FooterNav, MainFooter } from '$lib/components';
import Article from '$lib/components/Article.svelte';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import { page } from '$app/stores';
import { Main } from '$lib/layouts';
import { getContext } from 'svelte';
Expand Down
4 changes: 3 additions & 1 deletion src/markdoc/layouts/Category.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script lang="ts">
import { page } from '$app/stores';
import { Article, FooterNav, MainFooter } from '$lib/components';
import Article from '$lib/components/Article.svelte';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import { Main } from '$lib/layouts';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import type { AuthorData, PostsData } from '$routes/blog/content';
Expand Down
3 changes: 2 additions & 1 deletion src/markdoc/layouts/Policy.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
</script>

<script lang="ts">
import { FooterNav, MainFooter } from '$lib/components';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';

import { Main } from '$lib/layouts';

Expand Down
6 changes: 5 additions & 1 deletion src/markdoc/layouts/Post.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<script lang="ts">
import { Media } from '$lib/UI';
import { scroll } from '$lib/animations';
import { Article, FooterNav, MainFooter, Newsletter, Tooltip } from '$lib/components';
import Article from '$lib/components/Article.svelte';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import Newsletter from '$lib/components/Newsletter.svelte';
import Tooltip from '$lib/components/Tooltip.svelte';
import { Main } from '$lib/layouts';
import { formatDate } from '$lib/utils/date';
import { DEFAULT_HOST } from '$lib/utils/metadata';
Expand Down
2 changes: 1 addition & 1 deletion src/markdoc/layouts/Tutorial.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script lang="ts">
import { DocsTutorial } from '$lib/layouts';
import { getContext, setContext } from 'svelte';
import { MainFooter } from '$lib/components';
import MainFooter from '$lib/components/MainFooter.svelte';
import type { TocItem } from '$lib/layouts/DocsArticle.svelte';
import { writable } from 'svelte/store';
import type { LayoutContext } from './Article.svelte';
Expand Down
2 changes: 1 addition & 1 deletion src/markdoc/nodes/Fence.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { getCodeHtml, type Language } from '$lib/utils/code';
import { getContext, hasContext } from 'svelte';
import { platformMap } from '$lib/utils/references';
import { Tooltip } from '$lib/components';
import Tooltip from '$lib/components/Tooltip.svelte';
import { copy } from '$lib/utils/copy';
import type { CodeContext } from '../tags/MultiCode.svelte';
import { melt } from '@melt-ui/svelte';
Expand Down
3 changes: 2 additions & 1 deletion src/markdoc/tags/MultiCode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
import { writable } from 'svelte/store';
import type { Language } from '$lib/utils/code';
import { copy } from '$lib/utils/copy';
import { Select, Tooltip } from '$lib/components';
import Select from '$lib/components/Select.svelte';
import Tooltip from '$lib/components/Tooltip.svelte';

setContext<CodeContext>('multi-code', {
selected: writable(null),
Expand Down
3 changes: 2 additions & 1 deletion src/routes/+error.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import { page } from '$app/stores';
import { FooterNav, MainFooter } from '$lib/components';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import { Main } from '$lib/layouts';
import DocsError from './docs/+error.svelte';

Expand Down
2 changes: 1 addition & 1 deletion src/routes/assets/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { visible } from '$lib/actions';
import { visible } from '$lib/actions/visible';
import TocNav from '$lib/components/TocNav.svelte';
import TocRoot from '$lib/components/TocRoot.svelte';
import { Main } from '$lib/layouts';
Expand Down
4 changes: 3 additions & 1 deletion src/routes/blog/[[page]]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<script lang="ts">
import { page } from '$app/stores';
import { Main } from '$lib/layouts';
import { Article, FooterNav, MainFooter } from '$lib/components';
import Article from '$lib/components/Article.svelte';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import { TITLE_SUFFIX } from '$routes/titles.js';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { onMount, tick } from 'svelte';
Expand Down
4 changes: 3 additions & 1 deletion src/routes/changelog/[[page]]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { FooterNav, MainFooter, PreFooter } from '$lib/components';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import PreFooter from '$lib/components/PreFooter.svelte';
import { Main } from '$lib/layouts';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import { onMount } from 'svelte';
Expand Down
4 changes: 3 additions & 1 deletion src/routes/changelog/entry/[entry]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<script lang="ts">
import { FooterNav, MainFooter, Tooltip } from '$lib/components';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import Tooltip from '$lib/components/Tooltip.svelte';
import PreFooter from '$lib/components/PreFooter.svelte';
import { Main } from '$lib/layouts';
import { formatDate } from '$lib/utils/date';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/community/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</script>

<script lang="ts">
import { Carousel } from '$lib/components';
import Carousel from '$lib/components/Carousel.svelte';
import FloatingHeads from '$lib/components/FloatingHeads.svelte';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/+error.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { page } from '$app/stores';
import { MainFooter } from '$lib/components';
import MainFooter from '$lib/components/MainFooter.svelte';
import { Docs } from '$lib/layouts';
import Sidebar from './Sidebar.svelte';
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Carousel } from '$lib/components';
import Carousel from '$lib/components/Carousel.svelte';
import Technologies from '$lib/components/Technologies.svelte';
import Docs from '$lib/layouts/Docs.svelte';
import { DEFAULT_HOST } from '$lib/utils/metadata';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/quick-starts/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { MainFooter } from '$lib/components';
import MainFooter from '$lib/components/MainFooter.svelte';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DOCS_TITLE_SUFFIX } from '$routes/titles';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { MainFooter, Select } from '$lib/components';
import MainFooter from '$lib/components/MainFooter.svelte';
import Select from '$lib/components/Select.svelte';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { layoutState, toggleReferences } from '$lib/layouts/Docs.svelte';
import { parse } from '$lib/utils/markdown';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/tutorials/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { MainFooter } from '$lib/components';
import MainFooter from '$lib/components/MainFooter.svelte';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DOCS_TITLE_SUFFIX } from '$routes/titles';

Expand Down
3 changes: 2 additions & 1 deletion src/routes/education/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { FooterNav, MainFooter } from '$lib/components';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import { Main } from '$lib/layouts';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import CallToAction from './(components)/CallToAction.svelte';
Expand Down
3 changes: 2 additions & 1 deletion src/routes/heroes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { FooterNav, MainFooter } from '$lib/components';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import { Main } from '$lib/layouts';
import { TITLE_SUFFIX } from '$routes/titles';
Expand Down
4 changes: 3 additions & 1 deletion src/routes/init-0/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<script lang="ts">
import { Carousel, FooterNav, MainFooter } from '$lib/components';
import Carousel from '$lib/components/Carousel.svelte';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import { Main } from '$lib/layouts';
import EventCard from '$routes/community/EventCard.svelte';
import ShinesSvg from './(assets)/shines.svg';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/init-0/tickets/customize/form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import { page } from '$app/stores';
import { PUBLIC_APPWRITE_DASHBOARD } from '$env/static/public';
import { appwriteInit } from '$lib/appwrite/init';
import { Switch } from '$lib/components';
import Switch from '$lib/components/Switch.svelte';
import { loginGithub } from '$routes/init-0/helpers';
import type { TicketVariant } from '../constants';

Expand Down
2 changes: 1 addition & 1 deletion src/routes/init/(components)/EventCarousel.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" context="module">
import { Carousel } from '$lib/components';
import Carousel from '$lib/components/Carousel.svelte';
import day0 from '../(assets)/discord/day-0.png';
import day1 from '../(assets)/discord/day-1.png';
import day2 from '../(assets)/discord/day-2.png';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/init/(components)/ticket/TicketActions.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { page } from '$app/stores';
import { Switch } from '$lib/components';
import Switch from '$lib/components/Switch.svelte';
import { createCopy } from '$lib/utils/copy';
import { loginGithub } from '$routes/init/helpers';
import Tooltip from '$lib/components/Tooltip.svelte';
Expand Down
3 changes: 2 additions & 1 deletion src/routes/init/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { FooterNav, MainFooter } from '$lib/components';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import { Main } from '$lib/layouts';
import { addDays, toReleaseDate } from '$lib/utils/date';
import { buildOpenGraphImage } from '$lib/utils/metadata';
Expand Down
4 changes: 3 additions & 1 deletion src/routes/pricing/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<script lang="ts">
import { FooterNav, MainFooter, PreFooter } from '$lib/components';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import PreFooter from '$lib/components/PreFooter.svelte';
import { DEFAULT_HOST } from '$lib/utils/metadata';

import { Main } from '$lib/layouts';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import { writable } from 'svelte/store';
import { getCodeHtml, type Language } from '$lib/utils/code';
import { copy } from '$lib/utils/copy';
import { Select, Tooltip } from '$lib/components';
import Select from '$lib/components/Select.svelte';
import Tooltip from '$lib/components/Tooltip.svelte';

export let selected: Language = 'js';
export let data: { language: string; content: string; platform?: string }[] = [];
Expand Down
4 changes: 3 additions & 1 deletion src/routes/products/messaging/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<script>
import { FooterNav, MainFooter, PreFooter } from '$lib/components';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import PreFooter from '$lib/components/PreFooter.svelte';
import Main from '$lib/layouts/Main.svelte';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import { TITLE_SUFFIX } from '$routes/titles';
Expand Down
3 changes: 2 additions & 1 deletion src/routes/subscription/verify/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import { page } from '$app/stores';
import { FooterNav, MainFooter } from '$lib/components';
import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';
import { Main } from '$lib/layouts';
import { onMount } from 'svelte';

Expand Down
2 changes: 1 addition & 1 deletion src/routes/threads/[id]/CodeRenderer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { getCodeHtml, type Language } from '$lib/utils/code';
import { getContext, hasContext } from 'svelte';
import { platformMap } from '$lib/utils/references';
import { Tooltip } from '$lib/components';
import Tooltip from '$lib/components/Tooltip.svelte';
import { copy } from '$lib/utils/copy';

import { melt } from '@melt-ui/svelte';
Expand Down
Loading