@eventcatalog/core 2.0.9 → 2.0.11
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/.all-contributorsrc +364 -0
- package/CHANGELOG.md +13 -0
- package/README.md +3 -0
- package/bin/dist/chunk-62DEEFN2.js +48 -0
- package/bin/dist/eventcatalog.cjs +1 -1
- package/bin/dist/eventcatalog.config.cjs +18 -0
- package/bin/dist/eventcatalog.config.d.cts +26 -0
- package/bin/dist/eventcatalog.config.d.ts +26 -0
- package/bin/dist/eventcatalog.js +7 -42
- package/bin/eventcatalog.config.ts +25 -0
- package/package.json +1 -1
- package/src/components/DocsNavigation.astro +20 -2
- package/src/utils/config/catalog.ts +18 -0
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projectName": "eventcatalog",
|
|
3
|
+
"projectOwner": "event-catalog",
|
|
4
|
+
"repoType": "github",
|
|
5
|
+
"repoHost": "https://github.com",
|
|
6
|
+
"files": [
|
|
7
|
+
"README.md"
|
|
8
|
+
],
|
|
9
|
+
"imageSize": 100,
|
|
10
|
+
"commit": true,
|
|
11
|
+
"commitConvention": "none",
|
|
12
|
+
"contributors": [
|
|
13
|
+
{
|
|
14
|
+
"login": "boyney123",
|
|
15
|
+
"name": "David Boyne",
|
|
16
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/3268013?v=4",
|
|
17
|
+
"profile": "https://boyney.io/",
|
|
18
|
+
"contributions": [
|
|
19
|
+
"code",
|
|
20
|
+
"content",
|
|
21
|
+
"design",
|
|
22
|
+
"example",
|
|
23
|
+
"ideas",
|
|
24
|
+
"doc"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"login": "otbe",
|
|
29
|
+
"name": "Benjamin Otto",
|
|
30
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/3391052?v=4",
|
|
31
|
+
"profile": "https://otbe.io",
|
|
32
|
+
"contributions": [
|
|
33
|
+
"code",
|
|
34
|
+
"ideas",
|
|
35
|
+
"doc",
|
|
36
|
+
"bug"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"login": "pongz79",
|
|
41
|
+
"name": "Tiago Oliveira",
|
|
42
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/250872?v=4",
|
|
43
|
+
"profile": "https://github.com/pongz79",
|
|
44
|
+
"contributions": [
|
|
45
|
+
"doc",
|
|
46
|
+
"bug"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"login": "jaymcguinness",
|
|
51
|
+
"name": "Jay McGuinness",
|
|
52
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/11387911?v=4",
|
|
53
|
+
"profile": "https://www.bigjump.com/",
|
|
54
|
+
"contributions": [
|
|
55
|
+
"doc"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"login": "davidkpiano",
|
|
60
|
+
"name": "David Khourshid",
|
|
61
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/1093738?v=4",
|
|
62
|
+
"profile": "https://github.com/davidkpiano",
|
|
63
|
+
"contributions": [
|
|
64
|
+
"doc"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"login": "thim81",
|
|
69
|
+
"name": "thim81",
|
|
70
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/952446?v=4",
|
|
71
|
+
"profile": "https://github.com/thim81",
|
|
72
|
+
"contributions": [
|
|
73
|
+
"ideas",
|
|
74
|
+
"bug",
|
|
75
|
+
"code"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"login": "Muthuveerappanv",
|
|
80
|
+
"name": "Muthu",
|
|
81
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/33663725?v=4",
|
|
82
|
+
"profile": "https://github.com/Muthuveerappanv",
|
|
83
|
+
"contributions": [
|
|
84
|
+
"bug"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"login": "tavelli",
|
|
89
|
+
"name": "Dan Tavelli",
|
|
90
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/484951?v=4",
|
|
91
|
+
"profile": "https://github.com/tavelli",
|
|
92
|
+
"contributions": [
|
|
93
|
+
"doc"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"login": "steppi91",
|
|
98
|
+
"name": "steppi91",
|
|
99
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/25939641?v=4",
|
|
100
|
+
"profile": "https://github.com/steppi91",
|
|
101
|
+
"contributions": [
|
|
102
|
+
"doc"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"login": "donaldpipowitch",
|
|
107
|
+
"name": "Donald Pipowitch",
|
|
108
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/1152805?v=4",
|
|
109
|
+
"profile": "https://twitter.com/PipoPeperoni",
|
|
110
|
+
"contributions": [
|
|
111
|
+
"bug",
|
|
112
|
+
"code"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"login": "kzhen",
|
|
117
|
+
"name": "Ken",
|
|
118
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/2233210?v=4",
|
|
119
|
+
"profile": "http://unravelled.dev",
|
|
120
|
+
"contributions": [
|
|
121
|
+
"doc"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"login": "rtoro",
|
|
126
|
+
"name": "Rodolfo Toro",
|
|
127
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/5186897?v=4",
|
|
128
|
+
"profile": "http://rtoro.cl",
|
|
129
|
+
"contributions": [
|
|
130
|
+
"code"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"login": "drub0y",
|
|
135
|
+
"name": "Drew Marsh",
|
|
136
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/284152?v=4",
|
|
137
|
+
"profile": "http://blog.hackedbrain.com",
|
|
138
|
+
"contributions": [
|
|
139
|
+
"code"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"login": "dpwdec",
|
|
144
|
+
"name": "Dec Kolakowski",
|
|
145
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/51292634?v=4",
|
|
146
|
+
"profile": "https://github.com/dpwdec",
|
|
147
|
+
"contributions": [
|
|
148
|
+
"code",
|
|
149
|
+
"doc"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"login": "dytyniuk",
|
|
154
|
+
"name": "Yevhenii Dytyniuk",
|
|
155
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/1890615?v=4",
|
|
156
|
+
"profile": "https://github.com/dytyniuk",
|
|
157
|
+
"contributions": [
|
|
158
|
+
"code"
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"login": "lcsbltm",
|
|
163
|
+
"name": "lcsbltm",
|
|
164
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/25868958?v=4",
|
|
165
|
+
"profile": "https://github.com/lcsbltm",
|
|
166
|
+
"contributions": [
|
|
167
|
+
"code"
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"login": "martzcodes",
|
|
172
|
+
"name": "Matt Martz",
|
|
173
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/978362?v=4",
|
|
174
|
+
"profile": "https://matt.martz.codes",
|
|
175
|
+
"contributions": [
|
|
176
|
+
"code"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"login": "michelgrootjans",
|
|
181
|
+
"name": "Michel Grootjans",
|
|
182
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/345770?v=4",
|
|
183
|
+
"profile": "https://github.com/michelgrootjans",
|
|
184
|
+
"contributions": [
|
|
185
|
+
"code"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"login": "arturoabruzzini",
|
|
190
|
+
"name": "Arturo Abruzzini",
|
|
191
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/17528406?v=4",
|
|
192
|
+
"profile": "https://github.com/arturoabruzzini",
|
|
193
|
+
"contributions": [
|
|
194
|
+
"code"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"login": "adlecluse",
|
|
199
|
+
"name": "Ad L'Ecluse",
|
|
200
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/13390934?v=4",
|
|
201
|
+
"profile": "https://github.com/adlecluse",
|
|
202
|
+
"contributions": [
|
|
203
|
+
"code"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"login": "rafaelrenanpacheco",
|
|
208
|
+
"name": "Rafael Renan Pacheco",
|
|
209
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/12160864?v=4",
|
|
210
|
+
"profile": "https://github.com/rafaelrenanpacheco",
|
|
211
|
+
"contributions": [
|
|
212
|
+
"code",
|
|
213
|
+
"doc"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"login": "ldiego73",
|
|
218
|
+
"name": "Luis Diego",
|
|
219
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/394222?v=4",
|
|
220
|
+
"profile": "https://ldiego73.github.io/",
|
|
221
|
+
"contributions": [
|
|
222
|
+
"code"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"login": "DanielRuf",
|
|
227
|
+
"name": "Daniel Ruf",
|
|
228
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/827205?v=4",
|
|
229
|
+
"profile": "https://www.linkedin.com/in/danielruf/",
|
|
230
|
+
"contributions": [
|
|
231
|
+
"doc"
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"login": "frenkan",
|
|
236
|
+
"name": "Fredrik Johansson",
|
|
237
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/859840?v=4",
|
|
238
|
+
"profile": "https://github.com/frenkan",
|
|
239
|
+
"contributions": [
|
|
240
|
+
"code"
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "Naresh Kumar Reddy Gaddam",
|
|
245
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/2576375?v=4",
|
|
246
|
+
"profile": "https://gaddam1987.github.io/",
|
|
247
|
+
"login": "gaddam1987",
|
|
248
|
+
"contributions": [
|
|
249
|
+
"code"
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"login": "dremonkey",
|
|
254
|
+
"name": "Andre Deutmeyer",
|
|
255
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/480159?v=4",
|
|
256
|
+
"profile": "https://github.com/dremonkey",
|
|
257
|
+
"contributions": [
|
|
258
|
+
"code"
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"login": "pebbz",
|
|
263
|
+
"name": "Pebbz",
|
|
264
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/1685464?v=4",
|
|
265
|
+
"profile": "https://github.com/pebbz",
|
|
266
|
+
"contributions": [
|
|
267
|
+
"code"
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"login": "aholbreich",
|
|
272
|
+
"name": "Alexander Holbreich",
|
|
273
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/16252784?v=4",
|
|
274
|
+
"profile": "https://alexander.holbreich.org/",
|
|
275
|
+
"contributions": [
|
|
276
|
+
"doc"
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"login": "jslim",
|
|
281
|
+
"name": "José Delgado",
|
|
282
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/30370263?v=4",
|
|
283
|
+
"profile": "https://www.josedelgadoing.com/",
|
|
284
|
+
"contributions": [
|
|
285
|
+
"code"
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"login": "jlee-spt",
|
|
290
|
+
"name": "jlee-spt",
|
|
291
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/135801616?v=4",
|
|
292
|
+
"profile": "https://github.com/jlee-spt",
|
|
293
|
+
"contributions": [
|
|
294
|
+
"code"
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"login": "kimrejstrom",
|
|
299
|
+
"name": "Kim Rejström",
|
|
300
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/26428365?v=4",
|
|
301
|
+
"profile": "https://github.com/kimrejstrom",
|
|
302
|
+
"contributions": [
|
|
303
|
+
"code"
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"login": "cgabard",
|
|
308
|
+
"name": "Christophe Gabard",
|
|
309
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6103932?v=4",
|
|
310
|
+
"profile": "https://github.com/cgabard",
|
|
311
|
+
"contributions": [
|
|
312
|
+
"code"
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"login": "WaYdotNET",
|
|
317
|
+
"name": "Carlo Bertini",
|
|
318
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/197466?v=4",
|
|
319
|
+
"profile": "http://www.waydotnet.com",
|
|
320
|
+
"contributions": [
|
|
321
|
+
"code"
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"login": "dreglad",
|
|
326
|
+
"name": "David Regla",
|
|
327
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/50302?v=4",
|
|
328
|
+
"profile": "https://github.com/dreglad",
|
|
329
|
+
"contributions": [
|
|
330
|
+
"code"
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"login": "marciovmartins",
|
|
335
|
+
"name": "Marcio Vinicius",
|
|
336
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6377735?v=4",
|
|
337
|
+
"profile": "https://blogdomarcioweb.wordpress.com/",
|
|
338
|
+
"contributions": [
|
|
339
|
+
"code"
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"login": "danielcastill0",
|
|
344
|
+
"name": "Daniel Andres Castillo Ardila",
|
|
345
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/40574235?v=4",
|
|
346
|
+
"profile": "https://github.com/danielcastill0",
|
|
347
|
+
"contributions": [
|
|
348
|
+
"code"
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"login": "debae",
|
|
353
|
+
"name": "Baerten Dennis",
|
|
354
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/2007116?v=4",
|
|
355
|
+
"profile": "http://www.ennovative-solutions.be",
|
|
356
|
+
"contributions": [
|
|
357
|
+
"code"
|
|
358
|
+
]
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"contributorsPerLine": 7,
|
|
362
|
+
"skipCi": true,
|
|
363
|
+
"commitType": "docs"
|
|
364
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @eventcatalog/core
|
|
2
2
|
|
|
3
|
+
## 2.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 45ea9f6: feat(core): added types file for eventcatalog.config.js
|
|
8
|
+
|
|
9
|
+
## 2.0.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 62422dd: fix to build
|
|
14
|
+
- 1c42b9f: feat(core): added ability to hide resources in sidebar
|
|
15
|
+
|
|
3
16
|
## 2.0.9
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
[![MIT License][license-badge]][license]
|
|
27
27
|
[![PRs Welcome][prs-badge]][prs]
|
|
28
|
+
[](#contributors-)
|
|
28
29
|
|
|
29
30
|
[Read the Docs](https://eventcatalog.dev/) | [Edit the Docs](https://github.com/event-catalog/docs) | [View Demo](https://demo.eventcatalog.dev/docs)
|
|
30
31
|
|
|
@@ -189,7 +190,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
189
190
|
</tr>
|
|
190
191
|
<tr>
|
|
191
192
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/danielcastill0"><img src="https://avatars.githubusercontent.com/u/40574235?v=4?s=100" width="100px;" alt="Daniel Andres Castillo Ardila"/><br /><sub><b>Daniel Andres Castillo Ardila</b></sub></a><br /><a href="https://github.com/boyney123/eventcatalog/commits?author=danielcastill0" title="Code">💻</a></td>
|
|
193
|
+
<td align="center" valign="top" width="14.28%"><a href="http://www.ennovative-solutions.be"><img src="https://avatars.githubusercontent.com/u/2007116?v=4?s=100" width="100px;" alt="Baerten Dennis"/><br /><sub><b>Baerten Dennis</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=debae" title="Code">💻</a></td>
|
|
192
194
|
</tr>
|
|
195
|
+
|
|
193
196
|
</tbody>
|
|
194
197
|
</table>
|
|
195
198
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
+
});
|
|
13
|
+
var __esm = (fn, res) => function __init() {
|
|
14
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
15
|
+
};
|
|
16
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
17
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
18
|
+
};
|
|
19
|
+
var __copyProps = (to, from, except, desc) => {
|
|
20
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
21
|
+
for (let key of __getOwnPropNames(from))
|
|
22
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
23
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
24
|
+
}
|
|
25
|
+
return to;
|
|
26
|
+
};
|
|
27
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
28
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
33
|
+
mod
|
|
34
|
+
));
|
|
35
|
+
|
|
36
|
+
// node_modules/tsup/assets/esm_shims.js
|
|
37
|
+
var init_esm_shims = __esm({
|
|
38
|
+
"node_modules/tsup/assets/esm_shims.js"() {
|
|
39
|
+
"use strict";
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
__require,
|
|
45
|
+
__commonJS,
|
|
46
|
+
__toESM,
|
|
47
|
+
init_esm_shims
|
|
48
|
+
};
|
|
@@ -3107,7 +3107,7 @@ var copyCore = () => {
|
|
|
3107
3107
|
});
|
|
3108
3108
|
};
|
|
3109
3109
|
program2.command("dev").description("Run development server of EventCatalog").option("-d, --debug", "Output EventCatalog application information into your terminal").action((options) => {
|
|
3110
|
-
console.log("Setting up EventCatalog
|
|
3110
|
+
console.log("Setting up EventCatalog....");
|
|
3111
3111
|
if (options.debug) {
|
|
3112
3112
|
console.log("Debug mode enabled");
|
|
3113
3113
|
console.log("PROJECT_DIR", dir);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// bin/eventcatalog.config.ts
|
|
17
|
+
var eventcatalog_config_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(eventcatalog_config_exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type SideBarConfig = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
};
|
|
4
|
+
interface Config {
|
|
5
|
+
title: string;
|
|
6
|
+
tagline: false;
|
|
7
|
+
organizationName: string;
|
|
8
|
+
homepageLink: string;
|
|
9
|
+
editUrl: string;
|
|
10
|
+
logo: {
|
|
11
|
+
alt: string;
|
|
12
|
+
src: string;
|
|
13
|
+
};
|
|
14
|
+
docs: {
|
|
15
|
+
sidebar: {
|
|
16
|
+
showPageHeadings: true;
|
|
17
|
+
services?: SideBarConfig;
|
|
18
|
+
messages?: SideBarConfig;
|
|
19
|
+
domains?: SideBarConfig;
|
|
20
|
+
teams?: SideBarConfig;
|
|
21
|
+
users?: SideBarConfig;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type { Config };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type SideBarConfig = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
};
|
|
4
|
+
interface Config {
|
|
5
|
+
title: string;
|
|
6
|
+
tagline: false;
|
|
7
|
+
organizationName: string;
|
|
8
|
+
homepageLink: string;
|
|
9
|
+
editUrl: string;
|
|
10
|
+
logo: {
|
|
11
|
+
alt: string;
|
|
12
|
+
src: string;
|
|
13
|
+
};
|
|
14
|
+
docs: {
|
|
15
|
+
sidebar: {
|
|
16
|
+
showPageHeadings: true;
|
|
17
|
+
services?: SideBarConfig;
|
|
18
|
+
messages?: SideBarConfig;
|
|
19
|
+
domains?: SideBarConfig;
|
|
20
|
+
teams?: SideBarConfig;
|
|
21
|
+
users?: SideBarConfig;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type { Config };
|
package/bin/dist/eventcatalog.js
CHANGED
|
@@ -1,45 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
-
}) : x)(function(x) {
|
|
11
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
-
});
|
|
14
|
-
var __esm = (fn, res) => function __init() {
|
|
15
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
-
};
|
|
17
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
-
for (let key of __getOwnPropNames(from))
|
|
23
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
-
mod
|
|
35
|
-
));
|
|
36
|
-
|
|
37
|
-
// node_modules/tsup/assets/esm_shims.js
|
|
38
|
-
var init_esm_shims = __esm({
|
|
39
|
-
"node_modules/tsup/assets/esm_shims.js"() {
|
|
40
|
-
"use strict";
|
|
41
|
-
}
|
|
42
|
-
});
|
|
2
|
+
import {
|
|
3
|
+
__commonJS,
|
|
4
|
+
__require,
|
|
5
|
+
__toESM,
|
|
6
|
+
init_esm_shims
|
|
7
|
+
} from "./chunk-62DEEFN2.js";
|
|
43
8
|
|
|
44
9
|
// node_modules/commander/lib/error.js
|
|
45
10
|
var require_error = __commonJS({
|
|
@@ -3109,7 +3074,7 @@ var copyCore = () => {
|
|
|
3109
3074
|
});
|
|
3110
3075
|
};
|
|
3111
3076
|
program2.command("dev").description("Run development server of EventCatalog").option("-d, --debug", "Output EventCatalog application information into your terminal").action((options) => {
|
|
3112
|
-
console.log("Setting up EventCatalog
|
|
3077
|
+
console.log("Setting up EventCatalog....");
|
|
3113
3078
|
if (options.debug) {
|
|
3114
3079
|
console.log("Debug mode enabled");
|
|
3115
3080
|
console.log("PROJECT_DIR", dir);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type SideBarConfig = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
export interface Config {
|
|
6
|
+
title: string;
|
|
7
|
+
tagline: false;
|
|
8
|
+
organizationName: string;
|
|
9
|
+
homepageLink: string;
|
|
10
|
+
editUrl: string;
|
|
11
|
+
logo: {
|
|
12
|
+
alt: string;
|
|
13
|
+
src: string;
|
|
14
|
+
};
|
|
15
|
+
docs: {
|
|
16
|
+
sidebar: {
|
|
17
|
+
showPageHeadings: true;
|
|
18
|
+
services?: SideBarConfig;
|
|
19
|
+
messages?: SideBarConfig;
|
|
20
|
+
domains?: SideBarConfig;
|
|
21
|
+
teams?: SideBarConfig;
|
|
22
|
+
users?: SideBarConfig;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { getEvents } from '@utils/events';
|
|
|
5
5
|
import { getServices } from '@utils/services/services';
|
|
6
6
|
import { getTeams } from '@utils/teams';
|
|
7
7
|
import { getUsers } from '@utils/users';
|
|
8
|
-
import config from '@eventcatalog';
|
|
8
|
+
import config, { type CatalogConfig } from '@eventcatalog';
|
|
9
9
|
|
|
10
10
|
const events = await getEvents({ getAllVersions: false });
|
|
11
11
|
const commands = await getCommands({ getAllVersions: false });
|
|
@@ -18,8 +18,24 @@ const messages = [...events, ...commands];
|
|
|
18
18
|
|
|
19
19
|
const allData = [ ...domains, ...services, ...messages, ...teams, ...users];
|
|
20
20
|
|
|
21
|
+
const eventCatalogConfig = config as CatalogConfig;
|
|
22
|
+
const { services: servicesConfig, domains: domainsConfig, messages: messagesConfig, teams: teamsConfig, users: usersConfig, showPageHeadings = true } = eventCatalogConfig?.docs?.sidebar || {};
|
|
23
|
+
|
|
24
|
+
const getConfigValue = (obj: any, key:string, defaultValue: any) => {
|
|
25
|
+
return obj?.[key] ?? defaultValue;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const visibleCollections = {
|
|
29
|
+
events: getConfigValue(messagesConfig, 'visible', true),
|
|
30
|
+
commands: getConfigValue(messagesConfig, 'visible', true),
|
|
31
|
+
domains: getConfigValue(domainsConfig, 'visible', true),
|
|
32
|
+
services: getConfigValue(servicesConfig, 'visible', true),
|
|
33
|
+
teams: getConfigValue(teamsConfig, 'visible', true),
|
|
34
|
+
users: getConfigValue(usersConfig, 'visible', true),
|
|
35
|
+
};
|
|
36
|
+
|
|
21
37
|
const fetchHeadings = allData.map(async (item) => {
|
|
22
|
-
const renderHeadings =
|
|
38
|
+
const renderHeadings = showPageHeadings;
|
|
23
39
|
const headings = renderHeadings ? await item.render() : { headings: []};
|
|
24
40
|
return {
|
|
25
41
|
...item,
|
|
@@ -41,6 +57,7 @@ const sideNav = withHeadings.reduce((acc, item) => {
|
|
|
41
57
|
label: item.data.name,
|
|
42
58
|
version: item.collection === 'teams' || item.collection === 'users' ? null : item.data.version,
|
|
43
59
|
items: item.collection === 'users' ? [] : item.headings,
|
|
60
|
+
visible: visibleCollections[item.collection],
|
|
44
61
|
// @ts-ignore
|
|
45
62
|
href: item.data.version ? `/docs/${item.collection}/${item.data.id}/${item.data.version}` : `/docs/${item.collection}/${item.data.id}`,
|
|
46
63
|
};
|
|
@@ -61,6 +78,7 @@ const currentPath = Astro.url.pathname;
|
|
|
61
78
|
{
|
|
62
79
|
Object.keys(sideNav).map((key) => {
|
|
63
80
|
const collection = sideNav[key];
|
|
81
|
+
if(collection[0] && collection[0].visible === false) return null;
|
|
64
82
|
return (
|
|
65
83
|
<ul class=" w-full space-y-2 pb-8">
|
|
66
84
|
<li class="font-semibold capitalize ">{key}</li>
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
import * as config from '@config';
|
|
2
|
+
|
|
3
|
+
type SideBarItemConfig = {
|
|
4
|
+
visible?: boolean;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type CatalogConfig = {
|
|
8
|
+
docs: {
|
|
9
|
+
sidebar: {
|
|
10
|
+
showPageHeadings?: boolean;
|
|
11
|
+
domains: SideBarItemConfig;
|
|
12
|
+
services: SideBarItemConfig;
|
|
13
|
+
messages: SideBarItemConfig;
|
|
14
|
+
teams: SideBarItemConfig;
|
|
15
|
+
users: SideBarItemConfig;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
|
|
2
20
|
export default config.default;
|