@techdocs/cli 1.8.19-next.2 → 1.8.19
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 +11 -0
- package/dist/embedded-app/.config-schema.json +0 -445
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/{1297.56016a00.chunk.js → 1297.617c558a.chunk.js} +1 -1
- package/dist/embedded-app/static/{1297.56016a00.chunk.js.map → 1297.617c558a.chunk.js.map} +1 -1
- package/dist/embedded-app/static/2177.e15b05f0.chunk.js +4 -0
- package/dist/embedded-app/static/2177.e15b05f0.chunk.js.map +1 -0
- package/dist/embedded-app/static/{3182.c93f3ad2.chunk.js → 3182.33110072.chunk.js} +1 -1
- package/dist/embedded-app/static/{3182.c93f3ad2.chunk.js.map → 3182.33110072.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{5724.6bcea8b5.chunk.js → 5724.cfd2379f.chunk.js} +3 -3
- package/dist/embedded-app/static/5724.cfd2379f.chunk.js.map +1 -0
- package/dist/embedded-app/static/9605.7441e12c.chunk.js +11 -0
- package/dist/embedded-app/static/9605.7441e12c.chunk.js.map +1 -0
- package/dist/embedded-app/static/{main.835725b1.js → main.ea5e8476.js} +38 -15
- package/dist/embedded-app/static/main.ea5e8476.js.map +1 -0
- package/dist/embedded-app/static/{runtime.835725b1.js → runtime.ea5e8476.js} +2 -2
- package/dist/embedded-app/static/{runtime.835725b1.js.map → runtime.ea5e8476.js.map} +1 -1
- package/dist/embedded-app/static/{vendor.835725b1.js → vendor.ea5e8476.js} +1 -1
- package/dist/embedded-app/static/{vendor.835725b1.js.map → vendor.ea5e8476.js.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/package.json +5 -5
- package/dist/embedded-app/static/2177.75b21fde.chunk.js +0 -4
- package/dist/embedded-app/static/2177.75b21fde.chunk.js.map +0 -1
- package/dist/embedded-app/static/5724.6bcea8b5.chunk.js.map +0 -1
- package/dist/embedded-app/static/9605.65ef8158.chunk.js +0 -11
- package/dist/embedded-app/static/9605.65ef8158.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.835725b1.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
+
## 1.8.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/backend-defaults@0.5.0
|
|
9
|
+
- @backstage/plugin-techdocs-node@1.12.11
|
|
10
|
+
- @backstage/catalog-model@1.7.0
|
|
11
|
+
- @backstage/cli-common@0.1.14
|
|
12
|
+
- @backstage/config@1.2.0
|
|
13
|
+
|
|
3
14
|
## 1.8.19-next.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -2587,451 +2587,6 @@
|
|
|
2587
2587
|
],
|
|
2588
2588
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2589
2589
|
}
|
|
2590
|
-
},
|
|
2591
|
-
{
|
|
2592
|
-
"path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/integration/config.d.ts",
|
|
2593
|
-
"value": {
|
|
2594
|
-
"type": "object",
|
|
2595
|
-
"properties": {
|
|
2596
|
-
"integrations": {
|
|
2597
|
-
"description": "Configuration for integrations towards various external repository provider systems",
|
|
2598
|
-
"visibility": "frontend",
|
|
2599
|
-
"type": "object",
|
|
2600
|
-
"properties": {
|
|
2601
|
-
"azure": {
|
|
2602
|
-
"description": "Integration configuration for Azure",
|
|
2603
|
-
"type": "array",
|
|
2604
|
-
"items": {
|
|
2605
|
-
"type": "object",
|
|
2606
|
-
"properties": {
|
|
2607
|
-
"host": {
|
|
2608
|
-
"description": "The hostname of the given Azure instance",
|
|
2609
|
-
"visibility": "frontend",
|
|
2610
|
-
"type": "string"
|
|
2611
|
-
},
|
|
2612
|
-
"token": {
|
|
2613
|
-
"description": "Token used to authenticate requests.",
|
|
2614
|
-
"visibility": "secret",
|
|
2615
|
-
"deprecated": "Use `credentials` instead.",
|
|
2616
|
-
"type": "string"
|
|
2617
|
-
},
|
|
2618
|
-
"credential": {
|
|
2619
|
-
"description": "The credential to use for requests.\n\nIf no credential is specified anonymous access is used.",
|
|
2620
|
-
"deepVisibility": "secret",
|
|
2621
|
-
"deprecated": "Use `credentials` instead.",
|
|
2622
|
-
"type": "object",
|
|
2623
|
-
"properties": {
|
|
2624
|
-
"clientId": {
|
|
2625
|
-
"type": "string"
|
|
2626
|
-
},
|
|
2627
|
-
"clientSecret": {
|
|
2628
|
-
"type": "string"
|
|
2629
|
-
},
|
|
2630
|
-
"tenantId": {
|
|
2631
|
-
"type": "string"
|
|
2632
|
-
},
|
|
2633
|
-
"personalAccessToken": {
|
|
2634
|
-
"type": "string"
|
|
2635
|
-
}
|
|
2636
|
-
}
|
|
2637
|
-
},
|
|
2638
|
-
"credentials": {
|
|
2639
|
-
"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.",
|
|
2640
|
-
"deepVisibility": "secret",
|
|
2641
|
-
"type": "array",
|
|
2642
|
-
"items": {
|
|
2643
|
-
"type": "object",
|
|
2644
|
-
"properties": {
|
|
2645
|
-
"clientId": {
|
|
2646
|
-
"type": "string"
|
|
2647
|
-
},
|
|
2648
|
-
"clientSecret": {
|
|
2649
|
-
"type": "string"
|
|
2650
|
-
},
|
|
2651
|
-
"tenantId": {
|
|
2652
|
-
"type": "string"
|
|
2653
|
-
},
|
|
2654
|
-
"personalAccessToken": {
|
|
2655
|
-
"type": "string"
|
|
2656
|
-
}
|
|
2657
|
-
}
|
|
2658
|
-
}
|
|
2659
|
-
}
|
|
2660
|
-
},
|
|
2661
|
-
"required": [
|
|
2662
|
-
"host"
|
|
2663
|
-
]
|
|
2664
|
-
}
|
|
2665
|
-
},
|
|
2666
|
-
"bitbucket": {
|
|
2667
|
-
"description": "Integration configuration for Bitbucket",
|
|
2668
|
-
"deprecated": "replaced by bitbucketCloud and bitbucketServer",
|
|
2669
|
-
"type": "array",
|
|
2670
|
-
"items": {
|
|
2671
|
-
"type": "object",
|
|
2672
|
-
"properties": {
|
|
2673
|
-
"host": {
|
|
2674
|
-
"description": "The hostname of the given Bitbucket instance",
|
|
2675
|
-
"visibility": "frontend",
|
|
2676
|
-
"type": "string"
|
|
2677
|
-
},
|
|
2678
|
-
"token": {
|
|
2679
|
-
"description": "Token used to authenticate requests.",
|
|
2680
|
-
"visibility": "secret",
|
|
2681
|
-
"type": "string"
|
|
2682
|
-
},
|
|
2683
|
-
"apiBaseUrl": {
|
|
2684
|
-
"description": "The base url for the Bitbucket API, for example https://api.bitbucket.org/2.0",
|
|
2685
|
-
"visibility": "frontend",
|
|
2686
|
-
"type": "string"
|
|
2687
|
-
},
|
|
2688
|
-
"username": {
|
|
2689
|
-
"description": "The username to use for authenticated requests.",
|
|
2690
|
-
"visibility": "secret",
|
|
2691
|
-
"type": "string"
|
|
2692
|
-
},
|
|
2693
|
-
"appPassword": {
|
|
2694
|
-
"description": "Bitbucket app password used to authenticate requests.",
|
|
2695
|
-
"visibility": "secret",
|
|
2696
|
-
"type": "string"
|
|
2697
|
-
}
|
|
2698
|
-
},
|
|
2699
|
-
"required": [
|
|
2700
|
-
"host"
|
|
2701
|
-
]
|
|
2702
|
-
}
|
|
2703
|
-
},
|
|
2704
|
-
"bitbucketCloud": {
|
|
2705
|
-
"description": "Integration configuration for Bitbucket Cloud",
|
|
2706
|
-
"type": "array",
|
|
2707
|
-
"items": {
|
|
2708
|
-
"type": "object",
|
|
2709
|
-
"properties": {
|
|
2710
|
-
"username": {
|
|
2711
|
-
"description": "The username to use for authenticated requests.",
|
|
2712
|
-
"visibility": "secret",
|
|
2713
|
-
"type": "string"
|
|
2714
|
-
},
|
|
2715
|
-
"appPassword": {
|
|
2716
|
-
"description": "Bitbucket Cloud app password used to authenticate requests.",
|
|
2717
|
-
"visibility": "secret",
|
|
2718
|
-
"type": "string"
|
|
2719
|
-
}
|
|
2720
|
-
},
|
|
2721
|
-
"required": [
|
|
2722
|
-
"appPassword",
|
|
2723
|
-
"username"
|
|
2724
|
-
]
|
|
2725
|
-
}
|
|
2726
|
-
},
|
|
2727
|
-
"bitbucketServer": {
|
|
2728
|
-
"description": "Integration configuration for Bitbucket Server",
|
|
2729
|
-
"type": "array",
|
|
2730
|
-
"items": {
|
|
2731
|
-
"type": "object",
|
|
2732
|
-
"properties": {
|
|
2733
|
-
"host": {
|
|
2734
|
-
"description": "The hostname of the given Bitbucket Server instance",
|
|
2735
|
-
"visibility": "frontend",
|
|
2736
|
-
"type": "string"
|
|
2737
|
-
},
|
|
2738
|
-
"token": {
|
|
2739
|
-
"description": "Token used to authenticate requests.",
|
|
2740
|
-
"visibility": "secret",
|
|
2741
|
-
"type": "string"
|
|
2742
|
-
},
|
|
2743
|
-
"username": {
|
|
2744
|
-
"description": "Username used to authenticate requests with Basic Auth.",
|
|
2745
|
-
"visibility": "secret",
|
|
2746
|
-
"type": "string"
|
|
2747
|
-
},
|
|
2748
|
-
"password": {
|
|
2749
|
-
"description": "Password (or token as password) used to authenticate requests with Basic Auth.",
|
|
2750
|
-
"visibility": "secret",
|
|
2751
|
-
"type": "string"
|
|
2752
|
-
},
|
|
2753
|
-
"apiBaseUrl": {
|
|
2754
|
-
"description": "The base url for the Bitbucket Server API, for example https://<host>/rest/api/1.0",
|
|
2755
|
-
"visibility": "frontend",
|
|
2756
|
-
"type": "string"
|
|
2757
|
-
}
|
|
2758
|
-
},
|
|
2759
|
-
"required": [
|
|
2760
|
-
"host"
|
|
2761
|
-
]
|
|
2762
|
-
}
|
|
2763
|
-
},
|
|
2764
|
-
"gerrit": {
|
|
2765
|
-
"description": "Integration configuration for Gerrit",
|
|
2766
|
-
"type": "array",
|
|
2767
|
-
"items": {
|
|
2768
|
-
"type": "object",
|
|
2769
|
-
"properties": {
|
|
2770
|
-
"host": {
|
|
2771
|
-
"description": "The hostname of the given Gerrit instance",
|
|
2772
|
-
"visibility": "frontend",
|
|
2773
|
-
"type": "string"
|
|
2774
|
-
},
|
|
2775
|
-
"baseUrl": {
|
|
2776
|
-
"description": "The base url for the Gerrit instance.",
|
|
2777
|
-
"visibility": "frontend",
|
|
2778
|
-
"type": "string"
|
|
2779
|
-
},
|
|
2780
|
-
"gitilesBaseUrl": {
|
|
2781
|
-
"description": "The gitiles base url.",
|
|
2782
|
-
"visibility": "frontend",
|
|
2783
|
-
"type": "string"
|
|
2784
|
-
},
|
|
2785
|
-
"cloneUrl": {
|
|
2786
|
-
"description": "The base url for cloning repos.",
|
|
2787
|
-
"visibility": "frontend",
|
|
2788
|
-
"type": "string"
|
|
2789
|
-
},
|
|
2790
|
-
"username": {
|
|
2791
|
-
"description": "The username to use for authenticated requests.",
|
|
2792
|
-
"visibility": "secret",
|
|
2793
|
-
"type": "string"
|
|
2794
|
-
},
|
|
2795
|
-
"password": {
|
|
2796
|
-
"description": "Gerrit password used to authenticate requests. This can be either a password\nor a generated access token.",
|
|
2797
|
-
"visibility": "secret",
|
|
2798
|
-
"type": "string"
|
|
2799
|
-
}
|
|
2800
|
-
},
|
|
2801
|
-
"required": [
|
|
2802
|
-
"gitilesBaseUrl",
|
|
2803
|
-
"host"
|
|
2804
|
-
]
|
|
2805
|
-
}
|
|
2806
|
-
},
|
|
2807
|
-
"github": {
|
|
2808
|
-
"description": "Integration configuration for GitHub",
|
|
2809
|
-
"type": "array",
|
|
2810
|
-
"items": {
|
|
2811
|
-
"type": "object",
|
|
2812
|
-
"properties": {
|
|
2813
|
-
"host": {
|
|
2814
|
-
"description": "The hostname of the given GitHub instance",
|
|
2815
|
-
"visibility": "frontend",
|
|
2816
|
-
"type": "string"
|
|
2817
|
-
},
|
|
2818
|
-
"token": {
|
|
2819
|
-
"description": "Token used to authenticate requests.",
|
|
2820
|
-
"visibility": "secret",
|
|
2821
|
-
"type": "string"
|
|
2822
|
-
},
|
|
2823
|
-
"apiBaseUrl": {
|
|
2824
|
-
"description": "The base url for the GitHub API, for example https://api.github.com",
|
|
2825
|
-
"visibility": "frontend",
|
|
2826
|
-
"type": "string"
|
|
2827
|
-
},
|
|
2828
|
-
"rawBaseUrl": {
|
|
2829
|
-
"description": "The base url for GitHub raw resources, for example https://raw.githubusercontent.com",
|
|
2830
|
-
"visibility": "frontend",
|
|
2831
|
-
"type": "string"
|
|
2832
|
-
},
|
|
2833
|
-
"apps": {
|
|
2834
|
-
"description": "GitHub Apps configuration",
|
|
2835
|
-
"type": "array",
|
|
2836
|
-
"items": {
|
|
2837
|
-
"type": "object",
|
|
2838
|
-
"properties": {
|
|
2839
|
-
"appId": {
|
|
2840
|
-
"description": "The numeric GitHub App ID, string for environment variables",
|
|
2841
|
-
"type": [
|
|
2842
|
-
"string",
|
|
2843
|
-
"number"
|
|
2844
|
-
]
|
|
2845
|
-
},
|
|
2846
|
-
"privateKey": {
|
|
2847
|
-
"description": "The private key to use for auth against the app",
|
|
2848
|
-
"visibility": "secret",
|
|
2849
|
-
"type": "string"
|
|
2850
|
-
},
|
|
2851
|
-
"webhookSecret": {
|
|
2852
|
-
"description": "The secret used for webhooks",
|
|
2853
|
-
"visibility": "secret",
|
|
2854
|
-
"type": "string"
|
|
2855
|
-
},
|
|
2856
|
-
"clientId": {
|
|
2857
|
-
"description": "The client ID to use",
|
|
2858
|
-
"type": "string"
|
|
2859
|
-
},
|
|
2860
|
-
"clientSecret": {
|
|
2861
|
-
"description": "The client secret to use",
|
|
2862
|
-
"visibility": "secret",
|
|
2863
|
-
"type": "string"
|
|
2864
|
-
},
|
|
2865
|
-
"allowedInstallationOwners": {
|
|
2866
|
-
"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",
|
|
2867
|
-
"type": "array",
|
|
2868
|
-
"items": {
|
|
2869
|
-
"type": "string"
|
|
2870
|
-
}
|
|
2871
|
-
}
|
|
2872
|
-
},
|
|
2873
|
-
"required": [
|
|
2874
|
-
"appId",
|
|
2875
|
-
"clientId",
|
|
2876
|
-
"clientSecret",
|
|
2877
|
-
"privateKey",
|
|
2878
|
-
"webhookSecret"
|
|
2879
|
-
]
|
|
2880
|
-
}
|
|
2881
|
-
}
|
|
2882
|
-
},
|
|
2883
|
-
"required": [
|
|
2884
|
-
"host"
|
|
2885
|
-
]
|
|
2886
|
-
}
|
|
2887
|
-
},
|
|
2888
|
-
"gitlab": {
|
|
2889
|
-
"description": "Integration configuration for GitLab",
|
|
2890
|
-
"type": "array",
|
|
2891
|
-
"items": {
|
|
2892
|
-
"type": "object",
|
|
2893
|
-
"properties": {
|
|
2894
|
-
"host": {
|
|
2895
|
-
"description": "The host of the target that this matches on, e.g. \"gitlab.com\".",
|
|
2896
|
-
"visibility": "frontend",
|
|
2897
|
-
"type": "string"
|
|
2898
|
-
},
|
|
2899
|
-
"apiBaseUrl": {
|
|
2900
|
-
"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.",
|
|
2901
|
-
"visibility": "frontend",
|
|
2902
|
-
"type": "string"
|
|
2903
|
-
},
|
|
2904
|
-
"token": {
|
|
2905
|
-
"description": "The authorization token to use for requests to this provider.\n\nIf no token is specified, anonymous access is used.",
|
|
2906
|
-
"visibility": "secret",
|
|
2907
|
-
"type": "string"
|
|
2908
|
-
},
|
|
2909
|
-
"baseUrl": {
|
|
2910
|
-
"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}.",
|
|
2911
|
-
"visibility": "frontend",
|
|
2912
|
-
"type": "string"
|
|
2913
|
-
}
|
|
2914
|
-
},
|
|
2915
|
-
"required": [
|
|
2916
|
-
"host"
|
|
2917
|
-
]
|
|
2918
|
-
}
|
|
2919
|
-
},
|
|
2920
|
-
"googleGcs": {
|
|
2921
|
-
"description": "Integration configuration for Google Cloud Storage",
|
|
2922
|
-
"type": "object",
|
|
2923
|
-
"properties": {
|
|
2924
|
-
"clientEmail": {
|
|
2925
|
-
"description": "Service account email used to authenticate requests.",
|
|
2926
|
-
"type": "string"
|
|
2927
|
-
},
|
|
2928
|
-
"privateKey": {
|
|
2929
|
-
"description": "Service account private key used to authenticate requests.",
|
|
2930
|
-
"visibility": "secret",
|
|
2931
|
-
"type": "string"
|
|
2932
|
-
}
|
|
2933
|
-
}
|
|
2934
|
-
},
|
|
2935
|
-
"awsS3": {
|
|
2936
|
-
"description": "Integration configuration for AWS S3 Service",
|
|
2937
|
-
"type": "array",
|
|
2938
|
-
"items": {
|
|
2939
|
-
"type": "object",
|
|
2940
|
-
"properties": {
|
|
2941
|
-
"endpoint": {
|
|
2942
|
-
"description": "AWS Endpoint.\nThe endpoint URI to send requests to. The default endpoint is built from the configured region.",
|
|
2943
|
-
"visibility": "frontend",
|
|
2944
|
-
"type": "string"
|
|
2945
|
-
},
|
|
2946
|
-
"s3ForcePathStyle": {
|
|
2947
|
-
"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.",
|
|
2948
|
-
"visibility": "frontend",
|
|
2949
|
-
"type": "boolean"
|
|
2950
|
-
},
|
|
2951
|
-
"accessKeyId": {
|
|
2952
|
-
"description": "Account access key used to authenticate requests.",
|
|
2953
|
-
"type": "string"
|
|
2954
|
-
},
|
|
2955
|
-
"secretAccessKey": {
|
|
2956
|
-
"description": "Account secret key used to authenticate requests.",
|
|
2957
|
-
"visibility": "secret",
|
|
2958
|
-
"type": "string"
|
|
2959
|
-
},
|
|
2960
|
-
"roleArn": {
|
|
2961
|
-
"description": "ARN of the role to be assumed",
|
|
2962
|
-
"type": "string"
|
|
2963
|
-
},
|
|
2964
|
-
"externalId": {
|
|
2965
|
-
"description": "External ID to use when assuming role",
|
|
2966
|
-
"type": "string"
|
|
2967
|
-
}
|
|
2968
|
-
}
|
|
2969
|
-
}
|
|
2970
|
-
},
|
|
2971
|
-
"gitea": {
|
|
2972
|
-
"description": "Integration configuration for Gitea",
|
|
2973
|
-
"type": "array",
|
|
2974
|
-
"items": {
|
|
2975
|
-
"type": "object",
|
|
2976
|
-
"properties": {
|
|
2977
|
-
"host": {
|
|
2978
|
-
"description": "The hostname of the given Gitea instance",
|
|
2979
|
-
"visibility": "frontend",
|
|
2980
|
-
"type": "string"
|
|
2981
|
-
},
|
|
2982
|
-
"baseUrl": {
|
|
2983
|
-
"description": "The base url for the Gitea instance.",
|
|
2984
|
-
"visibility": "frontend",
|
|
2985
|
-
"type": "string"
|
|
2986
|
-
},
|
|
2987
|
-
"username": {
|
|
2988
|
-
"description": "The username to use for authenticated requests.",
|
|
2989
|
-
"visibility": "secret",
|
|
2990
|
-
"type": "string"
|
|
2991
|
-
},
|
|
2992
|
-
"password": {
|
|
2993
|
-
"description": "Gitea password used to authenticate requests. This can be either a password\nor a generated access token.",
|
|
2994
|
-
"visibility": "secret",
|
|
2995
|
-
"type": "string"
|
|
2996
|
-
}
|
|
2997
|
-
},
|
|
2998
|
-
"required": [
|
|
2999
|
-
"host"
|
|
3000
|
-
]
|
|
3001
|
-
}
|
|
3002
|
-
},
|
|
3003
|
-
"harness": {
|
|
3004
|
-
"description": "Integration configuration for Harness Code",
|
|
3005
|
-
"type": "array",
|
|
3006
|
-
"items": {
|
|
3007
|
-
"type": "object",
|
|
3008
|
-
"properties": {
|
|
3009
|
-
"host": {
|
|
3010
|
-
"description": "The hostname of the given Harness Code instance",
|
|
3011
|
-
"visibility": "frontend",
|
|
3012
|
-
"type": "string"
|
|
3013
|
-
},
|
|
3014
|
-
"apiKey": {
|
|
3015
|
-
"description": "The apikey to use for authenticated requests.",
|
|
3016
|
-
"visibility": "secret",
|
|
3017
|
-
"type": "string"
|
|
3018
|
-
},
|
|
3019
|
-
"token": {
|
|
3020
|
-
"description": "Harness Code token used to authenticate requests. This can be either a generated access token.",
|
|
3021
|
-
"visibility": "secret",
|
|
3022
|
-
"type": "string"
|
|
3023
|
-
}
|
|
3024
|
-
},
|
|
3025
|
-
"required": [
|
|
3026
|
-
"host"
|
|
3027
|
-
]
|
|
3028
|
-
}
|
|
3029
|
-
}
|
|
3030
|
-
}
|
|
3031
|
-
}
|
|
3032
|
-
},
|
|
3033
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3034
|
-
}
|
|
3035
2590
|
}
|
|
3036
2591
|
],
|
|
3037
2592
|
"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.ea5e8476.js"></script><script defer="defer" src="/static/module-material-ui.91ae9db1.js"></script><script defer="defer" src="/static/module-lodash.aa647045.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f5e57c92.js"></script><script defer="defer" src="/static/module-material-table.84f30b2f.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-react-router.fae32787.js"></script><script defer="defer" src="/static/module-react-router-dom.bf7ca63f.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer="defer" src="/static/module-zod.4f2eeb8c.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/vendor.ea5e8476.js"></script><script defer="defer" src="/static/main.ea5e8476.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
color="#5bbad5"
|
|
43
43
|
/>
|
|
44
44
|
<title><%= config.getString('app.title') %></title>
|
|
45
|
-
<meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.
|
|
45
|
+
<meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.ea5e8476.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.91ae9db1.js"></script><script defer src="<%= publicPath %>/static/module-lodash.aa647045.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.c633d602.js"></script><script defer src="<%= publicPath %>/static/module-mui.f5e57c92.js"></script><script defer src="<%= publicPath %>/static/module-material-table.84f30b2f.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-react-router.fae32787.js"></script><script defer src="<%= publicPath %>/static/module-react-router-dom.bf7ca63f.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer src="<%= publicPath %>/static/module-zod.4f2eeb8c.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/vendor.ea5e8476.js"></script><script defer src="<%= publicPath %>/static/main.ea5e8476.js"></script></head>
|
|
46
46
|
<body>
|
|
47
47
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
48
48
|
<div id="root"></div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[1297],{90759:(m,o,e)=>{e.d(o,{W:()=>r});var t=e(93184);const r=(0,t.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
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"}}}})},61297:(m,o,e)=>{e.r(o),e.d(o,{CatalogSearchResultListItem:()=>b});var t=e(31085),r=e(14041),h=e(10394),a=e(67720),p=e(46423),y=e(5951),u=e(72501),g=e(58837),f=e(72072),d=e(70734),T=e(90759),C=e(87849);const v=(0,g.A)({item:{display:"flex"},flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",wordBreak:"break-all",marginBottom:"1rem"}},{name:"CatalogSearchResultListItem"});function b(s){const i=s.result,n=s.highlight,l=v(),{t:c}=(0,C.i)(T.W);return i?(0,t.jsxs)("div",{className:l.item,children:[s.icon&&(0,t.jsx)(p.A,{children:typeof s.icon=="function"?s.icon(i):s.icon}),(0,t.jsxs)("div",{className:l.flexContainer,children:[(0,t.jsx)(y.A,{className:l.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,t.jsx)(f.N_,{noTrack:!0,to:i.location,children:n?.fields.title?(0,t.jsx)(d.e,{text:n.fields.title,preTag:n.preTag,postTag:n.postTag}):i.title}),secondary:(0,t.jsx)(u.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s.lineClamp,overflow:"hidden"},color:"textSecondary",variant:"body2",children:n?.fields.text?(0,t.jsx)(d.e,{text:n.fields.text,preTag:n.preTag,postTag:n.postTag}):i.text})}),(0,t.jsxs)(h.A,{children:[i.kind&&(0,t.jsx)(a.A,{label:`Kind: ${i.kind}`,size:"small"}),i.type&&(0,t.jsx)(a.A,{label:`Type: ${i.type}`,size:"small"}),i.lifecycle&&(0,t.jsx)(a.A,{label:`${c("searchResultItem.lifecycle")}: ${i.lifecycle}`,size:"small"}),i.owner&&(0,t.jsx)(a.A,{label:`${c("searchResultItem.Owner")}: ${i.owner}`,size:"small"})]})]})]}):null}}}]);})();
|
|
3
3
|
|
|
4
|
-
//# sourceMappingURL=1297.
|
|
4
|
+
//# sourceMappingURL=1297.617c558a.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/1297.56016a00.chunk.js","mappings":"6KAmBO,MAAMA,KAAwBC,EAAAA,GAAqB,CACxDC,GAAI,UACJC,SAAU,CACRC,UAAW,CACTC,MAAO,sBACPC,kBAAmB,SACnBC,qBAAsB,oCACxB,EACAC,UAAW,CACTH,MAAO,QACPI,mBA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AASpB,EAAUoB,O,GAGrBrB,EAAOlF,K,GAIbwG,aACE,OAACC,EAAAA,EAAUA,CACTC,UAAU,OACVC,MAAO,CACLnC,QAAS,cACToC,gBAAiB,WACjBC,gBAAiB5B,EAAM6B,UACvBC,SAAU,QACZ,EACAC,MAAM,gBACNnB,QAAQ,Q,SAEPV,GAAWgB,OAAOE,QACjB,OAACD,EAAAA,EAA2BA,CAC1BC,KAAMlB,EAAUgB,OAAOE,KACvBC,OAAQnB,EAAUmB,OAClBC,QAASpB,EAAUoB,O,GAGrBrB,EAAOmB,I,QAKf,QAACY,EAAAA,EAAGA,C,UACD/B,EAAOgC,SAAQ,OAACC,EAAAA,EAAIA,CAACvG,MAAO,SAASsE,EAAOgC,IAAI,GAAIE,KAAK,O,GACzDlC,EAAOmC,SAAQ,OAACF,EAAAA,EAAIA,CAACvG,MAAO,SAASsE,EAAOmC,IAAI,GAAID,KAAK,O,GACzDlC,EAAO3D,cACN,OAAC4F,EAAAA,EAAIA,CACHvG,MAAO,GAAGyE,EAAE,4BAA4B,CAAC,KAAKH,EAAO3D,SAAS,GAC9D6F,KAAK,O,GAGRlC,EAAOoC,UACN,OAACH,EAAAA,EAAIA,CACHvG,MAAO,GAAGyE,EAAE,wBAAwB,CAAC,KAAKH,EAAOoC,KAAK,GACtDF,KAAK,O,YA9DG,IAqEtB,C","sources":["webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/alpha/translation.ts","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @alpha */\nexport const catalogTranslationRef = createTranslationRef({\n id: 'catalog',\n messages: {\n indexPage: {\n title: `{{orgName}} Catalog`,\n createButtonTitle: 'Create',\n supportButtonContent: 'All your software catalog entities',\n },\n aboutCard: {\n title: 'About',\n refreshButtonTitle: 'Schedule entity refresh',\n editButtonTitle: 'Edit Metadata',\n createSimilarButtonTitle: 'Create something similar',\n refreshScheduledMessage: 'Refresh scheduled',\n launchTemplate: 'Launch Template',\n viewTechdocs: 'View TechDocs',\n viewSource: 'View Source',\n descriptionField: {\n label: 'Description',\n value: 'No description',\n },\n ownerField: {\n label: 'Owner',\n value: 'No Owner',\n },\n domainField: {\n label: 'Domain',\n value: 'No Domain',\n },\n systemField: {\n label: 'System',\n value: 'No System',\n },\n parentComponentField: {\n label: 'Parent Component',\n value: 'No Parent Component',\n },\n typeField: {\n label: 'Type',\n },\n lifecycleField: {\n label: 'Lifecycle',\n },\n tagsField: {\n label: 'Tags',\n value: 'No Tags',\n },\n targetsField: {\n label: 'Targets',\n },\n },\n searchResultItem: {\n lifecycle: 'Lifecycle',\n Owner: 'Owner',\n },\n catalogTable: {\n warningPanelTitle: 'Could not fetch catalog entities.',\n viewActionTitle: 'View',\n editActionTitle: 'Edit',\n starActionTitle: 'Add to favorites',\n unStarActionTitle: 'Remove from favorites',\n },\n dependencyOfComponentsCard: {\n title: 'Dependency of components',\n emptyMessage: 'No component depends on this component',\n },\n dependsOnComponentsCard: {\n title: 'Depends on components',\n emptyMessage: 'No component is a dependency of this component',\n },\n dependsOnResourcesCard: {\n title: 'Depends on resources',\n emptyMessage: 'No resource is a dependency of this component',\n },\n entityContextMenu: {\n copiedMessage: 'Copied!',\n moreButtonTitle: 'More',\n inspectMenuTitle: 'Inspect entity',\n copyURLMenuTitle: 'Copy entity URL',\n unregisterMenuTitle: 'Unregister entity',\n },\n entityLabelsCard: {\n title: 'Labels',\n emptyDescription:\n 'No labels defined for this entity. You can add labels to your entity YAML as shown in the highlighted example below:',\n readMoreButtonTitle: 'Read more',\n },\n entityLabels: {\n warningPanelTitle: 'Entity not found',\n ownerLabel: 'Owner',\n lifecycleLabel: 'Lifecycle',\n },\n entityLinksCard: {\n title: 'Links',\n emptyDescription:\n 'No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:',\n readMoreButtonTitle: 'Read more',\n },\n entityNotFound: {\n title: 'Entity was not found',\n description:\n 'Want to help us build this? Check out our Getting Started documentation.',\n docButtonTitle: 'DOCS',\n },\n deleteEntity: {\n dialogTitle: 'Are you sure you want to delete this entity?',\n deleteButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n description:\n 'This entity is not referenced by any location and is therefore not receiving updates. Click here to delete.',\n },\n entityProcessingErrorsDescription: 'The error below originates from',\n entityRelationWarningDescription:\n \"This entity has relations to other entities, which can't be found in the catalog.\\n Entities not found are: \",\n hasComponentsCard: {\n title: 'Has components',\n emptyMessage: 'No component is part of this system',\n },\n hasResourcesCard: {\n title: 'Has resources',\n emptyMessage: 'No resource is part of this system',\n },\n hasSubcomponentsCard: {\n title: 'Has subcomponents',\n emptyMessage: 'No subcomponent is part of this component',\n },\n hasSubdomainsCard: {\n title: 'Has subdomains',\n emptyMessage: 'No subdomain is part of this domain',\n },\n hasSystemsCard: {\n title: 'Has systems',\n emptyMessage: 'No system is part of this domain',\n },\n relatedEntitiesCard: {\n emptyHelpLinkTitle: 'Learn how to change this.',\n },\n systemDiagramCard: {\n title: 'System Diagram',\n description: 'Use pinch & zoo to move around the diagram.',\n edgeLabels: {\n partOf: 'part of',\n provides: 'provides',\n dependsOn: 'depends on',\n },\n },\n },\n});\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ReactNode } from 'react';\nimport Box from '@material-ui/core/Box';\nimport Chip from '@material-ui/core/Chip';\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Link } from '@backstage/core-components';\nimport {\n IndexableDocument,\n ResultHighlight,\n} from '@backstage/plugin-search-common';\nimport { HighlightedSearchResultText } from '@backstage/plugin-search-react';\nimport { catalogTranslationRef } from '../../alpha/translation';\nimport { useTranslationRef } from '@backstage/frontend-plugin-api';\n\nconst useStyles = makeStyles(\n {\n item: {\n display: 'flex',\n },\n flexContainer: {\n flexWrap: 'wrap',\n },\n itemText: {\n width: '100%',\n wordBreak: 'break-all',\n marginBottom: '1rem',\n },\n },\n { name: 'CatalogSearchResultListItem' },\n);\n\n/**\n * Props for {@link CatalogSearchResultListItem}.\n *\n * @public\n */\nexport interface CatalogSearchResultListItemProps {\n icon?: ReactNode | ((result: IndexableDocument) => ReactNode);\n result?: IndexableDocument;\n highlight?: ResultHighlight;\n rank?: number;\n lineClamp?: number;\n}\n\n/** @public */\nexport function CatalogSearchResultListItem(\n props: CatalogSearchResultListItemProps,\n) {\n const result = props.result as any;\n const highlight = props.highlight as ResultHighlight;\n\n const classes = useStyles();\n const { t } = useTranslationRef(catalogTranslationRef);\n\n if (!result) return null;\n\n return (\n <div className={classes.item}>\n {props.icon && (\n <ListItemIcon>\n {typeof props.icon === 'function' ? props.icon(result) : props.icon}\n </ListItemIcon>\n )}\n <div className={classes.flexContainer}>\n <ListItemText\n className={classes.itemText}\n primaryTypographyProps={{ variant: 'h6' }}\n primary={\n <Link noTrack to={result.location}>\n {highlight?.fields.title ? (\n <HighlightedSearchResultText\n text={highlight.fields.title}\n preTag={highlight.preTag}\n postTag={highlight.postTag}\n />\n ) : (\n result.title\n )}\n </Link>\n }\n secondary={\n <Typography\n component=\"span\"\n style={{\n display: '-webkit-box',\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: props.lineClamp,\n overflow: 'hidden',\n }}\n color=\"textSecondary\"\n variant=\"body2\"\n >\n {highlight?.fields.text ? (\n <HighlightedSearchResultText\n text={highlight.fields.text}\n preTag={highlight.preTag}\n postTag={highlight.postTag}\n />\n ) : (\n result.text\n )}\n </Typography>\n }\n />\n <Box>\n {result.kind && <Chip label={`Kind: ${result.kind}`} size=\"small\" />}\n {result.type && <Chip label={`Type: ${result.type}`} size=\"small\" />}\n {result.lifecycle && (\n <Chip\n label={`${t('searchResultItem.lifecycle')}: ${result.lifecycle}`}\n size=\"small\"\n />\n )}\n {result.owner && (\n <Chip\n label={`${t('searchResultItem.Owner')}: ${result.owner}`}\n size=\"small\"\n />\n )}\n </Box>\n </div>\n </div>\n );\n}\n"],"names":["catalogTranslationRef","createTranslationRef","id","messages","indexPage","title","createButtonTitle","supportButtonContent","aboutCard","refreshButtonTitle","editButtonTitle","createSimilarButtonTitle","refreshScheduledMessage","launchTemplate","viewTechdocs","viewSource","descriptionField","label","value","ownerField","domainField","systemField","parentComponentField","typeField","lifecycleField","tagsField","targetsField","searchResultItem","lifecycle","Owner","catalogTable","warningPanelTitle","viewActionTitle","editActionTitle","starActionTitle","unStarActionTitle","dependencyOfComponentsCard","emptyMessage","dependsOnComponentsCard","dependsOnResourcesCard","entityContextMenu","copiedMessage","moreButtonTitle","inspectMenuTitle","copyURLMenuTitle","unregisterMenuTitle","entityLabelsCard","emptyDescription","readMoreButtonTitle","entityLabels","ownerLabel","lifecycleLabel","entityLinksCard","entityNotFound","description","docButtonTitle","deleteEntity","dialogTitle","deleteButtonTitle","cancelButtonTitle","entityProcessingErrorsDescription","entityRelationWarningDescription","hasComponentsCard","hasResourcesCard","hasSubcomponentsCard","hasSubdomainsCard","hasSystemsCard","relatedEntitiesCard","emptyHelpLinkTitle","systemDiagramCard","edgeLabels","partOf","provides","dependsOn","useStyles","makeStyles","item","display","flexContainer","flexWrap","itemText","width","wordBreak","marginBottom","name","CatalogSearchResultListItem","props","result","highlight","classes","t","useTranslationRef","div","className","icon","ListItemIcon","ListItemText","primaryTypographyProps","variant","primary","Link","noTrack","to","location","fields","HighlightedSearchResultText","text","preTag","postTag","secondary","Typography","component","style","WebkitBoxOrient","WebkitLineClamp","lineClamp","overflow","color","Box","kind","Chip","size","type","owner"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/1297.617c558a.chunk.js","mappings":"6KAmBO,MAAMA,KAAwBC,EAAAA,GAAqB,CACxDC,GAAI,UACJC,SAAU,CACRC,UAAW,CACTC,MAAO,sBACPC,kBAAmB,SACnBC,qBAAsB,oCACxB,EACAC,UAAW,CACTH,MAAO,QACPI,mBAAoB,0BACpBC,gBAAiB,gBACjBC,yBAA0B,2BAC1BC,wBAAyB,oBACzBC,eAAgB,kBAChBC,aAAc,gBACdC,WAAY,cACZC,iBAAkB,CAChBC,MAAO,cACPC,MAAO,gBACT,EACAC,WAAY,CACVF,MAAO,QACPC,MAAO,UACT,EACAE,YAAa,CACXH,MAAO,SACPC,MAAO,WACT,EACAG,YAAa,CACXJ,MAAO,SACPC,MAAO,WACT,EACAI,qBAAsB,CACpBL,MAAO,mBACPC,MAAO,qBACT,EACAK,UAAW,CACTN,MAAO,MACT,EACAO,eAAgB,CACdP,MAAO,WACT,EACAQ,UAAW,CACTR,MAAO,OACPC,MAAO,SACT,EACAQ,aAAc,CACZT,MAAO,SACT,CACF,EACAU,iBAAkB,CAChBC,UAAW,YACXC,MAAO,OACT,EACAC,aAAc,CACZC,kBAAmB,oCACnBC,gBAAiB,OACjBC,gBAAiB,OACjBC,gBAAiB,mBACjBC,kBAAmB,uBACrB,EACAC,2BAA4B,CAC1B/B,MAAO,2BACPgC,aAAc,wCAChB,EACAC,wBAAyB,CACvBjC,MAAO,wBACPgC,aAAc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K,O,GAGRlC,EAAOoC,UACN,OAACH,EAAAA,EAAIA,CACHvG,MAAO,GAAGyE,EAAE,wBAAwB,CAAC,KAAKH,EAAOoC,KAAK,GACtDF,KAAK,O,YA9DG,IAqEtB,C","sources":["webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/alpha/translation.ts","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @alpha */\nexport const catalogTranslationRef = createTranslationRef({\n id: 'catalog',\n messages: {\n indexPage: {\n title: `{{orgName}} Catalog`,\n createButtonTitle: 'Create',\n supportButtonContent: 'All your software catalog entities',\n },\n aboutCard: {\n title: 'About',\n refreshButtonTitle: 'Schedule entity refresh',\n editButtonTitle: 'Edit Metadata',\n createSimilarButtonTitle: 'Create something similar',\n refreshScheduledMessage: 'Refresh scheduled',\n launchTemplate: 'Launch Template',\n viewTechdocs: 'View TechDocs',\n viewSource: 'View Source',\n descriptionField: {\n label: 'Description',\n value: 'No description',\n },\n ownerField: {\n label: 'Owner',\n value: 'No Owner',\n },\n domainField: {\n label: 'Domain',\n value: 'No Domain',\n },\n systemField: {\n label: 'System',\n value: 'No System',\n },\n parentComponentField: {\n label: 'Parent Component',\n value: 'No Parent Component',\n },\n typeField: {\n label: 'Type',\n },\n lifecycleField: {\n label: 'Lifecycle',\n },\n tagsField: {\n label: 'Tags',\n value: 'No Tags',\n },\n targetsField: {\n label: 'Targets',\n },\n },\n searchResultItem: {\n lifecycle: 'Lifecycle',\n Owner: 'Owner',\n },\n catalogTable: {\n warningPanelTitle: 'Could not fetch catalog entities.',\n viewActionTitle: 'View',\n editActionTitle: 'Edit',\n starActionTitle: 'Add to favorites',\n unStarActionTitle: 'Remove from favorites',\n },\n dependencyOfComponentsCard: {\n title: 'Dependency of components',\n emptyMessage: 'No component depends on this component',\n },\n dependsOnComponentsCard: {\n title: 'Depends on components',\n emptyMessage: 'No component is a dependency of this component',\n },\n dependsOnResourcesCard: {\n title: 'Depends on resources',\n emptyMessage: 'No resource is a dependency of this component',\n },\n entityContextMenu: {\n copiedMessage: 'Copied!',\n moreButtonTitle: 'More',\n inspectMenuTitle: 'Inspect entity',\n copyURLMenuTitle: 'Copy entity URL',\n unregisterMenuTitle: 'Unregister entity',\n },\n entityLabelsCard: {\n title: 'Labels',\n emptyDescription:\n 'No labels defined for this entity. You can add labels to your entity YAML as shown in the highlighted example below:',\n readMoreButtonTitle: 'Read more',\n },\n entityLabels: {\n warningPanelTitle: 'Entity not found',\n ownerLabel: 'Owner',\n lifecycleLabel: 'Lifecycle',\n },\n entityLinksCard: {\n title: 'Links',\n emptyDescription:\n 'No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:',\n readMoreButtonTitle: 'Read more',\n },\n entityNotFound: {\n title: 'Entity was not found',\n description:\n 'Want to help us build this? Check out our Getting Started documentation.',\n docButtonTitle: 'DOCS',\n },\n deleteEntity: {\n dialogTitle: 'Are you sure you want to delete this entity?',\n deleteButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n description:\n 'This entity is not referenced by any location and is therefore not receiving updates. Click here to delete.',\n },\n entityProcessingErrorsDescription: 'The error below originates from',\n entityRelationWarningDescription:\n \"This entity has relations to other entities, which can't be found in the catalog.\\n Entities not found are: \",\n hasComponentsCard: {\n title: 'Has components',\n emptyMessage: 'No component is part of this system',\n },\n hasResourcesCard: {\n title: 'Has resources',\n emptyMessage: 'No resource is part of this system',\n },\n hasSubcomponentsCard: {\n title: 'Has subcomponents',\n emptyMessage: 'No subcomponent is part of this component',\n },\n hasSubdomainsCard: {\n title: 'Has subdomains',\n emptyMessage: 'No subdomain is part of this domain',\n },\n hasSystemsCard: {\n title: 'Has systems',\n emptyMessage: 'No system is part of this domain',\n },\n relatedEntitiesCard: {\n emptyHelpLinkTitle: 'Learn how to change this.',\n },\n systemDiagramCard: {\n title: 'System Diagram',\n description: 'Use pinch & zoo to move around the diagram.',\n edgeLabels: {\n partOf: 'part of',\n provides: 'provides',\n dependsOn: 'depends on',\n },\n },\n },\n});\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ReactNode } from 'react';\nimport Box from '@material-ui/core/Box';\nimport Chip from '@material-ui/core/Chip';\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Link } from '@backstage/core-components';\nimport {\n IndexableDocument,\n ResultHighlight,\n} from '@backstage/plugin-search-common';\nimport { HighlightedSearchResultText } from '@backstage/plugin-search-react';\nimport { catalogTranslationRef } from '../../alpha/translation';\nimport { useTranslationRef } from '@backstage/frontend-plugin-api';\n\n/** @public */\nexport type CatalogSearchResultListItemClassKey =\n | 'item'\n | 'flexContainer'\n | 'itemText';\n\nconst useStyles = makeStyles(\n {\n item: {\n display: 'flex',\n },\n flexContainer: {\n flexWrap: 'wrap',\n },\n itemText: {\n width: '100%',\n wordBreak: 'break-all',\n marginBottom: '1rem',\n },\n },\n { name: 'CatalogSearchResultListItem' },\n);\n\n/**\n * Props for {@link CatalogSearchResultListItem}.\n *\n * @public\n */\nexport interface CatalogSearchResultListItemProps {\n icon?: ReactNode | ((result: IndexableDocument) => ReactNode);\n result?: IndexableDocument;\n highlight?: ResultHighlight;\n rank?: number;\n lineClamp?: number;\n}\n\n/** @public */\nexport function CatalogSearchResultListItem(\n props: CatalogSearchResultListItemProps,\n) {\n const result = props.result as any;\n const highlight = props.highlight as ResultHighlight;\n\n const classes = useStyles();\n const { t } = useTranslationRef(catalogTranslationRef);\n\n if (!result) return null;\n\n return (\n <div className={classes.item}>\n {props.icon && (\n <ListItemIcon>\n {typeof props.icon === 'function' ? props.icon(result) : props.icon}\n </ListItemIcon>\n )}\n <div className={classes.flexContainer}>\n <ListItemText\n className={classes.itemText}\n primaryTypographyProps={{ variant: 'h6' }}\n primary={\n <Link noTrack to={result.location}>\n {highlight?.fields.title ? (\n <HighlightedSearchResultText\n text={highlight.fields.title}\n preTag={highlight.preTag}\n postTag={highlight.postTag}\n />\n ) : (\n result.title\n )}\n </Link>\n }\n secondary={\n <Typography\n component=\"span\"\n style={{\n display: '-webkit-box',\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: props.lineClamp,\n overflow: 'hidden',\n }}\n color=\"textSecondary\"\n variant=\"body2\"\n >\n {highlight?.fields.text ? (\n <HighlightedSearchResultText\n text={highlight.fields.text}\n preTag={highlight.preTag}\n postTag={highlight.postTag}\n />\n ) : (\n result.text\n )}\n </Typography>\n }\n />\n <Box>\n {result.kind && <Chip label={`Kind: ${result.kind}`} size=\"small\" />}\n {result.type && <Chip label={`Type: ${result.type}`} size=\"small\" />}\n {result.lifecycle && (\n <Chip\n label={`${t('searchResultItem.lifecycle')}: ${result.lifecycle}`}\n size=\"small\"\n />\n )}\n {result.owner && (\n <Chip\n label={`${t('searchResultItem.Owner')}: ${result.owner}`}\n size=\"small\"\n />\n )}\n </Box>\n </div>\n </div>\n );\n}\n"],"names":["catalogTranslationRef","createTranslationRef","id","messages","indexPage","title","createButtonTitle","supportButtonContent","aboutCard","refreshButtonTitle","editButtonTitle","createSimilarButtonTitle","refreshScheduledMessage","launchTemplate","viewTechdocs","viewSource","descriptionField","label","value","ownerField","domainField","systemField","parentComponentField","typeField","lifecycleField","tagsField","targetsField","searchResultItem","lifecycle","Owner","catalogTable","warningPanelTitle","viewActionTitle","editActionTitle","starActionTitle","unStarActionTitle","dependencyOfComponentsCard","emptyMessage","dependsOnComponentsCard","dependsOnResourcesCard","entityContextMenu","copiedMessage","moreButtonTitle","inspectMenuTitle","copyURLMenuTitle","unregisterMenuTitle","entityLabelsCard","emptyDescription","readMoreButtonTitle","entityLabels","ownerLabel","lifecycleLabel","entityLinksCard","entityNotFound","description","docButtonTitle","deleteEntity","dialogTitle","deleteButtonTitle","cancelButtonTitle","entityProcessingErrorsDescription","entityRelationWarningDescription","hasComponentsCard","hasResourcesCard","hasSubcomponentsCard","hasSubdomainsCard","hasSystemsCard","relatedEntitiesCard","emptyHelpLinkTitle","systemDiagramCard","edgeLabels","partOf","provides","dependsOn","useStyles","makeStyles","item","display","flexContainer","flexWrap","itemText","width","wordBreak","marginBottom","name","CatalogSearchResultListItem","props","result","highlight","classes","t","useTranslationRef","div","className","icon","ListItemIcon","ListItemText","primaryTypographyProps","variant","primary","Link","noTrack","to","location","fields","HighlightedSearchResultText","text","preTag","postTag","secondary","Typography","component","style","WebkitBoxOrient","WebkitLineClamp","lineClamp","overflow","color","Box","kind","Chip","size","type","owner"],"sourceRoot":""}
|