@finos/legend-application-marketplace 0.0.11 → 0.0.13
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/lib/__lib__/LegendMarketplaceNavigation.d.ts +16 -0
- package/lib/__lib__/LegendMarketplaceNavigation.d.ts.map +1 -1
- package/lib/__lib__/LegendMarketplaceNavigation.js +29 -0
- package/lib/__lib__/LegendMarketplaceNavigation.js.map +1 -1
- package/lib/app.css +17 -0
- package/lib/app.css.map +1 -0
- package/lib/application/LegendMarketplace.d.ts.map +1 -1
- package/lib/application/LegendMarketplace.js +5 -4
- package/lib/application/LegendMarketplace.js.map +1 -1
- package/lib/application/LegendMarketplaceApplicationConfig.d.ts +8 -11
- package/lib/application/LegendMarketplaceApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendMarketplaceApplicationConfig.js +14 -21
- package/lib/application/LegendMarketplaceApplicationConfig.js.map +1 -1
- package/lib/application/LegendMarketplaceFrameworkProvider.d.ts.map +1 -0
- package/lib/{components → application}/LegendMarketplaceFrameworkProvider.js +1 -1
- package/lib/application/LegendMarketplaceFrameworkProvider.js.map +1 -0
- package/lib/application/LegendMarketplaceWebApplication.d.ts.map +1 -0
- package/lib/{components → application}/LegendMarketplaceWebApplication.js +5 -3
- package/lib/application/LegendMarketplaceWebApplication.js.map +1 -0
- package/lib/application/__test-utils__/LegendMarketplaceApplicationTestUtils.d.ts.map +1 -1
- package/lib/application/__test-utils__/LegendMarketplaceApplicationTestUtils.js +3 -7
- package/lib/application/__test-utils__/LegendMarketplaceApplicationTestUtils.js.map +1 -1
- package/lib/application/extensions/Core_LegendMarketplaceApplicationPlugin.d.ts.map +1 -0
- package/lib/application/extensions/Core_LegendMarketplaceApplicationPlugin.js.map +1 -0
- package/lib/application/extensions/Core_LegendMarketplace_LegendApplicationPlugin.d.ts +25 -0
- package/lib/application/extensions/Core_LegendMarketplace_LegendApplicationPlugin.d.ts.map +1 -0
- package/lib/application/extensions/Core_LegendMarketplace_LegendApplicationPlugin.js +28 -0
- package/lib/application/extensions/Core_LegendMarketplace_LegendApplicationPlugin.js.map +1 -0
- package/lib/components/{header → Header}/LegendMarketplaceAppInfo.d.ts.map +1 -1
- package/lib/components/{header → Header}/LegendMarketplaceAppInfo.js +2 -4
- package/lib/components/Header/LegendMarketplaceAppInfo.js.map +1 -0
- package/lib/components/Header/LegendMarketplaceHeader.d.ts.map +1 -0
- package/lib/components/{header → Header}/LegendMarketplaceHeader.js +8 -2
- package/lib/components/Header/LegendMarketplaceHeader.js.map +1 -0
- package/lib/components/Lakehouse/LakehouseMarketplace.d.ts +17 -0
- package/lib/components/Lakehouse/LakehouseMarketplace.d.ts.map +1 -0
- package/lib/components/Lakehouse/LakehouseMarketplace.js +56 -0
- package/lib/components/Lakehouse/LakehouseMarketplace.js.map +1 -0
- package/lib/components/Lakehouse/MarketLakehouseStoreProvider.d.ts +22 -0
- package/lib/components/Lakehouse/MarketLakehouseStoreProvider.d.ts.map +1 -0
- package/lib/components/Lakehouse/MarketLakehouseStoreProvider.js +34 -0
- package/lib/components/Lakehouse/MarketLakehouseStoreProvider.js.map +1 -0
- package/lib/components/ProductSearchResultCard/LegendMarketplaceProductSearchCard.d.ts +23 -0
- package/lib/components/ProductSearchResultCard/LegendMarketplaceProductSearchCard.d.ts.map +1 -0
- package/lib/components/ProductSearchResultCard/LegendMarketplaceProductSearchCard.js +33 -0
- package/lib/components/ProductSearchResultCard/LegendMarketplaceProductSearchCard.js.map +1 -0
- package/lib/components/SearchBar/LegendMarketplaceSearchBar.d.ts +26 -0
- package/lib/components/SearchBar/LegendMarketplaceSearchBar.d.ts.map +1 -0
- package/lib/components/SearchBar/LegendMarketplaceSearchBar.js +41 -0
- package/lib/components/SearchBar/LegendMarketplaceSearchBar.js.map +1 -0
- package/lib/components/VendorCard/LegendMarketplaceVendorCard.d.ts +22 -0
- package/lib/components/VendorCard/LegendMarketplaceVendorCard.d.ts.map +1 -0
- package/lib/components/VendorCard/LegendMarketplaceVendorCard.js +27 -0
- package/lib/components/VendorCard/LegendMarketplaceVendorCard.js.map +1 -0
- package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.d.ts +1 -1
- package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.js +11 -8
- package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.js.map +1 -1
- package/lib/components/__test-utils__/TEST_DATA__SearchResults.json +745 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +5 -1
- package/lib/pages/Home/LegendMarketplaceHome.d.ts.map +1 -0
- package/lib/pages/Home/LegendMarketplaceHome.js +73 -0
- package/lib/pages/Home/LegendMarketplaceHome.js.map +1 -0
- package/lib/pages/SearchResults/LegendMarketplaceSearchResultDrawerContent.d.ts +20 -0
- package/lib/pages/SearchResults/LegendMarketplaceSearchResultDrawerContent.d.ts.map +1 -0
- package/lib/pages/SearchResults/LegendMarketplaceSearchResultDrawerContent.js +52 -0
- package/lib/pages/SearchResults/LegendMarketplaceSearchResultDrawerContent.js.map +1 -0
- package/lib/pages/SearchResults/LegendMarketplaceSearchResults.d.ts +19 -0
- package/lib/pages/SearchResults/LegendMarketplaceSearchResults.d.ts.map +1 -0
- package/lib/pages/SearchResults/LegendMarketplaceSearchResults.js +75 -0
- package/lib/pages/SearchResults/LegendMarketplaceSearchResults.js.map +1 -0
- package/lib/stores/LegendMarketplaceBaseStore.d.ts +4 -0
- package/lib/stores/LegendMarketplaceBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendMarketplaceBaseStore.js +15 -0
- package/lib/stores/LegendMarketplaceBaseStore.js.map +1 -1
- package/lib/stores/MarketplaceLakehouseServerClient.d.ts +23 -0
- package/lib/stores/MarketplaceLakehouseServerClient.d.ts.map +1 -0
- package/lib/stores/MarketplaceLakehouseServerClient.js +24 -0
- package/lib/stores/MarketplaceLakehouseServerClient.js.map +1 -0
- package/lib/stores/lakehouse/MarketplaceLakehouseStore.d.ts +55 -0
- package/lib/stores/lakehouse/MarketplaceLakehouseStore.d.ts.map +1 -0
- package/lib/stores/lakehouse/MarketplaceLakehouseStore.js +109 -0
- package/lib/stores/lakehouse/MarketplaceLakehouseStore.js.map +1 -0
- package/package.json +10 -6
- package/src/__lib__/LegendMarketplaceNavigation.ts +53 -0
- package/src/application/LegendMarketplace.tsx +4 -4
- package/src/application/LegendMarketplaceApplicationConfig.ts +39 -30
- package/src/{components → application}/LegendMarketplaceFrameworkProvider.tsx +1 -1
- package/src/{components → application}/LegendMarketplaceWebApplication.tsx +12 -2
- package/src/application/__test-utils__/LegendMarketplaceApplicationTestUtils.ts +3 -7
- package/src/application/extensions/Core_LegendMarketplace_LegendApplicationPlugin.ts +38 -0
- package/src/components/{header → Header}/LegendMarketplaceAppInfo.tsx +1 -27
- package/src/components/{header → Header}/LegendMarketplaceHeader.tsx +17 -2
- package/src/components/Lakehouse/LakehouseMarketplace.tsx +133 -0
- package/src/components/Lakehouse/MarketLakehouseStoreProvider.tsx +69 -0
- package/src/components/ProductSearchResultCard/LegendMarketplaceProductSearchCard.tsx +81 -0
- package/src/components/SearchBar/LegendMarketplaceSearchBar.tsx +74 -0
- package/src/components/VendorCard/LegendMarketplaceVendorCard.tsx +58 -0
- package/src/components/__test-utils__/LegendMarketplaceStoreTestUtils.tsx +18 -6
- package/src/components/__test-utils__/TEST_DATA__SearchResults.json +745 -0
- package/src/index.ts +1 -1
- package/src/pages/Home/LegendMarketplaceHome.tsx +137 -0
- package/src/pages/SearchResults/LegendMarketplaceSearchResultDrawerContent.tsx +127 -0
- package/src/pages/SearchResults/LegendMarketplaceSearchResults.tsx +157 -0
- package/src/stores/LegendMarketplaceBaseStore.ts +18 -0
- package/src/stores/MarketplaceLakehouseServerClient.ts +29 -0
- package/src/stores/lakehouse/MarketplaceLakehouseStore.ts +164 -0
- package/tsconfig.json +17 -6
- package/lib/components/LegendMarketplaceFrameworkProvider.d.ts.map +0 -1
- package/lib/components/LegendMarketplaceFrameworkProvider.js.map +0 -1
- package/lib/components/LegendMarketplaceWebApplication.d.ts.map +0 -1
- package/lib/components/LegendMarketplaceWebApplication.js.map +0 -1
- package/lib/components/extensions/Core_LegendMarketplaceApplicationPlugin.d.ts.map +0 -1
- package/lib/components/extensions/Core_LegendMarketplaceApplicationPlugin.js.map +0 -1
- package/lib/components/header/LegendMarketplaceAppInfo.js.map +0 -1
- package/lib/components/header/LegendMarketplaceHeader.d.ts.map +0 -1
- package/lib/components/header/LegendMarketplaceHeader.js.map +0 -1
- package/lib/components/home/LegendMarketplaceHome.d.ts.map +0 -1
- package/lib/components/home/LegendMarketplaceHome.js +0 -22
- package/lib/components/home/LegendMarketplaceHome.js.map +0 -1
- package/src/components/home/LegendMarketplaceHome.tsx +0 -41
- /package/lib/{components → application}/LegendMarketplaceFrameworkProvider.d.ts +0 -0
- /package/lib/{components → application}/LegendMarketplaceWebApplication.d.ts +0 -0
- /package/lib/{components → application}/extensions/Core_LegendMarketplaceApplicationPlugin.d.ts +0 -0
- /package/lib/{components → application}/extensions/Core_LegendMarketplaceApplicationPlugin.js +0 -0
- /package/lib/components/{header → Header}/LegendMarketplaceAppInfo.d.ts +0 -0
- /package/lib/components/{header → Header}/LegendMarketplaceHeader.d.ts +0 -0
- /package/lib/{components/home → pages/Home}/LegendMarketplaceHome.d.ts +0 -0
- /package/src/{components → application}/extensions/Core_LegendMarketplaceApplicationPlugin.tsx +0 -0
|
@@ -13,7 +13,23 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
export declare enum LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN {
|
|
17
|
+
VENDOR_NAME = "vendorName"
|
|
18
|
+
}
|
|
19
|
+
export declare enum LEGEND_MARKETPLACE_SEARCH_RESULTS_QUERY_PARAM_TOKEN {
|
|
20
|
+
PROVIDER = "provider",
|
|
21
|
+
QUERY = "query"
|
|
22
|
+
}
|
|
16
23
|
export declare const LEGEND_MARKETPLACE_ROUTE_PATTERN: Readonly<{
|
|
17
24
|
DEFAULT: "/";
|
|
25
|
+
SEARCH_RESULTS: "/results";
|
|
26
|
+
VENDOR_DETAILS: "/vendor/:vendorName";
|
|
27
|
+
LAKEHOUSE: "/lakehouse";
|
|
18
28
|
}>;
|
|
29
|
+
export declare const generateSearchResultsRoute: (provider: string | undefined, query: string | undefined) => string;
|
|
30
|
+
export declare const generateVendorDetailsRoute: (vendorName: string) => string;
|
|
31
|
+
/**
|
|
32
|
+
* @external_application_navigation This depends on Legend Studio routing and is hardcoded so it's potentially brittle
|
|
33
|
+
*/
|
|
34
|
+
export declare const EXTERNAL_APPLICATION_NAVIGATION__generateStudioSDLCProjectViewUrl: (studioApplicationUrl: string, projectId: string, versionId: string | undefined, entityPath: string | undefined) => string;
|
|
19
35
|
//# sourceMappingURL=LegendMarketplaceNavigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendMarketplaceNavigation.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendMarketplaceNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceNavigation.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendMarketplaceNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,oBAAY,sCAAsC;IAChD,WAAW,eAAe;CAC3B;AAED,oBAAY,mDAAmD;IAC7D,QAAQ,aAAa;IACrB,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,gCAAgC;;;;;EAK3C,CAAC;AAEH,eAAO,MAAM,0BAA0B,GACrC,UAAU,MAAM,GAAG,SAAS,EAC5B,OAAO,MAAM,GAAG,SAAS,KACxB,MAWA,CAAC;AAEJ,eAAO,MAAM,0BAA0B,GAAI,YAAY,MAAM,KAAG,MAG5D,CAAC;AAEL;;GAEG;AACH,eAAO,MAAM,iEAAiE,GAE1E,sBAAsB,MAAM,EAC5B,WAAW,MAAM,EACjB,WAAW,MAAM,GAAG,SAAS,EAC7B,YAAY,MAAM,GAAG,SAAS,KAC7B,MAG6C,CAAC"}
|
|
@@ -13,7 +13,36 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { generatePath } from '@finos/legend-application/browser';
|
|
17
|
+
import { addQueryParametersToUrl, stringifyQueryParams, } from '@finos/legend-shared';
|
|
18
|
+
export var LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN;
|
|
19
|
+
(function (LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN) {
|
|
20
|
+
LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN["VENDOR_NAME"] = "vendorName";
|
|
21
|
+
})(LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN || (LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN = {}));
|
|
22
|
+
export var LEGEND_MARKETPLACE_SEARCH_RESULTS_QUERY_PARAM_TOKEN;
|
|
23
|
+
(function (LEGEND_MARKETPLACE_SEARCH_RESULTS_QUERY_PARAM_TOKEN) {
|
|
24
|
+
LEGEND_MARKETPLACE_SEARCH_RESULTS_QUERY_PARAM_TOKEN["PROVIDER"] = "provider";
|
|
25
|
+
LEGEND_MARKETPLACE_SEARCH_RESULTS_QUERY_PARAM_TOKEN["QUERY"] = "query";
|
|
26
|
+
})(LEGEND_MARKETPLACE_SEARCH_RESULTS_QUERY_PARAM_TOKEN || (LEGEND_MARKETPLACE_SEARCH_RESULTS_QUERY_PARAM_TOKEN = {}));
|
|
16
27
|
export const LEGEND_MARKETPLACE_ROUTE_PATTERN = Object.freeze({
|
|
17
28
|
DEFAULT: '/',
|
|
29
|
+
SEARCH_RESULTS: '/results',
|
|
30
|
+
VENDOR_DETAILS: `/vendor/:${LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN.VENDOR_NAME}`,
|
|
31
|
+
LAKEHOUSE: '/lakehouse',
|
|
18
32
|
});
|
|
33
|
+
export const generateSearchResultsRoute = (provider, query) => addQueryParametersToUrl(LEGEND_MARKETPLACE_ROUTE_PATTERN.SEARCH_RESULTS, stringifyQueryParams({
|
|
34
|
+
[LEGEND_MARKETPLACE_SEARCH_RESULTS_QUERY_PARAM_TOKEN.PROVIDER]: provider
|
|
35
|
+
? provider
|
|
36
|
+
: undefined,
|
|
37
|
+
[LEGEND_MARKETPLACE_SEARCH_RESULTS_QUERY_PARAM_TOKEN.QUERY]: query
|
|
38
|
+
? query
|
|
39
|
+
: undefined,
|
|
40
|
+
}));
|
|
41
|
+
export const generateVendorDetailsRoute = (vendorName) => generatePath(LEGEND_MARKETPLACE_ROUTE_PATTERN.VENDOR_DETAILS, {
|
|
42
|
+
vendorName,
|
|
43
|
+
});
|
|
44
|
+
/**
|
|
45
|
+
* @external_application_navigation This depends on Legend Studio routing and is hardcoded so it's potentially brittle
|
|
46
|
+
*/
|
|
47
|
+
export const EXTERNAL_APPLICATION_NAVIGATION__generateStudioSDLCProjectViewUrl = (studioApplicationUrl, projectId, versionId, entityPath) => `${studioApplicationUrl}/view/${projectId}${versionId ? `/version/${versionId}` : ''}${entityPath ? `/entity/${entityPath}` : ''}`;
|
|
19
48
|
//# sourceMappingURL=LegendMarketplaceNavigation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendMarketplaceNavigation.js","sourceRoot":"","sources":["../../src/__lib__/LegendMarketplaceNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5D,OAAO,EAAE,GAAG;
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceNav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ACE,oBAA4B,EAC5B,SAAiB,EACjB,SAA6B,EAC7B,UAA8B,EACtB,EAAE,CACV,GAAG,oBAAoB,SAAS,SAAS,GACvC,SAAS,CAAC,CAAC,CAAC,YAAY,SAAS,EAAE,CAAC,CAAC,CAAC,EACxC,GAAG,UAAU,CAAC,CAAC,CAAC,WAAW,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC"}
|
package/lib/app.css
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @license @finos/legend-application-marketplace v0.0.13
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
.app{height:100%;background:var(--color-white)}.app__page{height:100%;background:var(--color-white)}/*# sourceMappingURL=app.css.map */
|
package/lib/app.css.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../style/app.scss"],"names":[],"mappings":"AAkBA,KACE,YACA,8BAEA,WACE,YACA","file":"app.css"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendMarketplace.d.ts","sourceRoot":"","sources":["../../src/application/LegendMarketplace.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,
|
|
1
|
+
{"version":3,"file":"LegendMarketplace.d.ts","sourceRoot":"","sources":["../../src/application/LegendMarketplace.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EAGxC,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,6CAA6C,EAClD,kCAAkC,EACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAIjG,qBAAa,iBAAkB,SAAQ,iBAAiB;IAC9C,MAAM,EAAE,kCAAkC,CAAC;IAC3C,aAAa,EAAE,8BAA8B,CAAC;IAEtD,MAAM,CAAC,MAAM,IAAI,iBAAiB;IAW5B,oBAAoB,CACxB,KAAK,EAAE,mCAAmC,CAAC,6CAA6C,CAAC,GACxF,OAAO,CAAC,uBAAuB,CAAC;IAI7B,eAAe,CACnB,gBAAgB,EAAE,iCAAiC,GAClD,OAAO,CAAC,IAAI,CAAC;CAOjB"}
|
|
@@ -15,16 +15,17 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { createRoot } from 'react-dom/client';
|
|
18
|
-
import { ApplicationStoreProvider,
|
|
18
|
+
import { ApplicationStoreProvider, getApplicationRootElement, LegendApplication, } from '@finos/legend-application';
|
|
19
19
|
import { LegendMarketplaceApplicationConfig, } from './LegendMarketplaceApplicationConfig.js';
|
|
20
20
|
import { LegendMarketplacePluginManager } from './LegendMarketplacePluginManager.js';
|
|
21
|
-
import { Core_LegendMarketplaceApplicationPlugin } from '
|
|
22
|
-
import { LegendMarketplaceWebApplication } from '
|
|
21
|
+
import { Core_LegendMarketplaceApplicationPlugin } from './extensions/Core_LegendMarketplaceApplicationPlugin.js';
|
|
22
|
+
import { LegendMarketplaceWebApplication } from './LegendMarketplaceWebApplication.js';
|
|
23
|
+
import { Core_LegendMarketplace_LegendApplicationPlugin } from './extensions/Core_LegendMarketplace_LegendApplicationPlugin.js';
|
|
23
24
|
export class LegendMarketplace extends LegendApplication {
|
|
24
25
|
static create() {
|
|
25
26
|
const application = new LegendMarketplace(LegendMarketplacePluginManager.create());
|
|
26
27
|
application.withBasePlugins([
|
|
27
|
-
new
|
|
28
|
+
new Core_LegendMarketplace_LegendApplicationPlugin(),
|
|
28
29
|
new Core_LegendMarketplaceApplicationPlugin(),
|
|
29
30
|
]);
|
|
30
31
|
return application;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendMarketplace.js","sourceRoot":"","sources":["../../src/application/LegendMarketplace.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAGL,wBAAwB,EACxB,
|
|
1
|
+
{"version":3,"file":"LegendMarketplace.js","sourceRoot":"","sources":["../../src/application/LegendMarketplace.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAGL,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,kCAAkC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,uCAAuC,EAAE,MAAM,yDAAyD,CAAC;AAElH,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,8CAA8C,EAAE,MAAM,gEAAgE,CAAC;AAEhI,MAAM,OAAO,iBAAkB,SAAQ,iBAAiB;IAItD,MAAM,CAAC,MAAM;QACX,MAAM,WAAW,GAAG,IAAI,iBAAiB,CACvC,8BAA8B,CAAC,MAAM,EAAE,CACxC,CAAC;QACF,WAAW,CAAC,eAAe,CAAC;YAC1B,IAAI,8CAA8C,EAAE;YACpD,IAAI,uCAAuC,EAAE;SAC9C,CAAC,CAAC;QACH,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,KAAyF;QAEzF,OAAO,IAAI,kCAAkC,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,gBAAmD;QAEnD,UAAU,CAAC,yBAAyB,EAAE,CAAC,CAAC,MAAM,CAC5C,KAAC,wBAAwB,IAAC,KAAK,EAAE,gBAAgB,YAC/C,KAAC,+BAA+B,IAAC,OAAO,EAAE,IAAI,CAAC,WAAW,GAAI,GACrC,CAC5B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -16,36 +16,33 @@
|
|
|
16
16
|
import { type PlainObject } from '@finos/legend-shared';
|
|
17
17
|
import { type LegendApplicationConfigurationData, type LegendApplicationConfigurationInput, LegendApplicationConfig } from '@finos/legend-application';
|
|
18
18
|
declare class LegendMarketplaceApplicationCoreOptions {
|
|
19
|
-
/**
|
|
20
|
-
* This flag is for any feature that is not production ready.
|
|
21
|
-
* Used to iterate over features until they are ready for production.
|
|
22
|
-
*/
|
|
23
|
-
NonProductionFeatureFlag: boolean;
|
|
24
19
|
private static readonly serialization;
|
|
25
20
|
static create(configData: PlainObject<LegendMarketplaceApplicationCoreOptions>): LegendMarketplaceApplicationCoreOptions;
|
|
26
21
|
}
|
|
27
22
|
export interface LegendMarketplaceApplicationConfigurationData extends LegendApplicationConfigurationData {
|
|
23
|
+
marketplace: {
|
|
24
|
+
url: string;
|
|
25
|
+
};
|
|
28
26
|
depot: {
|
|
29
27
|
url: string;
|
|
30
28
|
};
|
|
31
29
|
engine: {
|
|
32
30
|
url: string;
|
|
33
|
-
queryUrl?: string;
|
|
34
31
|
};
|
|
35
|
-
|
|
32
|
+
lakehouse?: {
|
|
36
33
|
url: string;
|
|
37
34
|
};
|
|
38
|
-
|
|
35
|
+
studio?: {
|
|
39
36
|
url: string;
|
|
40
37
|
};
|
|
41
38
|
}
|
|
42
39
|
export declare class LegendMarketplaceApplicationConfig extends LegendApplicationConfig {
|
|
43
40
|
readonly options: LegendMarketplaceApplicationCoreOptions;
|
|
41
|
+
readonly marketplaceServerUrl: string;
|
|
44
42
|
readonly engineServerUrl: string;
|
|
45
|
-
readonly engineQueryServerUrl?: string | undefined;
|
|
46
43
|
readonly depotServerUrl: string;
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
44
|
+
readonly lakehouseServerUrl?: string;
|
|
45
|
+
readonly studioServerUrl?: string;
|
|
49
46
|
constructor(input: LegendApplicationConfigurationInput<LegendMarketplaceApplicationConfigurationData>);
|
|
50
47
|
getDefaultApplicationStorageKey(): string;
|
|
51
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendMarketplaceApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendMarketplaceApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,WAAW,EAIjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAEnC,cAAM,uCAAuC;IAC3C
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendMarketplaceApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,WAAW,EAIjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAEnC,cAAM,uCAAuC;IAC3C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAEnC;IAEF,MAAM,CAAC,MAAM,CACX,UAAU,EAAE,WAAW,CAAC,uCAAuC,CAAC,GAC/D,uCAAuC;CAK3C;AAED,MAAM,WAAW,6CACf,SAAQ,kCAAkC;IAC1C,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7B,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,MAAM,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,SAAS,CAAC,EAAE;QACV,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,MAAM,CAAC,EAAE;QACP,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH;AAED,qBAAa,kCAAmC,SAAQ,uBAAuB;IAC7E,QAAQ,CAAC,OAAO,0CAAiD;IAEjE,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;gBAGhC,KAAK,EAAE,mCAAmC,CAAC,6CAA6C,CAAC;IAkElF,+BAA+B,IAAI,MAAM;CAGnD"}
|
|
@@ -13,47 +13,40 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { createModelSchema
|
|
16
|
+
import { createModelSchema } from 'serializr';
|
|
17
17
|
import { assertNonNullable, guaranteeNonEmptyString, SerializationFactory, } from '@finos/legend-shared';
|
|
18
18
|
import { LegendApplicationConfig, } from '@finos/legend-application';
|
|
19
19
|
class LegendMarketplaceApplicationCoreOptions {
|
|
20
|
-
|
|
21
|
-
* This flag is for any feature that is not production ready.
|
|
22
|
-
* Used to iterate over features until they are ready for production.
|
|
23
|
-
*/
|
|
24
|
-
NonProductionFeatureFlag = false;
|
|
25
|
-
static serialization = new SerializationFactory(createModelSchema(LegendMarketplaceApplicationCoreOptions, {
|
|
26
|
-
NonProductionFeatureFlag: optional(primitive()),
|
|
27
|
-
}));
|
|
20
|
+
static serialization = new SerializationFactory(createModelSchema(LegendMarketplaceApplicationCoreOptions, {}));
|
|
28
21
|
static create(configData) {
|
|
29
22
|
return LegendMarketplaceApplicationCoreOptions.serialization.fromJson(configData);
|
|
30
23
|
}
|
|
31
24
|
}
|
|
32
25
|
export class LegendMarketplaceApplicationConfig extends LegendApplicationConfig {
|
|
33
26
|
options = new LegendMarketplaceApplicationCoreOptions();
|
|
27
|
+
marketplaceServerUrl;
|
|
34
28
|
engineServerUrl;
|
|
35
|
-
engineQueryServerUrl;
|
|
36
29
|
depotServerUrl;
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
lakehouseServerUrl;
|
|
31
|
+
studioServerUrl;
|
|
39
32
|
constructor(input) {
|
|
40
33
|
super(input);
|
|
34
|
+
// marketplace
|
|
35
|
+
assertNonNullable(input.configData.marketplace, `Can't configure application: 'marketplace' field is missing`);
|
|
36
|
+
this.marketplaceServerUrl = LegendApplicationConfig.resolveAbsoluteUrl(guaranteeNonEmptyString(input.configData.marketplace.url, `Can't configure application: 'marketplace.url' field is missing or empty`));
|
|
41
37
|
// engine
|
|
42
38
|
assertNonNullable(input.configData.engine, `Can't configure application: 'engine' field is missing`);
|
|
43
39
|
this.engineServerUrl = LegendApplicationConfig.resolveAbsoluteUrl(guaranteeNonEmptyString(input.configData.engine.url, `Can't configure application: 'engine.url' field is missing or empty`));
|
|
44
|
-
if (input.configData.engine.queryUrl) {
|
|
45
|
-
this.engineQueryServerUrl = LegendApplicationConfig.resolveAbsoluteUrl(input.configData.engine.queryUrl);
|
|
46
|
-
}
|
|
47
40
|
// depot
|
|
48
41
|
assertNonNullable(input.configData.depot, `Can't configure application: 'depot' field is missing`);
|
|
49
42
|
this.depotServerUrl = LegendApplicationConfig.resolveAbsoluteUrl(guaranteeNonEmptyString(input.configData.depot.url, `Can't configure application: 'depot.url' field is missing or empty`));
|
|
50
|
-
//
|
|
51
|
-
if (input.configData.
|
|
52
|
-
this.
|
|
43
|
+
// lakehouse
|
|
44
|
+
if (input.configData.lakehouse) {
|
|
45
|
+
this.lakehouseServerUrl = LegendApplicationConfig.resolveAbsoluteUrl(guaranteeNonEmptyString(input.configData.depot.url, `Can't configure application: 'lakehouse.url' field is missing or empty`));
|
|
53
46
|
}
|
|
54
|
-
//
|
|
55
|
-
if (input.configData.
|
|
56
|
-
this.
|
|
47
|
+
// studio
|
|
48
|
+
if (input.configData.studio) {
|
|
49
|
+
this.studioServerUrl = LegendApplicationConfig.resolveAbsoluteUrl(guaranteeNonEmptyString(input.configData.studio.url, `Can't configure application: 'studio.url' field is missing or empty`));
|
|
57
50
|
}
|
|
58
51
|
// options
|
|
59
52
|
this.options = LegendMarketplaceApplicationCoreOptions.create(input.configData.extensions?.core ?? {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendMarketplaceApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendMarketplaceApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendMarketplaceApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAEL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,uCAAuC;IACnC,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CAC9D,iBAAiB,CAAC,uCAAuC,EAAE,EAAE,CAAC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,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,EAC1B,wEAAwE,CACzE,CACF,CAAC;QACJ,CAAC;QACD,SAAS;QACT,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;YAC5B,IAAI,CAAC,eAAe,GAAG,uBAAuB,CAAC,kBAAkB,CAC/D,uBAAuB,CACrB,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,EAC3B,qEAAqE,CACtE,CACF,CAAC;QACJ,CAAC;QAED,UAAU;QACV,IAAI,CAAC,OAAO,GAAG,uCAAuC,CAAC,MAAM,CAC3D,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,IAAI,EAAE,CACxC,CAAC;IACJ,CAAC;IAEQ,+BAA+B;QACtC,OAAO,oBAAoB,CAAC;IAC9B,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/application/LegendMarketplaceFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EACL,KAAK,iCAAiC,EACtC,0BAA0B,EAC3B,MAAM,yCAAyC,CAAC;AAIjD,eAAO,MAAM,oCAAoC,QAC3C,iCAIC,CAAC;AAoBR,eAAO,MAAM,6BAA6B,QAAO,0BAI9C,CAAC;AAEJ,eAAO,MAAM,kCAAkC,EAAE,KAAK,CAAC,EAAE,CAAC;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAMA,CAAC"}
|
|
@@ -27,5 +27,5 @@ const LegendMarketplaceBaseStoreProvider = ({ children }) => {
|
|
|
27
27
|
return (_jsx(LegendMarketplaceBaseStoreContext.Provider, { value: baseStore, children: children }));
|
|
28
28
|
};
|
|
29
29
|
export const useLegendMarketplaceBaseStore = () => guaranteeNonNullable(useContext(LegendMarketplaceBaseStoreContext), `Can't find Legend Marketplace base store in context`);
|
|
30
|
-
export const LegendMarketplaceFrameworkProvider = ({ children }) => (_jsx(ApplicationFrameworkProvider, { children: _jsx(LegendMarketplaceBaseStoreProvider, { children: children }) }));
|
|
30
|
+
export const LegendMarketplaceFrameworkProvider = ({ children }) => (_jsx(ApplicationFrameworkProvider, { simple: true, enableTransitions: true, children: _jsx(LegendMarketplaceBaseStoreProvider, { children: children }) }));
|
|
31
31
|
//# sourceMappingURL=LegendMarketplaceFrameworkProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceFrameworkProvider.js","sourceRoot":"","sources":["../../src/application/LegendMarketplaceFrameworkProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,0BAA0B,GAC3B,MAAM,yCAAyC,CAAC;AAIjD,MAAM,CAAC,MAAM,oCAAoC,GAC/C,GAAsC,EAAE,CACtC,mBAAmB,EAGhB,CAAC;AAER,MAAM,iCAAiC,GAAG,aAAa,CAErD,SAAS,CAAC,CAAC;AAEb,MAAM,kCAAkC,GAEnC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpB,MAAM,gBAAgB,GAAG,oCAAoC,EAAE,CAAC;IAChE,MAAM,SAAS,GAAG,kBAAkB,CAClC,GAAG,EAAE,CAAC,IAAI,0BAA0B,CAAC,gBAAgB,CAAC,CACvD,CAAC;IACF,OAAO,CACL,KAAC,iCAAiC,CAAC,QAAQ,IAAC,KAAK,EAAE,SAAS,YACzD,QAAQ,GACkC,CAC9C,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAA+B,EAAE,CAC5E,oBAAoB,CAClB,UAAU,CAAC,iCAAiC,CAAC,EAC7C,qDAAqD,CACtD,CAAC;AAEJ,MAAM,CAAC,MAAM,kCAAkC,GAE1C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACrB,KAAC,4BAA4B,IAAC,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,YACjE,KAAC,kCAAkC,cAChC,QAAQ,GAC0B,GACR,CAChC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceWebApplication.d.ts","sourceRoot":"","sources":["../../src/application/LegendMarketplaceWebApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkEH,eAAO,MAAM,qCAAqC;;CAgChD,CAAC;AAEH,eAAO,MAAM,+BAA+B,WAClC;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE;;CAW5B,CAAC"}
|
|
@@ -22,11 +22,13 @@ import { useApplicationStore } from '@finos/legend-application';
|
|
|
22
22
|
import { BrowserEnvironmentProvider, Route, Routes, } from '@finos/legend-application/browser';
|
|
23
23
|
import { LegendMarketplaceFrameworkProvider, useLegendMarketplaceApplicationStore, useLegendMarketplaceBaseStore, } from './LegendMarketplaceFrameworkProvider.js';
|
|
24
24
|
import { LEGEND_MARKETPLACE_ROUTE_PATTERN } from '../__lib__/LegendMarketplaceNavigation.js';
|
|
25
|
-
import {
|
|
25
|
+
import { LakehouseMarketplace } from '../components/Lakehouse/LakehouseMarketplace.js';
|
|
26
|
+
import { LegendMarketplaceHome } from '../pages/Home/LegendMarketplaceHome.js';
|
|
27
|
+
import { LegendMarketplaceSearchResults } from '../pages/SearchResults/LegendMarketplaceSearchResults.js';
|
|
26
28
|
const NotFoundPage = observer(() => {
|
|
27
29
|
const applicationStore = useApplicationStore();
|
|
28
30
|
const currentPath = applicationStore.navigationService.navigator.getCurrentLocation();
|
|
29
|
-
return (_jsx("div", { className: "app__page", children: _jsxs("div", { className: "not-found-screen not-found-screen--no-documentation", children: [_jsxs("div", { className: "not-found-screen__icon", children: [_jsx("div", { className: "not-found-screen__icon__ghost", children: _jsx(GhostIcon, {}) }), _jsx("div", { className: "not-found-screen__icon__shadow", children: _jsx("svg", { viewBox: "0 0 600 400", children: _jsx("g", { transform: "translate(300 200)", children: _jsx("ellipse", { className: "not-found-screen__icon__shadow__inner", rx: "320", ry: "80" }) }) }) })] }), _jsxs("div", { className: "not-found-screen__text-content", children: [_jsx("div", { className: "not-found-screen__text-content__title", children: "404. Not Found" }), _jsxs("div", { className: "not-found-screen__text-content__detail", children: ["The requested URL", _jsx("span", { className: "not-found-screen__text-content__detail__url", children: applicationStore.navigationService.navigator.generateAddress(currentPath) }), "was not found in the application"] })] })] }) }));
|
|
31
|
+
return (_jsx("div", { className: "app__page legend-marketplace__app__page", children: _jsxs("div", { className: "not-found-screen not-found-screen--no-documentation", children: [_jsxs("div", { className: "not-found-screen__icon", children: [_jsx("div", { className: "not-found-screen__icon__ghost", children: _jsx(GhostIcon, {}) }), _jsx("div", { className: "not-found-screen__icon__shadow", children: _jsx("svg", { viewBox: "0 0 600 400", children: _jsx("g", { transform: "translate(300 200)", children: _jsx("ellipse", { className: "not-found-screen__icon__shadow__inner", rx: "320", ry: "80" }) }) }) })] }), _jsxs("div", { className: "not-found-screen__text-content", children: [_jsx("div", { className: "not-found-screen__text-content__title", children: "404. Not Found" }), _jsxs("div", { className: "not-found-screen__text-content__detail", children: ["The requested URL", _jsx("span", { className: "not-found-screen__text-content__detail__url", children: applicationStore.navigationService.navigator.generateAddress(currentPath) }), "was not found in the application"] })] })] }) }));
|
|
30
32
|
});
|
|
31
33
|
export const LegendMarketplaceWebApplicationRouter = observer(() => {
|
|
32
34
|
const baseStore = useLegendMarketplaceBaseStore();
|
|
@@ -34,7 +36,7 @@ export const LegendMarketplaceWebApplicationRouter = observer(() => {
|
|
|
34
36
|
useEffect(() => {
|
|
35
37
|
flowResult(baseStore.initialize()).catch(applicationStore.alertUnhandledError);
|
|
36
38
|
}, [applicationStore, baseStore]);
|
|
37
|
-
return (_jsx("div", { className: "app", children: baseStore.initState.hasCompleted && (_jsx(_Fragment, { children: _jsxs(Routes, { children: [_jsx(Route, { path: LEGEND_MARKETPLACE_ROUTE_PATTERN.DEFAULT, element: _jsx(LegendMarketplaceHome, {}) }), _jsx(Route, { path: "*", element: _jsx(NotFoundPage, {}) })] }) })) }));
|
|
39
|
+
return (_jsx("div", { className: "app", children: baseStore.initState.hasCompleted && (_jsx(_Fragment, { children: _jsxs(Routes, { children: [_jsx(Route, { path: LEGEND_MARKETPLACE_ROUTE_PATTERN.LAKEHOUSE, element: _jsx(LakehouseMarketplace, {}) }), _jsx(Route, { path: LEGEND_MARKETPLACE_ROUTE_PATTERN.DEFAULT, element: _jsx(LegendMarketplaceHome, {}) }), _jsx(Route, { path: LEGEND_MARKETPLACE_ROUTE_PATTERN.SEARCH_RESULTS, element: _jsx(LegendMarketplaceSearchResults, {}) }), _jsx(Route, { path: "*", element: _jsx(NotFoundPage, {}) })] }) })) }));
|
|
38
40
|
});
|
|
39
41
|
export const LegendMarketplaceWebApplication = observer((props) => {
|
|
40
42
|
const { baseUrl } = props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceWebApplication.js","sourceRoot":"","sources":["../../src/application/LegendMarketplaceWebApplication.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,0BAA0B,EAC1B,KAAK,EACL,MAAM,GACP,MAAM,mCAAmC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E,CAAC;IAClD,MAAM,gBAAgB,GAAG,oCAAoC,EAAE,CAAC;IAEhE,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,KAAK,CACtC,gBAAgB,CAAC,mBAAmB,CACrC,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC,CAAC;IAClC,OAAO,CACL,cAAK,SAAS,EAAC,KAAK,YACjB,SAAS,CAAC,SAAS,CAAC,YAAY,IAAI,CACnC,4BACE,MAAC,MAAM,eACL,KAAC,KAAK,IACJ,IAAI,EAAE,gCAAgC,CAAC,SAAS,EAChD,OAAO,EAAE,KAAC,oBAAoB,KAAG,GACjC,EACF,KAAC,KAAK,IACJ,IAAI,EAAE,gCAAgC,CAAC,OAAO,EAC9C,OAAO,EAAE,KAAC,qBAAqB,KAAG,GAClC,EACF,KAAC,KAAK,IACJ,IAAI,EAAE,gCAAgC,CAAC,cAAc,EACrD,OAAO,EAAE,KAAC,8BAA8B,KAAG,GAC3C,EACF,KAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,KAAC,YAAY,KAAG,GAAI,IACtC,GACR,CACJ,GACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,QAAQ,CACrD,CAAC,KAA0B,EAAE,EAAE;IAC7B,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE1B,OAAO,CACL,KAAC,0BAA0B,IAAC,OAAO,EAAE,OAAO,YAC1C,KAAC,kCAAkC,cACjC,KAAC,qCAAqC,KAAG,GACN,GACV,CAC9B,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendMarketplaceApplicationTestUtils.d.ts","sourceRoot":"","sources":["../../../src/application/__test-utils__/LegendMarketplaceApplicationTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,kCAAkC,EACnC,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceApplicationTestUtils.d.ts","sourceRoot":"","sources":["../../../src/application/__test-utils__/LegendMarketplaceApplicationTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,kCAAkC,EACnC,MAAM,0CAA0C,CAAC;AAgBlD,eAAO,MAAM,+CAA+C,GAC1D,oBAAoB,KACnB,kCAUF,CAAC"}
|
|
@@ -18,19 +18,15 @@ import { LegendMarketplaceApplicationConfig, } from '../LegendMarketplaceApplica
|
|
|
18
18
|
const TEST_DATA__appConfig = {
|
|
19
19
|
appName: 'marketplace',
|
|
20
20
|
env: 'test-env',
|
|
21
|
+
marketplace: {
|
|
22
|
+
url: 'https://testMarketplaceUrl',
|
|
23
|
+
},
|
|
21
24
|
engine: {
|
|
22
25
|
url: 'https://testEngineUrl',
|
|
23
|
-
queryUrl: 'https://testEngineQueryUrl',
|
|
24
26
|
},
|
|
25
27
|
depot: {
|
|
26
28
|
url: 'https://testMetadataUrl',
|
|
27
29
|
},
|
|
28
|
-
studio: {
|
|
29
|
-
url: 'https://testStudioUrl',
|
|
30
|
-
},
|
|
31
|
-
query: {
|
|
32
|
-
url: 'https://testQueryUrl',
|
|
33
|
-
},
|
|
34
30
|
};
|
|
35
31
|
export const TEST__getTestLegendMarketplaceApplicationConfig = (extraConfigData = {}) => {
|
|
36
32
|
const config = new LegendMarketplaceApplicationConfig({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendMarketplaceApplicationTestUtils.js","sourceRoot":"","sources":["../../../src/application/__test-utils__/LegendMarketplaceApplicationTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAEL,kCAAkC,GACnC,MAAM,0CAA0C,CAAC;AAElD,MAAM,oBAAoB,GAAkD;IAC1E,OAAO,EAAE,aAAa;IACtB,GAAG,EAAE,UAAU;IACf,
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceApplicationTestUtils.js","sourceRoot":"","sources":["../../../src/application/__test-utils__/LegendMarketplaceApplicationTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAEL,kCAAkC,GACnC,MAAM,0CAA0C,CAAC;AAElD,MAAM,oBAAoB,GAAkD;IAC1E,OAAO,EAAE,aAAa;IACtB,GAAG,EAAE,UAAU;IACf,WAAW,EAAE;QACX,GAAG,EAAE,4BAA4B;KAClC;IACD,MAAM,EAAE;QACN,GAAG,EAAE,uBAAuB;KAC7B;IACD,KAAK,EAAE;QACL,GAAG,EAAE,yBAAyB;KAC/B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,+CAA+C,GAAG,CAC7D,eAAe,GAAG,EAAE,EACgB,EAAE;IACtC,MAAM,MAAM,GAAG,IAAI,kCAAkC,CAAC;QACpD,UAAU,EAAE;YACV,GAAG,oBAAoB;YACvB,GAAG,eAAe;SACnB;QACD,WAAW,EAAE,+BAA+B,EAAE;QAC9C,WAAW,EAAE,eAAe;KAC7B,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Core_LegendMarketplaceApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/application/extensions/Core_LegendMarketplaceApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,kCAAkC,EAAE,MAAM,oDAAoD,CAAC;AAExG,qBAAa,uCAAwC,SAAQ,kCAAkC;IAC7F,MAAM,CAAC,IAAI,SAAuD;;CAKnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Core_LegendMarketplaceApplicationPlugin.js","sourceRoot":"","sources":["../../../src/application/extensions/Core_LegendMarketplaceApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACtE,OAAO,EAAE,kCAAkC,EAAE,MAAM,oDAAoD,CAAC;AAExG,MAAM,OAAO,uCAAwC,SAAQ,kCAAkC;IAC7F,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAElE;QACE,KAAK,CAAC,uCAAuC,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3E,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { type SettingConfigurationEntry, Core_LegendApplicationPlugin, LEGEND_APPLICATION_COLOR_THEME } from '@finos/legend-application';
|
|
17
|
+
export declare const LEGEND_QUERY_APPLICATION_SETTING_CONFIG: {
|
|
18
|
+
"application.layout.colorTheme": {
|
|
19
|
+
defaultValue: LEGEND_APPLICATION_COLOR_THEME;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare class Core_LegendMarketplace_LegendApplicationPlugin extends Core_LegendApplicationPlugin {
|
|
23
|
+
getExtraSettingConfigurationEntries(): SettingConfigurationEntry[];
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=Core_LegendMarketplace_LegendApplicationPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Core_LegendMarketplace_LegendApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/application/extensions/Core_LegendMarketplace_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,yBAAyB,EAE9B,4BAA4B,EAC5B,8BAA8B,EAE/B,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,uCAAuC;;;;CAKnD,CAAC;AAEF,qBAAa,8CAA+C,SAAQ,4BAA4B;IACrF,mCAAmC,IAAI,yBAAyB,EAAE;CAK5E"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { collectSettingConfigurationEntriesFromConfig, Core_LegendApplicationPlugin, LEGEND_APPLICATION_COLOR_THEME, LEGEND_APPLICATION_SETTING_KEY, } from '@finos/legend-application';
|
|
17
|
+
export const LEGEND_QUERY_APPLICATION_SETTING_CONFIG = {
|
|
18
|
+
[LEGEND_APPLICATION_SETTING_KEY.COLOR_THEME]: {
|
|
19
|
+
// default application query to light mode
|
|
20
|
+
defaultValue: LEGEND_APPLICATION_COLOR_THEME.LEGACY_LIGHT,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
export class Core_LegendMarketplace_LegendApplicationPlugin extends Core_LegendApplicationPlugin {
|
|
24
|
+
getExtraSettingConfigurationEntries() {
|
|
25
|
+
return collectSettingConfigurationEntriesFromConfig(LEGEND_QUERY_APPLICATION_SETTING_CONFIG);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=Core_LegendMarketplace_LegendApplicationPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Core_LegendMarketplace_LegendApplicationPlugin.js","sourceRoot":"","sources":["../../../src/application/extensions/Core_LegendMarketplace_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,4CAA4C,EAC5C,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACrD,CAAC,8BAA8B,CAAC,WAAW,CAAC,EAAE;QAC5C,0CAA0C;QAC1C,YAAY,EAAE,8BAA8B,CAAC,YAAY;KAC1D;CACF,CAAC;AAEF,MAAM,OAAO,8CAA+C,SAAQ,4BAA4B;IACrF,mCAAmC;QAC1C,OAAO,4CAA4C,CACjD,uCAAuC,CACxC,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendMarketplaceAppInfo.d.ts","sourceRoot":"","sources":["../../../src/components/
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceAppInfo.d.ts","sourceRoot":"","sources":["../../../src/components/Header/LegendMarketplaceAppInfo.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC9C,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAyGA,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useLegendMarketplaceApplicationStore } from '
|
|
2
|
+
import { useLegendMarketplaceApplicationStore } from '../../application/LegendMarketplaceFrameworkProvider.js';
|
|
3
3
|
import { isNonNullable } from '@finos/legend-shared';
|
|
4
4
|
import { CopyIcon, Dialog, InfoCircleIcon, Modal, ModalBody, ModalHeader, ModalHeaderActions, ModalTitle, TimesIcon, } from '@finos/legend-art';
|
|
5
5
|
export const LegendMarketplaceAppInfo = (props) => {
|
|
@@ -15,14 +15,12 @@ export const LegendMarketplaceAppInfo = (props) => {
|
|
|
15
15
|
`Build Time: ${config.appVersionBuildTime}`,
|
|
16
16
|
`Engine Server: ${config.engineServerUrl}`,
|
|
17
17
|
`Depot Server: ${config.depotServerUrl}`,
|
|
18
|
-
`Studio URL: ${config.studioApplicationUrl}`,
|
|
19
|
-
`Query URL: ${config.queryApplicationUrl}`,
|
|
20
18
|
]
|
|
21
19
|
.filter(isNonNullable)
|
|
22
20
|
.join('\n'))
|
|
23
21
|
.then(() => applicationStore.notificationService.notifySuccess('Copied application info to clipboard'))
|
|
24
22
|
.catch(applicationStore.alertUnhandledError);
|
|
25
23
|
};
|
|
26
|
-
return (_jsx(Dialog, { onClose: closeModal, open: open, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "modal--scrollable app__info", children: [_jsxs(ModalHeader, { children: [_jsx(ModalTitle, { icon: _jsx(InfoCircleIcon, {}), title: "About" }), _jsxs(ModalHeaderActions, { children: [_jsx("button", { className: "modal__header__action", tabIndex: -1, onClick: copyInfo, title: "Copy application info", children: _jsx(CopyIcon, {}) }), _jsx("button", { className: "modal__header__action", tabIndex: -1, onClick: closeModal, children: _jsx(TimesIcon, {}) })] })] }), _jsxs(ModalBody, { children: [_jsxs("div", { className: "app__info__entry", children: [_jsx("div", { className: "app__info__entry__title", children: "Environment:" }), _jsx("div", { className: "app__info__entry__value", children: config.env })] }), _jsxs("div", { className: "app__info__entry", children: [_jsx("div", { className: "app__info__entry__title", children: "Version:" }), _jsx("div", { className: "app__info__entry__value", children: config.appVersion })] }), _jsxs("div", { className: "app__info__entry", children: [_jsx("div", { className: "app__info__entry__title", children: "Revision:" }), _jsx("div", { className: "app__info__entry__value", children: config.appVersionCommitId })] }), _jsxs("div", { className: "app__info__entry", children: [_jsx("div", { className: "app__info__entry__title", children: "Build Time:" }), _jsx("div", { className: "app__info__entry__value", children: config.appVersionBuildTime })] }), _jsxs("div", { className: "app__info__group", children: [_jsxs("div", { className: "app__info__entry", children: [_jsx("div", { className: "app__info__entry__title", children: "Engine Server:" }), _jsx("div", { className: "app__info__entry__value", children: _jsx("a", { href: config.engineServerUrl, target: "_blank", rel: "noopener noreferrer", children: config.engineServerUrl }) })] }), _jsxs("div", { className: "app__info__entry", children: [_jsx("div", { className: "app__info__entry__title", children: "Depot Server:" }), _jsx("div", { className: "app__info__entry__value", children: _jsx("a", { href: config.depotServerUrl, target: "_blank", rel: "noopener noreferrer", children: config.depotServerUrl }) })] })
|
|
24
|
+
return (_jsx(Dialog, { onClose: closeModal, open: open, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "modal--scrollable app__info", children: [_jsxs(ModalHeader, { children: [_jsx(ModalTitle, { icon: _jsx(InfoCircleIcon, {}), title: "About" }), _jsxs(ModalHeaderActions, { children: [_jsx("button", { className: "modal__header__action", tabIndex: -1, onClick: copyInfo, title: "Copy application info", children: _jsx(CopyIcon, {}) }), _jsx("button", { className: "modal__header__action", tabIndex: -1, onClick: closeModal, children: _jsx(TimesIcon, {}) })] })] }), _jsxs(ModalBody, { children: [_jsxs("div", { className: "app__info__entry", children: [_jsx("div", { className: "app__info__entry__title", children: "Environment:" }), _jsx("div", { className: "app__info__entry__value", children: config.env })] }), _jsxs("div", { className: "app__info__entry", children: [_jsx("div", { className: "app__info__entry__title", children: "Version:" }), _jsx("div", { className: "app__info__entry__value", children: config.appVersion })] }), _jsxs("div", { className: "app__info__entry", children: [_jsx("div", { className: "app__info__entry__title", children: "Revision:" }), _jsx("div", { className: "app__info__entry__value", children: config.appVersionCommitId })] }), _jsxs("div", { className: "app__info__entry", children: [_jsx("div", { className: "app__info__entry__title", children: "Build Time:" }), _jsx("div", { className: "app__info__entry__value", children: config.appVersionBuildTime })] }), _jsxs("div", { className: "app__info__group", children: [_jsxs("div", { className: "app__info__entry", children: [_jsx("div", { className: "app__info__entry__title", children: "Engine Server:" }), _jsx("div", { className: "app__info__entry__value", children: _jsx("a", { href: config.engineServerUrl, target: "_blank", rel: "noopener noreferrer", children: config.engineServerUrl }) })] }), _jsxs("div", { className: "app__info__entry", children: [_jsx("div", { className: "app__info__entry__title", children: "Depot Server:" }), _jsx("div", { className: "app__info__entry__value", children: _jsx("a", { href: config.depotServerUrl, target: "_blank", rel: "noopener noreferrer", children: config.depotServerUrl }) })] })] })] })] }) }));
|
|
27
25
|
};
|
|
28
26
|
//# sourceMappingURL=LegendMarketplaceAppInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceAppInfo.js","sourceRoot":"","sources":["../../../src/components/Header/LegendMarketplaceAppInfo.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,oCAAoC,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACL,QAAQ,EACR,MAAM,EACN,cAAc,EACd,KAAK,EACL,SAAS,EACT,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,SAAS,GACV,MAAM,mBA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,IACF,IACI,IACN,GACD,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Header/LegendMarketplaceHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6CH,eAAO,MAAM,uBAAuB;;CAuBlC,CAAC"}
|
|
@@ -17,8 +17,10 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
17
17
|
import { ControlledDropdownMenu, MenuContent, MenuContentItem, MenuIcon, } from '@finos/legend-art';
|
|
18
18
|
import { observer } from 'mobx-react-lite';
|
|
19
19
|
import { useState } from 'react';
|
|
20
|
-
import { LegendMarketplaceAppInfo } from './LegendMarketplaceAppInfo.js';
|
|
21
20
|
import { LEGEND_MARKETPLACE_TEST_ID } from '../../__lib__/LegendMarketplaceTesting.js';
|
|
21
|
+
import { LegendMarketplaceAppInfo } from './LegendMarketplaceAppInfo.js';
|
|
22
|
+
import { useApplicationStore } from '@finos/legend-application';
|
|
23
|
+
import { LEGEND_MARKETPLACE_ROUTE_PATTERN } from '../../__lib__/LegendMarketplaceNavigation.js';
|
|
22
24
|
const LegendMarketplaceHeaderMenu = observer(() => {
|
|
23
25
|
// about modal
|
|
24
26
|
const [openAppInfo, setOpenAppInfo] = useState(false);
|
|
@@ -31,6 +33,10 @@ const LegendMarketplaceHeaderMenu = observer(() => {
|
|
|
31
33
|
}, content: _jsx(MenuContent, { children: _jsx(MenuContentItem, { onClick: showAppInfo, children: "About" }) }), children: _jsx(MenuIcon, {}) }) }), _jsx(LegendMarketplaceAppInfo, { open: openAppInfo, closeModal: hideAppInfo })] }));
|
|
32
34
|
});
|
|
33
35
|
export const LegendMarketplaceHeader = observer(() => {
|
|
34
|
-
|
|
36
|
+
const applicationStore = useApplicationStore();
|
|
37
|
+
const navigateToHome = () => {
|
|
38
|
+
applicationStore.navigationService.navigator.goToLocation(LEGEND_MARKETPLACE_ROUTE_PATTERN.DEFAULT);
|
|
39
|
+
};
|
|
40
|
+
return (_jsxs("div", { className: "legend-marketplace-header", "data-testid": LEGEND_MARKETPLACE_TEST_ID.HEADER, children: [_jsx(LegendMarketplaceHeaderMenu, {}), _jsx("div", { className: "legend-marketplace-header__name", onClick: () => navigateToHome(), children: "Legend Marketplace" })] }));
|
|
35
41
|
});
|
|
36
42
|
//# sourceMappingURL=LegendMarketplaceHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendMarketplaceHeader.js","sourceRoot":"","sources":["../../../src/components/Header/LegendMarketplaceHeader.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,eAAe,EACf,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAEhG,MAAM,2BAA2B,GAAG,QAAQ,CAAC,GAAG,EAAE;IAChD,cAAc;IACd,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,WAAW,GAAG,GAAS,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,WAAW,GAAG,GAAS,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAEtD,OAAO,CACL,8BACE,cAAK,SAAS,EAAC,iCAAiC,YAC9C,KAAC,sBAAsB,IACrB,SAAS,EAAC,sCAAsC,EAChD,SAAS,EAAE;wBACT,YAAY,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;wBACtD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE;wBACxD,SAAS,EAAE,CAAC;qBACb,EACD,OAAO,EACL,KAAC,WAAW,cACV,KAAC,eAAe,IAAC,OAAO,EAAE,WAAW,sBAAyB,GAClD,YAGhB,KAAC,QAAQ,KAAG,GACW,GACrB,EACN,KAAC,wBAAwB,IAAC,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,GAAI,IACvE,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,GAAG,EAAE;IACnD,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAE/C,MAAM,cAAc,GAAG,GAAS,EAAE;QAChC,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CACvD,gCAAgC,CAAC,OAAO,CACzC,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,eACE,SAAS,EAAC,2BAA2B,iBACxB,0BAA0B,CAAC,MAAM,aAE9C,KAAC,2BAA2B,KAAG,EAC/B,cACE,SAAS,EAAC,iCAAiC,EAC3C,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,EAAE,mCAG3B,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare const LakehouseMarketplace: import("react").FC<{}>;
|
|
17
|
+
//# sourceMappingURL=LakehouseMarketplace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LakehouseMarketplace.d.ts","sourceRoot":"","sources":["../../../src/components/Lakehouse/LakehouseMarketplace.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0BH,eAAO,MAAM,oBAAoB,wBA4FhC,CAAC"}
|