@drfed/web 0.0.0-stage → 0.1.0-dev.561
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 +483 -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/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_-Dk-0l7zl.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-Do7ocrsL.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_-C_n_Bww9.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/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 +6121 -0
- package/.output/server/index.mjs +684 -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 +123 -3
|
@@ -0,0 +1,978 @@
|
|
|
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, I as createEffect, J as onCleanup, L as createMemo, N as createComponent, V as createSignal, 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 { a as createPaginationFragment, n as createFragment, o as createPreloadedQuery } from "./_libs/solid-relay+tiny-invariant.mjs";
|
|
6
|
+
import { c as node$4, 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
|
+
import { t as createHighlighterCoreSync } from "./_libs/@shikijs/core+[...].mjs";
|
|
10
|
+
import { t as createJavaScriptRegexEngine } from "./_libs/@shikijs/engine-javascript+[...].mjs";
|
|
11
|
+
import { t as json_default } from "./_libs/shikijs__langs.mjs";
|
|
12
|
+
import { n as github_dark_default, t as github_light_default } from "./_libs/shikijs__themes.mjs";
|
|
13
|
+
//#region node_modules/.nitro/vite/services/ssr/_build/assets/_slug_-CBOaSqoF.js
|
|
14
|
+
var import_relay_runtime = /* @__PURE__ */ __toESM(require_relay_runtime());
|
|
15
|
+
/**
|
|
16
|
+
* @generated SignedSource<<5698f7736a4eee66215cb08bd8e9db88>>
|
|
17
|
+
* @lightSyntaxTransform
|
|
18
|
+
*/
|
|
19
|
+
var { ReaderFragment: ReaderFragment$2 } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
20
|
+
var { FragmentRefs: FragmentRefs$3 } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
21
|
+
var node$3 = {
|
|
22
|
+
"argumentDefinitions": [],
|
|
23
|
+
"kind": "Fragment",
|
|
24
|
+
"metadata": null,
|
|
25
|
+
"name": "ActorCard_actor",
|
|
26
|
+
"selections": [
|
|
27
|
+
{
|
|
28
|
+
"alias": null,
|
|
29
|
+
"args": null,
|
|
30
|
+
"kind": "ScalarField",
|
|
31
|
+
"name": "handle",
|
|
32
|
+
"storageKey": null
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"alias": null,
|
|
36
|
+
"args": null,
|
|
37
|
+
"kind": "ScalarField",
|
|
38
|
+
"name": "iri",
|
|
39
|
+
"storageKey": null
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"alias": null,
|
|
43
|
+
"args": null,
|
|
44
|
+
"kind": "ScalarField",
|
|
45
|
+
"name": "id",
|
|
46
|
+
"storageKey": null
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"type": "Actor",
|
|
50
|
+
"abstractKey": null
|
|
51
|
+
};
|
|
52
|
+
node$3.hash = "883e4c014d4f302e139948ff3240750b";
|
|
53
|
+
var instance_module_default = {
|
|
54
|
+
page: "_page_1s695_19",
|
|
55
|
+
backLink: "_backLink_1s695_25",
|
|
56
|
+
header: "_header_1s695_40",
|
|
57
|
+
createButton: "_createButton_1s695_57",
|
|
58
|
+
details: "_details_1s695_75",
|
|
59
|
+
actors: "_actors_1s695_76",
|
|
60
|
+
sectionLabel: "_sectionLabel_1s695_84",
|
|
61
|
+
sectionHeader: "_sectionHeader_1s695_95",
|
|
62
|
+
endpointList: "_endpointList_1s695_100",
|
|
63
|
+
actorList: "_actorList_1s695_154",
|
|
64
|
+
actorCard: "_actorCard_1s695_158",
|
|
65
|
+
actorMarker: "_actorMarker_1s695_169",
|
|
66
|
+
toolbar: "_toolbar_1s695_192"
|
|
67
|
+
};
|
|
68
|
+
var { graphql: graphql$3 } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
69
|
+
var _tmpl$$5 = [
|
|
70
|
+
"<article",
|
|
71
|
+
"><span",
|
|
72
|
+
" aria-hidden=\"true\"></span><!--$-->",
|
|
73
|
+
"<!--/--></article>"
|
|
74
|
+
];
|
|
75
|
+
var ActorCard = (props) => {
|
|
76
|
+
const actorData = createFragment(node$3, () => props.$actor);
|
|
77
|
+
return createComponent(Show, {
|
|
78
|
+
get when() {
|
|
79
|
+
return actorData();
|
|
80
|
+
},
|
|
81
|
+
children: (actor) => ssr(_tmpl$$5, ssrHydrationKey() + ssrAttribute("class", escape(instance_module_default.actorCard, true), false), ssrAttribute("class", escape(instance_module_default.actorMarker, true), false), escape(createComponent(A, {
|
|
82
|
+
get href() {
|
|
83
|
+
return `/actor/${encodeURIComponent(actor().id)}`;
|
|
84
|
+
},
|
|
85
|
+
get children() {
|
|
86
|
+
return actorLabel(actor());
|
|
87
|
+
}
|
|
88
|
+
})))
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* @generated SignedSource<<c7dbec221bf15508984d274aeffc9bc3>>
|
|
93
|
+
* @lightSyntaxTransform
|
|
94
|
+
*/
|
|
95
|
+
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;
|
|
96
|
+
var { FragmentRefs: FragmentRefs$2 } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
97
|
+
var node$2 = function() {
|
|
98
|
+
var v0 = [
|
|
99
|
+
{
|
|
100
|
+
"defaultValue": 20,
|
|
101
|
+
"kind": "LocalArgument",
|
|
102
|
+
"name": "count"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"defaultValue": null,
|
|
106
|
+
"kind": "LocalArgument",
|
|
107
|
+
"name": "cursor"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"defaultValue": null,
|
|
111
|
+
"kind": "LocalArgument",
|
|
112
|
+
"name": "id"
|
|
113
|
+
}
|
|
114
|
+
], v1 = [{
|
|
115
|
+
"kind": "Variable",
|
|
116
|
+
"name": "id",
|
|
117
|
+
"variableName": "id"
|
|
118
|
+
}], v2 = {
|
|
119
|
+
"alias": null,
|
|
120
|
+
"args": null,
|
|
121
|
+
"kind": "ScalarField",
|
|
122
|
+
"name": "__typename",
|
|
123
|
+
"storageKey": null
|
|
124
|
+
}, v3 = {
|
|
125
|
+
"alias": null,
|
|
126
|
+
"args": null,
|
|
127
|
+
"kind": "ScalarField",
|
|
128
|
+
"name": "id",
|
|
129
|
+
"storageKey": null
|
|
130
|
+
}, v4 = [{
|
|
131
|
+
"kind": "Variable",
|
|
132
|
+
"name": "after",
|
|
133
|
+
"variableName": "cursor"
|
|
134
|
+
}, {
|
|
135
|
+
"kind": "Variable",
|
|
136
|
+
"name": "first",
|
|
137
|
+
"variableName": "count"
|
|
138
|
+
}];
|
|
139
|
+
return {
|
|
140
|
+
"fragment": {
|
|
141
|
+
"argumentDefinitions": v0,
|
|
142
|
+
"kind": "Fragment",
|
|
143
|
+
"metadata": null,
|
|
144
|
+
"name": "ActivityLogTimelinePaginationQuery",
|
|
145
|
+
"selections": [{
|
|
146
|
+
"alias": null,
|
|
147
|
+
"args": v1,
|
|
148
|
+
"concreteType": null,
|
|
149
|
+
"kind": "LinkedField",
|
|
150
|
+
"name": "node",
|
|
151
|
+
"plural": false,
|
|
152
|
+
"selections": [{
|
|
153
|
+
"args": [{
|
|
154
|
+
"kind": "Variable",
|
|
155
|
+
"name": "count",
|
|
156
|
+
"variableName": "count"
|
|
157
|
+
}, {
|
|
158
|
+
"kind": "Variable",
|
|
159
|
+
"name": "cursor",
|
|
160
|
+
"variableName": "cursor"
|
|
161
|
+
}],
|
|
162
|
+
"kind": "FragmentSpread",
|
|
163
|
+
"name": "ActivityLogTimeline_instance"
|
|
164
|
+
}],
|
|
165
|
+
"storageKey": null
|
|
166
|
+
}],
|
|
167
|
+
"type": "Query",
|
|
168
|
+
"abstractKey": null
|
|
169
|
+
},
|
|
170
|
+
"kind": "Request",
|
|
171
|
+
"operation": {
|
|
172
|
+
"argumentDefinitions": v0,
|
|
173
|
+
"kind": "Operation",
|
|
174
|
+
"name": "ActivityLogTimelinePaginationQuery",
|
|
175
|
+
"selections": [{
|
|
176
|
+
"alias": null,
|
|
177
|
+
"args": v1,
|
|
178
|
+
"concreteType": null,
|
|
179
|
+
"kind": "LinkedField",
|
|
180
|
+
"name": "node",
|
|
181
|
+
"plural": false,
|
|
182
|
+
"selections": [
|
|
183
|
+
v2,
|
|
184
|
+
v3,
|
|
185
|
+
{
|
|
186
|
+
"kind": "InlineFragment",
|
|
187
|
+
"selections": [{
|
|
188
|
+
"alias": null,
|
|
189
|
+
"args": v4,
|
|
190
|
+
"concreteType": "InstanceActivityDeliveriesConnection",
|
|
191
|
+
"kind": "LinkedField",
|
|
192
|
+
"name": "activityDeliveries",
|
|
193
|
+
"plural": false,
|
|
194
|
+
"selections": [{
|
|
195
|
+
"alias": null,
|
|
196
|
+
"args": null,
|
|
197
|
+
"concreteType": "InstanceActivityDeliveriesConnectionEdge",
|
|
198
|
+
"kind": "LinkedField",
|
|
199
|
+
"name": "edges",
|
|
200
|
+
"plural": true,
|
|
201
|
+
"selections": [{
|
|
202
|
+
"alias": null,
|
|
203
|
+
"args": null,
|
|
204
|
+
"concreteType": "ActivityDelivery",
|
|
205
|
+
"kind": "LinkedField",
|
|
206
|
+
"name": "node",
|
|
207
|
+
"plural": false,
|
|
208
|
+
"selections": [
|
|
209
|
+
v3,
|
|
210
|
+
{
|
|
211
|
+
"alias": null,
|
|
212
|
+
"args": null,
|
|
213
|
+
"kind": "ScalarField",
|
|
214
|
+
"name": "direction",
|
|
215
|
+
"storageKey": null
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"alias": null,
|
|
219
|
+
"args": null,
|
|
220
|
+
"kind": "ScalarField",
|
|
221
|
+
"name": "type",
|
|
222
|
+
"storageKey": null
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"alias": null,
|
|
226
|
+
"args": null,
|
|
227
|
+
"kind": "ScalarField",
|
|
228
|
+
"name": "objectType",
|
|
229
|
+
"storageKey": null
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"alias": null,
|
|
233
|
+
"args": null,
|
|
234
|
+
"kind": "ScalarField",
|
|
235
|
+
"name": "objectIri",
|
|
236
|
+
"storageKey": null
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"alias": null,
|
|
240
|
+
"args": null,
|
|
241
|
+
"concreteType": "Actor",
|
|
242
|
+
"kind": "LinkedField",
|
|
243
|
+
"name": "actor",
|
|
244
|
+
"plural": false,
|
|
245
|
+
"selections": [{
|
|
246
|
+
"alias": null,
|
|
247
|
+
"args": null,
|
|
248
|
+
"kind": "ScalarField",
|
|
249
|
+
"name": "iri",
|
|
250
|
+
"storageKey": null
|
|
251
|
+
}, v3],
|
|
252
|
+
"storageKey": null
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"alias": null,
|
|
256
|
+
"args": null,
|
|
257
|
+
"kind": "ScalarField",
|
|
258
|
+
"name": "remoteActorIri",
|
|
259
|
+
"storageKey": null
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"alias": null,
|
|
263
|
+
"args": null,
|
|
264
|
+
"kind": "ScalarField",
|
|
265
|
+
"name": "recipientIris",
|
|
266
|
+
"storageKey": null
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"alias": null,
|
|
270
|
+
"args": null,
|
|
271
|
+
"kind": "ScalarField",
|
|
272
|
+
"name": "inboxUrl",
|
|
273
|
+
"storageKey": null
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"alias": null,
|
|
277
|
+
"args": null,
|
|
278
|
+
"kind": "ScalarField",
|
|
279
|
+
"name": "status",
|
|
280
|
+
"storageKey": null
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"alias": null,
|
|
284
|
+
"args": null,
|
|
285
|
+
"kind": "ScalarField",
|
|
286
|
+
"name": "created",
|
|
287
|
+
"storageKey": null
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"alias": null,
|
|
291
|
+
"args": null,
|
|
292
|
+
"kind": "ScalarField",
|
|
293
|
+
"name": "payload",
|
|
294
|
+
"storageKey": null
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"alias": null,
|
|
298
|
+
"args": null,
|
|
299
|
+
"kind": "ScalarField",
|
|
300
|
+
"name": "rawBody",
|
|
301
|
+
"storageKey": null
|
|
302
|
+
},
|
|
303
|
+
v2
|
|
304
|
+
],
|
|
305
|
+
"storageKey": null
|
|
306
|
+
}, {
|
|
307
|
+
"alias": null,
|
|
308
|
+
"args": null,
|
|
309
|
+
"kind": "ScalarField",
|
|
310
|
+
"name": "cursor",
|
|
311
|
+
"storageKey": null
|
|
312
|
+
}],
|
|
313
|
+
"storageKey": null
|
|
314
|
+
}, {
|
|
315
|
+
"alias": null,
|
|
316
|
+
"args": null,
|
|
317
|
+
"concreteType": "PageInfo",
|
|
318
|
+
"kind": "LinkedField",
|
|
319
|
+
"name": "pageInfo",
|
|
320
|
+
"plural": false,
|
|
321
|
+
"selections": [{
|
|
322
|
+
"alias": null,
|
|
323
|
+
"args": null,
|
|
324
|
+
"kind": "ScalarField",
|
|
325
|
+
"name": "endCursor",
|
|
326
|
+
"storageKey": null
|
|
327
|
+
}, {
|
|
328
|
+
"alias": null,
|
|
329
|
+
"args": null,
|
|
330
|
+
"kind": "ScalarField",
|
|
331
|
+
"name": "hasNextPage",
|
|
332
|
+
"storageKey": null
|
|
333
|
+
}],
|
|
334
|
+
"storageKey": null
|
|
335
|
+
}],
|
|
336
|
+
"storageKey": null
|
|
337
|
+
}, {
|
|
338
|
+
"alias": null,
|
|
339
|
+
"args": v4,
|
|
340
|
+
"filters": null,
|
|
341
|
+
"handle": "connection",
|
|
342
|
+
"key": "ActivityLogTimeline_activityDeliveries",
|
|
343
|
+
"kind": "LinkedHandle",
|
|
344
|
+
"name": "activityDeliveries"
|
|
345
|
+
}],
|
|
346
|
+
"type": "Instance",
|
|
347
|
+
"abstractKey": null
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"storageKey": null
|
|
351
|
+
}]
|
|
352
|
+
},
|
|
353
|
+
"params": {
|
|
354
|
+
"cacheID": "ca404a26308ae155ead7fad6f6fe5838",
|
|
355
|
+
"id": null,
|
|
356
|
+
"metadata": {},
|
|
357
|
+
"name": "ActivityLogTimelinePaginationQuery",
|
|
358
|
+
"operationKind": "query",
|
|
359
|
+
"text": "query ActivityLogTimelinePaginationQuery(\n $count: Int = 20\n $cursor: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ActivityLogTimeline_instance_1G22uz\n id\n }\n}\n\nfragment ActivityLogBox_log on ActivityDelivery {\n direction\n type\n objectType\n objectIri\n actor {\n iri\n id\n }\n remoteActorIri\n recipientIris\n inboxUrl\n status\n created\n payload\n rawBody\n}\n\nfragment ActivityLogTimeline_instance_1G22uz on Instance {\n activityDeliveries(first: $count, after: $cursor) {\n edges {\n node {\n id\n direction\n ...ActivityLogBox_log\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n}\n"
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
}();
|
|
363
|
+
node$2.hash = "5b70d39b022f7852a531954d14d3df43";
|
|
364
|
+
/**
|
|
365
|
+
* @generated SignedSource<<690ba13cc31a7ba38aba6ac440c1a832>>
|
|
366
|
+
* @lightSyntaxTransform
|
|
367
|
+
*/
|
|
368
|
+
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;
|
|
369
|
+
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;
|
|
370
|
+
var node$1 = function() {
|
|
371
|
+
var v0 = ["activityDeliveries"], v1 = {
|
|
372
|
+
"alias": null,
|
|
373
|
+
"args": null,
|
|
374
|
+
"kind": "ScalarField",
|
|
375
|
+
"name": "id",
|
|
376
|
+
"storageKey": null
|
|
377
|
+
};
|
|
378
|
+
return {
|
|
379
|
+
"argumentDefinitions": [{
|
|
380
|
+
"defaultValue": 20,
|
|
381
|
+
"kind": "LocalArgument",
|
|
382
|
+
"name": "count"
|
|
383
|
+
}, {
|
|
384
|
+
"defaultValue": null,
|
|
385
|
+
"kind": "LocalArgument",
|
|
386
|
+
"name": "cursor"
|
|
387
|
+
}],
|
|
388
|
+
"kind": "Fragment",
|
|
389
|
+
"metadata": {
|
|
390
|
+
"connection": [{
|
|
391
|
+
"count": "count",
|
|
392
|
+
"cursor": "cursor",
|
|
393
|
+
"direction": "forward",
|
|
394
|
+
"path": v0
|
|
395
|
+
}],
|
|
396
|
+
"refetch": {
|
|
397
|
+
"connection": {
|
|
398
|
+
"forward": {
|
|
399
|
+
"count": "count",
|
|
400
|
+
"cursor": "cursor"
|
|
401
|
+
},
|
|
402
|
+
"backward": null,
|
|
403
|
+
"path": v0
|
|
404
|
+
},
|
|
405
|
+
"fragmentPathInResult": ["node"],
|
|
406
|
+
"operation": node$2,
|
|
407
|
+
"identifierInfo": {
|
|
408
|
+
"identifierField": "id",
|
|
409
|
+
"identifierQueryVariableName": "id"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"throwOnFieldError": true
|
|
413
|
+
},
|
|
414
|
+
"name": "ActivityLogTimeline_instance",
|
|
415
|
+
"selections": [{
|
|
416
|
+
"alias": "activityDeliveries",
|
|
417
|
+
"args": null,
|
|
418
|
+
"concreteType": "InstanceActivityDeliveriesConnection",
|
|
419
|
+
"kind": "LinkedField",
|
|
420
|
+
"name": "__ActivityLogTimeline_activityDeliveries_connection",
|
|
421
|
+
"plural": false,
|
|
422
|
+
"selections": [{
|
|
423
|
+
"alias": null,
|
|
424
|
+
"args": null,
|
|
425
|
+
"concreteType": "InstanceActivityDeliveriesConnectionEdge",
|
|
426
|
+
"kind": "LinkedField",
|
|
427
|
+
"name": "edges",
|
|
428
|
+
"plural": true,
|
|
429
|
+
"selections": [{
|
|
430
|
+
"alias": null,
|
|
431
|
+
"args": null,
|
|
432
|
+
"concreteType": "ActivityDelivery",
|
|
433
|
+
"kind": "LinkedField",
|
|
434
|
+
"name": "node",
|
|
435
|
+
"plural": false,
|
|
436
|
+
"selections": [
|
|
437
|
+
v1,
|
|
438
|
+
{
|
|
439
|
+
"alias": null,
|
|
440
|
+
"args": null,
|
|
441
|
+
"kind": "ScalarField",
|
|
442
|
+
"name": "direction",
|
|
443
|
+
"storageKey": null
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"args": null,
|
|
447
|
+
"kind": "FragmentSpread",
|
|
448
|
+
"name": "ActivityLogBox_log"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"alias": null,
|
|
452
|
+
"args": null,
|
|
453
|
+
"kind": "ScalarField",
|
|
454
|
+
"name": "__typename",
|
|
455
|
+
"storageKey": null
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"storageKey": null
|
|
459
|
+
}, {
|
|
460
|
+
"alias": null,
|
|
461
|
+
"args": null,
|
|
462
|
+
"kind": "ScalarField",
|
|
463
|
+
"name": "cursor",
|
|
464
|
+
"storageKey": null
|
|
465
|
+
}],
|
|
466
|
+
"storageKey": null
|
|
467
|
+
}, {
|
|
468
|
+
"alias": null,
|
|
469
|
+
"args": null,
|
|
470
|
+
"concreteType": "PageInfo",
|
|
471
|
+
"kind": "LinkedField",
|
|
472
|
+
"name": "pageInfo",
|
|
473
|
+
"plural": false,
|
|
474
|
+
"selections": [{
|
|
475
|
+
"alias": null,
|
|
476
|
+
"args": null,
|
|
477
|
+
"kind": "ScalarField",
|
|
478
|
+
"name": "endCursor",
|
|
479
|
+
"storageKey": null
|
|
480
|
+
}, {
|
|
481
|
+
"alias": null,
|
|
482
|
+
"args": null,
|
|
483
|
+
"kind": "ScalarField",
|
|
484
|
+
"name": "hasNextPage",
|
|
485
|
+
"storageKey": null
|
|
486
|
+
}],
|
|
487
|
+
"storageKey": null
|
|
488
|
+
}],
|
|
489
|
+
"storageKey": null
|
|
490
|
+
}, v1],
|
|
491
|
+
"type": "Instance",
|
|
492
|
+
"abstractKey": null
|
|
493
|
+
};
|
|
494
|
+
}();
|
|
495
|
+
node$1.hash = "5b70d39b022f7852a531954d14d3df43";
|
|
496
|
+
/**
|
|
497
|
+
* @generated SignedSource<<cdf2822634a9d7f00b78a2d591ba699b>>
|
|
498
|
+
* @lightSyntaxTransform
|
|
499
|
+
*/
|
|
500
|
+
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;
|
|
501
|
+
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;
|
|
502
|
+
var node = {
|
|
503
|
+
"argumentDefinitions": [],
|
|
504
|
+
"kind": "Fragment",
|
|
505
|
+
"metadata": { "throwOnFieldError": true },
|
|
506
|
+
"name": "ActivityLogBox_log",
|
|
507
|
+
"selections": [
|
|
508
|
+
{
|
|
509
|
+
"alias": null,
|
|
510
|
+
"args": null,
|
|
511
|
+
"kind": "ScalarField",
|
|
512
|
+
"name": "direction",
|
|
513
|
+
"storageKey": null
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"alias": null,
|
|
517
|
+
"args": null,
|
|
518
|
+
"kind": "ScalarField",
|
|
519
|
+
"name": "type",
|
|
520
|
+
"storageKey": null
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"alias": null,
|
|
524
|
+
"args": null,
|
|
525
|
+
"kind": "ScalarField",
|
|
526
|
+
"name": "objectType",
|
|
527
|
+
"storageKey": null
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"alias": null,
|
|
531
|
+
"args": null,
|
|
532
|
+
"kind": "ScalarField",
|
|
533
|
+
"name": "objectIri",
|
|
534
|
+
"storageKey": null
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"alias": null,
|
|
538
|
+
"args": null,
|
|
539
|
+
"concreteType": "Actor",
|
|
540
|
+
"kind": "LinkedField",
|
|
541
|
+
"name": "actor",
|
|
542
|
+
"plural": false,
|
|
543
|
+
"selections": [{
|
|
544
|
+
"alias": null,
|
|
545
|
+
"args": null,
|
|
546
|
+
"kind": "ScalarField",
|
|
547
|
+
"name": "iri",
|
|
548
|
+
"storageKey": null
|
|
549
|
+
}],
|
|
550
|
+
"storageKey": null
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"alias": null,
|
|
554
|
+
"args": null,
|
|
555
|
+
"kind": "ScalarField",
|
|
556
|
+
"name": "remoteActorIri",
|
|
557
|
+
"storageKey": null
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"alias": null,
|
|
561
|
+
"args": null,
|
|
562
|
+
"kind": "ScalarField",
|
|
563
|
+
"name": "recipientIris",
|
|
564
|
+
"storageKey": null
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"alias": null,
|
|
568
|
+
"args": null,
|
|
569
|
+
"kind": "ScalarField",
|
|
570
|
+
"name": "inboxUrl",
|
|
571
|
+
"storageKey": null
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"alias": null,
|
|
575
|
+
"args": null,
|
|
576
|
+
"kind": "ScalarField",
|
|
577
|
+
"name": "status",
|
|
578
|
+
"storageKey": null
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"alias": null,
|
|
582
|
+
"args": null,
|
|
583
|
+
"kind": "ScalarField",
|
|
584
|
+
"name": "created",
|
|
585
|
+
"storageKey": null
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"alias": null,
|
|
589
|
+
"args": null,
|
|
590
|
+
"kind": "ScalarField",
|
|
591
|
+
"name": "payload",
|
|
592
|
+
"storageKey": null
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"alias": null,
|
|
596
|
+
"args": null,
|
|
597
|
+
"kind": "ScalarField",
|
|
598
|
+
"name": "rawBody",
|
|
599
|
+
"storageKey": null
|
|
600
|
+
}
|
|
601
|
+
],
|
|
602
|
+
"type": "ActivityDelivery",
|
|
603
|
+
"abstractKey": null
|
|
604
|
+
};
|
|
605
|
+
node.hash = "67f4071f7548a93945f3330c11166484";
|
|
606
|
+
var activity_log_module_default = {
|
|
607
|
+
timeline: "_timeline_kas6p_19",
|
|
608
|
+
list: "_list_kas6p_27",
|
|
609
|
+
row: "_row_kas6p_35",
|
|
610
|
+
entry: "_entry_kas6p_41",
|
|
611
|
+
incoming: "_incoming_kas6p_45",
|
|
612
|
+
outgoing: "_outgoing_kas6p_49",
|
|
613
|
+
box: "_box_kas6p_53",
|
|
614
|
+
summary: "_summary_kas6p_59",
|
|
615
|
+
detailLine: "_detailLine_kas6p_64",
|
|
616
|
+
recipientLine: "_recipientLine_kas6p_69",
|
|
617
|
+
source: "_source_kas6p_73"
|
|
618
|
+
};
|
|
619
|
+
var _tmpl$$4 = [
|
|
620
|
+
"<div",
|
|
621
|
+
">",
|
|
622
|
+
"</div>"
|
|
623
|
+
];
|
|
624
|
+
var highlighter;
|
|
625
|
+
/**
|
|
626
|
+
* Render recorded source with JSON colours, or plain text for raw bodies.
|
|
627
|
+
* @returns Highlighted, escaped source markup.
|
|
628
|
+
*/
|
|
629
|
+
function ActivityLogSource(props) {
|
|
630
|
+
highlighter ??= createHighlighterCoreSync({
|
|
631
|
+
langs: [json_default],
|
|
632
|
+
themes: [github_light_default, github_dark_default],
|
|
633
|
+
engine: createJavaScriptRegexEngine()
|
|
634
|
+
});
|
|
635
|
+
const renderer = highlighter;
|
|
636
|
+
const html = createMemo(() => renderer.codeToHtml(props.source, {
|
|
637
|
+
lang: props.json ? "json" : "text",
|
|
638
|
+
themes: {
|
|
639
|
+
light: "github-light",
|
|
640
|
+
dark: "github-dark"
|
|
641
|
+
},
|
|
642
|
+
defaultColor: false
|
|
643
|
+
}));
|
|
644
|
+
return ssr(_tmpl$$4, ssrHydrationKey() + ssrAttribute("class", escape(activity_log_module_default.source, true), false), html());
|
|
645
|
+
}
|
|
646
|
+
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;
|
|
647
|
+
var _tmpl$$3 = [
|
|
648
|
+
"<p",
|
|
649
|
+
"><!--$-->",
|
|
650
|
+
"<!--/--><!--$-->",
|
|
651
|
+
"<!--/--></p>"
|
|
652
|
+
];
|
|
653
|
+
var _tmpl$2$3 = [
|
|
654
|
+
"<details",
|
|
655
|
+
"><summary",
|
|
656
|
+
"><strong><!--$-->",
|
|
657
|
+
"<!--/--><!--$-->",
|
|
658
|
+
"<!--/--></strong><span> · <!--$-->",
|
|
659
|
+
"<!--/--></span><!--$-->",
|
|
660
|
+
"<!--/--><span",
|
|
661
|
+
">From: <!--$-->",
|
|
662
|
+
"<!--/--></span><span",
|
|
663
|
+
">To: <!--$-->",
|
|
664
|
+
"<!--/--></span><time",
|
|
665
|
+
">",
|
|
666
|
+
"</time><span",
|
|
667
|
+
">",
|
|
668
|
+
"</span></summary><!--$-->",
|
|
669
|
+
"<!--/--></details>"
|
|
670
|
+
];
|
|
671
|
+
var _tmpl$3$2 = [
|
|
672
|
+
"<span",
|
|
673
|
+
">Object: <!--$-->",
|
|
674
|
+
"<!--/--></span>"
|
|
675
|
+
];
|
|
676
|
+
var _tmpl$4$2 = ["<p", ">No source recorded.</p>"];
|
|
677
|
+
/**
|
|
678
|
+
* Displays delivery endpoints and expands to show the recorded JSON-LD.
|
|
679
|
+
* @returns A keyboard-accessible activity disclosure.
|
|
680
|
+
*/
|
|
681
|
+
function ActivityLogBox(props) {
|
|
682
|
+
const data = createFragment(node, () => props.$log);
|
|
683
|
+
const [open, setOpen] = createSignal(false);
|
|
684
|
+
const source = createMemo(() => {
|
|
685
|
+
if (!open()) return "";
|
|
686
|
+
const log = data();
|
|
687
|
+
const payload = log?.payload;
|
|
688
|
+
return payload == void 0 ? log?.rawBody ?? void 0 : JSON.stringify(payload, void 0, 2);
|
|
689
|
+
});
|
|
690
|
+
const from = createMemo(() => {
|
|
691
|
+
const log = data();
|
|
692
|
+
if (log?.direction === "inbound") return log.remoteActorIri;
|
|
693
|
+
const payload = log?.payload;
|
|
694
|
+
const actor = payload != void 0 && typeof payload === "object" && "actor" in payload ? payload.actor : void 0;
|
|
695
|
+
return log?.actor?.iri ?? (typeof actor === "string" ? actor : void 0);
|
|
696
|
+
});
|
|
697
|
+
const to = createMemo(() => {
|
|
698
|
+
const log = data();
|
|
699
|
+
if (!log) return [];
|
|
700
|
+
if (log.direction === "inbound") return [log.actor?.iri ?? log.inboxUrl];
|
|
701
|
+
return log.recipientIris.length > 0 ? log.recipientIris : [log.inboxUrl];
|
|
702
|
+
});
|
|
703
|
+
return createComponent(Show, {
|
|
704
|
+
get when() {
|
|
705
|
+
return data();
|
|
706
|
+
},
|
|
707
|
+
children: (log) => ssr(_tmpl$2$3, ssrHydrationKey() + ssrAttribute("class", escape(activity_log_module_default.box, true), false), ssrAttribute("class", escape(activity_log_module_default.summary, true), false), escape(log().type ?? "Unknown activity"), log().objectType != void 0 && log().objectType !== "" ? `(${escape(log().objectType)})` : "", escape(log().status), escape(createComponent(Show, {
|
|
708
|
+
get when() {
|
|
709
|
+
return log().objectIri;
|
|
710
|
+
},
|
|
711
|
+
children: (iri) => ssr(_tmpl$3$2, ssrHydrationKey() + ssrAttribute("class", escape(activity_log_module_default.detailLine, true), false), escape(iri()))
|
|
712
|
+
})), ssrAttribute("class", escape(activity_log_module_default.detailLine, true), false), escape(from() ?? "Unknown sender"), ssrAttribute("class", escape(activity_log_module_default.recipientLine, true), false), escape(createComponent(For, {
|
|
713
|
+
get each() {
|
|
714
|
+
return to();
|
|
715
|
+
},
|
|
716
|
+
children: (iri, index) => [index() > 0 ? ", " : "", iri]
|
|
717
|
+
})), ssrAttribute("class", escape(activity_log_module_default.detailLine, true), false) + ssrAttribute("datetime", escape(log().created, true), false), escape(log().created), ssrAttribute("class", escape(activity_log_module_default.detailLine, true), false), open() ? "Hide source" : "View source", escape(createComponent(Show, {
|
|
718
|
+
get when() {
|
|
719
|
+
return open();
|
|
720
|
+
},
|
|
721
|
+
get children() {
|
|
722
|
+
return [ssr(_tmpl$$3, ssrHydrationKey(), log().direction === "inbound" && log().payload == void 0 ? "Raw received body" : "JSON-LD", log().direction === "outbound" ? " (before signing)" : ""), createComponent(Show, {
|
|
723
|
+
get when() {
|
|
724
|
+
return source() != void 0;
|
|
725
|
+
},
|
|
726
|
+
get fallback() {
|
|
727
|
+
return ssr(_tmpl$4$2, ssrHydrationKey());
|
|
728
|
+
},
|
|
729
|
+
get children() {
|
|
730
|
+
return [createComponent(CopyButton, {
|
|
731
|
+
get value() {
|
|
732
|
+
return source() ?? "";
|
|
733
|
+
},
|
|
734
|
+
label: "activity source"
|
|
735
|
+
}), createComponent(ActivityLogSource, {
|
|
736
|
+
get source() {
|
|
737
|
+
return source() ?? "";
|
|
738
|
+
},
|
|
739
|
+
get json() {
|
|
740
|
+
return log().payload != void 0;
|
|
741
|
+
}
|
|
742
|
+
})];
|
|
743
|
+
}
|
|
744
|
+
})];
|
|
745
|
+
}
|
|
746
|
+
})))
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
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;
|
|
750
|
+
var _tmpl$$2 = ["<p", " role=\"alert\">Could not load older logs. <button>Retry</button></p>"];
|
|
751
|
+
var _tmpl$2$2 = ["<output", ">Loading older logs…</output>"];
|
|
752
|
+
var _tmpl$3$1 = [
|
|
753
|
+
"<ul",
|
|
754
|
+
">",
|
|
755
|
+
"</ul>"
|
|
756
|
+
];
|
|
757
|
+
var _tmpl$4$1 = [
|
|
758
|
+
"<div",
|
|
759
|
+
"><section aria-label=\"Activity log history\" tabindex=\"0\"",
|
|
760
|
+
"><!--$-->",
|
|
761
|
+
"<!--/--><!--$-->",
|
|
762
|
+
"<!--/--><!--$-->",
|
|
763
|
+
"<!--/--></section></div>"
|
|
764
|
+
];
|
|
765
|
+
var _tmpl$5$1 = ["<p", ">No activity recorded yet.</p>"];
|
|
766
|
+
var _tmpl$6 = [
|
|
767
|
+
"<li",
|
|
768
|
+
"><div",
|
|
769
|
+
">",
|
|
770
|
+
"</div></li>"
|
|
771
|
+
];
|
|
772
|
+
/**
|
|
773
|
+
* A chronological delivery list that loads older entries when scrolled upward.
|
|
774
|
+
* @returns The shared scrollable activity timeline.
|
|
775
|
+
*/
|
|
776
|
+
function ActivityLogTimeline(props) {
|
|
777
|
+
const data = createPaginationFragment(node$1, () => props.$instance);
|
|
778
|
+
const entries = createMemo(() => (data()?.activityDeliveries.edges ?? []).toReversed());
|
|
779
|
+
const [failed, setFailed] = createSignal(false);
|
|
780
|
+
let frame;
|
|
781
|
+
createEffect(() => {
|
|
782
|
+
entries();
|
|
783
|
+
if (frame !== void 0) cancelAnimationFrame(frame);
|
|
784
|
+
frame = requestAnimationFrame(() => {});
|
|
785
|
+
});
|
|
786
|
+
onCleanup(() => {
|
|
787
|
+
if (frame !== void 0) cancelAnimationFrame(frame);
|
|
788
|
+
});
|
|
789
|
+
return ssr(_tmpl$4$1, ssrHydrationKey(), ssrAttribute("class", escape(activity_log_module_default.timeline, true), false), escape(createComponent(Show, {
|
|
790
|
+
get when() {
|
|
791
|
+
return failed();
|
|
792
|
+
},
|
|
793
|
+
get children() {
|
|
794
|
+
return ssr(_tmpl$$2, ssrHydrationKey());
|
|
795
|
+
}
|
|
796
|
+
})), escape(createComponent(Show, {
|
|
797
|
+
get when() {
|
|
798
|
+
return data.isLoadingNext;
|
|
799
|
+
},
|
|
800
|
+
get children() {
|
|
801
|
+
return ssr(_tmpl$2$2, ssrHydrationKey());
|
|
802
|
+
}
|
|
803
|
+
})), escape(createComponent(Show, {
|
|
804
|
+
get when() {
|
|
805
|
+
return entries().length > 0;
|
|
806
|
+
},
|
|
807
|
+
get fallback() {
|
|
808
|
+
return ssr(_tmpl$5$1, ssrHydrationKey());
|
|
809
|
+
},
|
|
810
|
+
get children() {
|
|
811
|
+
return ssr(_tmpl$3$1, ssrHydrationKey() + ssrAttribute("class", escape(activity_log_module_default.list, true), false), escape(createComponent(For, {
|
|
812
|
+
get each() {
|
|
813
|
+
return entries();
|
|
814
|
+
},
|
|
815
|
+
children: (edge) => ssr(_tmpl$6, ssrHydrationKey() + ssrAttribute("class", escape(activity_log_module_default.row, true), false), ssrAttribute("class", escape([activity_log_module_default.entry, edge.node.direction === "inbound" ? activity_log_module_default.incoming : activity_log_module_default.outgoing].join(" "), true), false), escape(createComponent(ActivityLogBox, { get $log() {
|
|
816
|
+
return edge.node;
|
|
817
|
+
} })))
|
|
818
|
+
})));
|
|
819
|
+
}
|
|
820
|
+
})));
|
|
821
|
+
}
|
|
822
|
+
var _tmpl$$1 = [
|
|
823
|
+
"<section",
|
|
824
|
+
" aria-labelledby=\"activity-log-title\"><h2 id=\"activity-log-title\">Activity log</h2><!--$-->",
|
|
825
|
+
"<!--/--></section>"
|
|
826
|
+
];
|
|
827
|
+
var _tmpl$2$1 = ["<p", ">Activity logs could not be loaded. Access requires instance membership or administrator permissions.</p>"];
|
|
828
|
+
/**
|
|
829
|
+
* Displays the instance's incoming and outgoing delivery logs.
|
|
830
|
+
* @returns The activity log section with a shared chronological timeline.
|
|
831
|
+
*/
|
|
832
|
+
function InstanceActivityLog(props) {
|
|
833
|
+
return ssr(_tmpl$$1, ssrHydrationKey(), escape(createComponent(ErrorBoundary, {
|
|
834
|
+
get fallback() {
|
|
835
|
+
return ssr(_tmpl$2$1, ssrHydrationKey());
|
|
836
|
+
},
|
|
837
|
+
get children() {
|
|
838
|
+
return createComponent(ActivityLogTimeline, { get $instance() {
|
|
839
|
+
return props.$instance;
|
|
840
|
+
} });
|
|
841
|
+
}
|
|
842
|
+
})));
|
|
843
|
+
}
|
|
844
|
+
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;
|
|
845
|
+
var _tmpl$ = ["<span", " aria-hidden=\"true\">←</span>"];
|
|
846
|
+
var _tmpl$2 = [
|
|
847
|
+
"<main",
|
|
848
|
+
"><!--$-->",
|
|
849
|
+
"<!--/--><p>Instance not found.</p></main>"
|
|
850
|
+
];
|
|
851
|
+
var _tmpl$3 = ["<span", " aria-hidden=\"true\">+</span>"];
|
|
852
|
+
var _tmpl$4 = [
|
|
853
|
+
"<main",
|
|
854
|
+
"><!--$-->",
|
|
855
|
+
"<!--/--><!--$-->",
|
|
856
|
+
"<!--/--><header",
|
|
857
|
+
"><h1>",
|
|
858
|
+
"</h1></header><section",
|
|
859
|
+
"><!--$-->",
|
|
860
|
+
"<!--/--><!--$-->",
|
|
861
|
+
"<!--/--></section><section",
|
|
862
|
+
" aria-labelledby=\"connection-title\"><div><p",
|
|
863
|
+
">Connection record</p><h2 id=\"connection-title\">Federation endpoints</h2></div><dl",
|
|
864
|
+
">",
|
|
865
|
+
"</dl></section><section",
|
|
866
|
+
" aria-labelledby=\"actors-title\"><header",
|
|
867
|
+
"><div><p",
|
|
868
|
+
">Local identities</p><h2 id=\"actors-title\">Actors</h2></div><p><!--$-->",
|
|
869
|
+
"<!--/--> registered</p></header><div",
|
|
870
|
+
">",
|
|
871
|
+
"</div></section><!--$-->",
|
|
872
|
+
"<!--/--></main>"
|
|
873
|
+
];
|
|
874
|
+
var _tmpl$5 = [
|
|
875
|
+
"<div",
|
|
876
|
+
"><dt>",
|
|
877
|
+
"</dt><dd><a",
|
|
878
|
+
">",
|
|
879
|
+
"</a><!--$-->",
|
|
880
|
+
"<!--/--></dd></div>"
|
|
881
|
+
];
|
|
882
|
+
var id$$ = "src/routes/instance/[slug].tsx?pick=default&pick=$css&lang.tsx";
|
|
883
|
+
var instanceDetailQuery = node$4;
|
|
884
|
+
/**
|
|
885
|
+
* The federation endpoints worth linking to from an instance's page.
|
|
886
|
+
*
|
|
887
|
+
* Built from the origin the server reports rather than from the host name
|
|
888
|
+
* alone, so that a development instance links to the port it is actually
|
|
889
|
+
* served on instead of an `https:` URL that answers nowhere.
|
|
890
|
+
* @param origin The instance's absolute origin.
|
|
891
|
+
* @returns The endpoints, in the order they are shown.
|
|
892
|
+
*/
|
|
893
|
+
function endpoints(origin) {
|
|
894
|
+
return [
|
|
895
|
+
{
|
|
896
|
+
label: "NodeInfo",
|
|
897
|
+
url: `${origin}/nodeinfo/2.1`
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
label: "WebFinger",
|
|
901
|
+
url: `${origin}/.well-known/webfinger`
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
label: "Shared inbox",
|
|
905
|
+
url: `${origin}/inbox`
|
|
906
|
+
}
|
|
907
|
+
];
|
|
908
|
+
}
|
|
909
|
+
function InstanceDetailPage(props) {
|
|
910
|
+
const data = createPreloadedQuery(instanceDetailQuery, () => props.data);
|
|
911
|
+
const instanceData = () => data()?.localInstanceBySlug?.instance;
|
|
912
|
+
return createComponent(Show, {
|
|
913
|
+
get when() {
|
|
914
|
+
return instanceData();
|
|
915
|
+
},
|
|
916
|
+
get fallback() {
|
|
917
|
+
return ssr(_tmpl$2, ssrHydrationKey() + ssrAttribute("class", escape(instance_module_default.page, true), false), escape(createComponent(A, {
|
|
918
|
+
get ["class"]() {
|
|
919
|
+
return instance_module_default.backLink;
|
|
920
|
+
},
|
|
921
|
+
href: "/workspace",
|
|
922
|
+
get children() {
|
|
923
|
+
return [ssr(_tmpl$, ssrHydrationKey()), " All instances"];
|
|
924
|
+
}
|
|
925
|
+
})));
|
|
926
|
+
},
|
|
927
|
+
children: (instance) => ssr(_tmpl$4, ssrHydrationKey() + ssrAttribute("class", escape(instance_module_default.page, true), false), escape(createComponent(Title, { get children() {
|
|
928
|
+
return [instance().host, " — DrFed"];
|
|
929
|
+
} })), escape(createComponent(A, {
|
|
930
|
+
get ["class"]() {
|
|
931
|
+
return instance_module_default.backLink;
|
|
932
|
+
},
|
|
933
|
+
href: "/workspace",
|
|
934
|
+
get children() {
|
|
935
|
+
return [ssr(_tmpl$, ssrHydrationKey()), " All instances"];
|
|
936
|
+
}
|
|
937
|
+
})), ssrAttribute("class", escape(instance_module_default.header, true), false), escape(instance().host), ssrAttribute("class", escape(instance_module_default.toolbar, true), false), escape(createComponent(A, {
|
|
938
|
+
get ["class"]() {
|
|
939
|
+
return instance_module_default.createButton;
|
|
940
|
+
},
|
|
941
|
+
get href() {
|
|
942
|
+
return `/workspace/create/${instance().id}/objects`;
|
|
943
|
+
},
|
|
944
|
+
get children() {
|
|
945
|
+
return [ssr(_tmpl$3, ssrHydrationKey()), "Object"];
|
|
946
|
+
}
|
|
947
|
+
})), escape(createComponent(A, {
|
|
948
|
+
get ["class"]() {
|
|
949
|
+
return instance_module_default.createButton;
|
|
950
|
+
},
|
|
951
|
+
get href() {
|
|
952
|
+
return `/workspace/create/${instance().id}/actors`;
|
|
953
|
+
},
|
|
954
|
+
get children() {
|
|
955
|
+
return [ssr(_tmpl$3, ssrHydrationKey()), "Actor"];
|
|
956
|
+
}
|
|
957
|
+
})), ssrAttribute("class", escape(instance_module_default.details, true), false), ssrAttribute("class", escape(instance_module_default.sectionLabel, true), false), ssrAttribute("class", escape(instance_module_default.endpointList, true), false), escape(createComponent(For, {
|
|
958
|
+
get each() {
|
|
959
|
+
return endpoints(instance().url);
|
|
960
|
+
},
|
|
961
|
+
children: ({ label, url }) => ssr(_tmpl$5, ssrHydrationKey(), escape(label), ssrAttribute("href", escape(url, true), false), escape(url), escape(createComponent(CopyButton, {
|
|
962
|
+
value: url,
|
|
963
|
+
label
|
|
964
|
+
})))
|
|
965
|
+
})), ssrAttribute("class", escape(instance_module_default.actors, true), false), ssrAttribute("class", escape(instance_module_default.sectionHeader, true), false), ssrAttribute("class", escape(instance_module_default.sectionLabel, true), false), escape(instance().actors.totalCount), ssrAttribute("class", escape(instance_module_default.actorList, true), false), escape(createComponent(For, {
|
|
966
|
+
get each() {
|
|
967
|
+
return instance().actors.edges;
|
|
968
|
+
},
|
|
969
|
+
children: (edge) => createComponent(ActorCard, { get $actor() {
|
|
970
|
+
return edge.node;
|
|
971
|
+
} })
|
|
972
|
+
})), escape(createComponent(InstanceActivityLog, { get $instance() {
|
|
973
|
+
return instance();
|
|
974
|
+
} })))
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
//#endregion
|
|
978
|
+
export { InstanceDetailPage as default, id$$ };
|