@eventcatalog/core 3.0.0-beta.14 → 3.0.0-beta.16
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-7F26ZV4O.js → chunk-EQMIHCA5.js} +1 -1
- package/dist/{chunk-65DCHZUQ.js → chunk-KW5ZUJJD.js} +1 -1
- package/dist/{chunk-YPTOTOIV.js → chunk-MBZDIUXZ.js} +1 -1
- package/dist/{chunk-5USO3QRB.js → chunk-QL7M5WVN.js} +1 -1
- package/dist/{chunk-4NW4G57L.js → chunk-QTR7XW2A.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 +5 -5
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/public/icons/asyncapi-black.svg +2 -0
- package/eventcatalog/public/icons/graphql-black.svg +1 -0
- package/eventcatalog/public/icons/openapi-black.svg +1 -0
- package/eventcatalog/src/components/SideNav/NestedSideBar/SearchBar.tsx +5 -2
- package/eventcatalog/src/components/SideNav/NestedSideBar/builders/service.ts +6 -3
- package/eventcatalog/src/components/SideNav/NestedSideBar/builders/shared.ts +1 -0
- package/eventcatalog/src/components/SideNav/NestedSideBar/index.tsx +1 -0
- package/eventcatalog/src/layouts/Footer.astro +8 -5
- package/eventcatalog/src/pages/_index.astro +2 -2
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/changelog/index.astro +7 -7
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/graphql/[filename].astro +1 -1
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +5 -5
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-EQMIHCA5.js";
|
|
4
|
+
import "../chunk-KW5ZUJJD.js";
|
|
5
|
+
import "../chunk-MBZDIUXZ.js";
|
|
6
6
|
import "../chunk-UPONRQSN.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
|
@@ -109,7 +109,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
109
109
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
110
110
|
|
|
111
111
|
// package.json
|
|
112
|
-
var version = "3.0.0-beta.
|
|
112
|
+
var version = "3.0.0-beta.16";
|
|
113
113
|
|
|
114
114
|
// src/constants.ts
|
|
115
115
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-EQMIHCA5.js";
|
|
10
|
+
import "./chunk-KW5ZUJJD.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrations
|
|
13
13
|
} from "./chunk-BH3JMNAV.js";
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
} from "./chunk-5VBIXL6C.js";
|
|
24
24
|
import {
|
|
25
25
|
generate
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QL7M5WVN.js";
|
|
27
27
|
import {
|
|
28
28
|
logger
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QTR7XW2A.js";
|
|
30
30
|
import {
|
|
31
31
|
VERSION
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MBZDIUXZ.js";
|
|
33
33
|
import "./chunk-UPONRQSN.js";
|
|
34
34
|
|
|
35
35
|
// src/eventcatalog.ts
|
package/dist/generate.cjs
CHANGED
|
@@ -73,7 +73,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
73
73
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
74
74
|
|
|
75
75
|
// package.json
|
|
76
|
-
var version = "3.0.0-beta.
|
|
76
|
+
var version = "3.0.0-beta.16";
|
|
77
77
|
|
|
78
78
|
// src/constants.ts
|
|
79
79
|
var VERSION = version;
|
package/dist/generate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-QL7M5WVN.js";
|
|
4
|
+
import "./chunk-QTR7XW2A.js";
|
|
5
|
+
import "./chunk-MBZDIUXZ.js";
|
|
6
6
|
import "./chunk-UPONRQSN.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 155.51 155.51"><defs><style>.cls-1{fill:"#000"}.cls-2{fill:'#000'}.cls-3{fill:"#000"}.cls-4{fill:"#000";}.cls-5{fill:#fff;}</style><linearGradient id="linear-gradient" x1="133.74" y1="21.76" x2="24.84" y2="130.67" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2dccfd"/><stop offset="1" stop-color="#ad20e2"/></linearGradient><linearGradient id="linear-gradient-2" x1="6471.36" y1="6969.64" x2="6362.46" y2="7078.54" gradientTransform="translate(7103.38 -6337.62) rotate(90)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a829e2"/><stop offset="0.05" stop-color="#a829e2" stop-opacity="0.84"/><stop offset="0.11" stop-color="#a829e2" stop-opacity="0.67"/><stop offset="0.18" stop-color="#a829e2" stop-opacity="0.51"/><stop offset="0.25" stop-color="#a829e2" stop-opacity="0.38"/><stop offset="0.33" stop-color="#a829e2" stop-opacity="0.28"/><stop offset="0.43" stop-color="#a829e2" stop-opacity="0.2"/><stop offset="0.54" stop-color="#a829e2" stop-opacity="0.14"/><stop offset="0.68" stop-color="#a829e2" stop-opacity="0.11"/><stop offset="1" stop-color="#a829e2" stop-opacity="0.1"/></linearGradient><linearGradient id="linear-gradient-3" x1="13419.24" y1="632.02" x2="13310.33" y2="740.92" gradientTransform="translate(13441 765.76) rotate(180)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#e50e99"/><stop offset="1" stop-color="#a829e2" stop-opacity="0.1"/></linearGradient><linearGradient id="linear-gradient-4" x1="138.74" y1="-7.39" x2="29.84" y2="101.52" gradientTransform="translate(-5 29.16)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#21d4fd"/><stop offset="0.03" stop-color="#27cdfc" stop-opacity="0.96"/><stop offset="0.23" stop-color="#4e9cf4" stop-opacity="0.7"/><stop offset="0.43" stop-color="#6e73ee" stop-opacity="0.49"/><stop offset="0.61" stop-color="#8753e9" stop-opacity="0.32"/><stop offset="0.77" stop-color="#993ce5" stop-opacity="0.2"/><stop offset="0.9" stop-color="#a42ee3" stop-opacity="0.13"/><stop offset="1" stop-color="#a829e2" stop-opacity="0.1"/></linearGradient></defs><rect class="cls-1" x="8.88" y="8.88" width="137.75" height="137.75" rx="32.58"/><rect class="cls-2" x="8.88" y="8.88" width="137.75" height="137.75" rx="32.58"/><rect class="cls-3" x="8.88" y="8.88" width="137.75" height="137.75" rx="32.58"/><rect class="cls-4" x="8.88" y="8.88" width="137.75" height="137.75" rx="32.58"/><g id="New_lines" data-name="New lines"><polygon class="cls-5" points="53.35 63.21 49.25 68.86 81.27 92.1 81.49 92.26 85.59 86.61 53.57 63.37 53.35 63.21"/><polygon class="cls-5" points="74.27 63.37 74.05 63.21 69.95 68.86 101.97 92.1 102.19 92.26 106.29 86.61 74.27 63.37"/><path class="cls-5" d="M77.78,34.29c-17.35,0-31.48,10.79-31.48,24.06v.27h7v-.27c0-9.42,11-17.08,24.5-17.08s24.51,7.66,24.51,17.08v.27h7v-.27C109.27,45.08,95.14,34.29,77.78,34.29Z"/><path class="cls-5" d="M102.23,97.16c0,9.42-11,17.08-24.51,17.08s-24.5-7.66-24.5-17.08v-.27h-7v.27c0,13.26,14.13,24,31.48,24s31.49-10.79,31.49-24v-.27h-7Z"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="-16 0 288 288" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g fill-rule="evenodd"> <path d="M152.575995,32.9634453 L211.722058,67.1124427 C213.387503,65.348329 215.332859,63.7907081 217.539734,62.5088708 C229.806457,55.4573413 245.452038,59.6441869 252.577021,71.9109101 C259.62855,84.1776333 255.441705,99.8232143 243.174982,106.948197 C240.984974,108.207124 238.684929,109.10784 236.343812,109.66832 L236.343812,177.99302 C238.659582,178.554683 240.934429,179.449686 243.101528,180.695443 C255.441705,187.820426 259.62855,203.466007 252.503568,215.73273 C245.452038,227.999453 229.733004,232.186299 217.46628,225.13477 C215.024105,223.730884 212.902189,221.983449 211.125456,219.988103 L152.340162,253.928803 C153.180519,256.46808 153.635248,259.18431 153.635248,262.008393 C153.635248,276.111452 142.176512,287.64364 128,287.64364 C113.823488,287.64364 102.364752,276.184905 102.364752,262.008393 C102.364752,259.488481 102.726802,257.054441 103.40181,254.755362 L44.2714887,220.615454 C42.6238257,222.34493 40.705394,223.873378 38.5337196,225.13477 C26.193543,232.186299 10.547962,227.999453 3.49643248,215.73273 C-3.55509701,203.466007 0.631748621,187.820426 12.8984718,180.695443 C15.0673397,179.448669 17.3418356,178.553222 19.6561876,177.991646 L19.6561876,109.66832 C17.3150714,109.10784 15.0150257,108.207124 12.8250184,106.948197 C0.558295189,99.8966677 -3.62855044,84.1776333 3.42297904,71.9109101 C10.4745085,59.6441869 26.193543,55.4573413 38.4602662,62.5088708 C40.6551374,63.7837361 42.5913269,65.3313931 44.2507413,67.0836756 L103.41276,32.9254664 C102.730718,30.6154532 102.364752,28.1687503 102.364752,25.6352478 C102.364752,11.4587354 113.823488,0 128,0 C142.176512,0 153.635248,11.4587354 153.635248,25.6352478 C153.635248,28.1826393 153.265258,30.6422768 152.575995,32.9634453 Z M146.413638,43.4848713 L205.700555,77.715193 C203.867899,84.1516888 204.540515,91.2885638 208.137694,97.5461579 C211.746601,103.824151 217.625783,107.985785 224.150543,109.607654 L224.150543,178.017842 C223.818032,178.099463 223.48718,178.187674 223.158201,178.282419 L145.72529,44.1686182 C145.959017,43.9450469 146.18851,43.7170876 146.413638,43.4848713 Z M110.29093,44.1841203 L32.8593279,178.295656 C32.524559,178.19844 32.1878611,178.108015 31.8494573,178.024438 L31.8494573,109.607654 C38.3742168,107.985785 44.2533992,103.824151 47.8623055,97.5461579 C51.466599,91.276189 52.1347497,84.1234583 50.2885426,77.6770157 L109.558747,43.4563434 C109.797913,43.7038019 110.042027,43.9464469 110.29093,44.1841203 Z M135.162749,50.259763 L212.576817,184.340928 C210.844241,185.99279 209.317376,187.91755 208.064241,190.097482 C206.818484,192.264581 205.923481,194.539429 205.361818,196.855198 L50.6395564,196.855198 C50.0779798,194.540846 49.1825333,192.26635 47.9357589,190.097482 C46.6776713,187.931497 45.1539248,186.017428 43.4300297,184.372667 L120.858821,50.2659993 C123.124941,50.9200822 125.520915,51.2704957 128,51.2704957 C130.486952,51.2704957 132.890265,50.9178547 135.162749,50.259763 Z M146.958084,244.737995 L205.860107,210.729899 C205.683398,210.174924 205.525483,209.614096 205.38664,209.048468 L50.6067643,209.048468 C50.5246888,209.380792 50.4360084,209.711472 50.3407792,210.040295 L109.531782,244.215239 C114.192298,239.378545 120.739739,236.373145 128,236.373145 C135.518379,236.373145 142.272352,239.596041 146.958084,244.737995 Z" fill="#000"> </path> </g> </g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g> <path d="M127.059657,255.996921 C58.8506544,255.526472 -0.457073619,198.918442 0.00265506057,126.998303 C0.444649399,57.7958628 57.9516598,-0.468967577 129.11002,0.00284555012 C198.267128,0.462386081 256.613109,57.8667711 255.995136,128.194199 C256.568091,197.883453 197.934268,256.489189 127.059657,255.996921 Z M127.059657,255.996921 C58.8506544,255.526472 -0.457073619,198.918442 0.00265506057,126.998303 C0.444649399,57.7958628 57.9516598,-0.468967577 129.11002,0.00284555012 C198.267128,0.462386081 256.613109,57.8667711 255.995136,128.194199 C256.568091,197.883453 197.934268,256.489189 127.059657,255.996921 Z" fill="#FFFFFF"> </path> <path d="M127.184644,238.997327 C68.0323765,238.589271 16.6036091,189.498744 17.0023028,127.131428 C17.3860285,67.1185953 67.2554,16.5917106 128.963117,17.0024872 C188.934544,17.4010221 239.531905,67.1825241 238.995778,128.169251 C239.492444,188.602381 188.64743,239.424426 127.184644,238.997327 Z M127.184644,238.997327 C68.0323765,238.589271 16.6036091,189.498744 17.0023028,127.131428 C17.3860285,67.1185953 67.2554,16.5917106 128.963117,17.0024872 C188.934544,17.4010221 239.531905,67.1825241 238.995778,128.169251 C239.492444,188.602381 188.64743,239.424426 127.184644,238.997327 Z" fill="#000"> </path> <path d="M169.327319,127.956161 C169.042723,133.246373 164.421106,137.639224 159.866213,136.872586 C159.844426,136.872586 159.821277,136.872586 159.798128,136.872586 C154.753021,136.879395 150.658383,132.794288 150.652936,127.749182 C150.824511,122.690458 155.019915,118.703395 160.08,118.789182 C165.125106,118.813692 169.59966,123.077182 169.327319,127.956161 Z M88.2011915,179.220161 C90.1034894,179.27599 92.0071489,179.235139 94.2008511,179.235139 L94.2008511,193.021012 C80.5661277,195.326373 69.3348085,191.455054 66.5787234,179.929607 C65.6350638,175.69199 65.0549787,171.380841 64.8425532,167.04382 C64.5497872,162.452161 65.0563404,157.808756 64.706383,153.225267 C63.7368511,140.613182 62.1028085,136.30748 50,135.711054 L50,120.014714 C50.8674043,119.81182 51.7470638,119.662033 52.6321702,119.562629 C59.2677447,119.23582 62.0646809,117.201437 63.5489362,110.665267 C64.2243404,106.992756 64.6246809,103.275309 64.7431489,99.5428839 C65.268766,92.3258627 65.0822128,84.991735 66.2845957,77.8918201 C68.0221277,67.6245861 74.3962553,62.6366712 84.9249362,62.0783733 C87.9206809,61.9176925 90.9259574,62.0538627 94.3206809,62.0538627 L94.3206809,76.1447563 C92.9235745,76.2441605 91.6435745,76.4470542 90.3717447,76.4089265 C81.7916596,76.146118 81.3477447,79.0683308 80.7213617,86.1709691 C80.3305532,90.6250967 80.8697872,95.1554797 80.5661277,99.6245861 C80.2488511,104.071905 79.6537872,108.496075 78.7850213,112.869863 C77.547234,119.208586 73.6500426,123.922799 68.2495319,127.92348 C78.7332766,134.745607 79.9261277,145.346458 80.6069787,156.110714 C80.9732766,161.895224 80.8057872,167.720586 81.3926809,173.476501 C81.8502128,177.944246 83.5877447,179.08399 88.2011915,179.220161 Z M97.0372766,118.789182 C97.0917447,118.789182 97.1448511,118.789182 97.1993191,118.789182 C102.211745,118.872246 106.209702,123.002288 106.126638,128.016075 C106.126638,128.180841 106.121191,128.344246 106.11166,128.50765 C105.829787,133.407054 101.630298,137.149012 96.7308936,136.867139 C96.5334468,136.871224 96.3373617,136.867139 96.1399149,136.857607 C91.1506383,136.609778 87.3065532,132.36399 87.554383,127.374714 C87.8022128,122.385437 92.048,118.541352 97.0372766,118.789182 Z M128.273362,118.789182 C133.755574,118.746969 137.396766,122.29965 137.425362,127.719224 C137.455319,133.284501 134.003404,136.845352 128.556596,136.868501 C123.017191,136.893012 119.370553,133.389352 119.340596,128.002458 C119.324255,127.727395 119.32017,127.452331 119.32834,127.177267 C119.482213,122.390884 123.486979,118.635309 128.273362,118.789182 Z M193.673191,111.92348 C195.131574,117.370288 197.970723,119.284841 203.704851,119.546288 C204.644426,119.589863 205.579915,119.749182 206.868085,119.892161 L206.868085,135.584416 C206.170894,135.813182 205.456,135.984756 204.730213,136.096416 C197.046128,136.574373 193.54383,139.726714 192.76766,147.431224 C192.272,152.349692 192.312851,157.322629 191.972426,162.258799 C191.829447,167.678373 191.336511,173.082969 190.49634,178.438544 C188.535489,188.142033 182.477277,192.982884 172.467404,193.573863 C169.245617,193.764501 166.000681,193.60382 162.526979,193.60382 L162.526979,179.578288 C164.396596,179.462544 166.046979,179.303224 167.701447,179.263735 C173.682043,179.120756 175.796766,177.192586 176.089532,171.252841 C176.413617,164.727565 176.555234,158.194118 176.846638,151.66748 C177.270128,142.233607 179.853277,133.806033 188.641702,127.922118 C183.612936,124.336756 179.575489,119.994288 178.529702,114.138969 C177.264681,107.041778 176.85617,99.7879903 176.175319,92.5913946 C175.838979,88.9937776 175.855319,85.3648414 175.504,81.7699478 C175.125447,77.8890967 172.459234,76.5464584 168.926979,76.4593095 C166.903489,76.4102882 164.87183,76.4497776 162.284596,76.4497776 L162.284596,62.7537776 C178.793872,60.0126712 190.198128,65.5057776 191.257532,81.3015222 C191.701447,87.9343733 191.636085,94.5985435 192.060936,101.231395 C192.247489,104.839905 192.786723,108.421182 193.673191,111.92348 Z" fill="#FFFFFF"> </path> </g> </g></svg>
|
|
@@ -178,8 +178,9 @@ export default function SearchBar({ nodes, onSelectResult, onSearchChange }: Pro
|
|
|
178
178
|
<button
|
|
179
179
|
onClick={clearSearch}
|
|
180
180
|
className="absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600"
|
|
181
|
+
aria-label="Clear search"
|
|
181
182
|
>
|
|
182
|
-
<X className="w-4 h-4" />
|
|
183
|
+
<X className="w-4 h-4" aria-hidden="true" />
|
|
183
184
|
</button>
|
|
184
185
|
)}
|
|
185
186
|
</div>
|
|
@@ -193,8 +194,10 @@ export default function SearchBar({ nodes, onSelectResult, onSearchChange }: Pro
|
|
|
193
194
|
? 'bg-purple-50 border-purple-200 text-purple-600'
|
|
194
195
|
: 'bg-gray-50 border-gray-200 text-gray-400 hover:text-gray-600 hover:bg-gray-100'
|
|
195
196
|
)}
|
|
197
|
+
aria-label="Filter search results"
|
|
198
|
+
aria-expanded={showFilterDropdown}
|
|
196
199
|
>
|
|
197
|
-
<SlidersHorizontal className="w-4 h-4" />
|
|
200
|
+
<SlidersHorizontal className="w-4 h-4" aria-hidden="true" />
|
|
198
201
|
{searchFilters.size > 0 && (
|
|
199
202
|
<span className="absolute -top-1 -right-1 w-4 h-4 bg-purple-600 text-white text-[10px] font-bold rounded-full flex items-center justify-center">
|
|
200
203
|
{searchFilters.size}
|
|
@@ -80,21 +80,24 @@ export const buildServiceNode = (service: CollectionEntry<'services'>, owners: a
|
|
|
80
80
|
pages: [
|
|
81
81
|
...openAPISpecifications.map((specification) => ({
|
|
82
82
|
type: 'item',
|
|
83
|
-
title: `${specification.name}
|
|
83
|
+
title: `${specification.name}`,
|
|
84
|
+
leftIcon: '/icons/openapi-black.svg',
|
|
84
85
|
href: buildUrl(
|
|
85
86
|
`/docs/services/${service.data.id}/${service.data.version}/spec/${specification.filenameWithoutExtension}`
|
|
86
87
|
),
|
|
87
88
|
})),
|
|
88
89
|
...asyncAPISpecifications.map((specification) => ({
|
|
89
90
|
type: 'item',
|
|
90
|
-
title: `${specification.name}
|
|
91
|
+
title: `${specification.name}`,
|
|
92
|
+
leftIcon: '/icons/asyncapi-black.svg',
|
|
91
93
|
href: buildUrl(
|
|
92
94
|
`/docs/services/${service.data.id}/${service.data.version}/asyncapi/${specification.filenameWithoutExtension}`
|
|
93
95
|
),
|
|
94
96
|
})),
|
|
95
97
|
...graphQLSpecifications.map((specification) => ({
|
|
96
98
|
type: 'item',
|
|
97
|
-
title: `${specification.name}
|
|
99
|
+
title: `${specification.name}`,
|
|
100
|
+
leftIcon: '/icons/graphql-black.svg',
|
|
98
101
|
href: buildUrl(
|
|
99
102
|
`/docs/services/${service.data.id}/${service.data.version}/graphql/${specification.filenameWithoutExtension}`
|
|
100
103
|
),
|
|
@@ -17,6 +17,7 @@ export type NavNode = {
|
|
|
17
17
|
type: 'group' | 'item';
|
|
18
18
|
title: string;
|
|
19
19
|
icon?: string; // Lucide icon name
|
|
20
|
+
leftIcon?: string; // Path to SVG icon shown on the left of the label
|
|
20
21
|
href?: string; // URL (for leaf items)
|
|
21
22
|
external?: boolean; // If true, the item will open in a new tab
|
|
22
23
|
pages?: ChildRef[]; // Can mix keys and inline nodes
|
|
@@ -9,24 +9,27 @@ const { className } = Astro.props;
|
|
|
9
9
|
showEventCatalogBranding() && (
|
|
10
10
|
<div class="flex justify-between items-center py-8 text-gray-500 text-sm font-light">
|
|
11
11
|
<div class="flex space-x-5">
|
|
12
|
-
<a href="https://github.com/event-catalog/eventcatalog" target="_blank">
|
|
12
|
+
<a href="https://github.com/event-catalog/eventcatalog" target="_blank" aria-label="View EventCatalog on GitHub">
|
|
13
13
|
<svg
|
|
14
14
|
class="w-5 h-5 bg-gray-400 hover:bg-primary dark:hover:bg-gray-400"
|
|
15
15
|
style={`mask-image: url("${buildUrl('/icons/github.svg', true)}"); mask-repeat: no-repeat; mask-position: center center;`}
|
|
16
|
+
aria-hidden="true"
|
|
16
17
|
/>
|
|
17
18
|
</a>
|
|
18
|
-
<a href="https://x.com/event_catalog" target="_blank">
|
|
19
|
-
<span class="sr-only">
|
|
19
|
+
<a href="https://x.com/event_catalog" target="_blank" aria-label="Follow EventCatalog on X (Twitter)">
|
|
20
|
+
<span class="sr-only">X (Twitter)</span>
|
|
20
21
|
<svg
|
|
21
22
|
class="w-5 h-5 bg-gray-400 hover:bg-primary dark:hover:bg-gray-400"
|
|
22
23
|
style={`mask-image: url("${buildUrl('/icons/x-twitter.svg', true)}"); mask-repeat: no-repeat; mask-position: center center;`}
|
|
24
|
+
aria-hidden="true"
|
|
23
25
|
/>
|
|
24
26
|
</a>
|
|
25
|
-
<a href="https://www.youtube.com/@event-catalog" target="_blank">
|
|
26
|
-
<span class="sr-only">
|
|
27
|
+
<a href="https://www.youtube.com/@event-catalog" target="_blank" aria-label="Watch EventCatalog on YouTube">
|
|
28
|
+
<span class="sr-only">YouTube</span>
|
|
27
29
|
<svg
|
|
28
30
|
class="w-5 h-5 bg-gray-400 hover:bg-primary dark:hover:bg-gray-400"
|
|
29
31
|
style={`mask-image: url("${buildUrl('/icons/youtube.svg', true)}"); mask-repeat: no-repeat; mask-position: center center;`}
|
|
32
|
+
aria-hidden="true"
|
|
30
33
|
/>
|
|
31
34
|
</a>
|
|
32
35
|
</div>
|
|
@@ -626,7 +626,7 @@ const quickActions = [
|
|
|
626
626
|
target="_blank"
|
|
627
627
|
class="group inline-flex items-center gap-2 px-5 py-2.5 bg-gray-900 text-white rounded-lg font-medium hover:bg-gray-800 transition-all shadow-sm"
|
|
628
628
|
>
|
|
629
|
-
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
|
|
629
|
+
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
|
630
630
|
<path
|
|
631
631
|
d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0a12.64 12.64 0 0 0-.617-1.25a.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.078.078 0 0 0 .084-.028a14.09 14.09 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13.107 13.107 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10.2 10.2 0 0 0 .372-.292a.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127a12.299 12.299 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028a19.839 19.839 0 0 0 6.002-3.03a.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418z"
|
|
632
632
|
></path>
|
|
@@ -638,7 +638,7 @@ const quickActions = [
|
|
|
638
638
|
target="_blank"
|
|
639
639
|
class="group inline-flex items-center gap-2 px-5 py-2.5 bg-white text-gray-900 border border-gray-300 rounded-lg font-medium hover:border-gray-400 hover:bg-gray-50 transition-all"
|
|
640
640
|
>
|
|
641
|
-
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
|
|
641
|
+
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
|
642
642
|
<path
|
|
643
643
|
fill-rule="evenodd"
|
|
644
644
|
d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"
|
|
@@ -73,16 +73,16 @@ const logList = await Promise.all(logListPromise);
|
|
|
73
73
|
|
|
74
74
|
const getBadge = () => {
|
|
75
75
|
if (props.collection === 'services') {
|
|
76
|
-
return { backgroundColor: 'pink', textColor: 'pink', content: 'Service', icon: ServerIcon, class: 'text-pink-
|
|
76
|
+
return { backgroundColor: 'pink', textColor: 'pink', content: 'Service', icon: ServerIcon, class: 'text-pink-600' };
|
|
77
77
|
}
|
|
78
78
|
if (props.collection === 'events') {
|
|
79
|
-
return { backgroundColor: 'orange', textColor: 'orange', content: 'Event', icon: BoltIcon, class: 'text-orange-
|
|
79
|
+
return { backgroundColor: 'orange', textColor: 'orange', content: 'Event', icon: BoltIcon, class: 'text-orange-600' };
|
|
80
80
|
}
|
|
81
81
|
if (props.collection === 'commands') {
|
|
82
|
-
return { backgroundColor: 'blue', textColor: 'blue', content: 'Command', icon: ChatBubbleLeftIcon, class: 'text-blue-
|
|
82
|
+
return { backgroundColor: 'blue', textColor: 'blue', content: 'Command', icon: ChatBubbleLeftIcon, class: 'text-blue-600' };
|
|
83
83
|
}
|
|
84
84
|
if (props.collection === 'queries') {
|
|
85
|
-
return { backgroundColor: 'green', textColor: 'green', content: 'Query', icon: MagnifyingGlassIcon, class: 'text-
|
|
85
|
+
return { backgroundColor: 'green', textColor: 'green', content: 'Query', icon: MagnifyingGlassIcon, class: 'text-green-600' };
|
|
86
86
|
}
|
|
87
87
|
if (props.collection === 'domains') {
|
|
88
88
|
return {
|
|
@@ -90,14 +90,14 @@ const getBadge = () => {
|
|
|
90
90
|
textColor: 'yellow',
|
|
91
91
|
content: 'Domain',
|
|
92
92
|
icon: RectangleGroupIcon,
|
|
93
|
-
class: 'text-yellow-
|
|
93
|
+
class: 'text-yellow-600',
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
if (props.collection === 'containers') {
|
|
97
|
-
return { backgroundColor: 'blue', textColor: 'blue', content: 'Container', icon: DatabaseIcon, class: 'text-blue-
|
|
97
|
+
return { backgroundColor: 'blue', textColor: 'blue', content: 'Container', icon: DatabaseIcon, class: 'text-blue-600' };
|
|
98
98
|
}
|
|
99
99
|
if (props.collection === 'flows') {
|
|
100
|
-
return { backgroundColor: 'teal', textColor: 'teal', content: 'Flow', icon: QueueListIcon, class: 'text-teal-
|
|
100
|
+
return { backgroundColor: 'teal', textColor: 'teal', content: 'Flow', icon: QueueListIcon, class: 'text-teal-600' };
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
|
|
@@ -36,7 +36,7 @@ if (isRemote) {
|
|
|
36
36
|
const pageTitle = `${collection} | ${data.name} | GraphQL Schema`.replace(/^\w/, (c) => c.toUpperCase());
|
|
37
37
|
|
|
38
38
|
const getServiceBadge = () => {
|
|
39
|
-
return [{ backgroundColor: 'pink', textColor: 'pink', content: 'Service', icon: ServerIcon, class: 'text-pink-
|
|
39
|
+
return [{ backgroundColor: 'pink', textColor: 'pink', content: 'Service', icon: ServerIcon, class: 'text-pink-600' }];
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
const getGraphQLBadge = () => {
|
|
@@ -71,17 +71,17 @@ const getContentBadges = () =>
|
|
|
71
71
|
|
|
72
72
|
const getBadge = () => {
|
|
73
73
|
if (props.collection === 'services') {
|
|
74
|
-
return [{ backgroundColor: 'pink', textColor: 'pink', content: 'Service', icon: ServerIcon, class: 'text-pink-
|
|
74
|
+
return [{ backgroundColor: 'pink', textColor: 'pink', content: 'Service', icon: ServerIcon, class: 'text-pink-600' }];
|
|
75
75
|
}
|
|
76
76
|
if (props.collection === 'events') {
|
|
77
|
-
return [{ backgroundColor: 'orange', textColor: 'orange', content: 'Event', icon: BoltIcon, class: 'text-orange-
|
|
77
|
+
return [{ backgroundColor: 'orange', textColor: 'orange', content: 'Event', icon: BoltIcon, class: 'text-orange-600' }];
|
|
78
78
|
}
|
|
79
79
|
if (props.collection === 'commands') {
|
|
80
|
-
return [{ backgroundColor: 'blue', textColor: 'blue', content: 'Command', icon: ChatBubbleLeftIcon, class: 'text-blue-
|
|
80
|
+
return [{ backgroundColor: 'blue', textColor: 'blue', content: 'Command', icon: ChatBubbleLeftIcon, class: 'text-blue-600' }];
|
|
81
81
|
}
|
|
82
82
|
if (props.collection === 'queries') {
|
|
83
83
|
return [
|
|
84
|
-
{ backgroundColor: 'green', textColor: 'green', content: 'Query', icon: MagnifyingGlassIcon, class: 'text-green-
|
|
84
|
+
{ backgroundColor: 'green', textColor: 'green', content: 'Query', icon: MagnifyingGlassIcon, class: 'text-green-600' },
|
|
85
85
|
];
|
|
86
86
|
}
|
|
87
87
|
if (props.collection === 'domains') {
|
|
@@ -91,7 +91,7 @@ const getBadge = () => {
|
|
|
91
91
|
textColor: 'yellow',
|
|
92
92
|
content: 'Domain',
|
|
93
93
|
icon: RectangleGroupIcon,
|
|
94
|
-
class: 'text-yellow-
|
|
94
|
+
class: 'text-yellow-600',
|
|
95
95
|
},
|
|
96
96
|
];
|
|
97
97
|
}
|