Skip to content

Commit bbe6a29

Browse files
committed
Group mcss logic (wip)
1 parent 984c879 commit bbe6a29

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

src/lib/code/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type { IServerSettings, ServerAction } from './server';
2222
import type { IEditPanelSettings, IEditPanelSettingsRequest, IPanelSettings } from './panel';
2323
import type { Memory, Stats } from './statistics';
2424
import type { ICreateUserRequest, IDeleteUserAccount, IDeleteUserAccountRequest, IEditPanelUser, IEditUserAccount, IGetPanelUserSettingsResponse, IGetUserDetailsResponse, IGetUsersListResponse, INewPanelUser, IPanelUser, IUpdateUserAccountRequest, IUpdateUserRequest, IUserAvatarRequest } from './user';
25-
import type { McssSettingsSection } from '../../types';
25+
import type { McssSettingsSection } from './mcss';
2626

2727
export enum Filter {
2828
None,

src/types.ts renamed to src/lib/code/mcss.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ export enum McssSettingsSection {
33
All,
44
Backups,
55
}
6-

src/lib/pages/backups/create.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import Icon from '$lib/components/elements/icon.svelte';
55
import PageTitleBanner from '$lib/components/page/pageTitleBanner.svelte';
66
import Breadcrumb from '$lib/components/navigation/breadcrumb.svelte';
7-
import { McssSettingsSection } from '../../../types';
87
import { getServer, selectedServerId } from '$lib/code/global';
98
import { createBackup, getMcssSettings } from '$lib/code/api';
109
import { Page, navigateToPage } from '$lib/code/routing';
@@ -17,6 +16,7 @@
1716
import Warning from '$lib/components/elements/warning.svelte';
1817
import { BackupCompression, BackupFilterListDetails, type INewBackup } from '$lib/code/backup';
1918
import { WarningType } from '$lib/code/panel';
19+
import { McssSettingsSection } from '$lib/code/mcss';
2020
2121
let name: string = '';
2222
let destination: string = '';

src/lib/pages/backups/edit.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import Icon from '$lib/components/elements/icon.svelte';
66
import PageTitleBanner from '$lib/components/page/pageTitleBanner.svelte';
77
import Breadcrumb from '$lib/components/navigation/breadcrumb.svelte';
8-
import { McssSettingsSection } from '../../../types';
98
import { getServer, selectedServerId } from '$lib/code/global';
109
import { Page, navigateToPage, selectedPageProps } from '$lib/code/routing';
1110
import Toggle from '$lib/components/elements/toggle.svelte';
@@ -18,6 +17,7 @@
1817
import { Permission, hasPermission } from '$lib/code/permissions';
1918
import { BackupFilterListDetails, type BackupCompression, type IBackupDetails, type IEditBackup } from '$lib/code/backup';
2019
import { WarningType } from '$lib/code/panel';
20+
import { McssSettingsSection } from '$lib/code/mcss';
2121
2222
let backupId: string;
2323
let name: string = '';

src/lib/pages/backups/settings.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script lang="ts">
22
import { mdiArchive, mdiClose, mdiContentSave } from '@mdi/js';
33
import Icon from '$lib/components/elements/icon.svelte';
4-
import { McssSettingsSection } from '../../../types';
54
import Breadcrumb from '$lib/components/navigation/breadcrumb.svelte';
65
import { Button } from 'flowbite-svelte';
76
import PageTitleBanner from '$lib/components/page/pageTitleBanner.svelte';
@@ -13,6 +12,7 @@
1312
import { getMcssSettings, updateMcssSettings } from '$lib/code/api';
1413
import Warning from '$lib/components/elements/warning.svelte';
1514
import { Page } from '$lib/code/routing';
15+
import { McssSettingsSection } from '$lib/code/mcss';
1616
1717
let zipFileFormat: string;
1818
let deleteOldBackupsThreshold: number;

0 commit comments

Comments
 (0)