web/lib: move dialogs to state folder

This commit is contained in:
jj 2024-10-20 11:50:39 +00:00
parent 4c43a00e88
commit be7c09bd07
No known key found for this signature in database
10 changed files with 9 additions and 9 deletions

View file

@ -1,6 +1,6 @@
<script lang="ts">
import { tick } from "svelte";
import { killDialog } from "$lib/dialogs";
import { killDialog } from "$lib/state/dialogs";
import DialogBackdropClose from "$components/dialog/DialogBackdropClose.svelte";

View file

@ -1,5 +1,5 @@
<script lang="ts">
import dialogs from "$lib/dialogs";
import dialogs from "$lib/state/dialogs";
import SmallDialog from "$components/dialog/SmallDialog.svelte";
import PickerDialog from "$components/dialog/PickerDialog.svelte";

View file

@ -6,7 +6,7 @@
import { t } from "$lib/i18n/translations";
import dialogs from "$lib/dialogs";
import dialogs from "$lib/state/dialogs";
import { link } from "$lib/state/omnibox";
import { cachedInfo } from "$lib/api/server-info";

View file

@ -3,7 +3,7 @@
import API from "$lib/api/api";
import { t } from "$lib/i18n/translations";
import { createDialog } from "$lib/dialogs";
import { createDialog } from "$lib/state/dialogs";
import { downloadFile } from "$lib/download";
import type { DialogInfo } from "$lib/types/dialog";

View file

@ -1,6 +1,6 @@
<script lang="ts">
import { t } from "$lib/i18n/translations";
import { createDialog } from "$lib/dialogs";
import { createDialog } from "$lib/state/dialogs";
import {
storedSettings,
updateSetting,

View file

@ -1,6 +1,6 @@
<script lang="ts">
import { t } from "$lib/i18n/translations";
import { createDialog } from "$lib/dialogs";
import { createDialog } from "$lib/state/dialogs";
import { resetSettings } from "$lib/state/settings";
import IconTrash from "@tabler/icons-svelte/IconTrash.svelte";

View file

@ -4,7 +4,7 @@ import env from "$lib/env";
import { t } from "$lib/i18n/translations";
import settings, { updateSetting } from "$lib/state/settings";
import { createDialog } from "$lib/dialogs";
import { createDialog } from "$lib/state/dialogs";
export const apiOverrideWarning = async () => {
if (!env.DEFAULT_API || get(settings).processing.seenOverrideWarning) {

View file

@ -4,7 +4,7 @@ import settings from "$lib/state/settings";
import { device } from "$lib/device";
import { t } from "$lib/i18n/translations";
import { createDialog } from "$lib/dialogs";
import { createDialog } from "$lib/state/dialogs";
import type { DialogInfo } from "$lib/types/dialog";
import type { CobaltFileUrlType } from "$lib/types/api";

View file

@ -4,7 +4,7 @@
import { beforeNavigate, goto } from "$app/navigation";
import { t } from "$lib/i18n/translations";
import { createDialog } from "$lib/dialogs";
import { createDialog } from "$lib/state/dialogs";
import { downloadFile } from "$lib/download";
import Skeleton from "$components/misc/Skeleton.svelte";