namirasoft-account-react 1.4.336 → 1.4.337
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.
|
@@ -12,6 +12,10 @@ export interface NSAHomePageProps extends IBaseComponentProps, NSARouterMakerPro
|
|
|
12
12
|
show_image?: boolean;
|
|
13
13
|
getChildrenBefore?: () => ReactNode;
|
|
14
14
|
getChildrenAfter?: () => ReactNode;
|
|
15
|
+
product?: {
|
|
16
|
+
getChildrenBefore?: () => ReactNode;
|
|
17
|
+
getChildrenAfter?: () => ReactNode;
|
|
18
|
+
};
|
|
15
19
|
}
|
|
16
20
|
export interface NSAHomePageState {
|
|
17
21
|
product: ProductFullRow | null;
|
|
@@ -3,7 +3,7 @@ import { NSListProduct, NSSpace, NSSpaceSizeType, NSLoading, ProductCacheService
|
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
4
|
import Styles from './NSAHomePage.module.css';
|
|
5
5
|
export function NSAHomePage(props) {
|
|
6
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
6
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
7
7
|
let cache = ProductCacheService.get(props.product_id, props.notifier.onError);
|
|
8
8
|
let [state, setState] = useState({ product: null });
|
|
9
9
|
useEffect(() => {
|
|
@@ -18,6 +18,6 @@ export function NSAHomePage(props) {
|
|
|
18
18
|
let logo = (_h = (_g = (_f = props.custom) === null || _f === void 0 ? void 0 : _f.logo) !== null && _g !== void 0 ? _g : state.product.logo) !== null && _h !== void 0 ? _h : "";
|
|
19
19
|
let description = (_l = (_k = (_j = props.custom) === null || _j === void 0 ? void 0 : _j.description) !== null && _k !== void 0 ? _k : state.product.description) !== null && _l !== void 0 ? _l : "";
|
|
20
20
|
return (_jsxs("div", { className: Styles.nsa_home_container, children: [props.show_image &&
|
|
21
|
-
_jsx("img", { src: logo, alt: state.product.name, width: 256, height: 256 }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsx("h2", { children: headline }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsx("p", { children: description }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), props.getChildrenBefore && props.getChildrenBefore(), _jsx(NSListProduct, { scope: scope, name: "Home" }), props.getChildrenAfter && props.getChildrenAfter()] }));
|
|
21
|
+
_jsx("img", { src: logo, alt: state.product.name, width: 256, height: 256 }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsx("h2", { children: headline }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsx("p", { children: description }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), props.getChildrenBefore && props.getChildrenBefore(), _jsx(NSListProduct, { scope: scope, name: "Home", getChildrenBefore: (_m = props.product) === null || _m === void 0 ? void 0 : _m.getChildrenBefore, getChildrenAfter: (_o = props.product) === null || _o === void 0 ? void 0 : _o.getChildrenAfter }), props.getChildrenAfter && props.getChildrenAfter()] }));
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=NSAHomePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSAHomePage.js","sourceRoot":"","sources":["../../src/pages/NSAHomePage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuB,aAAa,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAErI,OAAO,EAAa,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,MAAM,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"NSAHomePage.js","sourceRoot":"","sources":["../../src/pages/NSAHomePage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuB,aAAa,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAErI,OAAO,EAAa,SAAS,EAAE,QAAQ,EAAE,MAAM,O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,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,EACvB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,GACb,EAEN,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACxC,uBAAK,QAAQ,GAAM,EACnB,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACxC,sBAAI,WAAW,GAAK,EACpB,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACvC,KAAK,CAAC,iBAAiB,IAAI,KAAK,CAAC,iBAAiB,EAAE,EACrD,KAAC,aAAa,IACV,KAAK,EAAE,KAAK,EACZ,IAAI,EAAC,MAAM,EACX,iBAAiB,EAAE,MAAA,KAAK,CAAC,OAAO,0CAAE,iBAAiB,EACnD,gBAAgB,EAAE,MAAA,KAAK,CAAC,OAAO,0CAAE,gBAAgB,GACnD,EACD,KAAK,CAAC,gBAAgB,IAAI,KAAK,CAAC,gBAAgB,EAAE,IACjD,CACT,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.337",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"namirasoft-secret": "^1.4.32",
|
|
38
38
|
"namirasoft-site": "^1.4.38",
|
|
39
39
|
"namirasoft-site-map": "^1.4.28",
|
|
40
|
-
"namirasoft-site-react": "^1.4.
|
|
40
|
+
"namirasoft-site-react": "^1.4.418",
|
|
41
41
|
"namirasoft-workspace": "^1.4.23",
|
|
42
42
|
"os-browserify": "^0.3.0",
|
|
43
43
|
"path-browserify": "^1.0.1",
|
|
@@ -15,6 +15,10 @@ export interface NSAHomePageProps extends IBaseComponentProps, NSARouterMakerPro
|
|
|
15
15
|
show_image?: boolean;
|
|
16
16
|
getChildrenBefore?: () => ReactNode;
|
|
17
17
|
getChildrenAfter?: () => ReactNode;
|
|
18
|
+
product?: {
|
|
19
|
+
getChildrenBefore?: () => ReactNode;
|
|
20
|
+
getChildrenAfter?: () => ReactNode;
|
|
21
|
+
}
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
export interface NSAHomePageState
|
|
@@ -61,7 +65,12 @@ export function NSAHomePage(props: NSAHomePageProps)
|
|
|
61
65
|
<p>{description}</p>
|
|
62
66
|
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
63
67
|
{props.getChildrenBefore && props.getChildrenBefore()}
|
|
64
|
-
<NSListProduct
|
|
68
|
+
<NSListProduct
|
|
69
|
+
scope={scope}
|
|
70
|
+
name="Home"
|
|
71
|
+
getChildrenBefore={props.product?.getChildrenBefore}
|
|
72
|
+
getChildrenAfter={props.product?.getChildrenAfter}
|
|
73
|
+
/>
|
|
65
74
|
{props.getChildrenAfter && props.getChildrenAfter()}
|
|
66
75
|
</div>
|
|
67
76
|
);
|