Moving the rest of components into $lib

- the routing structure is now almost free from component files
This commit is contained in:
Mattias Granlund 2024-01-29 15:10:10 +01:00
parent 9d762f295d
commit fb2f8cca16
26 changed files with 21 additions and 21 deletions

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 451 B

After

Width:  |  Height:  |  Size: 451 B

View File

@ -1,8 +1,8 @@
<script lang="ts">
import BottomSheetImg from './assets/bottom-sheet.svelte';
import HandImg from './assets/hand.svelte';
import MiddleSheetImg from './assets/middle-sheet.svelte';
import TopSheetImg from './assets/top-sheet.svelte';
import BottomSheetSvg from './BottomSheetSvg.svelte';
import HandSvg from './HandSvg.svelte';
import MiddleSheetSvg from './MiddleSheetSvg.svelte';
import TopSheetSvg from './TopSheetSvg.svelte';
import Button from '$lib/components/Button.svelte';
import {
isDraggableHunk,
@ -49,16 +49,16 @@
<div class="new-virtual-branch__content">
<div class="stimg">
<div class="stimg__hand">
<HandImg />
<HandSvg />
</div>
<div class="stimg__top-sheet">
<TopSheetImg />
<TopSheetSvg />
</div>
<div class="stimg__middle-sheet">
<MiddleSheetImg />
<MiddleSheetSvg />
</div>
<div class="stimg__bottom-sheet">
<BottomSheetImg />
<BottomSheetSvg />
</div>
<div class="stimg__branch">

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@ -1,9 +1,9 @@
<script lang="ts">
import '../styles/main.postcss';
import LinkProjectModal from './LinkProjectModal.svelte';
import ShareIssueModal from './ShareIssueModal.svelte';
import { initTheme } from './settings/theme';
import LinkProjectModal from '$lib/components/LinkProjectModal.svelte';
import ShareIssueModal from '$lib/components/ShareIssueModal.svelte';
import { initTheme } from '$lib/components/theme';
import { SETTINGS_CONTEXT, loadUserSettings } from '$lib/settings/userSettings';
import * as events from '$lib/utils/events';
import * as hotkeys from '$lib/utils/hotkeys';

View File

@ -1,10 +1,10 @@
<script lang="ts">
import ProjectSetup from './ProjectSetup.svelte';
import { syncToCloud } from '$lib/backend/cloud';
import { handleMenuActions } from '$lib/backend/menu_actions';
import Navigation from '$lib/components/Navigation.svelte';
import NotOnGitButlerBranch from '$lib/components/NotOnGitButlerBranch.svelte';
import ProblemLoadingRepo from '$lib/components/ProblemLoadingRepo.svelte';
import ProjectSetup from '$lib/components/ProjectSetup.svelte';
import { subscribe as menuSubscribe } from '$lib/menu';
import * as hotkeys from '$lib/utils/hotkeys';
import { unsubscribe } from '$lib/utils/random';

View File

@ -1,5 +1,5 @@
<script lang="ts">
import BaseBranch from './BaseBranch.svelte';
import BaseBranch from '$lib/components/BaseBranch.svelte';
import ScrollableContainer from '$lib/components/ScrollableContainer.svelte';
import type { PageData } from './$types';

View File

@ -1,5 +1,5 @@
<script lang="ts">
import Board from './Board.svelte';
import Board from '$lib/components/Board.svelte';
import Scrollbar from '$lib/components/Scrollbar.svelte';
import { projectHttpsWarningBannerDismissed } from '$lib/config/config';
import IconExternalLink from '$lib/icons/IconExternalLink.svelte';

View File

@ -1,5 +1,5 @@
<script lang="ts">
import PullRequestPreview from './PullRequestPreview.svelte';
import PullRequestPreview from '$lib/components/PullRequestPreview.svelte';
import { map } from 'rxjs';
import type { PageData } from './$types';
import { page } from '$app/stores';

View File

@ -1,5 +1,5 @@
<script lang="ts">
import RemoteBranchPreview from './RemoteBranchPreview.svelte';
import RemoteBranchPreview from '$lib/components/RemoteBranchPreview.svelte';
import type { PageData } from './$types';
import { page } from '$app/stores';

View File

@ -1,10 +1,10 @@
<script lang="ts">
import CloudForm from './CloudForm.svelte';
import DetailsForm from './DetailsForm.svelte';
import KeysForm from './KeysForm.svelte';
import PreferencesForm from './PreferencesForm.svelte';
import Button from '$lib/components/Button.svelte';
import CloudForm from '$lib/components/CloudForm.svelte';
import DetailsForm from '$lib/components/DetailsForm.svelte';
import KeysForm from '$lib/components/KeysForm.svelte';
import Modal from '$lib/components/Modal.svelte';
import PreferencesForm from '$lib/components/PreferencesForm.svelte';
import ScrollableContainer from '$lib/components/ScrollableContainer.svelte';
import Spacer from '$lib/components/Spacer.svelte';
import * as toasts from '$lib/utils/toasts';

View File

@ -1,5 +1,4 @@
<script lang="ts">
import ThemeSelector from './ThemeSelector.svelte';
import { deleteAllData } from '$lib/backend/data';
import Button from '$lib/components/Button.svelte';
import GithubIntegration from '$lib/components/GithubIntegration.svelte';
@ -10,6 +9,7 @@
import ScrollableContainer from '$lib/components/ScrollableContainer.svelte';
import Spacer from '$lib/components/Spacer.svelte';
import TextBox from '$lib/components/TextBox.svelte';
import ThemeSelector from '$lib/components/ThemeSelector.svelte';
import Toggle from '$lib/components/Toggle.svelte';
import { appMetricsEnabled, appErrorReportingEnabled } from '$lib/config/appSettings';
import { copyToClipboard } from '$lib/utils/clipboard';