namirasoft-account-react 1.4.178 → 1.4.180
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.
|
@@ -47,15 +47,18 @@ export class NSAAccessListDialog extends Component {
|
|
|
47
47
|
server.access.SetOwner({ owner_id: null }).then(() => {
|
|
48
48
|
this.props.onClose();
|
|
49
49
|
}).catch(() => { });
|
|
50
|
-
}, children: _jsxs("div", { className: 'd-flex flex-column', style: { padding: "8px 0px", width: "100%" }, children: [_jsx("p", { className: Styles.nsa_access_list_dialog_item_name, children: `${permission.
|
|
50
|
+
}, children: _jsxs("div", { className: 'd-flex flex-column', style: { padding: "8px 0px", width: "100%" }, children: [_jsx("p", { className: Styles.nsa_access_list_dialog_item_name, children: `${permission.from_first_name} ${permission.from_last_name}`.trim() }), _jsx("p", { className: Styles.nsa_access_list_dialog_item_email, children: permission.from_email }), _jsx("div", { style: { width: "100%", display: "flex", justifyContent: "left" }, children: _jsx(NSCopy, { id: current.user_id, classList: ["flex-row"], children: _jsx("p", { className: `text-center ${Styles.nsa_access_list_dialog_item_id}`, style: { cursor: "pointer" }, children: permission.user_id }) }) })] }) }, permission.id), add_space && _jsx(NSSpace, { size: NSSpaceSizeType.MINI })] }));
|
|
51
51
|
};
|
|
52
52
|
let me = {
|
|
53
53
|
id: "",
|
|
54
54
|
user_id,
|
|
55
55
|
to_user_id: user_id,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
from_first_name: first_name,
|
|
57
|
+
from_last_name: last_name,
|
|
58
|
+
from_email: email,
|
|
59
|
+
to_first_name: first_name,
|
|
60
|
+
to_last_name: last_name,
|
|
61
|
+
to_email: email,
|
|
59
62
|
default: this.state.permissions.filter(x => x.default).length === 0,
|
|
60
63
|
created_at: new Date(),
|
|
61
64
|
updated_at: new Date()
|
|
@@ -64,9 +67,9 @@ export class NSAAccessListDialog extends Component {
|
|
|
64
67
|
let current = permissions.filter(x => x.default)[0];
|
|
65
68
|
permissions = permissions.filter(x => !x.default);
|
|
66
69
|
let content_permission = permissions.map((item, index) => generate(item, index !== permissions.length - 1));
|
|
67
|
-
let content_profile = _jsx(_Fragment, { children: _jsxs("div", { className: 'text-center d-flex flex-column justify-content-center align-items-center pb-2', children: [_jsx("img", { src: "https://static.namirasoft.com/image/namirasoft/access/logo/circle.png", alt: 'No Profile', width: 96, height: 96, className: 'rounded-circle', style: { cursor: "default", pointerEvents: "none" } }), _jsx("p", { className: "pb-2", children: "You are working as:" }), _jsxs("div", { className: 'd-flex flex-column', children: [_jsx("p", { className: Styles.nsa_access_list_dialog_main_name, children: `${current.
|
|
70
|
+
let content_profile = _jsx(_Fragment, { children: _jsxs("div", { className: 'text-center d-flex flex-column justify-content-center align-items-center pb-2', children: [_jsx("img", { src: "https://static.namirasoft.com/image/namirasoft/access/logo/circle.png", alt: 'No Profile', width: 96, height: 96, className: 'rounded-circle', style: { cursor: "default", pointerEvents: "none" } }), _jsx("p", { className: "pb-2", children: "You are working as:" }), _jsxs("div", { className: 'd-flex flex-column', children: [_jsx("p", { className: Styles.nsa_access_list_dialog_main_name, children: `${current.from_first_name} ${current.from_last_name}`.trim() }), _jsx("p", { className: Styles.nsa_access_list_dialog_main_email, children: current.from_email }), _jsx(NSCopy, { classList: ["flex-row"], id: current.user_id, children: _jsx("p", { className: `text-center ${Styles.nsa_access_list_dialog_main_id}`, style: { cursor: "pointer" }, children: current.user_id }) })] })] }) });
|
|
68
71
|
content = (_jsxs(_Fragment, { children: [_jsx("a", { className: 'text-left w-100', href: 'https://access.namirasoft.com/permission/incoming/list/', target: "_blank", rel: "noopener noreferrer", children: _jsx("span", { className: 'd-flex justify-content-left', children: "Manage Accesss" }) }), _jsxs("section", { className: Styles.nsa_access_list_dialog_container, children: [content_profile, _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx(NSLine, {}), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), content_permission.length === 0 &&
|
|
69
|
-
_jsxs("p", { children: ["There is no ", _jsx("strong", { children: "Incoming Permission" }), ".", _jsx("br", {}), "If you would like to get access to other user's account and act on their behalf, you must request them to grant you ", _jsx("strong", { children: "Outgoing Permission" }), " using ", _jsx("a", { href: 'https://
|
|
72
|
+
_jsxs("p", { children: ["There is no ", _jsx("strong", { children: "Incoming Permission" }), ".", _jsx("br", {}), "If you would like to get access to other user's account and act on their behalf, you must request them to grant you ", _jsx("strong", { children: "Outgoing Permission" }), " using ", _jsx("a", { href: 'https://access.namirasoft.com/permission/outgoing/list', target: '_blank', rel: "noreferrer", children: "Namirasoft Access" }), " from their account."] }), content_permission.length > 0 &&
|
|
70
73
|
_jsxs(_Fragment, { children: [_jsx("p", { children: "Switch user as:" }), _jsx(NSSpace, { size: NSSpaceSizeType.MINI }), content_permission] })] })] }));
|
|
71
74
|
}
|
|
72
75
|
return (_jsx(NSDialog, Object.assign({}, this.props, { children: content })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSAAccessListDialog.js","sourceRoot":"","sources":["../../src/components/NSAAccessListDialog.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,sBAAsB,EAAiB,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAiB,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAErH,OAAO,MAAM,MAAM,kCAAkC,CAAC;AAYtD,MAAM,OAAO,mBAAoB,SAAQ,SAA6D;IAIrG,YAAY,KAA+B;QAE1C,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,SAAS,EAAE,CAAC;QAC5B,IAAI,CAAC,kBAAk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",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.180",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@types/device-uuid": "^1.0.3",
|
|
27
27
|
"@types/react": "^18.3.13",
|
|
28
28
|
"device-uuid": "^1.0.4",
|
|
29
|
-
"namirasoft-access": "^1.4.
|
|
29
|
+
"namirasoft-access": "^1.4.43",
|
|
30
30
|
"namirasoft-account": "^1.4.49",
|
|
31
31
|
"namirasoft-account-client": "^1.4.0",
|
|
32
32
|
"namirasoft-api-product": "^1.4.12",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"namirasoft-message": "^1.4.12",
|
|
37
37
|
"namirasoft-site": "^1.4.8",
|
|
38
38
|
"namirasoft-site-map": "^1.4.9",
|
|
39
|
-
"namirasoft-site-react": "^1.4.
|
|
39
|
+
"namirasoft-site-react": "^1.4.235",
|
|
40
40
|
"namirasoft-workspace": "^1.4.12",
|
|
41
41
|
"os-browserify": "^0.3.0",
|
|
42
42
|
"path-browserify": "^1.0.1",
|
|
@@ -82,8 +82,8 @@ export class NSAAccessListDialog extends Component<NSAAccessListDialogProps, NSA
|
|
|
82
82
|
}}
|
|
83
83
|
>
|
|
84
84
|
<div className='d-flex flex-column' style={{ padding: "8px 0px", width: "100%" }}>
|
|
85
|
-
<p className={Styles.nsa_access_list_dialog_item_name}>{`${permission.
|
|
86
|
-
<p className={Styles.nsa_access_list_dialog_item_email}>{permission.
|
|
85
|
+
<p className={Styles.nsa_access_list_dialog_item_name}>{`${permission.from_first_name} ${permission.from_last_name}`.trim()}</p>
|
|
86
|
+
<p className={Styles.nsa_access_list_dialog_item_email}>{permission.from_email}</p>
|
|
87
87
|
<div style={{ width: "100%", display: "flex", justifyContent: "left" }}>
|
|
88
88
|
<NSCopy id={current.user_id}
|
|
89
89
|
classList={["flex-row"]}
|
|
@@ -103,9 +103,12 @@ export class NSAAccessListDialog extends Component<NSAAccessListDialogProps, NSA
|
|
|
103
103
|
id: "",
|
|
104
104
|
user_id,
|
|
105
105
|
to_user_id: user_id,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
from_first_name: first_name,
|
|
107
|
+
from_last_name: last_name,
|
|
108
|
+
from_email: email,
|
|
109
|
+
to_first_name: first_name,
|
|
110
|
+
to_last_name: last_name,
|
|
111
|
+
to_email: email,
|
|
109
112
|
default: this.state.permissions.filter(x => x.default).length === 0,
|
|
110
113
|
created_at: new Date(),
|
|
111
114
|
updated_at: new Date()
|
|
@@ -122,8 +125,8 @@ export class NSAAccessListDialog extends Component<NSAAccessListDialogProps, NSA
|
|
|
122
125
|
<img src={"https://static.namirasoft.com/image/namirasoft/access/logo/circle.png"} alt='No Profile' width={96} height={96} className='rounded-circle' style={{ cursor: "default", pointerEvents: "none" }} />
|
|
123
126
|
<p className="pb-2">You are working as:</p>
|
|
124
127
|
<div className='d-flex flex-column'>
|
|
125
|
-
<p className={Styles.nsa_access_list_dialog_main_name}>{`${current.
|
|
126
|
-
<p className={Styles.nsa_access_list_dialog_main_email}>{current.
|
|
128
|
+
<p className={Styles.nsa_access_list_dialog_main_name}>{`${current.from_first_name} ${current.from_last_name}`.trim()}</p>
|
|
129
|
+
<p className={Styles.nsa_access_list_dialog_main_email}>{current.from_email}</p>
|
|
127
130
|
<NSCopy classList={["flex-row"]} id={current.user_id}>
|
|
128
131
|
<p className={`text-center ${Styles.nsa_access_list_dialog_main_id}`} style={{ cursor: "pointer" }} >
|
|
129
132
|
{current.user_id}
|
|
@@ -144,7 +147,7 @@ export class NSAAccessListDialog extends Component<NSAAccessListDialogProps, NSA
|
|
|
144
147
|
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
145
148
|
{
|
|
146
149
|
content_permission.length === 0 &&
|
|
147
|
-
<p>There is no <strong>Incoming Permission</strong>.<br />If you would like to get access to other user's account and act on their behalf, you must request them to grant you <strong>Outgoing Permission</strong> using <a href='https://
|
|
150
|
+
<p>There is no <strong>Incoming Permission</strong>.<br />If you would like to get access to other user's account and act on their behalf, you must request them to grant you <strong>Outgoing Permission</strong> using <a href='https://access.namirasoft.com/permission/outgoing/list' target='_blank' rel="noreferrer">Namirasoft Access</a> from their account.</p>
|
|
148
151
|
}
|
|
149
152
|
{
|
|
150
153
|
content_permission.length > 0 &&
|