@eventcatalog/core 2.20.0 → 2.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-3C6KBZOA.js → chunk-IMSJ6ZK2.js} +1 -1
- package/dist/{chunk-I5QQKYHU.js → chunk-IXGDS55I.js} +1 -1
- package/dist/{chunk-PCV7T4HR.js → chunk-P4LJB7KO.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +3 -3
- package/package.json +1 -1
- package/eventcatalog/src/pages/directory/index.astro +0 -242
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-IMSJ6ZK2.js";
|
|
4
|
+
import "../chunk-IXGDS55I.js";
|
|
5
|
+
import "../chunk-P4LJB7KO.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
package/dist/eventcatalog.js
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-SHCMAL37.js";
|
|
4
4
|
import {
|
|
5
5
|
log_build_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-IMSJ6ZK2.js";
|
|
7
|
+
import "./chunk-IXGDS55I.js";
|
|
8
8
|
import {
|
|
9
9
|
catalogToAstro
|
|
10
10
|
} from "./chunk-WF34R5UT.js";
|
|
11
11
|
import {
|
|
12
12
|
VERSION
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-P4LJB7KO.js";
|
|
14
14
|
import {
|
|
15
15
|
generate
|
|
16
16
|
} from "./chunk-YEQVKHST.js";
|
package/package.json
CHANGED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import VerticalSideBarLayout from '../../layouts/VerticalSideBarLayout.astro';
|
|
3
|
-
import { getUsers } from '@utils/users';
|
|
4
|
-
import { getTeams } from '@utils/teams';
|
|
5
|
-
|
|
6
|
-
const users = await getUsers();
|
|
7
|
-
const teams = await getTeams();
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
<VerticalSideBarLayout title="EventCatalog">
|
|
11
|
-
<body class="min-h-screen bg-gray-50">
|
|
12
|
-
<main>
|
|
13
|
-
<div class="container mx-auto px-6 py-20 max-w-[90em]">
|
|
14
|
-
<div class="mb-12">
|
|
15
|
-
<h1 class="text-3xl font-bold text-gray-900 mb-8">Users</h1>
|
|
16
|
-
<div class="bg-white shadow-sm rounded-lg overflow-hidden">
|
|
17
|
-
<table class="min-w-full divide-y divide-gray-200">
|
|
18
|
-
<thead class="bg-gray-50">
|
|
19
|
-
<tr>
|
|
20
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Name</th>
|
|
21
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Role</th>
|
|
22
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</th
|
|
23
|
-
>
|
|
24
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
|
|
25
|
-
>Contact</th
|
|
26
|
-
>
|
|
27
|
-
</tr>
|
|
28
|
-
</thead>
|
|
29
|
-
<tbody class="bg-white divide-y divide-gray-200">
|
|
30
|
-
{
|
|
31
|
-
users.map((user: any) => (
|
|
32
|
-
<tr class="hover:bg-gray-50">
|
|
33
|
-
<td class="px-6 py-4 whitespace-nowrap">
|
|
34
|
-
<a href={`/docs/users/${user.data.id}`} class="flex items-center">
|
|
35
|
-
<div class="flex-shrink-0 h-10 w-10">
|
|
36
|
-
<div class="h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center overflow-hidden">
|
|
37
|
-
{user.data.avatarUrl ? (
|
|
38
|
-
<img src={user.data.avatarUrl} alt={user.data.name} class="h-10 w-10 object-cover" />
|
|
39
|
-
) : (
|
|
40
|
-
<svg
|
|
41
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
42
|
-
class="h-5 w-5 text-blue-600"
|
|
43
|
-
fill="none"
|
|
44
|
-
viewBox="0 0 24 24"
|
|
45
|
-
stroke="currentColor"
|
|
46
|
-
>
|
|
47
|
-
<path
|
|
48
|
-
stroke-linecap="round"
|
|
49
|
-
stroke-linejoin="round"
|
|
50
|
-
stroke-width="2"
|
|
51
|
-
d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"
|
|
52
|
-
/>
|
|
53
|
-
</svg>
|
|
54
|
-
)}
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
<div class="ml-4">
|
|
58
|
-
<div class="text-sm font-medium text-gray-900">{user.data.name}</div>
|
|
59
|
-
</div>
|
|
60
|
-
</a>
|
|
61
|
-
</td>
|
|
62
|
-
<td class="px-6 py-4">
|
|
63
|
-
<div class="text-sm text-gray-900">{user.data.role}</div>
|
|
64
|
-
</td>
|
|
65
|
-
<td class="px-6 py-4 whitespace-nowrap">
|
|
66
|
-
{user.data.email && <div class="text-sm text-gray-900">{user.data.email}</div>}
|
|
67
|
-
</td>
|
|
68
|
-
<td class="px-6 py-4 whitespace-nowrap">
|
|
69
|
-
<div class="flex items-center space-x-2">
|
|
70
|
-
{user.data.slackDirectMessageUrl && (
|
|
71
|
-
<a
|
|
72
|
-
href={user.data.slackDirectMessageUrl}
|
|
73
|
-
target="_blank"
|
|
74
|
-
rel="noopener"
|
|
75
|
-
class="text-gray-500 hover:text-gray-700"
|
|
76
|
-
>
|
|
77
|
-
<svg class="h-5 w-5" viewBox="0 0 24 24" fill="currentColor">
|
|
78
|
-
<path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z" />
|
|
79
|
-
</svg>
|
|
80
|
-
</a>
|
|
81
|
-
)}
|
|
82
|
-
{user.data.msTeamsDirectMessageUrl && (
|
|
83
|
-
<a
|
|
84
|
-
href={user.data.msTeamsDirectMessageUrl}
|
|
85
|
-
target="_blank"
|
|
86
|
-
rel="noopener"
|
|
87
|
-
class="text-gray-500 hover:text-gray-700"
|
|
88
|
-
>
|
|
89
|
-
<svg class="h-5 w-5" viewBox="0 0 24 24" fill="currentColor">
|
|
90
|
-
<path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" />
|
|
91
|
-
</svg>
|
|
92
|
-
</a>
|
|
93
|
-
)}
|
|
94
|
-
</div>
|
|
95
|
-
</td>
|
|
96
|
-
</tr>
|
|
97
|
-
))
|
|
98
|
-
}
|
|
99
|
-
</tbody>
|
|
100
|
-
</table>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
<div class="mb-12">
|
|
105
|
-
<h1 class="text-3xl font-bold text-gray-900 mb-8">Teams</h1>
|
|
106
|
-
<div class="bg-white shadow-sm rounded-lg overflow-hidden">
|
|
107
|
-
<table class="min-w-full divide-y divide-gray-200">
|
|
108
|
-
<thead class="bg-gray-50">
|
|
109
|
-
<tr>
|
|
110
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Name</th>
|
|
111
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
|
|
112
|
-
>Summary</th
|
|
113
|
-
>
|
|
114
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
|
|
115
|
-
>Members</th
|
|
116
|
-
>
|
|
117
|
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
|
|
118
|
-
>Contact</th
|
|
119
|
-
>
|
|
120
|
-
</tr>
|
|
121
|
-
</thead>
|
|
122
|
-
<tbody class="bg-white divide-y divide-gray-200">
|
|
123
|
-
{
|
|
124
|
-
teams.map((team: any) => (
|
|
125
|
-
<tr class="hover:bg-gray-50">
|
|
126
|
-
<td class="px-6 py-4 whitespace-nowrap">
|
|
127
|
-
<a href={`/docs/teams/${team.data.id}`} class="flex items-center">
|
|
128
|
-
<div class="flex-shrink-0 h-10 w-10">
|
|
129
|
-
<div class="h-10 w-10 bg-green-100 rounded-full flex items-center justify-center overflow-hidden">
|
|
130
|
-
{team.data.avatarUrl ? (
|
|
131
|
-
<img src={team.data.avatarUrl} alt={team.data.name} class="h-10 w-10 object-cover" />
|
|
132
|
-
) : (
|
|
133
|
-
<svg
|
|
134
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
135
|
-
class="h-5 w-5 text-green-600"
|
|
136
|
-
fill="none"
|
|
137
|
-
viewBox="0 0 24 24"
|
|
138
|
-
stroke="currentColor"
|
|
139
|
-
>
|
|
140
|
-
<path
|
|
141
|
-
stroke-linecap="round"
|
|
142
|
-
stroke-linejoin="round"
|
|
143
|
-
stroke-width="2"
|
|
144
|
-
d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"
|
|
145
|
-
/>
|
|
146
|
-
</svg>
|
|
147
|
-
)}
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
<div class="ml-4">
|
|
151
|
-
<div class="text-sm font-medium text-gray-900">{team.data.name}</div>
|
|
152
|
-
</div>
|
|
153
|
-
</a>
|
|
154
|
-
</td>
|
|
155
|
-
<td class="px-6 py-4">
|
|
156
|
-
<div class="text-sm text-gray-900">{team.data.summary}</div>
|
|
157
|
-
</td>
|
|
158
|
-
<td class="px-6 py-4 whitespace-nowrap">
|
|
159
|
-
{team.data.members && <div class="text-sm text-gray-900">{team.data.members.length} members</div>}
|
|
160
|
-
</td>
|
|
161
|
-
<td class="px-6 py-4 whitespace-nowrap">
|
|
162
|
-
<div class="flex items-center space-x-2">
|
|
163
|
-
{team.data.slackDirectMessageUrl && (
|
|
164
|
-
<a
|
|
165
|
-
href={team.data.slackDirectMessageUrl}
|
|
166
|
-
target="_blank"
|
|
167
|
-
rel="noopener"
|
|
168
|
-
class="text-gray-500 hover:text-gray-700"
|
|
169
|
-
>
|
|
170
|
-
<svg class="h-5 w-5" viewBox="0 0 24 24" fill="currentColor">
|
|
171
|
-
<path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z" />
|
|
172
|
-
</svg>
|
|
173
|
-
</a>
|
|
174
|
-
)}
|
|
175
|
-
{team.data.msTeamsDirectMessageUrl && (
|
|
176
|
-
<a
|
|
177
|
-
href={team.data.msTeamsDirectMessageUrl}
|
|
178
|
-
target="_blank"
|
|
179
|
-
rel="noopener"
|
|
180
|
-
class="text-gray-500 hover:text-gray-700"
|
|
181
|
-
>
|
|
182
|
-
<svg class="h-5 w-5" viewBox="0 0 24 24" fill="currentColor">
|
|
183
|
-
<path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" />
|
|
184
|
-
</svg>
|
|
185
|
-
</a>
|
|
186
|
-
)}
|
|
187
|
-
</div>
|
|
188
|
-
</td>
|
|
189
|
-
</tr>
|
|
190
|
-
))
|
|
191
|
-
}
|
|
192
|
-
</tbody>
|
|
193
|
-
</table>
|
|
194
|
-
</div>
|
|
195
|
-
</div>
|
|
196
|
-
</div>
|
|
197
|
-
</main>
|
|
198
|
-
</body>
|
|
199
|
-
</VerticalSideBarLayout>
|
|
200
|
-
|
|
201
|
-
<style>
|
|
202
|
-
.filter-btn.active {
|
|
203
|
-
background-color: #f3f4f6;
|
|
204
|
-
color: #111827;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.filter-btn {
|
|
208
|
-
color: #6b7280;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.filter-btn:hover {
|
|
212
|
-
color: #111827;
|
|
213
|
-
}
|
|
214
|
-
</style>
|
|
215
|
-
|
|
216
|
-
<script>
|
|
217
|
-
const filterButtons = document.querySelectorAll('.filter-btn');
|
|
218
|
-
const rows = document.querySelectorAll('tr[data-type]');
|
|
219
|
-
|
|
220
|
-
filterButtons.forEach((button) => {
|
|
221
|
-
button.addEventListener('click', () => {
|
|
222
|
-
filterButtons.forEach((btn) => btn.classList.remove('active'));
|
|
223
|
-
button.classList.add('active');
|
|
224
|
-
|
|
225
|
-
const filter = button.getAttribute('data-filter');
|
|
226
|
-
|
|
227
|
-
rows.forEach((row) => {
|
|
228
|
-
if (filter === 'all') {
|
|
229
|
-
row.style.display = 'table-row';
|
|
230
|
-
} else {
|
|
231
|
-
const rowType = row.getAttribute('data-type');
|
|
232
|
-
row.style.display = rowType === filter ? 'table-row' : 'none';
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
|
|
238
|
-
const defaultButton = document.querySelector('[data-filter="all"]');
|
|
239
|
-
if (defaultButton) {
|
|
240
|
-
defaultButton.classList.add('active');
|
|
241
|
-
}
|
|
242
|
-
</script>
|