An open-source, self-hosted system for apps built with web technologies.
Normalize desktop import paths
zohayrslileh4b6c240be5c9
diff --git a/source/client/view/structure/desktop/programs/programs.ts b/source/client/view/structure/desktop/programs/programs.tsindex 3f0a84d..51bb9d0 100644--- a/source/client/view/structure/desktop/programs/programs.ts+++ b/source/client/view/structure/desktop/programs/programs.ts@@ -1,5 +1,5 @@import ReactTunnel from "@libs/the-link/plugins/react-helper/react-tunnel"-import { AuthManagerContext } from "../../../contexts"+import { AuthManagerContext } from "@client/view/contexts"/*** The authorized view's programs: the list the peer re-emits on itsdiff --git a/source/client/view/structure/desktop/taskbar/launcher/launcher.tsx b/source/client/view/structure/desktop/taskbar/launcher/launcher.tsxindex 99eff3a..abd63c9 100644--- a/source/client/view/structure/desktop/taskbar/launcher/launcher.tsx+++ b/source/client/view/structure/desktop/taskbar/launcher/launcher.tsx@@ -1,5 +1,5 @@import { ReactNode, useCallback, useEffect, useId, useRef, useState } from "react"-import { enterSurface, prepareSurfaceEntrance, restSurface } from "../../../../appearance/surface-presence"+import { enterSurface, prepareSurfaceEntrance, restSurface } from "@client/view/appearance/surface-presence"import { useReducedMotion } from "@libs/react-motion"import { useAppearance, useResolveTheme, useScale, type SurfaceProps } from "@phreshos/react-ui"import TaskbarSurface, { taskbarSurfaceClassName } from "../taskbar-surface"diff --git a/source/client/view/structure/desktop/taskbar/launcher/programs-section.tsx b/source/client/view/structure/desktop/taskbar/launcher/programs-section.tsxindex cd58bb6..687f698 100644--- a/source/client/view/structure/desktop/taskbar/launcher/programs-section.tsx+++ b/source/client/view/structure/desktop/taskbar/launcher/programs-section.tsx@@ -1,10 +1,10 @@import LauncherItem from "./launcher-item"import programIcon from "../../programs/program-icon"import usePrograms from "../../programs/programs"-import { ApplicationContext } from "../../../../contexts"+import { ApplicationContext } from "@client/view/contexts"import Program from "@client/core/link-manager/auth-manager/program-manager/program"import usePromise from "@libs/react-promise"-import Alert from "../../../../components/alert"+import Alert from "@client/view/components/alert"interface ProgramsSectionProps {diff --git a/source/client/view/structure/desktop/taskbar/system/system-dialogs.tsx b/source/client/view/structure/desktop/taskbar/system/system-dialogs.tsxindex b53dc40..67e296b 100644--- a/source/client/view/structure/desktop/taskbar/system/system-dialogs.tsx+++ b/source/client/view/structure/desktop/taskbar/system/system-dialogs.tsx@@ -1,14 +1,14 @@import { type PermissionChoice, type PermissionDialog, type ServerCrashDialog } from "@server/core/dialog-manager"import ReactTunnel from "@libs/the-link/plugins/react-helper/react-tunnel"-import { enterSurface, prepareSurfaceEntrance, restSurface } from "../../../../appearance/surface-presence"+import { enterSurface, prepareSurfaceEntrance, restSurface } from "@client/view/appearance/surface-presence"import { useReducedMotion } from "@libs/react-motion"import { useAppearance, useResolveTheme, useScale } from "@phreshos/react-ui"import { useEffect, useId, useRef } from "react"-import { AuthManagerContext } from "../../../../contexts"+import { AuthManagerContext } from "@client/view/contexts"import TaskbarSurface, { taskbarSurfaceClassName } from "../taskbar-surface"import TaskbarButton from "../taskbar-button"import usePromise from "@libs/react-promise"-import Alert from "../../../../components/alert"+import Alert from "@client/view/components/alert"/** Taskbar-owned presentation of the system's authoritative dialog queue. */export default function SystemDialogs() {diff --git a/source/client/view/structure/desktop/wallpaper/wallpaper.tsx b/source/client/view/structure/desktop/wallpaper/wallpaper.tsxindex c1f38ca..4f000a3 100644--- a/source/client/view/structure/desktop/wallpaper/wallpaper.tsx+++ b/source/client/view/structure/desktop/wallpaper/wallpaper.tsx@@ -1,8 +1,8 @@import darkWallpaper from "@/assets/bundled/dark-wallpaper.png"import lightWallpaper from "@/assets/bundled/light-wallpaper.png"-import { ApplicationContext } from "../../../contexts"+import { ApplicationContext } from "@client/view/contexts"import { useEffect, useMemo, useRef, useState, type ReactNode } from "react"-import Loading from "../../../components/loading"+import Loading from "@client/view/components/loading"import { useReady } from "@libs/readiness/main"import { useTheme } from "@phreshos/react-ui"diff --git a/source/client/view/structure/desktop/windows/process-window.tsx b/source/client/view/structure/desktop/windows/process-window.tsxindex 6fc3013..9a527b1 100644--- a/source/client/view/structure/desktop/windows/process-window.tsx+++ b/source/client/view/structure/desktop/windows/process-window.tsx@@ -1,13 +1,13 @@import Process from "@client/core/link-manager/auth-manager/process-manager/process"import ClientState from "@client/core/link-manager/auth-manager/process-manager/client-state"-import { type WindowSurfaceSize } from "../../../components/window-manager/window-geometry"-import { type LocalAnimation, type LocalSurfaceState } from "../../../components/desktop-host/local-window"-import { type LocalGeometryReader } from "../../../components/window-manager/local-windows"-import { type ProgramAccess } from "../../../components/program-access"+import { type WindowSurfaceSize } from "@client/view/components/window-manager/window-geometry"+import { type LocalAnimation, type LocalSurfaceState } from "@client/view/components/desktop-host/local-window"+import { type LocalGeometryReader } from "@client/view/components/window-manager/local-windows"+import { type ProgramAccess } from "@client/view/components/program-access"import { type Position, type Size, type Theme } from "@phreshos/core"-import Spinner from "../../../components/spinner"+import Spinner from "@client/view/components/spinner"import Window from "./window"-import ProgramFrame, { programFrameSource } from "../../../components/program-frame"+import ProgramFrame, { programFrameSource } from "@client/view/components/program-frame"import { memo, type SyntheticEvent, useCallback, useEffect, useState } from "react"const settleDelay = 80diff --git a/source/client/view/structure/desktop/windows/snap-preview.tsx b/source/client/view/structure/desktop/windows/snap-preview.tsxindex 3ebd894..92d0cdd 100644--- a/source/client/view/structure/desktop/windows/snap-preview.tsx+++ b/source/client/view/structure/desktop/windows/snap-preview.tsx@@ -1,6 +1,6 @@import { type CSSProperties, useLayoutEffect, useRef, useState } from "react"-import gsap, { motionDuration, motionDurations, motionEase } from "../../../appearance/motion"-import { resolveWindowGeometry, resolveWindowValue, windowPaintInsets, type WindowSurfaceSize } from "../../../components/window-manager/window-geometry"+import gsap, { motionDuration, motionDurations, motionEase } from "@client/view/appearance/motion"+import { resolveWindowGeometry, resolveWindowValue, windowPaintInsets, type WindowSurfaceSize } from "@client/view/components/window-manager/window-geometry"import { windowPaintInset } from "../geometry"import { type Position, type Size } from "@phreshos/core"import { Surface } from "@phreshos/react-ui"diff --git a/source/client/view/structure/desktop/windows/window-header.tsx b/source/client/view/structure/desktop/windows/window-header.tsxindex b6a7b66..c14e7e3 100644--- a/source/client/view/structure/desktop/windows/window-header.tsx+++ b/source/client/view/structure/desktop/windows/window-header.tsx@@ -1,5 +1,5 @@import { ComponentProps, PointerEvent as ReactPointerEvent, ReactNode, useLayoutEffect, useRef, useState } from "react"-import gsap, { motionDuration, motionDurations, motionEase } from "../../../appearance/motion"+import gsap, { motionDuration, motionDurations, motionEase } from "@client/view/appearance/motion"const control = {base: { borderColor: "transparent", backgroundColor: "rgba(255, 255, 255, 0.15)", color: "#475569", scale: 1 },diff --git a/source/client/view/structure/desktop/windows/window-surface.tsx b/source/client/view/structure/desktop/windows/window-surface.tsxindex 74b538c..11af1a7 100644--- a/source/client/view/structure/desktop/windows/window-surface.tsx+++ b/source/client/view/structure/desktop/windows/window-surface.tsx@@ -1,8 +1,8 @@import { useReducedMotion } from "@libs/react-motion"import { Surface } from "@phreshos/react-ui"import { useLayoutEffect, useRef } from "react"-import { type LocalSurfaceState } from "../../../components/desktop-host/local-window"-import gsap, { motionDuration, motionDurations, motionEase } from "../../../appearance/motion"+import { type LocalSurfaceState } from "@client/view/components/desktop-host/local-window"+import gsap, { motionDuration, motionDurations, motionEase } from "@client/view/appearance/motion"const paintSelector = "[data-surface-backdrop], [data-surface-border], [data-surface-material]"diff --git a/source/client/view/structure/desktop/windows/window.tsx b/source/client/view/structure/desktop/windows/window.tsxindex 7a82d94..cce3966 100644--- a/source/client/view/structure/desktop/windows/window.tsx+++ b/source/client/view/structure/desktop/windows/window.tsx@@ -1,14 +1,14 @@import { ComponentProps, PointerEvent as ReactPointerEvent, ReactNode, useLayoutEffect, useRef, useState } from "react"import { useReducedMotion } from "@libs/react-motion"-import { enterSurface, prepareSurfaceEntrance, restSurface } from "../../../appearance/surface-presence"+import { enterSurface, prepareSurfaceEntrance, restSurface } from "@client/view/appearance/surface-presence"import { Surface, useAppearance, useResolveTheme, useScale } from "@phreshos/react-ui"-import { absoluteWindowGeometry, resolveWindowGeometry, resolveWindowValue, wholeWindowGeometry, windowPaintInsets, type WindowRegion, type WindowSurfaceSize } from "../../../components/window-manager/window-geometry"+import { absoluteWindowGeometry, resolveWindowGeometry, resolveWindowValue, wholeWindowGeometry, windowPaintInsets, type WindowRegion, type WindowSurfaceSize } from "@client/view/components/window-manager/window-geometry"import { type Position, type Size, type WindowGeometry } from "@phreshos/core"import WindowHeader from "./window-header"import WindowSurface from "./window-surface"-import { type LocalAnimation, type LocalSurfaceState } from "../../../components/desktop-host/local-window"-import { type LocalGeometryReader } from "../../../components/window-manager/local-windows"-import gsap, { motionDuration, motionDurations, motionEase } from "../../../appearance/motion"+import { type LocalAnimation, type LocalSurfaceState } from "@client/view/components/desktop-host/local-window"+import { type LocalGeometryReader } from "@client/view/components/window-manager/local-windows"+import gsap, { motionDuration, motionDurations, motionEase } from "@client/view/appearance/motion"import SnapPreview, { type SnapTarget } from "./snap-preview"import { windowPaintInset } from "../geometry"