namirasoft-site-react 1.2.40 → 1.2.42
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/.gitlab-ci.yml +14 -14
- package/config-overrides.js +65 -65
- package/dist/App.js +1 -1
- package/dist/App.js.map +1 -1
- package/dist/assets/images/arrow.svg +3 -3
- package/dist/assets/images/danger.svg +3 -3
- package/dist/assets/images/exit.svg +3 -3
- package/dist/assets/images/icon-input-date.svg +9 -9
- package/dist/assets/images/icon-input-duration.svg +9 -9
- package/dist/assets/images/icon-input-email.svg +9 -9
- package/dist/assets/images/icon-input-float.svg +9 -9
- package/dist/assets/images/icon-input-id.svg +9 -9
- package/dist/assets/images/icon-input-integer.svg +9 -9
- package/dist/assets/images/icon-input-phone.svg +9 -9
- package/dist/assets/images/icon-input-price.svg +9 -9
- package/dist/assets/images/icon-input-search.svg +4 -4
- package/dist/assets/images/icon-input-string.svg +9 -9
- package/dist/assets/images/icon-input-text.svg +9 -9
- package/dist/assets/images/icon-input-time.svg +9 -9
- package/dist/assets/images/logo.svg +9 -9
- package/dist/assets/images/menu.svg +3 -3
- package/dist/assets/images/namira.svg +9 -9
- package/dist/assets/images/rectangle.svg +3 -3
- package/dist/components/NSButtonGreen.js +1 -1
- package/dist/components/NSButtonGreen.js.map +1 -1
- package/dist/components/NSButtonRed.js +1 -1
- package/dist/components/NSButtonRed.js.map +1 -1
- package/dist/components/NSCard.js +2 -2
- package/dist/components/NSCard.js.map +1 -1
- package/dist/components/NSFooter.js +4 -4
- package/dist/components/NSFooter.js.map +1 -1
- package/dist/components/NSHeader.d.ts +17 -1
- package/dist/components/NSHeader.js +50 -47
- package/dist/components/NSHeader.js.map +1 -1
- package/dist/components/NSInputDate.js +1 -1
- package/dist/components/NSInputDate.js.map +1 -1
- package/dist/components/NSInputDuration.js +1 -1
- package/dist/components/NSInputDuration.js.map +1 -1
- package/dist/components/NSInputEmail.js +1 -1
- package/dist/components/NSInputEmail.js.map +1 -1
- package/dist/components/NSInputEmail.module.css +37 -37
- package/dist/components/NSInputFloat.js +1 -1
- package/dist/components/NSInputFloat.js.map +1 -1
- package/dist/components/NSInputFloat.module.css +25 -25
- package/dist/components/NSInputIP.js +1 -1
- package/dist/components/NSInputIP.js.map +1 -1
- package/dist/components/NSInputIP.module.css +25 -25
- package/dist/components/NSInputInteger.js +1 -1
- package/dist/components/NSInputInteger.js.map +1 -1
- package/dist/components/NSInputInteger.module.css +25 -25
- package/dist/components/NSInputPhone.js +1 -1
- package/dist/components/NSInputPhone.js.map +1 -1
- package/dist/components/NSInputPhone.module.css +32 -32
- package/dist/components/NSInputPrice.js +1 -1
- package/dist/components/NSInputPrice.js.map +1 -1
- package/dist/components/NSInputPrice.module.css +26 -26
- package/dist/components/NSInputSearch.js +1 -1
- package/dist/components/NSInputSearch.js.map +1 -1
- package/dist/components/NSInputSearch.module.css +25 -25
- package/dist/components/NSInputString.js +1 -1
- package/dist/components/NSInputString.js.map +1 -1
- package/dist/components/NSInputString.module.css +26 -26
- package/dist/components/NSInputText.js +1 -1
- package/dist/components/NSInputText.js.map +1 -1
- package/dist/components/NSInputText.module.css +27 -27
- package/dist/components/NSInputTime.js +1 -1
- package/dist/components/NSInputTime.js.map +1 -1
- package/dist/components/NSInputTime.module.css +26 -26
- package/dist/components/NSLayout.js +1 -1
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/components/NSLayout.module.css +16 -16
- package/dist/components/NSLayoutHeroBanner.js +1 -1
- package/dist/components/NSLayoutHeroBanner.js.map +1 -1
- package/dist/components/NSLayoutHeroBanner.module.css +43 -43
- package/dist/components/NSLayoutTitle.js +1 -1
- package/dist/components/NSLayoutTitle.js.map +1 -1
- package/dist/components/NSLinkGreen.js +1 -1
- package/dist/components/NSLinkGreen.js.map +1 -1
- package/dist/components/NSLinkGreen.module.css +15 -15
- package/dist/components/NSLinkRed.js +1 -1
- package/dist/components/NSLinkRed.js.map +1 -1
- package/dist/components/NSLinkRed.module.css +15 -15
- package/dist/components/NSPagination.js +7 -7
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/components/NSPagination.module.css +24 -24
- package/dist/components/NSParentCard.module.css +34 -34
- package/dist/components/NSSelectBox.js +1 -1
- package/dist/components/NSSelectBox.js.map +1 -1
- package/dist/components/NSSelectBox.module.css +28 -28
- package/dist/components/NSTable.js +1 -1
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTable.modules.css +76 -76
- package/dist/pages/NSLoginPage.js +1 -1
- package/dist/pages/NSLoginPage.js.map +1 -1
- package/package.json +52 -52
- package/public/index.html +42 -42
- package/public/manifest.json +25 -25
- package/public/robots.txt +3 -3
- package/src/App.tsx +70 -70
- package/src/assets/images/arrow.svg +3 -3
- package/src/assets/images/danger.svg +3 -3
- package/src/assets/images/exit.svg +3 -3
- package/src/assets/images/icon-input-date.svg +9 -9
- package/src/assets/images/icon-input-duration.svg +9 -9
- package/src/assets/images/icon-input-email.svg +9 -9
- package/src/assets/images/icon-input-float.svg +9 -9
- package/src/assets/images/icon-input-id.svg +9 -9
- package/src/assets/images/icon-input-integer.svg +9 -9
- package/src/assets/images/icon-input-phone.svg +9 -9
- package/src/assets/images/icon-input-price.svg +9 -9
- package/src/assets/images/icon-input-search.svg +4 -4
- package/src/assets/images/icon-input-string.svg +9 -9
- package/src/assets/images/icon-input-text.svg +9 -9
- package/src/assets/images/icon-input-time.svg +9 -9
- package/src/assets/images/logo.svg +9 -9
- package/src/assets/images/menu.svg +3 -3
- package/src/assets/images/namira.svg +9 -9
- package/src/assets/images/rectangle.svg +3 -3
- package/src/components/NSButtonGreen.tsx +33 -33
- package/src/components/NSButtonRed.tsx +33 -33
- package/src/components/NSCard.tsx +54 -54
- package/src/components/NSFooter.tsx +123 -123
- package/src/components/NSHeader.tsx +134 -122
- package/src/components/NSInputDate.tsx +57 -57
- package/src/components/NSInputDuration.tsx +65 -65
- package/src/components/NSInputEmail.module.css +37 -37
- package/src/components/NSInputEmail.tsx +92 -92
- package/src/components/NSInputFloat.module.css +25 -25
- package/src/components/NSInputFloat.tsx +61 -61
- package/src/components/NSInputIP.module.css +25 -25
- package/src/components/NSInputIP.tsx +65 -65
- package/src/components/NSInputInteger.module.css +25 -25
- package/src/components/NSInputInteger.tsx +65 -65
- package/src/components/NSInputPhone.module.css +32 -32
- package/src/components/NSInputPhone.tsx +65 -65
- package/src/components/NSInputPrice.module.css +26 -26
- package/src/components/NSInputPrice.tsx +68 -68
- package/src/components/NSInputSearch.module.css +25 -25
- package/src/components/NSInputSearch.tsx +78 -78
- package/src/components/NSInputString.module.css +26 -26
- package/src/components/NSInputString.tsx +66 -66
- package/src/components/NSInputText.module.css +27 -27
- package/src/components/NSInputText.tsx +69 -69
- package/src/components/NSInputTime.module.css +26 -26
- package/src/components/NSInputTime.tsx +65 -65
- package/src/components/NSLayout.module.css +16 -16
- package/src/components/NSLayout.tsx +30 -31
- package/src/components/NSLayoutHeroBanner.module.css +43 -43
- package/src/components/NSLayoutHeroBanner.tsx +85 -85
- package/src/components/NSLayoutTitle.tsx +25 -25
- package/src/components/NSLinkGreen.module.css +15 -15
- package/src/components/NSLinkGreen.tsx +43 -43
- package/src/components/NSLinkRed.module.css +15 -15
- package/src/components/NSLinkRed.tsx +43 -43
- package/src/components/NSPagination.module.css +24 -24
- package/src/components/NSPagination.tsx +54 -54
- package/src/components/NSParentCard.module.css +34 -34
- package/src/components/NSParentCard.tsx.temp +58 -58
- package/src/components/NSSelectBox.module.css +28 -28
- package/src/components/NSSelectBox.tsx +62 -62
- package/src/components/NSTable.modules.css +76 -76
- package/src/components/NSTable.tsx +64 -64
- package/src/index.tsx +7 -7
- package/src/main.ts +25 -25
- package/src/pages/NSLoginPage.tsx +39 -39
- package/src/react-app-env.d.ts +1 -1
- package/tsconfig.json +37 -37
- package/dist/App.css +0 -0
- package/dist/assets/images/background.svg +0 -9
- package/dist/assets/images/left-vector.png +0 -0
- package/dist/assets/images/left_vector.png +0 -0
- package/dist/assets/images/right-vector.png +0 -0
- package/dist/assets/images/right_vector.png +0 -0
- package/dist/components/NSParentCard.d.ts +0 -0
- package/dist/components/NSParentCard.js +0 -2
- package/dist/components/NSParentCard.js.map +0 -1
- package/dist/index.css +0 -6
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
.thead th {
|
|
2
|
-
background-color: rgb(0, 0, 0, 0.3);
|
|
3
|
-
color: rgba(255, 255, 255, 1);
|
|
4
|
-
border: none;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.tbody th {
|
|
8
|
-
background-color: rgb(0, 0, 0, 0.3);
|
|
9
|
-
color: rgba(255, 255, 255, 1);
|
|
10
|
-
border: none;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.tbody td {
|
|
14
|
-
background-color: rgb(0, 0, 0, 0.3);
|
|
15
|
-
color: rgba(255, 255, 255, 1);
|
|
16
|
-
border: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.project_list_container {
|
|
20
|
-
border: none;
|
|
21
|
-
text-align: left;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@media only screen and (max-width:600px) {
|
|
25
|
-
.project_list_container {
|
|
26
|
-
overflow: scroll;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* table-satus */
|
|
31
|
-
.inqueue_status {
|
|
32
|
-
color: white;
|
|
33
|
-
background-color: rgba(255, 148, 50, 1);
|
|
34
|
-
font-size: 12px;
|
|
35
|
-
width: 96px;
|
|
36
|
-
height: 24px;
|
|
37
|
-
border-radius: 24px;
|
|
38
|
-
border: none;
|
|
39
|
-
text-align: center;
|
|
40
|
-
padding-top: 2px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.reserving_status {
|
|
44
|
-
color: white;
|
|
45
|
-
background-color: rgba(255, 79, 79, 1);
|
|
46
|
-
font-size: 12px;
|
|
47
|
-
width: 96px;
|
|
48
|
-
height: 24px;
|
|
49
|
-
border-radius: 24px;
|
|
50
|
-
border: none;
|
|
51
|
-
text-align: center;
|
|
52
|
-
padding-top: 2px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.done-status {
|
|
56
|
-
color: white;
|
|
57
|
-
background-color: rgba(6, 209, 130, 1);
|
|
58
|
-
font-size: 12px;
|
|
59
|
-
width: 96px;
|
|
60
|
-
height: 24px;
|
|
61
|
-
border-radius: 24px;
|
|
62
|
-
border: none;
|
|
63
|
-
text-align: center;
|
|
64
|
-
padding-top: 2px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.inprogress_status {
|
|
68
|
-
color: white;
|
|
69
|
-
background-color: rgba(230, 208, 19, 1);
|
|
70
|
-
font-size: 12px;
|
|
71
|
-
width: 96px;
|
|
72
|
-
height: 24px;
|
|
73
|
-
border-radius: 24px;
|
|
74
|
-
border: none;
|
|
75
|
-
text-align: center;
|
|
76
|
-
padding-top: 2px;
|
|
1
|
+
.thead th {
|
|
2
|
+
background-color: rgb(0, 0, 0, 0.3);
|
|
3
|
+
color: rgba(255, 255, 255, 1);
|
|
4
|
+
border: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.tbody th {
|
|
8
|
+
background-color: rgb(0, 0, 0, 0.3);
|
|
9
|
+
color: rgba(255, 255, 255, 1);
|
|
10
|
+
border: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.tbody td {
|
|
14
|
+
background-color: rgb(0, 0, 0, 0.3);
|
|
15
|
+
color: rgba(255, 255, 255, 1);
|
|
16
|
+
border: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.project_list_container {
|
|
20
|
+
border: none;
|
|
21
|
+
text-align: left;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media only screen and (max-width:600px) {
|
|
25
|
+
.project_list_container {
|
|
26
|
+
overflow: scroll;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* table-satus */
|
|
31
|
+
.inqueue_status {
|
|
32
|
+
color: white;
|
|
33
|
+
background-color: rgba(255, 148, 50, 1);
|
|
34
|
+
font-size: 12px;
|
|
35
|
+
width: 96px;
|
|
36
|
+
height: 24px;
|
|
37
|
+
border-radius: 24px;
|
|
38
|
+
border: none;
|
|
39
|
+
text-align: center;
|
|
40
|
+
padding-top: 2px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.reserving_status {
|
|
44
|
+
color: white;
|
|
45
|
+
background-color: rgba(255, 79, 79, 1);
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
width: 96px;
|
|
48
|
+
height: 24px;
|
|
49
|
+
border-radius: 24px;
|
|
50
|
+
border: none;
|
|
51
|
+
text-align: center;
|
|
52
|
+
padding-top: 2px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.done-status {
|
|
56
|
+
color: white;
|
|
57
|
+
background-color: rgba(6, 209, 130, 1);
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
width: 96px;
|
|
60
|
+
height: 24px;
|
|
61
|
+
border-radius: 24px;
|
|
62
|
+
border: none;
|
|
63
|
+
text-align: center;
|
|
64
|
+
padding-top: 2px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.inprogress_status {
|
|
68
|
+
color: white;
|
|
69
|
+
background-color: rgba(230, 208, 19, 1);
|
|
70
|
+
font-size: 12px;
|
|
71
|
+
width: 96px;
|
|
72
|
+
height: 24px;
|
|
73
|
+
border-radius: 24px;
|
|
74
|
+
border: none;
|
|
75
|
+
text-align: center;
|
|
76
|
+
padding-top: 2px;
|
|
77
77
|
}
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import "./NSTable.modules.css";
|
|
4
|
-
import { Component } from 'react';
|
|
5
|
-
|
|
6
|
-
interface IProps<RowType>
|
|
7
|
-
{
|
|
8
|
-
columns: { [key: string]: string };
|
|
9
|
-
rows: RowType[];
|
|
10
|
-
getRowKey: (row: RowType, rowIndex: number) => string;
|
|
11
|
-
getColumnAttributes: (column: string, columnIndex: number) => { [key: string]: string };
|
|
12
|
-
getCell: (row: RowType, column: string, rowIndex: number, columnIndex: number) => any;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface IState<RowType>
|
|
16
|
-
{
|
|
17
|
-
columns: { [key: string]: string };
|
|
18
|
-
rows: RowType[];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export class NSTable<RowType> extends Component<IProps<RowType>, IState<RowType>>
|
|
22
|
-
{
|
|
23
|
-
constructor(props: IProps<RowType>)
|
|
24
|
-
{
|
|
25
|
-
super(props);
|
|
26
|
-
this.state = { columns: props.columns, rows: props.rows };
|
|
27
|
-
}
|
|
28
|
-
setColumns(columns: { [key: string]: string })
|
|
29
|
-
{
|
|
30
|
-
this.setState({ columns });
|
|
31
|
-
}
|
|
32
|
-
setRows(rows: RowType[])
|
|
33
|
-
{
|
|
34
|
-
this.setState({ rows });
|
|
35
|
-
}
|
|
36
|
-
override render()
|
|
37
|
-
{
|
|
38
|
-
let column_keys = Object.keys(this.state.columns);
|
|
39
|
-
return (
|
|
40
|
-
<div className="project_list_container">
|
|
41
|
-
<table className="table">
|
|
42
|
-
<thead className="thead">
|
|
43
|
-
<tr>
|
|
44
|
-
{column_keys.map(column_key => <th key={column_key} scope="col">{this.state.columns[column_key]}</th>)}
|
|
45
|
-
</tr>
|
|
46
|
-
</thead>
|
|
47
|
-
<tbody className="tbody">
|
|
48
|
-
{
|
|
49
|
-
this.state.rows.map((row, rowIndex) =>
|
|
50
|
-
<tr key={this.props.getRowKey(row, rowIndex)}>
|
|
51
|
-
{
|
|
52
|
-
column_keys.map((column, columnIndex) => (
|
|
53
|
-
<td {...this.props.getColumnAttributes(column, columnIndex)}>
|
|
54
|
-
{this.props.getCell(row, column, rowIndex, columnIndex)}
|
|
55
|
-
</td>
|
|
56
|
-
))
|
|
57
|
-
}
|
|
58
|
-
</tr>)
|
|
59
|
-
}
|
|
60
|
-
</tbody >
|
|
61
|
-
</table>
|
|
62
|
-
</div >
|
|
63
|
-
)
|
|
64
|
-
}
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import "./NSTable.modules.css";
|
|
4
|
+
import { Component } from 'react';
|
|
5
|
+
|
|
6
|
+
interface IProps<RowType>
|
|
7
|
+
{
|
|
8
|
+
columns: { [key: string]: string };
|
|
9
|
+
rows: RowType[];
|
|
10
|
+
getRowKey: (row: RowType, rowIndex: number) => string;
|
|
11
|
+
getColumnAttributes: (column: string, columnIndex: number) => { [key: string]: string };
|
|
12
|
+
getCell: (row: RowType, column: string, rowIndex: number, columnIndex: number) => any;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface IState<RowType>
|
|
16
|
+
{
|
|
17
|
+
columns: { [key: string]: string };
|
|
18
|
+
rows: RowType[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class NSTable<RowType> extends Component<IProps<RowType>, IState<RowType>>
|
|
22
|
+
{
|
|
23
|
+
constructor(props: IProps<RowType>)
|
|
24
|
+
{
|
|
25
|
+
super(props);
|
|
26
|
+
this.state = { columns: props.columns, rows: props.rows };
|
|
27
|
+
}
|
|
28
|
+
setColumns(columns: { [key: string]: string })
|
|
29
|
+
{
|
|
30
|
+
this.setState({ columns });
|
|
31
|
+
}
|
|
32
|
+
setRows(rows: RowType[])
|
|
33
|
+
{
|
|
34
|
+
this.setState({ rows });
|
|
35
|
+
}
|
|
36
|
+
override render()
|
|
37
|
+
{
|
|
38
|
+
let column_keys = Object.keys(this.state.columns);
|
|
39
|
+
return (
|
|
40
|
+
<div className="project_list_container">
|
|
41
|
+
<table className="table">
|
|
42
|
+
<thead className="thead">
|
|
43
|
+
<tr>
|
|
44
|
+
{column_keys.map(column_key => <th key={column_key} scope="col">{this.state.columns[column_key]}</th>)}
|
|
45
|
+
</tr>
|
|
46
|
+
</thead>
|
|
47
|
+
<tbody className="tbody">
|
|
48
|
+
{
|
|
49
|
+
this.state.rows.map((row, rowIndex) =>
|
|
50
|
+
<tr key={this.props.getRowKey(row, rowIndex)}>
|
|
51
|
+
{
|
|
52
|
+
column_keys.map((column, columnIndex) => (
|
|
53
|
+
<td {...this.props.getColumnAttributes(column, columnIndex)}>
|
|
54
|
+
{this.props.getCell(row, column, rowIndex, columnIndex)}
|
|
55
|
+
</td>
|
|
56
|
+
))
|
|
57
|
+
}
|
|
58
|
+
</tr>)
|
|
59
|
+
}
|
|
60
|
+
</tbody >
|
|
61
|
+
</table>
|
|
62
|
+
</div >
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
65
|
}
|
package/src/index.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import ReactDOM from 'react-dom/client';
|
|
2
|
-
import './index.css';
|
|
3
|
-
import { App } from './App';
|
|
4
|
-
|
|
5
|
-
const root = ReactDOM.createRoot(
|
|
6
|
-
document.getElementById('root') as HTMLElement
|
|
7
|
-
);
|
|
1
|
+
import ReactDOM from 'react-dom/client';
|
|
2
|
+
import './index.css';
|
|
3
|
+
import { App } from './App';
|
|
4
|
+
|
|
5
|
+
const root = ReactDOM.createRoot(
|
|
6
|
+
document.getElementById('root') as HTMLElement
|
|
7
|
+
);
|
|
8
8
|
root.render(<App />);
|
package/src/main.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export * from "./components/NSButtonGreen";
|
|
2
|
-
export * from "./components/NSButtonRed";
|
|
3
|
-
export * from "./components/NSCard";
|
|
4
|
-
export * from "./components/NSFooter";
|
|
5
|
-
export * from "./components/NSHeader";
|
|
6
|
-
export * from "./components/NSInputDate";
|
|
7
|
-
export * from "./components/NSInputDuration";
|
|
8
|
-
export * from "./components/NSInputEmail";
|
|
9
|
-
export * from "./components/NSInputFloat";
|
|
10
|
-
export * from "./components/NSInputIP";
|
|
11
|
-
export * from "./components/NSInputInteger";
|
|
12
|
-
export * from "./components/NSInputPhone";
|
|
13
|
-
export * from "./components/NSInputPrice";
|
|
14
|
-
export * from "./components/NSInputSearch";
|
|
15
|
-
export * from "./components/NSInputString";
|
|
16
|
-
export * from "./components/NSInputText";
|
|
17
|
-
export * from "./components/NSInputTime";
|
|
18
|
-
export * from "./components/NSLayout";
|
|
19
|
-
export * from "./components/NSLayoutHeroBanner";
|
|
20
|
-
export * from "./components/NSLayoutTitle";
|
|
21
|
-
export * from "./components/NSSelectBox";
|
|
22
|
-
export * from "./components/NSLinkGreen";
|
|
23
|
-
export * from "./components/NSLinkRed";
|
|
24
|
-
export * from "./components/NSPagination";
|
|
25
|
-
export * from "./components/NSTable";
|
|
1
|
+
export * from "./components/NSButtonGreen";
|
|
2
|
+
export * from "./components/NSButtonRed";
|
|
3
|
+
export * from "./components/NSCard";
|
|
4
|
+
export * from "./components/NSFooter";
|
|
5
|
+
export * from "./components/NSHeader";
|
|
6
|
+
export * from "./components/NSInputDate";
|
|
7
|
+
export * from "./components/NSInputDuration";
|
|
8
|
+
export * from "./components/NSInputEmail";
|
|
9
|
+
export * from "./components/NSInputFloat";
|
|
10
|
+
export * from "./components/NSInputIP";
|
|
11
|
+
export * from "./components/NSInputInteger";
|
|
12
|
+
export * from "./components/NSInputPhone";
|
|
13
|
+
export * from "./components/NSInputPrice";
|
|
14
|
+
export * from "./components/NSInputSearch";
|
|
15
|
+
export * from "./components/NSInputString";
|
|
16
|
+
export * from "./components/NSInputText";
|
|
17
|
+
export * from "./components/NSInputTime";
|
|
18
|
+
export * from "./components/NSLayout";
|
|
19
|
+
export * from "./components/NSLayoutHeroBanner";
|
|
20
|
+
export * from "./components/NSLayoutTitle";
|
|
21
|
+
export * from "./components/NSSelectBox";
|
|
22
|
+
export * from "./components/NSLinkGreen";
|
|
23
|
+
export * from "./components/NSLinkRed";
|
|
24
|
+
export * from "./components/NSPagination";
|
|
25
|
+
export * from "./components/NSTable";
|
|
26
26
|
export * from "./pages/NSLoginPage";
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import "./NSLoginPage.modules.css";
|
|
4
|
-
import { Component } from 'react';
|
|
5
|
-
import { NSButtonGreen } from "../main";
|
|
6
|
-
import { NSLinkGreen } from "../main";
|
|
7
|
-
|
|
8
|
-
interface IProps
|
|
9
|
-
{
|
|
10
|
-
title: string;
|
|
11
|
-
logo: string;
|
|
12
|
-
background: string;
|
|
13
|
-
href?: string;
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export class NSLoginPage extends Component<IProps>
|
|
18
|
-
{
|
|
19
|
-
override render()
|
|
20
|
-
{
|
|
21
|
-
let button = <></>;
|
|
22
|
-
if (this.props.href)
|
|
23
|
-
button = <NSLinkGreen title="Login" href={this.props.href ?? ""} />;
|
|
24
|
-
else if (this.props.onClick)
|
|
25
|
-
button = <NSButtonGreen title="Login" onClick={this.props.onClick} />;
|
|
26
|
-
return (
|
|
27
|
-
<div style={{ backgroundImage: this.props.background }}>
|
|
28
|
-
<div className="d-flex flex-column align-items-center justify-content-center" style={{ marginTop: "100px" }}>
|
|
29
|
-
<div className="m-auto">
|
|
30
|
-
<img width={256} height={256} src={this.props.logo} alt="logo"></img>
|
|
31
|
-
</div>
|
|
32
|
-
<div><h1 className="text-light text-center mb-3">{this.props.title}</h1></div>
|
|
33
|
-
<div className="m-auto">
|
|
34
|
-
{button}
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
);
|
|
39
|
-
}
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import "./NSLoginPage.modules.css";
|
|
4
|
+
import { Component } from 'react';
|
|
5
|
+
import { NSButtonGreen } from "../main";
|
|
6
|
+
import { NSLinkGreen } from "../main";
|
|
7
|
+
|
|
8
|
+
interface IProps
|
|
9
|
+
{
|
|
10
|
+
title: string;
|
|
11
|
+
logo: string;
|
|
12
|
+
background: string;
|
|
13
|
+
href?: string;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class NSLoginPage extends Component<IProps>
|
|
18
|
+
{
|
|
19
|
+
override render()
|
|
20
|
+
{
|
|
21
|
+
let button = <></>;
|
|
22
|
+
if (this.props.href)
|
|
23
|
+
button = <NSLinkGreen title="Login" href={this.props.href ?? ""} />;
|
|
24
|
+
else if (this.props.onClick)
|
|
25
|
+
button = <NSButtonGreen title="Login" onClick={this.props.onClick} />;
|
|
26
|
+
return (
|
|
27
|
+
<div style={{ backgroundImage: this.props.background }}>
|
|
28
|
+
<div className="d-flex flex-column align-items-center justify-content-center" style={{ marginTop: "100px" }}>
|
|
29
|
+
<div className="m-auto">
|
|
30
|
+
<img width={256} height={256} src={this.props.logo} alt="logo"></img>
|
|
31
|
+
</div>
|
|
32
|
+
<div><h1 className="text-light text-center mb-3">{this.props.title}</h1></div>
|
|
33
|
+
<div className="m-auto">
|
|
34
|
+
{button}
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
40
|
}
|
package/src/react-app-env.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/// <reference types="react-scripts" />
|
|
1
|
+
/// <reference types="react-scripts" />
|
package/tsconfig.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES6",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"rootDir": "./src",
|
|
6
|
-
"outDir": "./dist",
|
|
7
|
-
"lib": [
|
|
8
|
-
"dom",
|
|
9
|
-
"dom.iterable",
|
|
10
|
-
"esnext"
|
|
11
|
-
],
|
|
12
|
-
"allowJs": false,
|
|
13
|
-
"checkJs": false,
|
|
14
|
-
"strict": true,
|
|
15
|
-
"esModuleInterop": true,
|
|
16
|
-
"sourceMap": true,
|
|
17
|
-
"resolveJsonModule": true,
|
|
18
|
-
"declaration": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
"noImplicitAny": true,
|
|
22
|
-
"noImplicitOverride": true,
|
|
23
|
-
"noImplicitReturns": true,
|
|
24
|
-
"noImplicitThis": true,
|
|
25
|
-
"skipLibCheck": true,
|
|
26
|
-
"allowSyntheticDefaultImports": true,
|
|
27
|
-
"forceConsistentCasingInFileNames": true,
|
|
28
|
-
"noFallthroughCasesInSwitch": true,
|
|
29
|
-
"isolatedModules": true,
|
|
30
|
-
"removeComments": true,
|
|
31
|
-
"noEmit": false,
|
|
32
|
-
"moduleResolution": "node",
|
|
33
|
-
"jsx": "react-jsx"
|
|
34
|
-
},
|
|
35
|
-
"include": [
|
|
36
|
-
"src"
|
|
37
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES6",
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"lib": [
|
|
8
|
+
"dom",
|
|
9
|
+
"dom.iterable",
|
|
10
|
+
"esnext"
|
|
11
|
+
],
|
|
12
|
+
"allowJs": false,
|
|
13
|
+
"checkJs": false,
|
|
14
|
+
"strict": true,
|
|
15
|
+
"esModuleInterop": true,
|
|
16
|
+
"sourceMap": true,
|
|
17
|
+
"resolveJsonModule": true,
|
|
18
|
+
"declaration": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true,
|
|
21
|
+
"noImplicitAny": true,
|
|
22
|
+
"noImplicitOverride": true,
|
|
23
|
+
"noImplicitReturns": true,
|
|
24
|
+
"noImplicitThis": true,
|
|
25
|
+
"skipLibCheck": true,
|
|
26
|
+
"allowSyntheticDefaultImports": true,
|
|
27
|
+
"forceConsistentCasingInFileNames": true,
|
|
28
|
+
"noFallthroughCasesInSwitch": true,
|
|
29
|
+
"isolatedModules": true,
|
|
30
|
+
"removeComments": true,
|
|
31
|
+
"noEmit": false,
|
|
32
|
+
"moduleResolution": "node",
|
|
33
|
+
"jsx": "react-jsx"
|
|
34
|
+
},
|
|
35
|
+
"include": [
|
|
36
|
+
"src"
|
|
37
|
+
]
|
|
38
38
|
}
|
package/dist/App.css
DELETED
|
File without changes
|