@backstage-community/plugin-explore 0.18.0 → 1.0.1
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 +22 -0
- package/dist/alpha.d.ts +0 -21
- package/dist/alpha.esm.js +11 -15
- package/dist/alpha.esm.js.map +1 -1
- package/dist/components/CatalogKindExploreContent/CatalogKindExploreContent.esm.js +3 -4
- package/dist/components/CatalogKindExploreContent/CatalogKindExploreContent.esm.js.map +1 -1
- package/dist/components/DefaultExplorePage/DefaultExplorePage.esm.js +5 -12
- package/dist/components/DefaultExplorePage/DefaultExplorePage.esm.js.map +1 -1
- package/dist/components/DomainCard/DomainCard.esm.js +6 -11
- package/dist/components/DomainCard/DomainCard.esm.js.map +1 -1
- package/dist/components/DomainExplorerContent/DomainExplorerContent.esm.js +3 -4
- package/dist/components/DomainExplorerContent/DomainExplorerContent.esm.js.map +1 -1
- package/dist/components/EntityCard/EntityCard.esm.js +14 -13
- package/dist/components/EntityCard/EntityCard.esm.js.map +1 -1
- package/dist/components/ExploreLayout/ExploreLayout.esm.js +43 -15
- package/dist/components/ExploreLayout/ExploreLayout.esm.js.map +1 -1
- package/dist/components/GroupsExplorerContent/GroupsDiagram.esm.js +17 -79
- package/dist/components/GroupsExplorerContent/GroupsDiagram.esm.js.map +1 -1
- package/dist/components/GroupsExplorerContent/GroupsDiagram.module.css.esm.js +8 -0
- package/dist/components/GroupsExplorerContent/GroupsDiagram.module.css.esm.js.map +1 -0
- package/dist/components/GroupsExplorerContent/GroupsExplorerContent.esm.js +2 -13
- package/dist/components/GroupsExplorerContent/GroupsExplorerContent.esm.js.map +1 -1
- package/dist/components/GroupsExplorerContent/GroupsExplorerContent.module.css.esm.js +8 -0
- package/dist/components/GroupsExplorerContent/GroupsExplorerContent.module.css.esm.js.map +1 -0
- package/dist/components/ToolCard/ToolCard.esm.js +18 -60
- package/dist/components/ToolCard/ToolCard.esm.js.map +1 -1
- package/dist/components/ToolCard/ToolCard.module.css.esm.js +8 -0
- package/dist/components/ToolCard/ToolCard.module.css.esm.js.map +1 -0
- package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.esm.js +25 -47
- package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.esm.js.map +1 -1
- package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.module.css.esm.js +8 -0
- package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.module.css.esm.js.map +1 -0
- package/dist/index.d.ts +18 -12
- package/dist/node_modules_dist/style-inject/dist/style-inject.es.esm.js +29 -0
- package/dist/node_modules_dist/style-inject/dist/style-inject.es.esm.js.map +1 -0
- package/package.json +22 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @backstage-community/plugin-explore
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- de252c4: Fix ExploreLayout to use FullPage
|
|
8
|
+
|
|
9
|
+
## 1.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- 5f6a0fe: **BREAKING** Migrated from Material UI (MUI) to Backstage UI (BUI).
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- a7c5b48: Backstage version bump to v1.52.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [a7c5b48]
|
|
22
|
+
- @backstage-community/plugin-explore-common@0.14.0
|
|
23
|
+
- @backstage-community/plugin-explore-react@0.14.0
|
|
24
|
+
|
|
3
25
|
## 0.18.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/dist/alpha.d.ts
CHANGED
|
@@ -33,27 +33,6 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
33
33
|
inputs: {};
|
|
34
34
|
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
35
35
|
}>;
|
|
36
|
-
"nav-item:explore": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
37
|
-
kind: "nav-item";
|
|
38
|
-
name: undefined;
|
|
39
|
-
config: {
|
|
40
|
-
title: string | undefined;
|
|
41
|
-
};
|
|
42
|
-
configInput: {
|
|
43
|
-
title?: string | undefined;
|
|
44
|
-
};
|
|
45
|
-
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
46
|
-
title: string;
|
|
47
|
-
icon: _backstage_frontend_plugin_api.IconComponent;
|
|
48
|
-
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
49
|
-
}, "core.nav-item.target", {}>;
|
|
50
|
-
inputs: {};
|
|
51
|
-
params: {
|
|
52
|
-
title: string;
|
|
53
|
-
icon: _backstage_frontend_plugin_api.IconComponent;
|
|
54
|
-
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
55
|
-
};
|
|
56
|
-
}>;
|
|
57
36
|
"page:explore": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
58
37
|
kind: "page";
|
|
59
38
|
name: undefined;
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import { RiStackLine } from '@remixicon/react';
|
|
3
3
|
import { compatWrapper, convertLegacyRouteRef, convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
4
|
-
import { ApiBlueprint, fetchApiRef, discoveryApiRef, PageBlueprint,
|
|
4
|
+
import { ApiBlueprint, fetchApiRef, discoveryApiRef, PageBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
5
5
|
import { SearchResultListItemBlueprint } from '@backstage/plugin-search-react/alpha';
|
|
6
6
|
import { ExploreClient } from './api/ExploreClient.esm.js';
|
|
7
7
|
import { exploreApiRef } from './api/ExploreApi.esm.js';
|
|
@@ -20,19 +20,19 @@ const exploreApi = ApiBlueprint.make({
|
|
|
20
20
|
const explorePage = PageBlueprint.make({
|
|
21
21
|
params: {
|
|
22
22
|
path: "/explore",
|
|
23
|
+
title: "Explore",
|
|
24
|
+
icon: /* @__PURE__ */ jsx(RiStackLine, {}),
|
|
23
25
|
routeRef: convertLegacyRouteRef(exploreRouteRef),
|
|
26
|
+
// TODO: Revisit once Backstage core supports rendering plugin headers
|
|
27
|
+
// without the wrapping PageLayout header. For now we opt out of the
|
|
28
|
+
// default header so `PluginHeader` (used inside `ExploreLayout`) is the
|
|
29
|
+
// only header rendered.
|
|
30
|
+
noHeader: true,
|
|
24
31
|
loader: async () => import('./components/ExplorePage/index.esm.js').then(
|
|
25
32
|
(m) => compatWrapper(/* @__PURE__ */ jsx(m.ExplorePage, {}))
|
|
26
33
|
)
|
|
27
34
|
}
|
|
28
35
|
});
|
|
29
|
-
const exploreNavItem = NavItemBlueprint.make({
|
|
30
|
-
params: {
|
|
31
|
-
icon: LayersIcon,
|
|
32
|
-
routeRef: convertLegacyRouteRef(exploreRouteRef),
|
|
33
|
-
title: "Explore"
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
36
|
const exploreSearchResultListItem = SearchResultListItemBlueprint.make({
|
|
37
37
|
params: {
|
|
38
38
|
predicate: (result) => result.type === "tools",
|
|
@@ -43,12 +43,8 @@ const exploreSearchResultListItem = SearchResultListItemBlueprint.make({
|
|
|
43
43
|
});
|
|
44
44
|
var alpha = createFrontendPlugin({
|
|
45
45
|
pluginId: "explore",
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
explorePage,
|
|
49
|
-
exploreNavItem,
|
|
50
|
-
exploreSearchResultListItem
|
|
51
|
-
],
|
|
46
|
+
icon: /* @__PURE__ */ jsx(RiStackLine, {}),
|
|
47
|
+
extensions: [exploreApi, explorePage, exploreSearchResultListItem],
|
|
52
48
|
routes: convertLegacyRouteRefs({
|
|
53
49
|
explore: exploreRouteRef
|
|
54
50
|
})
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.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
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.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 { RiStackLine } from '@remixicon/react';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n convertLegacyRouteRefs,\n} from '@backstage/core-compat-api';\nimport {\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n ApiBlueprint,\n PageBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport { SearchResultListItemBlueprint } from '@backstage/plugin-search-react/alpha';\nimport { exploreApiRef, ExploreClient } from './api';\nimport { exploreRouteRef } from './routes';\n\n/** @alpha */\nconst exploreApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: exploreApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new ExploreClient({ discoveryApi, fetchApi }),\n }),\n});\n\n/** @alpha */\nconst explorePage = PageBlueprint.make({\n params: {\n path: '/explore',\n title: 'Explore',\n icon: <RiStackLine />,\n routeRef: convertLegacyRouteRef(exploreRouteRef),\n // TODO: Revisit once Backstage core supports rendering plugin headers\n // without the wrapping PageLayout header. For now we opt out of the\n // default header so `PluginHeader` (used inside `ExploreLayout`) is the\n // only header rendered.\n noHeader: true,\n loader: async () =>\n import('./components/ExplorePage').then(m =>\n compatWrapper(<m.ExplorePage />),\n ),\n },\n});\n\n/** @alpha */\nexport const exploreSearchResultListItem = SearchResultListItemBlueprint.make({\n params: {\n predicate: result => result.type === 'tools',\n component: () =>\n import('./components/ToolSearchResultListItem').then(\n m => m.ToolSearchResultListItem,\n ),\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'explore',\n icon: <RiStackLine />,\n extensions: [exploreApi, explorePage, exploreSearchResultListItem],\n routes: convertLegacyRouteRefs({\n explore: exploreRouteRef,\n }),\n});\n"],"names":[],"mappings":";;;;;;;;;AAkCA,MAAM,UAAA,GAAa,aAAa,IAAA,CAAK;AAAA,EACnC,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,aAAA;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,YAAA,EAAc,eAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,QAAA,EAAS,KACjC,IAAI,aAAA,CAAc,EAAE,YAAA,EAAc,QAAA,EAAU;AAAA,GAC/C;AACL,CAAC,CAAA;AAGD,MAAM,WAAA,GAAc,cAAc,IAAA,CAAK;AAAA,EACrC,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,UAAA;AAAA,IACN,KAAA,EAAO,SAAA;AAAA,IACP,IAAA,sBAAO,WAAA,EAAA,EAAY,CAAA;AAAA,IACnB,QAAA,EAAU,sBAAsB,eAAe,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAK/C,QAAA,EAAU,IAAA;AAAA,IACV,MAAA,EAAQ,YACN,OAAO,uCAA0B,CAAA,CAAE,IAAA;AAAA,MAAK,OACtC,aAAA,iBAAc,GAAA,CAAC,CAAA,CAAE,WAAA,EAAF,EAAc,CAAE;AAAA;AACjC;AAEN,CAAC,CAAA;AAGM,MAAM,2BAAA,GAA8B,8BAA8B,IAAA,CAAK;AAAA,EAC5E,MAAA,EAAQ;AAAA,IACN,SAAA,EAAW,CAAA,MAAA,KAAU,MAAA,CAAO,IAAA,KAAS,OAAA;AAAA,IACrC,SAAA,EAAW,MACT,OAAO,oDAAuC,CAAA,CAAE,IAAA;AAAA,MAC9C,OAAK,CAAA,CAAE;AAAA;AACT;AAEN,CAAC;AAGD,YAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,SAAA;AAAA,EACV,IAAA,sBAAO,WAAA,EAAA,EAAY,CAAA;AAAA,EACnB,UAAA,EAAY,CAAC,UAAA,EAAY,WAAA,EAAa,2BAA2B,CAAA;AAAA,EACjE,QAAQ,sBAAA,CAAuB;AAAA,IAC7B,OAAA,EAAS;AAAA,GACV;AACH,CAAC,CAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { catalogApiRef } from '@backstage/plugin-catalog-react';
|
|
3
|
-
import
|
|
3
|
+
import { ButtonLink } from '@backstage/ui';
|
|
4
4
|
import useAsync from 'react-use/esm/useAsync';
|
|
5
5
|
import { EntityCard } from '../EntityCard/EntityCard.esm.js';
|
|
6
6
|
import { Content, ContentHeader, SupportButton, Progress, WarningPanel, EmptyState, ItemCardGrid } from '@backstage/core-components';
|
|
@@ -35,10 +35,9 @@ const Body = (props) => {
|
|
|
35
35
|
title: `No ${kindPlural} to display`,
|
|
36
36
|
description: `You haven't added any ${kindPlural} yet.`,
|
|
37
37
|
action: /* @__PURE__ */ jsx(
|
|
38
|
-
|
|
38
|
+
ButtonLink,
|
|
39
39
|
{
|
|
40
|
-
variant: "
|
|
41
|
-
color: "primary",
|
|
40
|
+
variant: "primary",
|
|
42
41
|
href: `https://backstage.io/docs/features/software-catalog/descriptor-format#kind-${kind}`,
|
|
43
42
|
children: "Read more"
|
|
44
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogKindExploreContent.esm.js","sources":["../../../src/components/CatalogKindExploreContent/CatalogKindExploreContent.tsx"],"sourcesContent":["/*\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 { Entity } from '@backstage/catalog-model';\nimport { catalogApiRef } from '@backstage/plugin-catalog-react';\nimport
|
|
1
|
+
{"version":3,"file":"CatalogKindExploreContent.esm.js","sources":["../../../src/components/CatalogKindExploreContent/CatalogKindExploreContent.tsx"],"sourcesContent":["/*\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 { Entity } from '@backstage/catalog-model';\nimport { catalogApiRef } from '@backstage/plugin-catalog-react';\nimport { ButtonLink } from '@backstage/ui';\nimport useAsync from 'react-use/esm/useAsync';\nimport { EntityCard } from '../EntityCard';\nimport {\n Content,\n ContentHeader,\n EmptyState,\n ItemCardGrid,\n Progress,\n SupportButton,\n WarningPanel,\n} from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\nimport pluralize from 'pluralize';\n\nconst Body = (props: { kind: string }) => {\n const { kind } = props;\n const kindPlural = pluralize(kind);\n const catalogApi = useApi(catalogApiRef);\n const {\n value: entities,\n loading,\n error,\n } = useAsync(async () => {\n const response = await catalogApi.getEntities({\n filter: { kind },\n });\n return response.items as Entity[];\n }, [kind]);\n\n if (loading) {\n return <Progress />;\n }\n\n if (error) {\n return (\n <WarningPanel severity=\"error\" title={`Could not load ${kindPlural}.`}>\n {error.message}\n </WarningPanel>\n );\n }\n\n if (!entities?.length) {\n return (\n <EmptyState\n missing=\"info\"\n title={`No ${kindPlural} to display`}\n description={`You haven't added any ${kindPlural} yet.`}\n action={\n <ButtonLink\n variant=\"primary\"\n href={`https://backstage.io/docs/features/software-catalog/descriptor-format#kind-${kind}`}\n >\n Read more\n </ButtonLink>\n }\n />\n );\n }\n\n return (\n <ItemCardGrid>\n {entities.map((entity, index) => (\n <EntityCard key={index} entity={entity} />\n ))}\n </ItemCardGrid>\n );\n};\n\n/** @public */\nexport const CatalogKindExploreContent = (props: {\n title?: string;\n kind: string;\n}) => {\n const { kind, title } = props;\n const kindLowercase = kind.toLocaleLowerCase();\n const kindCapitalized = `${kind[0].toLocaleUpperCase()}${kind.substring(1)}`;\n return (\n <Content noPadding>\n <ContentHeader title={title || `${pluralize(kindCapitalized)}`}>\n <SupportButton>\n <>Discover the {pluralize(kindLowercase)} in your ecosystem.</>\n </SupportButton>\n </ContentHeader>\n <Body kind={kindLowercase} />\n </Content>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AAiCA,MAAM,IAAA,GAAO,CAAC,KAAA,KAA4B;AACxC,EAAA,MAAM,EAAE,MAAK,GAAI,KAAA;AACjB,EAAA,MAAM,UAAA,GAAa,UAAU,IAAI,CAAA;AACjC,EAAA,MAAM,UAAA,GAAa,OAAO,aAAa,CAAA;AACvC,EAAA,MAAM;AAAA,IACJ,KAAA,EAAO,QAAA;AAAA,IACP,OAAA;AAAA,IACA;AAAA,GACF,GAAI,SAAS,YAAY;AACvB,IAAA,MAAM,QAAA,GAAW,MAAM,UAAA,CAAW,WAAA,CAAY;AAAA,MAC5C,MAAA,EAAQ,EAAE,IAAA;AAAK,KAChB,CAAA;AACD,IAAA,OAAO,QAAA,CAAS,KAAA;AAAA,EAClB,CAAA,EAAG,CAAC,IAAI,CAAC,CAAA;AAET,EAAA,IAAI,OAAA,EAAS;AACX,IAAA,2BAAQ,QAAA,EAAA,EAAS,CAAA;AAAA,EACnB;AAEA,EAAA,IAAI,KAAA,EAAO;AACT,IAAA,uBACE,GAAA,CAAC,gBAAa,QAAA,EAAS,OAAA,EAAQ,OAAO,CAAA,eAAA,EAAkB,UAAU,CAAA,CAAA,CAAA,EAC/D,QAAA,EAAA,KAAA,CAAM,OAAA,EACT,CAAA;AAAA,EAEJ;AAEA,EAAA,IAAI,CAAC,UAAU,MAAA,EAAQ;AACrB,IAAA,uBACE,GAAA;AAAA,MAAC,UAAA;AAAA,MAAA;AAAA,QACC,OAAA,EAAQ,MAAA;AAAA,QACR,KAAA,EAAO,MAAM,UAAU,CAAA,WAAA,CAAA;AAAA,QACvB,WAAA,EAAa,yBAAyB,UAAU,CAAA,KAAA,CAAA;AAAA,QAChD,MAAA,kBACE,GAAA;AAAA,UAAC,UAAA;AAAA,UAAA;AAAA,YACC,OAAA,EAAQ,SAAA;AAAA,YACR,IAAA,EAAM,8EAA8E,IAAI,CAAA,CAAA;AAAA,YACzF,QAAA,EAAA;AAAA;AAAA;AAED;AAAA,KAEJ;AAAA,EAEJ;AAEA,EAAA,uBACE,GAAA,CAAC,YAAA,EAAA,EACE,QAAA,EAAA,QAAA,CAAS,GAAA,CAAI,CAAC,MAAA,EAAQ,KAAA,qBACrB,GAAA,CAAC,UAAA,EAAA,EAAuB,MAAA,EAAA,EAAP,KAAuB,CACzC,CAAA,EACH,CAAA;AAEJ,CAAA;AAGO,MAAM,yBAAA,GAA4B,CAAC,KAAA,KAGpC;AACJ,EAAA,MAAM,EAAE,IAAA,EAAM,KAAA,EAAM,GAAI,KAAA;AACxB,EAAA,MAAM,aAAA,GAAgB,KAAK,iBAAA,EAAkB;AAC7C,EAAA,MAAM,eAAA,GAAkB,CAAA,EAAG,IAAA,CAAK,CAAC,CAAA,CAAE,iBAAA,EAAmB,CAAA,EAAG,IAAA,CAAK,SAAA,CAAU,CAAC,CAAC,CAAA,CAAA;AAC1E,EAAA,uBACE,IAAA,CAAC,OAAA,EAAA,EAAQ,SAAA,EAAS,IAAA,EAChB,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,aAAA,EAAA,EAAc,KAAA,EAAO,KAAA,IAAS,CAAA,EAAG,SAAA,CAAU,eAAe,CAAC,CAAA,CAAA,EAC1D,QAAA,kBAAA,GAAA,CAAC,aAAA,EAAA,EACC,QAAA,kBAAA,IAAA,CAAA,QAAA,EAAA,EAAE,QAAA,EAAA;AAAA,MAAA,eAAA;AAAA,MAAc,UAAU,aAAa,CAAA;AAAA,MAAE;AAAA,KAAA,EAAmB,GAC9D,CAAA,EACF,CAAA;AAAA,oBACA,GAAA,CAAC,IAAA,EAAA,EAAK,IAAA,EAAM,aAAA,EAAe;AAAA,GAAA,EAC7B,CAAA;AAEJ;;;;"}
|
|
@@ -8,18 +8,11 @@ import { CatalogKindExploreContent } from '../CatalogKindExploreContent/CatalogK
|
|
|
8
8
|
const DefaultExplorePage = () => {
|
|
9
9
|
const configApi = useApi(configApiRef);
|
|
10
10
|
const organizationName = configApi.getOptionalString("organization.name") ?? "Backstage";
|
|
11
|
-
return /* @__PURE__ */ jsxs(
|
|
12
|
-
ExploreLayout,
|
|
13
|
-
{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
children: [
|
|
17
|
-
/* @__PURE__ */ jsx(ExploreLayout.Route, { path: "domains", title: "Domains", children: /* @__PURE__ */ jsx(CatalogKindExploreContent, { kind: "domain" }) }),
|
|
18
|
-
/* @__PURE__ */ jsx(ExploreLayout.Route, { path: "groups", title: "Groups", children: /* @__PURE__ */ jsx(GroupsExplorerContent, {}) }),
|
|
19
|
-
/* @__PURE__ */ jsx(ExploreLayout.Route, { path: "tools", title: "Tools", children: /* @__PURE__ */ jsx(ToolExplorerContent, {}) })
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
);
|
|
11
|
+
return /* @__PURE__ */ jsxs(ExploreLayout, { title: `Explore the ${organizationName} ecosystem`, children: [
|
|
12
|
+
/* @__PURE__ */ jsx(ExploreLayout.Route, { path: "domains", title: "Domains", children: /* @__PURE__ */ jsx(CatalogKindExploreContent, { kind: "domain" }) }),
|
|
13
|
+
/* @__PURE__ */ jsx(ExploreLayout.Route, { path: "groups", title: "Groups", children: /* @__PURE__ */ jsx(GroupsExplorerContent, {}) }),
|
|
14
|
+
/* @__PURE__ */ jsx(ExploreLayout.Route, { path: "tools", title: "Tools", children: /* @__PURE__ */ jsx(ToolExplorerContent, {}) })
|
|
15
|
+
] });
|
|
23
16
|
};
|
|
24
17
|
|
|
25
18
|
export { DefaultExplorePage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultExplorePage.esm.js","sources":["../../../src/components/DefaultExplorePage/DefaultExplorePage.tsx"],"sourcesContent":["/*\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 { ExploreLayout } from '../ExploreLayout';\nimport { GroupsExplorerContent } from '../GroupsExplorerContent';\nimport { ToolExplorerContent } from '../ToolExplorerContent';\nimport { configApiRef, useApi } from '@backstage/core-plugin-api';\nimport { CatalogKindExploreContent } from '../CatalogKindExploreContent';\n\nexport const DefaultExplorePage = () => {\n const configApi = useApi(configApiRef);\n const organizationName =\n configApi.getOptionalString('organization.name') ?? 'Backstage';\n\n return (\n <ExploreLayout
|
|
1
|
+
{"version":3,"file":"DefaultExplorePage.esm.js","sources":["../../../src/components/DefaultExplorePage/DefaultExplorePage.tsx"],"sourcesContent":["/*\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 { ExploreLayout } from '../ExploreLayout';\nimport { GroupsExplorerContent } from '../GroupsExplorerContent';\nimport { ToolExplorerContent } from '../ToolExplorerContent';\nimport { configApiRef, useApi } from '@backstage/core-plugin-api';\nimport { CatalogKindExploreContent } from '../CatalogKindExploreContent';\n\nexport const DefaultExplorePage = () => {\n const configApi = useApi(configApiRef);\n const organizationName =\n configApi.getOptionalString('organization.name') ?? 'Backstage';\n\n return (\n <ExploreLayout title={`Explore the ${organizationName} ecosystem`}>\n <ExploreLayout.Route path=\"domains\" title=\"Domains\">\n <CatalogKindExploreContent kind=\"domain\" />\n </ExploreLayout.Route>\n <ExploreLayout.Route path=\"groups\" title=\"Groups\">\n <GroupsExplorerContent />\n </ExploreLayout.Route>\n <ExploreLayout.Route path=\"tools\" title=\"Tools\">\n <ToolExplorerContent />\n </ExploreLayout.Route>\n </ExploreLayout>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAsBO,MAAM,qBAAqB,MAAM;AACtC,EAAA,MAAM,SAAA,GAAY,OAAO,YAAY,CAAA;AACrC,EAAA,MAAM,gBAAA,GACJ,SAAA,CAAU,iBAAA,CAAkB,mBAAmB,CAAA,IAAK,WAAA;AAEtD,EAAA,uBACE,IAAA,CAAC,aAAA,EAAA,EAAc,KAAA,EAAO,CAAA,YAAA,EAAe,gBAAgB,CAAA,UAAA,CAAA,EACnD,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,aAAA,CAAc,KAAA,EAAd,EAAoB,IAAA,EAAK,SAAA,EAAU,KAAA,EAAM,SAAA,EACxC,QAAA,kBAAA,GAAA,CAAC,yBAAA,EAAA,EAA0B,IAAA,EAAK,QAAA,EAAS,CAAA,EAC3C,CAAA;AAAA,oBACA,GAAA,CAAC,aAAA,CAAc,KAAA,EAAd,EAAoB,IAAA,EAAK,UAAS,KAAA,EAAM,QAAA,EACvC,QAAA,kBAAA,GAAA,CAAC,qBAAA,EAAA,EAAsB,CAAA,EACzB,CAAA;AAAA,oBACA,GAAA,CAAC,aAAA,CAAc,KAAA,EAAd,EAAoB,IAAA,EAAK,SAAQ,KAAA,EAAM,OAAA,EACtC,QAAA,kBAAA,GAAA,CAAC,mBAAA,EAAA,EAAoB,CAAA,EACvB;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { RELATION_OWNED_BY } from '@backstage/catalog-model';
|
|
3
3
|
import { entityRouteRef, getEntityRelations, entityRouteParams, EntityRefLinks } from '@backstage/plugin-catalog-react';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import CardActions from '@material-ui/core/CardActions';
|
|
7
|
-
import CardContent from '@material-ui/core/CardContent';
|
|
8
|
-
import CardMedia from '@material-ui/core/CardMedia';
|
|
9
|
-
import Chip from '@material-ui/core/Chip';
|
|
10
|
-
import { ItemCardHeader, LinkButton } from '@backstage/core-components';
|
|
4
|
+
import { Card, CardHeader, CardBody, TagGroup, Tag, CardFooter, ButtonLink } from '@backstage/ui';
|
|
5
|
+
import { ItemCardHeader } from '@backstage/core-components';
|
|
11
6
|
import { useRouteRef } from '@backstage/core-plugin-api';
|
|
12
7
|
|
|
13
8
|
const DomainCard = (props) => {
|
|
@@ -24,18 +19,18 @@ const DomainCard = (props) => {
|
|
|
24
19
|
}
|
|
25
20
|
);
|
|
26
21
|
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
27
|
-
/* @__PURE__ */ jsx(
|
|
22
|
+
/* @__PURE__ */ jsx(CardHeader, { style: { padding: 0 }, children: /* @__PURE__ */ jsx(
|
|
28
23
|
ItemCardHeader,
|
|
29
24
|
{
|
|
30
25
|
title: entity.metadata.title ?? entity.metadata.name,
|
|
31
26
|
subtitle: owner
|
|
32
27
|
}
|
|
33
28
|
) }),
|
|
34
|
-
/* @__PURE__ */ jsxs(
|
|
35
|
-
entity.metadata.tags?.length ? /* @__PURE__ */ jsx(
|
|
29
|
+
/* @__PURE__ */ jsxs(CardBody, { style: { overflow: "visible" }, children: [
|
|
30
|
+
entity.metadata.tags?.length ? /* @__PURE__ */ jsx(TagGroup, { style: { marginBottom: "var(--bui-space-2)" }, children: entity.metadata.tags.map((tag) => /* @__PURE__ */ jsx(Tag, { size: "small", children: tag }, tag)) }) : null,
|
|
36
31
|
entity.metadata.description
|
|
37
32
|
] }),
|
|
38
|
-
/* @__PURE__ */ jsx(
|
|
33
|
+
/* @__PURE__ */ jsx(CardFooter, { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsx(ButtonLink, { href: url, variant: "primary", children: "Explore" }) })
|
|
39
34
|
] });
|
|
40
35
|
};
|
|
41
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainCard.esm.js","sources":["../../../src/components/DomainCard/DomainCard.tsx"],"sourcesContent":["/*\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 { DomainEntity, RELATION_OWNED_BY } from '@backstage/catalog-model';\nimport {\n EntityRefLinks,\n entityRouteParams,\n getEntityRelations,\n entityRouteRef,\n} from '@backstage/plugin-catalog-react';\nimport
|
|
1
|
+
{"version":3,"file":"DomainCard.esm.js","sources":["../../../src/components/DomainCard/DomainCard.tsx"],"sourcesContent":["/*\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 { DomainEntity, RELATION_OWNED_BY } from '@backstage/catalog-model';\nimport {\n EntityRefLinks,\n entityRouteParams,\n getEntityRelations,\n entityRouteRef,\n} from '@backstage/plugin-catalog-react';\nimport {\n ButtonLink,\n Card,\n CardBody,\n CardFooter,\n CardHeader,\n Tag,\n TagGroup,\n} from '@backstage/ui';\n\nimport { ItemCardHeader } from '@backstage/core-components';\nimport { useRouteRef } from '@backstage/core-plugin-api';\n\n/** @public */\nexport const DomainCard = (props: { entity: DomainEntity }) => {\n const { entity } = props;\n\n const catalogEntityRoute = useRouteRef(entityRouteRef);\n const ownedByRelations = getEntityRelations(entity, RELATION_OWNED_BY);\n const url = catalogEntityRoute(entityRouteParams(entity));\n\n const owner = (\n <EntityRefLinks\n entityRefs={ownedByRelations}\n defaultKind=\"group\"\n color=\"inherit\"\n />\n );\n\n return (\n <Card>\n <CardHeader style={{ padding: 0 }}>\n <ItemCardHeader\n title={entity.metadata.title ?? entity.metadata.name}\n subtitle={owner}\n />\n </CardHeader>\n <CardBody style={{ overflow: 'visible' }}>\n {entity.metadata.tags?.length ? (\n <TagGroup style={{ marginBottom: 'var(--bui-space-2)' }}>\n {entity.metadata.tags.map(tag => (\n <Tag key={tag} size=\"small\">\n {tag}\n </Tag>\n ))}\n </TagGroup>\n ) : null}\n {entity.metadata.description}\n </CardBody>\n <CardFooter style={{ display: 'flex', justifyContent: 'flex-end' }}>\n <ButtonLink href={url} variant=\"primary\">\n Explore\n </ButtonLink>\n </CardFooter>\n </Card>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAqCO,MAAM,UAAA,GAAa,CAAC,KAAA,KAAoC;AAC7D,EAAA,MAAM,EAAE,QAAO,GAAI,KAAA;AAEnB,EAAA,MAAM,kBAAA,GAAqB,YAAY,cAAc,CAAA;AACrD,EAAA,MAAM,gBAAA,GAAmB,kBAAA,CAAmB,MAAA,EAAQ,iBAAiB,CAAA;AACrE,EAAA,MAAM,GAAA,GAAM,kBAAA,CAAmB,iBAAA,CAAkB,MAAM,CAAC,CAAA;AAExD,EAAA,MAAM,KAAA,mBACJ,GAAA;AAAA,IAAC,cAAA;AAAA,IAAA;AAAA,MACC,UAAA,EAAY,gBAAA;AAAA,MACZ,WAAA,EAAY,OAAA;AAAA,MACZ,KAAA,EAAM;AAAA;AAAA,GACR;AAGF,EAAA,4BACG,IAAA,EAAA,EACC,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,UAAA,EAAA,EAAW,KAAA,EAAO,EAAE,OAAA,EAAS,GAAE,EAC9B,QAAA,kBAAA,GAAA;AAAA,MAAC,cAAA;AAAA,MAAA;AAAA,QACC,KAAA,EAAO,MAAA,CAAO,QAAA,CAAS,KAAA,IAAS,OAAO,QAAA,CAAS,IAAA;AAAA,QAChD,QAAA,EAAU;AAAA;AAAA,KACZ,EACF,CAAA;AAAA,yBACC,QAAA,EAAA,EAAS,KAAA,EAAO,EAAE,QAAA,EAAU,WAAU,EACpC,QAAA,EAAA;AAAA,MAAA,MAAA,CAAO,QAAA,CAAS,MAAM,MAAA,mBACrB,GAAA,CAAC,YAAS,KAAA,EAAO,EAAE,YAAA,EAAc,oBAAA,EAAqB,EACnD,QAAA,EAAA,MAAA,CAAO,SAAS,IAAA,CAAK,GAAA,CAAI,CAAA,GAAA,qBACxB,GAAA,CAAC,GAAA,EAAA,EAAc,IAAA,EAAK,SACjB,QAAA,EAAA,GAAA,EAAA,EADO,GAEV,CACD,CAAA,EACH,CAAA,GACE,IAAA;AAAA,MACH,OAAO,QAAA,CAAS;AAAA,KAAA,EACnB,CAAA;AAAA,wBACC,UAAA,EAAA,EAAW,KAAA,EAAO,EAAE,OAAA,EAAS,QAAQ,cAAA,EAAgB,UAAA,EAAW,EAC/D,QAAA,kBAAA,GAAA,CAAC,cAAW,IAAA,EAAM,GAAA,EAAK,OAAA,EAAQ,SAAA,EAAU,qBAEzC,CAAA,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { catalogApiRef } from '@backstage/plugin-catalog-react';
|
|
3
|
-
import
|
|
3
|
+
import { ButtonLink } from '@backstage/ui';
|
|
4
4
|
import useAsync from 'react-use/esm/useAsync';
|
|
5
5
|
import { Content, ContentHeader, SupportButton, Progress, WarningPanel, EmptyState, ItemCardGrid } from '@backstage/core-components';
|
|
6
6
|
import { useApi } from '@backstage/core-plugin-api';
|
|
@@ -32,10 +32,9 @@ const Body = () => {
|
|
|
32
32
|
title: "No domains to display",
|
|
33
33
|
description: "You haven't added any domains yet.",
|
|
34
34
|
action: /* @__PURE__ */ jsx(
|
|
35
|
-
|
|
35
|
+
ButtonLink,
|
|
36
36
|
{
|
|
37
|
-
variant: "
|
|
38
|
-
color: "primary",
|
|
37
|
+
variant: "primary",
|
|
39
38
|
href: "https://backstage.io/docs/features/software-catalog/descriptor-format#kind-domain",
|
|
40
39
|
children: "Read more"
|
|
41
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainExplorerContent.esm.js","sources":["../../../src/components/DomainExplorerContent/DomainExplorerContent.tsx"],"sourcesContent":["/*\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 { DomainEntity } from '@backstage/catalog-model';\nimport { catalogApiRef } from '@backstage/plugin-catalog-react';\nimport
|
|
1
|
+
{"version":3,"file":"DomainExplorerContent.esm.js","sources":["../../../src/components/DomainExplorerContent/DomainExplorerContent.tsx"],"sourcesContent":["/*\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 { DomainEntity } from '@backstage/catalog-model';\nimport { catalogApiRef } from '@backstage/plugin-catalog-react';\nimport { ButtonLink } from '@backstage/ui';\nimport useAsync from 'react-use/esm/useAsync';\nimport {\n Content,\n ContentHeader,\n EmptyState,\n ItemCardGrid,\n Progress,\n SupportButton,\n WarningPanel,\n} from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\nimport { EntityCard } from '../EntityCard';\n\nconst Body = () => {\n const catalogApi = useApi(catalogApiRef);\n const {\n value: entities,\n loading,\n error,\n } = useAsync(async () => {\n const response = await catalogApi.getEntities({\n filter: { kind: 'domain' },\n });\n return response.items as DomainEntity[];\n }, [catalogApi]);\n\n if (loading) {\n return <Progress />;\n }\n\n if (error) {\n return (\n <WarningPanel severity=\"error\" title=\"Could not load domains.\">\n {error.message}\n </WarningPanel>\n );\n }\n\n if (!entities?.length) {\n return (\n <EmptyState\n missing=\"info\"\n title=\"No domains to display\"\n description=\"You haven't added any domains yet.\"\n action={\n <ButtonLink\n variant=\"primary\"\n href=\"https://backstage.io/docs/features/software-catalog/descriptor-format#kind-domain\"\n >\n Read more\n </ButtonLink>\n }\n />\n );\n }\n\n return (\n <ItemCardGrid>\n {entities.map((entity, index) => (\n <EntityCard key={index} entity={entity} />\n ))}\n </ItemCardGrid>\n );\n};\n\n/** @public */\nexport const DomainExplorerContent = (props: { title?: string }) => {\n return (\n <Content noPadding>\n <ContentHeader title={props.title ?? 'Domains'}>\n <SupportButton>Discover the domains in your ecosystem.</SupportButton>\n </ContentHeader>\n <Body />\n </Content>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AAgCA,MAAM,OAAO,MAAM;AACjB,EAAA,MAAM,UAAA,GAAa,OAAO,aAAa,CAAA;AACvC,EAAA,MAAM;AAAA,IACJ,KAAA,EAAO,QAAA;AAAA,IACP,OAAA;AAAA,IACA;AAAA,GACF,GAAI,SAAS,YAAY;AACvB,IAAA,MAAM,QAAA,GAAW,MAAM,UAAA,CAAW,WAAA,CAAY;AAAA,MAC5C,MAAA,EAAQ,EAAE,IAAA,EAAM,QAAA;AAAS,KAC1B,CAAA;AACD,IAAA,OAAO,QAAA,CAAS,KAAA;AAAA,EAClB,CAAA,EAAG,CAAC,UAAU,CAAC,CAAA;AAEf,EAAA,IAAI,OAAA,EAAS;AACX,IAAA,2BAAQ,QAAA,EAAA,EAAS,CAAA;AAAA,EACnB;AAEA,EAAA,IAAI,KAAA,EAAO;AACT,IAAA,2BACG,YAAA,EAAA,EAAa,QAAA,EAAS,SAAQ,KAAA,EAAM,yBAAA,EAClC,gBAAM,OAAA,EACT,CAAA;AAAA,EAEJ;AAEA,EAAA,IAAI,CAAC,UAAU,MAAA,EAAQ;AACrB,IAAA,uBACE,GAAA;AAAA,MAAC,UAAA;AAAA,MAAA;AAAA,QACC,OAAA,EAAQ,MAAA;AAAA,QACR,KAAA,EAAM,uBAAA;AAAA,QACN,WAAA,EAAY,oCAAA;AAAA,QACZ,MAAA,kBACE,GAAA;AAAA,UAAC,UAAA;AAAA,UAAA;AAAA,YACC,OAAA,EAAQ,SAAA;AAAA,YACR,IAAA,EAAK,mFAAA;AAAA,YACN,QAAA,EAAA;AAAA;AAAA;AAED;AAAA,KAEJ;AAAA,EAEJ;AAEA,EAAA,uBACE,GAAA,CAAC,YAAA,EAAA,EACE,QAAA,EAAA,QAAA,CAAS,GAAA,CAAI,CAAC,MAAA,EAAQ,KAAA,qBACrB,GAAA,CAAC,UAAA,EAAA,EAAuB,MAAA,EAAA,EAAP,KAAuB,CACzC,CAAA,EACH,CAAA;AAEJ,CAAA;AAGO,MAAM,qBAAA,GAAwB,CAAC,KAAA,KAA8B;AAClE,EAAA,uBACE,IAAA,CAAC,OAAA,EAAA,EAAQ,SAAA,EAAS,IAAA,EAChB,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,aAAA,EAAA,EAAc,OAAO,KAAA,CAAM,KAAA,IAAS,WACnC,QAAA,kBAAA,GAAA,CAAC,aAAA,EAAA,EAAc,qDAAuC,CAAA,EACxD,CAAA;AAAA,wBACC,IAAA,EAAA,EAAK;AAAA,GAAA,EACR,CAAA;AAEJ;;;;"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { RELATION_OWNED_BY } from '@backstage/catalog-model';
|
|
3
3
|
import { entityRouteRef, getEntityRelations, entityRouteParams, EntityRefLinks } from '@backstage/plugin-catalog-react';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import CardActions from '@material-ui/core/CardActions';
|
|
7
|
-
import CardContent from '@material-ui/core/CardContent';
|
|
8
|
-
import CardMedia from '@material-ui/core/CardMedia';
|
|
9
|
-
import Chip from '@material-ui/core/Chip';
|
|
10
|
-
import { ItemCardHeader, LinkButton } from '@backstage/core-components';
|
|
4
|
+
import { Card, CardHeader, CardBody, TagGroup, Tag, CardFooter, ButtonLink } from '@backstage/ui';
|
|
5
|
+
import { ItemCardHeader } from '@backstage/core-components';
|
|
11
6
|
import { useRouteRef } from '@backstage/core-plugin-api';
|
|
12
7
|
|
|
13
8
|
const EntityCard = (props) => {
|
|
@@ -24,18 +19,24 @@ const EntityCard = (props) => {
|
|
|
24
19
|
}
|
|
25
20
|
);
|
|
26
21
|
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
27
|
-
/* @__PURE__ */ jsx(
|
|
22
|
+
/* @__PURE__ */ jsx(CardHeader, { style: { padding: 0 }, children: /* @__PURE__ */ jsx(
|
|
28
23
|
ItemCardHeader,
|
|
29
24
|
{
|
|
30
25
|
title: entity.metadata.title ?? entity.metadata.name,
|
|
31
26
|
subtitle: owner
|
|
32
27
|
}
|
|
33
28
|
) }),
|
|
34
|
-
/* @__PURE__ */ jsxs(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
/* @__PURE__ */ jsxs(
|
|
30
|
+
CardBody,
|
|
31
|
+
{
|
|
32
|
+
style: { overflow: "visible", paddingTop: "var(--bui-space-3)" },
|
|
33
|
+
children: [
|
|
34
|
+
entity.metadata.tags?.length ? /* @__PURE__ */ jsx(TagGroup, { style: { marginBottom: "var(--bui-space-2)" }, children: entity.metadata.tags.map((tag) => /* @__PURE__ */ jsx(Tag, { size: "small", children: tag }, tag)) }) : null,
|
|
35
|
+
entity.metadata.description
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ jsx(CardFooter, { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsx(ButtonLink, { href: url, variant: "primary", children: "Explore" }) })
|
|
39
40
|
] });
|
|
40
41
|
};
|
|
41
42
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityCard.esm.js","sources":["../../../src/components/EntityCard/EntityCard.tsx"],"sourcesContent":["/*\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 { Entity, RELATION_OWNED_BY } from '@backstage/catalog-model';\nimport {\n EntityRefLinks,\n entityRouteParams,\n getEntityRelations,\n entityRouteRef,\n} from '@backstage/plugin-catalog-react';\nimport
|
|
1
|
+
{"version":3,"file":"EntityCard.esm.js","sources":["../../../src/components/EntityCard/EntityCard.tsx"],"sourcesContent":["/*\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 { Entity, RELATION_OWNED_BY } from '@backstage/catalog-model';\nimport {\n EntityRefLinks,\n entityRouteParams,\n getEntityRelations,\n entityRouteRef,\n} from '@backstage/plugin-catalog-react';\nimport {\n ButtonLink,\n Card,\n CardBody,\n CardFooter,\n CardHeader,\n Tag,\n TagGroup,\n} from '@backstage/ui';\n\nimport { ItemCardHeader } from '@backstage/core-components';\nimport { useRouteRef } from '@backstage/core-plugin-api';\n\n/** @public */\nexport const EntityCard = (props: { entity: Entity }) => {\n const { entity } = props;\n\n const catalogEntityRoute = useRouteRef(entityRouteRef);\n const ownedByRelations = getEntityRelations(entity, RELATION_OWNED_BY);\n const url = catalogEntityRoute(entityRouteParams(entity));\n\n const owner = (\n <EntityRefLinks\n entityRefs={ownedByRelations}\n defaultKind=\"group\"\n color=\"inherit\"\n />\n );\n\n return (\n <Card>\n <CardHeader style={{ padding: 0 }}>\n <ItemCardHeader\n title={entity.metadata.title ?? entity.metadata.name}\n subtitle={owner}\n />\n </CardHeader>\n <CardBody\n style={{ overflow: 'visible', paddingTop: 'var(--bui-space-3)' }}\n >\n {entity.metadata.tags?.length ? (\n <TagGroup style={{ marginBottom: 'var(--bui-space-2)' }}>\n {entity.metadata.tags.map(tag => (\n <Tag key={tag} size=\"small\">\n {tag}\n </Tag>\n ))}\n </TagGroup>\n ) : null}\n {entity.metadata.description}\n </CardBody>\n <CardFooter style={{ display: 'flex', justifyContent: 'flex-end' }}>\n <ButtonLink href={url} variant=\"primary\">\n Explore\n </ButtonLink>\n </CardFooter>\n </Card>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAqCO,MAAM,UAAA,GAAa,CAAC,KAAA,KAA8B;AACvD,EAAA,MAAM,EAAE,QAAO,GAAI,KAAA;AAEnB,EAAA,MAAM,kBAAA,GAAqB,YAAY,cAAc,CAAA;AACrD,EAAA,MAAM,gBAAA,GAAmB,kBAAA,CAAmB,MAAA,EAAQ,iBAAiB,CAAA;AACrE,EAAA,MAAM,GAAA,GAAM,kBAAA,CAAmB,iBAAA,CAAkB,MAAM,CAAC,CAAA;AAExD,EAAA,MAAM,KAAA,mBACJ,GAAA;AAAA,IAAC,cAAA;AAAA,IAAA;AAAA,MACC,UAAA,EAAY,gBAAA;AAAA,MACZ,WAAA,EAAY,OAAA;AAAA,MACZ,KAAA,EAAM;AAAA;AAAA,GACR;AAGF,EAAA,4BACG,IAAA,EAAA,EACC,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,UAAA,EAAA,EAAW,KAAA,EAAO,EAAE,OAAA,EAAS,GAAE,EAC9B,QAAA,kBAAA,GAAA;AAAA,MAAC,cAAA;AAAA,MAAA;AAAA,QACC,KAAA,EAAO,MAAA,CAAO,QAAA,CAAS,KAAA,IAAS,OAAO,QAAA,CAAS,IAAA;AAAA,QAChD,QAAA,EAAU;AAAA;AAAA,KACZ,EACF,CAAA;AAAA,oBACA,IAAA;AAAA,MAAC,QAAA;AAAA,MAAA;AAAA,QACC,KAAA,EAAO,EAAE,QAAA,EAAU,SAAA,EAAW,YAAY,oBAAA,EAAqB;AAAA,QAE9D,QAAA,EAAA;AAAA,UAAA,MAAA,CAAO,QAAA,CAAS,MAAM,MAAA,mBACrB,GAAA,CAAC,YAAS,KAAA,EAAO,EAAE,YAAA,EAAc,oBAAA,EAAqB,EACnD,QAAA,EAAA,MAAA,CAAO,SAAS,IAAA,CAAK,GAAA,CAAI,CAAA,GAAA,qBACxB,GAAA,CAAC,GAAA,EAAA,EAAc,IAAA,EAAK,SACjB,QAAA,EAAA,GAAA,EAAA,EADO,GAEV,CACD,CAAA,EACH,CAAA,GACE,IAAA;AAAA,UACH,OAAO,QAAA,CAAS;AAAA;AAAA;AAAA,KACnB;AAAA,wBACC,UAAA,EAAA,EAAW,KAAA,EAAO,EAAE,OAAA,EAAS,QAAQ,cAAA,EAAgB,UAAA,EAAW,EAC/D,QAAA,kBAAA,GAAA,CAAC,cAAW,IAAA,EAAM,GAAA,EAAK,OAAA,EAAQ,SAAA,EAAU,qBAEzC,CAAA,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { attachComponentData, useRouteRef, useElementFilter } from '@backstage/core-plugin-api';
|
|
3
|
+
import { PluginHeader, FullPage } from '@backstage/ui';
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
import { useRoutes } from 'react-router-dom';
|
|
6
|
+
import { exploreRouteRef } from '../../routes.esm.js';
|
|
4
7
|
|
|
5
8
|
const dataKey = "plugin.explore.exploreLayoutRoute";
|
|
6
|
-
const
|
|
7
|
-
attachComponentData(
|
|
8
|
-
attachComponentData(
|
|
9
|
+
const RouteData = () => null;
|
|
10
|
+
attachComponentData(RouteData, dataKey, true);
|
|
11
|
+
attachComponentData(RouteData, "core.gatherMountPoints", true);
|
|
12
|
+
const stripLeadingSlash = (path) => path.replace(/^\/+/, "");
|
|
13
|
+
const joinPaths = (base, sub) => {
|
|
14
|
+
const trimmedBase = base.replace(/\/+$/, "");
|
|
15
|
+
const trimmedSub = stripLeadingSlash(sub);
|
|
16
|
+
return trimmedSub ? `${trimmedBase}/${trimmedSub}` : trimmedBase;
|
|
17
|
+
};
|
|
9
18
|
const ExploreLayout = (props) => {
|
|
10
|
-
const { title,
|
|
19
|
+
const { title, children } = props;
|
|
20
|
+
const exploreRoutePath = useRouteRef(exploreRouteRef);
|
|
11
21
|
const routes = useElementFilter(
|
|
12
22
|
children,
|
|
13
23
|
(elements) => elements.selectByComponentData({
|
|
@@ -15,18 +25,36 @@ const ExploreLayout = (props) => {
|
|
|
15
25
|
withStrictError: "Child of ExploreLayout must be an ExploreLayout.Route"
|
|
16
26
|
}).getElements().map((child) => child.props)
|
|
17
27
|
);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
const basePath = exploreRoutePath ? exploreRoutePath() : "";
|
|
29
|
+
const tabs = useMemo(
|
|
30
|
+
() => routes.map((route) => ({
|
|
31
|
+
id: route.path,
|
|
32
|
+
label: route.title,
|
|
33
|
+
href: joinPaths(basePath, route.path),
|
|
34
|
+
matchStrategy: "prefix"
|
|
35
|
+
})),
|
|
36
|
+
[routes, basePath]
|
|
37
|
+
);
|
|
38
|
+
const element = useRoutes(
|
|
39
|
+
routes.map((route) => ({
|
|
40
|
+
path: `${stripLeadingSlash(route.path)}/*`,
|
|
41
|
+
element: route.children
|
|
42
|
+
}))
|
|
43
|
+
);
|
|
44
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45
|
+
/* @__PURE__ */ jsx(PluginHeader, { title: title ?? "Explore our ecosystem", tabs }),
|
|
46
|
+
/* @__PURE__ */ jsx(FullPage, { children: /* @__PURE__ */ jsx(
|
|
47
|
+
"div",
|
|
21
48
|
{
|
|
22
|
-
|
|
23
|
-
|
|
49
|
+
style: {
|
|
50
|
+
padding: "var(--bui-space-6)"
|
|
51
|
+
},
|
|
52
|
+
children: element ?? routes[0]?.children ?? null
|
|
24
53
|
}
|
|
25
|
-
)
|
|
26
|
-
/* @__PURE__ */ jsx(RoutedTabs, { routes })
|
|
54
|
+
) })
|
|
27
55
|
] });
|
|
28
56
|
};
|
|
29
|
-
ExploreLayout.Route =
|
|
57
|
+
ExploreLayout.Route = RouteData;
|
|
30
58
|
|
|
31
59
|
export { ExploreLayout };
|
|
32
60
|
//# sourceMappingURL=ExploreLayout.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExploreLayout.esm.js","sources":["../../../src/components/ExploreLayout/ExploreLayout.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 {
|
|
1
|
+
{"version":3,"file":"ExploreLayout.esm.js","sources":["../../../src/components/ExploreLayout/ExploreLayout.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 {\n attachComponentData,\n useElementFilter,\n useRouteRef,\n} from '@backstage/core-plugin-api';\nimport { FullPage, HeaderTab, PluginHeader } from '@backstage/ui';\nimport React, { useMemo } from 'react';\nimport { useRoutes } from 'react-router-dom';\nimport { exploreRouteRef } from '../../routes';\n\n// TODO: This layout could be a shared based component if it was possible to create custom TabbedLayouts\n// A generalized version of createSubRoutesFromChildren, etc. would be required\n/** @public */\nexport type SubRoute = {\n path: string;\n title: string;\n children: JSX.Element;\n /**\n * @deprecated The Backstage UI `PluginHeader` does not forward extra MUI tab\n * props. This field is kept for backwards compatibility but is no longer\n * used.\n */\n tabProps?: Record<string, unknown>;\n};\n\nconst dataKey = 'plugin.explore.exploreLayoutRoute';\n\nconst RouteData: (props: SubRoute) => null = () => null;\nattachComponentData(RouteData, dataKey, true);\n\n// This causes all mount points that are discovered within this route to use the path of the route itself\nattachComponentData(RouteData, 'core.gatherMountPoints', true);\n\n/** @public */\nexport type ExploreLayoutProps = {\n title?: string;\n /**\n * @deprecated The Backstage UI `PluginHeader` does not render a subtitle.\n * This prop is kept for backwards compatibility but is no longer displayed.\n */\n subtitle?: string;\n children?: React.ReactNode;\n};\n\nconst stripLeadingSlash = (path: string) => path.replace(/^\\/+/, '');\n\nconst joinPaths = (base: string, sub: string) => {\n const trimmedBase = base.replace(/\\/+$/, '');\n const trimmedSub = stripLeadingSlash(sub);\n return trimmedSub ? `${trimmedBase}/${trimmedSub}` : trimmedBase;\n};\n\n/**\n * Explore is a compound component, which allows you to define a custom layout\n *\n * @example\n * ```jsx\n * <ExploreLayout title=\"Explore ACME's ecosystem\">\n * <ExploreLayout.Route path=\"/example\" title=\"Example tab\">\n * <div>This is rendered under /example/anything-here route</div>\n * </ExploreLayout.Route>\n * </ExploreLayout>\n * ```\n *\n * @public\n */\nexport const ExploreLayout = (props: ExploreLayoutProps) => {\n const { title, children } = props;\n\n const exploreRoutePath = useRouteRef(exploreRouteRef);\n\n const routes = useElementFilter(children, elements =>\n elements\n .selectByComponentData({\n key: dataKey,\n withStrictError:\n 'Child of ExploreLayout must be an ExploreLayout.Route',\n })\n .getElements<SubRoute>()\n .map(child => child.props),\n );\n\n const basePath = exploreRoutePath ? exploreRoutePath() : '';\n\n const tabs = useMemo<HeaderTab[]>(\n () =>\n routes.map(route => ({\n id: route.path,\n label: route.title,\n href: joinPaths(basePath, route.path),\n matchStrategy: 'prefix',\n })),\n [routes, basePath],\n );\n\n // Render the matching sub-route's content inline, falling back to the first\n // tab's content if no sub-path is present (matching the legacy RoutedTabs\n // behavior). We intentionally don't redirect, so the layout still works when\n // it is mounted at the root path.\n const element = useRoutes(\n routes.map(route => ({\n path: `${stripLeadingSlash(route.path)}/*`,\n element: route.children,\n })),\n );\n\n return (\n <>\n <PluginHeader title={title ?? 'Explore our ecosystem'} tabs={tabs} />\n <FullPage>\n <div\n style={{\n padding: 'var(--bui-space-6)',\n }}\n >\n {element ?? routes[0]?.children ?? null}\n </div>\n </FullPage>\n </>\n );\n};\n\nExploreLayout.Route = RouteData;\n"],"names":[],"mappings":";;;;;;;AAyCA,MAAM,OAAA,GAAU,mCAAA;AAEhB,MAAM,YAAuC,MAAM,IAAA;AACnD,mBAAA,CAAoB,SAAA,EAAW,SAAS,IAAI,CAAA;AAG5C,mBAAA,CAAoB,SAAA,EAAW,0BAA0B,IAAI,CAAA;AAa7D,MAAM,oBAAoB,CAAC,IAAA,KAAiB,IAAA,CAAK,OAAA,CAAQ,QAAQ,EAAE,CAAA;AAEnE,MAAM,SAAA,GAAY,CAAC,IAAA,EAAc,GAAA,KAAgB;AAC/C,EAAA,MAAM,WAAA,GAAc,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,EAAE,CAAA;AAC3C,EAAA,MAAM,UAAA,GAAa,kBAAkB,GAAG,CAAA;AACxC,EAAA,OAAO,UAAA,GAAa,CAAA,EAAG,WAAW,CAAA,CAAA,EAAI,UAAU,CAAA,CAAA,GAAK,WAAA;AACvD,CAAA;AAgBO,MAAM,aAAA,GAAgB,CAAC,KAAA,KAA8B;AAC1D,EAAA,MAAM,EAAE,KAAA,EAAO,QAAA,EAAS,GAAI,KAAA;AAE5B,EAAA,MAAM,gBAAA,GAAmB,YAAY,eAAe,CAAA;AAEpD,EAAA,MAAM,MAAA,GAAS,gBAAA;AAAA,IAAiB,QAAA;AAAA,IAAU,CAAA,QAAA,KACxC,SACG,qBAAA,CAAsB;AAAA,MACrB,GAAA,EAAK,OAAA;AAAA,MACL,eAAA,EACE;AAAA,KACH,CAAA,CACA,WAAA,GACA,GAAA,CAAI,CAAA,KAAA,KAAS,MAAM,KAAK;AAAA,GAC7B;AAEA,EAAA,MAAM,QAAA,GAAW,gBAAA,GAAmB,gBAAA,EAAiB,GAAI,EAAA;AAEzD,EAAA,MAAM,IAAA,GAAO,OAAA;AAAA,IACX,MACE,MAAA,CAAO,GAAA,CAAI,CAAA,KAAA,MAAU;AAAA,MACnB,IAAI,KAAA,CAAM,IAAA;AAAA,MACV,OAAO,KAAA,CAAM,KAAA;AAAA,MACb,IAAA,EAAM,SAAA,CAAU,QAAA,EAAU,KAAA,CAAM,IAAI,CAAA;AAAA,MACpC,aAAA,EAAe;AAAA,KACjB,CAAE,CAAA;AAAA,IACJ,CAAC,QAAQ,QAAQ;AAAA,GACnB;AAMA,EAAA,MAAM,OAAA,GAAU,SAAA;AAAA,IACd,MAAA,CAAO,IAAI,CAAA,KAAA,MAAU;AAAA,MACnB,IAAA,EAAM,CAAA,EAAG,iBAAA,CAAkB,KAAA,CAAM,IAAI,CAAC,CAAA,EAAA,CAAA;AAAA,MACtC,SAAS,KAAA,CAAM;AAAA,KACjB,CAAE;AAAA,GACJ;AAEA,EAAA,uBACE,IAAA,CAAA,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,YAAA,EAAA,EAAa,KAAA,EAAO,KAAA,IAAS,uBAAA,EAAyB,IAAA,EAAY,CAAA;AAAA,wBAClE,QAAA,EAAA,EACC,QAAA,kBAAA,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,KAAA,EAAO;AAAA,UACL,OAAA,EAAS;AAAA,SACX;AAAA,QAEC,QAAA,EAAA,OAAA,IAAW,MAAA,CAAO,CAAC,CAAA,EAAG,QAAA,IAAY;AAAA;AAAA,KACrC,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;AAEA,aAAA,CAAc,KAAA,GAAQ,SAAA;;;;"}
|