@techdocs/cli 0.0.0-nightly-20240815021638 → 0.0.0-nightly-20240817021759
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/CHANGELOG.md +4 -4
- package/dist/embedded-app/.config-schema.json +131 -131
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/{124.ddc8493c.chunk.js → 124.159a325a.chunk.js} +4 -4
- package/dist/embedded-app/static/124.159a325a.chunk.js.map +1 -0
- package/dist/embedded-app/static/1297.bbeaddd0.chunk.js +4 -0
- package/dist/embedded-app/static/1297.bbeaddd0.chunk.js.map +1 -0
- package/dist/embedded-app/static/{2401.bdee0566.chunk.js → 2401.ba11bac5.chunk.js} +4 -4
- package/dist/embedded-app/static/2401.ba11bac5.chunk.js.map +1 -0
- package/dist/embedded-app/static/{2420.b8e403e0.chunk.js → 2420.9986a695.chunk.js} +4 -4
- package/dist/embedded-app/static/{8384.2b841cfe.chunk.js.map → 2420.9986a695.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{287.9cfc5ea3.chunk.js → 287.57153ff3.chunk.js} +4 -4
- package/dist/embedded-app/static/287.57153ff3.chunk.js.map +1 -0
- package/dist/embedded-app/static/{3182.3cbe56e4.chunk.js → 3182.98982985.chunk.js} +4 -4
- package/dist/embedded-app/static/3182.98982985.chunk.js.map +1 -0
- package/dist/embedded-app/static/{3632.02d6a3b4.chunk.js → 3632.2a549b64.chunk.js} +4 -4
- package/dist/embedded-app/static/3632.2a549b64.chunk.js.map +1 -0
- package/dist/embedded-app/static/{4036.32efab46.chunk.js → 4036.36665783.chunk.js} +2 -2
- package/dist/embedded-app/static/{4036.32efab46.chunk.js.map → 4036.36665783.chunk.js.map} +1 -1
- package/dist/embedded-app/static/5724.d2755c89.chunk.js +4 -0
- package/dist/embedded-app/static/5724.d2755c89.chunk.js.map +1 -0
- package/dist/embedded-app/static/{6271.093f457f.chunk.js → 6271.0b57a0cf.chunk.js} +4 -4
- package/dist/embedded-app/static/6271.0b57a0cf.chunk.js.map +1 -0
- package/dist/embedded-app/static/{6415.9a7af567.chunk.js → 6415.6b71f4b9.chunk.js} +4 -4
- package/dist/embedded-app/static/6415.6b71f4b9.chunk.js.map +1 -0
- package/dist/embedded-app/static/{8307.fd2c3bf0.chunk.js → 8307.637eb9f7.chunk.js} +4 -4
- package/dist/embedded-app/static/8307.637eb9f7.chunk.js.map +1 -0
- package/dist/embedded-app/static/{8384.2b841cfe.chunk.js → 8384.0c6da92e.chunk.js} +4 -4
- package/dist/embedded-app/static/8384.0c6da92e.chunk.js.map +1 -0
- package/dist/embedded-app/static/898.c75e7113.chunk.js +4 -0
- package/dist/embedded-app/static/898.c75e7113.chunk.js.map +1 -0
- package/dist/embedded-app/static/{9605.92f660fa.chunk.js → 9605.2c26c71d.chunk.js} +3 -3
- package/dist/embedded-app/static/{9605.92f660fa.chunk.js.map → 9605.2c26c71d.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{9652.3d412f36.chunk.js → 9652.5fd19eb0.chunk.js} +4 -4
- package/dist/embedded-app/static/{6271.093f457f.chunk.js.map → 9652.5fd19eb0.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{main.167856ad.js → main.87e083f2.js} +12 -12
- package/dist/embedded-app/static/main.87e083f2.js.map +1 -0
- package/dist/embedded-app/static/{module-material-ui.f1846a3c.js → module-material-ui.2c452b58.js} +4 -4
- package/dist/embedded-app/static/{module-material-ui.f1846a3c.js.map → module-material-ui.2c452b58.js.map} +1 -1
- package/dist/embedded-app/static/{runtime.167856ad.js → runtime.87e083f2.js} +2 -2
- package/dist/embedded-app/static/{runtime.167856ad.js.map → runtime.87e083f2.js.map} +1 -1
- package/dist/embedded-app/static/{vendor.167856ad.js → vendor.87e083f2.js} +1 -1
- package/dist/embedded-app/static/{vendor.167856ad.js.map → vendor.87e083f2.js.map} +1 -1
- package/package.json +5 -5
- package/dist/embedded-app/static/124.ddc8493c.chunk.js.map +0 -1
- package/dist/embedded-app/static/1297.b4799570.chunk.js +0 -4
- package/dist/embedded-app/static/1297.b4799570.chunk.js.map +0 -1
- package/dist/embedded-app/static/2401.bdee0566.chunk.js.map +0 -1
- package/dist/embedded-app/static/2420.b8e403e0.chunk.js.map +0 -1
- package/dist/embedded-app/static/287.9cfc5ea3.chunk.js.map +0 -1
- package/dist/embedded-app/static/3182.3cbe56e4.chunk.js.map +0 -1
- package/dist/embedded-app/static/3632.02d6a3b4.chunk.js.map +0 -1
- package/dist/embedded-app/static/5724.8c459ffd.chunk.js +0 -4
- package/dist/embedded-app/static/5724.8c459ffd.chunk.js.map +0 -1
- package/dist/embedded-app/static/6415.9a7af567.chunk.js.map +0 -1
- package/dist/embedded-app/static/8307.fd2c3bf0.chunk.js.map +0 -1
- package/dist/embedded-app/static/898.b3655147.chunk.js +0 -4
- package/dist/embedded-app/static/898.b3655147.chunk.js.map +0 -1
- package/dist/embedded-app/static/9652.3d412f36.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.167856ad.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20240817021759
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies
|
|
8
|
-
- @backstage/backend-defaults@0.0.0-nightly-
|
|
9
|
-
- @backstage/plugin-techdocs-node@0.0.0-nightly-
|
|
10
|
-
- @backstage/catalog-model@0.0.0-nightly-
|
|
8
|
+
- @backstage/backend-defaults@0.0.0-nightly-20240817021759
|
|
9
|
+
- @backstage/plugin-techdocs-node@0.0.0-nightly-20240817021759
|
|
10
|
+
- @backstage/catalog-model@0.0.0-nightly-20240817021759
|
|
11
11
|
- @backstage/cli-common@0.1.14
|
|
12
12
|
- @backstage/config@1.2.0
|
|
13
13
|
|
|
@@ -354,51 +354,6 @@
|
|
|
354
354
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
355
355
|
}
|
|
356
356
|
},
|
|
357
|
-
{
|
|
358
|
-
"path": "../core-components/config.d.ts",
|
|
359
|
-
"value": {
|
|
360
|
-
"type": "object",
|
|
361
|
-
"properties": {
|
|
362
|
-
"auth": {
|
|
363
|
-
"type": "object",
|
|
364
|
-
"properties": {
|
|
365
|
-
"autologout": {
|
|
366
|
-
"description": "Autologout feature configuration",
|
|
367
|
-
"type": "object",
|
|
368
|
-
"properties": {
|
|
369
|
-
"enabled": {
|
|
370
|
-
"description": "Enable or disable the autologout feature",
|
|
371
|
-
"visibility": "frontend",
|
|
372
|
-
"type": "boolean"
|
|
373
|
-
},
|
|
374
|
-
"idleTimeoutMinutes": {
|
|
375
|
-
"description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
|
|
376
|
-
"visibility": "frontend",
|
|
377
|
-
"type": "number"
|
|
378
|
-
},
|
|
379
|
-
"promptBeforeIdleSeconds": {
|
|
380
|
-
"description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
|
|
381
|
-
"visibility": "frontend",
|
|
382
|
-
"type": "number"
|
|
383
|
-
},
|
|
384
|
-
"useWorkerTimers": {
|
|
385
|
-
"description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
|
|
386
|
-
"visibility": "frontend",
|
|
387
|
-
"type": "boolean"
|
|
388
|
-
},
|
|
389
|
-
"logoutIfDisconnected": {
|
|
390
|
-
"description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
|
|
391
|
-
"visibility": "frontend",
|
|
392
|
-
"type": "boolean"
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
357
|
{
|
|
403
358
|
"path": "../../plugins/techdocs/config.d.ts",
|
|
404
359
|
"value": {
|
|
@@ -444,6 +399,51 @@
|
|
|
444
399
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
445
400
|
}
|
|
446
401
|
},
|
|
402
|
+
{
|
|
403
|
+
"path": "../core-components/config.d.ts",
|
|
404
|
+
"value": {
|
|
405
|
+
"type": "object",
|
|
406
|
+
"properties": {
|
|
407
|
+
"auth": {
|
|
408
|
+
"type": "object",
|
|
409
|
+
"properties": {
|
|
410
|
+
"autologout": {
|
|
411
|
+
"description": "Autologout feature configuration",
|
|
412
|
+
"type": "object",
|
|
413
|
+
"properties": {
|
|
414
|
+
"enabled": {
|
|
415
|
+
"description": "Enable or disable the autologout feature",
|
|
416
|
+
"visibility": "frontend",
|
|
417
|
+
"type": "boolean"
|
|
418
|
+
},
|
|
419
|
+
"idleTimeoutMinutes": {
|
|
420
|
+
"description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
|
|
421
|
+
"visibility": "frontend",
|
|
422
|
+
"type": "number"
|
|
423
|
+
},
|
|
424
|
+
"promptBeforeIdleSeconds": {
|
|
425
|
+
"description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
|
|
426
|
+
"visibility": "frontend",
|
|
427
|
+
"type": "number"
|
|
428
|
+
},
|
|
429
|
+
"useWorkerTimers": {
|
|
430
|
+
"description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
|
|
431
|
+
"visibility": "frontend",
|
|
432
|
+
"type": "boolean"
|
|
433
|
+
},
|
|
434
|
+
"logoutIfDisconnected": {
|
|
435
|
+
"description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
|
|
436
|
+
"visibility": "frontend",
|
|
437
|
+
"type": "boolean"
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
447
|
{
|
|
448
448
|
"path": "../integration/config.d.ts",
|
|
449
449
|
"value": {
|
|
@@ -1707,7 +1707,7 @@
|
|
|
1707
1707
|
}
|
|
1708
1708
|
},
|
|
1709
1709
|
{
|
|
1710
|
-
"path": "../backend-
|
|
1710
|
+
"path": "../backend-defaults/config.d.ts",
|
|
1711
1711
|
"value": {
|
|
1712
1712
|
"type": "object",
|
|
1713
1713
|
"properties": {
|
|
@@ -1715,6 +1715,7 @@
|
|
|
1715
1715
|
"type": "object",
|
|
1716
1716
|
"properties": {
|
|
1717
1717
|
"auth": {
|
|
1718
|
+
"description": "Options used by the default auth, httpAuth and userInfo services.",
|
|
1718
1719
|
"type": "object",
|
|
1719
1720
|
"properties": {
|
|
1720
1721
|
"dangerouslyDisableDefaultAuthPolicy": {
|
|
@@ -2022,6 +2023,56 @@
|
|
|
2022
2023
|
"required": [
|
|
2023
2024
|
"url"
|
|
2024
2025
|
]
|
|
2026
|
+
},
|
|
2027
|
+
"accessRestrictions": {
|
|
2028
|
+
"description": "Restricts what types of access that are permitted for this access\nmethod. If no access restrictions are given, it'll have unlimited\naccess. This access restriction applies for the framework level;\nindividual plugins may have their own access control mechanisms\non top of this.",
|
|
2029
|
+
"type": "array",
|
|
2030
|
+
"items": {
|
|
2031
|
+
"type": "object",
|
|
2032
|
+
"properties": {
|
|
2033
|
+
"plugin": {
|
|
2034
|
+
"description": "Permit access to make requests to this plugin.\n\nCan be further refined by setting additional fields below.",
|
|
2035
|
+
"type": "string"
|
|
2036
|
+
},
|
|
2037
|
+
"permission": {
|
|
2038
|
+
"description": "If given, this method is limited to only performing actions\nwith these named permissions in this plugin.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
|
|
2039
|
+
"anyOf": [
|
|
2040
|
+
{
|
|
2041
|
+
"type": "array",
|
|
2042
|
+
"items": {
|
|
2043
|
+
"type": "string"
|
|
2044
|
+
}
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
"type": "string"
|
|
2048
|
+
}
|
|
2049
|
+
]
|
|
2050
|
+
},
|
|
2051
|
+
"permissionAttribute": {
|
|
2052
|
+
"description": "If given, this method is limited to only performing actions\nwhose permissions have these attributes.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
|
|
2053
|
+
"type": "object",
|
|
2054
|
+
"properties": {
|
|
2055
|
+
"action": {
|
|
2056
|
+
"description": "One of more of 'create', 'read', 'update', or 'delete'.",
|
|
2057
|
+
"anyOf": [
|
|
2058
|
+
{
|
|
2059
|
+
"type": "array",
|
|
2060
|
+
"items": {
|
|
2061
|
+
"type": "string"
|
|
2062
|
+
}
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
"type": "string"
|
|
2066
|
+
}
|
|
2067
|
+
]
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
2072
|
+
"required": [
|
|
2073
|
+
"plugin"
|
|
2074
|
+
]
|
|
2075
|
+
}
|
|
2025
2076
|
}
|
|
2026
2077
|
},
|
|
2027
2078
|
"required": [
|
|
@@ -2036,46 +2087,21 @@
|
|
|
2036
2087
|
"required": [
|
|
2037
2088
|
"externalAccess"
|
|
2038
2089
|
]
|
|
2039
|
-
},
|
|
2040
|
-
"packages": {
|
|
2041
|
-
"anyOf": [
|
|
2042
|
-
{
|
|
2043
|
-
"type": "object",
|
|
2044
|
-
"properties": {
|
|
2045
|
-
"include": {
|
|
2046
|
-
"type": "array",
|
|
2047
|
-
"items": {
|
|
2048
|
-
"type": "string"
|
|
2049
|
-
}
|
|
2050
|
-
},
|
|
2051
|
-
"exclude": {
|
|
2052
|
-
"type": "array",
|
|
2053
|
-
"items": {
|
|
2054
|
-
"type": "string"
|
|
2055
|
-
}
|
|
2056
|
-
}
|
|
2057
|
-
}
|
|
2058
|
-
},
|
|
2059
|
-
{
|
|
2060
|
-
"const": "all",
|
|
2061
|
-
"type": "string"
|
|
2062
|
-
}
|
|
2063
|
-
]
|
|
2064
2090
|
}
|
|
2065
2091
|
}
|
|
2066
2092
|
},
|
|
2067
2093
|
"discovery": {
|
|
2068
|
-
"description": "
|
|
2094
|
+
"description": "Options used by the default discovery service.",
|
|
2069
2095
|
"type": "object",
|
|
2070
2096
|
"properties": {
|
|
2071
2097
|
"endpoints": {
|
|
2072
|
-
"description": "
|
|
2098
|
+
"description": "A list of target baseUrls and the associated plugins.",
|
|
2073
2099
|
"type": "array",
|
|
2074
2100
|
"items": {
|
|
2075
2101
|
"type": "object",
|
|
2076
2102
|
"properties": {
|
|
2077
2103
|
"target": {
|
|
2078
|
-
"description": "The target
|
|
2104
|
+
"description": "The target base URL to use for the plugin.\n\nCan be either a string or an object with internal and external keys.\nTargets with `{{pluginId}}` or `{{ pluginId }} in the URL will be replaced with the plugin ID.",
|
|
2079
2105
|
"anyOf": [
|
|
2080
2106
|
{
|
|
2081
2107
|
"type": "object",
|
|
@@ -2098,7 +2124,7 @@
|
|
|
2098
2124
|
]
|
|
2099
2125
|
},
|
|
2100
2126
|
"plugins": {
|
|
2101
|
-
"description": "Array of plugins which use the target
|
|
2127
|
+
"description": "Array of plugins which use the target base URL.",
|
|
2102
2128
|
"type": "array",
|
|
2103
2129
|
"items": {
|
|
2104
2130
|
"type": "string"
|
|
@@ -2121,7 +2147,7 @@
|
|
|
2121
2147
|
}
|
|
2122
2148
|
},
|
|
2123
2149
|
{
|
|
2124
|
-
"path": "../backend-
|
|
2150
|
+
"path": "../backend-app-api/config.d.ts",
|
|
2125
2151
|
"value": {
|
|
2126
2152
|
"type": "object",
|
|
2127
2153
|
"properties": {
|
|
@@ -2129,7 +2155,6 @@
|
|
|
2129
2155
|
"type": "object",
|
|
2130
2156
|
"properties": {
|
|
2131
2157
|
"auth": {
|
|
2132
|
-
"description": "Options used by the default auth, httpAuth and userInfo services.",
|
|
2133
2158
|
"type": "object",
|
|
2134
2159
|
"properties": {
|
|
2135
2160
|
"dangerouslyDisableDefaultAuthPolicy": {
|
|
@@ -2437,56 +2462,6 @@
|
|
|
2437
2462
|
"required": [
|
|
2438
2463
|
"url"
|
|
2439
2464
|
]
|
|
2440
|
-
},
|
|
2441
|
-
"accessRestrictions": {
|
|
2442
|
-
"description": "Restricts what types of access that are permitted for this access\nmethod. If no access restrictions are given, it'll have unlimited\naccess. This access restriction applies for the framework level;\nindividual plugins may have their own access control mechanisms\non top of this.",
|
|
2443
|
-
"type": "array",
|
|
2444
|
-
"items": {
|
|
2445
|
-
"type": "object",
|
|
2446
|
-
"properties": {
|
|
2447
|
-
"plugin": {
|
|
2448
|
-
"description": "Permit access to make requests to this plugin.\n\nCan be further refined by setting additional fields below.",
|
|
2449
|
-
"type": "string"
|
|
2450
|
-
},
|
|
2451
|
-
"permission": {
|
|
2452
|
-
"description": "If given, this method is limited to only performing actions\nwith these named permissions in this plugin.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
|
|
2453
|
-
"anyOf": [
|
|
2454
|
-
{
|
|
2455
|
-
"type": "array",
|
|
2456
|
-
"items": {
|
|
2457
|
-
"type": "string"
|
|
2458
|
-
}
|
|
2459
|
-
},
|
|
2460
|
-
{
|
|
2461
|
-
"type": "string"
|
|
2462
|
-
}
|
|
2463
|
-
]
|
|
2464
|
-
},
|
|
2465
|
-
"permissionAttribute": {
|
|
2466
|
-
"description": "If given, this method is limited to only performing actions\nwhose permissions have these attributes.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
|
|
2467
|
-
"type": "object",
|
|
2468
|
-
"properties": {
|
|
2469
|
-
"action": {
|
|
2470
|
-
"description": "One of more of 'create', 'read', 'update', or 'delete'.",
|
|
2471
|
-
"anyOf": [
|
|
2472
|
-
{
|
|
2473
|
-
"type": "array",
|
|
2474
|
-
"items": {
|
|
2475
|
-
"type": "string"
|
|
2476
|
-
}
|
|
2477
|
-
},
|
|
2478
|
-
{
|
|
2479
|
-
"type": "string"
|
|
2480
|
-
}
|
|
2481
|
-
]
|
|
2482
|
-
}
|
|
2483
|
-
}
|
|
2484
|
-
}
|
|
2485
|
-
},
|
|
2486
|
-
"required": [
|
|
2487
|
-
"plugin"
|
|
2488
|
-
]
|
|
2489
|
-
}
|
|
2490
2465
|
}
|
|
2491
2466
|
},
|
|
2492
2467
|
"required": [
|
|
@@ -2501,21 +2476,46 @@
|
|
|
2501
2476
|
"required": [
|
|
2502
2477
|
"externalAccess"
|
|
2503
2478
|
]
|
|
2479
|
+
},
|
|
2480
|
+
"packages": {
|
|
2481
|
+
"anyOf": [
|
|
2482
|
+
{
|
|
2483
|
+
"type": "object",
|
|
2484
|
+
"properties": {
|
|
2485
|
+
"include": {
|
|
2486
|
+
"type": "array",
|
|
2487
|
+
"items": {
|
|
2488
|
+
"type": "string"
|
|
2489
|
+
}
|
|
2490
|
+
},
|
|
2491
|
+
"exclude": {
|
|
2492
|
+
"type": "array",
|
|
2493
|
+
"items": {
|
|
2494
|
+
"type": "string"
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
"const": "all",
|
|
2501
|
+
"type": "string"
|
|
2502
|
+
}
|
|
2503
|
+
]
|
|
2504
2504
|
}
|
|
2505
2505
|
}
|
|
2506
2506
|
},
|
|
2507
2507
|
"discovery": {
|
|
2508
|
-
"description": "
|
|
2508
|
+
"description": "Discovery options.",
|
|
2509
2509
|
"type": "object",
|
|
2510
2510
|
"properties": {
|
|
2511
2511
|
"endpoints": {
|
|
2512
|
-
"description": "
|
|
2512
|
+
"description": "Endpoints\n\nA list of target baseUrls and the associated plugins.",
|
|
2513
2513
|
"type": "array",
|
|
2514
2514
|
"items": {
|
|
2515
2515
|
"type": "object",
|
|
2516
2516
|
"properties": {
|
|
2517
2517
|
"target": {
|
|
2518
|
-
"description": "The target
|
|
2518
|
+
"description": "The target baseUrl to use for the plugin\n\nCan be either a string or an object with internal and external keys.\nTargets with `{{pluginId}}` or `{{ pluginId }} in the url will be replaced with the pluginId.",
|
|
2519
2519
|
"anyOf": [
|
|
2520
2520
|
{
|
|
2521
2521
|
"type": "object",
|
|
@@ -2538,7 +2538,7 @@
|
|
|
2538
2538
|
]
|
|
2539
2539
|
},
|
|
2540
2540
|
"plugins": {
|
|
2541
|
-
"description": "Array of plugins which use the target
|
|
2541
|
+
"description": "Array of plugins which use the target baseUrl.",
|
|
2542
2542
|
"type": "array",
|
|
2543
2543
|
"items": {
|
|
2544
2544
|
"type": "string"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.87e083f2.js"></script><script defer="defer" src="/static/module-material-ui.2c452b58.js"></script><script defer="defer" src="/static/module-lodash.9d3aac3b.js"></script><script defer="defer" src="/static/module-date-fns.9ba6144d.js"></script><script defer="defer" src="/static/module-mui.e17dd999.js"></script><script defer="defer" src="/static/module-material-table.e3f26578.js"></script><script defer="defer" src="/static/module-react-dom.1f38e13a.js"></script><script defer="defer" src="/static/module-react-router.dac764ce.js"></script><script defer="defer" src="/static/module-react-router-dom.0c2bb614.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.ea59573c.js"></script><script defer="defer" src="/static/module-zod.9a0df421.js"></script><script defer="defer" src="/static/module-i18next.6b4e6495.js"></script><script defer="defer" src="/static/vendor.87e083f2.js"></script><script defer="defer" src="/static/main.87e083f2.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[124],{74616:(W,m,t)=>{var e,u=t(4293),C=t(78920);e={value:!0},m.A=void 0;var l=C(t(14041)),f=u(t(74044)),g=(0,f.default)(l.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");m.A=g},48514:(W,m,t)=>{t.d(m,{M:()=>v});var e=t(31085),u=t(58837),C=t(71677),l=t(14041),f=t(72501);const g=(0,u.A)({container:{overflow:"visible !important"},typo:{fontSize:"inherit",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":({line:d})=>d||1,"-webkit-box-orient":"vertical"}},{name:"BackstageOverflowTooltip"});function v(d){const O=g(d);return(0,e.jsx)(C.Ay,{title:d.title??(d.text||""),placement:d.placement,children:(0,e.jsx)(f.A,{className:O.typo,variant:"inherit",children:d.text})})}},48045:(W,m,t)=>{t.d(m,{n:()=>B});var e=t(31085),u=t(40703),C=t(59469),l=t(48653),f=t(45685),g=t(37197),v=t(58837),d=t(87051),O=t(53373),a=t.n(O),h=t(14041),r=t(10394),y=t(72501),A=t(74616),S=t(72072);const p=(0,v.A)(o=>({root:{maxWidth:"fit-content",padding:o.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:o.palette.textSubtle},arrow:{color:o.palette.textSubtle}}),{name:"BackstageBottomLink"});function E(o){const{link:n,title:i,onClick:x}=o,j=p();return(0,e.jsxs)(r.A,{children:[(0,e.jsx)(g.A,{}),(0,e.jsx)(S.N_,{to:n,onClick:x,underline:"none",children:(0,e.jsxs)(r.A,{display:"flex",alignItems:"center",className:j.root,children:[(0,e.jsx)(r.A,{className:j.boxTitle,fontWeight:"fontWeightBold",m:1,children:(0,e.jsx)(y.A,{children:(0,e.jsx)("strong",{children:i})})}),(0,e.jsx)(A.A,{className:j.arrow})]})})]})}var L=t(73896),c=t(22020),M=t(10315),U=t(87849);const I=o=>{const{slackChannel:n}=o,{t:i}=(0,U.i)(M.O);if(n){if(typeof n=="string")return(0,e.jsx)(y.A,{children:i("errorBoundary.title",{slackChannel:n})});if(!n.href)return(0,e.jsx)(y.A,{children:i("errorBoundary.title",{slackChannel:n.name})})}else return null;return(0,e.jsx)(L.z,{to:n.href,variant:"contained",children:n.name})},s=class extends h.Component{constructor(n){super(n),this.state={error:void 0,errorInfo:void 0}}componentDidCatch(n,i){console.error(`ErrorBoundary, error: ${n}`,{error:n,errorInfo:i}),this.setState({error:n,errorInfo:i})}render(){const{slackChannel:n,children:i}=this.props,{error:x}=this.state;return x?(0,e.jsx)(c.b,{title:"Something Went Wrong",error:x,children:(0,e.jsx)(I,{slackChannel:n})}):i}},D=(0,v.A)(o=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},contentAlignBottom:{display:"flex",alignItems:"self-end"},header:{padding:o.spacing(2,2,2,2.5)},headerTitle:{fontWeight:o.typography.fontWeightBold},headerSubheader:{paddingTop:o.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{},subheader:{display:"flex"}}),{name:"BackstageInfoCard"}),V=(0,d.A)(o=>({root:{display:"inline-block",padding:o.spacing(8,8,0,0),float:"right"}}),{name:"BackstageInfoCardCardActionsTopRight"})(C.A),R={card:{flex:{display:"flex",flexDirection:"column"},fullHeight:{display:"flex",flexDirection:"column",height:"100%"},gridItem:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px",breakInside:"avoid-page","@media print":{height:"auto"}}},cardContent:{fullHeight:{flex:1},gridItem:{flex:1}}};function B(o){const{title:n,subheader:i,divider:x=!0,deepLink:j,slackChannel:P,errorBoundaryProps:N,variant:b,alignContent:H="normal",children:T,headerStyle:z,headerProps:w,icon:F,action:k,actionsClassName:Q,actions:J,cardClassName:Z,actionsTopRight:X,className:q,noPadding:_,titleTypographyProps:tt,subheaderTypographyProps:et}=o,K=D();let Y={},$={};b&&b.split(/[\s]+/g).forEach(G=>{Y={...Y,...R.card[G]},$={...$,...R.cardContent[G]}});const nt=()=>!i&&!F?null:(0,e.jsxs)("div",{"data-testid":"info-card-subheader",children:[i&&(0,e.jsx)("div",{className:K.subheader,children:i}),F]}),ot=N||(P?{slackChannel:P}:{});return(0,e.jsx)(u.A,{style:Y,className:q,children:(0,e.jsxs)(s,{...ot,children:[n&&(0,e.jsx)(f.A,{classes:{root:a()(K.header),title:K.headerTitle,subheader:K.headerSubheader,avatar:K.headerAvatar,action:K.headerAction,content:K.headerContent},title:n,subheader:nt(),action:k,style:{...z},titleTypographyProps:tt,subheaderTypographyProps:et,...w}),X&&(0,e.jsx)(V,{children:X}),x&&(0,e.jsx)(g.A,{}),(0,e.jsx)(l.A,{className:a()(Z,{[K.noPadding]:_,[K.contentAlignBottom]:H==="bottom"}),style:$,children:T}),J&&(0,e.jsx)(C.A,{className:Q,children:J}),j&&(0,e.jsx)(E,{...j})]})})}},89648:(W,m,t)=>{t.d(m,{s:()=>S});var e=t(31085),u=t(58837),C=t(14041),l=t(51372),f=t(48514),g=t(67871),v=t(90184),d=t(8859),O=t(34428);const a=Object.freeze({createEntityRefColumn(p){const{defaultKind:E}=p;function L(c){return c.metadata?.title||(0,v.S)(c,{defaultKind:E})}return{title:"Name",highlight:!0,customFilterAndSearch(c,M){return L(M).includes(c)},customSort(c,M){return L(c).localeCompare(L(M))},render:c=>(0,e.jsx)(d.z,{entityRef:c,defaultKind:E,title:c.metadata?.title})}},createEntityRelationColumn(p){const{title:E,relation:L,defaultKind:c,filter:M}=p;function U(s){return(0,g.t)(s,L,M)}function I(s){return U(s).map(D=>(0,v.S)(D,{defaultKind:c})).join(", ")}return{title:E,customFilterAndSearch(s,D){return I(D).includes(s)},customSort(s,D){return I(s).localeCompare(I(D))},render:s=>(0,e.jsx)(O.i,{entityRefs:U(s),defaultKind:c})}},createOwnerColumn(){return this.createEntityRelationColumn({title:"Owner",relation:l.vv,defaultKind:"group"})},createDomainColumn(){return this.createEntityRelationColumn({title:"Domain",relation:l.jn,defaultKind:"domain",filter:{kind:"domain"}})},createSystemColumn(){return this.createEntityRelationColumn({title:"System",relation:l.jn,defaultKind:"system",filter:{kind:"system"}})},createMetadataDescriptionColumn(){return{title:"Description",field:"metadata.description",render:p=>(0,e.jsx)(f.M,{text:p.metadata.description,placement:"bottom-start",line:2})}},createSpecLifecycleColumn(){return{title:"Lifecycle",field:"spec.lifecycle"}},createSpecTypeColumn(){return{title:"Type",field:"spec.type"}}}),h=[a.createEntityRefColumn({defaultKind:"system"}),a.createDomainColumn(),a.createOwnerColumn(),a.createMetadataDescriptionColumn()],r=[a.createEntityRefColumn({defaultKind:"component"}),a.createSystemColumn(),a.createOwnerColumn(),a.createSpecTypeColumn(),a.createSpecLifecycleColumn(),a.createMetadataDescriptionColumn()];var y=t(14209);const A=(0,u.A)(p=>({empty:{padding:p.spacing(2),display:"flex",justifyContent:"center"}})),S=p=>{const{entities:E,title:L,emptyContent:c,variant:M="gridItem",columns:U,tableOptions:I={}}=p,s=A(),D={minWidth:"0",width:"100%"};return M==="gridItem"&&(D.height="calc(100% - 10px)"),(0,e.jsx)(y.X,{columns:U,title:L,style:D,emptyContent:c&&(0,e.jsx)("div",{className:s.empty,children:c}),options:{search:!1,paging:!1,actionsColumnIndex:-1,padding:"dense",draggable:!1,...I},data:E})};S.columns=a,S.systemEntityColumns=h,S.componentEntityColumns=r},99538:(W,m,t)=>{t.d(m,{T7:()=>d,TY:()=>h,tN:()=>a});var e=t(31085),u=t(6820),C=t(25862),l=t(43836),f=t(10602),g=t(14041);const v=(0,l.tK)("entity-context"),d=r=>{const{children:y,entity:A,loading:S,error:p,refresh:E}=r,L={entity:A,loading:S,error:p,refresh:E};return(0,e.jsx)(v.Provider,{value:(0,f.B)({1:L}),children:(0,e.jsx)(C.Ig,{attributes:{...A?{entityRef:(0,u.U2)(A)}:void 0},children:y})})},O=r=>_jsx(d,{entity:r.entity,loading:!r.entity,error:void 0,refresh:void 0,children:r.children});function a(){const r=(0,l.qO)("entity-context");if(!r)throw new Error("Entity context is not available");const y=r.atVersion(1);if(!y)throw new Error("EntityContext v1 not available");if(!y.entity)throw new Error("useEntity hook is being called outside of an EntityLayout where the entity has not been loaded. If this is intentional, please use useAsyncEntity instead.");return{entity:y.entity}}function h(){const r=(0,l.qO)("entity-context");if(!r)throw new Error("Entity context is not available");const y=r.atVersion(1);if(!y)throw new Error("EntityContext v1 not available");const{entity:A,loading:S,error:p,refresh:E}=y;return{entity:A,loading:S,error:p,refresh:E}}},124:(W,m,t)=>{t.r(m),t.d(m,{DependencyOfComponentsCard:()=>d});var e=t(31085),u=t(51372),C=t(14041),l=t(48105),f=t(59251),g=t(98508),v=t(87849);function d(O){const{t:a}=(0,v.i)(g.W),{variant:h="gridItem",title:r=a("dependencyOfComponentsCard.title"),columns:y=l.mz,tableOptions:A={}}=O;return(0,e.jsx)(f.p,{variant:h,title:r,entityKind:"Component",relationType:u.fT,columns:y,emptyMessage:a("dependencyOfComponentsCard.emptyMessage"),emptyHelpLink:l.e2,asRenderableEntities:l.xJ,tableOptions:A})}},59251:(W,m,t)=>{t.d(m,{p:()=>R});var e=t(31085),u=t(72501),C=t(99538),l=t(6820),f=t(72427),g=t(73466),v=t(7341);function d(B,o){const n=o?.type?.toLocaleLowerCase("en-US"),i=o?.kind?.toLocaleLowerCase("en-US"),x=(0,f.gf)(v.v),{loading:j,value:P,error:N}=(0,g.A)(async()=>{const b=B.relations?.filter(T=>(!n||T.type.toLocaleLowerCase("en-US")===n)&&(!i||(0,l.KU)(T.targetRef).kind===i));if(!b?.length)return[];const{items:H}=await x.getEntitiesByRefs({entityRefs:b.map(T=>T.targetRef)});return H.filter(T=>!!T)},[B,n,i]);return{entities:P,loading:j,error:N}}var O=t(89648),a=t(14041),h=t(48045),r=t(68146),y=t(58837),A=t(37197),S=t(8109),p=t(5951),E=t(77310),L=t(37916),c=t(22020);const M=(0,y.A)(B=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:B.spacing(2)},divider:{margin:B.spacing(2)}}),{name:"BackstageResponseErrorPanel"});function U(B){const{title:o,error:n,defaultExpanded:i}=B,x=M();if(n.name!=="ResponseError")return(0,e.jsx)(c.b,{title:o??n.message,defaultExpanded:i,error:n});const{body:j,cause:P}=n,{request:N,response:b}=j,H=`${b.statusCode}: ${P.name}`,T=N&&`${N.method} ${N.url}`,z=P.message.replace(/\\n/g,`
|
|
1
|
+
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[124],{74616:(W,m,t)=>{var e,u=t(4293),C=t(78920);e={value:!0},m.A=void 0;var l=C(t(14041)),f=u(t(74044)),g=(0,f.default)(l.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");m.A=g},48514:(W,m,t)=>{t.d(m,{M:()=>v});var e=t(31085),u=t(58837),C=t(71677),l=t(14041),f=t(72501);const g=(0,u.A)({container:{overflow:"visible !important"},typo:{fontSize:"inherit",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":({line:d})=>d||1,"-webkit-box-orient":"vertical"}},{name:"BackstageOverflowTooltip"});function v(d){const O=g(d);return(0,e.jsx)(C.Ay,{title:d.title??(d.text||""),placement:d.placement,children:(0,e.jsx)(f.A,{className:O.typo,variant:"inherit",children:d.text})})}},48045:(W,m,t)=>{t.d(m,{n:()=>B});var e=t(31085),u=t(40703),C=t(59469),l=t(48653),f=t(45685),g=t(37197),v=t(58837),d=t(87051),O=t(53373),a=t.n(O),h=t(14041),r=t(10394),y=t(72501),A=t(74616),S=t(72072);const p=(0,v.A)(o=>({root:{maxWidth:"fit-content",padding:o.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:o.palette.textSubtle},arrow:{color:o.palette.textSubtle}}),{name:"BackstageBottomLink"});function E(o){const{link:n,title:i,onClick:x}=o,j=p();return(0,e.jsxs)(r.A,{children:[(0,e.jsx)(g.A,{}),(0,e.jsx)(S.N_,{to:n,onClick:x,underline:"none",children:(0,e.jsxs)(r.A,{display:"flex",alignItems:"center",className:j.root,children:[(0,e.jsx)(r.A,{className:j.boxTitle,fontWeight:"fontWeightBold",m:1,children:(0,e.jsx)(y.A,{children:(0,e.jsx)("strong",{children:i})})}),(0,e.jsx)(A.A,{className:j.arrow})]})})]})}var L=t(73896),c=t(22020),M=t(10315),U=t(87849);const I=o=>{const{slackChannel:n}=o,{t:i}=(0,U.i)(M.O);if(n){if(typeof n=="string")return(0,e.jsx)(y.A,{children:i("errorBoundary.title",{slackChannel:n})});if(!n.href)return(0,e.jsx)(y.A,{children:i("errorBoundary.title",{slackChannel:n.name})})}else return null;return(0,e.jsx)(L.z,{to:n.href,variant:"contained",children:n.name})},s=class extends h.Component{constructor(n){super(n),this.state={error:void 0,errorInfo:void 0}}componentDidCatch(n,i){console.error(`ErrorBoundary, error: ${n}`,{error:n,errorInfo:i}),this.setState({error:n,errorInfo:i})}render(){const{slackChannel:n,children:i}=this.props,{error:x}=this.state;return x?(0,e.jsx)(c.b,{title:"Something Went Wrong",error:x,children:(0,e.jsx)(I,{slackChannel:n})}):i}},D=(0,v.A)(o=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},contentAlignBottom:{display:"flex",alignItems:"self-end"},header:{padding:o.spacing(2,2,2,2.5)},headerTitle:{fontWeight:o.typography.fontWeightBold},headerSubheader:{paddingTop:o.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{},subheader:{display:"flex"}}),{name:"BackstageInfoCard"}),V=(0,d.A)(o=>({root:{display:"inline-block",padding:o.spacing(8,8,0,0),float:"right"}}),{name:"BackstageInfoCardCardActionsTopRight"})(C.A),R={card:{flex:{display:"flex",flexDirection:"column"},fullHeight:{display:"flex",flexDirection:"column",height:"100%"},gridItem:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px",breakInside:"avoid-page","@media print":{height:"auto"}}},cardContent:{fullHeight:{flex:1},gridItem:{flex:1}}};function B(o){const{title:n,subheader:i,divider:x=!0,deepLink:j,slackChannel:P,errorBoundaryProps:N,variant:b,alignContent:H="normal",children:T,headerStyle:z,headerProps:w,icon:F,action:k,actionsClassName:Q,actions:J,cardClassName:Z,actionsTopRight:X,className:q,noPadding:_,titleTypographyProps:tt,subheaderTypographyProps:et}=o,K=D();let Y={},$={};b&&b.split(/[\s]+/g).forEach(G=>{Y={...Y,...R.card[G]},$={...$,...R.cardContent[G]}});const nt=()=>!i&&!F?null:(0,e.jsxs)("div",{"data-testid":"info-card-subheader",children:[i&&(0,e.jsx)("div",{className:K.subheader,children:i}),F]}),ot=N||(P?{slackChannel:P}:{});return(0,e.jsx)(u.A,{style:Y,className:q,children:(0,e.jsxs)(s,{...ot,children:[n&&(0,e.jsx)(f.A,{classes:{root:a()(K.header),title:K.headerTitle,subheader:K.headerSubheader,avatar:K.headerAvatar,action:K.headerAction,content:K.headerContent},title:n,subheader:nt(),action:k,style:{...z},titleTypographyProps:tt,subheaderTypographyProps:et,...w}),X&&(0,e.jsx)(V,{children:X}),x&&(0,e.jsx)(g.A,{}),(0,e.jsx)(l.A,{className:a()(Z,{[K.noPadding]:_,[K.contentAlignBottom]:H==="bottom"}),style:$,children:T}),J&&(0,e.jsx)(C.A,{className:Q,children:J}),j&&(0,e.jsx)(E,{...j})]})})}},89648:(W,m,t)=>{t.d(m,{s:()=>S});var e=t(31085),u=t(58837),C=t(14041),l=t(51372),f=t(48514),g=t(67871),v=t(90184),d=t(8859),O=t(34428);const a=Object.freeze({createEntityRefColumn(p){const{defaultKind:E}=p;function L(c){return c.metadata?.title||(0,v.S)(c,{defaultKind:E})}return{title:"Name",highlight:!0,customFilterAndSearch(c,M){return L(M).includes(c)},customSort(c,M){return L(c).localeCompare(L(M))},render:c=>(0,e.jsx)(d.z,{entityRef:c,defaultKind:E,title:c.metadata?.title})}},createEntityRelationColumn(p){const{title:E,relation:L,defaultKind:c,filter:M}=p;function U(s){return(0,g.t)(s,L,M)}function I(s){return U(s).map(D=>(0,v.S)(D,{defaultKind:c})).join(", ")}return{title:E,customFilterAndSearch(s,D){return I(D).includes(s)},customSort(s,D){return I(s).localeCompare(I(D))},render:s=>(0,e.jsx)(O.i,{entityRefs:U(s),defaultKind:c})}},createOwnerColumn(){return this.createEntityRelationColumn({title:"Owner",relation:l.vv,defaultKind:"group"})},createDomainColumn(){return this.createEntityRelationColumn({title:"Domain",relation:l.jn,defaultKind:"domain",filter:{kind:"domain"}})},createSystemColumn(){return this.createEntityRelationColumn({title:"System",relation:l.jn,defaultKind:"system",filter:{kind:"system"}})},createMetadataDescriptionColumn(){return{title:"Description",field:"metadata.description",render:p=>(0,e.jsx)(f.M,{text:p.metadata.description,placement:"bottom-start",line:2})}},createSpecLifecycleColumn(){return{title:"Lifecycle",field:"spec.lifecycle"}},createSpecTypeColumn(){return{title:"Type",field:"spec.type"}}}),h=[a.createEntityRefColumn({defaultKind:"system"}),a.createDomainColumn(),a.createOwnerColumn(),a.createMetadataDescriptionColumn()],r=[a.createEntityRefColumn({defaultKind:"component"}),a.createSystemColumn(),a.createOwnerColumn(),a.createSpecTypeColumn(),a.createSpecLifecycleColumn(),a.createMetadataDescriptionColumn()];var y=t(14209);const A=(0,u.A)(p=>({empty:{padding:p.spacing(2),display:"flex",justifyContent:"center"}})),S=p=>{const{entities:E,title:L,emptyContent:c,variant:M="gridItem",columns:U,tableOptions:I={}}=p,s=A(),D={minWidth:"0",width:"100%"};return M==="gridItem"&&(D.height="calc(100% - 10px)"),(0,e.jsx)(y.X,{columns:U,title:L,style:D,emptyContent:c&&(0,e.jsx)("div",{className:s.empty,children:c}),options:{search:!1,paging:!1,actionsColumnIndex:-1,padding:"dense",draggable:!1,...I},data:E})};S.columns=a,S.systemEntityColumns=h,S.componentEntityColumns=r},99538:(W,m,t)=>{t.d(m,{T7:()=>d,TY:()=>h,tN:()=>a});var e=t(31085),u=t(6820),C=t(25862),l=t(43836),f=t(10602),g=t(14041);const v=(0,l.tK)("entity-context"),d=r=>{const{children:y,entity:A,loading:S,error:p,refresh:E}=r,L={entity:A,loading:S,error:p,refresh:E};return(0,e.jsx)(v.Provider,{value:(0,f.B)({1:L}),children:(0,e.jsx)(C.Ig,{attributes:{...A?{entityRef:(0,u.U2)(A)}:void 0},children:y})})},O=r=>_jsx(d,{entity:r.entity,loading:!r.entity,error:void 0,refresh:void 0,children:r.children});function a(){const r=(0,l.qO)("entity-context");if(!r)throw new Error("Entity context is not available");const y=r.atVersion(1);if(!y)throw new Error("EntityContext v1 not available");if(!y.entity)throw new Error("useEntity hook is being called outside of an EntityLayout where the entity has not been loaded. If this is intentional, please use useAsyncEntity instead.");return{entity:y.entity}}function h(){const r=(0,l.qO)("entity-context");if(!r)throw new Error("Entity context is not available");const y=r.atVersion(1);if(!y)throw new Error("EntityContext v1 not available");const{entity:A,loading:S,error:p,refresh:E}=y;return{entity:A,loading:S,error:p,refresh:E}}},90759:(W,m,t)=>{t.d(m,{W:()=>u});var e=t(93184);const u=(0,e.h)({id:"catalog",messages:{indexPage:{title:"{{orgName}} Catalog",createButtonTitle:"Create",supportButtonContent:"All your software catalog entities"},aboutCard:{title:"About",refreshButtonTitle:"Schedule entity refresh",editButtonTitle:"Edit Metadata",createSimilarButtonTitle:"Create something similar",refreshScheduledMessage:"Refresh scheduled",launchTemplate:"Launch Template",viewTechdocs:"View TechDocs",viewSource:"View Source",descriptionField:{label:"Description",value:"No description"},ownerField:{label:"Owner",value:"No Owner"},domainField:{label:"Domain",value:"No Domain"},systemField:{label:"System",value:"No System"},parentComponentField:{label:"Parent Component",value:"No Parent Component"},typeField:{label:"Type"},lifecycleField:{label:"Lifecycle"},tagsField:{label:"Tags",value:"No Tags"},targetsField:{label:"Targets"}},searchResultItem:{lifecycle:"Lifecycle",Owner:"Owner"},catalogTable:{warningPanelTitle:"Could not fetch catalog entities.",viewActionTitle:"View",editActionTitle:"Edit",starActionTitle:"Add to favorites",unStarActionTitle:"Remove from favorites"},dependencyOfComponentsCard:{title:"Dependency of components",emptyMessage:"No component depends on this component"},dependsOnComponentsCard:{title:"Depends on components",emptyMessage:"No component is a dependency of this component"},dependsOnResourcesCard:{title:"Depends on resources",emptyMessage:"No resource is a dependency of this component"},entityContextMenu:{copiedMessage:"Copied!",moreButtonTitle:"More",inspectMenuTitle:"Inspect entity",copyURLMenuTitle:"Copy entity URL",unregisterMenuTitle:"Unregister entity"},entityLabelsCard:{title:"Labels",emptyDescription:"No labels defined for this entity. You can add labels to your entity YAML as shown in the highlighted example below:",readMoreButtonTitle:"Read more"},entityLabels:{warningPanelTitle:"Entity not found",ownerLabel:"Owner",lifecycleLabel:"Lifecycle"},entityLinksCard:{title:"Links",emptyDescription:"No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:",readMoreButtonTitle:"Read more"},entityNotFound:{title:"Entity was not found",description:"Want to help us build this? Check out our Getting Started documentation.",docButtonTitle:"DOCS"},deleteEntity:{dialogTitle:"Are you sure you want to delete this entity?",deleteButtonTitle:"Delete",cancelButtonTitle:"Cancel",description:"This entity is not referenced by any location and is therefore not receiving updates. Click here to delete."},entityProcessingErrorsDescription:"The error below originates from",entityRelationWarningDescription:`This entity has relations to other entities, which can't be found in the catalog.
|
|
2
|
+
Entities not found are: `,hasComponentsCard:{title:"Has components",emptyMessage:"No component is part of this system"},hasResourcesCard:{title:"Has resources",emptyMessage:"No resource is part of this system"},hasSubcomponentsCard:{title:"Has subcomponents",emptyMessage:"No subcomponent is part of this component"},hasSubdomainsCard:{title:"Has subdomains",emptyMessage:"No subdomain is part of this domain"},hasSystemsCard:{title:"Has systems",emptyMessage:"No system is part of this domain"},relatedEntitiesCard:{emptyHelpLinkTitle:"Learn how to change this."},systemDiagramCard:{title:"System Diagram",description:"Use pinch & zoo to move around the diagram.",edgeLabels:{partOf:"part of",provides:"provides",dependsOn:"depends on"}}}})},124:(W,m,t)=>{t.r(m),t.d(m,{DependencyOfComponentsCard:()=>d});var e=t(31085),u=t(51372),C=t(14041),l=t(48105),f=t(59251),g=t(90759),v=t(87849);function d(O){const{t:a}=(0,v.i)(g.W),{variant:h="gridItem",title:r=a("dependencyOfComponentsCard.title"),columns:y=l.mz,tableOptions:A={}}=O;return(0,e.jsx)(f.p,{variant:h,title:r,entityKind:"Component",relationType:u.fT,columns:y,emptyMessage:a("dependencyOfComponentsCard.emptyMessage"),emptyHelpLink:l.e2,asRenderableEntities:l.xJ,tableOptions:A})}},59251:(W,m,t)=>{t.d(m,{p:()=>R});var e=t(31085),u=t(72501),C=t(99538),l=t(6820),f=t(72427),g=t(73466),v=t(7341);function d(B,o){const n=o?.type?.toLocaleLowerCase("en-US"),i=o?.kind?.toLocaleLowerCase("en-US"),x=(0,f.gf)(v.v),{loading:j,value:P,error:N}=(0,g.A)(async()=>{const b=B.relations?.filter(T=>(!n||T.type.toLocaleLowerCase("en-US")===n)&&(!i||(0,l.KU)(T.targetRef).kind===i));if(!b?.length)return[];const{items:H}=await x.getEntitiesByRefs({entityRefs:b.map(T=>T.targetRef)});return H.filter(T=>!!T)},[B,n,i]);return{entities:P,loading:j,error:N}}var O=t(89648),a=t(14041),h=t(48045),r=t(68146),y=t(58837),A=t(37197),S=t(8109),p=t(5951),E=t(77310),L=t(37916),c=t(22020);const M=(0,y.A)(B=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:B.spacing(2)},divider:{margin:B.spacing(2)}}),{name:"BackstageResponseErrorPanel"});function U(B){const{title:o,error:n,defaultExpanded:i}=B,x=M();if(n.name!=="ResponseError")return(0,e.jsx)(c.b,{title:o??n.message,defaultExpanded:i,error:n});const{body:j,cause:P}=n,{request:N,response:b}=j,H=`${b.statusCode}: ${P.name}`,T=N&&`${N.method} ${N.url}`,z=P.message.replace(/\\n/g,`
|
|
2
3
|
`),w=P.stack?.replace(/\\n/g,`
|
|
3
|
-
`),F=JSON.stringify(j,void 0,2);return(0,e.jsxs)(c.b,{title:o??n.message,defaultExpanded:i,error:{name:H,message:z,stack:w},children:[T&&(0,e.jsxs)(S.A,{alignItems:"flex-start",children:[(0,e.jsx)(p.A,{classes:{secondary:x.text},primary:"Request",secondary:N?`${T}`:void 0}),(0,e.jsx)(L.l,{text:T})]}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(A.A,{component:"li",className:x.divider}),(0,e.jsx)(S.A,{alignItems:"flex-start",children:(0,e.jsx)(p.A,{classes:{secondary:x.text},primary:"Full Error as JSON"})}),(0,e.jsx)(E.z,{language:"json",text:F,showCopyCodeButton:!0})]})]})}var I=t(72072),s=t(48105),D=t(
|
|
4
|
-
Entities not found are: `,hasComponentsCard:{title:"Has components",emptyMessage:"No component is part of this system"},hasResourcesCard:{title:"Has resources",emptyMessage:"No resource is part of this system"},hasSubcomponentsCard:{title:"Has subcomponents",emptyMessage:"No subcomponent is part of this component"},hasSubdomainsCard:{title:"Has subdomains",emptyMessage:"No subdomain is part of this domain"},hasSystemsCard:{title:"Has systems",emptyMessage:"No system is part of this domain"},relatedEntitiesCard:{emptyHelpLinkTitle:"Learn how to change this."},systemDiagramCard:{title:"System Diagram",description:"Use pinch & zoo to move around the diagram.",edgeLabels:{partOf:"part of",provides:"provides",dependsOn:"depends on"}}}})}}]);})();
|
|
4
|
+
`),F=JSON.stringify(j,void 0,2);return(0,e.jsxs)(c.b,{title:o??n.message,defaultExpanded:i,error:{name:H,message:z,stack:w},children:[T&&(0,e.jsxs)(S.A,{alignItems:"flex-start",children:[(0,e.jsx)(p.A,{classes:{secondary:x.text},primary:"Request",secondary:N?`${T}`:void 0}),(0,e.jsx)(L.l,{text:T})]}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(A.A,{component:"li",className:x.divider}),(0,e.jsx)(S.A,{alignItems:"flex-start",children:(0,e.jsx)(p.A,{classes:{secondary:x.text},primary:"Full Error as JSON"})}),(0,e.jsx)(E.z,{language:"json",text:F,showCopyCodeButton:!0})]})]})}var I=t(72072),s=t(48105),D=t(90759),V=t(87849);const R=B=>{const{variant:o="gridItem",title:n,columns:i,entityKind:x,relationType:j,emptyMessage:P,emptyHelpLink:N,asRenderableEntities:b,tableOptions:H={}}=B,{t:T}=(0,V.i)(D.W),{entity:z}=(0,C.tN)(),{entities:w,loading:F,error:k}=d(z,{type:j,kind:x});return F?(0,e.jsx)(h.n,{variant:o,title:n,children:(0,e.jsx)(r.k,{})}):k?(0,e.jsx)(h.n,{variant:o,title:n,children:(0,e.jsx)(U,{error:k})}):(0,e.jsx)(O.s,{title:n,variant:o,emptyContent:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)(u.A,{variant:"body1",children:P}),(0,e.jsx)(u.A,{variant:"body2",children:(0,e.jsx)(I.N_,{to:N,children:T("relatedEntitiesCard.emptyHelpLinkTitle")})})]}),columns:i,entities:b(w||[]),tableOptions:H})};R.componentEntityColumns=s.mz,R.componentEntityHelpLink=s.e2,R.asComponentEntities=s.xJ,R.resourceEntityColumns=s.v9,R.resourceEntityHelpLink=s.nz,R.asResourceEntities=s.eB,R.systemEntityColumns=s.MW,R.systemEntityHelpLink=s.iU,R.asSystemEntities=s.vy},48105:(W,m,t)=>{t.d(m,{MW:()=>d,e2:()=>C,eB:()=>v,iU:()=>O,mz:()=>u,nz:()=>g,v9:()=>f,vy:()=>a,xJ:()=>l});var e=t(89648);const u=[e.s.columns.createEntityRefColumn({defaultKind:"component"}),e.s.columns.createOwnerColumn(),e.s.columns.createSpecTypeColumn(),e.s.columns.createSpecLifecycleColumn(),e.s.columns.createMetadataDescriptionColumn()],C="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",l=h=>h,f=[e.s.columns.createEntityRefColumn({defaultKind:"resource"}),e.s.columns.createOwnerColumn(),e.s.columns.createSpecTypeColumn(),e.s.columns.createSpecLifecycleColumn(),e.s.columns.createMetadataDescriptionColumn()],g="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",v=h=>h,d=[e.s.columns.createEntityRefColumn({defaultKind:"system"}),e.s.columns.createOwnerColumn(),e.s.columns.createMetadataDescriptionColumn()],O="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",a=h=>h}}]);})();
|
|
5
5
|
|
|
6
|
-
//# sourceMappingURL=124.
|
|
6
|
+
//# sourceMappingURL=124.159a325a.chunk.js.map
|