namirasoft-account-react 1.4.357 → 1.4.359
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/.env.template +15 -15
- package/config-overrides.js +72 -72
- package/dist/NSARouterMaker.d.ts +4 -4
- package/dist/NSARouterMaker.js +19 -11
- package/dist/NSARouterMaker.js.map +1 -1
- package/dist/{NSARouterMakerComponent.d.ts → NSARouterMakerConfig.d.ts} +7 -1
- package/dist/NSARouterMakerConfig.js +2 -0
- package/dist/NSARouterMakerConfig.js.map +1 -0
- package/dist/Router.js +6 -0
- package/dist/Router.js.map +1 -1
- package/dist/components/NSAAccessListDialog.module.css +71 -71
- package/dist/components/NSAMessageListDialog.module.css +99 -99
- package/dist/components/NSAProductListDialog.module.css +44 -44
- package/dist/components/NSAUserDialog.module.css +67 -66
- package/dist/components/NSAWorkspaceListDialog.module.css +41 -41
- package/dist/layouts/NSASectionEditTabPage.module.css +4 -4
- package/dist/layouts/NSASectionList.module.css +21 -21
- package/dist/layouts/NSASectionViewTabPage.module.css +47 -47
- package/dist/main.d.ts +2 -1
- package/dist/main.js +2 -1
- package/dist/main.js.map +1 -1
- package/dist/pages/NSAConsentPage.module.css +26 -26
- package/dist/pages/NSAHomePage.module.css +23 -23
- package/dist/pages/NSALoginPage.module.css +26 -26
- package/dist/pages/NSAPhoneVerificationPage.d.ts +6 -0
- package/dist/pages/NSAPhoneVerificationPage.js +35 -0
- package/dist/pages/NSAPhoneVerificationPage.js.map +1 -0
- package/dist/pages/NSAVerificationPage.module.css +31 -31
- package/package.json +78 -78
- package/public/index.html +21 -21
- package/src/App.css +31 -31
- package/src/App.tsx +93 -93
- package/src/CTFRow.ts +7 -7
- package/src/ConsentCacheService.ts +25 -25
- package/src/IEntityInfo.ts +31 -31
- package/src/NSARouterMaker.tsx +139 -129
- package/src/{NSARouterMakerComponent.ts → NSARouterMakerConfig.ts} +15 -9
- package/src/NSARouterMakerProps.ts +22 -22
- package/src/Router.tsx +45 -39
- package/src/UseParams.tsx +18 -18
- package/src/components/NSAAccessListDialog.module.css +71 -71
- package/src/components/NSAAccessListDialog.tsx +178 -178
- package/src/components/NSAMessageListDialog.module.css +99 -99
- package/src/components/NSAMessageListDialog.tsx +141 -141
- package/src/components/NSAProductListDialog.module.css +44 -44
- package/src/components/NSAProductListDialog.tsx +106 -106
- package/src/components/NSAUserDialog.module.css +67 -66
- package/src/components/NSAUserDialog.tsx +123 -123
- package/src/components/NSAWorkspaceListDialog.module.css +41 -41
- package/src/components/NSAWorkspaceListDialog.tsx +148 -148
- package/src/components/NSBoxSecret.tsx +106 -106
- package/src/index.tsx +24 -24
- package/src/layouts/Actions.ts +145 -145
- package/src/layouts/CFTUtil.ts +18 -18
- package/src/layouts/NSALayout.tsx +710 -710
- package/src/layouts/NSASectionEdit.tsx +218 -218
- package/src/layouts/NSASectionEditTabPage.module.css +4 -4
- package/src/layouts/NSASectionEditTabPage.tsx +250 -250
- package/src/layouts/NSASectionList.module.css +21 -21
- package/src/layouts/NSASectionList.tsx +500 -500
- package/src/layouts/NSASectionView.tsx +94 -94
- package/src/layouts/NSASectionViewTabMore.tsx +77 -77
- package/src/layouts/NSASectionViewTabPage.module.css +47 -47
- package/src/layouts/NSASectionViewTabPage.tsx +344 -344
- package/src/main.ts +20 -19
- package/src/pages/NSAConsentPage.module.css +26 -26
- package/src/pages/NSAConsentPage.tsx +120 -120
- package/src/pages/NSAEmailVerificationPage.tsx +30 -30
- package/src/pages/NSAHomePage.module.css +23 -23
- package/src/pages/NSAHomePage.tsx +76 -76
- package/src/pages/NSALoginPage.module.css +26 -26
- package/src/pages/NSALoginPage.tsx +87 -87
- package/src/pages/NSAPhoneVerificationPage.tsx +46 -0
- package/src/pages/NSAVerificationPage.module.css +31 -31
- package/src/pages/NSAVerificationPage.tsx +172 -172
- package/src/pages/PaymentRequired.tsx +74 -74
- package/tsconfig.json +43 -43
- package/dist/App.css +0 -32
- package/dist/NSARouterMakerComponent.js +0 -2
- package/dist/NSARouterMakerComponent.js.map +0 -1
- package/dist/index.css +0 -0
package/.env.template
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
## BASE
|
|
2
|
-
REACT_APP_BASE_PATH=""
|
|
3
|
-
|
|
4
|
-
## SITE
|
|
5
|
-
REACT_APP_BASE_URL_ACCESS="https://access.namirasoft.com/api/v1"
|
|
6
|
-
REACT_APP_BASE_URL_ACCOUNT="https://account.namirasoft.com/api/v1"
|
|
7
|
-
REACT_APP_BASE_URL_ACCOUNT_CONSOLE="https://account.namirasoft.com"
|
|
8
|
-
REACT_APP_BASE_URL_API_LINK="https://namirasoft.com/api/link/v1"
|
|
9
|
-
REACT_APP_BASE_URL_API_PRODUCT="https://namirasoft.com/api/product/v1"
|
|
10
|
-
REACT_APP_BASE_URL_FIELD="https://field.namirasoft.com/api/v1";
|
|
11
|
-
REACT_APP_BASE_URL_HISTORY="https://history.namirasoft.com/api/v1";
|
|
12
|
-
REACT_APP_BASE_URL_HISTORY_CONSOLE="https://history.namirasoft.com";
|
|
13
|
-
REACT_APP_BASE_URL_MESSAGE="https://message.namirasoft.com/api/v1";
|
|
14
|
-
REACT_APP_BASE_URL_MESSAGE_CONSOLE="https://message.namirasoft.com"
|
|
15
|
-
REACT_APP_BASE_URL_SECRET="https://secret.namirasoft.com/api/v1";
|
|
1
|
+
## BASE
|
|
2
|
+
REACT_APP_BASE_PATH=""
|
|
3
|
+
|
|
4
|
+
## SITE
|
|
5
|
+
REACT_APP_BASE_URL_ACCESS="https://access.namirasoft.com/api/v1"
|
|
6
|
+
REACT_APP_BASE_URL_ACCOUNT="https://account.namirasoft.com/api/v1"
|
|
7
|
+
REACT_APP_BASE_URL_ACCOUNT_CONSOLE="https://account.namirasoft.com"
|
|
8
|
+
REACT_APP_BASE_URL_API_LINK="https://namirasoft.com/api/link/v1"
|
|
9
|
+
REACT_APP_BASE_URL_API_PRODUCT="https://namirasoft.com/api/product/v1"
|
|
10
|
+
REACT_APP_BASE_URL_FIELD="https://field.namirasoft.com/api/v1";
|
|
11
|
+
REACT_APP_BASE_URL_HISTORY="https://history.namirasoft.com/api/v1";
|
|
12
|
+
REACT_APP_BASE_URL_HISTORY_CONSOLE="https://history.namirasoft.com";
|
|
13
|
+
REACT_APP_BASE_URL_MESSAGE="https://message.namirasoft.com/api/v1";
|
|
14
|
+
REACT_APP_BASE_URL_MESSAGE_CONSOLE="https://message.namirasoft.com"
|
|
15
|
+
REACT_APP_BASE_URL_SECRET="https://secret.namirasoft.com/api/v1";
|
|
16
16
|
REACT_APP_BASE_URL_WORKSPACE="https://workspace.namirasoft.com/api/v1"
|
package/config-overrides.js
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
|
|
2
|
-
const webpack = require('webpack');
|
|
3
|
-
|
|
4
|
-
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
|
|
5
|
-
|
|
6
|
-
module.exports = function config_overrides(config, webpackEnv)
|
|
7
|
-
{
|
|
8
|
-
console.log('overriding webpack config...');
|
|
9
|
-
const isEnvDevelopment = webpackEnv === 'development';
|
|
10
|
-
const isEnvProduction = webpackEnv === 'production';
|
|
11
|
-
const loaders = config.module.rules[1].oneOf;
|
|
12
|
-
|
|
13
|
-
loaders.splice(loaders.length - 1, 0, {
|
|
14
|
-
test: /\.(js|mjs|cjs)$/,
|
|
15
|
-
exclude: /@babel(?:\/|\\{1,2})runtime/,
|
|
16
|
-
loader: require.resolve('babel-loader'),
|
|
17
|
-
options: {
|
|
18
|
-
babelrc: false,
|
|
19
|
-
configFile: false,
|
|
20
|
-
compact: false,
|
|
21
|
-
presets: [
|
|
22
|
-
[
|
|
23
|
-
require.resolve('babel-preset-react-app/dependencies'),
|
|
24
|
-
{ helpers: true },
|
|
25
|
-
],
|
|
26
|
-
],
|
|
27
|
-
cacheDirectory: true,
|
|
28
|
-
// See #6846 for context on why cacheCompression is disabled
|
|
29
|
-
cacheCompression: false,
|
|
30
|
-
// @remove-on-eject-begin
|
|
31
|
-
cacheIdentifier: getCacheIdentifier(
|
|
32
|
-
isEnvProduction
|
|
33
|
-
? 'production'
|
|
34
|
-
: isEnvDevelopment && 'development',
|
|
35
|
-
[
|
|
36
|
-
'babel-plugin-named-asset-import',
|
|
37
|
-
'babel-preset-react-app',
|
|
38
|
-
'react-dev-utils',
|
|
39
|
-
'react-scripts',
|
|
40
|
-
]
|
|
41
|
-
),
|
|
42
|
-
// @remove-on-eject-end
|
|
43
|
-
// Babel sourcemaps are needed for debugging into node_modules
|
|
44
|
-
// code. Without the options below, debuggers like VSCode
|
|
45
|
-
// show incorrect code and set breakpoints on the wrong lines.
|
|
46
|
-
sourceMaps: shouldUseSourceMap,
|
|
47
|
-
inputSourceMap: shouldUseSourceMap,
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
config.resolve.fallback = {
|
|
52
|
-
"fs": false,
|
|
53
|
-
"tls": false,
|
|
54
|
-
"net": false,
|
|
55
|
-
"https": false,
|
|
56
|
-
// "http": require.resolve("stream-http"),
|
|
57
|
-
// "zlib": require.resolve("browserify-zlib"),
|
|
58
|
-
"path": require.resolve("path-browserify"),
|
|
59
|
-
// "stream": require.resolve("stream-browserify"),
|
|
60
|
-
// "util": require.resolve("util/"),
|
|
61
|
-
// "crypto": require.resolve("crypto-browserify")
|
|
62
|
-
"child_process": false,
|
|
63
|
-
"os": false,
|
|
64
|
-
"crypto": false
|
|
65
|
-
}
|
|
66
|
-
config.plugins = (config.plugins || []).concat([
|
|
67
|
-
new webpack.NormalModuleReplacementPlugin(/node:/, (resource) =>
|
|
68
|
-
{
|
|
69
|
-
resource.request = resource.request.replace(/^node:/, "");
|
|
70
|
-
})
|
|
71
|
-
]);
|
|
72
|
-
return config;
|
|
1
|
+
const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
|
|
2
|
+
const webpack = require('webpack');
|
|
3
|
+
|
|
4
|
+
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
|
|
5
|
+
|
|
6
|
+
module.exports = function config_overrides(config, webpackEnv)
|
|
7
|
+
{
|
|
8
|
+
console.log('overriding webpack config...');
|
|
9
|
+
const isEnvDevelopment = webpackEnv === 'development';
|
|
10
|
+
const isEnvProduction = webpackEnv === 'production';
|
|
11
|
+
const loaders = config.module.rules[1].oneOf;
|
|
12
|
+
|
|
13
|
+
loaders.splice(loaders.length - 1, 0, {
|
|
14
|
+
test: /\.(js|mjs|cjs)$/,
|
|
15
|
+
exclude: /@babel(?:\/|\\{1,2})runtime/,
|
|
16
|
+
loader: require.resolve('babel-loader'),
|
|
17
|
+
options: {
|
|
18
|
+
babelrc: false,
|
|
19
|
+
configFile: false,
|
|
20
|
+
compact: false,
|
|
21
|
+
presets: [
|
|
22
|
+
[
|
|
23
|
+
require.resolve('babel-preset-react-app/dependencies'),
|
|
24
|
+
{ helpers: true },
|
|
25
|
+
],
|
|
26
|
+
],
|
|
27
|
+
cacheDirectory: true,
|
|
28
|
+
// See #6846 for context on why cacheCompression is disabled
|
|
29
|
+
cacheCompression: false,
|
|
30
|
+
// @remove-on-eject-begin
|
|
31
|
+
cacheIdentifier: getCacheIdentifier(
|
|
32
|
+
isEnvProduction
|
|
33
|
+
? 'production'
|
|
34
|
+
: isEnvDevelopment && 'development',
|
|
35
|
+
[
|
|
36
|
+
'babel-plugin-named-asset-import',
|
|
37
|
+
'babel-preset-react-app',
|
|
38
|
+
'react-dev-utils',
|
|
39
|
+
'react-scripts',
|
|
40
|
+
]
|
|
41
|
+
),
|
|
42
|
+
// @remove-on-eject-end
|
|
43
|
+
// Babel sourcemaps are needed for debugging into node_modules
|
|
44
|
+
// code. Without the options below, debuggers like VSCode
|
|
45
|
+
// show incorrect code and set breakpoints on the wrong lines.
|
|
46
|
+
sourceMaps: shouldUseSourceMap,
|
|
47
|
+
inputSourceMap: shouldUseSourceMap,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
config.resolve.fallback = {
|
|
52
|
+
"fs": false,
|
|
53
|
+
"tls": false,
|
|
54
|
+
"net": false,
|
|
55
|
+
"https": false,
|
|
56
|
+
// "http": require.resolve("stream-http"),
|
|
57
|
+
// "zlib": require.resolve("browserify-zlib"),
|
|
58
|
+
"path": require.resolve("path-browserify"),
|
|
59
|
+
// "stream": require.resolve("stream-browserify"),
|
|
60
|
+
// "util": require.resolve("util/"),
|
|
61
|
+
// "crypto": require.resolve("crypto-browserify")
|
|
62
|
+
"child_process": false,
|
|
63
|
+
"os": false,
|
|
64
|
+
"crypto": false
|
|
65
|
+
}
|
|
66
|
+
config.plugins = (config.plugins || []).concat([
|
|
67
|
+
new webpack.NormalModuleReplacementPlugin(/node:/, (resource) =>
|
|
68
|
+
{
|
|
69
|
+
resource.request = resource.request.replace(/^node:/, "");
|
|
70
|
+
})
|
|
71
|
+
]);
|
|
72
|
+
return config;
|
|
73
73
|
};
|
package/dist/NSARouterMaker.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { IStorage, ParsedNameValue } from "namirasoft-core";
|
|
1
2
|
import { ParsedQuery } from 'query-string';
|
|
2
3
|
import rrd from 'react-router-dom';
|
|
3
|
-
import {
|
|
4
|
-
import { NSARouterMakerComponent } from "./NSARouterMakerComponent";
|
|
4
|
+
import { NSARouterMakerConfig } from "./NSARouterMakerConfig";
|
|
5
5
|
export declare class NSARouterMaker {
|
|
6
6
|
private product_id;
|
|
7
7
|
private storage;
|
|
8
8
|
private setState;
|
|
9
|
-
private
|
|
9
|
+
private config;
|
|
10
10
|
private navigate;
|
|
11
|
-
constructor(product_id: string, storage: IStorage, setState: () => void,
|
|
11
|
+
constructor(product_id: string, storage: IStorage, setState: () => void, config: NSARouterMakerConfig, navigate: rrd.NavigateFunction);
|
|
12
12
|
private getProps;
|
|
13
13
|
getQueryStrings(): ParsedQuery;
|
|
14
14
|
getQuery(name: string, base64?: boolean, remove?: boolean): string;
|
package/dist/NSARouterMaker.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import queryString from 'query-string';
|
|
3
|
-
import { EncodingOperation, EnvService, IStorageCookie, ObjectService, URLOperation } from "namirasoft-core";
|
|
4
2
|
import { NamirasoftAccountServer, TokenManager } from "namirasoft-account";
|
|
3
|
+
import { EncodingOperation, EnvService, IStorageCookie, ObjectService, URLOperation } from "namirasoft-core";
|
|
5
4
|
import { NSRouterMaker } from 'namirasoft-site-react';
|
|
5
|
+
import queryString from 'query-string';
|
|
6
6
|
import { NSAConsentPage } from './pages/NSAConsentPage';
|
|
7
7
|
import { NSAEmailVerificationPage } from './pages/NSAEmailVerificationPage';
|
|
8
|
+
import { NSAPhoneVerificationPage } from './pages/NSAPhoneVerificationPage';
|
|
8
9
|
export class NSARouterMaker {
|
|
9
|
-
constructor(product_id, storage, setState,
|
|
10
|
+
constructor(product_id, storage, setState, config, navigate) {
|
|
10
11
|
this.product_id = product_id;
|
|
11
12
|
this.storage = storage;
|
|
12
13
|
this.setState = setState;
|
|
13
|
-
this.
|
|
14
|
+
this.config = config;
|
|
14
15
|
this.navigate = navigate;
|
|
15
16
|
this.getProps = this.getProps.bind(this);
|
|
16
17
|
this.getQueryStrings = this.getQueryStrings.bind(this);
|
|
@@ -34,7 +35,7 @@ export class NSARouterMaker {
|
|
|
34
35
|
getQueryStrings: this.getQueryStrings,
|
|
35
36
|
getQuery: this.getQuery,
|
|
36
37
|
}, renderer: {
|
|
37
|
-
renderOnNSALayout: this.
|
|
38
|
+
renderOnNSALayout: this.config.renderOnNSALayout
|
|
38
39
|
} }, ns_router_maker_props);
|
|
39
40
|
}
|
|
40
41
|
getQueryStrings() {
|
|
@@ -76,18 +77,25 @@ export class NSARouterMaker {
|
|
|
76
77
|
if (props.account.token_manager.exists()) {
|
|
77
78
|
banned = props.account.token_manager.getUserData(user => user.banned, false);
|
|
78
79
|
if (!banned) {
|
|
79
|
-
let result = (_b = (_a = this.
|
|
80
|
+
let result = (_b = (_a = this.config).getCustomRender) === null || _b === void 0 ? void 0 : _b.call(_a, props);
|
|
80
81
|
if (result)
|
|
81
82
|
return result;
|
|
82
83
|
return _jsx(NSAConsentPage, Object.assign({}, props, { product_id: this.product_id, onAccepted: () => {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
if (this.config.requirement.verification.email) {
|
|
85
|
+
let e_verified = props.account.token_manager.getUserData(u => u.e_verified, false);
|
|
86
|
+
if (!e_verified)
|
|
87
|
+
return this.config.renderOnNSALayout(props, _jsx(NSAEmailVerificationPage, Object.assign({}, props, { callback: '' })));
|
|
88
|
+
}
|
|
89
|
+
if (this.config.requirement.verification.phone) {
|
|
90
|
+
let p_verified = props.account.token_manager.getUserData(u => u.p_verified, false);
|
|
91
|
+
if (!p_verified)
|
|
92
|
+
return this.config.renderOnNSALayout(props, _jsx(NSAPhoneVerificationPage, Object.assign({}, props, { callback: '' })));
|
|
93
|
+
}
|
|
94
|
+
return this.config.onRenderOnLogin(props);
|
|
87
95
|
} }));
|
|
88
96
|
}
|
|
89
97
|
}
|
|
90
|
-
return this.
|
|
98
|
+
return this.config.onRenderOnLogout(props, banned);
|
|
91
99
|
}
|
|
92
100
|
});
|
|
93
101
|
return maker.onRender();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSARouterMaker.js","sourceRoot":"","sources":["../src/NSARouterMaker.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"NSARouterMaker.js","sourceRoot":"","sources":["../src/NSARouterMaker.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAY,cAAc,EAAE,aAAa,EAAmB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACxI,OAAO,EAAE,aAAa,EAAsB,MAAM,uBAAuB,CAAC;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5B,CAAC;CACJ;AAAA,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { NSARouterMakerProps } from "./NSARouterMakerProps";
|
|
3
|
-
export interface
|
|
3
|
+
export interface NSARouterMakerConfig {
|
|
4
4
|
onRenderOnLogin(props: NSARouterMakerProps): React.JSX.Element;
|
|
5
5
|
onRenderOnLogout(props: NSARouterMakerProps, banned: boolean): React.JSX.Element;
|
|
6
6
|
renderOnNSALayout(props: NSARouterMakerProps, children: React.JSX.Element): React.JSX.Element;
|
|
7
7
|
getCustomRender?: (props: NSARouterMakerProps) => React.JSX.Element | null;
|
|
8
|
+
requirement: {
|
|
9
|
+
verification: {
|
|
10
|
+
email: boolean;
|
|
11
|
+
phone: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
8
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSARouterMakerConfig.js","sourceRoot":"","sources":["../src/NSARouterMakerConfig.ts"],"names":[],"mappings":""}
|
package/dist/Router.js
CHANGED
package/dist/Router.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Router.js","sourceRoot":"","sources":["../src/Router.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,MAAM;IAE1B,IAAI,CAAC,KAAK,EAAE,QAAQ,CA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AAE,IAAI;aACd;SACJ;KACJ,EAAE,QAAQ,CAAC,CAAC;IACb,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
.nsa_access_list_dialog_container {
|
|
2
|
-
width: 302px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.nsa_access_list_dialog_container p {
|
|
6
|
-
padding: 0;
|
|
7
|
-
margin: 0;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.nsa_access_list_dialog_item_id {
|
|
11
|
-
color: rgba(3, 119, 255, 1);
|
|
12
|
-
text-align: right;
|
|
13
|
-
font-weight: 600;
|
|
14
|
-
font-size: 16px;
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
margin: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.nsa_access_list_dialog_item_name {
|
|
20
|
-
color: rgba(20, 27, 92, 1);
|
|
21
|
-
font-weight: 600;
|
|
22
|
-
font-size: 16px;
|
|
23
|
-
text-align: left;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
margin: 0px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.nsa_access_list_dialog_item_email {
|
|
29
|
-
color: rgba(20, 27, 92, 1);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.nsa_access_list_dialog_main_name {
|
|
33
|
-
color: rgba(20, 27, 92, 1);
|
|
34
|
-
font-weight: 600;
|
|
35
|
-
font-size: 24px;
|
|
36
|
-
text-align: center;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
margin: 0px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.nsa_access_list_dialog_main_email {
|
|
42
|
-
color: rgba(20, 27, 92, 1);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.nsa_access_list_dialog_main_id {
|
|
46
|
-
color: rgba(3, 119, 255, 1);
|
|
47
|
-
text-align: center;
|
|
48
|
-
font-weight: 600;
|
|
49
|
-
font-size: 16px;
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
margin: 0;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.nsa_access_list_dialog_users_container {
|
|
55
|
-
padding: 0px 16px 0px 16px;
|
|
56
|
-
display: flex;
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
border: none;
|
|
59
|
-
background-color: rgba(224, 226, 235, 1);
|
|
60
|
-
border-radius: 8px;
|
|
61
|
-
align-items: center;
|
|
62
|
-
max-width: 100%;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.nsa_access_list_dialog_users_container:hover {
|
|
66
|
-
background-color: rgba(178, 187, 217, 1);
|
|
67
|
-
transition: all 0.3s ease-in-out;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.nsa_access_list_dialog_users_container img {
|
|
71
|
-
cursor: pointer;
|
|
1
|
+
.nsa_access_list_dialog_container {
|
|
2
|
+
width: 302px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.nsa_access_list_dialog_container p {
|
|
6
|
+
padding: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.nsa_access_list_dialog_item_id {
|
|
11
|
+
color: rgba(3, 119, 255, 1);
|
|
12
|
+
text-align: right;
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
margin: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.nsa_access_list_dialog_item_name {
|
|
20
|
+
color: rgba(20, 27, 92, 1);
|
|
21
|
+
font-weight: 600;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
text-align: left;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
margin: 0px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.nsa_access_list_dialog_item_email {
|
|
29
|
+
color: rgba(20, 27, 92, 1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.nsa_access_list_dialog_main_name {
|
|
33
|
+
color: rgba(20, 27, 92, 1);
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
font-size: 24px;
|
|
36
|
+
text-align: center;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
margin: 0px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.nsa_access_list_dialog_main_email {
|
|
42
|
+
color: rgba(20, 27, 92, 1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.nsa_access_list_dialog_main_id {
|
|
46
|
+
color: rgba(3, 119, 255, 1);
|
|
47
|
+
text-align: center;
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
font-size: 16px;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
margin: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.nsa_access_list_dialog_users_container {
|
|
55
|
+
padding: 0px 16px 0px 16px;
|
|
56
|
+
display: flex;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
border: none;
|
|
59
|
+
background-color: rgba(224, 226, 235, 1);
|
|
60
|
+
border-radius: 8px;
|
|
61
|
+
align-items: center;
|
|
62
|
+
max-width: 100%;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.nsa_access_list_dialog_users_container:hover {
|
|
66
|
+
background-color: rgba(178, 187, 217, 1);
|
|
67
|
+
transition: all 0.3s ease-in-out;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.nsa_access_list_dialog_users_container img {
|
|
71
|
+
cursor: pointer;
|
|
72
72
|
}
|