@kukeon/console 0.0.0-stage → 0.10.0-edge.g21af9f59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth.d.ts +39 -0
- package/dist/bulk-ui.d.ts +49 -0
- package/dist/bulk.d.mts +14 -0
- package/dist/catalog-CBVxh9uQ.js +5005 -0
- package/dist/catalog-url-Dr9e92Yq.js +19 -0
- package/dist/catalog-url.d.mts +4 -0
- package/dist/catalog.d.ts +40 -0
- package/dist/cell-filter.d.ts +10 -0
- package/dist/cell-sidebar.d.ts +26 -0
- package/dist/cells.d.mts +29 -0
- package/dist/cgroup-format.d.ts +17 -0
- package/dist/cgroup.d.ts +4 -0
- package/dist/config-form.d.mts +66 -0
- package/dist/connector-ui-lYy-1M3l.js +2692 -0
- package/dist/connector-ui.d.ts +127 -0
- package/dist/connectors-page-Z7acjRvr.js +1460 -0
- package/dist/connectors-page.d.ts +14 -0
- package/dist/connectors.d.mts +153 -0
- package/dist/container-log.d.ts +11 -0
- package/dist/create.d.ts +11 -0
- package/dist/creation-schema.d.mts +15 -0
- package/dist/daemon.d.ts +24 -0
- package/dist/display-name.d.ts +10 -0
- package/dist/drift-diff.d.ts +4 -0
- package/dist/exec.d.ts +15 -0
- package/dist/extensions.d.ts +111 -0
- package/dist/get-started.d.ts +9 -0
- package/dist/health.d.ts +22 -0
- package/dist/image-format.d.ts +6 -0
- package/dist/image-inventory.d.ts +12 -0
- package/dist/images.d.ts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5595 -0
- package/dist/initialize-CGmYWoaj.js +146 -0
- package/dist/initialize.d.ts +21 -0
- package/dist/inventory.d.ts +66 -0
- package/dist/lifecycle-policy.d.ts +11 -0
- package/dist/lifecycle.d.ts +24 -0
- package/dist/log-buffer.d.ts +8 -0
- package/dist/main.d.ts +13 -0
- package/dist/majordomo.d.ts +102 -0
- package/dist/manage-nav.d.ts +4 -0
- package/dist/manifest-diff.d.mts +11 -0
- package/dist/merged-values-BhW2-nlA.js +739 -0
- package/dist/merged-values.d.ts +24 -0
- package/dist/network-format.d.ts +30 -0
- package/dist/network.d.ts +13 -0
- package/dist/new-agent-24Fcf0PI.js +201 -0
- package/dist/new-agent.d.ts +27 -0
- package/dist/new-cell-u87hB9wV.js +1985 -0
- package/dist/new-cell.d.ts +29 -0
- package/dist/new-config-B_uf4R4e.js +1541 -0
- package/dist/new-config.d.ts +7 -0
- package/dist/notifications.d.ts +26 -0
- package/dist/onboarding-CPDpnS7K.js +395 -0
- package/dist/onboarding.d.mts +40 -0
- package/dist/panel-cells.d.mts +8 -0
- package/dist/registry-credentials.d.ts +13 -0
- package/dist/relationships.d.mts +12 -0
- package/dist/request.d.ts +16 -0
- package/dist/router.d.ts +12 -0
- package/dist/routes.d.ts +41 -0
- package/dist/schedule-B08uvsJe.js +113 -0
- package/dist/schedule-format.d.mts +9 -0
- package/dist/schedule.d.ts +16 -0
- package/dist/scope-actions.d.ts +9 -0
- package/dist/screens.d.ts +6 -0
- package/dist/secret-form.d.ts +24 -0
- package/dist/settings-nav.d.ts +5 -0
- package/dist/settings-page.d.ts +4 -0
- package/dist/settings-values.d.mts +18 -0
- package/dist/settings.d.ts +50 -0
- package/dist/sidebar-shell.d.ts +55 -0
- package/dist/sources-page-C4t29wxJ.js +423 -0
- package/dist/sources-page.d.ts +5 -0
- package/dist/space-subnets.d.ts +3 -0
- package/dist/style.css +2 -0
- package/dist/team-form.d.mts +56 -0
- package/dist/team-plan-CaBIrof0.js +735 -0
- package/dist/team-plan.d.ts +22 -0
- package/dist/team-wizard.d.ts +8 -0
- package/dist/teams-page-CLdQhhgo.js +2206 -0
- package/dist/teams-page.d.ts +9 -0
- package/dist/teams.d.mts +112 -0
- package/dist/terminal-palette.d.ts +8 -0
- package/dist/terminal.d.ts +98 -0
- package/dist/unread.d.mts +19 -0
- package/dist/use-unread.d.ts +4 -0
- package/dist/user-menu.d.ts +7 -0
- package/dist/views.d.mts +8 -0
- package/dist/workbench.d.ts +16 -0
- package/package.json +45 -4
- package/README.md +0 -3
package/dist/auth.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ComponentType } from "react";
|
|
2
|
+
import { type Failure } from "./request";
|
|
3
|
+
export declare const loginUser = "root";
|
|
4
|
+
export declare const loginReadBack = "kuke get secret web-ui-admin --realm kuke-system -o yaml";
|
|
5
|
+
export type SessionCheck = {
|
|
6
|
+
phase: "signed-out";
|
|
7
|
+
} | {
|
|
8
|
+
phase: "unavailable";
|
|
9
|
+
error: Failure;
|
|
10
|
+
} | {
|
|
11
|
+
phase: "signed-in";
|
|
12
|
+
user: string;
|
|
13
|
+
};
|
|
14
|
+
export type Session = {
|
|
15
|
+
phase: "checking";
|
|
16
|
+
} | SessionCheck;
|
|
17
|
+
export type SignInProps = {
|
|
18
|
+
notice?: Failure;
|
|
19
|
+
checking?: boolean;
|
|
20
|
+
onRetry: () => void;
|
|
21
|
+
onSignedIn: (user: string) => void;
|
|
22
|
+
};
|
|
23
|
+
export type AuthAdapter = {
|
|
24
|
+
session: () => Promise<SessionCheck>;
|
|
25
|
+
signOut: () => Promise<void>;
|
|
26
|
+
endsSession: (path: string) => boolean;
|
|
27
|
+
SignIn: ComponentType<SignInProps>;
|
|
28
|
+
};
|
|
29
|
+
export declare const localAuth: AuthAdapter;
|
|
30
|
+
export declare function configureAuth(adapter?: AuthAdapter): void;
|
|
31
|
+
export declare function auth(): AuthAdapter;
|
|
32
|
+
export declare function checkSessionAfterSocketFailure(): void;
|
|
33
|
+
export declare function useSession(): {
|
|
34
|
+
session: Session;
|
|
35
|
+
retry: () => Promise<void>;
|
|
36
|
+
signedIn: (user: string) => void;
|
|
37
|
+
signOut: () => Promise<void>;
|
|
38
|
+
};
|
|
39
|
+
export declare function Login({ notice, checking, onRetry, onSignedIn }: SignInProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { PurgeOptions } from "./lifecycle";
|
|
3
|
+
export type BulkRow = {
|
|
4
|
+
key: string;
|
|
5
|
+
scope: string[];
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
8
|
+
export type BulkAction<R extends BulkRow> = {
|
|
9
|
+
name: string;
|
|
10
|
+
verb: string;
|
|
11
|
+
danger?: boolean;
|
|
12
|
+
reasonOf?: (row: R) => string;
|
|
13
|
+
consequence: string;
|
|
14
|
+
acknowledgment?: string;
|
|
15
|
+
purge?: boolean;
|
|
16
|
+
options?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type BulkOutcome = {
|
|
19
|
+
ok: boolean;
|
|
20
|
+
message?: string;
|
|
21
|
+
} | undefined;
|
|
22
|
+
export declare function useSelection(keys: string[], ready: boolean): {
|
|
23
|
+
selected: string[];
|
|
24
|
+
has: (key: string) => boolean;
|
|
25
|
+
toggle: (key: string, on: boolean) => void;
|
|
26
|
+
toggleAll: (matching: string[]) => void;
|
|
27
|
+
state: (matching: string[]) => import("./bulk.mjs").HeaderState;
|
|
28
|
+
clear: () => void;
|
|
29
|
+
};
|
|
30
|
+
export type Selection = ReturnType<typeof useSelection>;
|
|
31
|
+
export declare function SelectAllBox({ selection, matching, label }: {
|
|
32
|
+
selection: Selection;
|
|
33
|
+
matching: string[];
|
|
34
|
+
label: string;
|
|
35
|
+
}): import("react").JSX.Element;
|
|
36
|
+
export declare function SelectRowBox({ selection, rowKey, label }: {
|
|
37
|
+
selection: Selection;
|
|
38
|
+
rowKey: string;
|
|
39
|
+
label: string;
|
|
40
|
+
}): import("react").JSX.Element;
|
|
41
|
+
export declare function BulkActions<R extends BulkRow>({ rows, actions, noun, selection, run, extra }: {
|
|
42
|
+
rows: R[];
|
|
43
|
+
actions: BulkAction<R>[];
|
|
44
|
+
noun: (count: number) => string;
|
|
45
|
+
selection: Selection;
|
|
46
|
+
run: (row: R, action: BulkAction<R>, options: PurgeOptions) => Promise<BulkOutcome>;
|
|
47
|
+
extra?: ReactNode;
|
|
48
|
+
}): import("react").JSX.Element | null;
|
|
49
|
+
export declare function countNoun(singular: string, plural?: string): (count: number) => string;
|
package/dist/bulk.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const batchConcurrency: number;
|
|
2
|
+
export type HeaderState = "none" | "some" | "all";
|
|
3
|
+
export type BatchResult<T> = { item: T; ok: boolean; message: string };
|
|
4
|
+
export function toggleKey(selected: string[], key: string, on: boolean): string[];
|
|
5
|
+
export function pruneSelection(selected: string[], keys: string[]): string[];
|
|
6
|
+
export function headerState(selected: string[], matching: string[]): HeaderState;
|
|
7
|
+
export function toggleAll(selected: string[], matching: string[]): string[];
|
|
8
|
+
export const systemSkip: string;
|
|
9
|
+
export function batchTargets<T extends { scope: string[] }>(rows: T[], reasonOf: (row: T) => string): { targets: T[]; skipped: { row: T; reason: string }[] };
|
|
10
|
+
export function offeredActions<T extends { scope: string[] }, A>(rows: T[], actions: readonly A[], reasonOf: (row: T, action: A) => string): A[];
|
|
11
|
+
export function runBatch<T>(items: T[], run: (item: T) => Promise<{ ok: boolean; message?: string } | undefined>, limit?: number): Promise<BatchResult<T>[]>;
|
|
12
|
+
export function batchSummary(verb: string, noun: string, results: { ok: boolean }[], skipped?: number): { tone: "success" | "error"; message: string };
|
|
13
|
+
export function purgePhrase(count: number, noun: string): string;
|
|
14
|
+
export function counted(count: number, singular: string, plural?: string): string;
|