@techdocs/cli 1.8.15-next.0 → 1.8.15
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 +26 -4
- package/dist/embedded-app/.config-schema.json +0 -490
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/{5724.e0714125.chunk.js → 5724.49186426.chunk.js} +1 -1
- package/dist/embedded-app/static/5724.49186426.chunk.js.map +1 -0
- package/dist/embedded-app/static/main.bed8cee0.js +508 -0
- package/dist/embedded-app/static/main.bed8cee0.js.map +1 -0
- package/dist/embedded-app/static/{runtime.fc9ef40b.js → runtime.bed8cee0.js} +2 -2
- package/dist/embedded-app/static/{runtime.fc9ef40b.js.map → runtime.bed8cee0.js.map} +1 -1
- package/dist/embedded-app/static/{vendor.fc9ef40b.js → vendor.bed8cee0.js} +52 -52
- package/dist/embedded-app/static/{vendor.fc9ef40b.js.map → vendor.bed8cee0.js.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/package.json +4 -4
- package/dist/embedded-app/static/5724.e0714125.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.fc9ef40b.js +0 -508
- package/dist/embedded-app/static/main.fc9ef40b.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,35 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
-
## 1.8.15
|
|
3
|
+
## 1.8.15
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- c964a3d: Import discovery from backend-defaults instead of backend-common
|
|
8
7
|
- Updated dependencies
|
|
9
|
-
- @backstage/backend-defaults@0.3.3
|
|
10
|
-
- @backstage/plugin-techdocs-node@1.12.7
|
|
8
|
+
- @backstage/backend-defaults@0.3.3
|
|
9
|
+
- @backstage/plugin-techdocs-node@1.12.7
|
|
10
|
+
- @backstage/catalog-model@1.5.0
|
|
11
|
+
- @backstage/cli-common@0.1.14
|
|
12
|
+
- @backstage/config@1.2.0
|
|
13
|
+
|
|
14
|
+
## 1.8.14
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @backstage/backend-defaults@0.3.2
|
|
20
|
+
- @backstage/catalog-model@1.5.0
|
|
21
|
+
- @backstage/cli-common@0.1.14
|
|
22
|
+
- @backstage/config@1.2.0
|
|
23
|
+
- @backstage/plugin-techdocs-node@1.12.6
|
|
24
|
+
|
|
25
|
+
## 1.8.13
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- aeae3be: Import discovery from backend-defaults instead of backend-common
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
- @backstage/backend-defaults@0.3.1
|
|
32
|
+
- @backstage/plugin-techdocs-node@1.12.6
|
|
11
33
|
- @backstage/catalog-model@1.5.0
|
|
12
34
|
- @backstage/cli-common@0.1.14
|
|
13
35
|
- @backstage/config@1.2.0
|
|
@@ -1486,51 +1486,6 @@
|
|
|
1486
1486
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1487
1487
|
}
|
|
1488
1488
|
},
|
|
1489
|
-
{
|
|
1490
|
-
"path": "../../node_modules/@backstage-community/plugin-stackstorm/node_modules/@backstage/core-components/config.d.ts",
|
|
1491
|
-
"value": {
|
|
1492
|
-
"type": "object",
|
|
1493
|
-
"properties": {
|
|
1494
|
-
"auth": {
|
|
1495
|
-
"type": "object",
|
|
1496
|
-
"properties": {
|
|
1497
|
-
"autologout": {
|
|
1498
|
-
"description": "Autologout feature configuration",
|
|
1499
|
-
"type": "object",
|
|
1500
|
-
"properties": {
|
|
1501
|
-
"enabled": {
|
|
1502
|
-
"description": "Enable or disable the autologout feature",
|
|
1503
|
-
"visibility": "frontend",
|
|
1504
|
-
"type": "boolean"
|
|
1505
|
-
},
|
|
1506
|
-
"idleTimeoutMinutes": {
|
|
1507
|
-
"description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
|
|
1508
|
-
"visibility": "frontend",
|
|
1509
|
-
"type": "number"
|
|
1510
|
-
},
|
|
1511
|
-
"promptBeforeIdleSeconds": {
|
|
1512
|
-
"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.",
|
|
1513
|
-
"visibility": "frontend",
|
|
1514
|
-
"type": "number"
|
|
1515
|
-
},
|
|
1516
|
-
"useWorkerTimers": {
|
|
1517
|
-
"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.",
|
|
1518
|
-
"visibility": "frontend",
|
|
1519
|
-
"type": "boolean"
|
|
1520
|
-
},
|
|
1521
|
-
"logoutIfDisconnected": {
|
|
1522
|
-
"description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
|
|
1523
|
-
"visibility": "frontend",
|
|
1524
|
-
"type": "boolean"
|
|
1525
|
-
}
|
|
1526
|
-
}
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
},
|
|
1531
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1532
|
-
}
|
|
1533
|
-
},
|
|
1534
1489
|
{
|
|
1535
1490
|
"path": "../../node_modules/@oriflame/backstage-plugin-score-card/node_modules/@backstage/core-components/config.d.ts",
|
|
1536
1491
|
"value": {
|
|
@@ -2463,451 +2418,6 @@
|
|
|
2463
2418
|
},
|
|
2464
2419
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2465
2420
|
}
|
|
2466
|
-
},
|
|
2467
|
-
{
|
|
2468
|
-
"path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/integration/config.d.ts",
|
|
2469
|
-
"value": {
|
|
2470
|
-
"type": "object",
|
|
2471
|
-
"properties": {
|
|
2472
|
-
"integrations": {
|
|
2473
|
-
"description": "Configuration for integrations towards various external repository provider systems",
|
|
2474
|
-
"visibility": "frontend",
|
|
2475
|
-
"type": "object",
|
|
2476
|
-
"properties": {
|
|
2477
|
-
"azure": {
|
|
2478
|
-
"description": "Integration configuration for Azure",
|
|
2479
|
-
"type": "array",
|
|
2480
|
-
"items": {
|
|
2481
|
-
"type": "object",
|
|
2482
|
-
"properties": {
|
|
2483
|
-
"host": {
|
|
2484
|
-
"description": "The hostname of the given Azure instance",
|
|
2485
|
-
"visibility": "frontend",
|
|
2486
|
-
"type": "string"
|
|
2487
|
-
},
|
|
2488
|
-
"token": {
|
|
2489
|
-
"description": "Token used to authenticate requests.",
|
|
2490
|
-
"visibility": "secret",
|
|
2491
|
-
"deprecated": "Use `credentials` instead.",
|
|
2492
|
-
"type": "string"
|
|
2493
|
-
},
|
|
2494
|
-
"credential": {
|
|
2495
|
-
"description": "The credential to use for requests.\n\nIf no credential is specified anonymous access is used.",
|
|
2496
|
-
"deepVisibility": "secret",
|
|
2497
|
-
"deprecated": "Use `credentials` instead.",
|
|
2498
|
-
"type": "object",
|
|
2499
|
-
"properties": {
|
|
2500
|
-
"clientId": {
|
|
2501
|
-
"type": "string"
|
|
2502
|
-
},
|
|
2503
|
-
"clientSecret": {
|
|
2504
|
-
"type": "string"
|
|
2505
|
-
},
|
|
2506
|
-
"tenantId": {
|
|
2507
|
-
"type": "string"
|
|
2508
|
-
},
|
|
2509
|
-
"personalAccessToken": {
|
|
2510
|
-
"type": "string"
|
|
2511
|
-
}
|
|
2512
|
-
}
|
|
2513
|
-
},
|
|
2514
|
-
"credentials": {
|
|
2515
|
-
"description": "The credentials to use for requests. If multiple credentials are specified the first one that matches the organization is used.\nIf not organization matches the first credential without an organization is used.\n\nIf no credentials are specified at all, either a default credential (for Azure DevOps) or anonymous access (for Azure DevOps Server) is used.",
|
|
2516
|
-
"deepVisibility": "secret",
|
|
2517
|
-
"type": "array",
|
|
2518
|
-
"items": {
|
|
2519
|
-
"type": "object",
|
|
2520
|
-
"properties": {
|
|
2521
|
-
"clientId": {
|
|
2522
|
-
"type": "string"
|
|
2523
|
-
},
|
|
2524
|
-
"clientSecret": {
|
|
2525
|
-
"type": "string"
|
|
2526
|
-
},
|
|
2527
|
-
"tenantId": {
|
|
2528
|
-
"type": "string"
|
|
2529
|
-
},
|
|
2530
|
-
"personalAccessToken": {
|
|
2531
|
-
"type": "string"
|
|
2532
|
-
}
|
|
2533
|
-
}
|
|
2534
|
-
}
|
|
2535
|
-
}
|
|
2536
|
-
},
|
|
2537
|
-
"required": [
|
|
2538
|
-
"host"
|
|
2539
|
-
]
|
|
2540
|
-
}
|
|
2541
|
-
},
|
|
2542
|
-
"bitbucket": {
|
|
2543
|
-
"description": "Integration configuration for Bitbucket",
|
|
2544
|
-
"deprecated": "replaced by bitbucketCloud and bitbucketServer",
|
|
2545
|
-
"type": "array",
|
|
2546
|
-
"items": {
|
|
2547
|
-
"type": "object",
|
|
2548
|
-
"properties": {
|
|
2549
|
-
"host": {
|
|
2550
|
-
"description": "The hostname of the given Bitbucket instance",
|
|
2551
|
-
"visibility": "frontend",
|
|
2552
|
-
"type": "string"
|
|
2553
|
-
},
|
|
2554
|
-
"token": {
|
|
2555
|
-
"description": "Token used to authenticate requests.",
|
|
2556
|
-
"visibility": "secret",
|
|
2557
|
-
"type": "string"
|
|
2558
|
-
},
|
|
2559
|
-
"apiBaseUrl": {
|
|
2560
|
-
"description": "The base url for the Bitbucket API, for example https://api.bitbucket.org/2.0",
|
|
2561
|
-
"visibility": "frontend",
|
|
2562
|
-
"type": "string"
|
|
2563
|
-
},
|
|
2564
|
-
"username": {
|
|
2565
|
-
"description": "The username to use for authenticated requests.",
|
|
2566
|
-
"visibility": "secret",
|
|
2567
|
-
"type": "string"
|
|
2568
|
-
},
|
|
2569
|
-
"appPassword": {
|
|
2570
|
-
"description": "Bitbucket app password used to authenticate requests.",
|
|
2571
|
-
"visibility": "secret",
|
|
2572
|
-
"type": "string"
|
|
2573
|
-
}
|
|
2574
|
-
},
|
|
2575
|
-
"required": [
|
|
2576
|
-
"host"
|
|
2577
|
-
]
|
|
2578
|
-
}
|
|
2579
|
-
},
|
|
2580
|
-
"bitbucketCloud": {
|
|
2581
|
-
"description": "Integration configuration for Bitbucket Cloud",
|
|
2582
|
-
"type": "array",
|
|
2583
|
-
"items": {
|
|
2584
|
-
"type": "object",
|
|
2585
|
-
"properties": {
|
|
2586
|
-
"username": {
|
|
2587
|
-
"description": "The username to use for authenticated requests.",
|
|
2588
|
-
"visibility": "secret",
|
|
2589
|
-
"type": "string"
|
|
2590
|
-
},
|
|
2591
|
-
"appPassword": {
|
|
2592
|
-
"description": "Bitbucket Cloud app password used to authenticate requests.",
|
|
2593
|
-
"visibility": "secret",
|
|
2594
|
-
"type": "string"
|
|
2595
|
-
}
|
|
2596
|
-
},
|
|
2597
|
-
"required": [
|
|
2598
|
-
"appPassword",
|
|
2599
|
-
"username"
|
|
2600
|
-
]
|
|
2601
|
-
}
|
|
2602
|
-
},
|
|
2603
|
-
"bitbucketServer": {
|
|
2604
|
-
"description": "Integration configuration for Bitbucket Server",
|
|
2605
|
-
"type": "array",
|
|
2606
|
-
"items": {
|
|
2607
|
-
"type": "object",
|
|
2608
|
-
"properties": {
|
|
2609
|
-
"host": {
|
|
2610
|
-
"description": "The hostname of the given Bitbucket Server instance",
|
|
2611
|
-
"visibility": "frontend",
|
|
2612
|
-
"type": "string"
|
|
2613
|
-
},
|
|
2614
|
-
"token": {
|
|
2615
|
-
"description": "Token used to authenticate requests.",
|
|
2616
|
-
"visibility": "secret",
|
|
2617
|
-
"type": "string"
|
|
2618
|
-
},
|
|
2619
|
-
"username": {
|
|
2620
|
-
"description": "Username used to authenticate requests with Basic Auth.",
|
|
2621
|
-
"visibility": "secret",
|
|
2622
|
-
"type": "string"
|
|
2623
|
-
},
|
|
2624
|
-
"password": {
|
|
2625
|
-
"description": "Password (or token as password) used to authenticate requests with Basic Auth.",
|
|
2626
|
-
"visibility": "secret",
|
|
2627
|
-
"type": "string"
|
|
2628
|
-
},
|
|
2629
|
-
"apiBaseUrl": {
|
|
2630
|
-
"description": "The base url for the Bitbucket Server API, for example https://<host>/rest/api/1.0",
|
|
2631
|
-
"visibility": "frontend",
|
|
2632
|
-
"type": "string"
|
|
2633
|
-
}
|
|
2634
|
-
},
|
|
2635
|
-
"required": [
|
|
2636
|
-
"host"
|
|
2637
|
-
]
|
|
2638
|
-
}
|
|
2639
|
-
},
|
|
2640
|
-
"gerrit": {
|
|
2641
|
-
"description": "Integration configuration for Gerrit",
|
|
2642
|
-
"type": "array",
|
|
2643
|
-
"items": {
|
|
2644
|
-
"type": "object",
|
|
2645
|
-
"properties": {
|
|
2646
|
-
"host": {
|
|
2647
|
-
"description": "The hostname of the given Gerrit instance",
|
|
2648
|
-
"visibility": "frontend",
|
|
2649
|
-
"type": "string"
|
|
2650
|
-
},
|
|
2651
|
-
"baseUrl": {
|
|
2652
|
-
"description": "The base url for the Gerrit instance.",
|
|
2653
|
-
"visibility": "frontend",
|
|
2654
|
-
"type": "string"
|
|
2655
|
-
},
|
|
2656
|
-
"gitilesBaseUrl": {
|
|
2657
|
-
"description": "The gitiles base url.",
|
|
2658
|
-
"visibility": "frontend",
|
|
2659
|
-
"type": "string"
|
|
2660
|
-
},
|
|
2661
|
-
"cloneUrl": {
|
|
2662
|
-
"description": "The base url for cloning repos.",
|
|
2663
|
-
"visibility": "frontend",
|
|
2664
|
-
"type": "string"
|
|
2665
|
-
},
|
|
2666
|
-
"username": {
|
|
2667
|
-
"description": "The username to use for authenticated requests.",
|
|
2668
|
-
"visibility": "secret",
|
|
2669
|
-
"type": "string"
|
|
2670
|
-
},
|
|
2671
|
-
"password": {
|
|
2672
|
-
"description": "Gerrit password used to authenticate requests. This can be either a password\nor a generated access token.",
|
|
2673
|
-
"visibility": "secret",
|
|
2674
|
-
"type": "string"
|
|
2675
|
-
}
|
|
2676
|
-
},
|
|
2677
|
-
"required": [
|
|
2678
|
-
"gitilesBaseUrl",
|
|
2679
|
-
"host"
|
|
2680
|
-
]
|
|
2681
|
-
}
|
|
2682
|
-
},
|
|
2683
|
-
"github": {
|
|
2684
|
-
"description": "Integration configuration for GitHub",
|
|
2685
|
-
"type": "array",
|
|
2686
|
-
"items": {
|
|
2687
|
-
"type": "object",
|
|
2688
|
-
"properties": {
|
|
2689
|
-
"host": {
|
|
2690
|
-
"description": "The hostname of the given GitHub instance",
|
|
2691
|
-
"visibility": "frontend",
|
|
2692
|
-
"type": "string"
|
|
2693
|
-
},
|
|
2694
|
-
"token": {
|
|
2695
|
-
"description": "Token used to authenticate requests.",
|
|
2696
|
-
"visibility": "secret",
|
|
2697
|
-
"type": "string"
|
|
2698
|
-
},
|
|
2699
|
-
"apiBaseUrl": {
|
|
2700
|
-
"description": "The base url for the GitHub API, for example https://api.github.com",
|
|
2701
|
-
"visibility": "frontend",
|
|
2702
|
-
"type": "string"
|
|
2703
|
-
},
|
|
2704
|
-
"rawBaseUrl": {
|
|
2705
|
-
"description": "The base url for GitHub raw resources, for example https://raw.githubusercontent.com",
|
|
2706
|
-
"visibility": "frontend",
|
|
2707
|
-
"type": "string"
|
|
2708
|
-
},
|
|
2709
|
-
"apps": {
|
|
2710
|
-
"description": "GitHub Apps configuration",
|
|
2711
|
-
"type": "array",
|
|
2712
|
-
"items": {
|
|
2713
|
-
"type": "object",
|
|
2714
|
-
"properties": {
|
|
2715
|
-
"appId": {
|
|
2716
|
-
"description": "The numeric GitHub App ID, string for environment variables",
|
|
2717
|
-
"type": [
|
|
2718
|
-
"string",
|
|
2719
|
-
"number"
|
|
2720
|
-
]
|
|
2721
|
-
},
|
|
2722
|
-
"privateKey": {
|
|
2723
|
-
"description": "The private key to use for auth against the app",
|
|
2724
|
-
"visibility": "secret",
|
|
2725
|
-
"type": "string"
|
|
2726
|
-
},
|
|
2727
|
-
"webhookSecret": {
|
|
2728
|
-
"description": "The secret used for webhooks",
|
|
2729
|
-
"visibility": "secret",
|
|
2730
|
-
"type": "string"
|
|
2731
|
-
},
|
|
2732
|
-
"clientId": {
|
|
2733
|
-
"description": "The client ID to use",
|
|
2734
|
-
"type": "string"
|
|
2735
|
-
},
|
|
2736
|
-
"clientSecret": {
|
|
2737
|
-
"description": "The client secret to use",
|
|
2738
|
-
"visibility": "secret",
|
|
2739
|
-
"type": "string"
|
|
2740
|
-
},
|
|
2741
|
-
"allowedInstallationOwners": {
|
|
2742
|
-
"description": "List of installation owners allowed to be used by this GitHub app. The GitHub UI does not provide a way to list the installations.\nHowever you can list the installations with the GitHub API. You can find the list of installations here:\nhttps://api.github.com/app/installations\nThe relevant documentation for this is here.\nhttps://docs.github.com/en/rest/reference/apps#list-installations-for-the-authenticated-app--code-samples",
|
|
2743
|
-
"type": "array",
|
|
2744
|
-
"items": {
|
|
2745
|
-
"type": "string"
|
|
2746
|
-
}
|
|
2747
|
-
}
|
|
2748
|
-
},
|
|
2749
|
-
"required": [
|
|
2750
|
-
"appId",
|
|
2751
|
-
"clientId",
|
|
2752
|
-
"clientSecret",
|
|
2753
|
-
"privateKey",
|
|
2754
|
-
"webhookSecret"
|
|
2755
|
-
]
|
|
2756
|
-
}
|
|
2757
|
-
}
|
|
2758
|
-
},
|
|
2759
|
-
"required": [
|
|
2760
|
-
"host"
|
|
2761
|
-
]
|
|
2762
|
-
}
|
|
2763
|
-
},
|
|
2764
|
-
"gitlab": {
|
|
2765
|
-
"description": "Integration configuration for GitLab",
|
|
2766
|
-
"type": "array",
|
|
2767
|
-
"items": {
|
|
2768
|
-
"type": "object",
|
|
2769
|
-
"properties": {
|
|
2770
|
-
"host": {
|
|
2771
|
-
"description": "The host of the target that this matches on, e.g. \"gitlab.com\".",
|
|
2772
|
-
"visibility": "frontend",
|
|
2773
|
-
"type": "string"
|
|
2774
|
-
},
|
|
2775
|
-
"apiBaseUrl": {
|
|
2776
|
-
"description": "The base URL of the API of this provider, e.g.\n\"https://gitlab.com/api/v4\", with no trailing slash.\n\nMay be omitted specifically for public GitLab; then it will be deduced.",
|
|
2777
|
-
"visibility": "frontend",
|
|
2778
|
-
"type": "string"
|
|
2779
|
-
},
|
|
2780
|
-
"token": {
|
|
2781
|
-
"description": "The authorization token to use for requests to this provider.\n\nIf no token is specified, anonymous access is used.",
|
|
2782
|
-
"visibility": "secret",
|
|
2783
|
-
"type": "string"
|
|
2784
|
-
},
|
|
2785
|
-
"baseUrl": {
|
|
2786
|
-
"description": "The baseUrl of this provider, e.g. \"https://gitlab.com\", which is\npassed into the GitLab client.\n\nIf no baseUrl is provided, it will default to https://${host}.",
|
|
2787
|
-
"visibility": "frontend",
|
|
2788
|
-
"type": "string"
|
|
2789
|
-
}
|
|
2790
|
-
},
|
|
2791
|
-
"required": [
|
|
2792
|
-
"host"
|
|
2793
|
-
]
|
|
2794
|
-
}
|
|
2795
|
-
},
|
|
2796
|
-
"googleGcs": {
|
|
2797
|
-
"description": "Integration configuration for Google Cloud Storage",
|
|
2798
|
-
"type": "object",
|
|
2799
|
-
"properties": {
|
|
2800
|
-
"clientEmail": {
|
|
2801
|
-
"description": "Service account email used to authenticate requests.",
|
|
2802
|
-
"type": "string"
|
|
2803
|
-
},
|
|
2804
|
-
"privateKey": {
|
|
2805
|
-
"description": "Service account private key used to authenticate requests.",
|
|
2806
|
-
"visibility": "secret",
|
|
2807
|
-
"type": "string"
|
|
2808
|
-
}
|
|
2809
|
-
}
|
|
2810
|
-
},
|
|
2811
|
-
"awsS3": {
|
|
2812
|
-
"description": "Integration configuration for AWS S3 Service",
|
|
2813
|
-
"type": "array",
|
|
2814
|
-
"items": {
|
|
2815
|
-
"type": "object",
|
|
2816
|
-
"properties": {
|
|
2817
|
-
"endpoint": {
|
|
2818
|
-
"description": "AWS Endpoint.\nThe endpoint URI to send requests to. The default endpoint is built from the configured region.",
|
|
2819
|
-
"visibility": "frontend",
|
|
2820
|
-
"type": "string"
|
|
2821
|
-
},
|
|
2822
|
-
"s3ForcePathStyle": {
|
|
2823
|
-
"description": "Whether to use path style URLs when communicating with S3.\nDefaults to false.\nThis allows providers like LocalStack, Minio and Wasabi (and possibly others) to be used.",
|
|
2824
|
-
"visibility": "frontend",
|
|
2825
|
-
"type": "boolean"
|
|
2826
|
-
},
|
|
2827
|
-
"accessKeyId": {
|
|
2828
|
-
"description": "Account access key used to authenticate requests.",
|
|
2829
|
-
"type": "string"
|
|
2830
|
-
},
|
|
2831
|
-
"secretAccessKey": {
|
|
2832
|
-
"description": "Account secret key used to authenticate requests.",
|
|
2833
|
-
"visibility": "secret",
|
|
2834
|
-
"type": "string"
|
|
2835
|
-
},
|
|
2836
|
-
"roleArn": {
|
|
2837
|
-
"description": "ARN of the role to be assumed",
|
|
2838
|
-
"type": "string"
|
|
2839
|
-
},
|
|
2840
|
-
"externalId": {
|
|
2841
|
-
"description": "External ID to use when assuming role",
|
|
2842
|
-
"type": "string"
|
|
2843
|
-
}
|
|
2844
|
-
}
|
|
2845
|
-
}
|
|
2846
|
-
},
|
|
2847
|
-
"gitea": {
|
|
2848
|
-
"description": "Integration configuration for Gitea",
|
|
2849
|
-
"type": "array",
|
|
2850
|
-
"items": {
|
|
2851
|
-
"type": "object",
|
|
2852
|
-
"properties": {
|
|
2853
|
-
"host": {
|
|
2854
|
-
"description": "The hostname of the given Gitea instance",
|
|
2855
|
-
"visibility": "frontend",
|
|
2856
|
-
"type": "string"
|
|
2857
|
-
},
|
|
2858
|
-
"baseUrl": {
|
|
2859
|
-
"description": "The base url for the Gitea instance.",
|
|
2860
|
-
"visibility": "frontend",
|
|
2861
|
-
"type": "string"
|
|
2862
|
-
},
|
|
2863
|
-
"username": {
|
|
2864
|
-
"description": "The username to use for authenticated requests.",
|
|
2865
|
-
"visibility": "secret",
|
|
2866
|
-
"type": "string"
|
|
2867
|
-
},
|
|
2868
|
-
"password": {
|
|
2869
|
-
"description": "Gitea password used to authenticate requests. This can be either a password\nor a generated access token.",
|
|
2870
|
-
"visibility": "secret",
|
|
2871
|
-
"type": "string"
|
|
2872
|
-
}
|
|
2873
|
-
},
|
|
2874
|
-
"required": [
|
|
2875
|
-
"host"
|
|
2876
|
-
]
|
|
2877
|
-
}
|
|
2878
|
-
},
|
|
2879
|
-
"harness": {
|
|
2880
|
-
"description": "Integration configuration for Harness Code",
|
|
2881
|
-
"type": "array",
|
|
2882
|
-
"items": {
|
|
2883
|
-
"type": "object",
|
|
2884
|
-
"properties": {
|
|
2885
|
-
"host": {
|
|
2886
|
-
"description": "The hostname of the given Harness Code instance",
|
|
2887
|
-
"visibility": "frontend",
|
|
2888
|
-
"type": "string"
|
|
2889
|
-
},
|
|
2890
|
-
"apiKey": {
|
|
2891
|
-
"description": "The apikey to use for authenticated requests.",
|
|
2892
|
-
"visibility": "secret",
|
|
2893
|
-
"type": "string"
|
|
2894
|
-
},
|
|
2895
|
-
"token": {
|
|
2896
|
-
"description": "Harness Code token used to authenticate requests. This can be either a generated access token.",
|
|
2897
|
-
"visibility": "secret",
|
|
2898
|
-
"type": "string"
|
|
2899
|
-
}
|
|
2900
|
-
},
|
|
2901
|
-
"required": [
|
|
2902
|
-
"host"
|
|
2903
|
-
]
|
|
2904
|
-
}
|
|
2905
|
-
}
|
|
2906
|
-
}
|
|
2907
|
-
}
|
|
2908
|
-
},
|
|
2909
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2910
|
-
}
|
|
2911
2421
|
}
|
|
2912
2422
|
],
|
|
2913
2423
|
"backstageConfigSchemaVersion": 1
|
|
@@ -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.bed8cee0.js"></script><script defer="defer" src="/static/module-material-ui.1eefc717.js"></script><script defer="defer" src="/static/module-lodash.1a2b8e11.js"></script><script defer="defer" src="/static/module-date-fns.196adaa7.js"></script><script defer="defer" src="/static/module-mui.bb6867cb.js"></script><script defer="defer" src="/static/module-material-table.892da5bc.js"></script><script defer="defer" src="/static/module-react-dom.3e65b8bc.js"></script><script defer="defer" src="/static/module-react-router.07ec2a81.js"></script><script defer="defer" src="/static/module-react-router-dom.ba9d01bf.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.8a51ed97.js"></script><script defer="defer" src="/static/module-zod.52dba18e.js"></script><script defer="defer" src="/static/module-i18next.40b7c233.js"></script><script defer="defer" src="/static/vendor.bed8cee0.js"></script><script defer="defer" src="/static/main.bed8cee0.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[5724],{35773:(W,E,e)=>{e.d(E,{C4:()=>b,tS:()=>U});var t=e(14117);const h="catalog-entity",A=(0,t.i)({name:"catalog.entity.read",attributes:{action:"read"},resourceType:h}),b=(0,t.i)({name:"catalog.entity.create",attributes:{action:"create"}}),C=(0,t.i)({name:"catalog.entity.delete",attributes:{action:"delete"},resourceType:h}),U=(0,t.i)({name:"catalog.entity.refresh",attributes:{action:"update"},resourceType:h}),D=(0,t.i)({name:"catalog.location.read",attributes:{action:"read"}}),I=(0,t.i)({name:"catalog.location.create",attributes:{action:"create"}}),O=(0,t.i)({name:"catalog.location.delete",attributes:{action:"delete"}}),j=[A,b,C,U,D,I,O]},99538:(W,E,e)=>{e.d(E,{T7:()=>I,TY:()=>w,tN:()=>j});var t=e(31085),h=e(6820),A=e(25862),b=e(43836),C=e(10602),U=e(14041);const D=(0,b.tK)("entity-context"),I=p=>{const{children:c,entity:u,loading:x,error:m,refresh:g}=p,v={entity:u,loading:x,error:m,refresh:g};return(0,t.jsx)(D.Provider,{value:(0,C.B)({1:v}),children:(0,t.jsx)(A.Ig,{attributes:{...u?{entityRef:(0,h.U2)(u)}:void 0},children:c})})},O=p=>_jsx(I,{entity:p.entity,loading:!p.entity,error:void 0,refresh:void 0,children:p.children});function j(){const p=(0,b.qO)("entity-context");if(!p)throw new Error("Entity context is not available");const c=p.atVersion(1);if(!c)throw new Error("EntityContext v1 not available");if(!c.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:c.entity}}function w(){const p=(0,b.qO)("entity-context");if(!p)throw new Error("Entity context is not available");const c=p.atVersion(1);if(!c)throw new Error("EntityContext v1 not available");const{entity:u,loading:x,error:m,refresh:g}=c;return{entity:u,loading:x,error:m,refresh:g}}},65724:(W,E,e)=>{e.r(E),e.d(E,{AboutCard:()=>ut,AboutContent:()=>ye,AboutField:()=>S});var t=e(31085),h=e(72348),A=e(6820),b=e(17736),C=e(40703),U=e(48653),D=e(45685),I=e(37197),O=e(29365),j=e(58837),w=e(72072),p=e(31129),c=e(14041),u=e(53373),x=e.n(u),m=e(86613),g=e(10394),v=e(72501);const k=(0,j.A)(i=>({link:{display:"grid",justifyItems:"center",gridGap:4,textAlign:"center"},disabled:{color:i.palette.text.secondary,cursor:"default"},primary:{color:i.palette.primary.main},secondary:{color:i.palette.secondary.main},label:{textTransform:"uppercase",fontWeight:i.typography.fontWeightBold,letterSpacing:1.2}}),{name:"BackstageIconLinkVertical"});function L({color:i="primary",disabled:a=!1,href:s="#",icon:o=(0,t.jsx)(m.A,{}),label:r,onClick:l,title:d}){const f=k();return a?(0,t.jsxs)(g.A,{title:d,className:x()(f.link,f.disabled),children:[o,(0,t.jsx)(v.A,{variant:"caption",component:"span",className:f.label,children:r})]}):(0,t.jsxs)(w.N_,{title:d,className:x()(f.link,f[i]),to:s,onClick:l,children:[o,(0,t.jsx)(v.A,{variant:"caption",component:"span",className:f.label,children:r})]})}const y=(0,j.A)(i=>({links:{margin:i.spacing(2,0),display:"grid",gridAutoFlow:"column",gridAutoColumns:"min-content",gridGap:i.spacing(3)}}),{name:"BackstageHeaderIconLinkRow"});function G(i){const{links:a}=i,s=y();return(0,t.jsx)("nav",{className:s.links,children:a.map((o,r)=>(0,t.jsx)(L,{...o},r+1))})}var te=e(3347),je=e(13660),ce=e(82266);const Te=i=>{const{type:a}=i,s=(0,ce.n)(),o=je.A;var r;const l=a&&(r=s.getSystemIcon(a))!==null&&r!==void 0?r:o;return(0,t.jsx)(l,{})};var J=e(72427),Ee=e(36017),Le=e(39837),de=e(9222),pe=e(99538),me=e(7341),ue=e(78692);function Ce(i,a){var s;const o=(s=i.metadata.annotations)===null||s===void 0?void 0:s[b.I4];if(o)try{const r=(0,ue.aY)(o),l=a.byUrl(r.target);return{locationTargetUrl:r.target,integrationType:l==null?void 0:l.type}}catch{return}}var fe=e(95203),Z=e(51372),q=e(67871),_=e(34428),ke=e(67720),he=e(42899),Se=e(4650),Pe=e(82442);const Re=(0,j.A)(i=>({value:{fontWeight:"bold",overflow:"hidden",lineHeight:"24px",wordBreak:"break-word"},label:{color:i.palette.text.secondary,textTransform:"uppercase",fontSize:"10px",fontWeight:"bold",letterSpacing:.5,overflow:"hidden",whiteSpace:"nowrap"}}));function S(i){const{label:a,value:s,gridSizes:o,children:r}=i,l=Re(),d=(0,Pe.O)(r,T=>T.getElements()),f=d.length>0?d:(0,t.jsx)(v.A,{variant:"body2",className:l.value,children:s||"unknown"});return(0,t.jsxs)(he.A,{item:!0,...o,children:[(0,t.jsx)(v.A,{variant:"h2",className:l.label,children:a}),f]})}var Ie=e(18750);const Oe=(0,j.A)({description:{wordBreak:"break-word"}});function we(i,a,s){if(a==="url"||i.includes("://"))return i;const o=s.type==="file"?`file://${s.target}`:s.target;return a==="file"||s.type==="file"?new URL(i,o).href:o}function ye(i){var a,s,o,r,l,d,f,T;const{entity:n}=i,ie=Oe(),ee=n.kind.toLocaleLowerCase("en-US")==="system",Y=n.kind.toLocaleLowerCase("en-US")==="resource",B=n.kind.toLocaleLowerCase("en-US")==="component",$=n.kind.toLocaleLowerCase("en-US")==="api",z=n.kind.toLocaleLowerCase("en-US")==="template",K=n.kind.toLocaleLowerCase("en-US")==="location",ae=n.kind.toLocaleLowerCase("en-US")==="group",Q=(0,q.t)(n,Z.jn,{kind:"system"}),P=(0,q.t)(n,Z.jn,{kind:"component"}),M=(0,q.t)(n,Z.jn,{kind:"domain"}),N=(0,q.t)(n,Z.vv);let V;try{V=(0,ue.Cr)(n)}catch{V=void 0}return(0,t.jsxs)(he.A,{container:!0,children:[(0,t.jsx)(S,{label:"Description",gridSizes:{xs:12},children:(0,t.jsx)(Se.h,{className:ie.description,content:(n==null||(a=n.metadata)===null||a===void 0?void 0:a.description)||"No description"})}),(0,t.jsx)(S,{label:"Owner",value:"No Owner",gridSizes:{xs:12,sm:6,lg:4},children:N.length>0&&(0,t.jsx)(_.i,{entityRefs:N,defaultKind:"group"})}),(ee||M.length>0)&&(0,t.jsx)(S,{label:"Domain",value:"No Domain",gridSizes:{xs:12,sm:6,lg:4},children:M.length>0&&(0,t.jsx)(_.i,{entityRefs:M,defaultKind:"domain"})}),($||B||Y||Q.length>0)&&(0,t.jsx)(S,{label:"System",value:"No System",gridSizes:{xs:12,sm:6,lg:4},children:Q.length>0&&(0,t.jsx)(_.i,{entityRefs:Q,defaultKind:"system"})}),B&&P.length>0&&(0,t.jsx)(S,{label:"Parent Component",value:"No Parent Component",gridSizes:{xs:12,sm:6,lg:4},children:(0,t.jsx)(_.i,{entityRefs:P,defaultKind:"component"})}),($||B||Y||z||ae||K||typeof(n==null||(s=n.spec)===null||s===void 0?void 0:s.type)=="string")&&(0,t.jsx)(S,{label:"Type",value:n==null||(o=n.spec)===null||o===void 0?void 0:o.type,gridSizes:{xs:12,sm:6,lg:4}}),($||B||typeof(n==null||(r=n.spec)===null||r===void 0?void 0:r.lifecycle)=="string")&&(0,t.jsx)(S,{label:"Lifecycle",value:n==null||(l=n.spec)===null||l===void 0?void 0:l.lifecycle,gridSizes:{xs:12,sm:6,lg:4}}),(0,t.jsx)(S,{label:"Tags",value:"No Tags",gridSizes:{xs:12,sm:6,lg:4},children:((n==null||(d=n.metadata)===null||d===void 0?void 0:d.tags)||[]).map(R=>(0,t.jsx)(ke.A,{size:"small",label:R},R))}),K&&((n==null||(f=n.spec)===null||f===void 0?void 0:f.targets)||(n==null||(T=n.spec)===null||T===void 0?void 0:T.target))&&(0,t.jsx)(S,{label:"Targets",gridSizes:{xs:12},children:(0,t.jsx)(Ie.m,{cols:1,items:(n.spec.targets||[n.spec.target]).map(R=>R).map(R=>{var X;return{text:R,href:we(R,(n==null||(X=n.spec)===null||X===void 0?void 0:X.type)||"unknown",V)}})})})]})}var Ne=e(74011),Ue=e(25534),De=e(82451),$e=e(75625),Me=e(11601),Be=e.n(Me);const ze=JSON.parse(`{"$schema":"http://json-schema.org/draft-07/schema","$id":"Entity","description":"The parts of the format that's common to all versions/kinds of entity.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Component","metadata":{"name":"LoremService","description":"Creates Lorems like a pro.","labels":{"product_name":"Random value Generator"},"annotations":{"docs":"https://github.com/..../tree/develop/doc"}},"spec":{"type":"service","lifecycle":"production","owner":"tools"}}],"type":"object","required":["apiVersion","kind","metadata"],"additionalProperties":false,"properties":{"apiVersion":{"type":"string","description":"The version of specification format for this particular entity that this is written against.","minLength":1,"examples":["backstage.io/v1alpha1","my-company.net/v1","1.0"]},"kind":{"type":"string","description":"The high level entity type being described.","minLength":1,"examples":["API","Component","Domain","Group","Location","Resource","System","Template","User"]},"metadata":{"$ref":"EntityMeta"},"spec":{"type":"object","description":"The specification data describing the entity itself."},"relations":{"type":"array","description":"The relations that this entity has with other entities.","items":{"$ref":"common#relation"}},"status":{"$ref":"common#status"}}}`),Ve=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"EntityEnvelope","description":"The envelope skeleton parts of an entity - whatever is necessary to be able to give it a ref and pass to further validation / policy checking.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Component","metadata":{"name":"LoremService"}}],"type":"object","required":["apiVersion","kind","metadata"],"additionalProperties":true,"properties":{"apiVersion":{"type":"string","description":"The version of specification format for this particular entity that this is written against.","minLength":1,"examples":["backstage.io/v1alpha1","my-company.net/v1","1.0"]},"kind":{"type":"string","description":"The high level entity type being described.","minLength":1,"examples":["API","Component","Domain","Group","Location","Resource","System","Template","User"]},"metadata":{"type":"object","required":["name"],"additionalProperties":true,"properties":{"name":{"type":"string","description":"The name of the entity. Must be unique within the catalog at any given point in time, for any given namespace + kind pair.","examples":["metadata-proxy"],"minLength":1},"namespace":{"type":"string","description":"The namespace that the entity belongs to.","default":"default","examples":["default","admin"],"minLength":1}}}}}'),He=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"EntityMeta","description":"Metadata fields common to all versions/kinds of entity.","examples":[{"uid":"e01199ab-08cc-44c2-8e19-5c29ded82521","etag":"lsndfkjsndfkjnsdfkjnsd==","name":"my-component-yay","namespace":"the-namespace","labels":{"backstage.io/custom":"ValueStuff"},"annotations":{"example.com/bindings":"are-secret"},"tags":["java","data"]}],"type":"object","required":["name"],"additionalProperties":true,"properties":{"uid":{"type":"string","description":"A globally unique ID for the entity. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations. The field can (optionally) be specified when performing update or delete operations, but the server is free to reject requests that do so in such a way that it breaks semantics.","examples":["e01199ab-08cc-44c2-8e19-5c29ded82521"],"minLength":1},"etag":{"type":"string","description":"An opaque string that changes for each update operation to any part of the entity, including metadata. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations. The field can (optionally) be specified when performing update or delete operations, and the server will then reject the operation if it does not match the current stored value.","examples":["lsndfkjsndfkjnsdfkjnsd=="],"minLength":1},"name":{"type":"string","description":"The name of the entity. Must be unique within the catalog at any given point in time, for any given namespace + kind pair.","examples":["metadata-proxy"],"minLength":1},"namespace":{"type":"string","description":"The namespace that the entity belongs to.","default":"default","examples":["default","admin"],"minLength":1},"title":{"type":"string","description":"A display name of the entity, to be presented in user interfaces instead of the name property, when available.","examples":["React SSR Template"],"minLength":1},"description":{"type":"string","description":"A short (typically relatively few words, on one line) description of the entity."},"labels":{"type":"object","description":"Key/value pairs of identifying information attached to the entity.","additionalProperties":true,"patternProperties":{"^.+$":{"type":"string"}}},"annotations":{"type":"object","description":"Key/value pairs of non-identifying auxiliary information attached to the entity.","additionalProperties":true,"patternProperties":{"^.+$":{"type":"string"}}},"tags":{"type":"array","description":"A list of single-valued strings, to for example classify catalog entities in various ways.","items":{"type":"string","minLength":1}},"links":{"type":"array","description":"A list of external hyperlinks related to the entity. Links can provide additional contextual information that may be located outside of Backstage itself. For example, an admin dashboard or external CMS page.","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"A url in a standard uri format.","examples":["https://admin.example-org.com"],"minLength":1},"title":{"type":"string","description":"A user friendly display name for the link.","examples":["Admin Dashboard"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1},"type":{"type":"string","description":"An optional value to categorize links into specific groups.","examples":["runbook","documentation","logs","dashboard"],"minLength":1}}}}}}'),Ke=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"common","type":"object","description":"Common definitions to import from other schemas","definitions":{"reference":{"$id":"#reference","type":"object","description":"A reference by name to another entity.","required":["kind","namespace","name"],"additionalProperties":false,"properties":{"kind":{"type":"string","description":"The kind field of the entity.","minLength":1},"namespace":{"type":"string","description":"The metadata.namespace field of the entity.","minLength":1},"name":{"type":"string","description":"The metadata.name field of the entity.","minLength":1}}},"relation":{"$id":"#relation","type":"object","description":"A directed relation from one entity to another.","required":["type","targetRef"],"additionalProperties":false,"properties":{"type":{"type":"string","minLength":1,"pattern":"^\\\\w+$","description":"The type of relation."},"target":{"$ref":"#reference","deprecated":true},"targetRef":{"type":"string","minLength":1,"description":"The entity ref of the target of this relation."}}},"status":{"$id":"#status","type":"object","description":"The current status of the entity, as claimed by various sources.","required":[],"additionalProperties":true,"properties":{"items":{"type":"array","items":{"$ref":"#statusItem"}}}},"statusItem":{"$id":"#statusItem","type":"object","description":"A specific status item on a well known format.","required":["type","level","message"],"additionalProperties":true,"properties":{"type":{"type":"string","minLength":1},"level":{"$ref":"#statusLevel","description":"The status level / severity of the status item."},"message":{"type":"string","description":"A brief message describing the status, intended for human consumption."},"error":{"$ref":"#error","description":"An optional serialized error object related to the status."}}},"statusLevel":{"$id":"#statusLevel","type":"string","description":"A status level / severity.","enum":["info","warning","error"]},"error":{"$id":"#error","type":"object","description":"A serialized error object.","required":["name","message"],"additionalProperties":true,"properties":{"name":{"type":"string","examples":["Error","InputError"],"description":"The type name of the error","minLength":1},"message":{"type":"string","description":"The message of the error"},"code":{"type":"string","description":"An error code associated with the error"},"stack":{"type":"string","description":"An error stack trace"}}}}}'),ge=new Map,Fe=[Ve,ze,He,Ke];function We(i){if(!(i!=null&&i.length))throw new TypeError("Unknown error");const a=i[0];throw new TypeError(`${a.instancePath||"<root>"} ${a.message}${a.params?` - ${Object.entries(a.params).map(([s,o])=>`${s}: ${o}`).join(", ")}`:""}`)}function Ge(i,a={}){var s;const o=(s=a==null?void 0:a.disableCache)!==null&&s!==void 0?s:!1,r=o?"":JSON.stringify(i);if(!o){const T=ge.get(r);if(T)return T}const l=Je(i),d=new(Be())({allowUnionTypes:!0,allErrors:!0,validateSchema:!0});l.length&&d.addSchema(l,void 0,void 0,!0);const f=d.compile(i);return o||ge.set(r,f),f}function Je(i){if(typeof i!="object")return[];const a=new Set;i.$id&&a.add(i.$id);const s=new Array,o=[i];for(;o.length;){const r=o.pop();for(const l of Ye(r))if(!a.has(l)){a.add(l);const d=Fe.find(f=>f.$id===l);d&&(s.push(d),o.push(d))}}return s}function*Ye(i){const a=[i];for(;a.length;){const s=a.pop();if(typeof s=="object"&&s)for(const[o,r]of Object.entries(s))o==="$ref"&&typeof r=="string"?yield r.split("#")[0]:a.push(r)}}function Qe(i){const a=Ge(i);return s=>{var o;if(a(s)===!0)return s;const l=(o=a.errors)===null||o===void 0?void 0:o.filter(d=>["/kind","/apiVersion"].includes(d.instancePath));if(l!=null&&l.length&&l.every(d=>d.keyword==="enum"))return!1;throw We(a.errors)}}const Xe=Qe(JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"TemplateV1beta3","description":"A Template describes a scaffolding task for use with the Scaffolder. It describes the required parameters as well as a series of steps that will be taken to execute the scaffolding task.","examples":[{"apiVersion":"scaffolder.backstage.io/v1beta3","kind":"Template","metadata":{"name":"react-ssr-template","title":"React SSR Template","description":"Next.js application skeleton for creating isomorphic web applications.","tags":["recommended","react"]},"spec":{"owner":"artist-relations-team","type":"website","parameters":{"required":["name","description","repoUrl"],"backstage:permissions":{"tags":["one","two"]},"properties":{"name":{"title":"Name","type":"string","description":"Unique name of the component"},"description":{"title":"Description","type":"string","description":"Description of the component"},"repoUrl":{"title":"Pick a repository","type":"string","ui:field":"RepoUrlPicker"}}},"steps":[{"id":"fetch","name":"Fetch","action":"fetch:plain","parameters":{"url":"./template"},"backstage:permissions":{"tags":["one","two"]}},{"id":"publish","name":"Publish to GitHub","action":"publish:github","parameters":{"repoUrl":"${{ parameters.repoUrl }}"},"if":"${{ parameters.repoUrl }}"}],"output":{"catalogInfoUrl":"${{ steps.publish.output.catalogInfoUrl }}"}}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["scaffolder.backstage.io/v1beta3"]},"kind":{"enum":["Template"]},"spec":{"type":"object","required":["type","steps"],"properties":{"type":{"type":"string","description":"The type of component created by the template. The software catalog accepts any type value, but an organization should take great care to establish a proper taxonomy for these. Tools including Backstage itself may read this field and behave differently depending on its value. For example, a website type component may present tooling in the Backstage interface that is specific to just websites.","examples":["service","website","library"],"minLength":1},"owner":{"type":"string","description":"The user (or group) owner of the template","minLength":1},"parameters":{"oneOf":[{"type":"object","description":"The JSONSchema describing the inputs for the template.","properties":{"backstage:permissions":{"type":"object","description":"Object used for authorizing the parameter","properties":{"tags":{"type":"array","items":{"type":"string"}}}}}},{"type":"array","description":"A list of separate forms to collect parameters.","items":{"type":"object","description":"The JSONSchema describing the inputs for the template.","properties":{"backstage:permissions":{"type":"object","description":"Object used for authorizing the parameter","properties":{"tags":{"type":"array","items":{"type":"string"}}}}}}}]},"presentation":{"type":"object","description":"A way to redefine the presentation of the scaffolder.","properties":{"buttonLabels":{"type":"object","description":"A way to redefine the labels for actionable buttons.","properties":{"backButtonText":{"type":"string","description":"A button which return the user to one step back."},"createButtonText":{"type":"string","description":"A button which start the execution of the template."},"reviewButtonText":{"type":"string","description":"A button which open the review step to verify the input prior to start the execution."}}}}},"EXPERIMENTAL_recovery":{"type":"object","description":"A task recovery section.","properties":{"EXPERIMENTAL_strategy":{"type":"string","description":"Recovery strategy for your task (none or startOver). By default none"}}},"steps":{"type":"array","description":"A list of steps to execute.","items":{"type":"object","description":"A description of the step to execute.","required":["action"],"properties":{"id":{"type":"string","description":"The ID of the step, which can be used to refer to its outputs."},"name":{"type":"string","description":"The name of the step, which will be displayed in the UI during the scaffolding process."},"action":{"type":"string","description":"The name of the action to execute."},"input":{"type":"object","description":"A templated object describing the inputs to the action."},"if":{"type":["string","boolean"],"description":"A templated condition that skips the step when evaluated to false. If the condition is true or not defined, the step is executed. The condition is true, if the input is not `false`, `undefined`, `null`, `\\"\\"`, `0`, or `[]`."},"backstage:permissions":{"type":"object","description":"Object used for authorizing the step","properties":{"tags":{"type":"array","items":{"type":"string"}}}}}}},"output":{"type":"object","description":"A templated object describing the outputs of the scaffolding task.","properties":{"links":{"type":"array","description":"A list of external hyperlinks, typically pointing to resources created or updated by the template","items":{"type":"object","required":[],"properties":{"url":{"type":"string","description":"A url in a standard uri format.","examples":["https://github.com/my-org/my-new-repo"],"minLength":1},"entityRef":{"type":"string","description":"An entity reference to an entity in the catalog.","examples":["Component:default/my-app"],"minLength":1},"title":{"type":"string","description":"A user friendly display name for the link.","examples":["View new repo"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1}}}},"text":{"type":"array","description":"A list of Markdown text blobs, like output data from the template.","items":{"type":"object","required":[],"properties":{"title":{"type":"string","description":"A user friendly display name for the text.","examples":["Output Content"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1},"content":{"type":"string","description":"The text blob to display in the UI, rendered as Markdown.","examples":["**hey** _I\'m_ Markdown"]}}}}},"additionalProperties":{"type":"string"}}}}}}]}')),vt={async check(i){return Xe(i)===i}},Ze=i=>i.apiVersion==="scaffolder.backstage.io/v1beta3"&&i.kind==="Template";var ve=e(36989);function qe(i){const{entity:a,loading:s,error:o}=(0,pe.TY)(),{allowed:r,loading:l,error:d}=(0,ve.J)({permission:i,resourceRef:a?(0,A.U2)(a):void 0});return s||l?{loading:!0,allowed:!1}:o?{loading:!1,allowed:!1,error:o}:{loading:!1,allowed:r,error:d}}var _e=e(35773),et=e(91638);const tt="backstage.io/source-template",nt=i=>{const a=(0,J.gf)(me.v),{value:s}=(0,et.A)(async()=>{var o;const r=(o=i.metadata.annotations)===null||o===void 0?void 0:o[tt];let l;if(r)try{const d=await a.getEntityByRef(r);return l=(0,A.KU)(r),d!==void 0?l:void 0}catch{return}},[a,i]);return s};var H=e(14117);const be="scaffolder-template",it=(0,H.i)({name:"scaffolder.action.execute",attributes:{},resourceType:"scaffolder-action"}),at=(0,H.i)({name:"scaffolder.template.parameter.read",attributes:{action:"read"},resourceType:be}),ot=(0,H.i)({name:"scaffolder.template.step.read",attributes:{action:"read"},resourceType:be}),st=(0,H.i)({name:"scaffolder.task.read",attributes:{action:"read"}}),xe=(0,H.i)({name:"scaffolder.task.create",attributes:{action:"create"}}),rt=(0,H.i)({name:"scaffolder.task.cancel",attributes:{}}),lt=[at,ot],ct=[it],dt=[rt,xe,st],xt=[...lt,...ct,...dt],pt="backstage.io/techdocs-ref",ne="backstage.io/techdocs-entity",mt=(0,j.A)({gridItemCard:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px"},fullHeightCard:{display:"flex",flexDirection:"column",height:"100%"},gridItemCardContent:{flex:1},fullHeightCardContent:{flex:1}});function ut(i){var a,s,o,r,l;const{variant:d}=i,f=(0,ce.n)(),T=mt(),{entity:n}=(0,pe.tN)(),ie=(0,J.gf)(te.Y),ee=(0,J.gf)(me.v),Y=(0,J.gf)(Ee.k),B=(0,J.gf)(Le.m),$=(0,de.S)(fe.UJ),z=(0,de.S)(fe.Zg),K=nt(n),{allowed:ae}=qe(_e.tS),{allowed:Q}=(0,ve.J)({permission:xe}),P=Ce(n,ie),M=(a=n.metadata.annotations)===null||a===void 0?void 0:a[h.P];let N;if(!((s=n.metadata.annotations)===null||s===void 0)&&s[ne])try{var V;N=(0,A.KU)((V=n.metadata.annotations)===null||V===void 0?void 0:V[ne])}catch{N=void 0}const R={label:"View Source",disabled:!P,icon:(0,t.jsx)(Te,{type:P==null?void 0:P.integrationType}),href:P==null?void 0:P.locationTargetUrl},X={label:"View TechDocs",disabled:!(!((o=n.metadata.annotations)===null||o===void 0)&&o[pt]||!((r=n.metadata.annotations)===null||r===void 0)&&r[ne])||!$,icon:(0,t.jsx)(De.A,{}),href:$&&$(N?{namespace:N.namespace||h.oQ,kind:N.kind,name:N.name}:{namespace:n.metadata.namespace||h.oQ,kind:n.kind,name:n.metadata.name})},Ae=[R,X];if(Ze(n)){var oe;const le=(oe=f.getSystemIcon("scaffolder"))!==null&&oe!==void 0?oe:Ue.A,yt={label:"Launch Template",icon:(0,t.jsx)(le,{}),disabled:!z||!Q,href:z&&z({templateName:n.metadata.name,namespace:n.metadata.namespace||h.oQ})};Ae.push(yt)}let se="";d==="gridItem"?se=T.gridItemCard:d==="fullHeight"&&(se=T.fullHeightCard);let re="";d==="gridItem"?re=T.gridItemCardContent:d==="fullHeight"&&(re=T.fullHeightCardContent);const F=(l=n.metadata.annotations)===null||l===void 0?void 0:l[b.Eo],ft=(F==null?void 0:F.startsWith("url:"))||(F==null?void 0:F.startsWith("file:")),ht=(0,c.useCallback)(async()=>{try{await ee.refreshEntity((0,A.U2)(n)),Y.post({message:"Refresh scheduled",severity:"info",display:"transient"})}catch(le){B.post(le)}},[ee,Y,B,n]);return(0,t.jsxs)(C.A,{className:se,children:[(0,t.jsx)(D.A,{title:"About",action:(0,t.jsxs)(t.Fragment,{children:[ft&&ae&&(0,t.jsx)(O.A,{"aria-label":"Refresh",title:"Schedule entity refresh",onClick:ht,children:(0,t.jsx)(Ne.A,{})}),(0,t.jsx)(O.A,{component:w.N_,"aria-label":"Edit",disabled:!M,title:"Edit Metadata",to:M!=null?M:"#",children:(0,t.jsx)($e.A,{})}),K&&z&&(0,t.jsx)(O.A,{component:w.N_,title:"Create something similar",to:z({namespace:K.namespace,templateName:K.name}),children:(0,t.jsx)(p.z9,{id:"scaffolder"})})]}),subheader:(0,t.jsx)(G,{links:Ae})}),(0,t.jsx)(I.A,{}),(0,t.jsx)(U.A,{className:re,children:(0,t.jsx)(ye,{entity:n})})]})}},18750:(W,E,e)=>{e.d(E,{m:()=>x});var t=e(31085),h=e(24709),A=e(44913),b=e(14041),C=e(10394),U=e(72501),D=e(58837),I=e(23127),O=e(72072);const j=(0,D.A)({svgIcon:{display:"inline-block","& svg":{display:"inline-block",fontSize:"inherit",verticalAlign:"baseline"}}});function w(m){const{href:g,text:v,Icon:k}=m,L=j();return(0,t.jsxs)(C.A,{display:"flex",children:[(0,t.jsx)(C.A,{mr:1,className:L.svgIcon,children:(0,t.jsx)(U.A,{component:"div",children:k?(0,t.jsx)(k,{}):(0,t.jsx)(I.A,{})})}),(0,t.jsx)(C.A,{flexGrow:"1",children:(0,t.jsx)(O.N_,{to:g,target:"_blank",rel:"noopener",children:v||g})})]})}var p=e(5893);const c={xs:1,sm:1,md:1,lg:2,xl:3};function u(m){const g=[(0,p.A)(y=>y.breakpoints.up("xl"))?"xl":null,(0,p.A)(y=>y.breakpoints.up("lg"))?"lg":null,(0,p.A)(y=>y.breakpoints.up("md"))?"md":null,(0,p.A)(y=>y.breakpoints.up("sm"))?"sm":null,(0,p.A)(y=>y.breakpoints.up("xs"))?"xs":null];let v=1;if(typeof m=="number")v=m;else{var k;const y=(k=g.find(G=>G!==null))!==null&&k!==void 0?k:"xs";var L;v=(L=m==null?void 0:m[y])!==null&&L!==void 0?L:c[y]}return v}function x(m){const{items:g,cols:v=void 0}=m,k=u(v);return(0,t.jsx)(h.A,{rowHeight:"auto",cols:k,children:g.map(({text:L,href:y,Icon:G},te)=>(0,t.jsx)(A.A,{children:(0,t.jsx)(w,{href:y,text:L!=null?L:y,Icon:G})},te))})}},14117:(W,E,e)=>{e.d(E,{i:()=>t});function t({name:h,attributes:A,resourceType:b}){return b?{type:"resource",name:h,attributes:A,resourceType:b}:{type:"basic",name:h,attributes:A}}},36989:(W,E,e)=>{e.d(E,{J:()=>p});var t=e(72427),h=e(96824);function A(c,u){return c.name===u.name}function b(c,u){return"resourceType"in c?!u||c.resourceType===u:!1}function C(c){return c.attributes.action==="create"}function U(c){return c.attributes.action==="read"}function D(c){return c.attributes.action==="update"}function I(c){return c.attributes.action==="delete"}function O(c){return{authorize:async(u,x)=>await c.authorize(u,x),authorizeConditional(u,x){const m=u;return c.authorize(m,x)}}}var j=e(54241),w=e(68721);function p(c){const u=(0,t.gf)(h.x),{data:x,error:m}=(0,w.Ay)(c,async g=>{if(b(g.permission)&&!g.resourceRef)return j.b.DENY;const{result:v}=await u.authorize(g);return v});return m?{error:m,loading:!1,allowed:!1}:x===void 0?{loading:!0,allowed:!1}:{loading:!1,allowed:x===j.b.ALLOW}}}}]);})();
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=5724.
|
|
3
|
+
//# sourceMappingURL=5724.49186426.chunk.js.map
|