@drfed/web 0.0.0-stage → 0.1.0-dev.0
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/.output/nitro.json +17 -0
- package/.output/public/.vite/manifest.json +493 -0
- package/.output/public/_build/assets/ActorDetailQuery.graphql-D96mwq1k.js +60 -0
- package/.output/public/_build/assets/ActorDetailQuery.graphql-DrxSNh1X.js +60 -0
- package/.output/public/_build/assets/CompleteLoginChallenge.graphql-C5Zq3wNh.js +10 -0
- package/.output/public/_build/assets/CopyButton-B2l484wE.js +1 -0
- package/.output/public/_build/assets/CopyButton-Bi-ZR8x9.css +1 -0
- package/.output/public/_build/assets/CreateInstanceMutation.graphql-B4CRy6cl.js +19 -0
- package/.output/public/_build/assets/CreateObjectMutation.graphql-B4A01dgV.js +23 -0
- package/.output/public/_build/assets/GenerateActorsMutation.graphql-mlHJNIbe.js +23 -0
- package/.output/public/_build/assets/GetHostQuery.graphql-CuzDdOdW.js +17 -0
- package/.output/public/_build/assets/GetHostQuery.graphql-o9K0Qkg0.js +17 -0
- package/.output/public/_build/assets/HomeViewerQuery.graphql-B903WWKs.js +8 -0
- package/.output/public/_build/assets/HttpStatusCode-bgaVzuLy.js +1 -0
- package/.output/public/_build/assets/InstanceActorListQuery.graphql-DmNwiEhM.js +24 -0
- package/.output/public/_build/assets/InstanceActorListQuery.graphql-paa7teUO.js +24 -0
- package/.output/public/_build/assets/InstanceDetailQuery.graphql-B52nR132.js +66 -0
- package/.output/public/_build/assets/InstanceDetailQuery.graphql-DSA2BcAV.js +66 -0
- package/.output/public/_build/assets/InstanceSummary_instance.graphql-BoQAa5Od.js +1 -0
- package/.output/public/_build/assets/JNCCF6MP-CNMywyiC.js +1 -0
- package/.output/public/_build/assets/LP6E37CW-Cwv6G3n1.js +1 -0
- package/.output/public/_build/assets/SignInMutation.graphql-BalZYNFu.js +9 -0
- package/.output/public/_build/assets/TSB6MOZK-CpiH97G1.js +1 -0
- package/.output/public/_build/assets/Toast-3-eXCAKc.css +1 -0
- package/.output/public/_build/assets/Toast-C1zr9crB.js +1 -0
- package/.output/public/_build/assets/WorkspaceQuery.graphql-UoI7QDs4.js +23 -0
- package/.output/public/_build/assets/_...404_-WZ8kAljY.js +1 -0
- package/.output/public/_build/assets/_challengeId_-BgL-Berz.js +1 -0
- package/.output/public/_build/assets/_id_-YcZZShAv.css +1 -0
- package/.output/public/_build/assets/_id_-bpxdclBj.js +1 -0
- package/.output/public/_build/assets/_slug_-CyTA2aW7.css +1 -0
- package/.output/public/_build/assets/_slug_-DXfRknzJ.js +200 -0
- package/.output/public/_build/assets/about-DIrbzRsi.js +1 -0
- package/.output/public/_build/assets/actors-HfZh_afh.js +24 -0
- package/.output/public/_build/assets/client-CGFoRcqH.js +3 -0
- package/.output/public/_build/assets/components-5MVu7IcD.js +1 -0
- package/.output/public/_build/assets/dist-BrJ_B8nU.js +1 -0
- package/.output/public/_build/assets/dist-DVo0HS5G.js +1 -0
- package/.output/public/_build/assets/dist-WrlGlK67.js +1 -0
- package/.output/public/_build/assets/entry-client-BurSTYr9.css +1 -0
- package/.output/public/_build/assets/entry-client-RIC5nXxX.js +8 -0
- package/.output/public/_build/assets/form-BxigYd7J.css +1 -0
- package/.output/public/_build/assets/form.module-BecmEfV_.js +1 -0
- package/.output/public/_build/assets/index-BHn6sAgH.js +23 -0
- package/.output/public/_build/assets/index-BSLqnqN7.js +8 -0
- package/.output/public/_build/assets/index-B_xLBDOo.css +1 -0
- package/.output/public/_build/assets/instance-tpMrvJNZ.js +35 -0
- package/.output/public/_build/assets/label-Mv8GZ4jc.js +1 -0
- package/.output/public/_build/assets/objects-DPb8DI8A.css +1 -0
- package/.output/public/_build/assets/objects-DR9TfL-V.js +25 -0
- package/.output/public/_build/assets/relay-runtime-BX3uubtA.js +7 -0
- package/.output/public/_build/assets/routing-DMN2NHu6.js +1 -0
- package/.output/public/_build/assets/sign-in-B67sv7z8.js +10 -0
- package/.output/public/_build/assets/web-DB_Nkq2D.js +1 -0
- package/.output/public/apple-touch-icon.png +0 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/icon-192.png +0 -0
- package/.output/public/icon-512.png +0 -0
- package/.output/public/icon-mask.png +0 -0
- package/.output/public/icon.svg +395 -0
- package/.output/public/manifest.webmanifest +13 -0
- package/.output/server/_...404_-DDEH5apf.mjs +16 -0
- package/.output/server/_challengeId_-C7BBdG0r.mjs +100 -0
- package/.output/server/_chunks/ssr-renderer.mjs +26 -0
- package/.output/server/_id_-DqytvZEf.mjs +505 -0
- package/.output/server/_libs/@shikijs/core+[...].mjs +7173 -0
- package/.output/server/_libs/@shikijs/engine-javascript+[...].mjs +3110 -0
- package/.output/server/_libs/babel__runtime.mjs +243 -0
- package/.output/server/_libs/dequal.mjs +25 -0
- package/.output/server/_libs/faker-js__faker.mjs +13150 -0
- package/.output/server/_libs/fbjs.mjs +115 -0
- package/.output/server/_libs/h3+rou3+srvx.mjs +650 -0
- package/.output/server/_libs/hookable.mjs +41 -0
- package/.output/server/_libs/invariant.mjs +36 -0
- package/.output/server/_libs/relay-runtime.mjs +9704 -0
- package/.output/server/_libs/seroval-plugins.mjs +563 -0
- package/.output/server/_libs/seroval.mjs +2956 -0
- package/.output/server/_libs/shikijs__langs.mjs +3 -0
- package/.output/server/_libs/shikijs__themes.mjs +7 -0
- package/.output/server/_libs/solid-js.mjs +1248 -0
- package/.output/server/_libs/solid-relay+tiny-invariant.mjs +1029 -0
- package/.output/server/_libs/ufo.mjs +64 -0
- package/.output/server/_libs/valibot.mjs +711 -0
- package/.output/server/_runtime.mjs +33 -0
- package/.output/server/_slug_-CBOaSqoF.mjs +978 -0
- package/.output/server/_ssr/ActorDetailQuery.graphql-C1mWRP1B.mjs +283 -0
- package/.output/server/_ssr/CompleteLoginChallenge.graphql-CM7o_Md1.mjs +78 -0
- package/.output/server/_ssr/CopyButton-CQNR5D1y.mjs +43 -0
- package/.output/server/_ssr/CreateInstanceMutation.graphql-C-h2lGxz.mjs +116 -0
- package/.output/server/_ssr/CreateObjectMutation.graphql-C393Hp7q.mjs +166 -0
- package/.output/server/_ssr/GenerateActorsMutation.graphql-D2ADtn1j.mjs +163 -0
- package/.output/server/_ssr/GetHostQuery.graphql-C45XQo1i.mjs +127 -0
- package/.output/server/_ssr/HomeViewerQuery.graphql-Dote4Pkz.mjs +81 -0
- package/.output/server/_ssr/InstanceActorListQuery.graphql-DgItgN5t.mjs +167 -0
- package/.output/server/_ssr/InstanceDetailQuery.graphql-DP5wWWjX.mjs +367 -0
- package/.output/server/_ssr/InstanceSummary_instance.graphql-10tilF-Z.mjs +34 -0
- package/.output/server/_ssr/JNCCF6MP-BAZlBnvx.mjs +419 -0
- package/.output/server/_ssr/LP6E37CW-D2Ih_b_K.mjs +163 -0
- package/.output/server/_ssr/SignInMutation.graphql-BBXmiay6.mjs +72 -0
- package/.output/server/_ssr/TSB6MOZK-D06WZb6o.mjs +166 -0
- package/.output/server/_ssr/Toast-Bb1gcxED.mjs +947 -0
- package/.output/server/_ssr/WorkspaceQuery.graphql-DnCO8t-4.mjs +153 -0
- package/.output/server/_ssr/about-CD3QIgf_.mjs +14 -0
- package/.output/server/_ssr/actors-CMWf-xQU.mjs +1160 -0
- package/.output/server/_ssr/dist-D6rgyh-L.mjs +81 -0
- package/.output/server/_ssr/dist-I7KRMRbA.mjs +432 -0
- package/.output/server/_ssr/form.module-CTvIl1lm.mjs +192 -0
- package/.output/server/_ssr/index-C4crD6q-.mjs +347 -0
- package/.output/server/_ssr/index-yuhuc6-X.mjs +111 -0
- package/.output/server/_ssr/instance-ZYWGeWd3.mjs +280 -0
- package/.output/server/_ssr/label-DAXzanI9.mjs +9 -0
- package/.output/server/_ssr/objects-D5MVukzB.mjs +4316 -0
- package/.output/server/_ssr/routing-DKTLkkbY.mjs +620 -0
- package/.output/server/_ssr/sign-in-CNHZb_zL.mjs +264 -0
- package/.output/server/_ssr/ssr.mjs +6138 -0
- package/.output/server/index.mjs +691 -0
- package/LICENSE +661 -0
- package/README.md +143 -2
- package/dist/bridge.d.mts +39 -0
- package/dist/bridge.mjs +104 -0
- package/dist/bridge.mjs.map +1 -0
- package/dist/request-policy.d.mts +8 -0
- package/dist/request-policy.mjs +94 -0
- package/dist/request-policy.mjs.map +1 -0
- package/dist/runtime.d.mts +14 -0
- package/dist/runtime.mjs +44 -0
- package/dist/runtime.mjs.map +1 -0
- package/package.json +111 -3
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { $ as splitProps, D as Show, F as createContext, H as createUniqueId, I as createEffect, J as onCleanup, K as mergeProps, L as createMemo, N as createComponent, R as createRenderEffect, V as createSignal, W as getOwner, nt as useContext, q as on, tt as untrack } from "../_libs/solid-js.mjs";
|
|
2
|
+
import { D as mergeDefaultProps, d as createTagName, i as Polymorphic, l as createGenerateId, u as createRegisterId } from "./JNCCF6MP-BAZlBnvx.mjs";
|
|
3
|
+
//#region node_modules/.nitro/vite/services/ssr/_build/assets/form.module-CTvIl1lm.js
|
|
4
|
+
var isDev = false;
|
|
5
|
+
/**
|
|
6
|
+
* Accesses the value of a MaybeAccessor
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* access("foo") // => "foo"
|
|
10
|
+
* access(() => "foo") // => "foo"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
var access = (v) => typeof v === "function" && !v.length ? v() : v;
|
|
14
|
+
var asArray = (value) => Array.isArray(value) ? value : value ? [value] : [];
|
|
15
|
+
/** If value is a function – call it with a given arguments – otherwise get the value as is */
|
|
16
|
+
function accessWith(valueOrFn, ...args) {
|
|
17
|
+
return typeof valueOrFn === "function" ? valueOrFn(...args) : valueOrFn;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Solid's `onCleanup` that doesn't warn in development if used outside of a component.
|
|
21
|
+
*/
|
|
22
|
+
var tryOnCleanup = isDev ? (fn) => getOwner() ? onCleanup(fn) : fn : onCleanup;
|
|
23
|
+
var FORM_CONTROL_PROP_NAMES = [
|
|
24
|
+
"id",
|
|
25
|
+
"name",
|
|
26
|
+
"validationState",
|
|
27
|
+
"required",
|
|
28
|
+
"disabled",
|
|
29
|
+
"readOnly"
|
|
30
|
+
];
|
|
31
|
+
function createFormControl(props) {
|
|
32
|
+
const mergedProps = mergeDefaultProps({ id: `form-control-${createUniqueId()}` }, props);
|
|
33
|
+
const [labelId, setLabelId] = createSignal();
|
|
34
|
+
const [fieldId, setFieldId] = createSignal();
|
|
35
|
+
const [descriptionId, setDescriptionId] = createSignal();
|
|
36
|
+
const [errorMessageId, setErrorMessageId] = createSignal();
|
|
37
|
+
const getAriaLabelledBy = (fieldId2, fieldAriaLabel, fieldAriaLabelledBy) => {
|
|
38
|
+
const hasAriaLabelledBy = fieldAriaLabelledBy != null || labelId() != null;
|
|
39
|
+
return [
|
|
40
|
+
fieldAriaLabelledBy,
|
|
41
|
+
labelId(),
|
|
42
|
+
hasAriaLabelledBy && fieldAriaLabel != null ? fieldId2 : void 0
|
|
43
|
+
].filter(Boolean).join(" ") || void 0;
|
|
44
|
+
};
|
|
45
|
+
const getAriaDescribedBy = (fieldAriaDescribedBy) => {
|
|
46
|
+
return [
|
|
47
|
+
descriptionId(),
|
|
48
|
+
errorMessageId(),
|
|
49
|
+
fieldAriaDescribedBy
|
|
50
|
+
].filter(Boolean).join(" ") || void 0;
|
|
51
|
+
};
|
|
52
|
+
return { formControlContext: {
|
|
53
|
+
name: () => access(mergedProps.name) ?? access(mergedProps.id),
|
|
54
|
+
dataset: createMemo(() => ({
|
|
55
|
+
"data-valid": access(mergedProps.validationState) === "valid" ? "" : void 0,
|
|
56
|
+
"data-invalid": access(mergedProps.validationState) === "invalid" ? "" : void 0,
|
|
57
|
+
"data-required": access(mergedProps.required) ? "" : void 0,
|
|
58
|
+
"data-disabled": access(mergedProps.disabled) ? "" : void 0,
|
|
59
|
+
"data-readonly": access(mergedProps.readOnly) ? "" : void 0
|
|
60
|
+
})),
|
|
61
|
+
validationState: () => access(mergedProps.validationState),
|
|
62
|
+
isRequired: () => access(mergedProps.required),
|
|
63
|
+
isDisabled: () => access(mergedProps.disabled),
|
|
64
|
+
isReadOnly: () => access(mergedProps.readOnly),
|
|
65
|
+
labelId,
|
|
66
|
+
fieldId,
|
|
67
|
+
descriptionId,
|
|
68
|
+
errorMessageId,
|
|
69
|
+
getAriaLabelledBy,
|
|
70
|
+
getAriaDescribedBy,
|
|
71
|
+
generateId: createGenerateId(() => access(mergedProps.id)),
|
|
72
|
+
registerLabel: createRegisterId(setLabelId),
|
|
73
|
+
registerField: createRegisterId(setFieldId),
|
|
74
|
+
registerDescription: createRegisterId(setDescriptionId),
|
|
75
|
+
registerErrorMessage: createRegisterId(setErrorMessageId)
|
|
76
|
+
} };
|
|
77
|
+
}
|
|
78
|
+
var FormControlContext = createContext();
|
|
79
|
+
function useFormControlContext() {
|
|
80
|
+
const context = useContext(FormControlContext);
|
|
81
|
+
if (context === void 0) throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");
|
|
82
|
+
return context;
|
|
83
|
+
}
|
|
84
|
+
function FormControlDescription(props) {
|
|
85
|
+
const context = useFormControlContext();
|
|
86
|
+
const mergedProps = mergeDefaultProps({ id: context.generateId("description") }, props);
|
|
87
|
+
createEffect(() => onCleanup(context.registerDescription(mergedProps.id)));
|
|
88
|
+
return createComponent(Polymorphic, mergeProps({ as: "div" }, () => context.dataset(), mergedProps));
|
|
89
|
+
}
|
|
90
|
+
var FORM_CONTROL_FIELD_PROP_NAMES = [
|
|
91
|
+
"id",
|
|
92
|
+
"aria-label",
|
|
93
|
+
"aria-labelledby",
|
|
94
|
+
"aria-describedby"
|
|
95
|
+
];
|
|
96
|
+
function createFormControlField(props) {
|
|
97
|
+
const context = useFormControlContext();
|
|
98
|
+
const mergedProps = mergeDefaultProps({ id: context.generateId("field") }, props);
|
|
99
|
+
createRenderEffect(() => onCleanup(context.registerField(access(mergedProps.id))));
|
|
100
|
+
return { fieldProps: {
|
|
101
|
+
id: () => access(mergedProps.id),
|
|
102
|
+
ariaLabel: () => access(mergedProps["aria-label"]),
|
|
103
|
+
ariaLabelledBy: () => context.getAriaLabelledBy(access(mergedProps.id), access(mergedProps["aria-label"]), access(mergedProps["aria-labelledby"])),
|
|
104
|
+
ariaDescribedBy: () => context.getAriaDescribedBy(access(mergedProps["aria-describedby"]))
|
|
105
|
+
} };
|
|
106
|
+
}
|
|
107
|
+
function FormControlLabel(props) {
|
|
108
|
+
let ref;
|
|
109
|
+
const context = useFormControlContext();
|
|
110
|
+
const [local, others] = splitProps(mergeDefaultProps({ id: context.generateId("label") }, props), ["ref"]);
|
|
111
|
+
const tagName = createTagName(() => ref, () => "label");
|
|
112
|
+
createEffect(() => onCleanup(context.registerLabel(others.id)));
|
|
113
|
+
return createComponent(Polymorphic, mergeProps({
|
|
114
|
+
as: "label",
|
|
115
|
+
get ["for"]() {
|
|
116
|
+
return tagName() === "label" ? context.fieldId() : void 0;
|
|
117
|
+
}
|
|
118
|
+
}, () => context.dataset(), others));
|
|
119
|
+
}
|
|
120
|
+
function createFormResetListener(element, handler) {
|
|
121
|
+
createEffect(on(element, (element2) => {
|
|
122
|
+
if (element2 == null) return;
|
|
123
|
+
const form = getClosestForm(element2);
|
|
124
|
+
if (form == null) return;
|
|
125
|
+
form.addEventListener("reset", handler, { passive: true });
|
|
126
|
+
onCleanup(() => {
|
|
127
|
+
form.removeEventListener("reset", handler);
|
|
128
|
+
});
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
function getClosestForm(element) {
|
|
132
|
+
return isFormElement(element) ? element.form : element.closest("form");
|
|
133
|
+
}
|
|
134
|
+
function isFormElement(element) {
|
|
135
|
+
return element.matches("textarea, input, select, button");
|
|
136
|
+
}
|
|
137
|
+
function FormControlErrorMessage(props) {
|
|
138
|
+
const context = useFormControlContext();
|
|
139
|
+
const [local, others] = splitProps(mergeDefaultProps({ id: context.generateId("error-message") }, props), ["forceMount"]);
|
|
140
|
+
const isInvalid = () => context.validationState() === "invalid";
|
|
141
|
+
createEffect(() => {
|
|
142
|
+
if (!isInvalid()) return;
|
|
143
|
+
onCleanup(context.registerErrorMessage(others.id));
|
|
144
|
+
});
|
|
145
|
+
return createComponent(Show, {
|
|
146
|
+
get when() {
|
|
147
|
+
return local.forceMount || isInvalid();
|
|
148
|
+
},
|
|
149
|
+
get children() {
|
|
150
|
+
return createComponent(Polymorphic, mergeProps({ as: "div" }, () => context.dataset(), others));
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function createControllableSignal(props) {
|
|
155
|
+
const [_value, _setValue] = createSignal(props.defaultValue?.());
|
|
156
|
+
const isControlled = createMemo(() => props.value?.() !== void 0);
|
|
157
|
+
const value = createMemo(() => isControlled() ? props.value?.() : _value());
|
|
158
|
+
const setValue = (next) => {
|
|
159
|
+
untrack(() => {
|
|
160
|
+
const nextValue = accessWith(next, value());
|
|
161
|
+
if (!Object.is(nextValue, value())) {
|
|
162
|
+
if (!isControlled()) _setValue(nextValue);
|
|
163
|
+
props.onChange?.(nextValue);
|
|
164
|
+
}
|
|
165
|
+
return nextValue;
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
return [value, setValue];
|
|
169
|
+
}
|
|
170
|
+
function createControllableBooleanSignal(props) {
|
|
171
|
+
const [_value, setValue] = createControllableSignal(props);
|
|
172
|
+
const value = () => _value() ?? false;
|
|
173
|
+
return [value, setValue];
|
|
174
|
+
}
|
|
175
|
+
var form_module_default = {
|
|
176
|
+
page: "_page_wo6vu_19",
|
|
177
|
+
panel: "_panel_wo6vu_26",
|
|
178
|
+
header: "_header_wo6vu_36",
|
|
179
|
+
form: "_form_wo6vu_52",
|
|
180
|
+
field: "_field_wo6vu_57",
|
|
181
|
+
fieldHeading: "_fieldHeading_wo6vu_62",
|
|
182
|
+
fieldStatus: "_fieldStatus_wo6vu_70",
|
|
183
|
+
required: "_required_wo6vu_79",
|
|
184
|
+
input: "_input_wo6vu_83",
|
|
185
|
+
hint: "_hint_wo6vu_121",
|
|
186
|
+
button: "_button_wo6vu_128",
|
|
187
|
+
notice: "_notice_wo6vu_157",
|
|
188
|
+
error: "_error_wo6vu_167",
|
|
189
|
+
success: "_success_wo6vu_173"
|
|
190
|
+
};
|
|
191
|
+
//#endregion
|
|
192
|
+
export { FormControlErrorMessage as a, asArray as c, createFormControl as d, createFormControlField as f, useFormControlContext as g, tryOnCleanup as h, FormControlDescription as i, createControllableBooleanSignal as l, form_module_default as m, FORM_CONTROL_PROP_NAMES as n, FormControlLabel as o, createFormResetListener as p, FormControlContext as r, access as s, FORM_CONTROL_FIELD_PROP_NAMES as t, createControllableSignal as u };
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { r as __toESM } from "../_runtime.mjs";
|
|
2
|
+
import { n as require_relay_runtime } from "../_libs/relay-runtime.mjs";
|
|
3
|
+
import { D as Show, N as createComponent, g as ssrAttribute, h as ssr, u as escape, v as ssrHydrationKey, w as For } from "../_libs/solid-js.mjs";
|
|
4
|
+
import { n as Title } from "./dist-D6rgyh-L.mjs";
|
|
5
|
+
import { n as createFragment, r as createLazyLoadQuery } from "../_libs/solid-relay+tiny-invariant.mjs";
|
|
6
|
+
import { u as A } from "./ssr.mjs";
|
|
7
|
+
//#region node_modules/.nitro/vite/services/ssr/_build/assets/index-C4crD6q-.js
|
|
8
|
+
var import_relay_runtime = /* @__PURE__ */ __toESM(require_relay_runtime());
|
|
9
|
+
/**
|
|
10
|
+
* @generated SignedSource<<106d9a83103ddc8933ffe131ca07b4a8>>
|
|
11
|
+
* @lightSyntaxTransform
|
|
12
|
+
*/
|
|
13
|
+
var { ConcreteRequest } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
14
|
+
var { FragmentRefs: FragmentRefs$1 } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
15
|
+
var node$1 = function() {
|
|
16
|
+
var v0 = [{
|
|
17
|
+
"kind": "Literal",
|
|
18
|
+
"name": "first",
|
|
19
|
+
"value": 100
|
|
20
|
+
}], v1 = {
|
|
21
|
+
"alias": null,
|
|
22
|
+
"args": null,
|
|
23
|
+
"kind": "ScalarField",
|
|
24
|
+
"name": "id",
|
|
25
|
+
"storageKey": null
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
"fragment": {
|
|
29
|
+
"argumentDefinitions": [],
|
|
30
|
+
"kind": "Fragment",
|
|
31
|
+
"metadata": null,
|
|
32
|
+
"name": "WorkspaceQuery",
|
|
33
|
+
"selections": [{
|
|
34
|
+
"alias": null,
|
|
35
|
+
"args": null,
|
|
36
|
+
"concreteType": "Account",
|
|
37
|
+
"kind": "LinkedField",
|
|
38
|
+
"name": "viewer",
|
|
39
|
+
"plural": false,
|
|
40
|
+
"selections": [{
|
|
41
|
+
"alias": null,
|
|
42
|
+
"args": v0,
|
|
43
|
+
"concreteType": "AccountInstancesConnection",
|
|
44
|
+
"kind": "LinkedField",
|
|
45
|
+
"name": "instances",
|
|
46
|
+
"plural": false,
|
|
47
|
+
"selections": [{
|
|
48
|
+
"alias": null,
|
|
49
|
+
"args": null,
|
|
50
|
+
"concreteType": "AccountInstancesConnectionEdge",
|
|
51
|
+
"kind": "LinkedField",
|
|
52
|
+
"name": "edges",
|
|
53
|
+
"plural": true,
|
|
54
|
+
"selections": [{
|
|
55
|
+
"alias": null,
|
|
56
|
+
"args": null,
|
|
57
|
+
"concreteType": "Instance",
|
|
58
|
+
"kind": "LinkedField",
|
|
59
|
+
"name": "node",
|
|
60
|
+
"plural": false,
|
|
61
|
+
"selections": [{
|
|
62
|
+
"args": null,
|
|
63
|
+
"kind": "FragmentSpread",
|
|
64
|
+
"name": "InstanceSummary_instance"
|
|
65
|
+
}],
|
|
66
|
+
"storageKey": null
|
|
67
|
+
}],
|
|
68
|
+
"storageKey": null
|
|
69
|
+
}],
|
|
70
|
+
"storageKey": "instances(first:100)"
|
|
71
|
+
}],
|
|
72
|
+
"storageKey": null
|
|
73
|
+
}],
|
|
74
|
+
"type": "Query",
|
|
75
|
+
"abstractKey": null
|
|
76
|
+
},
|
|
77
|
+
"kind": "Request",
|
|
78
|
+
"operation": {
|
|
79
|
+
"argumentDefinitions": [],
|
|
80
|
+
"kind": "Operation",
|
|
81
|
+
"name": "WorkspaceQuery",
|
|
82
|
+
"selections": [{
|
|
83
|
+
"alias": null,
|
|
84
|
+
"args": null,
|
|
85
|
+
"concreteType": "Account",
|
|
86
|
+
"kind": "LinkedField",
|
|
87
|
+
"name": "viewer",
|
|
88
|
+
"plural": false,
|
|
89
|
+
"selections": [{
|
|
90
|
+
"alias": null,
|
|
91
|
+
"args": v0,
|
|
92
|
+
"concreteType": "AccountInstancesConnection",
|
|
93
|
+
"kind": "LinkedField",
|
|
94
|
+
"name": "instances",
|
|
95
|
+
"plural": false,
|
|
96
|
+
"selections": [{
|
|
97
|
+
"alias": null,
|
|
98
|
+
"args": null,
|
|
99
|
+
"concreteType": "AccountInstancesConnectionEdge",
|
|
100
|
+
"kind": "LinkedField",
|
|
101
|
+
"name": "edges",
|
|
102
|
+
"plural": true,
|
|
103
|
+
"selections": [{
|
|
104
|
+
"alias": null,
|
|
105
|
+
"args": null,
|
|
106
|
+
"concreteType": "Instance",
|
|
107
|
+
"kind": "LinkedField",
|
|
108
|
+
"name": "node",
|
|
109
|
+
"plural": false,
|
|
110
|
+
"selections": [
|
|
111
|
+
v1,
|
|
112
|
+
{
|
|
113
|
+
"alias": null,
|
|
114
|
+
"args": null,
|
|
115
|
+
"kind": "ScalarField",
|
|
116
|
+
"name": "host",
|
|
117
|
+
"storageKey": null
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"alias": null,
|
|
121
|
+
"args": null,
|
|
122
|
+
"concreteType": "LocalInstance",
|
|
123
|
+
"kind": "LinkedField",
|
|
124
|
+
"name": "localInstance",
|
|
125
|
+
"plural": false,
|
|
126
|
+
"selections": [{
|
|
127
|
+
"alias": null,
|
|
128
|
+
"args": null,
|
|
129
|
+
"kind": "ScalarField",
|
|
130
|
+
"name": "slug",
|
|
131
|
+
"storageKey": null
|
|
132
|
+
}, v1],
|
|
133
|
+
"storageKey": null
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"storageKey": null
|
|
137
|
+
}],
|
|
138
|
+
"storageKey": null
|
|
139
|
+
}],
|
|
140
|
+
"storageKey": "instances(first:100)"
|
|
141
|
+
}, v1],
|
|
142
|
+
"storageKey": null
|
|
143
|
+
}]
|
|
144
|
+
},
|
|
145
|
+
"params": {
|
|
146
|
+
"cacheID": "517ffc12ad0a2144020be2fdb7968335",
|
|
147
|
+
"id": null,
|
|
148
|
+
"metadata": {},
|
|
149
|
+
"name": "WorkspaceQuery",
|
|
150
|
+
"operationKind": "query",
|
|
151
|
+
"text": "query WorkspaceQuery {\n viewer {\n instances(first: 100) {\n edges {\n node {\n ...InstanceSummary_instance\n id\n }\n }\n }\n id\n }\n}\n\nfragment InstanceSummary_instance on Instance {\n id\n host\n localInstance {\n slug\n id\n }\n}\n"
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
}();
|
|
155
|
+
node$1.hash = "ead2aae67b85e684fb11a67836fbfce8";
|
|
156
|
+
/**
|
|
157
|
+
* @generated SignedSource<<91d34d89f6a0c88f49b0fe375b1e4c1c>>
|
|
158
|
+
* @lightSyntaxTransform
|
|
159
|
+
*/
|
|
160
|
+
var { ReaderFragment } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
161
|
+
var { FragmentRefs } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
162
|
+
var node = {
|
|
163
|
+
"argumentDefinitions": [],
|
|
164
|
+
"kind": "Fragment",
|
|
165
|
+
"metadata": null,
|
|
166
|
+
"name": "InstanceSummary_instance",
|
|
167
|
+
"selections": [
|
|
168
|
+
{
|
|
169
|
+
"alias": null,
|
|
170
|
+
"args": null,
|
|
171
|
+
"kind": "ScalarField",
|
|
172
|
+
"name": "id",
|
|
173
|
+
"storageKey": null
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"alias": null,
|
|
177
|
+
"args": null,
|
|
178
|
+
"kind": "ScalarField",
|
|
179
|
+
"name": "host",
|
|
180
|
+
"storageKey": null
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"alias": null,
|
|
184
|
+
"args": null,
|
|
185
|
+
"concreteType": "LocalInstance",
|
|
186
|
+
"kind": "LinkedField",
|
|
187
|
+
"name": "localInstance",
|
|
188
|
+
"plural": false,
|
|
189
|
+
"selections": [{
|
|
190
|
+
"alias": null,
|
|
191
|
+
"args": null,
|
|
192
|
+
"kind": "ScalarField",
|
|
193
|
+
"name": "slug",
|
|
194
|
+
"storageKey": null
|
|
195
|
+
}],
|
|
196
|
+
"storageKey": null
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"type": "Instance",
|
|
200
|
+
"abstractKey": null
|
|
201
|
+
};
|
|
202
|
+
node.hash = "3ddc0ed5769e6d68a4ae8a2a6f7d9864";
|
|
203
|
+
var workspace_module_default = {
|
|
204
|
+
page: "_page_mn5jh_19",
|
|
205
|
+
header: "_header_mn5jh_24",
|
|
206
|
+
cardLabel: "_cardLabel_mn5jh_38",
|
|
207
|
+
emptyLabel: "_emptyLabel_mn5jh_39",
|
|
208
|
+
createButton: "_createButton_mn5jh_48",
|
|
209
|
+
secondaryButton: "_secondaryButton_mn5jh_49",
|
|
210
|
+
cardAction: "_cardAction_mn5jh_50",
|
|
211
|
+
instanceList: "_instanceList_mn5jh_87",
|
|
212
|
+
instanceCard: "_instanceCard_mn5jh_95",
|
|
213
|
+
instanceMarker: "_instanceMarker_mn5jh_111",
|
|
214
|
+
cardHeading: "_cardHeading_mn5jh_121",
|
|
215
|
+
emptyState: "_emptyState_mn5jh_153"
|
|
216
|
+
};
|
|
217
|
+
var { graphql: graphql$1 } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
218
|
+
var _tmpl$$1 = [
|
|
219
|
+
"<article",
|
|
220
|
+
"><div",
|
|
221
|
+
" aria-hidden=\"true\"></div><div",
|
|
222
|
+
"><p",
|
|
223
|
+
">Instance host</p><h2>",
|
|
224
|
+
"</h2></div><!--$-->",
|
|
225
|
+
"<!--/--></article>"
|
|
226
|
+
];
|
|
227
|
+
var _tmpl$2$1 = ["<span", " aria-hidden=\"true\">→</span>"];
|
|
228
|
+
function InstanceSummary(props) {
|
|
229
|
+
const data = createFragment(node, () => props.$instance);
|
|
230
|
+
return createComponent(Show, {
|
|
231
|
+
get when() {
|
|
232
|
+
return data();
|
|
233
|
+
},
|
|
234
|
+
children: (instance) => ssr(_tmpl$$1, ssrHydrationKey() + ssrAttribute("class", escape(workspace_module_default.instanceCard, true), false), ssrAttribute("class", escape(workspace_module_default.instanceMarker, true), false), ssrAttribute("class", escape(workspace_module_default.cardHeading, true), false), ssrAttribute("class", escape(workspace_module_default.cardLabel, true), false), escape(instance().host), escape(createComponent(Show, {
|
|
235
|
+
get when() {
|
|
236
|
+
return instance().localInstance;
|
|
237
|
+
},
|
|
238
|
+
children: (localInstance) => createComponent(A, {
|
|
239
|
+
get ["class"]() {
|
|
240
|
+
return workspace_module_default.cardAction;
|
|
241
|
+
},
|
|
242
|
+
get href() {
|
|
243
|
+
return `/instance/${localInstance().slug}`;
|
|
244
|
+
},
|
|
245
|
+
get children() {
|
|
246
|
+
return ["View Detail", ssr(_tmpl$2$1, ssrHydrationKey())];
|
|
247
|
+
}
|
|
248
|
+
})
|
|
249
|
+
})))
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
var { graphql } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
253
|
+
var _tmpl$ = ["<span", " aria-hidden=\"true\">+</span>"];
|
|
254
|
+
var _tmpl$2 = [
|
|
255
|
+
"<main",
|
|
256
|
+
"><!--$-->",
|
|
257
|
+
"<!--/--><header",
|
|
258
|
+
"><h1>Your instances</h1><!--$-->",
|
|
259
|
+
"<!--/--></header><!--$-->",
|
|
260
|
+
"<!--/--></main>"
|
|
261
|
+
];
|
|
262
|
+
var _tmpl$3 = [
|
|
263
|
+
"<section",
|
|
264
|
+
" aria-labelledby=\"signed-out-title\"><p",
|
|
265
|
+
">Workspace unavailable</p><h2 id=\"signed-out-title\">Sign in to manage your instances</h2><p>Your workspace is linked to your DrFed account.</p><!--$-->",
|
|
266
|
+
"<!--/--></section>"
|
|
267
|
+
];
|
|
268
|
+
var _tmpl$4 = ["<p", ">No Instance Available</p>"];
|
|
269
|
+
var _tmpl$5 = [
|
|
270
|
+
"<section",
|
|
271
|
+
" aria-label=\"Instances\">",
|
|
272
|
+
"</section>"
|
|
273
|
+
];
|
|
274
|
+
var _tmpl$6 = [
|
|
275
|
+
"<section",
|
|
276
|
+
" aria-labelledby=\"empty-workspace-title\"><p",
|
|
277
|
+
">No instances yet</p><h2 id=\"empty-workspace-title\">Build your first test server</h2><p>Start with an instance, then add actors to explore federation flows.</p><!--$-->",
|
|
278
|
+
"<!--/--></section>"
|
|
279
|
+
];
|
|
280
|
+
var id$$ = "src/routes/workspace/index.tsx?pick=default&pick=$css&lang.tsx";
|
|
281
|
+
var workspaceQuery = node$1;
|
|
282
|
+
function WorkspacePage() {
|
|
283
|
+
const query = createLazyLoadQuery(workspaceQuery, {}, { fetchPolicy: "store-and-network" });
|
|
284
|
+
return ssr(_tmpl$2, ssrHydrationKey() + ssrAttribute("class", escape(workspace_module_default.page, true), false), escape(createComponent(Title, { children: "Workspace — DrFed" })), ssrAttribute("class", escape(workspace_module_default.header, true), false), escape(createComponent(Show, {
|
|
285
|
+
get when() {
|
|
286
|
+
return query()?.viewer;
|
|
287
|
+
},
|
|
288
|
+
get children() {
|
|
289
|
+
return createComponent(A, {
|
|
290
|
+
get ["class"]() {
|
|
291
|
+
return workspace_module_default.createButton;
|
|
292
|
+
},
|
|
293
|
+
href: "/workspace/create/instance",
|
|
294
|
+
get children() {
|
|
295
|
+
return [ssr(_tmpl$, ssrHydrationKey()), "New instance"];
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
})), escape(createComponent(Show, {
|
|
300
|
+
get when() {
|
|
301
|
+
return query()?.viewer;
|
|
302
|
+
},
|
|
303
|
+
get fallback() {
|
|
304
|
+
return ssr(_tmpl$3, ssrHydrationKey() + ssrAttribute("class", escape(workspace_module_default.emptyState, true), false), ssrAttribute("class", escape(workspace_module_default.emptyLabel, true), false), escape(createComponent(A, {
|
|
305
|
+
get ["class"]() {
|
|
306
|
+
return workspace_module_default.secondaryButton;
|
|
307
|
+
},
|
|
308
|
+
href: "/sign-in",
|
|
309
|
+
children: "Sign in"
|
|
310
|
+
})));
|
|
311
|
+
},
|
|
312
|
+
children: (viewer) => createComponent(Show, {
|
|
313
|
+
get when() {
|
|
314
|
+
return viewer().instances;
|
|
315
|
+
},
|
|
316
|
+
get fallback() {
|
|
317
|
+
return ssr(_tmpl$4, ssrHydrationKey());
|
|
318
|
+
},
|
|
319
|
+
children: (instances) => createComponent(Show, {
|
|
320
|
+
get when() {
|
|
321
|
+
return instances().edges.length > 0;
|
|
322
|
+
},
|
|
323
|
+
get fallback() {
|
|
324
|
+
return ssr(_tmpl$6, ssrHydrationKey() + ssrAttribute("class", escape(workspace_module_default.emptyState, true), false), ssrAttribute("class", escape(workspace_module_default.emptyLabel, true), false), escape(createComponent(A, {
|
|
325
|
+
get ["class"]() {
|
|
326
|
+
return workspace_module_default.secondaryButton;
|
|
327
|
+
},
|
|
328
|
+
href: "/workspace/create/instance",
|
|
329
|
+
children: "Create an instance"
|
|
330
|
+
})));
|
|
331
|
+
},
|
|
332
|
+
get children() {
|
|
333
|
+
return ssr(_tmpl$5, ssrHydrationKey() + ssrAttribute("class", escape(workspace_module_default.instanceList, true), false), escape(createComponent(For, {
|
|
334
|
+
get each() {
|
|
335
|
+
return instances().edges;
|
|
336
|
+
},
|
|
337
|
+
children: (edge) => createComponent(InstanceSummary, { get $instance() {
|
|
338
|
+
return edge.node;
|
|
339
|
+
} })
|
|
340
|
+
})));
|
|
341
|
+
}
|
|
342
|
+
})
|
|
343
|
+
})
|
|
344
|
+
})));
|
|
345
|
+
}
|
|
346
|
+
//#endregion
|
|
347
|
+
export { WorkspacePage as default, id$$ };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { r as __toESM } from "../_runtime.mjs";
|
|
2
|
+
import { n as require_relay_runtime } from "../_libs/relay-runtime.mjs";
|
|
3
|
+
import { D as Show, N as createComponent, h as ssr, u as escape, v as ssrHydrationKey } from "../_libs/solid-js.mjs";
|
|
4
|
+
import { n as Title } from "./dist-D6rgyh-L.mjs";
|
|
5
|
+
import { r as createLazyLoadQuery } from "../_libs/solid-relay+tiny-invariant.mjs";
|
|
6
|
+
//#region node_modules/.nitro/vite/services/ssr/_build/assets/index-yuhuc6-X.js
|
|
7
|
+
var import_relay_runtime = /* @__PURE__ */ __toESM(require_relay_runtime());
|
|
8
|
+
/**
|
|
9
|
+
* @generated SignedSource<<6aa6da9b6e57613f46955d64c60f3c31>>
|
|
10
|
+
* @lightSyntaxTransform
|
|
11
|
+
*/
|
|
12
|
+
var { ConcreteRequest } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
13
|
+
var node = function() {
|
|
14
|
+
var v0 = {
|
|
15
|
+
"alias": null,
|
|
16
|
+
"args": null,
|
|
17
|
+
"kind": "ScalarField",
|
|
18
|
+
"name": "name",
|
|
19
|
+
"storageKey": null
|
|
20
|
+
}, v1 = {
|
|
21
|
+
"alias": null,
|
|
22
|
+
"args": null,
|
|
23
|
+
"kind": "ScalarField",
|
|
24
|
+
"name": "admin",
|
|
25
|
+
"storageKey": null
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
"fragment": {
|
|
29
|
+
"argumentDefinitions": [],
|
|
30
|
+
"kind": "Fragment",
|
|
31
|
+
"metadata": null,
|
|
32
|
+
"name": "HomeViewerQuery",
|
|
33
|
+
"selections": [{
|
|
34
|
+
"alias": null,
|
|
35
|
+
"args": null,
|
|
36
|
+
"concreteType": "Account",
|
|
37
|
+
"kind": "LinkedField",
|
|
38
|
+
"name": "viewer",
|
|
39
|
+
"plural": false,
|
|
40
|
+
"selections": [v0, v1],
|
|
41
|
+
"storageKey": null
|
|
42
|
+
}],
|
|
43
|
+
"type": "Query",
|
|
44
|
+
"abstractKey": null
|
|
45
|
+
},
|
|
46
|
+
"kind": "Request",
|
|
47
|
+
"operation": {
|
|
48
|
+
"argumentDefinitions": [],
|
|
49
|
+
"kind": "Operation",
|
|
50
|
+
"name": "HomeViewerQuery",
|
|
51
|
+
"selections": [{
|
|
52
|
+
"alias": null,
|
|
53
|
+
"args": null,
|
|
54
|
+
"concreteType": "Account",
|
|
55
|
+
"kind": "LinkedField",
|
|
56
|
+
"name": "viewer",
|
|
57
|
+
"plural": false,
|
|
58
|
+
"selections": [
|
|
59
|
+
v0,
|
|
60
|
+
v1,
|
|
61
|
+
{
|
|
62
|
+
"alias": null,
|
|
63
|
+
"args": null,
|
|
64
|
+
"kind": "ScalarField",
|
|
65
|
+
"name": "id",
|
|
66
|
+
"storageKey": null
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"storageKey": null
|
|
70
|
+
}]
|
|
71
|
+
},
|
|
72
|
+
"params": {
|
|
73
|
+
"cacheID": "6be84a829bea30a1417d764dcba673aa",
|
|
74
|
+
"id": null,
|
|
75
|
+
"metadata": {},
|
|
76
|
+
"name": "HomeViewerQuery",
|
|
77
|
+
"operationKind": "query",
|
|
78
|
+
"text": "query HomeViewerQuery {\n viewer {\n name\n admin\n id\n }\n}\n"
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}();
|
|
82
|
+
node.hash = "4c7555c81dde8b7bc2ca6f923515b13d";
|
|
83
|
+
var { graphql } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
84
|
+
var _tmpl$ = [
|
|
85
|
+
"<main",
|
|
86
|
+
"><!--$-->",
|
|
87
|
+
"<!--/--><!--$-->",
|
|
88
|
+
"<!--/--><p>Visit <a href=\"https://drfed.org\" target=\"_blank\">DrFed</a>: A web-based platform for developing and debugging ActivityPub apps</p></main>"
|
|
89
|
+
];
|
|
90
|
+
var _tmpl$2 = ["<p", ">You're not signed in.</p>"];
|
|
91
|
+
var _tmpl$3 = [
|
|
92
|
+
"<h3",
|
|
93
|
+
">",
|
|
94
|
+
"</h3>"
|
|
95
|
+
];
|
|
96
|
+
var id$$ = "src/routes/index.tsx?pick=default&pick=$css&lang.tsx";
|
|
97
|
+
var homeViewerQuery = node;
|
|
98
|
+
function Home() {
|
|
99
|
+
const query = createLazyLoadQuery(homeViewerQuery, {});
|
|
100
|
+
return ssr(_tmpl$, ssrHydrationKey(), escape(createComponent(Title, { children: "Home" })), escape(createComponent(Show, {
|
|
101
|
+
get when() {
|
|
102
|
+
return query()?.viewer;
|
|
103
|
+
},
|
|
104
|
+
get fallback() {
|
|
105
|
+
return ssr(_tmpl$2, ssrHydrationKey());
|
|
106
|
+
},
|
|
107
|
+
children: (viewer) => ssr(_tmpl$3, ssrHydrationKey(), escape(viewer().name))
|
|
108
|
+
})));
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
export { Home as default, id$$ };
|