namirasoft-account-react 1.3.37 → 1.3.41
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/assets/images/icon-notification-header.png +0 -0
- package/dist/assets/images/icon-notification.png +0 -0
- package/dist/assets/images/icon_close.png +0 -0
- package/dist/components/NSADeleteModal.module.css +0 -0
- package/dist/components/NSALayoutAction.module.css +0 -0
- package/dist/components/NSAMessageDialog.js.map +1 -1
- package/dist/components/NSAMessageDialog.module.css +63 -0
- package/dist/layouts/NSALayout.d.ts +1 -5
- package/dist/layouts/NSALayout.js +6 -36
- package/dist/layouts/NSALayout.js.map +1 -1
- package/dist/pages/NSALoginPage.module.css +20 -0
- package/package.json +64 -64
- package/public/index.html +21 -21
- package/src/App.css +43 -43
- package/src/App.tsx +26 -26
- 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 +59 -63
- package/src/index.tsx +7 -7
- package/src/layouts/Actions.ts +55 -55
- package/src/layouts/NSALayout.tsx +110 -108
- package/src/layouts/NSASectionList.tsx +16 -16
- package/src/layouts/NSASectionNew.tsx +20 -20
- package/src/layouts/NSASectionView.tsx +17 -17
- package/src/main.ts +11 -11
- package/src/pages/NSALoginPage.module.css +19 -19
- package/src/pages/NSALoginPage.tsx +37 -37
- package/tsconfig.json +43 -43
- package/dist/IAccountProps.d.ts +0 -22
- package/dist/IAccountProps.js +0 -3
- package/dist/IAccountProps.js.map +0 -10
- package/dist/IRouterMaker.d.ts +0 -8
- package/dist/IRouterMaker.js +0 -3
- package/dist/IRouterMaker.js.map +0 -1
- package/dist/IRouterState.d.ts +0 -5
- package/dist/IRouterState.js +0 -3
- package/dist/IRouterState.js.map +0 -1
- package/dist/IStorageCookie.d.ts +0 -10
- package/dist/IStorageCookie.js +0 -27
- package/dist/IStorageCookie.js.map +0 -1
- package/dist/Messenger.d.ts +0 -16
- package/dist/Messenger.js +0 -78
- package/dist/Messenger.js.map +0 -1
- package/dist/Notification.d.ts +0 -6
- package/dist/Notification.js +0 -3
- package/dist/Notification.js.map +0 -1
- package/dist/NotificationType.d.ts +0 -6
- package/dist/NotificationType.js +0 -11
- package/dist/NotificationType.js.map +0 -1
- package/dist/RouterMaker.d.ts +0 -25
- package/dist/RouterMaker.js +0 -125
- package/dist/RouterMaker.js.map +0 -1
- package/dist/RouterMaker.jsx +0 -118
- package/dist/RouterMaker.jsx.map +0 -1
- package/dist/components/NSALayoutAction.d.ts +0 -16
- package/dist/components/NSALayoutAction.js +0 -6
- package/dist/components/NSALayoutAction.js.map +0 -1
- package/dist/layouts/NSALayoutList.d.ts +0 -16
- package/dist/layouts/NSALayoutList.js +0 -19
- package/dist/layouts/NSALayoutList.js.map +0 -1
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
|
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSAMessageDialog.js","sourceRoot":"","sources":["../../src/components/NSAMessageDialog.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"NSAMessageDialog.js","sourceRoot":"","sources":["../../src/components/NSAMessageDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,aAAa,MAAM,+CAA+C,CAAC;AAC1E,OAAO,MAAM,MAA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AmB,aAC9D,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,yBAAyB,EAAE,GAAQ,iDACpB,EAC7C,YAAG,SAAS,EAAE,GAAG,MAAM,CAAC,wBAAwB,qBAAqB,4BAAiB,IACpF,EACN,cAAK,SAAS,EAAC,wCAAwC,YACnD,KAAC,YAAY,IAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,KAAK,EAAC,UAAU,GAAG,GACnD,IACG,IACT,IACT,CACN,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +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: #fff;
|
|
49
|
+
right: -7px;
|
|
50
|
+
top: -7px;
|
|
51
|
+
color: hsla(234, 64%, 22%, 1);
|
|
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
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { INSBarActionProps, INSBarHeroBannerProps, INSBarNotificationProps, INSBarTitleProps } from 'namirasoft-site-react';
|
|
2
1
|
import { NSASectionListProps } from './NSASectionList';
|
|
3
2
|
import { NSASectionNewProps } from './NSASectionNew';
|
|
4
3
|
import { NSASectionViewProps } from './NSASectionView';
|
|
@@ -10,10 +9,7 @@ export interface NSALayoutProps<EntityType> extends INSARouterProps {
|
|
|
10
9
|
logo: string;
|
|
11
10
|
background?: string;
|
|
12
11
|
header?: IHeaderProps;
|
|
13
|
-
notifications:
|
|
14
|
-
action?: INSBarActionProps;
|
|
15
|
-
banner?: INSBarHeroBannerProps;
|
|
16
|
-
title?: INSBarTitleProps;
|
|
12
|
+
notifications: [];
|
|
17
13
|
pages?: {
|
|
18
14
|
list?: NSASectionListProps<EntityType>;
|
|
19
15
|
new?: NSASectionNewProps<EntityType>;
|
|
@@ -12,9 +12,8 @@ import { NSLayout } from 'namirasoft-site-react';
|
|
|
12
12
|
import { NSASectionList } from './NSASectionList';
|
|
13
13
|
import { NSASectionNew } from './NSASectionNew';
|
|
14
14
|
import { NSASectionView } from './NSASectionView';
|
|
15
|
-
import { Actions } from './Actions';
|
|
16
15
|
export function NSALayout(props) {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
16
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
18
17
|
const onLogout = () => __awaiter(this, void 0, void 0, function* () {
|
|
19
18
|
yield props.account.server.session.Logout().then(() => {
|
|
20
19
|
props.notifier.onSuccess("You have successfully logged out");
|
|
@@ -29,47 +28,18 @@ export function NSALayout(props) {
|
|
|
29
28
|
{ src: "https://static.namirasoft.com/image/concept/message/white.svg", alt: "Message", onClicked: onNotiffication, count: 1 },
|
|
30
29
|
];
|
|
31
30
|
let user_name = props.account.token_manager.getUserData(user => [user.first_name, user.last_name].filter(n => n).join(" "), "");
|
|
32
|
-
let action = props.action;
|
|
33
|
-
if (!action)
|
|
34
|
-
action = { title: "", description: "", menus: {} };
|
|
35
|
-
let groupname = "Actions";
|
|
36
|
-
if (((_a = props.pages) === null || _a === void 0 ? void 0 : _a.list) || ((_b = props.pages) === null || _b === void 0 ? void 0 : _b.new))
|
|
37
|
-
if (!action.menus[groupname])
|
|
38
|
-
action.menus[groupname] = [];
|
|
39
|
-
if ((_c = props.pages) === null || _c === void 0 ? void 0 : _c.list) {
|
|
40
|
-
action.menus[groupname].push(Actions.view([]));
|
|
41
|
-
action.menus[groupname].push(Actions.viewHistory([]));
|
|
42
|
-
action.menus[groupname].push(Actions.edit([]));
|
|
43
|
-
action.menus[groupname].push(Actions.delete([]));
|
|
44
|
-
}
|
|
45
|
-
if ((_d = props.pages) === null || _d === void 0 ? void 0 : _d.new) {
|
|
46
|
-
action.menus[groupname].push(Actions.view([]));
|
|
47
|
-
action.menus[groupname].push(Actions.viewHistory([]));
|
|
48
|
-
action.menus[groupname].push(Actions.edit([]));
|
|
49
|
-
action.menus[groupname].push(Actions.delete([]));
|
|
50
|
-
}
|
|
51
|
-
if ((_e = props.pages) === null || _e === void 0 ? void 0 : _e.view) {
|
|
52
|
-
action.menus[groupname].push(Actions.view([]));
|
|
53
|
-
action.menus[groupname].push(Actions.viewHistory([]));
|
|
54
|
-
action.menus[groupname].push(Actions.edit([]));
|
|
55
|
-
action.menus[groupname].push(Actions.delete([]));
|
|
56
|
-
}
|
|
57
31
|
let content;
|
|
58
|
-
if ((
|
|
32
|
+
if ((_a = props.pages) === null || _a === void 0 ? void 0 : _a.list)
|
|
59
33
|
content = _jsx(NSASectionList, Object.assign({}, props.pages.list, { children: props.children }));
|
|
60
|
-
else if ((
|
|
34
|
+
else if ((_b = props.pages) === null || _b === void 0 ? void 0 : _b.new)
|
|
61
35
|
content = _jsx(_Fragment, { children: _jsx(NSASectionNew, Object.assign({}, props.pages.new, { children: props.children })) });
|
|
62
|
-
else if ((
|
|
36
|
+
else if ((_c = props.pages) === null || _c === void 0 ? void 0 : _c.view)
|
|
63
37
|
content = _jsx(NSASectionView, Object.assign({}, props.pages.view, { children: props.children }));
|
|
64
38
|
else
|
|
65
39
|
content = props.children;
|
|
66
40
|
return (_jsx(NSLayout, Object.assign({}, props, { header: {
|
|
67
|
-
title: (user_name + " " + ((
|
|
68
|
-
icons: [...icons, ...((
|
|
69
|
-
}, action: {
|
|
70
|
-
title: (_p = (_o = props.action) === null || _o === void 0 ? void 0 : _o.title) !== null && _p !== void 0 ? _p : "",
|
|
71
|
-
description: (_q = props.action) === null || _q === void 0 ? void 0 : _q.description,
|
|
72
|
-
menus: action.menus
|
|
41
|
+
title: (user_name + " " + ((_e = (_d = props.header) === null || _d === void 0 ? void 0 : _d.title) !== null && _e !== void 0 ? _e : "")).trim(),
|
|
42
|
+
icons: [...icons, ...((_g = (_f = props.header) === null || _f === void 0 ? void 0 : _f.icons) !== null && _g !== void 0 ? _g : [])]
|
|
73
43
|
}, children: _jsx("div", { className: "container-fluid", children: content }) })));
|
|
74
44
|
}
|
|
75
45
|
//# sourceMappingURL=NSALayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSALayout.js","sourceRoot":"","sources":["../../src/layouts/NSALayout.tsx"],"names":[],"mappings":";;;;;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
|
|
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
|
+
}
|
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.24",
|
|
28
|
-
"namirasoft-account-client": "^1.3.0",
|
|
29
|
-
"namirasoft-core": "^1.3.46",
|
|
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.41",
|
|
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.24",
|
|
28
|
+
"namirasoft-account-client": "^1.3.0",
|
|
29
|
+
"namirasoft-core": "^1.3.46",
|
|
30
|
+
"namirasoft-site-react": "^1.3.184",
|
|
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>
|
package/src/App.css
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: inter;
|
|
3
|
-
src: url("../src/assets/fonts/Inter-Regular.ttf");
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
body {
|
|
7
|
-
margin: 0;
|
|
8
|
-
font-family: inter;
|
|
9
|
-
-webkit-font-smoothing: antialiased;
|
|
10
|
-
-moz-osx-font-smoothing: grayscale;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.toast-header {
|
|
14
|
-
padding: 16px !important;
|
|
15
|
-
justify-content: space-between !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.toast {
|
|
19
|
-
width: max-content !important;
|
|
20
|
-
max-width: 100%;
|
|
21
|
-
border: 8px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.toast-body {
|
|
25
|
-
padding: 0 !important;
|
|
26
|
-
}
|
|
27
|
-
.btn-close{
|
|
28
|
-
background: url(./assets/images/icon_close.png) center/1em auto no-repeat!important;
|
|
29
|
-
opacity: 1 !important;
|
|
30
|
-
}
|
|
31
|
-
.nsa_font_16_bold {
|
|
32
|
-
font-size: 16px;
|
|
33
|
-
font-weight: 600;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.nsa_font_13_normal {
|
|
37
|
-
font-size: 13px;
|
|
38
|
-
font-weight: 300;
|
|
39
|
-
}
|
|
40
|
-
.nsa_font_12_normal {
|
|
41
|
-
font-size: 12px;
|
|
42
|
-
font-weight: 300;
|
|
43
|
-
}
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: inter;
|
|
3
|
+
src: url("../src/assets/fonts/Inter-Regular.ttf");
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
body {
|
|
7
|
+
margin: 0;
|
|
8
|
+
font-family: inter;
|
|
9
|
+
-webkit-font-smoothing: antialiased;
|
|
10
|
+
-moz-osx-font-smoothing: grayscale;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.toast-header {
|
|
14
|
+
padding: 16px !important;
|
|
15
|
+
justify-content: space-between !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.toast {
|
|
19
|
+
width: max-content !important;
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
border: 8px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.toast-body {
|
|
25
|
+
padding: 0 !important;
|
|
26
|
+
}
|
|
27
|
+
.btn-close{
|
|
28
|
+
background: url(./assets/images/icon_close.png) center/1em auto no-repeat!important;
|
|
29
|
+
opacity: 1 !important;
|
|
30
|
+
}
|
|
31
|
+
.nsa_font_16_bold {
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.nsa_font_13_normal {
|
|
37
|
+
font-size: 13px;
|
|
38
|
+
font-weight: 300;
|
|
39
|
+
}
|
|
40
|
+
.nsa_font_12_normal {
|
|
41
|
+
font-size: 12px;
|
|
42
|
+
font-weight: 300;
|
|
43
|
+
}
|