namirasoft-account-react 1.5.38 → 1.5.39

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 (145) hide show
  1. package/.env.template +15 -15
  2. package/SKILL.md +514 -514
  3. package/config-overrides.js +72 -72
  4. package/dist/App.d.ts +1 -1
  5. package/dist/FieldCacheService.js +4 -0
  6. package/dist/FieldCacheService.js.map +1 -1
  7. package/dist/NSARouterMaker.js +1 -1
  8. package/dist/NSARouterMaker.js.map +1 -1
  9. package/dist/Router.d.ts +1 -1
  10. package/dist/UseParams.d.ts +1 -1
  11. package/dist/components/NSAAccessListDialog.d.ts +2 -2
  12. package/dist/components/NSAAccessListDialog.module.css +71 -71
  13. package/dist/components/NSABoxSecret.d.ts +1 -1
  14. package/dist/components/NSABoxSecret.module.css +23 -23
  15. package/dist/components/NSAMasterMenu.d.ts +1 -1
  16. package/dist/components/NSAMasterMenu.js +4 -0
  17. package/dist/components/NSAMasterMenu.js.map +1 -1
  18. package/dist/components/NSAMasterMenu.module.css +250 -250
  19. package/dist/components/NSAMasterMenuItem.d.ts +1 -1
  20. package/dist/components/NSAMessageListDialog.d.ts +1 -1
  21. package/dist/components/NSAMessageListDialog.module.css +99 -99
  22. package/dist/components/NSANavigationGuard.d.ts +1 -1
  23. package/dist/components/NSAProductListDialog.d.ts +1 -1
  24. package/dist/components/NSAProductListDialog.module.css +44 -44
  25. package/dist/components/NSATaskBar.d.ts +1 -1
  26. package/dist/components/NSATaskBar.module.css +57 -57
  27. package/dist/components/NSAUserDialog.d.ts +1 -1
  28. package/dist/components/NSAUserDialog.module.css +67 -67
  29. package/dist/components/NSAWorkspaceListDialog.d.ts +1 -1
  30. package/dist/components/NSAWorkspaceListDialog.module.css +41 -41
  31. package/dist/components/NSFBoxCategoryScope.d.ts +1 -1
  32. package/dist/components/NSFBoxField.d.ts +1 -1
  33. package/dist/components/NSFBoxSlot.d.ts +1 -1
  34. package/dist/components/NSFBoxWrapper.d.ts +1 -1
  35. package/dist/components/NSLabelSecret.d.ts +1 -1
  36. package/dist/components/quickfilter/NSAFilterBoxEnum.module.css +51 -51
  37. package/dist/components/quickfilter/NSAQuickFilterBar.d.ts +1 -1
  38. package/dist/components/quickfilter/NSAQuickFilterBar.module.css +20 -20
  39. package/dist/components/quickfilter/NSAQuickFilterDialog.d.ts +1 -1
  40. package/dist/components/quickfilter/NSAQuickFilterDialog.module.css +74 -74
  41. package/dist/layouts/NSALayout.d.ts +1 -1
  42. package/dist/layouts/NSASectionEdit.d.ts +1 -1
  43. package/dist/layouts/NSASectionEditTabPage.d.ts +1 -1
  44. package/dist/layouts/NSASectionEditTabPage.module.css +4 -4
  45. package/dist/layouts/NSASectionList.d.ts +1 -1
  46. package/dist/layouts/NSASectionList.module.css +24 -24
  47. package/dist/layouts/NSASectionView.d.ts +1 -1
  48. package/dist/layouts/NSASectionViewTabMore.d.ts +1 -1
  49. package/dist/layouts/NSASectionViewTabPage.d.ts +1 -1
  50. package/dist/layouts/NSASectionViewTabPage.module.css +47 -47
  51. package/dist/pages/NSAConsentPage.module.css +26 -26
  52. package/dist/pages/NSAEmailVerificationPage.d.ts +1 -1
  53. package/dist/pages/NSAHomePage.d.ts +1 -1
  54. package/dist/pages/NSAHomePage.module.css +41 -41
  55. package/dist/pages/NSALoginPage.d.ts +1 -1
  56. package/dist/pages/NSALoginPage.module.css +26 -26
  57. package/dist/pages/NSAPhoneVerificationPage.d.ts +1 -1
  58. package/dist/pages/NSAVerificationPage.d.ts +1 -1
  59. package/dist/pages/NSAVerificationPage.module.css +31 -31
  60. package/package.json +94 -94
  61. package/public/index.html +21 -21
  62. package/src/App.tsx +72 -72
  63. package/src/CTFRow.ts +7 -7
  64. package/src/FieldCacheService.tsx +113 -108
  65. package/src/IEntityInfo.ts +33 -33
  66. package/src/NSACacheService.ts +126 -126
  67. package/src/NSAFilterOperators.ts +94 -94
  68. package/src/NSARouterMaker.tsx +141 -141
  69. package/src/NSARouterMakerProps.ts +23 -23
  70. package/src/NSARouterMakerResult.ts +24 -24
  71. package/src/NSFRouterMaker.tsx +35 -35
  72. package/src/NSFRouterProps.ts +7 -7
  73. package/src/NSFRoutes.ts +30 -30
  74. package/src/Router.tsx +48 -48
  75. package/src/UseParams.tsx +17 -17
  76. package/src/components/NSAAccessListDialog.module.css +71 -71
  77. package/src/components/NSAAccessListDialog.tsx +178 -178
  78. package/src/components/NSABoxSecret.module.css +23 -23
  79. package/src/components/NSABoxSecret.tsx +264 -264
  80. package/src/components/NSAMasterMenu.module.css +250 -250
  81. package/src/components/NSAMasterMenu.tsx +174 -169
  82. package/src/components/NSAMasterMenuItem.tsx +250 -250
  83. package/src/components/NSAMessageListDialog.module.css +99 -99
  84. package/src/components/NSAMessageListDialog.tsx +144 -144
  85. package/src/components/NSANavigationGuard.tsx +79 -79
  86. package/src/components/NSAProductListDialog.module.css +44 -44
  87. package/src/components/NSAProductListDialog.tsx +88 -88
  88. package/src/components/NSATable.tsx +494 -494
  89. package/src/components/NSATaskBar.module.css +57 -57
  90. package/src/components/NSATaskBar.tsx +193 -193
  91. package/src/components/NSAUserDialog.module.css +67 -67
  92. package/src/components/NSAUserDialog.tsx +122 -122
  93. package/src/components/NSAWorkspaceListDialog.module.css +41 -41
  94. package/src/components/NSAWorkspaceListDialog.tsx +147 -147
  95. package/src/components/NSFBoxCategoryScope.tsx +52 -52
  96. package/src/components/NSFBoxField.tsx +37 -37
  97. package/src/components/NSFBoxSlot.tsx +73 -73
  98. package/src/components/NSFBoxWrapper.tsx +69 -69
  99. package/src/components/NSLabelSecret.tsx +37 -37
  100. package/src/components/quickfilter/NSAFilterBoxBase.tsx +110 -110
  101. package/src/components/quickfilter/NSAFilterBoxBoolean.tsx +72 -72
  102. package/src/components/quickfilter/NSAFilterBoxDate.tsx +110 -110
  103. package/src/components/quickfilter/NSAFilterBoxDateTime.tsx +110 -110
  104. package/src/components/quickfilter/NSAFilterBoxEnum.module.css +51 -51
  105. package/src/components/quickfilter/NSAFilterBoxEnum.tsx +103 -103
  106. package/src/components/quickfilter/NSAFilterBoxNumber.tsx +145 -145
  107. package/src/components/quickfilter/NSAFilterBoxString.tsx +83 -83
  108. package/src/components/quickfilter/NSAFilterBoxTime.tsx +106 -106
  109. package/src/components/quickfilter/NSAQuickFilterBar.module.css +20 -20
  110. package/src/components/quickfilter/NSAQuickFilterBar.tsx +142 -142
  111. package/src/components/quickfilter/NSAQuickFilterDialog.module.css +74 -74
  112. package/src/components/quickfilter/NSAQuickFilterDialog.tsx +297 -297
  113. package/src/css.d.ts +13 -13
  114. package/src/formatters/SecretFormatter.tsx +24 -24
  115. package/src/index.tsx +27 -27
  116. package/src/layouts/Actions.ts +146 -146
  117. package/src/layouts/CFTUtil.ts +18 -18
  118. package/src/layouts/NSALayout.tsx +750 -750
  119. package/src/layouts/NSALayout_Field.ts +125 -125
  120. package/src/layouts/NSASectionEdit.tsx +279 -279
  121. package/src/layouts/NSASectionEditTabPage.module.css +4 -4
  122. package/src/layouts/NSASectionEditTabPage.tsx +256 -256
  123. package/src/layouts/NSASectionList.module.css +24 -24
  124. package/src/layouts/NSASectionList.tsx +165 -165
  125. package/src/layouts/NSASectionView.tsx +98 -98
  126. package/src/layouts/NSASectionViewTabMore.tsx +78 -78
  127. package/src/layouts/NSASectionViewTabPage.module.css +47 -47
  128. package/src/layouts/NSASectionViewTabPage.tsx +400 -400
  129. package/src/main.ts +52 -52
  130. package/src/pages/NSAConsentPage.module.css +26 -26
  131. package/src/pages/NSAConsentPage.tsx +120 -120
  132. package/src/pages/NSAEmailVerificationPage.tsx +30 -30
  133. package/src/pages/NSAHomePage.module.css +41 -41
  134. package/src/pages/NSAHomePage.tsx +113 -113
  135. package/src/pages/NSALoginPage.module.css +26 -26
  136. package/src/pages/NSALoginPage.tsx +87 -87
  137. package/src/pages/NSAPhoneVerificationPage.tsx +106 -106
  138. package/src/pages/NSAVerificationPage.module.css +31 -31
  139. package/src/pages/NSAVerificationPage.tsx +185 -185
  140. package/src/pages/NSFCategoryEditPage.tsx +87 -87
  141. package/src/pages/NSFCategoryListPage.tsx +23 -23
  142. package/src/pages/NSFCategoryViewPage.tsx +23 -23
  143. package/src/pages/NSFEntities.ts +58 -58
  144. package/src/pages/PaymentRequired.tsx +80 -80
  145. package/tsconfig.json +43 -43
@@ -1,42 +1,42 @@
1
- .nsa_home_container {
2
- display: flex;
3
- flex-direction: column;
4
- width: 100%;
5
- justify-content: center;
6
- align-items: center;
7
- text-align: center;
8
- color: #141B5C;
9
- }
10
-
11
- .nsa_home_container h2 {
12
- color: #141B5C;
13
- font-size: 48px;
14
- font-weight: 600;
15
- text-align: center;
16
- }
17
-
18
- .nsa_home_container p {
19
- color: #141B5C;
20
- font-size: 16px;
21
- max-width: 960px;
22
- text-align: center;
23
- margin-bottom: 0;
24
- }
25
-
26
- .nsa_home_search_wrapper {
27
- height: 3.5rem;
28
- }
29
-
30
- .nsa_home_search_box {
31
- min-height: 100%;
32
- border: none !important;
33
- border-radius: 2rem;
34
- padding: 0.5rem 1rem 0.5rem 3rem;
35
- background: url("https://static.namirasoft.com/image/concept/search/blue.svg") left 16px center / 24px no-repeat scroll white !important;
36
- box-shadow: 0 0 0 4px rgba(64, 150, 255, 0.08);
37
- }
38
-
39
- .nsa_home_search_box:focus-visible {
40
- outline: none !important;
41
- box-shadow: 0 0 0 4px rgb(64, 150, 255, 0.24);
1
+ .nsa_home_container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 100%;
5
+ justify-content: center;
6
+ align-items: center;
7
+ text-align: center;
8
+ color: #141B5C;
9
+ }
10
+
11
+ .nsa_home_container h2 {
12
+ color: #141B5C;
13
+ font-size: 48px;
14
+ font-weight: 600;
15
+ text-align: center;
16
+ }
17
+
18
+ .nsa_home_container p {
19
+ color: #141B5C;
20
+ font-size: 16px;
21
+ max-width: 960px;
22
+ text-align: center;
23
+ margin-bottom: 0;
24
+ }
25
+
26
+ .nsa_home_search_wrapper {
27
+ height: 3.5rem;
28
+ }
29
+
30
+ .nsa_home_search_box {
31
+ min-height: 100%;
32
+ border: none !important;
33
+ border-radius: 2rem;
34
+ padding: 0.5rem 1rem 0.5rem 3rem;
35
+ background: url("https://static.namirasoft.com/image/concept/search/blue.svg") left 16px center / 24px no-repeat scroll white !important;
36
+ box-shadow: 0 0 0 4px rgba(64, 150, 255, 0.08);
37
+ }
38
+
39
+ .nsa_home_search_box:focus-visible {
40
+ outline: none !important;
41
+ box-shadow: 0 0 0 4px rgb(64, 150, 255, 0.24);
42
42
  }
@@ -12,4 +12,4 @@ export interface NSALoginPageProps {
12
12
  export interface NSALoginPageState {
13
13
  product: ProductFullRow | null;
14
14
  }
15
- export declare function NSALoginPage(props: NSALoginPageProps): import("react").JSX.Element;
15
+ export declare function NSALoginPage(props: NSALoginPageProps): import("react/jsx-runtime").JSX.Element;
@@ -1,27 +1,27 @@
1
- .nsa_login_page_container {
2
- display: flex;
3
- flex-direction: column;
4
- align-items: center;
5
- justify-content: center;
6
- min-height: 100vh;
7
- }
8
-
9
- .nsa_login_page_logo {
10
- text-align: center;
11
- }
12
-
13
- .nsa_login_page_title {
14
- font-size: 32px;
15
- font-weight: 700;
16
- text-align: center;
17
- }
18
-
19
- .nsa_login_page_button {
20
- text-align: center;
21
- }
22
-
23
- .nsa_login_page_version {
24
- position: fixed;
25
- left: 16px;
26
- bottom: 16px;
1
+ .nsa_login_page_container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: center;
6
+ min-height: 100vh;
7
+ }
8
+
9
+ .nsa_login_page_logo {
10
+ text-align: center;
11
+ }
12
+
13
+ .nsa_login_page_title {
14
+ font-size: 32px;
15
+ font-weight: 700;
16
+ text-align: center;
17
+ }
18
+
19
+ .nsa_login_page_button {
20
+ text-align: center;
21
+ }
22
+
23
+ .nsa_login_page_version {
24
+ position: fixed;
25
+ left: 16px;
26
+ bottom: 16px;
27
27
  }
@@ -2,5 +2,5 @@ import { NSARouterMakerResult } from "../NSARouterMakerResult";
2
2
  interface NSAPhoneVerificationPageProps extends NSARouterMakerResult {
3
3
  callback: string;
4
4
  }
5
- export declare function NSAPhoneVerificationPage(props: NSAPhoneVerificationPageProps): import("react").JSX.Element;
5
+ export declare function NSAPhoneVerificationPage(props: NSAPhoneVerificationPageProps): import("react/jsx-runtime").JSX.Element;
6
6
  export {};
@@ -21,5 +21,5 @@ export declare class NSAVerificationPage extends React.Component<NSAVerification
21
21
  private onRequest;
22
22
  private onVerify;
23
23
  componentDidMount(): void;
24
- render(): React.JSX.Element;
24
+ render(): import("react/jsx-runtime").JSX.Element;
25
25
  }
@@ -1,32 +1,32 @@
1
- .nsa_verification_container {
2
- background-color: #FFF;
3
- border: 1px solid #A1A4B0;
4
- backdrop-filter: blur(5px);
5
- border-radius: 8px;
6
- width: 100%;
7
- max-width: 594px;
8
- padding: 16px;
9
- color: #141B5C !important;
10
- display: flex;
11
- flex-direction: column;
12
- gap: 16px;
13
- align-items: center;
14
- }
15
-
16
- .nsa_verification_container p {
17
- text-align: center;
18
- }
19
-
20
- .nsa_verification_vector {
21
- width: 224px;
22
- height: 224px;
23
- }
24
-
25
- .nsa_resend_button {
26
- border: 0;
27
- outline: 0;
28
- background: none;
29
- color: #141B5C;
30
- font-size: 16px;
31
- font-weight: 500;
1
+ .nsa_verification_container {
2
+ background-color: #FFF;
3
+ border: 1px solid #A1A4B0;
4
+ backdrop-filter: blur(5px);
5
+ border-radius: 8px;
6
+ width: 100%;
7
+ max-width: 594px;
8
+ padding: 16px;
9
+ color: #141B5C !important;
10
+ display: flex;
11
+ flex-direction: column;
12
+ gap: 16px;
13
+ align-items: center;
14
+ }
15
+
16
+ .nsa_verification_container p {
17
+ text-align: center;
18
+ }
19
+
20
+ .nsa_verification_vector {
21
+ width: 224px;
22
+ height: 224px;
23
+ }
24
+
25
+ .nsa_resend_button {
26
+ border: 0;
27
+ outline: 0;
28
+ background: none;
29
+ color: #141B5C;
30
+ font-size: 16px;
31
+ font-weight: 500;
32
32
  }
package/package.json CHANGED
@@ -1,95 +1,95 @@
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/base.png",
7
- "language": "ts",
8
- "framework": "npm",
9
- "application": "package",
10
- "private": false,
11
- "version": "1.5.38",
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
- "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
25
- "@babel/plugin-transform-private-property-in-object": "^7.29.7",
26
- "@types/react": "^18.3.13",
27
- "@types/react-helmet": "^6.1.11",
28
- "copyfiles": "^2.4.1",
29
- "namirasoft-access": "^1.5.1",
30
- "namirasoft-account": "^1.5.1",
31
- "namirasoft-account-client": "^1.5.0",
32
- "namirasoft-api-link": "^1.5.0",
33
- "namirasoft-api-product": "^1.5.2",
34
- "namirasoft-core": "^1.5.9",
35
- "namirasoft-field": "^1.5.10",
36
- "namirasoft-history": "^1.5.1",
37
- "namirasoft-message": "^1.5.1",
38
- "namirasoft-payment": "^1.5.0",
39
- "namirasoft-schema": "^1.5.0",
40
- "namirasoft-secret": "^1.5.4",
41
- "namirasoft-site-map": "^1.5.1",
42
- "namirasoft-site-react": "^1.5.32",
43
- "namirasoft-workspace": "^1.5.1",
44
- "os-browserify": "^0.3.0",
45
- "path-browserify": "^1.0.1",
46
- "query-string": "^9.4.1",
47
- "react": "^18.3.1",
48
- "react-app-rewired": "^2.2.1",
49
- "react-dev-utils": "^12.0.1",
50
- "react-dom": "^18.3.1",
51
- "react-helmet": "^6.1.0",
52
- "react-router-dom": "7.9.1",
53
- "react-scripts": "5.0.1",
54
- "webpack": "^5.109.2"
55
- },
56
- "eslintConfig": {
57
- "extends": [
58
- "react-app",
59
- "react-app/jest"
60
- ]
61
- },
62
- "browserslist": {
63
- "production": [
64
- ">0.2%",
65
- "not dead",
66
- "not op_mini all"
67
- ],
68
- "development": [
69
- "last 1 chrome version",
70
- "last 1 firefox version",
71
- "last 1 safari version"
72
- ]
73
- },
74
- "ns-psc": {
75
- "skip": {
76
- "download": {
77
- "tsconfig.json": true
78
- },
79
- "content": {
80
- "dependencies": {
81
- "unused": {
82
- "list": [
83
- "@babel/plugin-proposal-private-property-in-object",
84
- "@babel/plugin-transform-private-property-in-object",
85
- "os-browserify",
86
- "path-browserify",
87
- "react-app-rewired",
88
- "react-scripts"
89
- ]
90
- }
91
- }
92
- }
93
- }
94
- }
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/base.png",
7
+ "language": "ts",
8
+ "framework": "npm",
9
+ "application": "package",
10
+ "private": false,
11
+ "version": "1.5.39",
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
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
25
+ "@babel/plugin-transform-private-property-in-object": "^7.29.7",
26
+ "@types/react": "^18.3.13",
27
+ "@types/react-helmet": "^6.1.11",
28
+ "copyfiles": "^2.4.1",
29
+ "namirasoft-access": "^1.5.1",
30
+ "namirasoft-account": "^1.5.1",
31
+ "namirasoft-account-client": "^1.5.0",
32
+ "namirasoft-api-link": "^1.5.0",
33
+ "namirasoft-api-product": "^1.5.2",
34
+ "namirasoft-core": "^1.5.10",
35
+ "namirasoft-field": "^1.5.10",
36
+ "namirasoft-history": "^1.5.1",
37
+ "namirasoft-message": "^1.5.2",
38
+ "namirasoft-payment": "^1.5.0",
39
+ "namirasoft-schema": "^1.5.0",
40
+ "namirasoft-secret": "^1.5.4",
41
+ "namirasoft-site-map": "^1.5.1",
42
+ "namirasoft-site-react": "^1.5.34",
43
+ "namirasoft-workspace": "^1.5.2",
44
+ "os-browserify": "^0.3.0",
45
+ "path-browserify": "^1.0.1",
46
+ "query-string": "^9.5.0",
47
+ "react": "^18.3.1",
48
+ "react-app-rewired": "^2.2.1",
49
+ "react-dev-utils": "^12.0.1",
50
+ "react-dom": "^18.3.1",
51
+ "react-helmet": "^6.1.0",
52
+ "react-router-dom": "7.9.1",
53
+ "react-scripts": "5.0.1",
54
+ "webpack": "^5.109.2"
55
+ },
56
+ "eslintConfig": {
57
+ "extends": [
58
+ "react-app",
59
+ "react-app/jest"
60
+ ]
61
+ },
62
+ "browserslist": {
63
+ "production": [
64
+ ">0.2%",
65
+ "not dead",
66
+ "not op_mini all"
67
+ ],
68
+ "development": [
69
+ "last 1 chrome version",
70
+ "last 1 firefox version",
71
+ "last 1 safari version"
72
+ ]
73
+ },
74
+ "ns-psc": {
75
+ "skip": {
76
+ "download": {
77
+ "tsconfig.json": true
78
+ },
79
+ "content": {
80
+ "dependencies": {
81
+ "unused": {
82
+ "list": [
83
+ "@babel/plugin-proposal-private-property-in-object",
84
+ "@babel/plugin-transform-private-property-in-object",
85
+ "os-browserify",
86
+ "path-browserify",
87
+ "react-app-rewired",
88
+ "react-scripts"
89
+ ]
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
95
  }
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.tsx CHANGED
@@ -1,73 +1,73 @@
1
- import { NamirasoftSecretServer, SecretCreateRow, SecretRow } from "namirasoft-secret";
2
- import { IEntityInfo } from "./IEntityInfo";
3
- import { NSALayout } from "./layouts/NSALayout";
4
- import { NSARouterMakerResult } from "./NSARouterMakerResult";
5
- import { NSALoginPage } from "./pages/NSALoginPage";
6
- import { ProductUUID } from "namirasoft-api-product";
7
- import { EnvService, IStorageLocal } from "namirasoft-core";
8
- import { NamirasoftMap } from "namirasoft-site-map";
9
- import { BaseColumnFormatter, DateTimeFormatter, EnumFormatter, IDFormatter, StringFormatter } from "namirasoft-site-react";
10
-
11
- export interface AppProps extends NSARouterMakerResult { }
12
-
13
- export function App(props: AppProps)
14
- {
15
- if (!props.account)
16
- return <NSALoginPage product_id={props.product_id} />
17
-
18
- let server = new NamirasoftSecretServer(new EnvService("REACT_APP_BASE_URL_SECRET", true).getString(), props.account.token_manager, props.notifier.onError);
19
- let namirasoft = new NamirasoftMap(props.account.token_manager, console.error);
20
-
21
- let entity: IEntityInfo<SecretRow, SecretCreateRow> = {
22
- product_id: ProductUUID.NAMIRASOFT_SECRET,
23
- name: "secret",
24
- tables: [{ table: namirasoft.secret.tables.secret, required: true }],
25
- client: {
26
- getListURL: () => "/",
27
- getViewURL: (id) => `/${id}/view`,
28
- getEditURL: (id) => `/${id}/edit`,
29
- getCopyURL: (id) => `/${id}/copy`,
30
- getNewURL: () => `/new`,
31
- getColumns: () =>
32
- {
33
- return [
34
- BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.id, new IDFormatter(namirasoft, null)),
35
- BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.user_id, new IDFormatter(namirasoft, new IStorageLocal())),
36
- BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.workspace_id, new IDFormatter(namirasoft, new IStorageLocal())),
37
- BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.name, new StringFormatter()),
38
- BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.algorithm, new EnumFormatter("240px")),
39
- BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.group, new StringFormatter()),
40
- BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.created_at, new DateTimeFormatter()),
41
- BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.updated_at, new DateTimeFormatter()),
42
- ]
43
- },
44
- getQuickFilters: () =>
45
- {
46
- return [
47
- { column: "user_id", operator: "exists", title: "Provide By User" },
48
- ]
49
- }
50
- },
51
- server: {
52
- value_list: server.value.List,
53
- list: server.secret.List,
54
- get: server.secret.Get,
55
- create: server.secret.Create,
56
- update: server.secret.Update,
57
- delete: server.secret.Delete,
58
- }
59
- };
60
-
61
- return (
62
- <NSALayout<SecretRow, SecretCreateRow>
63
- {...props}
64
- header={{ mega_menu: true }}
65
- pages={{
66
- entity,
67
- list: {}
68
- }}
69
- >
70
- <></>
71
- </NSALayout>
72
- );
1
+ import { NamirasoftSecretServer, SecretCreateRow, SecretRow } from "namirasoft-secret";
2
+ import { IEntityInfo } from "./IEntityInfo";
3
+ import { NSALayout } from "./layouts/NSALayout";
4
+ import { NSARouterMakerResult } from "./NSARouterMakerResult";
5
+ import { NSALoginPage } from "./pages/NSALoginPage";
6
+ import { ProductUUID } from "namirasoft-api-product";
7
+ import { EnvService, IStorageLocal } from "namirasoft-core";
8
+ import { NamirasoftMap } from "namirasoft-site-map";
9
+ import { BaseColumnFormatter, DateTimeFormatter, EnumFormatter, IDFormatter, StringFormatter } from "namirasoft-site-react";
10
+
11
+ export interface AppProps extends NSARouterMakerResult { }
12
+
13
+ export function App(props: AppProps)
14
+ {
15
+ if (!props.account)
16
+ return <NSALoginPage product_id={props.product_id} />
17
+
18
+ let server = new NamirasoftSecretServer(new EnvService("REACT_APP_BASE_URL_SECRET", true).getString(), props.account.token_manager, props.notifier.onError);
19
+ let namirasoft = new NamirasoftMap(props.account.token_manager, console.error);
20
+
21
+ let entity: IEntityInfo<SecretRow, SecretCreateRow> = {
22
+ product_id: ProductUUID.NAMIRASOFT_SECRET,
23
+ name: "secret",
24
+ tables: [{ table: namirasoft.secret.tables.secret, required: true }],
25
+ client: {
26
+ getListURL: () => "/",
27
+ getViewURL: (id) => `/${id}/view`,
28
+ getEditURL: (id) => `/${id}/edit`,
29
+ getCopyURL: (id) => `/${id}/copy`,
30
+ getNewURL: () => `/new`,
31
+ getColumns: () =>
32
+ {
33
+ return [
34
+ BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.id, new IDFormatter(namirasoft, null)),
35
+ BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.user_id, new IDFormatter(namirasoft, new IStorageLocal())),
36
+ BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.workspace_id, new IDFormatter(namirasoft, new IStorageLocal())),
37
+ BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.name, new StringFormatter()),
38
+ BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.algorithm, new EnumFormatter("240px")),
39
+ BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.group, new StringFormatter()),
40
+ BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.created_at, new DateTimeFormatter()),
41
+ BaseColumnFormatter.getColumn(namirasoft.secret.tables.secret.columns.updated_at, new DateTimeFormatter()),
42
+ ]
43
+ },
44
+ getQuickFilters: () =>
45
+ {
46
+ return [
47
+ { column: "user_id", operator: "exists", title: "Provide By User" },
48
+ ]
49
+ }
50
+ },
51
+ server: {
52
+ value_list: server.value.List,
53
+ list: server.secret.List,
54
+ get: server.secret.Get,
55
+ create: server.secret.Create,
56
+ update: server.secret.Update,
57
+ delete: server.secret.Delete,
58
+ }
59
+ };
60
+
61
+ return (
62
+ <NSALayout<SecretRow, SecretCreateRow>
63
+ {...props}
64
+ header={{ mega_menu: true }}
65
+ pages={{
66
+ entity,
67
+ list: {}
68
+ }}
69
+ >
70
+ <></>
71
+ </NSALayout>
72
+ );
73
73
  };
package/src/CTFRow.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { EntityCategoryInputRow, EntityFieldInputRow, EntityTagInputRow } from "namirasoft-field";
2
-
3
- export interface CTFRow
4
- {
5
- categories: EntityCategoryInputRow[];
6
- fields: EntityFieldInputRow[];
7
- tags: EntityTagInputRow[];
1
+ import { EntityCategoryInputRow, EntityFieldInputRow, EntityTagInputRow } from "namirasoft-field";
2
+
3
+ export interface CTFRow
4
+ {
5
+ categories: EntityCategoryInputRow[];
6
+ fields: EntityFieldInputRow[];
7
+ tags: EntityTagInputRow[];
8
8
  }