feat: Phase 1 — extract the client (web SPA + desktop) to dtoro/oikos-web
Problem: the hexagonal refactor churns the backend tree for nine more phases; the UI delivery stack (web/ SPA, cmd/desktop Wails wrapper, compose/web image) must move to its own repo first so doc/layout rewrites land once on a backend-only tree. Change: - New repo git.hubris.network/dtoro/oikos-web (v0.33.0): web/, desktop/ (updateURL repointed to oikos-web releases), compose/, own CI (web + desktop jobs), own deploy script (CI-green gate, TOCTOU guard, version-tagged images, prune-to-3), own webhook receiver on :9798 + launchd unit, own compose project publishing the same 8091:80. - Cutover executed on mac-mini in order: oikos stack's web service stopped+removed, oikos-web project brought up on 8091; outer Caddy untouched (targets the published port) — serving + Authentik flow + /wails 404 quirk verified post-cutover. - Stripped from oikos: web/, cmd/desktop/, compose/web/, desktop CI workflow, ci.yml web job, Makefile ui/desktop/desktop-package/install targets, the compose web service, oikos-web from deploy.sh's fallback prune list; wails + go-keyring dropped from go.mod, vendor synced. - README / CONTRIBUTING / AGENTS.md / .agents dev+operations docs now point at the new repo; mbse + mascot design docs carry a path note. Risk: production SPA serving depends on the new pipeline now; rollback is versioned-image re-up of the old web service from a pre-split checkout (port 8091). Desktop builds installed before the split still check dtoro/oikos releases — one manual reinstall, noted in the oikos-web release notes. Verification: go vet, make test (race), make generate-check, golangci (no new findings; baseline down 400→365); post-cutover curls — localhost:8091 200, /wails/runtime.js 404, outer Caddy 302 Authentik.
This commit is contained in:
34
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-action.svelte
generated
vendored
Normal file
34
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-action.svelte
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<script lang="ts">
|
||||
import { boxWith, mergeProps } from "svelte-toolbelt";
|
||||
import type { AlertDialogActionProps } from "../types.js";
|
||||
import { DialogActionState } from "../../dialog/dialog.svelte.js";
|
||||
import { createId } from "../../../internal/create-id.js";
|
||||
|
||||
const uid = $props.id();
|
||||
|
||||
let {
|
||||
children,
|
||||
child,
|
||||
id = createId(uid),
|
||||
ref = $bindable(null),
|
||||
...restProps
|
||||
}: AlertDialogActionProps = $props();
|
||||
|
||||
const actionState = DialogActionState.create({
|
||||
id: boxWith(() => id),
|
||||
ref: boxWith(
|
||||
() => ref,
|
||||
(v) => (ref = v)
|
||||
),
|
||||
});
|
||||
|
||||
const mergedProps = $derived(mergeProps(restProps, actionState.props));
|
||||
</script>
|
||||
|
||||
{#if child}
|
||||
{@render child({ props: mergedProps })}
|
||||
{:else}
|
||||
<button {...mergedProps}>
|
||||
{@render children?.()}
|
||||
</button>
|
||||
{/if}
|
||||
3
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-action.svelte.d.ts
generated
vendored
Normal file
3
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-action.svelte.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare const AlertDialogAction: import("svelte").Component<import("../types.js").AlertDialogTriggerProps, {}, "ref">;
|
||||
type AlertDialogAction = ReturnType<typeof AlertDialogAction>;
|
||||
export default AlertDialogAction;
|
||||
36
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-cancel.svelte
generated
vendored
Normal file
36
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-cancel.svelte
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
<script lang="ts">
|
||||
import { boxWith, mergeProps } from "svelte-toolbelt";
|
||||
import type { AlertDialogCancelProps } from "../types.js";
|
||||
import { AlertDialogCancelState } from "../../dialog/dialog.svelte.js";
|
||||
import { createId } from "../../../internal/create-id.js";
|
||||
|
||||
const uid = $props.id();
|
||||
|
||||
let {
|
||||
id = createId(uid),
|
||||
ref = $bindable(null),
|
||||
children,
|
||||
child,
|
||||
disabled = false,
|
||||
...restProps
|
||||
}: AlertDialogCancelProps = $props();
|
||||
|
||||
const cancelState = AlertDialogCancelState.create({
|
||||
id: boxWith(() => id),
|
||||
ref: boxWith(
|
||||
() => ref,
|
||||
(v) => (ref = v)
|
||||
),
|
||||
disabled: boxWith(() => Boolean(disabled)),
|
||||
});
|
||||
|
||||
const mergedProps = $derived(mergeProps(restProps, cancelState.props));
|
||||
</script>
|
||||
|
||||
{#if child}
|
||||
{@render child({ props: mergedProps })}
|
||||
{:else}
|
||||
<button {...mergedProps}>
|
||||
{@render children?.()}
|
||||
</button>
|
||||
{/if}
|
||||
3
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-cancel.svelte.d.ts
generated
vendored
Normal file
3
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-cancel.svelte.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare const AlertDialogCancel: import("svelte").Component<import("../types.js").AlertDialogTriggerProps, {}, "ref">;
|
||||
type AlertDialogCancel = ReturnType<typeof AlertDialogCancel>;
|
||||
export default AlertDialogCancel;
|
||||
103
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-content.svelte
generated
vendored
Normal file
103
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-content.svelte
generated
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
<script lang="ts">
|
||||
import { afterSleep, boxWith, mergeProps } from "svelte-toolbelt";
|
||||
import type { AlertDialogContentProps } from "../types.js";
|
||||
import DismissibleLayer from "../../utilities/dismissible-layer/dismissible-layer.svelte";
|
||||
import EscapeLayer from "../../utilities/escape-layer/escape-layer.svelte";
|
||||
import FocusScope from "../../utilities/focus-scope/focus-scope.svelte";
|
||||
import TextSelectionLayer from "../../utilities/text-selection-layer/text-selection-layer.svelte";
|
||||
import { createId } from "../../../internal/create-id.js";
|
||||
import { noop } from "../../../internal/noop.js";
|
||||
import ScrollLock from "../../utilities/scroll-lock/scroll-lock.svelte";
|
||||
import { DialogContentState } from "../../dialog/dialog.svelte.js";
|
||||
|
||||
const uid = $props.id();
|
||||
|
||||
let {
|
||||
id = createId(uid),
|
||||
children,
|
||||
child,
|
||||
ref = $bindable(null),
|
||||
forceMount = false,
|
||||
interactOutsideBehavior = "ignore",
|
||||
onCloseAutoFocus = noop,
|
||||
onEscapeKeydown = noop,
|
||||
onOpenAutoFocus = noop,
|
||||
onInteractOutside = noop,
|
||||
preventScroll = true,
|
||||
trapFocus = true,
|
||||
restoreScrollDelay = null,
|
||||
...restProps
|
||||
}: AlertDialogContentProps = $props();
|
||||
|
||||
const contentState = DialogContentState.create({
|
||||
id: boxWith(() => id),
|
||||
ref: boxWith(
|
||||
() => ref,
|
||||
(v) => (ref = v)
|
||||
),
|
||||
});
|
||||
|
||||
const mergedProps = $derived(mergeProps(restProps, contentState.props));
|
||||
</script>
|
||||
|
||||
{#if contentState.shouldRender || forceMount}
|
||||
<FocusScope
|
||||
ref={contentState.opts.ref}
|
||||
loop
|
||||
{trapFocus}
|
||||
enabled={contentState.root.opts.open.current}
|
||||
{onCloseAutoFocus}
|
||||
onOpenAutoFocus={(e) => {
|
||||
onOpenAutoFocus(e);
|
||||
if (e.defaultPrevented) return;
|
||||
e.preventDefault();
|
||||
afterSleep(0, () => contentState.opts.ref.current?.focus());
|
||||
}}
|
||||
>
|
||||
{#snippet focusScope({ props: focusScopeProps })}
|
||||
<EscapeLayer
|
||||
{...mergedProps}
|
||||
enabled={contentState.root.opts.open.current}
|
||||
ref={contentState.opts.ref}
|
||||
onEscapeKeydown={(e) => {
|
||||
onEscapeKeydown(e);
|
||||
if (e.defaultPrevented) return;
|
||||
contentState.root.handleClose();
|
||||
}}
|
||||
>
|
||||
<DismissibleLayer
|
||||
{...mergedProps}
|
||||
ref={contentState.opts.ref}
|
||||
enabled={contentState.root.opts.open.current}
|
||||
{interactOutsideBehavior}
|
||||
onInteractOutside={(e) => {
|
||||
onInteractOutside(e);
|
||||
if (e.defaultPrevented) return;
|
||||
contentState.root.handleClose();
|
||||
}}
|
||||
>
|
||||
<TextSelectionLayer
|
||||
{...mergedProps}
|
||||
ref={contentState.opts.ref}
|
||||
enabled={contentState.root.opts.open.current}
|
||||
>
|
||||
{#if child}
|
||||
{#if contentState.root.opts.open.current}
|
||||
<ScrollLock {preventScroll} {restoreScrollDelay} />
|
||||
{/if}
|
||||
{@render child({
|
||||
props: mergeProps(mergedProps, focusScopeProps),
|
||||
...contentState.snippetProps,
|
||||
})}
|
||||
{:else}
|
||||
<ScrollLock {preventScroll} />
|
||||
<div {...mergeProps(mergedProps, focusScopeProps)}>
|
||||
{@render children?.()}
|
||||
</div>
|
||||
{/if}
|
||||
</TextSelectionLayer>
|
||||
</DismissibleLayer>
|
||||
</EscapeLayer>
|
||||
{/snippet}
|
||||
</FocusScope>
|
||||
{/if}
|
||||
3
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-content.svelte.d.ts
generated
vendored
Normal file
3
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-content.svelte.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare const AlertDialogContent: import("svelte").Component<import("../../dialog/types.js").DialogContentProps, {}, "ref">;
|
||||
type AlertDialogContent = ReturnType<typeof AlertDialogContent>;
|
||||
export default AlertDialogContent;
|
||||
27
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog.svelte
generated
vendored
Normal file
27
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog.svelte
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<script lang="ts">
|
||||
import { boxWith } from "svelte-toolbelt";
|
||||
import type { AlertDialogRootProps } from "../types.js";
|
||||
import { noop } from "../../../internal/noop.js";
|
||||
import { DialogRootState } from "../../dialog/dialog.svelte.js";
|
||||
|
||||
let {
|
||||
open = $bindable(false),
|
||||
onOpenChange = noop,
|
||||
onOpenChangeComplete = noop,
|
||||
children,
|
||||
}: AlertDialogRootProps = $props();
|
||||
|
||||
DialogRootState.create({
|
||||
variant: boxWith(() => "alert-dialog"),
|
||||
open: boxWith(
|
||||
() => open,
|
||||
(v) => {
|
||||
open = v;
|
||||
onOpenChange(v);
|
||||
}
|
||||
),
|
||||
onOpenChangeComplete: boxWith(() => onOpenChangeComplete),
|
||||
});
|
||||
</script>
|
||||
|
||||
{@render children?.()}
|
||||
3
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog.svelte.d.ts
generated
vendored
Normal file
3
web/node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog.svelte.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare const AlertDialog: import("svelte").Component<import("../types.js").AlertDialogRootPropsWithoutHTML, {}, "open">;
|
||||
type AlertDialog = ReturnType<typeof AlertDialog>;
|
||||
export default AlertDialog;
|
||||
Reference in New Issue
Block a user