namirasoft-account-react 1.3.286 → 1.3.288
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.
|
@@ -7,13 +7,14 @@ export interface NSAAccessListDialogProps extends INSARouterProps, NSDialogProps
|
|
|
7
7
|
}
|
|
8
8
|
export interface NSAAccessListDialogState {
|
|
9
9
|
permissions: PermissionRow[] | null;
|
|
10
|
+
copied: boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare function copyButton(text: string): void;
|
|
12
12
|
export declare class NSAAccessListDialog extends Component<NSAAccessListDialogProps, NSAAccessListDialogState> {
|
|
13
13
|
private toastRef;
|
|
14
14
|
constructor(props: NSAAccessListDialogProps);
|
|
15
15
|
componentDidMount(): void;
|
|
16
16
|
componentWillUnmount(): void;
|
|
17
|
+
private copyButton;
|
|
17
18
|
private handleClickOutside;
|
|
18
19
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
}
|
|
@@ -2,16 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { Component, createRef } from 'react';
|
|
3
3
|
import { EnvService } from 'namirasoft-core';
|
|
4
4
|
import { NamirasoftAccessServer } from 'namirasoft-access';
|
|
5
|
-
import { NSLine, NSLoading, NSDialog } from 'namirasoft-site-react';
|
|
5
|
+
import { NSLine, NSLoading, NSDialog, NSBarNotification, NotificationType, NSBarNotificationColor } from 'namirasoft-site-react';
|
|
6
6
|
import Styles from './NSAAccessListDialog.module.css';
|
|
7
|
-
export function copyButton(text) {
|
|
8
|
-
return (navigator.clipboard.writeText(text),
|
|
9
|
-
alert(`User id copied : ${text}`));
|
|
10
|
-
}
|
|
11
7
|
export class NSAAccessListDialog extends Component {
|
|
12
8
|
constructor(props) {
|
|
13
9
|
super(props);
|
|
14
|
-
this.state = { permissions: null };
|
|
10
|
+
this.state = { permissions: null, copied: false };
|
|
15
11
|
this.toastRef = createRef();
|
|
16
12
|
this.handleClickOutside = this.handleClickOutside.bind(this);
|
|
17
13
|
}
|
|
@@ -26,6 +22,10 @@ export class NSAAccessListDialog extends Component {
|
|
|
26
22
|
componentWillUnmount() {
|
|
27
23
|
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
28
24
|
}
|
|
25
|
+
copyButton(text) {
|
|
26
|
+
this.setState({ copied: true });
|
|
27
|
+
return navigator.clipboard.writeText(text);
|
|
28
|
+
}
|
|
29
29
|
handleClickOutside(event) {
|
|
30
30
|
if (this.toastRef.current && !this.toastRef.current.contains(event.target))
|
|
31
31
|
this.props.onClose();
|
|
@@ -69,12 +69,13 @@ export class NSAAccessListDialog extends Component {
|
|
|
69
69
|
let permissions = [me, ...this.state.permissions];
|
|
70
70
|
let current = permissions.filter(x => x.default)[0];
|
|
71
71
|
content = permissions.filter(x => !x.default).map(generate);
|
|
72
|
-
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: 103, height: 103, className: 'rounded-circle', style: { cursor: "default", pointerEvents: "none" } }), _jsx("h6", { className: "pb-2", children: "Your current user is:" }), _jsxs("div", { className: 'd-flex flex-row justify-content-center align-items-center', children: [_jsx("h2", { className: 'text-center', onClick: () => { copyButton(current.user_id); }, style: { cursor: "pointer" }, children: current.user_id }), _jsx("img", { src: 'https://static.namirasoft.com/image/concept/copy/blue.svg', alt: 'Copy_Button', width: 16, height: 16, onClick: () => { copyButton(current.user_id); }, style: {
|
|
72
|
+
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: 103, height: 103, className: 'rounded-circle', style: { cursor: "default", pointerEvents: "none" } }), _jsx("h6", { className: "pb-2", children: "Your current user is:" }), _jsxs("div", { className: 'd-flex flex-row justify-content-center align-items-center', children: [_jsx("h2", { className: 'text-center', onClick: () => { this.copyButton(current.user_id); }, style: { cursor: "pointer" }, children: current.user_id }), _jsx("img", { src: 'https://static.namirasoft.com/image/concept/copy/blue.svg', alt: 'Copy_Button', width: 16, height: 16, onClick: () => { this.copyButton(current.user_id); }, style: {
|
|
73
73
|
cursor: "pointer",
|
|
74
74
|
marginLeft: "8px"
|
|
75
75
|
} })] }), _jsx("h6", { children: `${current.firstName} ${current.lastName}`.trim() })] }) });
|
|
76
76
|
}
|
|
77
|
-
return (_jsxs(NSDialog, Object.assign({}, this.props, { children: [_jsx("a", { className: 'text-left w-100', href: 'https://access.namirasoft.com/', children: _jsx("span", { className: 'd-flex justify-content-left', children: "Manage Accesss" }) }), _jsxs("section", { className: Styles.ns_access_container, children: [profile,
|
|
77
|
+
return (_jsxs(NSDialog, Object.assign({}, this.props, { children: [_jsx("a", { className: 'text-left w-100', href: 'https://access.namirasoft.com/', children: _jsx("span", { className: 'd-flex justify-content-left', children: "Manage Accesss" }) }), _jsxs("section", { className: Styles.ns_access_container, children: [profile, this.state.copied &&
|
|
78
|
+
_jsx(NSBarNotification, { type: NotificationType.Information, text: "Copied", color: NSBarNotificationColor.BLUE, onClose: () => { } }), _jsx(NSLine, {}), _jsx("h6", { children: "Switch user as:" }), content !== null &&
|
|
78
79
|
_jsx("p", { children: "There is not any other user" })] })] })));
|
|
79
80
|
}
|
|
80
81
|
}
|
|
@@ -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,
|
|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,IAAI;4BAChB,sDAAkC,IAE1B,KACC,CACZ,CAAC;IACH,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.3.
|
|
11
|
+
"version": "1.3.288",
|
|
12
12
|
"author": "Amir Abolhasani, Sepideh Mazloumi, Hooman Shashaeh",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"namirasoft-history": "^1.4.3",
|
|
34
34
|
"namirasoft-message": "^1.4.2",
|
|
35
35
|
"namirasoft-project": "^1.3.17",
|
|
36
|
-
"namirasoft-site-react": "^1.3.
|
|
36
|
+
"namirasoft-site-react": "^1.3.465",
|
|
37
37
|
"os-browserify": "^0.3.0",
|
|
38
38
|
"path-browserify": "^1.0.1",
|
|
39
39
|
"process": "^0.11.10",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Component, createRef } from 'react';
|
|
2
2
|
import { EnvService } from 'namirasoft-core'
|
|
3
3
|
import { NamirasoftAccessServer, PermissionRow } from 'namirasoft-access';
|
|
4
|
-
import { NSLine, NSLoading, NSDialog, NSDialogProps } from 'namirasoft-site-react';
|
|
4
|
+
import { NSLine, NSLoading, NSDialog, NSDialogProps, NSBarNotification, NotificationType, NSBarNotificationColor } from 'namirasoft-site-react';
|
|
5
5
|
import { INSARouterProps } from '../INSARouterProps';
|
|
6
6
|
import Styles from './NSAAccessListDialog.module.css';
|
|
7
7
|
|
|
@@ -13,16 +13,9 @@ export interface NSAAccessListDialogProps extends INSARouterProps, NSDialogProps
|
|
|
13
13
|
export interface NSAAccessListDialogState
|
|
14
14
|
{
|
|
15
15
|
permissions: PermissionRow[] | null;
|
|
16
|
+
copied: boolean;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
export function copyButton(text: string)
|
|
19
|
-
{
|
|
20
|
-
return (
|
|
21
|
-
navigator.clipboard.writeText(text),
|
|
22
|
-
alert(`User id copied : ${text}`)
|
|
23
|
-
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
19
|
export class NSAAccessListDialog extends Component<NSAAccessListDialogProps, NSAAccessListDialogState>
|
|
27
20
|
{
|
|
28
21
|
private toastRef: React.RefObject<HTMLDivElement>;
|
|
@@ -30,7 +23,7 @@ export class NSAAccessListDialog extends Component<NSAAccessListDialogProps, NSA
|
|
|
30
23
|
constructor(props: NSAAccessListDialogProps)
|
|
31
24
|
{
|
|
32
25
|
super(props);
|
|
33
|
-
this.state = { permissions: null };
|
|
26
|
+
this.state = { permissions: null, copied: false };
|
|
34
27
|
this.toastRef = createRef();
|
|
35
28
|
this.handleClickOutside = this.handleClickOutside.bind(this);
|
|
36
29
|
}
|
|
@@ -48,6 +41,11 @@ export class NSAAccessListDialog extends Component<NSAAccessListDialogProps, NSA
|
|
|
48
41
|
{
|
|
49
42
|
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
50
43
|
}
|
|
44
|
+
private copyButton(text: string)
|
|
45
|
+
{
|
|
46
|
+
this.setState({ copied: true });
|
|
47
|
+
return navigator.clipboard.writeText(text);
|
|
48
|
+
}
|
|
51
49
|
private handleClickOutside(event: MouseEvent)
|
|
52
50
|
{
|
|
53
51
|
if (this.toastRef.current && !this.toastRef.current.contains(event.target as Node))
|
|
@@ -118,7 +116,7 @@ export class NSAAccessListDialog extends Component<NSAAccessListDialogProps, NSA
|
|
|
118
116
|
<h6 className="pb-2">Your current user is:</h6>
|
|
119
117
|
<div className='d-flex flex-row justify-content-center align-items-center'>
|
|
120
118
|
<h2 className='text-center'
|
|
121
|
-
onClick={() => { copyButton(current.user_id) }}
|
|
119
|
+
onClick={() => { this.copyButton(current.user_id) }}
|
|
122
120
|
style={{ cursor: "pointer" }}
|
|
123
121
|
>{current.user_id}
|
|
124
122
|
</h2>
|
|
@@ -126,7 +124,7 @@ export class NSAAccessListDialog extends Component<NSAAccessListDialogProps, NSA
|
|
|
126
124
|
src='https://static.namirasoft.com/image/concept/copy/blue.svg'
|
|
127
125
|
alt='Copy_Button'
|
|
128
126
|
width={16} height={16}
|
|
129
|
-
onClick={() => { copyButton(current.user_id) }}
|
|
127
|
+
onClick={() => { this.copyButton(current.user_id) }}
|
|
130
128
|
style={{
|
|
131
129
|
cursor: "pointer",
|
|
132
130
|
marginLeft: "8px"
|
|
@@ -144,6 +142,9 @@ export class NSAAccessListDialog extends Component<NSAAccessListDialogProps, NSA
|
|
|
144
142
|
</a>
|
|
145
143
|
<section className={Styles.ns_access_container} >
|
|
146
144
|
{profile}
|
|
145
|
+
{this.state.copied &&
|
|
146
|
+
<NSBarNotification type={NotificationType.Information} text="Copied" color={NSBarNotificationColor.BLUE} onClose={() => { }} />
|
|
147
|
+
}
|
|
147
148
|
<NSLine />
|
|
148
149
|
<h6>Switch user as:</h6>
|
|
149
150
|
{content !== null &&
|