@eventcatalog/core 2.14.3 → 2.16.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/README.md +2 -1
- package/bin/eventcatalog.js +2 -0
- package/default-files-for-collections/ubiquitousLanguages.md +7 -0
- package/dist/analytics/analytics.cjs +71 -0
- package/dist/analytics/analytics.d.cts +3 -0
- package/dist/analytics/analytics.d.ts +3 -0
- package/dist/analytics/analytics.js +7 -0
- package/dist/analytics/log-build.cjs +155 -0
- package/dist/analytics/log-build.d.cts +7 -0
- package/dist/analytics/log-build.d.ts +7 -0
- package/dist/analytics/log-build.js +9 -0
- package/dist/catalog-to-astro-content-directory.cjs +286 -0
- package/dist/catalog-to-astro-content-directory.d.cts +3 -0
- package/dist/catalog-to-astro-content-directory.d.ts +3 -0
- package/dist/catalog-to-astro-content-directory.js +8 -0
- package/dist/chunk-55YPRY5U.js +87 -0
- package/dist/chunk-5RNDOKYT.js +97 -0
- package/dist/chunk-6VJTKPOS.js +30 -0
- package/dist/chunk-BT6ILNB3.js +33 -0
- package/dist/chunk-DMGFALQN.js +9 -0
- package/dist/chunk-E7TXTI7G.js +78 -0
- package/{scripts/watcher.js → dist/chunk-NTCYOR4N.js} +29 -52
- package/dist/chunk-YEQVKHST.js +56 -0
- package/dist/constants.cjs +35 -0
- package/dist/constants.d.cts +3 -0
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +6 -0
- package/dist/eventcatalog-config-file-utils.cjs +116 -0
- package/dist/eventcatalog-config-file-utils.d.cts +7 -0
- package/dist/eventcatalog-config-file-utils.d.ts +7 -0
- package/dist/eventcatalog-config-file-utils.js +14 -0
- package/{bin/dist → dist}/eventcatalog.cjs +35 -36
- package/{bin/dist → dist}/eventcatalog.config.cjs +1 -1
- package/dist/eventcatalog.config.js +0 -0
- package/dist/eventcatalog.d.cts +2 -0
- package/dist/eventcatalog.d.ts +2 -0
- package/dist/eventcatalog.js +116 -0
- package/dist/generate.cjs +121 -0
- package/dist/generate.d.cts +3 -0
- package/dist/generate.d.ts +3 -0
- package/dist/generate.js +7 -0
- package/dist/map-catalog-to-astro.cjs +131 -0
- package/dist/map-catalog-to-astro.d.cts +28 -0
- package/dist/map-catalog-to-astro.d.ts +28 -0
- package/dist/map-catalog-to-astro.js +6 -0
- package/dist/watcher.cjs +231 -0
- package/dist/watcher.d.cts +21 -0
- package/dist/watcher.d.ts +21 -0
- package/dist/watcher.js +8 -0
- package/{src → eventcatalog/src}/components/MDX/NodeGraph/Edges/AnimatedMessageEdge.tsx +1 -1
- package/{src → eventcatalog/src}/components/MDX/NodeGraph/NodeGraph.tsx +28 -38
- package/{src → eventcatalog/src}/components/MDX/SchemaViewer/SchemaViewer.astro +6 -1
- package/{src → eventcatalog/src}/components/SideBars/CatalogResourcesSideBar/index.tsx +19 -1
- package/{src → eventcatalog/src}/components/SideBars/DomainSideBar.astro +23 -0
- package/eventcatalog/src/components/Tables/columns/ServiceTableColumns.tsx +196 -0
- package/{src → eventcatalog/src}/content/config.ts +18 -0
- package/eventcatalog/src/hooks/eventcatalog-visualizer.ts +89 -0
- package/eventcatalog/src/pages/docs/[type]/[id]/language.astro +301 -0
- package/{src → eventcatalog/src}/utils/collections/domains.ts +17 -2
- package/{src → eventcatalog/src}/utils/collections/icons.ts +3 -0
- package/{src → eventcatalog/src}/utils/node-graphs/message-node-graph.ts +2 -27
- package/{src → eventcatalog/src}/utils/node-graphs/utils/utils.ts +60 -3
- package/package.json +12 -3
- package/.all-contributorsrc +0 -436
- package/.changeset/config.json +0 -11
- package/.github/CODEOWNERS +0 -3
- package/.github/ISSUE_TEMPLATE/bug.yml +0 -84
- package/.github/ISSUE_TEMPLATE/config.yml +0 -5
- package/.github/ISSUE_TEMPLATE/feature.yml +0 -48
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -14
- package/.github/funding.yml +0 -1
- package/.github/workflows/lint.yml +0 -22
- package/.github/workflows/release.yml +0 -34
- package/.github/workflows/test-bin.yml +0 -29
- package/.github/workflows/test-e2e.yml +0 -27
- package/.github/workflows/verify-build.yml +0 -28
- package/.prettierignore +0 -7
- package/.prettierrc +0 -18
- package/CHANGELOG.md +0 -1296
- package/bin/dist/eventcatalog.d.cts +0 -1
- package/bin/dist/eventcatalog.d.ts +0 -1
- package/bin/dist/eventcatalog.js +0 -531
- package/bin/eventcatalog.config.ts +0 -34
- package/images/example.png +0 -0
- package/images/sponsors/gravitee-logo-black.svg +0 -54
- package/images/sponsors/hookdeck.svg +0 -11
- package/images/sponsors/oso-logo-green.png +0 -0
- package/scripts/analytics/analytics.js +0 -31
- package/scripts/analytics/log-build.js +0 -26
- package/scripts/build-ci.js +0 -27
- package/scripts/catalog-to-astro-content-directory.js +0 -115
- package/scripts/ci/test.js +0 -24
- package/scripts/constants.ts +0 -3
- package/scripts/eventcatalog-config-file-utils.js +0 -89
- package/scripts/generate.js +0 -65
- package/scripts/map-catalog-to-astro.js +0 -174
- package/scripts/start-catalog-locally.js +0 -26
- package/src/components/Tables/columns/ServiceTableColumns.tsx +0 -164
- /package/{bin/dist → dist}/eventcatalog.config.d.cts +0 -0
- /package/{bin/dist → dist}/eventcatalog.config.d.ts +0 -0
- /package/{astro.config.mjs → eventcatalog/astro.config.mjs} +0 -0
- /package/{global.d.ts → eventcatalog/global.d.ts} +0 -0
- /package/{public → eventcatalog/public}/favicon.ico +0 -0
- /package/{public → eventcatalog/public}/icons/asyncapi.svg +0 -0
- /package/{public → eventcatalog/public}/icons/discord.svg +0 -0
- /package/{public → eventcatalog/public}/icons/github-purple.svg +0 -0
- /package/{public → eventcatalog/public}/icons/github.svg +0 -0
- /package/{public → eventcatalog/public}/icons/ms-teams.svg +0 -0
- /package/{public → eventcatalog/public}/icons/openapi.svg +0 -0
- /package/{public → eventcatalog/public}/icons/protocols/kafka.svg +0 -0
- /package/{public → eventcatalog/public}/icons/x-twitter.svg +0 -0
- /package/{public → eventcatalog/public}/icons/youtube.svg +0 -0
- /package/{public → eventcatalog/public}/logo.png +0 -0
- /package/{public → eventcatalog/public}/openapi.yml +0 -0
- /package/{public → eventcatalog/public}/opengraph.png +0 -0
- /package/{public → eventcatalog/public}/slack-icon.svg +0 -0
- /package/{src → eventcatalog/src}/components/DiscoverInsight.astro +0 -0
- /package/{src → eventcatalog/src}/components/DocsNavigation.astro +0 -0
- /package/{src → eventcatalog/src}/components/Header.astro +0 -0
- /package/{src → eventcatalog/src}/components/Lists/OwnersList.tsx +0 -0
- /package/{src → eventcatalog/src}/components/Lists/PillList.tsx +0 -0
- /package/{src → eventcatalog/src}/components/Lists/PillListFlat.styles.css +0 -0
- /package/{src → eventcatalog/src}/components/Lists/PillListFlat.tsx +0 -0
- /package/{src → eventcatalog/src}/components/Lists/ProtocolList.tsx +0 -0
- /package/{src → eventcatalog/src}/components/Lists/RepositoryList.astro +0 -0
- /package/{src → eventcatalog/src}/components/Lists/SpecificationsList.astro +0 -0
- /package/{src → eventcatalog/src}/components/Lists/VersionList.astro +0 -0
- /package/{src → eventcatalog/src}/components/MDX/Accordion/Accordion.astro +0 -0
- /package/{src → eventcatalog/src}/components/MDX/Accordion/Accordion.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/Accordion/AccordionGroup.astro +0 -0
- /package/{src → eventcatalog/src}/components/MDX/Admonition.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/AsyncAPI/AsyncAPI.astro +0 -0
- /package/{src → eventcatalog/src}/components/MDX/ChannelInformation/ChannelInformation.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/File.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/Flow/Flow.astro +0 -0
- /package/{src → eventcatalog/src}/components/MDX/NodeGraph/DownloadButton.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/NodeGraph/NodeGraph.astro +0 -0
- /package/{src → eventcatalog/src}/components/MDX/NodeGraph/NodeGraphPortal.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/NodeGraph/Nodes/Channel.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/NodeGraph/Nodes/Command.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/NodeGraph/Nodes/Event.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/NodeGraph/Nodes/ExternalSystem.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/NodeGraph/Nodes/Query.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/NodeGraph/Nodes/Service.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/NodeGraph/Nodes/Step.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/NodeGraph/Nodes/User.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/OpenAPI/OpenAPI.astro +0 -0
- /package/{src → eventcatalog/src}/components/MDX/Schema.astro +0 -0
- /package/{src → eventcatalog/src}/components/MDX/SchemaViewer/SchemaViewer.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/SchemaViewer/SchemaViewerPortal.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/Steps/Step.astro +0 -0
- /package/{src → eventcatalog/src}/components/MDX/Steps/Steps.astro +0 -0
- /package/{src → eventcatalog/src}/components/MDX/Tiles/Tile.astro +0 -0
- /package/{src → eventcatalog/src}/components/MDX/Tiles/Tiles.astro +0 -0
- /package/{src → eventcatalog/src}/components/MDX/components.tsx +0 -0
- /package/{src → eventcatalog/src}/components/MDX/page-components.tsx +0 -0
- /package/{src → eventcatalog/src}/components/Search.astro +0 -0
- /package/{src → eventcatalog/src}/components/Seo.astro +0 -0
- /package/{src → eventcatalog/src}/components/SideBars/CatalogResourcesSideBar/styles.css +0 -0
- /package/{src → eventcatalog/src}/components/SideBars/ChannelSideBar.astro +0 -0
- /package/{src → eventcatalog/src}/components/SideBars/MessageSideBar.astro +0 -0
- /package/{src → eventcatalog/src}/components/SideBars/ServiceSideBar.astro +0 -0
- /package/{src → eventcatalog/src}/components/Tables/DebouncedInput.tsx +0 -0
- /package/{src → eventcatalog/src}/components/Tables/Table.tsx +0 -0
- /package/{src → eventcatalog/src}/components/Tables/columns/DomainTableColumns.tsx +0 -0
- /package/{src → eventcatalog/src}/components/Tables/columns/FlowTableColumns.tsx +0 -0
- /package/{src → eventcatalog/src}/components/Tables/columns/MessageTableColumns.tsx +0 -0
- /package/{src → eventcatalog/src}/components/Tables/columns/index.tsx +0 -0
- /package/{src → eventcatalog/src}/components/Tables/filters/custom-filters.ts +0 -0
- /package/{src → eventcatalog/src}/env.d.ts +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/WebSocket.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/amqp.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/eventbridge.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/googlepubsub.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/http.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/index.ts +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/jms.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/kafka.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/mercure.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/mqtt.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/nats.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/pulsar.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/redis.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/sns.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/solace.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/sqs.svg +0 -0
- /package/{src → eventcatalog/src}/icons/protocols/ws.svg +0 -0
- /package/{src → eventcatalog/src}/layouts/CustomDocsPageLayout.astro +0 -0
- /package/{src → eventcatalog/src}/layouts/DiscoverLayout.astro +0 -0
- /package/{src → eventcatalog/src}/layouts/Footer.astro +0 -0
- /package/{src → eventcatalog/src}/layouts/PlainPage.astro +0 -0
- /package/{src → eventcatalog/src}/layouts/VerticalSideBarLayout.astro +0 -0
- /package/{src → eventcatalog/src}/layouts/VisualiserLayout.astro +0 -0
- /package/{src → eventcatalog/src}/pages/discover/[type]/index.astro +0 -0
- /package/{src → eventcatalog/src}/pages/docs/[type]/[id]/[version]/asyncapi/index.astro +0 -0
- /package/{src → eventcatalog/src}/pages/docs/[type]/[id]/[version]/changelog/index.astro +0 -0
- /package/{src → eventcatalog/src}/pages/docs/[type]/[id]/[version]/index.astro +0 -0
- /package/{src → eventcatalog/src}/pages/docs/[type]/[id]/[version]/spec/_styles.css +0 -0
- /package/{src → eventcatalog/src}/pages/docs/[type]/[id]/[version]/spec/index.astro +0 -0
- /package/{src → eventcatalog/src}/pages/docs/[type]/[id]/index.astro +0 -0
- /package/{src → eventcatalog/src}/pages/docs/index.astro +0 -0
- /package/{src → eventcatalog/src}/pages/docs/teams/[id]/index.astro +0 -0
- /package/{src → eventcatalog/src}/pages/docs/users/[id]/index.astro +0 -0
- /package/{src → eventcatalog/src}/pages/index.astro +0 -0
- /package/{src → eventcatalog/src}/pages/visualiser/[type]/[id]/[version]/index.astro +0 -0
- /package/{src → eventcatalog/src}/pages/visualiser/[type]/[id]/index.astro +0 -0
- /package/{src → eventcatalog/src}/remark-plugins/mermaid.ts +0 -0
- /package/{src → eventcatalog/src}/types/index.ts +0 -0
- /package/{src → eventcatalog/src}/utils/channels.ts +0 -0
- /package/{src → eventcatalog/src}/utils/collections/changelogs.ts +0 -0
- /package/{src → eventcatalog/src}/utils/collections/file-diffs.ts +0 -0
- /package/{src → eventcatalog/src}/utils/collections/flows.ts +0 -0
- /package/{src → eventcatalog/src}/utils/collections/services.ts +0 -0
- /package/{src → eventcatalog/src}/utils/collections/util.ts +0 -0
- /package/{src → eventcatalog/src}/utils/collections/versions.ts +0 -0
- /package/{src → eventcatalog/src}/utils/colors.ts +0 -0
- /package/{src → eventcatalog/src}/utils/commands.ts +0 -0
- /package/{src → eventcatalog/src}/utils/eventcatalog-config/catalog.ts +0 -0
- /package/{src → eventcatalog/src}/utils/events.ts +0 -0
- /package/{src → eventcatalog/src}/utils/example-remark-plugin.mjs +0 -0
- /package/{src → eventcatalog/src}/utils/messages.ts +0 -0
- /package/{src → eventcatalog/src}/utils/node-graphs/domains-node-graph.ts +0 -0
- /package/{src → eventcatalog/src}/utils/node-graphs/flows-node-graph.ts +0 -0
- /package/{src → eventcatalog/src}/utils/node-graphs/services-node-graph.ts +0 -0
- /package/{src → eventcatalog/src}/utils/page-loaders/page-data-loader.ts +0 -0
- /package/{src → eventcatalog/src}/utils/pages.ts +0 -0
- /package/{src → eventcatalog/src}/utils/queries.ts +0 -0
- /package/{src → eventcatalog/src}/utils/teams.ts +0 -0
- /package/{src → eventcatalog/src}/utils/url-builder.ts +0 -0
- /package/{src → eventcatalog/src}/utils/users.ts +0 -0
- /package/{tailwind.config.mjs → eventcatalog/tailwind.config.mjs} +0 -0
- /package/{tsconfig.json → eventcatalog/tsconfig.json} +0 -0
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { ServerIcon, BoltIcon, ChatBubbleLeftIcon } from '@heroicons/react/24/solid';
|
|
2
|
-
import { createColumnHelper } from '@tanstack/react-table';
|
|
3
|
-
import type { CollectionEntry } from 'astro:content';
|
|
4
|
-
import { useMemo } from 'react';
|
|
5
|
-
import { filterByName, filterCollectionByName } from '../filters/custom-filters';
|
|
6
|
-
import { buildUrl } from '@utils/url-builder';
|
|
7
|
-
import { getColorAndIconForMessageType } from './MessageTableColumns';
|
|
8
|
-
|
|
9
|
-
const columnHelper = createColumnHelper<CollectionEntry<'services'>>();
|
|
10
|
-
|
|
11
|
-
export const columns = () => [
|
|
12
|
-
columnHelper.accessor('data.name', {
|
|
13
|
-
id: 'name',
|
|
14
|
-
header: () => <span>Service</span>,
|
|
15
|
-
cell: (info) => {
|
|
16
|
-
const messageRaw = info.row.original;
|
|
17
|
-
const color = 'pink';
|
|
18
|
-
return (
|
|
19
|
-
<div className="group font-light">
|
|
20
|
-
<a
|
|
21
|
-
href={buildUrl(`/docs/${messageRaw.collection}/${messageRaw.data.id}/${messageRaw.data.version}`)}
|
|
22
|
-
className={`group-hover:text-${color}-500 flex space-x-1 items-center`}
|
|
23
|
-
>
|
|
24
|
-
<div className={`flex items-center border border-gray-300 shadow-sm rounded-md group-hover:border-${color}-400`}>
|
|
25
|
-
<span className="flex items-center">
|
|
26
|
-
<span className={`bg-${color}-500 group-hover:bg-${color}-600 h-full rounded-tl rounded-bl p-1`}>
|
|
27
|
-
<ServerIcon className="h-4 w-4 text-white" />
|
|
28
|
-
</span>
|
|
29
|
-
<span className="leading-none px-2 group-hover:underline group-hover:text-primary">
|
|
30
|
-
{messageRaw.data.name} (v{messageRaw.data.version})
|
|
31
|
-
</span>
|
|
32
|
-
</span>
|
|
33
|
-
</div>
|
|
34
|
-
</a>
|
|
35
|
-
</div>
|
|
36
|
-
);
|
|
37
|
-
},
|
|
38
|
-
meta: {
|
|
39
|
-
filterVariant: 'name',
|
|
40
|
-
},
|
|
41
|
-
filterFn: filterByName,
|
|
42
|
-
}),
|
|
43
|
-
// columnHelper.accessor('data.version', {
|
|
44
|
-
// header: () => <span>Version</span>,
|
|
45
|
-
// cell: (info) => {
|
|
46
|
-
// const service = info.row.original;
|
|
47
|
-
// return <div className="text-left">{`v${info.getValue()} ${service.data.latestVersion === service.data.version ? '(latest)': ''}`}</div>
|
|
48
|
-
// },
|
|
49
|
-
// footer: (info) => info.column.id,
|
|
50
|
-
// }),
|
|
51
|
-
columnHelper.accessor('data.summary', {
|
|
52
|
-
id: 'summary',
|
|
53
|
-
header: () => 'Summary',
|
|
54
|
-
cell: (info) => <span className="font-light ">{info.renderValue()}</span>,
|
|
55
|
-
footer: (info) => info.column.id,
|
|
56
|
-
meta: {
|
|
57
|
-
showFilter: false,
|
|
58
|
-
className: 'max-w-md',
|
|
59
|
-
},
|
|
60
|
-
}),
|
|
61
|
-
columnHelper.accessor('data.receives', {
|
|
62
|
-
header: () => <span>Receives</span>,
|
|
63
|
-
meta: {
|
|
64
|
-
filterVariant: 'collection',
|
|
65
|
-
collectionFilterKey: 'receives',
|
|
66
|
-
},
|
|
67
|
-
cell: (info) => {
|
|
68
|
-
const receives = info.getValue();
|
|
69
|
-
if (receives?.length === 0 || !receives)
|
|
70
|
-
return <div className="text-sm text-gray-400/80 text-left italic">Service receives no messages.</div>;
|
|
71
|
-
|
|
72
|
-
return (
|
|
73
|
-
<ul>
|
|
74
|
-
{receives.map((consumer: any, index: number) => {
|
|
75
|
-
const type = consumer.collection.slice(0, -1);
|
|
76
|
-
const { color, Icon } = useMemo(() => getColorAndIconForMessageType(type), [type]);
|
|
77
|
-
return (
|
|
78
|
-
<li key={`${consumer.data.id}-${index}`} className="py-1 group font-light ">
|
|
79
|
-
<a
|
|
80
|
-
href={buildUrl(`/docs/${consumer.collection}/${consumer.data.id}/${consumer.data.version}`)}
|
|
81
|
-
className="group-hover:text-primary flex space-x-1 items-center "
|
|
82
|
-
>
|
|
83
|
-
<div className={`flex items-center border border-gray-300 shadow-sm rounded-md`}>
|
|
84
|
-
<span className="flex items-center">
|
|
85
|
-
<span className={`bg-${color}-500 h-full rounded-tl rounded-bl p-1`}>
|
|
86
|
-
<Icon className="h-4 w-4 text-white" />
|
|
87
|
-
</span>
|
|
88
|
-
<span className="leading-none px-2 group-hover:underline ">
|
|
89
|
-
{consumer.data.name} (v{consumer.data.version})
|
|
90
|
-
</span>
|
|
91
|
-
</span>
|
|
92
|
-
</div>
|
|
93
|
-
</a>
|
|
94
|
-
</li>
|
|
95
|
-
);
|
|
96
|
-
})}
|
|
97
|
-
</ul>
|
|
98
|
-
);
|
|
99
|
-
},
|
|
100
|
-
// footer: (info) => info.column.id,
|
|
101
|
-
filterFn: filterCollectionByName('receives'),
|
|
102
|
-
}),
|
|
103
|
-
columnHelper.accessor('data.sends', {
|
|
104
|
-
header: () => <span>Sends</span>,
|
|
105
|
-
meta: {
|
|
106
|
-
filterVariant: 'collection',
|
|
107
|
-
collectionFilterKey: 'sends',
|
|
108
|
-
},
|
|
109
|
-
cell: (info) => {
|
|
110
|
-
const sends = info.getValue();
|
|
111
|
-
if (sends?.length === 0 || !sends)
|
|
112
|
-
return <div className="text-sm text-gray-400/80 text-left italic">Service sends no messages.</div>;
|
|
113
|
-
|
|
114
|
-
return (
|
|
115
|
-
<ul>
|
|
116
|
-
{sends.map((consumer: any, index: number) => {
|
|
117
|
-
const type = consumer.collection.slice(0, -1);
|
|
118
|
-
const color = type === 'event' ? 'orange' : 'blue';
|
|
119
|
-
const Icon = type === 'event' ? BoltIcon : ChatBubbleLeftIcon;
|
|
120
|
-
return (
|
|
121
|
-
<li key={`${consumer.data.id}-${index}`} className="py-1 group font-light">
|
|
122
|
-
<a
|
|
123
|
-
href={buildUrl(`/docs/${consumer.collection}/${consumer.data.id}/${consumer.data.version}`)}
|
|
124
|
-
className="group-hover:text-primary flex space-x-1 items-center "
|
|
125
|
-
>
|
|
126
|
-
<div className={`flex items-center border border-gray-300 shadow-sm rounded-md`}>
|
|
127
|
-
<span className="flex items-center">
|
|
128
|
-
<span className={`bg-${color}-500 h-full rounded-tl rounded-bl p-1`}>
|
|
129
|
-
<Icon className="h-4 w-4 text-white" />
|
|
130
|
-
</span>
|
|
131
|
-
<span className="leading-none px-2 group-hover:underline ">
|
|
132
|
-
{consumer.data.name} (v{consumer.data.version})
|
|
133
|
-
</span>
|
|
134
|
-
</span>
|
|
135
|
-
</div>
|
|
136
|
-
</a>
|
|
137
|
-
</li>
|
|
138
|
-
);
|
|
139
|
-
})}
|
|
140
|
-
</ul>
|
|
141
|
-
);
|
|
142
|
-
},
|
|
143
|
-
// footer: (info) => info.column.id,
|
|
144
|
-
filterFn: filterCollectionByName('sends'),
|
|
145
|
-
}),
|
|
146
|
-
columnHelper.accessor('data.name', {
|
|
147
|
-
header: () => <span />,
|
|
148
|
-
cell: (info) => {
|
|
149
|
-
const domain = info.row.original;
|
|
150
|
-
return (
|
|
151
|
-
<a
|
|
152
|
-
className="hover:text-primary hover:underline px-4 font-light"
|
|
153
|
-
href={buildUrl(`/visualiser/${domain.collection}/${domain.data.id}/${domain.data.version}`)}
|
|
154
|
-
>
|
|
155
|
-
Visualiser →
|
|
156
|
-
</a>
|
|
157
|
-
);
|
|
158
|
-
},
|
|
159
|
-
id: 'actions',
|
|
160
|
-
meta: {
|
|
161
|
-
showFilter: false,
|
|
162
|
-
},
|
|
163
|
-
}),
|
|
164
|
-
];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|