Moving file related stuff into feature folder

This commit is contained in:
Mattias Granlund 2024-06-20 21:10:50 +03:00
parent 148d5e03f8
commit 1e44ae00ea
17 changed files with 14 additions and 14 deletions

View File

@ -1,5 +1,4 @@
<script lang="ts"> <script lang="ts">
import BranchFiles from './BranchFiles.svelte';
import BranchFooter from './BranchFooter.svelte'; import BranchFooter from './BranchFooter.svelte';
import BranchHeader from './BranchHeader.svelte'; import BranchHeader from './BranchHeader.svelte';
import CommitDialog from './CommitDialog.svelte'; import CommitDialog from './CommitDialog.svelte';
@ -17,6 +16,7 @@
import Resizer from '$lib/components/Resizer.svelte'; import Resizer from '$lib/components/Resizer.svelte';
import { projectAiGenAutoBranchNamingEnabled } from '$lib/config/config'; import { projectAiGenAutoBranchNamingEnabled } from '$lib/config/config';
import { projectAiGenEnabled } from '$lib/config/config'; import { projectAiGenEnabled } from '$lib/config/config';
import BranchFiles from '$lib/file/BranchFiles.svelte';
import { showError } from '$lib/notifications/toasts'; import { showError } from '$lib/notifications/toasts';
import { persisted } from '$lib/persisted/persisted'; import { persisted } from '$lib/persisted/persisted';
import { SETTINGS, type Settings } from '$lib/settings/userSettings'; import { SETTINGS, type Settings } from '$lib/settings/userSettings';

View File

@ -1,9 +1,9 @@
<script lang="ts"> <script lang="ts">
import BranchCard from './BranchCard.svelte'; import BranchCard from './BranchCard.svelte';
import FileCard from './FileCard.svelte';
import { Project } from '$lib/backend/projects'; import { Project } from '$lib/backend/projects';
import Resizer from '$lib/components/Resizer.svelte'; import Resizer from '$lib/components/Resizer.svelte';
import { projectLaneCollapsed } from '$lib/config/config'; import { projectLaneCollapsed } from '$lib/config/config';
import FileCard from '$lib/file/FileCard.svelte';
import { persisted } from '$lib/persisted/persisted'; import { persisted } from '$lib/persisted/persisted';
import { SETTINGS, type Settings } from '$lib/settings/userSettings'; import { SETTINGS, type Settings } from '$lib/settings/userSettings';
import { getContext, getContextStoreBySymbol, createContextStore } from '$lib/utils/context'; import { getContext, getContextStoreBySymbol, createContextStore } from '$lib/utils/context';

View File

@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
import BranchFilesList from './BranchFilesList.svelte';
import CommitDragItem from './CommitDragItem.svelte'; import CommitDragItem from './CommitDragItem.svelte';
import Icon from './Icon.svelte'; import Icon from './Icon.svelte';
import BranchFilesList from '../file/BranchFilesList.svelte';
import { Project } from '$lib/backend/projects'; import { Project } from '$lib/backend/projects';
import Button from '$lib/components/Button.svelte'; import Button from '$lib/components/Button.svelte';
import CommitMessageInput from '$lib/components/CommitMessageInput.svelte'; import CommitMessageInput from '$lib/components/CommitMessageInput.svelte';

View File

@ -1,7 +1,6 @@
<script lang="ts"> <script lang="ts">
import Button from './Button.svelte'; import Button from './Button.svelte';
import EmptyStatePlaceholder from './EmptyStatePlaceholder.svelte'; import EmptyStatePlaceholder from './EmptyStatePlaceholder.svelte';
import FileCard from './FileCard.svelte';
import FullviewLoading from './FullviewLoading.svelte'; import FullviewLoading from './FullviewLoading.svelte';
import Icon from './Icon.svelte'; import Icon from './Icon.svelte';
import LazyloadContainer from './LazyloadContainer.svelte'; import LazyloadContainer from './LazyloadContainer.svelte';
@ -10,6 +9,7 @@
import emptyFolderSvg from '$lib/assets/empty-state/empty-folder.svg?raw'; import emptyFolderSvg from '$lib/assets/empty-state/empty-folder.svg?raw';
import { Project } from '$lib/backend/projects'; import { Project } from '$lib/backend/projects';
import { clickOutside } from '$lib/clickOutside'; import { clickOutside } from '$lib/clickOutside';
import FileCard from '$lib/file/FileCard.svelte';
import { HistoryService, createdOnDay } from '$lib/history/history'; import { HistoryService, createdOnDay } from '$lib/history/history';
import { getContext } from '$lib/utils/context'; import { getContext } from '$lib/utils/context';
import { RemoteFile } from '$lib/vbranches/types'; import { RemoteFile } from '$lib/vbranches/types';

View File

@ -1,10 +1,10 @@
<script lang="ts"> <script lang="ts">
import BranchPreviewHeader from './BranchPreviewHeader.svelte'; import BranchPreviewHeader from './BranchPreviewHeader.svelte';
import FileCard from './FileCard.svelte';
import Resizer from './Resizer.svelte'; import Resizer from './Resizer.svelte';
import ScrollableContainer from './ScrollableContainer.svelte'; import ScrollableContainer from './ScrollableContainer.svelte';
import { Project } from '$lib/backend/projects'; import { Project } from '$lib/backend/projects';
import CommitCard from '$lib/components/CommitCard.svelte'; import CommitCard from '$lib/components/CommitCard.svelte';
import FileCard from '$lib/file/FileCard.svelte';
import { SETTINGS, type Settings } from '$lib/settings/userSettings'; import { SETTINGS, type Settings } from '$lib/settings/userSettings';
import { getRemoteBranchData } from '$lib/stores/remoteBranches'; import { getRemoteBranchData } from '$lib/stores/remoteBranches';
import { getContext, getContextStore, getContextStoreBySymbol } from '$lib/utils/context'; import { getContext, getContextStore, getContextStoreBySymbol } from '$lib/utils/context';

View File

@ -1,8 +1,8 @@
<script lang="ts"> <script lang="ts">
import BranchFilesHeader from './BranchFilesHeader.svelte'; import BranchFilesHeader from './BranchFilesHeader.svelte';
import Button from './Button.svelte';
import FileListItem from './FileListItem.svelte'; import FileListItem from './FileListItem.svelte';
import LazyloadContainer from './LazyloadContainer.svelte'; import Button from '$lib/components/Button.svelte';
import LazyloadContainer from '$lib/components/LazyloadContainer.svelte';
import TextBox from '$lib/components/TextBox.svelte'; import TextBox from '$lib/components/TextBox.svelte';
import { copyToClipboard } from '$lib/utils/clipboard'; import { copyToClipboard } from '$lib/utils/clipboard';
import { getContext } from '$lib/utils/context'; import { getContext } from '$lib/utils/context';

View File

@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
import Button from './Button.svelte';
import Modal from './Modal.svelte';
import { Project } from '$lib/backend/projects'; import { Project } from '$lib/backend/projects';
import Button from '$lib/components/Button.svelte';
import Modal from '$lib/components/Modal.svelte';
import PopupMenu from '$lib/components/PopupMenu.svelte'; import PopupMenu from '$lib/components/PopupMenu.svelte';
import ContextMenu from '$lib/components/contextmenu/ContextMenu.svelte'; import ContextMenu from '$lib/components/contextmenu/ContextMenu.svelte';
import ContextMenuItem from '$lib/components/contextmenu/ContextMenuItem.svelte'; import ContextMenuItem from '$lib/components/contextmenu/ContextMenuItem.svelte';

View File

@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
import Icon from './Icon.svelte'; import Icon from '$lib/components/Icon.svelte';
import LargeDiffMessage from './LargeDiffMessage.svelte'; import LargeDiffMessage from '$lib/components/LargeDiffMessage.svelte';
import HunkViewer from '../hunk/HunkViewer.svelte'; import HunkViewer from '$lib/hunk/HunkViewer.svelte';
import { computeAddedRemovedByHunk } from '$lib/utils/metrics'; import { computeAddedRemovedByHunk } from '$lib/utils/metrics';
import { tooltip } from '$lib/utils/tooltip'; import { tooltip } from '$lib/utils/tooltip';
import { getLocalCommits, getRemoteCommits } from '$lib/vbranches/contexts'; import { getLocalCommits, getRemoteCommits } from '$lib/vbranches/contexts';

View File

@ -1,5 +1,5 @@
<script lang="ts"> <script lang="ts">
import Button from './Button.svelte'; import Button from '$lib/components/Button.svelte';
import type { FileStatus } from '$lib/utils/fileStatus'; import type { FileStatus } from '$lib/utils/fileStatus';
import type { ComponentColor } from '$lib/vbranches/types'; import type { ComponentColor } from '$lib/vbranches/types';

View File

@ -1,10 +1,10 @@
<script lang="ts"> <script lang="ts">
import { Project } from '$lib/backend/projects'; import { Project } from '$lib/backend/projects';
import BaseBranch from '$lib/components/BaseBranch.svelte'; import BaseBranch from '$lib/components/BaseBranch.svelte';
import FileCard from '$lib/components/FileCard.svelte';
import FullviewLoading from '$lib/components/FullviewLoading.svelte'; import FullviewLoading from '$lib/components/FullviewLoading.svelte';
import Resizer from '$lib/components/Resizer.svelte'; import Resizer from '$lib/components/Resizer.svelte';
import ScrollableContainer from '$lib/components/ScrollableContainer.svelte'; import ScrollableContainer from '$lib/components/ScrollableContainer.svelte';
import FileCard from '$lib/file/FileCard.svelte';
import { SETTINGS, type Settings } from '$lib/settings/userSettings'; import { SETTINGS, type Settings } from '$lib/settings/userSettings';
import { getContext, getContextStoreBySymbol } from '$lib/utils/context'; import { getContext, getContextStoreBySymbol } from '$lib/utils/context';
import { BaseBranchService } from '$lib/vbranches/baseBranch'; import { BaseBranchService } from '$lib/vbranches/baseBranch';