namirasoft-site-react 1.4.19 → 1.4.21
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.
|
@@ -67,7 +67,8 @@ export class NSFooter extends React.Component {
|
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
69
|
var _a, _b, _c;
|
|
70
|
-
|
|
70
|
+
let REACT_APP_BASE_URL_ACCOUNT_CONSOLE = new EnvService("REACT_APP_BASE_URL_ACCOUNT_CONSOLE", true).getString();
|
|
71
|
+
return (_jsx("footer", { id: this.props.id, className: `${Styles.ns_footer} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: _jsxs("div", { className: `container ${Styles.ns_package_footer}`, children: [_jsxs("div", { className: `${Styles.ns_footer_parent_items}`, children: [_jsx("div", { className: `${Styles.ns_footer_project_logo_tablet}`, children: _jsx("a", { href: "/", children: _jsx("img", { src: this.props.logo, alt: 'Logo', width: 80, height: 80 }) }) }), _jsx("div", { className: `${Styles.ns_footer_menu_container}`, children: this.render_menu(0, null) }), _jsxs("div", { className: `${Styles.ns_footer_namira_logo_tablet}`, children: [_jsxs("div", { className: "d-flex flex-row gap-3", children: [_jsx("a", { href: "https://namirasoft.com/", children: _jsx("img", { src: "https://static.namirasoft.com/image/namirasoft/site/logo/circle.png", alt: 'Namira Software Corporation Logo', width: 48, height: 48 }) }), _jsx("a", { href: REACT_APP_BASE_URL_ACCOUNT_CONSOLE, children: _jsx("img", { src: "https://static.namirasoft.com/image/namirasoft/account/logo/circle.png", alt: 'Namira Software Corporation Logo', width: 48, height: 48 }) })] }), _jsxs("div", { className: "d-flex flex-row gap-1 w-100 justify-content-center align-items-center", children: [_jsx("a", { style: { cursor: "pointer" }, href: "https://ca.linkedin.com/company/namira-software-corporation", target: "_blank", rel: "noreferrer", children: _jsx("img", { src: "https://static.namirasoft.com/image/concept/social/linkedin/white.svg", alt: "Communicate with Namirasoft Via LinkedIn", width: 24, height: 24 }) }), _jsx("a", { href: "https://instagram.com/namira.software.corporation?igshid=MzRlODBiNWFlZA==", target: "_blank", rel: "noreferrer", children: _jsx("img", { src: "https://static.namirasoft.com/image/concept/social/instagram/white.svg", alt: "Communicate with Namirasoft Via Instagram", width: 24, height: 24 }) }), _jsx("a", { href: "mailto:accounts@namirasoft.com", target: "_blank", rel: "noreferrer", children: _jsx("img", { src: "https://static.namirasoft.com/image/concept/social/email/white.svg", alt: "Communicate with Namirasoft Via Email", width: 24, height: 24 }) }), _jsx("a", { href: "https://www.google.com/maps/place//@49.2781041,-123.1354814,14z/data=!4m2!3m1!1s0x0:0x18f70365c7a2f0fa?entry=s&sa=X", target: "_blank", rel: "noreferrer", children: _jsx("img", { src: "https://static.namirasoft.com/image/concept/social/location/white.svg", alt: "Communicate with Namirasoft in Person", width: 24, height: 24 }) })] }), _jsxs("div", { className: `${Styles.ns_footer_copyright}`, children: [" Version: ", (_b = PackageService.MainJson) === null || _b === void 0 ? void 0 : _b.version, " "] })] })] }), _jsx("div", { className: `${Styles.ns_footer_logos_mobile}`, children: _jsxs("div", { className: "d-flex flex-column gap-4", children: [_jsxs("div", { className: "d-flex flex-row gap-3", children: [_jsx("a", { href: "https://namirasoft.com/", children: _jsx("img", { src: "https://static.namirasoft.com/image/namirasoft/site/logo/circle.png", alt: 'Namira Software Corporation Logo', width: 48, height: 48 }) }), _jsx("a", { href: REACT_APP_BASE_URL_ACCOUNT_CONSOLE, children: _jsx("img", { src: "https://static.namirasoft.com/image/namirasoft/account/logo/circle.png", alt: 'Namira Software Corporation Logo', width: 48, height: 48 }) })] }), _jsxs("div", { className: "d-flex flex-row gap-1 w-100 justify-content-center align-items-center", children: [_jsx("a", { href: "https://ca.linkedin.com/company/namira-software-corporation", target: "_blank", rel: "noreferrer", children: _jsx("img", { src: "https://static.namirasoft.com/image/concept/social/linkedin/white.svg", alt: "Communicate with Namirasoft Via LinkedIn", width: 24, height: 24 }) }), _jsx("a", { href: "https://instagram.com/namira.software.corporation?igshid=MzRlODBiNWFlZA==", target: "_blank", rel: "noreferrer", children: _jsx("img", { src: "https://static.namirasoft.com/image/concept/social/instagram/white.svg", alt: "Communicate with Namirasoft Via Instagram", width: 24, height: 24 }) }), _jsx("a", { href: "mailto:accounts@namirasoft.com", target: "_blank", rel: "noreferrer", children: _jsx("img", { src: "https://static.namirasoft.com/image/concept/social/email/white.svg", alt: "Communicate with Namirasoft Via Email", width: 24, height: 24 }) }), _jsx("a", { href: "https://www.google.com/maps/place//@49.2781041,-123.1354814,14z/data=!4m2!3m1!1s0x0:0x18f70365c7a2f0fa?entry=s&sa=X", target: "_blank", rel: "noreferrer", children: _jsx("img", { src: "https://static.namirasoft.com/image/concept/social/location/white.svg", alt: "Communicate with Namirasoft in Person", width: 24, height: 24 }) })] }), _jsxs("div", { className: `${Styles.ns_footer_copyright}`, children: [" Version: ", (_c = PackageService.MainJson) === null || _c === void 0 ? void 0 : _c.version, " "] })] }) }), _jsxs("div", { className: `${Styles.ns_footer_copyright}`, children: [_jsxs("span", { children: [" \u00A9Copyright 2010 - ", new Date().getFullYear(), " "] }), " ", _jsx("a", { href: "https://namirasoft.com/", target: "_blank", rel: "noreferrer", children: " Namira Software Corporation" }), ". ", " ", _jsx("span", { children: " All rights reserved. " })] })] }) }));
|
|
71
72
|
}
|
|
72
73
|
render_menu(level, parent_id) {
|
|
73
74
|
let fs = this.getFilters().filter(f => f.parent_id === parent_id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSFooter.js","sourceRoot":"","sources":["../../src/components/NSFooter.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAqB,MAAM,qBAAqB,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,cA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IAAI,SAAS,EACnE,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,KAHvB,MAAM,CAAC,EAAE,CAIb,CACL,CAAC;QACH,CAAC;aACI,IAAI,KAAK,KAAK,CAAC,EACpB,CAAC;YACA,OAAO,CACN,aAEC,EAAE,EAAE,kBAAkB,MAAM,CAAC,EAAE,EAAE,YAChC,MAAM,CAAC,IAAI,IAFP,MAAM,CAAC,EAAE,CAGV,CACL,CAAC;QACH,CAAC;aAED,CAAC;YACA,IAAI,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,0CAAE,GAAG,CAAC;YAC5B,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB;gBACnC,IAAI,IAAI,EACR,CAAC;oBACA,IAAI,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;oBACxB,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;oBAChC,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;oBACxC,IAAI,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;gBACvB,CAAC;YACF,OAAO,CACN,aAAoB,SAAS,EAAC,MAAM,YACnC,YAAG,IAAI,EAAE,IAAI,YACX,MAAM,CAAC,IAAI,GACT,IAHI,MAAM,CAAC,EAAE,CAIb,CACL,CAAC;QACH,CAAC;IACF,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -10,192 +10,281 @@ import { EnvService } from 'namirasoft-core'
|
|
|
10
10
|
|
|
11
11
|
export interface INSFooterProps extends IBaseComponentProps
|
|
12
12
|
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
scope: string;
|
|
14
|
+
name: string;
|
|
15
|
+
logo: string;
|
|
16
|
+
isLoggedIn: () => boolean;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export interface NSFooterState
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
filters: FilterLinkFullRow[];
|
|
22
|
+
selected: FilterLinkFullRow | null;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export class NSFooter extends React.Component<INSFooterProps, NSFooterState>
|
|
26
26
|
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
27
|
+
private cache: CacheService<{
|
|
28
|
+
rows: FilterLinkFullRow[];
|
|
29
|
+
count: number;
|
|
30
|
+
}>;
|
|
31
|
+
constructor(props: INSFooterProps)
|
|
32
|
+
{
|
|
33
|
+
super(props);
|
|
34
|
+
this.state = {
|
|
35
|
+
filters: [],
|
|
36
|
+
selected: null
|
|
37
|
+
};
|
|
38
|
+
this.hasChild = this.hasChild.bind(this);
|
|
39
|
+
this.render_menu = this.render_menu.bind(this);
|
|
40
|
+
this.render_menuItem = this.render_menuItem.bind(this);
|
|
41
|
+
this.cache = new CacheService<{
|
|
42
|
+
rows: FilterLinkFullRow[];
|
|
43
|
+
count: number;
|
|
44
|
+
}>("ns-footer", 720, new IStorageLocal(), async () =>
|
|
45
|
+
{
|
|
46
|
+
let REACT_APP_BASE_URL_API_LINK = new EnvService("REACT_APP_BASE_URL_API_LINK", true).getString();
|
|
47
|
+
let server = new NamirasoftAPILinkServer(REACT_APP_BASE_URL_API_LINK, console.error);
|
|
48
|
+
return server.filter.ListFilterLinks(this.props.scope, this.props.name, null, null, null);
|
|
49
|
+
}, () => { });
|
|
50
|
+
}
|
|
51
|
+
override componentDidMount(): void
|
|
52
|
+
{
|
|
53
|
+
this.cache.get().then(filters =>
|
|
54
|
+
{
|
|
55
|
+
this.setState({ filters: filters.rows });
|
|
56
|
+
}).catch(() => { });
|
|
57
|
+
}
|
|
58
|
+
private getFilters(): FilterLinkFullRow[]
|
|
59
|
+
{
|
|
60
|
+
let loggedin = this.props.isLoggedIn();
|
|
61
|
+
let ans = this.state.filters?.filter(f =>
|
|
62
|
+
{
|
|
63
|
+
if (f.link)
|
|
64
|
+
{
|
|
65
|
+
if (loggedin)
|
|
66
|
+
return f.link.private;
|
|
67
|
+
return f.link.public;
|
|
68
|
+
}
|
|
69
|
+
return true;
|
|
70
|
+
}) ?? [];
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
72
|
+
while (true)
|
|
73
|
+
{
|
|
74
|
+
let old_length = ans.length;
|
|
75
|
+
let old = ans;
|
|
76
|
+
ans = ans.filter(f =>
|
|
77
|
+
{
|
|
78
|
+
if (f.link?.url)
|
|
79
|
+
return true;
|
|
80
|
+
return old.filter(x => x.parent_id === f.id).length > 0;
|
|
81
|
+
});
|
|
82
|
+
let new_length = ans.length;
|
|
83
|
+
if (old_length === new_length)
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
87
|
+
return ans;
|
|
88
|
+
}
|
|
89
|
+
private hasChild(id: number): boolean
|
|
90
|
+
{
|
|
91
|
+
return this.getFilters().filter(f => f.parent_id === id).length > 0;
|
|
92
|
+
}
|
|
93
|
+
override render()
|
|
94
|
+
{
|
|
95
|
+
let REACT_APP_BASE_URL_ACCOUNT_CONSOLE = new EnvService("REACT_APP_BASE_URL_ACCOUNT_CONSOLE", true).getString();
|
|
96
|
+
return (
|
|
97
|
+
<footer id={this.props.id}
|
|
98
|
+
className={`${Styles.ns_footer} ${this.props.classList?.join(" ")}`}
|
|
99
|
+
style={this.props.style}
|
|
100
|
+
>
|
|
101
|
+
<div className={`container ${Styles.ns_package_footer}`}>
|
|
102
|
+
<div className={`${Styles.ns_footer_parent_items}`}>
|
|
103
|
+
<div className={`${Styles.ns_footer_project_logo_tablet}`}>
|
|
104
|
+
<a href="/">
|
|
105
|
+
<img src={this.props.logo} alt='Logo' width={80} height={80} />
|
|
106
|
+
</a>
|
|
107
|
+
</div>
|
|
108
|
+
<div className={`${Styles.ns_footer_menu_container}`}>
|
|
109
|
+
{this.render_menu(0, null)}
|
|
110
|
+
</div>
|
|
111
|
+
<div className={`${Styles.ns_footer_namira_logo_tablet}`}>
|
|
112
|
+
{/* Desktop */}
|
|
113
|
+
<div className="d-flex flex-row gap-3">
|
|
114
|
+
<a href="https://namirasoft.com/">
|
|
115
|
+
<img
|
|
116
|
+
src="https://static.namirasoft.com/image/namirasoft/site/logo/circle.png"
|
|
117
|
+
alt='Namira Software Corporation Logo'
|
|
118
|
+
width={48}
|
|
119
|
+
height={48}
|
|
120
|
+
/>
|
|
121
|
+
</a>
|
|
122
|
+
<a href={REACT_APP_BASE_URL_ACCOUNT_CONSOLE}>
|
|
123
|
+
<img
|
|
124
|
+
src="https://static.namirasoft.com/image/namirasoft/account/logo/circle.png"
|
|
125
|
+
alt='Namira Software Corporation Logo'
|
|
126
|
+
width={48}
|
|
127
|
+
height={48}
|
|
128
|
+
/>
|
|
129
|
+
</a>
|
|
130
|
+
</div>
|
|
131
|
+
{/* Social */}
|
|
132
|
+
<div className="d-flex flex-row gap-1 w-100 justify-content-center align-items-center">
|
|
133
|
+
<a style={{ cursor: "pointer" }} href="https://ca.linkedin.com/company/namira-software-corporation" target="_blank" rel="noreferrer">
|
|
134
|
+
<img
|
|
135
|
+
src="https://static.namirasoft.com/image/concept/social/linkedin/white.svg"
|
|
136
|
+
alt="Communicate with Namirasoft Via LinkedIn"
|
|
137
|
+
width={24}
|
|
138
|
+
height={24}
|
|
139
|
+
/>
|
|
140
|
+
</a>
|
|
141
|
+
<a href="https://instagram.com/namira.software.corporation?igshid=MzRlODBiNWFlZA==" target="_blank" rel="noreferrer">
|
|
142
|
+
<img
|
|
143
|
+
src="https://static.namirasoft.com/image/concept/social/instagram/white.svg"
|
|
144
|
+
alt="Communicate with Namirasoft Via Instagram"
|
|
145
|
+
width={24}
|
|
146
|
+
height={24}
|
|
147
|
+
/>
|
|
148
|
+
</a>
|
|
149
|
+
<a href="mailto:accounts@namirasoft.com" target="_blank" rel="noreferrer">
|
|
150
|
+
<img
|
|
151
|
+
src="https://static.namirasoft.com/image/concept/social/email/white.svg"
|
|
152
|
+
alt="Communicate with Namirasoft Via Email"
|
|
153
|
+
width={24}
|
|
154
|
+
height={24}
|
|
155
|
+
/>
|
|
156
|
+
</a>
|
|
157
|
+
<a href="https://www.google.com/maps/place//@49.2781041,-123.1354814,14z/data=!4m2!3m1!1s0x0:0x18f70365c7a2f0fa?entry=s&sa=X" target="_blank" rel="noreferrer">
|
|
158
|
+
<img
|
|
159
|
+
src="https://static.namirasoft.com/image/concept/social/location/white.svg"
|
|
160
|
+
alt="Communicate with Namirasoft in Person"
|
|
161
|
+
width={24}
|
|
162
|
+
height={24}
|
|
163
|
+
/>
|
|
164
|
+
</a>
|
|
165
|
+
</div>
|
|
166
|
+
<div className={`${Styles.ns_footer_copyright}`}> Version: {PackageService.MainJson?.version} </div>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
<div className={`${Styles.ns_footer_logos_mobile}`}>
|
|
170
|
+
{/* Mobile */}
|
|
171
|
+
<div className="d-flex flex-column gap-4">
|
|
172
|
+
<div className="d-flex flex-row gap-3">
|
|
173
|
+
<a href="https://namirasoft.com/">
|
|
174
|
+
<img
|
|
175
|
+
src="https://static.namirasoft.com/image/namirasoft/site/logo/circle.png"
|
|
176
|
+
alt='Namira Software Corporation Logo'
|
|
177
|
+
width={48}
|
|
178
|
+
height={48}
|
|
179
|
+
/>
|
|
180
|
+
</a>
|
|
181
|
+
<a href={REACT_APP_BASE_URL_ACCOUNT_CONSOLE}>
|
|
182
|
+
<img
|
|
183
|
+
src="https://static.namirasoft.com/image/namirasoft/account/logo/circle.png"
|
|
184
|
+
alt='Namira Software Corporation Logo'
|
|
185
|
+
width={48}
|
|
186
|
+
height={48}
|
|
187
|
+
/>
|
|
188
|
+
</a>
|
|
189
|
+
</div>
|
|
190
|
+
{/* Social */}
|
|
191
|
+
<div className="d-flex flex-row gap-1 w-100 justify-content-center align-items-center">
|
|
192
|
+
<a href="https://ca.linkedin.com/company/namira-software-corporation" target="_blank" rel="noreferrer" >
|
|
193
|
+
<img
|
|
194
|
+
src="https://static.namirasoft.com/image/concept/social/linkedin/white.svg"
|
|
195
|
+
alt="Communicate with Namirasoft Via LinkedIn"
|
|
196
|
+
width={24}
|
|
197
|
+
height={24}
|
|
198
|
+
/>
|
|
199
|
+
</a>
|
|
200
|
+
<a href="https://instagram.com/namira.software.corporation?igshid=MzRlODBiNWFlZA==" target="_blank" rel="noreferrer">
|
|
201
|
+
<img
|
|
202
|
+
src="https://static.namirasoft.com/image/concept/social/instagram/white.svg"
|
|
203
|
+
alt="Communicate with Namirasoft Via Instagram"
|
|
204
|
+
width={24}
|
|
205
|
+
height={24}
|
|
206
|
+
/>
|
|
207
|
+
</a>
|
|
208
|
+
<a href="mailto:accounts@namirasoft.com" target="_blank" rel="noreferrer">
|
|
209
|
+
<img
|
|
210
|
+
src="https://static.namirasoft.com/image/concept/social/email/white.svg"
|
|
211
|
+
alt="Communicate with Namirasoft Via Email"
|
|
212
|
+
width={24}
|
|
213
|
+
height={24}
|
|
214
|
+
/>
|
|
215
|
+
</a>
|
|
216
|
+
<a href="https://www.google.com/maps/place//@49.2781041,-123.1354814,14z/data=!4m2!3m1!1s0x0:0x18f70365c7a2f0fa?entry=s&sa=X" target="_blank" rel="noreferrer">
|
|
217
|
+
<img
|
|
218
|
+
src="https://static.namirasoft.com/image/concept/social/location/white.svg"
|
|
219
|
+
alt="Communicate with Namirasoft in Person"
|
|
220
|
+
width={24}
|
|
221
|
+
height={24}
|
|
222
|
+
/>
|
|
223
|
+
</a>
|
|
224
|
+
</div>
|
|
225
|
+
<div className={`${Styles.ns_footer_copyright}`}> Version: {PackageService.MainJson?.version} </div>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
<div className={`${Styles.ns_footer_copyright}`}>
|
|
229
|
+
<span> ©Copyright 2010 - {new Date().getFullYear()} </span>{" "}
|
|
230
|
+
<a href="https://namirasoft.com/" target="_blank" rel="noreferrer"> Namira Software Corporation</a>. {" "}
|
|
231
|
+
<span > All rights reserved. </span>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
</footer >
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
private render_menu(level: number, parent_id: number | null)
|
|
238
|
+
{
|
|
239
|
+
let fs: FilterLinkFullRow[] = this.getFilters().filter(f => f.parent_id === parent_id);
|
|
240
|
+
return (
|
|
241
|
+
<>
|
|
242
|
+
{
|
|
243
|
+
(fs?.map(f => this.render_menuItem(level, f)))
|
|
244
|
+
}
|
|
245
|
+
</>
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
private render_menuItem(level: number, filter: FilterLinkFullRow)
|
|
249
|
+
{
|
|
250
|
+
if (this.hasChild(filter.id))
|
|
251
|
+
{
|
|
252
|
+
return (
|
|
253
|
+
<ul key={filter.id}
|
|
254
|
+
id={`dropdown_parent${filter.id}`}>
|
|
255
|
+
<span className={Styles.ns_footer_list_title}> {filter.name} </span>
|
|
256
|
+
{this.render_menu(1, filter.id)}
|
|
257
|
+
</ul>
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
else if (level === 0)
|
|
261
|
+
{
|
|
262
|
+
return (
|
|
263
|
+
<ul
|
|
264
|
+
key={filter.id}
|
|
265
|
+
id={`dropdown_parent${filter.id}`}>
|
|
266
|
+
{filter.name}
|
|
267
|
+
</ul>
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
else
|
|
271
|
+
{
|
|
272
|
+
let href = filter.link?.url;
|
|
273
|
+
if (process.env.REACT_APP_STANDALONE)
|
|
274
|
+
if (href)
|
|
275
|
+
{
|
|
276
|
+
let url = new URL(href);
|
|
277
|
+
url.host = window.location.host;
|
|
278
|
+
url.protocol = window.location.protocol;
|
|
279
|
+
href = url.toString();
|
|
280
|
+
}
|
|
281
|
+
return (
|
|
282
|
+
<li key={filter.id} className="mb-2">
|
|
283
|
+
<a href={href}>
|
|
284
|
+
{filter.name}
|
|
285
|
+
</a>
|
|
286
|
+
</li>
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
201
290
|
}
|