mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/lib: move dialogs
to state
folder
This commit is contained in:
parent
4c43a00e88
commit
be7c09bd07
10 changed files with 9 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { tick } from "svelte";
|
import { tick } from "svelte";
|
||||||
import { killDialog } from "$lib/dialogs";
|
import { killDialog } from "$lib/state/dialogs";
|
||||||
|
|
||||||
import DialogBackdropClose from "$components/dialog/DialogBackdropClose.svelte";
|
import DialogBackdropClose from "$components/dialog/DialogBackdropClose.svelte";
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import dialogs from "$lib/dialogs";
|
import dialogs from "$lib/state/dialogs";
|
||||||
|
|
||||||
import SmallDialog from "$components/dialog/SmallDialog.svelte";
|
import SmallDialog from "$components/dialog/SmallDialog.svelte";
|
||||||
import PickerDialog from "$components/dialog/PickerDialog.svelte";
|
import PickerDialog from "$components/dialog/PickerDialog.svelte";
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
|
|
||||||
import dialogs from "$lib/dialogs";
|
import dialogs from "$lib/state/dialogs";
|
||||||
|
|
||||||
import { link } from "$lib/state/omnibox";
|
import { link } from "$lib/state/omnibox";
|
||||||
import { cachedInfo } from "$lib/api/server-info";
|
import { cachedInfo } from "$lib/api/server-info";
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
import API from "$lib/api/api";
|
import API from "$lib/api/api";
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
import { createDialog } from "$lib/dialogs";
|
import { createDialog } from "$lib/state/dialogs";
|
||||||
import { downloadFile } from "$lib/download";
|
import { downloadFile } from "$lib/download";
|
||||||
|
|
||||||
import type { DialogInfo } from "$lib/types/dialog";
|
import type { DialogInfo } from "$lib/types/dialog";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
import { createDialog } from "$lib/dialogs";
|
import { createDialog } from "$lib/state/dialogs";
|
||||||
import {
|
import {
|
||||||
storedSettings,
|
storedSettings,
|
||||||
updateSetting,
|
updateSetting,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
import { createDialog } from "$lib/dialogs";
|
import { createDialog } from "$lib/state/dialogs";
|
||||||
import { resetSettings } from "$lib/state/settings";
|
import { resetSettings } from "$lib/state/settings";
|
||||||
|
|
||||||
import IconTrash from "@tabler/icons-svelte/IconTrash.svelte";
|
import IconTrash from "@tabler/icons-svelte/IconTrash.svelte";
|
||||||
|
|
|
@ -4,7 +4,7 @@ import env from "$lib/env";
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
import settings, { updateSetting } from "$lib/state/settings";
|
import settings, { updateSetting } from "$lib/state/settings";
|
||||||
|
|
||||||
import { createDialog } from "$lib/dialogs";
|
import { createDialog } from "$lib/state/dialogs";
|
||||||
|
|
||||||
export const apiOverrideWarning = async () => {
|
export const apiOverrideWarning = async () => {
|
||||||
if (!env.DEFAULT_API || get(settings).processing.seenOverrideWarning) {
|
if (!env.DEFAULT_API || get(settings).processing.seenOverrideWarning) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import settings from "$lib/state/settings";
|
||||||
|
|
||||||
import { device } from "$lib/device";
|
import { device } from "$lib/device";
|
||||||
import { t } from "$lib/i18n/translations";
|
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 { DialogInfo } from "$lib/types/dialog";
|
||||||
import type { CobaltFileUrlType } from "$lib/types/api";
|
import type { CobaltFileUrlType } from "$lib/types/api";
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
import { beforeNavigate, goto } from "$app/navigation";
|
import { beforeNavigate, goto } from "$app/navigation";
|
||||||
|
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
import { createDialog } from "$lib/dialogs";
|
import { createDialog } from "$lib/state/dialogs";
|
||||||
import { downloadFile } from "$lib/download";
|
import { downloadFile } from "$lib/download";
|
||||||
|
|
||||||
import Skeleton from "$components/misc/Skeleton.svelte";
|
import Skeleton from "$components/misc/Skeleton.svelte";
|
||||||
|
|
Loading…
Reference in a new issue