@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,505 @@
|
|
|
1
|
+
import { r as __toESM } from "./_runtime.mjs";
|
|
2
|
+
import { n as require_relay_runtime } from "./_libs/relay-runtime.mjs";
|
|
3
|
+
import { C as ErrorBoundary, D as Show, N as createComponent, O as Suspense, T as Index, 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 "./_ssr/dist-D6rgyh-L.mjs";
|
|
5
|
+
import { n as createFragment, o as createPreloadedQuery } from "./_libs/solid-relay+tiny-invariant.mjs";
|
|
6
|
+
import { l as node$5, u as A } from "./_ssr/ssr.mjs";
|
|
7
|
+
import { t as actorLabel } from "./_ssr/label-DAXzanI9.mjs";
|
|
8
|
+
import { t as CopyButton } from "./_ssr/CopyButton-CQNR5D1y.mjs";
|
|
9
|
+
//#region node_modules/.nitro/vite/services/ssr/_build/assets/_id_-DqytvZEf.js
|
|
10
|
+
var import_relay_runtime = /* @__PURE__ */ __toESM(require_relay_runtime());
|
|
11
|
+
/**
|
|
12
|
+
* @generated SignedSource<<e5d47365cc1837b5cc24f7a3014fba4c>>
|
|
13
|
+
* @lightSyntaxTransform
|
|
14
|
+
*/
|
|
15
|
+
var { ReaderFragment: ReaderFragment$1 } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
16
|
+
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;
|
|
17
|
+
var node$1 = function() {
|
|
18
|
+
var v0 = {
|
|
19
|
+
"alias": null,
|
|
20
|
+
"args": null,
|
|
21
|
+
"kind": "ScalarField",
|
|
22
|
+
"name": "iri",
|
|
23
|
+
"storageKey": null
|
|
24
|
+
}, v1 = [v0];
|
|
25
|
+
return {
|
|
26
|
+
"argumentDefinitions": [],
|
|
27
|
+
"kind": "Fragment",
|
|
28
|
+
"metadata": { "throwOnFieldError": true },
|
|
29
|
+
"name": "ActorDetail_actor",
|
|
30
|
+
"selections": [
|
|
31
|
+
{
|
|
32
|
+
"alias": null,
|
|
33
|
+
"args": null,
|
|
34
|
+
"kind": "ScalarField",
|
|
35
|
+
"name": "handle",
|
|
36
|
+
"storageKey": null
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"alias": null,
|
|
40
|
+
"args": null,
|
|
41
|
+
"kind": "ScalarField",
|
|
42
|
+
"name": "username",
|
|
43
|
+
"storageKey": null
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"alias": null,
|
|
47
|
+
"args": null,
|
|
48
|
+
"kind": "ScalarField",
|
|
49
|
+
"name": "uuid",
|
|
50
|
+
"storageKey": null
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"alias": null,
|
|
54
|
+
"args": null,
|
|
55
|
+
"kind": "ScalarField",
|
|
56
|
+
"name": "type",
|
|
57
|
+
"storageKey": null
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"alias": null,
|
|
61
|
+
"args": null,
|
|
62
|
+
"kind": "ScalarField",
|
|
63
|
+
"name": "created",
|
|
64
|
+
"storageKey": null
|
|
65
|
+
},
|
|
66
|
+
v0,
|
|
67
|
+
{
|
|
68
|
+
"alias": null,
|
|
69
|
+
"args": null,
|
|
70
|
+
"kind": "ScalarField",
|
|
71
|
+
"name": "avatarUrl",
|
|
72
|
+
"storageKey": null
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"alias": null,
|
|
76
|
+
"args": null,
|
|
77
|
+
"kind": "ScalarField",
|
|
78
|
+
"name": "inboxUrl",
|
|
79
|
+
"storageKey": null
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"alias": null,
|
|
83
|
+
"args": null,
|
|
84
|
+
"concreteType": "Collection",
|
|
85
|
+
"kind": "LinkedField",
|
|
86
|
+
"name": "outbox",
|
|
87
|
+
"plural": false,
|
|
88
|
+
"selections": v1,
|
|
89
|
+
"storageKey": null
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"alias": null,
|
|
93
|
+
"args": null,
|
|
94
|
+
"concreteType": "Collection",
|
|
95
|
+
"kind": "LinkedField",
|
|
96
|
+
"name": "followers",
|
|
97
|
+
"plural": false,
|
|
98
|
+
"selections": v1,
|
|
99
|
+
"storageKey": null
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"alias": null,
|
|
103
|
+
"args": null,
|
|
104
|
+
"concreteType": "Collection",
|
|
105
|
+
"kind": "LinkedField",
|
|
106
|
+
"name": "following",
|
|
107
|
+
"plural": false,
|
|
108
|
+
"selections": v1,
|
|
109
|
+
"storageKey": null
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"alias": null,
|
|
113
|
+
"args": null,
|
|
114
|
+
"concreteType": "Collection",
|
|
115
|
+
"kind": "LinkedField",
|
|
116
|
+
"name": "featured",
|
|
117
|
+
"plural": false,
|
|
118
|
+
"selections": v1,
|
|
119
|
+
"storageKey": null
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"alias": null,
|
|
123
|
+
"args": null,
|
|
124
|
+
"kind": "ScalarField",
|
|
125
|
+
"name": "profileUrl",
|
|
126
|
+
"storageKey": null
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"alias": null,
|
|
130
|
+
"args": null,
|
|
131
|
+
"concreteType": "Instance",
|
|
132
|
+
"kind": "LinkedField",
|
|
133
|
+
"name": "instance",
|
|
134
|
+
"plural": false,
|
|
135
|
+
"selections": [{
|
|
136
|
+
"alias": null,
|
|
137
|
+
"args": null,
|
|
138
|
+
"kind": "ScalarField",
|
|
139
|
+
"name": "host",
|
|
140
|
+
"storageKey": null
|
|
141
|
+
}],
|
|
142
|
+
"storageKey": null
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"type": "Actor",
|
|
146
|
+
"abstractKey": null
|
|
147
|
+
};
|
|
148
|
+
}();
|
|
149
|
+
node$1.hash = "d6e7f9b4c0eac2654603014f20940b50";
|
|
150
|
+
var actor_module_default = {
|
|
151
|
+
page: "_page_twr6e_19",
|
|
152
|
+
backLink: "_backLink_twr6e_24",
|
|
153
|
+
header: "_header_twr6e_30",
|
|
154
|
+
avatar: "_avatar_twr6e_46",
|
|
155
|
+
label: "_label_twr6e_51",
|
|
156
|
+
panel: "_panel_twr6e_56",
|
|
157
|
+
fields: "_fields_twr6e_66",
|
|
158
|
+
endpoint: "_endpoint_twr6e_86",
|
|
159
|
+
endpointText: "_endpointText_twr6e_91",
|
|
160
|
+
objectList: "_objectList_twr6e_115",
|
|
161
|
+
objectHeader: "_objectHeader_twr6e_128",
|
|
162
|
+
objectIri: "_objectIri_twr6e_157",
|
|
163
|
+
objectContent: "_objectContent_twr6e_165",
|
|
164
|
+
objectEmpty: "_objectEmpty_twr6e_180"
|
|
165
|
+
};
|
|
166
|
+
var { graphql: graphql$2 } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
167
|
+
var _tmpl$$2 = [
|
|
168
|
+
"<header",
|
|
169
|
+
"><!--$-->",
|
|
170
|
+
"<!--/--><div><p",
|
|
171
|
+
">",
|
|
172
|
+
"</p><h1>",
|
|
173
|
+
"</h1><!--$-->",
|
|
174
|
+
"<!--/--></div></header>"
|
|
175
|
+
];
|
|
176
|
+
var _tmpl$2$2 = [
|
|
177
|
+
"<section",
|
|
178
|
+
" aria-labelledby=\"identity-title\"><h2 id=\"identity-title\">Identity</h2><dl",
|
|
179
|
+
"><div><dt>Username</dt><dd>",
|
|
180
|
+
"</dd></div><div><dt>Instance</dt><dd>",
|
|
181
|
+
"</dd></div><div><dt>UUID</dt><dd>",
|
|
182
|
+
"</dd></div><div><dt>Created</dt><dd><time",
|
|
183
|
+
">",
|
|
184
|
+
"</time></dd></div></dl></section>"
|
|
185
|
+
];
|
|
186
|
+
var _tmpl$3$2 = [
|
|
187
|
+
"<section",
|
|
188
|
+
" aria-labelledby=\"endpoints-title\"><h2 id=\"endpoints-title\">Federation endpoints</h2><dl",
|
|
189
|
+
">",
|
|
190
|
+
"</dl></section>"
|
|
191
|
+
];
|
|
192
|
+
var _tmpl$4$2 = ["<img", " alt width=\"64\" height=\"64\" referrerpolicy=\"no-referrer\">"];
|
|
193
|
+
var _tmpl$5 = [
|
|
194
|
+
"<div",
|
|
195
|
+
"><dt>",
|
|
196
|
+
"</dt><dd",
|
|
197
|
+
"><button type=\"button\"",
|
|
198
|
+
" aria-label=\"",
|
|
199
|
+
"\">",
|
|
200
|
+
"</button><!--$-->",
|
|
201
|
+
"<!--/--></dd></div>"
|
|
202
|
+
];
|
|
203
|
+
/**
|
|
204
|
+
* Read-only identity and federation information for an actor.
|
|
205
|
+
* @returns The actor identity and endpoint sections.
|
|
206
|
+
*/
|
|
207
|
+
function ActorDetail(props) {
|
|
208
|
+
const data = createFragment(node$1, () => props.$actor);
|
|
209
|
+
return createComponent(Show, {
|
|
210
|
+
get when() {
|
|
211
|
+
return data();
|
|
212
|
+
},
|
|
213
|
+
children: (actor) => {
|
|
214
|
+
const endpoints = () => [
|
|
215
|
+
{
|
|
216
|
+
label: "Actor IRI",
|
|
217
|
+
url: actor().iri
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
label: "Inbox",
|
|
221
|
+
url: actor().inboxUrl
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
label: "Outbox",
|
|
225
|
+
url: actor().outbox?.iri
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
label: "Followers",
|
|
229
|
+
url: actor().followers?.iri
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
label: "Following",
|
|
233
|
+
url: actor().following?.iri
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
label: "Featured",
|
|
237
|
+
url: actor().featured?.iri
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
label: "Profile",
|
|
241
|
+
url: actor().profileUrl
|
|
242
|
+
}
|
|
243
|
+
];
|
|
244
|
+
return [
|
|
245
|
+
createComponent(Title, { get children() {
|
|
246
|
+
return [actorLabel(actor()), " — DrFed"];
|
|
247
|
+
} }),
|
|
248
|
+
ssr(_tmpl$$2, ssrHydrationKey() + ssrAttribute("class", escape(actor_module_default.header, true), false), escape(createComponent(Show, {
|
|
249
|
+
get when() {
|
|
250
|
+
return actor().avatarUrl;
|
|
251
|
+
},
|
|
252
|
+
children: (url) => ssr(_tmpl$4$2, ssrHydrationKey() + ssrAttribute("class", escape(actor_module_default.avatar, true), false) + ssrAttribute("src", escape(url(), true), false))
|
|
253
|
+
})), ssrAttribute("class", escape(actor_module_default.label, true), false), escape(actor().type), escape(actorLabel(actor())), escape(createComponent(CopyButton, {
|
|
254
|
+
get value() {
|
|
255
|
+
return actorLabel(actor());
|
|
256
|
+
},
|
|
257
|
+
get label() {
|
|
258
|
+
return actor().handle == void 0 ? "actor IRI" : "actor handle";
|
|
259
|
+
}
|
|
260
|
+
}))),
|
|
261
|
+
ssr(_tmpl$2$2, ssrHydrationKey() + ssrAttribute("class", escape(actor_module_default.panel, true), false), ssrAttribute("class", escape(actor_module_default.fields, true), false), escape(actor().username ?? "None"), escape(actor().instance.host), escape(actor().uuid), ssrAttribute("datetime", escape(actor().created, true), false), escape(actor().created)),
|
|
262
|
+
ssr(_tmpl$3$2, ssrHydrationKey() + ssrAttribute("class", escape(actor_module_default.panel, true), false), ssrAttribute("class", escape(actor_module_default.fields, true), false), escape(createComponent(Index, {
|
|
263
|
+
get each() {
|
|
264
|
+
return endpoints();
|
|
265
|
+
},
|
|
266
|
+
children: (endpoint) => createComponent(Show, {
|
|
267
|
+
get when() {
|
|
268
|
+
return endpoint().url;
|
|
269
|
+
},
|
|
270
|
+
children: (url) => ssr(_tmpl$5, ssrHydrationKey(), escape(endpoint().label), ssrAttribute("class", escape(actor_module_default.endpoint, true), false), ssrAttribute("class", escape(actor_module_default.endpointText, true), false), `Select ${escape(endpoint().label, true)} URL`, escape(url()), escape(createComponent(CopyButton, {
|
|
271
|
+
get value() {
|
|
272
|
+
return url();
|
|
273
|
+
},
|
|
274
|
+
get label() {
|
|
275
|
+
return endpoint().label;
|
|
276
|
+
}
|
|
277
|
+
})))
|
|
278
|
+
})
|
|
279
|
+
})))
|
|
280
|
+
];
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* @generated SignedSource<<a11d2601b501e9b14b87cda256de5295>>
|
|
286
|
+
* @lightSyntaxTransform
|
|
287
|
+
*/
|
|
288
|
+
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;
|
|
289
|
+
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;
|
|
290
|
+
var node = {
|
|
291
|
+
"argumentDefinitions": [],
|
|
292
|
+
"kind": "Fragment",
|
|
293
|
+
"metadata": { "throwOnFieldError": true },
|
|
294
|
+
"name": "ActorObjectList_actor",
|
|
295
|
+
"selections": [{
|
|
296
|
+
"alias": null,
|
|
297
|
+
"args": [{
|
|
298
|
+
"kind": "Literal",
|
|
299
|
+
"name": "first",
|
|
300
|
+
"value": 20
|
|
301
|
+
}],
|
|
302
|
+
"concreteType": "ObjectConnection",
|
|
303
|
+
"kind": "LinkedField",
|
|
304
|
+
"name": "objects",
|
|
305
|
+
"plural": false,
|
|
306
|
+
"selections": [{
|
|
307
|
+
"alias": null,
|
|
308
|
+
"args": null,
|
|
309
|
+
"concreteType": "ObjectEdge",
|
|
310
|
+
"kind": "LinkedField",
|
|
311
|
+
"name": "edges",
|
|
312
|
+
"plural": true,
|
|
313
|
+
"selections": [{
|
|
314
|
+
"alias": null,
|
|
315
|
+
"args": null,
|
|
316
|
+
"concreteType": "Object",
|
|
317
|
+
"kind": "LinkedField",
|
|
318
|
+
"name": "node",
|
|
319
|
+
"plural": false,
|
|
320
|
+
"selections": [
|
|
321
|
+
{
|
|
322
|
+
"alias": null,
|
|
323
|
+
"args": null,
|
|
324
|
+
"kind": "ScalarField",
|
|
325
|
+
"name": "id",
|
|
326
|
+
"storageKey": null
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"alias": null,
|
|
330
|
+
"args": null,
|
|
331
|
+
"kind": "ScalarField",
|
|
332
|
+
"name": "type",
|
|
333
|
+
"storageKey": null
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"alias": null,
|
|
337
|
+
"args": null,
|
|
338
|
+
"kind": "ScalarField",
|
|
339
|
+
"name": "name",
|
|
340
|
+
"storageKey": null
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"alias": null,
|
|
344
|
+
"args": null,
|
|
345
|
+
"kind": "ScalarField",
|
|
346
|
+
"name": "contentHtml",
|
|
347
|
+
"storageKey": null
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"alias": null,
|
|
351
|
+
"args": null,
|
|
352
|
+
"kind": "ScalarField",
|
|
353
|
+
"name": "published",
|
|
354
|
+
"storageKey": null
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"alias": null,
|
|
358
|
+
"args": null,
|
|
359
|
+
"kind": "ScalarField",
|
|
360
|
+
"name": "iri",
|
|
361
|
+
"storageKey": null
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"storageKey": null
|
|
365
|
+
}],
|
|
366
|
+
"storageKey": null
|
|
367
|
+
}],
|
|
368
|
+
"storageKey": "objects(first:20)"
|
|
369
|
+
}],
|
|
370
|
+
"type": "Actor",
|
|
371
|
+
"abstractKey": null
|
|
372
|
+
};
|
|
373
|
+
node.hash = "3b0bc8d4dc0cdc9405a5bd25f38d6823";
|
|
374
|
+
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;
|
|
375
|
+
var _tmpl$$1 = [
|
|
376
|
+
"<ul",
|
|
377
|
+
">",
|
|
378
|
+
"</ul>"
|
|
379
|
+
];
|
|
380
|
+
var _tmpl$2$1 = [
|
|
381
|
+
"<section",
|
|
382
|
+
" aria-labelledby=\"objects-title\"><h2 id=\"objects-title\">Objects</h2><!--$-->",
|
|
383
|
+
"<!--/--></section>"
|
|
384
|
+
];
|
|
385
|
+
var _tmpl$3$1 = ["<p", ">No objects yet.</p>"];
|
|
386
|
+
var _tmpl$4$1 = [
|
|
387
|
+
"<li",
|
|
388
|
+
"><article><header",
|
|
389
|
+
"><p",
|
|
390
|
+
">",
|
|
391
|
+
"</p><h3>",
|
|
392
|
+
"</h3><div",
|
|
393
|
+
"><span",
|
|
394
|
+
">IRI: <!--$-->",
|
|
395
|
+
"<!--/--></span><!--$-->",
|
|
396
|
+
"<!--/--></div><time",
|
|
397
|
+
">",
|
|
398
|
+
"</time></header><pre",
|
|
399
|
+
"><code>",
|
|
400
|
+
"</code></pre></article></li>"
|
|
401
|
+
];
|
|
402
|
+
/**
|
|
403
|
+
* Displays an actor's latest objects with their raw HTML content.
|
|
404
|
+
* @returns The object list or its empty state.
|
|
405
|
+
*/
|
|
406
|
+
function ActorObjectList(props) {
|
|
407
|
+
const data = createFragment(node, () => props.$actor);
|
|
408
|
+
return createComponent(Show, {
|
|
409
|
+
get when() {
|
|
410
|
+
return data();
|
|
411
|
+
},
|
|
412
|
+
children: (actor) => ssr(_tmpl$2$1, ssrHydrationKey() + ssrAttribute("class", escape(actor_module_default.panel, true), false), escape(createComponent(Show, {
|
|
413
|
+
get when() {
|
|
414
|
+
return actor().objects.edges.length > 0;
|
|
415
|
+
},
|
|
416
|
+
get fallback() {
|
|
417
|
+
return ssr(_tmpl$3$1, ssrHydrationKey() + ssrAttribute("class", escape(actor_module_default.objectEmpty, true), false));
|
|
418
|
+
},
|
|
419
|
+
get children() {
|
|
420
|
+
return ssr(_tmpl$$1, ssrHydrationKey() + ssrAttribute("class", escape(actor_module_default.objectList, true), false), escape(createComponent(For, {
|
|
421
|
+
get each() {
|
|
422
|
+
return actor().objects.edges;
|
|
423
|
+
},
|
|
424
|
+
children: (edge) => createComponent(Show, {
|
|
425
|
+
get when() {
|
|
426
|
+
return edge.node;
|
|
427
|
+
},
|
|
428
|
+
children: (object) => ssr(_tmpl$4$1, ssrHydrationKey(), ssrAttribute("class", escape(actor_module_default.objectHeader, true), false), ssrAttribute("class", escape(actor_module_default.label, true), false), escape(object().type), escape(object().name ?? "Untitled object"), ssrAttribute("class", escape(actor_module_default.endpoint, true), false), ssrAttribute("class", escape(actor_module_default.objectIri, true), false), escape(object().iri), escape(createComponent(CopyButton, {
|
|
429
|
+
get value() {
|
|
430
|
+
return object().iri;
|
|
431
|
+
},
|
|
432
|
+
label: "object IRI"
|
|
433
|
+
})), ssrAttribute("datetime", escape(object().published, true), false), escape(object().published), ssrAttribute("class", escape(actor_module_default.objectContent, true), false), escape(object().contentHtml))
|
|
434
|
+
})
|
|
435
|
+
})));
|
|
436
|
+
}
|
|
437
|
+
})))
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
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;
|
|
441
|
+
var _tmpl$ = [
|
|
442
|
+
"<main",
|
|
443
|
+
"><!--$-->",
|
|
444
|
+
"<!--/--><!--$-->",
|
|
445
|
+
"<!--/--><!--$-->",
|
|
446
|
+
"<!--/--></main>"
|
|
447
|
+
];
|
|
448
|
+
var _tmpl$2 = ["<p", " role=\"alert\">Unable to load this actor. Please reload the page to try again.</p>"];
|
|
449
|
+
var _tmpl$3 = ["<output", ">Loading actor…</output>"];
|
|
450
|
+
var _tmpl$4 = ["<p", ">Actor not found.</p>"];
|
|
451
|
+
var id$$ = "src/routes/actor/[id].tsx?pick=default&pick=$css&lang.tsx";
|
|
452
|
+
var actorDetailQuery = node$5;
|
|
453
|
+
function ActorDetailPage(props) {
|
|
454
|
+
return ssr(_tmpl$, ssrHydrationKey() + ssrAttribute("class", escape(actor_module_default.page, true), false), escape(createComponent(Title, { children: "Actor — DrFed" })), escape(createComponent(A, {
|
|
455
|
+
get ["class"]() {
|
|
456
|
+
return actor_module_default.backLink;
|
|
457
|
+
},
|
|
458
|
+
href: "/workspace",
|
|
459
|
+
children: "← All instances"
|
|
460
|
+
})), escape(createComponent(ErrorBoundary, {
|
|
461
|
+
get fallback() {
|
|
462
|
+
return ssr(_tmpl$2, ssrHydrationKey());
|
|
463
|
+
},
|
|
464
|
+
get children() {
|
|
465
|
+
return createComponent(Suspense, {
|
|
466
|
+
get fallback() {
|
|
467
|
+
return ssr(_tmpl$3, ssrHydrationKey());
|
|
468
|
+
},
|
|
469
|
+
get children() {
|
|
470
|
+
return createComponent(ActorDetailContent, { get data() {
|
|
471
|
+
return props.data;
|
|
472
|
+
} });
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
})));
|
|
477
|
+
}
|
|
478
|
+
function ActorDetailContent(props) {
|
|
479
|
+
const data = createPreloadedQuery(actorDetailQuery, () => props.data);
|
|
480
|
+
const actor = () => {
|
|
481
|
+
return data()?.node?.actor;
|
|
482
|
+
};
|
|
483
|
+
return createComponent(Show, {
|
|
484
|
+
get when() {
|
|
485
|
+
return data();
|
|
486
|
+
},
|
|
487
|
+
get children() {
|
|
488
|
+
return createComponent(Show, {
|
|
489
|
+
get when() {
|
|
490
|
+
return actor();
|
|
491
|
+
},
|
|
492
|
+
get fallback() {
|
|
493
|
+
return ssr(_tmpl$4, ssrHydrationKey());
|
|
494
|
+
},
|
|
495
|
+
children: (value) => [createComponent(ActorDetail, { get $actor() {
|
|
496
|
+
return value();
|
|
497
|
+
} }), createComponent(ActorObjectList, { get $actor() {
|
|
498
|
+
return value();
|
|
499
|
+
} })]
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
//#endregion
|
|
505
|
+
export { ActorDetailPage as default, id$$ };
|