namirasoft-account-react 1.3.76 → 1.3.78
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/config-overrides.js +72 -72
- package/dist/App.css +57 -0
- package/dist/IAccountProps.d.ts +22 -0
- package/dist/IAccountProps.js +3 -0
- package/dist/IAccountProps.js.map +10 -0
- package/dist/IRouterMaker.d.ts +8 -0
- package/dist/IRouterMaker.js +3 -0
- package/dist/IRouterMaker.js.map +1 -0
- package/dist/IRouterState.d.ts +5 -0
- package/dist/IRouterState.js +3 -0
- package/dist/IRouterState.js.map +1 -0
- package/dist/IStorageCookie.d.ts +10 -0
- package/dist/IStorageCookie.js +27 -0
- package/dist/IStorageCookie.js.map +1 -0
- package/dist/Messenger.d.ts +16 -0
- package/dist/Messenger.js +78 -0
- package/dist/Messenger.js.map +1 -0
- package/dist/Notification.d.ts +6 -0
- package/dist/Notification.js +3 -0
- package/dist/Notification.js.map +1 -0
- package/dist/NotificationType.d.ts +6 -0
- package/dist/NotificationType.js +11 -0
- package/dist/NotificationType.js.map +1 -0
- package/dist/RouterMaker.d.ts +25 -0
- package/dist/RouterMaker.js +125 -0
- package/dist/RouterMaker.js.map +1 -0
- package/dist/RouterMaker.jsx +118 -0
- package/dist/RouterMaker.jsx.map +1 -0
- package/dist/components/NSALayoutAction.d.ts +17 -0
- package/dist/components/NSALayoutAction.js +6 -0
- package/dist/components/NSALayoutAction.js.map +1 -0
- package/dist/components/NSALayoutAction.module.css +0 -0
- package/dist/components/NSAMessageDialog.module.css +62 -62
- package/dist/index.css +0 -0
- package/dist/layouts/NSALayoutList.d.ts +17 -0
- package/dist/layouts/NSALayoutList.js +19 -0
- package/dist/layouts/NSALayoutList.js.map +1 -0
- package/dist/layouts/NSASectionList.js +1 -1
- package/dist/layouts/NSASectionList.js.map +1 -1
- package/dist/layouts/NSASectionNew.d.ts +9 -0
- package/dist/layouts/NSASectionNew.js +5 -0
- package/dist/layouts/NSASectionNew.js.map +1 -0
- package/dist/pages/NSALoginPage.module.css +19 -19
- package/package.json +64 -64
- package/public/index.html +21 -21
- package/src/App.css +56 -56
- package/src/App.tsx +10 -10
- package/src/IEntityInfo.ts +23 -23
- package/src/INSARouterMaker.ts +8 -8
- package/src/INSARouterProps.ts +17 -17
- package/src/INSARouterState.ts +5 -5
- package/src/Info.ts +20 -20
- package/src/NSARouterMaker.tsx +138 -138
- package/src/components/NSADeleteModal.tsx +24 -24
- package/src/components/NSAMessageDialog.module.css +62 -62
- package/src/components/NSAMessageDialog.tsx +65 -65
- package/src/index.tsx +7 -7
- package/src/layouts/Actions.ts +92 -92
- package/src/layouts/NSALayout.tsx +193 -193
- package/src/layouts/NSASectionEdit.tsx +97 -97
- package/src/layouts/NSASectionList.tsx +105 -105
- package/src/layouts/NSASectionTabs.tsx +36 -36
- package/src/layouts/NSASectionView.tsx +15 -15
- package/src/main.ts +16 -16
- package/src/pages/NSALoginPage.module.css +19 -19
- package/src/pages/NSALoginPage.tsx +37 -37
- package/tsconfig.json +43 -43
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const query_string_1 = __importDefault(require("query-string"));
|
|
7
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
8
|
+
const Messenger_1 = require("./Messenger");
|
|
9
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
10
|
+
const axios_1 = __importDefault(require("axios"));
|
|
11
|
+
class RouterMaker {
|
|
12
|
+
constructor(state, setState, location, navigate, component) {
|
|
13
|
+
this.state = state;
|
|
14
|
+
this.setState = setState;
|
|
15
|
+
this.location = location;
|
|
16
|
+
this.navigate = navigate;
|
|
17
|
+
this.component = component;
|
|
18
|
+
this.init = this.init.bind(this);
|
|
19
|
+
this.getQuery = this.getQuery.bind(this);
|
|
20
|
+
this.getLink = this.getLink.bind(this);
|
|
21
|
+
this.redirect = this.redirect.bind(this);
|
|
22
|
+
this.onComponentDidMount = this.onComponentDidMount.bind(this);
|
|
23
|
+
this.onRender = this.onRender.bind(this);
|
|
24
|
+
}
|
|
25
|
+
init() {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
let messenger = new Messenger_1.Messenger(this.state, this.setState);
|
|
28
|
+
let qStorage = this.getQuery("location");
|
|
29
|
+
let qAPI = this.getQuery("api");
|
|
30
|
+
let qToken = this.getQuery("token");
|
|
31
|
+
if (!qStorage)
|
|
32
|
+
if (qAPI)
|
|
33
|
+
qStorage = "memory";
|
|
34
|
+
let storage;
|
|
35
|
+
if (qStorage === "memory")
|
|
36
|
+
storage = new namirasoft_core_1.IStorageMemory();
|
|
37
|
+
else
|
|
38
|
+
storage = new namirasoft_core_1.IStorageLocal();
|
|
39
|
+
let token_manager = new namirasoft_account_1.TokenManager(storage, () => this.setState({}));
|
|
40
|
+
if (qToken)
|
|
41
|
+
token_manager.setValue(qToken, true);
|
|
42
|
+
let server = new namirasoft_account_1.NamirasoftAccountServer(token_manager, (error) => {
|
|
43
|
+
var _a;
|
|
44
|
+
if (axios_1.default.isAxiosError(error))
|
|
45
|
+
if (error.response)
|
|
46
|
+
if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 401) {
|
|
47
|
+
token_manager.del();
|
|
48
|
+
this.component.on401();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
messenger.onError(error);
|
|
52
|
+
});
|
|
53
|
+
let props = {
|
|
54
|
+
account: {
|
|
55
|
+
token_manager,
|
|
56
|
+
server,
|
|
57
|
+
},
|
|
58
|
+
url: {
|
|
59
|
+
getLink: this.getLink,
|
|
60
|
+
redirect: this.redirect,
|
|
61
|
+
getQuery: this.getQuery,
|
|
62
|
+
},
|
|
63
|
+
messenger,
|
|
64
|
+
};
|
|
65
|
+
let inited = true;
|
|
66
|
+
if (qToken)
|
|
67
|
+
inited = (_b = (_a = this.state) === null || _a === void 0 ? void 0 : _a.inited) !== null && _b !== void 0 ? _b : false;
|
|
68
|
+
return { props, inited };
|
|
69
|
+
}
|
|
70
|
+
getQuery(name) {
|
|
71
|
+
let query = query_string_1.default.parse(this.location.search);
|
|
72
|
+
let item = query[name];
|
|
73
|
+
return new namirasoft_core_1.ObjectService(item).getString();
|
|
74
|
+
}
|
|
75
|
+
getLink(sub, customQuery) {
|
|
76
|
+
if (!customQuery)
|
|
77
|
+
customQuery = {};
|
|
78
|
+
let query = query_string_1.default.parse(this.location.search);
|
|
79
|
+
let final = Object.assign(Object.assign({}, query), customQuery);
|
|
80
|
+
return namirasoft_core_1.URLOperation.getLink("", sub, final);
|
|
81
|
+
}
|
|
82
|
+
redirect(sub, customQuery) {
|
|
83
|
+
let ans = this.getLink(sub, customQuery);
|
|
84
|
+
this.navigate(ans);
|
|
85
|
+
}
|
|
86
|
+
onComponentDidMount() {
|
|
87
|
+
let { inited, props } = this.init();
|
|
88
|
+
this.setState({ notifications: [], inited });
|
|
89
|
+
let token = this.getQuery("token");
|
|
90
|
+
if (token) {
|
|
91
|
+
if (!props.account.token_manager.getUserData(u => u.id, "")) {
|
|
92
|
+
props.account.server.session.Current()
|
|
93
|
+
.then(response => {
|
|
94
|
+
props.account.token_manager.set(response, false);
|
|
95
|
+
this.setState({ inited: true });
|
|
96
|
+
})
|
|
97
|
+
.catch(() => {
|
|
98
|
+
this.setState({ inited: true });
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
onRender() {
|
|
104
|
+
let { inited, props } = this.init();
|
|
105
|
+
if (!inited)
|
|
106
|
+
return <></>;
|
|
107
|
+
let banned = false;
|
|
108
|
+
if (props.account.token_manager.exists()) {
|
|
109
|
+
banned = props.account.token_manager.getUserData(user => user.banned, false);
|
|
110
|
+
if (!banned)
|
|
111
|
+
return this.component.onRenderOnLogin(props);
|
|
112
|
+
}
|
|
113
|
+
return this.component.onRenderOnLogout(props, banned);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.default = RouterMaker;
|
|
117
|
+
;
|
|
118
|
+
//# sourceMappingURL=RouterMaker.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterMaker.jsx","sourceRoot":"","sources":["../src/RouterMaker.tsx"],"names":[],"mappings":";;;;;AAAA,gEAAuC;AACvC,qDAAwH;AACxH,2CAAwC;AACxC,2DAA2E;AAI3E,kDAA0B;AAG1B,MAAqB,WAAW;IAO5B,YAAY,KAA+B,EAAE,QAAwE,EACjH,QAAsB,EAAE,QAA8B,EACtD,SAAuB;QAEvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IACO,IAAI;;QAER,IAAI,SAAS,GAAc,IAAI,qBAAS,CAAC,I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AA5HD,8BA4HC;AAAA,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { INSActionMenuProps, INSNotificationProps } from 'namirasoft-site-react';
|
|
3
|
+
export interface NSALayoutActionProps
|
|
4
|
+
{
|
|
5
|
+
scope: string;
|
|
6
|
+
logo: string;
|
|
7
|
+
background: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
children: JSX.Element | JSX.Element[];
|
|
11
|
+
notifications: INSNotificationProps[];
|
|
12
|
+
actions: INSActionMenuProps[];
|
|
13
|
+
redirectToView?: () => void;
|
|
14
|
+
edit?: () => void;
|
|
15
|
+
delete?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function NSALayoutAction(props: NSALayoutActionPropsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { NSLayoutAction } from 'namirasoft-site-react';
|
|
3
|
+
export function NSALayoutAction(props) {
|
|
4
|
+
return (_jsx(NSLayoutAction, { scope: props.scope, logo: props.logo, background: props.background, title: props.title, description: props.description, actions: props.actions, notifications: props.notifications, children: _jsx("div", { className: "container-fluid", children: props.children }) }));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=NSALayoutAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSALayoutAction.js","sourceRoot":"","sources":["../../src/components/NSALayoutAction.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAmBvD,MAAM,UAAU,eAAe,CAAC,KAA2B;IAEvD,OAAO,CACH,KAAC,cAAc,IACX,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,aAAa,EAAE,KAAK,CAAC,aAAa,YAElC,cAAK,SAAS,EAAC,iBAAiB,YAC3B,KAAK,CAAC,QAAQ,GACb,GACO,CACpB,CAAC;AACN,CAAC"}
|
|
File without changes
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
.nsa_message_icon {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.nsa_message_title {
|
|
6
|
-
color: hsla(212, 100%, 51%, 1)
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.nsa_message_item_title {
|
|
10
|
-
color: hsla(234, 64%, 22%, 1);
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
gap: 8px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.nsa_message_item_content {
|
|
17
|
-
color: hsla(234, 64%, 22%, 1);
|
|
18
|
-
margin: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.nsa_message_item_dot_green {
|
|
22
|
-
width: 8px;
|
|
23
|
-
height: 8px;
|
|
24
|
-
background: hsla(157, 94%, 42%, 1);
|
|
25
|
-
border-radius: 50%;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.nsa_message_item_dot_gray {
|
|
29
|
-
width: 8px;
|
|
30
|
-
height: 8px;
|
|
31
|
-
background: hsla(228, 9%, 66%, 1);
|
|
32
|
-
border-radius: 50%;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.nsa_body_green {
|
|
36
|
-
background-color: hsla(157, 94%, 42%, 0.1);
|
|
37
|
-
padding: 16px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.nsa_body_gray {
|
|
41
|
-
background-color: #fff;
|
|
42
|
-
padding: 16px;
|
|
43
|
-
box-shadow: 0px 2px 5px #e6e6e6;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.nsa_count {
|
|
47
|
-
position: absolute;
|
|
48
|
-
background: rgba(3, 119, 255, 1);
|
|
49
|
-
right: -5px;
|
|
50
|
-
top: -5px;
|
|
51
|
-
color: #fff;
|
|
52
|
-
width: 18px;
|
|
53
|
-
height: 18px;
|
|
54
|
-
border-radius: 50%;
|
|
55
|
-
display: flex;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
align-items: center;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.nsa_parent_count {
|
|
61
|
-
position: relative;
|
|
62
|
-
width: max-content;
|
|
1
|
+
.nsa_message_icon {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.nsa_message_title {
|
|
6
|
+
color: hsla(212, 100%, 51%, 1)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.nsa_message_item_title {
|
|
10
|
+
color: hsla(234, 64%, 22%, 1);
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 8px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.nsa_message_item_content {
|
|
17
|
+
color: hsla(234, 64%, 22%, 1);
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.nsa_message_item_dot_green {
|
|
22
|
+
width: 8px;
|
|
23
|
+
height: 8px;
|
|
24
|
+
background: hsla(157, 94%, 42%, 1);
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.nsa_message_item_dot_gray {
|
|
29
|
+
width: 8px;
|
|
30
|
+
height: 8px;
|
|
31
|
+
background: hsla(228, 9%, 66%, 1);
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nsa_body_green {
|
|
36
|
+
background-color: hsla(157, 94%, 42%, 0.1);
|
|
37
|
+
padding: 16px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.nsa_body_gray {
|
|
41
|
+
background-color: #fff;
|
|
42
|
+
padding: 16px;
|
|
43
|
+
box-shadow: 0px 2px 5px #e6e6e6;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nsa_count {
|
|
47
|
+
position: absolute;
|
|
48
|
+
background: rgba(3, 119, 255, 1);
|
|
49
|
+
right: -5px;
|
|
50
|
+
top: -5px;
|
|
51
|
+
color: #fff;
|
|
52
|
+
width: 18px;
|
|
53
|
+
height: 18px;
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
align-items: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.nsa_parent_count {
|
|
61
|
+
position: relative;
|
|
62
|
+
width: max-content;
|
|
63
63
|
}
|
package/dist/index.css
ADDED
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { INSActionMenuProps, INSNotificationProps } from 'namirasoft-site-react';
|
|
3
|
+
export interface NSALayoutListProps
|
|
4
|
+
{
|
|
5
|
+
scope: string;
|
|
6
|
+
logo: string;
|
|
7
|
+
background: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
children: JSX.Element | JSX.Element[];
|
|
11
|
+
notifications: INSNotificationProps[];
|
|
12
|
+
actions: INSActionMenuProps[];
|
|
13
|
+
redirectToView?: () => void;
|
|
14
|
+
edit?: () => void;
|
|
15
|
+
delete?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function NSALayoutList(props: NSALayoutListPropsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { NSLayoutAction } from 'namirasoft-site-react';
|
|
3
|
+
export function NSALayoutList(props) {
|
|
4
|
+
const onLogout = () => {
|
|
5
|
+
console.log("clicked");
|
|
6
|
+
};
|
|
7
|
+
const onNotiffication = () => {
|
|
8
|
+
console.log("clicked");
|
|
9
|
+
};
|
|
10
|
+
let menus = [
|
|
11
|
+
{ src: "https://static.namirasoft.com/image/concept/logout/white.svg", alt: "", onClicked: onLogout, },
|
|
12
|
+
{ src: "https://static.namirasoft.com/image/concept/message/white.svg", alt: "", onClicked: onNotiffication, count: 1 },
|
|
13
|
+
];
|
|
14
|
+
return (_jsx(NSLayoutAction, { header: {
|
|
15
|
+
title: "",
|
|
16
|
+
icons: menus
|
|
17
|
+
}, scope: props.scope, logo: props.logo, background: props.background, title: props.title, description: props.description, actions: props.actions, notifications: props.notifications, children: _jsx("div", { className: "container-fluid", children: props.children }) }));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=NSALayoutList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSALayoutList.js","sourceRoot":"","sources":["../../src/layouts/NSALayoutList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAkBvD,MAAM,UAAU,aAAa,CAAC,KAAyB;IAEtD,MAAM,QAAQ,GAAG,GAAG,EAAE;QAErB,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IACvB,CAAC,CAAA;IAED,MAAM,eAAe,GAAG,GAAG,EAAE;QAE5B,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IACvB,CAAC,CAAA;IAED,IAAI,KAAK,GAAG;QACX,EAAE,GAAG,EAAE,8DAA8D,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,GAAG;QACtG,EAAE,GAAG,EAAE,+DAA+D,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,EAAE;KACvH,CAAC;IAEF,OAAO,CACN,KAAC,cAAc,IACd,MAAM,EACL;YACC,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,KAAK;SACZ,EAEF,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,aAAa,EAAE,KAAK,CAAC,aAAa,YAElC,cAAK,SAAS,EAAC,iBAAiB,YAC9B,KAAK,CAAC,QAAQ,GACV,GACU,CACjB,CAAC;AACH,CAAC"}
|
|
@@ -12,7 +12,7 @@ export class NSASectionList extends Component {
|
|
|
12
12
|
}
|
|
13
13
|
reload() {
|
|
14
14
|
var _a;
|
|
15
|
-
(_a = this.Table.current) === null || _a === void 0 ? void 0 : _a.setRows(
|
|
15
|
+
(_a = this.Table.current) === null || _a === void 0 ? void 0 : _a.setRows(null);
|
|
16
16
|
this.props.entity.server.list(null, this.state.page.current, this.state.page.size).then(response => {
|
|
17
17
|
var _a;
|
|
18
18
|
(_a = this.Table.current) === null || _a === void 0 ? void 0 : _a.setRows(response.rows);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSASectionList.js","sourceRoot":"","sources":["../../src/layouts/NSASectionList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAmBlD,MAAM,OAAO,cAAgF,SAAQ,SAA0G;IAG9M,YAAY,KAAsG;QAEjH,KAAK,CAAC,KAAK,CAAC,CAAC;QAHN,UAAK,GAAG,SAAS,EAAuB,CAAC;QAIhD,IAAI,CAAC,KAAK,GAAG,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,QAA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C,MAAM,GAAY,EACjD,KAAC,cAAc,IAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,GAAI,IAC1C,CACZ,CAAC;IACH,CAAC;CACD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export interface NSASectionNewProps<EntityType> {
|
|
3
|
+
isEdit: boolean;
|
|
4
|
+
get: (id: string) => Promise<EntityType>;
|
|
5
|
+
create: () => Promise<void>;
|
|
6
|
+
update: (id: string) => Promise<void>;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function NSASectionNew<EntityType>(_: NSASectionNewProps<EntityType>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSASectionNew.js","sourceRoot":"","sources":["../../src/layouts/NSASectionNew.tsx"],"names":[],"mappings":";AAWA,MAAM,UAAU,aAAa,CAAa,CAAiC;IAE1E,OAAO,CACN,4BACC,wCAEM,GACJ,CACH,CAAC;AACH,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
.ns_login_container {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.ns_logo {
|
|
9
|
-
text-align: center;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.ns_title {
|
|
13
|
-
font-size: 32px;
|
|
14
|
-
font-weight: 700;
|
|
15
|
-
text-align: center;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.ns_button {
|
|
19
|
-
text-align: center;
|
|
1
|
+
.ns_login_container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ns_logo {
|
|
9
|
+
text-align: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ns_title {
|
|
13
|
+
font-size: 32px;
|
|
14
|
+
font-weight: 700;
|
|
15
|
+
text-align: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ns_button {
|
|
19
|
+
text-align: center;
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "namirasoft-account-react",
|
|
3
|
-
"title": "Namirasoft Account React NPM Package",
|
|
4
|
-
"description": "Namira Software Corporation Account React NPM Package",
|
|
5
|
-
"icon": "logo.png",
|
|
6
|
-
"logo": "https://static.namirasoft.com/image/namirasoft/account/logo/name.png",
|
|
7
|
-
"language": "ts",
|
|
8
|
-
"framework": "npm",
|
|
9
|
-
"application": "package",
|
|
10
|
-
"private": false,
|
|
11
|
-
"version": "1.3.
|
|
12
|
-
"author": "Amir Abolhasani",
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"main": "./dist/main.js",
|
|
15
|
-
"types": "./dist/main.d.ts",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"start": "react-app-rewired start",
|
|
18
|
-
"build": "npm run copy",
|
|
19
|
-
"test": "react-app-rewired test",
|
|
20
|
-
"eject": "react-app-rewired eject",
|
|
21
|
-
"copy": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.svg src/**/*.png src/**/*.jpg dist/"
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@types/device-uuid": "^1.0.3",
|
|
25
|
-
"@types/react": "^18.3.3",
|
|
26
|
-
"device-uuid": "^1.0.4",
|
|
27
|
-
"namirasoft-account": "^1.3.27",
|
|
28
|
-
"namirasoft-account-client": "^1.3.0",
|
|
29
|
-
"namirasoft-core": "^1.3.49",
|
|
30
|
-
"namirasoft-site-react": "^1.3.
|
|
31
|
-
"os-browserify": "^0.3.0",
|
|
32
|
-
"path-browserify": "^1.0.1",
|
|
33
|
-
"process": "^0.11.10",
|
|
34
|
-
"query-string": "^9.0.0",
|
|
35
|
-
"react": "^18.3.1",
|
|
36
|
-
"react-app-rewired": "^2.2.1",
|
|
37
|
-
"react-dom": "^18.3.1",
|
|
38
|
-
"react-router-dom": "^6.23.1",
|
|
39
|
-
"react-scripts": "5.0.1",
|
|
40
|
-
"run": "^1.5.0"
|
|
41
|
-
},
|
|
42
|
-
"eslintConfig": {
|
|
43
|
-
"extends": [
|
|
44
|
-
"react-app",
|
|
45
|
-
"react-app/jest"
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
"skip": {
|
|
49
|
-
"content": [
|
|
50
|
-
"/tsconfig.json"
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
"browserslist": {
|
|
54
|
-
"production": [
|
|
55
|
-
">0.2%",
|
|
56
|
-
"not dead",
|
|
57
|
-
"not op_mini all"
|
|
58
|
-
],
|
|
59
|
-
"development": [
|
|
60
|
-
"last 1 chrome version",
|
|
61
|
-
"last 1 firefox version",
|
|
62
|
-
"last 1 safari version"
|
|
63
|
-
]
|
|
64
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "namirasoft-account-react",
|
|
3
|
+
"title": "Namirasoft Account React NPM Package",
|
|
4
|
+
"description": "Namira Software Corporation Account React NPM Package",
|
|
5
|
+
"icon": "logo.png",
|
|
6
|
+
"logo": "https://static.namirasoft.com/image/namirasoft/account/logo/name.png",
|
|
7
|
+
"language": "ts",
|
|
8
|
+
"framework": "npm",
|
|
9
|
+
"application": "package",
|
|
10
|
+
"private": false,
|
|
11
|
+
"version": "1.3.78",
|
|
12
|
+
"author": "Amir Abolhasani",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"main": "./dist/main.js",
|
|
15
|
+
"types": "./dist/main.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"start": "react-app-rewired start",
|
|
18
|
+
"build": "npm run copy",
|
|
19
|
+
"test": "react-app-rewired test",
|
|
20
|
+
"eject": "react-app-rewired eject",
|
|
21
|
+
"copy": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.svg src/**/*.png src/**/*.jpg dist/"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@types/device-uuid": "^1.0.3",
|
|
25
|
+
"@types/react": "^18.3.3",
|
|
26
|
+
"device-uuid": "^1.0.4",
|
|
27
|
+
"namirasoft-account": "^1.3.27",
|
|
28
|
+
"namirasoft-account-client": "^1.3.0",
|
|
29
|
+
"namirasoft-core": "^1.3.49",
|
|
30
|
+
"namirasoft-site-react": "^1.3.224",
|
|
31
|
+
"os-browserify": "^0.3.0",
|
|
32
|
+
"path-browserify": "^1.0.1",
|
|
33
|
+
"process": "^0.11.10",
|
|
34
|
+
"query-string": "^9.0.0",
|
|
35
|
+
"react": "^18.3.1",
|
|
36
|
+
"react-app-rewired": "^2.2.1",
|
|
37
|
+
"react-dom": "^18.3.1",
|
|
38
|
+
"react-router-dom": "^6.23.1",
|
|
39
|
+
"react-scripts": "5.0.1",
|
|
40
|
+
"run": "^1.5.0"
|
|
41
|
+
},
|
|
42
|
+
"eslintConfig": {
|
|
43
|
+
"extends": [
|
|
44
|
+
"react-app",
|
|
45
|
+
"react-app/jest"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"skip": {
|
|
49
|
+
"content": [
|
|
50
|
+
"/tsconfig.json"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"browserslist": {
|
|
54
|
+
"production": [
|
|
55
|
+
">0.2%",
|
|
56
|
+
"not dead",
|
|
57
|
+
"not op_mini all"
|
|
58
|
+
],
|
|
59
|
+
"development": [
|
|
60
|
+
"last 1 chrome version",
|
|
61
|
+
"last 1 firefox version",
|
|
62
|
+
"last 1 safari version"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
65
|
}
|
package/public/index.html
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<!-- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> -->
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
-
<meta name="theme-color" content="#000000" />
|
|
9
|
-
<meta name="description" content="Web site created using create-react-app" />
|
|
10
|
-
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
|
|
11
|
-
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
|
|
12
|
-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
-
<!-- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> -->
|
|
14
|
-
<title>React App</title>
|
|
15
|
-
</head>
|
|
16
|
-
|
|
17
|
-
<body>
|
|
18
|
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
19
|
-
<div id="root"></div>
|
|
20
|
-
</body>
|
|
21
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<!-- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> -->
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
+
<meta name="theme-color" content="#000000" />
|
|
9
|
+
<meta name="description" content="Web site created using create-react-app" />
|
|
10
|
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
|
|
11
|
+
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
|
|
12
|
+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
+
<!-- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> -->
|
|
14
|
+
<title>React App</title>
|
|
15
|
+
</head>
|
|
16
|
+
|
|
17
|
+
<body>
|
|
18
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
19
|
+
<div id="root"></div>
|
|
20
|
+
</body>
|
|
21
|
+
|
|
22
22
|
</html>
|