namirasoft-account-react 1.3.52 → 1.3.53

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.
Files changed (72) hide show
  1. package/config-overrides.js +72 -72
  2. package/dist/Info.d.ts +1 -1
  3. package/dist/Info.js +1 -1
  4. package/dist/Info.js.map +1 -1
  5. package/dist/components/NSAMessageDialog.module.css +62 -62
  6. package/dist/layouts/NSALayout.d.ts +1 -1
  7. package/dist/main.d.ts +8 -6
  8. package/dist/main.js +8 -6
  9. package/dist/main.js.map +1 -1
  10. package/dist/pages/NSALoginPage.module.css +19 -19
  11. package/package.json +64 -64
  12. package/public/index.html +21 -21
  13. package/src/App.css +42 -42
  14. package/src/App.tsx +26 -26
  15. package/src/IEntityInfo.ts +16 -16
  16. package/src/INSARouterMaker.ts +8 -8
  17. package/src/INSARouterProps.ts +17 -17
  18. package/src/INSARouterState.ts +5 -5
  19. package/src/Info.ts +20 -20
  20. package/src/NSARouterMaker.tsx +138 -138
  21. package/src/components/NSADeleteModal.tsx +24 -24
  22. package/src/components/NSAMessageDialog.module.css +62 -62
  23. package/src/components/NSAMessageDialog.tsx +59 -59
  24. package/src/index.tsx +7 -7
  25. package/src/layouts/Actions.ts +83 -83
  26. package/src/layouts/NSALayout.tsx +134 -134
  27. package/src/layouts/NSASectionEdit.tsx +116 -116
  28. package/src/layouts/NSASectionList.tsx +17 -17
  29. package/src/layouts/NSASectionView.tsx +16 -16
  30. package/src/main.ts +17 -12
  31. package/src/pages/NSALoginPage.module.css +19 -19
  32. package/src/pages/NSALoginPage.tsx +37 -37
  33. package/tsconfig.json +43 -43
  34. package/dist/App.css +0 -43
  35. package/dist/IAccountProps.d.ts +0 -22
  36. package/dist/IAccountProps.js +0 -3
  37. package/dist/IAccountProps.js.map +0 -10
  38. package/dist/IRouterMaker.d.ts +0 -8
  39. package/dist/IRouterMaker.js +0 -3
  40. package/dist/IRouterMaker.js.map +0 -1
  41. package/dist/IRouterState.d.ts +0 -5
  42. package/dist/IRouterState.js +0 -3
  43. package/dist/IRouterState.js.map +0 -1
  44. package/dist/IStorageCookie.d.ts +0 -10
  45. package/dist/IStorageCookie.js +0 -27
  46. package/dist/IStorageCookie.js.map +0 -1
  47. package/dist/Messenger.d.ts +0 -16
  48. package/dist/Messenger.js +0 -78
  49. package/dist/Messenger.js.map +0 -1
  50. package/dist/Notification.d.ts +0 -6
  51. package/dist/Notification.js +0 -3
  52. package/dist/Notification.js.map +0 -1
  53. package/dist/NotificationType.d.ts +0 -6
  54. package/dist/NotificationType.js +0 -11
  55. package/dist/NotificationType.js.map +0 -1
  56. package/dist/RouterMaker.d.ts +0 -25
  57. package/dist/RouterMaker.js +0 -125
  58. package/dist/RouterMaker.js.map +0 -1
  59. package/dist/RouterMaker.jsx +0 -118
  60. package/dist/RouterMaker.jsx.map +0 -1
  61. package/dist/components/NSALayoutAction.d.ts +0 -17
  62. package/dist/components/NSALayoutAction.js +0 -6
  63. package/dist/components/NSALayoutAction.js.map +0 -1
  64. package/dist/components/NSALayoutAction.module.css +0 -0
  65. package/dist/index.css +0 -0
  66. package/dist/layouts/NSALayoutList.d.ts +0 -17
  67. package/dist/layouts/NSALayoutList.js +0 -19
  68. package/dist/layouts/NSALayoutList.js.map +0 -1
  69. package/dist/layouts/NSASectionNew.d.ts +0 -9
  70. package/dist/layouts/NSASectionNew.js +0 -5
  71. package/dist/layouts/NSASectionNew.js.map +0 -1
  72. package/src/components/NSALayoutAction.module.css +0 -0
@@ -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/Info.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ParsedQuery } from 'query-string';
2
- export default class Info {
2
+ export declare class Info {
3
3
  static getDeviceName(query: ParsedQuery): string | (string | null)[];
4
4
  static getVersion(): string;
5
5
  static getOS(query: ParsedQuery): string | (string | null)[];
package/dist/Info.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import DeviceUUID from "device-uuid";
2
- export default class Info {
2
+ export class Info {
3
3
  static getDeviceName(query) {
4
4
  var _a;
5
5
  var du = new DeviceUUID.DeviceUUID().parse();
package/dist/Info.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Info.js","sourceRoot":"","sources":["../src/Info.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,IAAI;IAErB,MAAM,CAAC,aAAa,CAAC,KAAkB;;QAEnC,IAAI,EAAE,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;QAC7C,OAAO,MAAA,KAAK,CAAC,MAAM,mCAAI,CAAC,EAAE,CAAC,QAAQ,GAAG,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IACD,MAAM,CAAC,UAAU;QAEb,IAAI,EAAE,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;QAC7C,OAAO,EAAE,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,MAAM,CAAC,KAAK,CAAC,KAAkB;;QAE3B,IAAI,EAAE,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;QAC7C,OAAO,MAAA,KAAK,CAAC,EAAE,mCAAI,EAAE,CAAC,EAAE,CAAC;IAC7B,CAAC;CACJ;AAAA,CAAC"}
1
+ {"version":3,"file":"Info.js","sourceRoot":"","sources":["../src/Info.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,MAAM,OAAO,IAAI;IAEb,MAAM,CAAC,aAAa,CAAC,KAAkB;;QAEnC,IAAI,EAAE,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;QAC7C,OAAO,MAAA,KAAK,CAAC,MAAM,mCAAI,CAAC,EAAE,CAAC,QAAQ,GAAG,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IACD,MAAM,CAAC,UAAU;QAEb,IAAI,EAAE,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;QAC7C,OAAO,EAAE,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,MAAM,CAAC,KAAK,CAAC,KAAkB;;QAE3B,IAAI,EAAE,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;QAC7C,OAAO,MAAA,KAAK,CAAC,EAAE,mCAAI,EAAE,CAAC,EAAE,CAAC;IAC7B,CAAC;CACJ;AAAA,CAAC"}
@@ -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: #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;
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
63
  }
@@ -2,7 +2,7 @@ import { IBaseComponentProps, INSBarActionProps, INSBarHeroBannerProps, INSBarNo
2
2
  import { NSASectionListProps } from './NSASectionList';
3
3
  import { NSASectionEditProps } from './NSASectionEdit';
4
4
  import { NSASectionViewProps } from './NSASectionView';
5
- import { IHeaderProps } from 'namirasoft-site-react/dist/props/IHeaderProps';
5
+ import { IHeaderProps } from 'namirasoft-site-react';
6
6
  import { ReactNode } from 'react';
7
7
  import { INSARouterProps } from '../INSARouterProps';
8
8
  export interface NSALayoutProps<EntityType extends {
package/dist/main.d.ts CHANGED
@@ -1,12 +1,14 @@
1
+ export * from "./components/NSADeleteModal";
2
+ export * from "./components/NSAMessageDialog";
3
+ export * from "./layouts/Actions";
4
+ export * from "./layouts/NSALayout";
5
+ export * from "./layouts/NSASectionEdit";
6
+ export * from "./layouts/NSASectionList";
7
+ export * from "./layouts/NSASectionView";
8
+ export * from "./pages/NSALoginPage";
1
9
  export * from "./IEntityInfo";
2
10
  export * from "./Info";
3
11
  export * from "./INSARouterMaker";
4
12
  export * from "./INSARouterProps";
5
13
  export * from "./INSARouterState";
6
14
  export * from "./NSARouterMaker";
7
- export * from "./pages/NSALoginPage";
8
- export * from "./components/NSADeleteModal";
9
- export * from "./components/NSAMessageDialog";
10
- export * from "./layouts/NSALayout";
11
- export * from "./layouts/NSASectionList";
12
- export * from "./layouts/NSASectionEdit";
package/dist/main.js CHANGED
@@ -1,13 +1,15 @@
1
+ export * from "./components/NSADeleteModal";
2
+ export * from "./components/NSAMessageDialog";
3
+ export * from "./layouts/Actions";
4
+ export * from "./layouts/NSALayout";
5
+ export * from "./layouts/NSASectionEdit";
6
+ export * from "./layouts/NSASectionList";
7
+ export * from "./layouts/NSASectionView";
8
+ export * from "./pages/NSALoginPage";
1
9
  export * from "./IEntityInfo";
2
10
  export * from "./Info";
3
11
  export * from "./INSARouterMaker";
4
12
  export * from "./INSARouterProps";
5
13
  export * from "./INSARouterState";
6
14
  export * from "./NSARouterMaker";
7
- export * from "./pages/NSALoginPage";
8
- export * from "./components/NSADeleteModal";
9
- export * from "./components/NSAMessageDialog";
10
- export * from "./layouts/NSALayout";
11
- export * from "./layouts/NSASectionList";
12
- export * from "./layouts/NSASectionEdit";
13
15
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAE9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,sBAAsB,CAAC;AAErC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,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.52",
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.25",
28
- "namirasoft-account-client": "^1.3.0",
29
- "namirasoft-core": "^1.3.47",
30
- "namirasoft-site-react": "^1.3.199",
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.53",
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.25",
28
+ "namirasoft-account-client": "^1.3.0",
29
+ "namirasoft-core": "^1.3.47",
30
+ "namirasoft-site-react": "^1.3.201",
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;
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
43
  }