namirasoft-account-react 1.3.77 → 1.3.78
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/App.css +57 -0
- package/dist/IAccountProps.d.ts +22 -0
- package/dist/IAccountProps.js +3 -0
- package/dist/IAccountProps.js.map +10 -0
- package/dist/IRouterMaker.d.ts +8 -0
- package/dist/IRouterMaker.js +3 -0
- package/dist/IRouterMaker.js.map +1 -0
- package/dist/IRouterState.d.ts +5 -0
- package/dist/IRouterState.js +3 -0
- package/dist/IRouterState.js.map +1 -0
- package/dist/IStorageCookie.d.ts +10 -0
- package/dist/IStorageCookie.js +27 -0
- package/dist/IStorageCookie.js.map +1 -0
- package/dist/Messenger.d.ts +16 -0
- package/dist/Messenger.js +78 -0
- package/dist/Messenger.js.map +1 -0
- package/dist/Notification.d.ts +6 -0
- package/dist/Notification.js +3 -0
- package/dist/Notification.js.map +1 -0
- package/dist/NotificationType.d.ts +6 -0
- package/dist/NotificationType.js +11 -0
- package/dist/NotificationType.js.map +1 -0
- package/dist/RouterMaker.d.ts +25 -0
- package/dist/RouterMaker.js +125 -0
- package/dist/RouterMaker.js.map +1 -0
- package/dist/RouterMaker.jsx +118 -0
- package/dist/RouterMaker.jsx.map +1 -0
- package/dist/components/NSALayoutAction.d.ts +17 -0
- package/dist/components/NSALayoutAction.js +6 -0
- package/dist/components/NSALayoutAction.js.map +1 -0
- package/dist/components/NSALayoutAction.module.css +0 -0
- package/dist/components/NSAMessageDialog.module.css +62 -62
- package/dist/index.css +0 -0
- package/dist/layouts/NSALayoutList.d.ts +17 -0
- package/dist/layouts/NSALayoutList.js +19 -0
- package/dist/layouts/NSALayoutList.js.map +1 -0
- package/dist/layouts/NSASectionList.js +1 -1
- package/dist/layouts/NSASectionList.js.map +1 -1
- package/dist/layouts/NSASectionNew.d.ts +9 -0
- package/dist/layouts/NSASectionNew.js +5 -0
- package/dist/layouts/NSASectionNew.js.map +1 -0
- package/dist/pages/NSALoginPage.module.css +19 -19
- package/package.json +64 -64
- package/public/index.html +21 -21
- package/src/App.css +56 -56
- package/src/App.tsx +10 -10
- package/src/IEntityInfo.ts +23 -23
- 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 +65 -65
- package/src/index.tsx +7 -7
- package/src/layouts/Actions.ts +92 -92
- package/src/layouts/NSALayout.tsx +193 -193
- package/src/layouts/NSASectionEdit.tsx +97 -97
- package/src/layouts/NSASectionList.tsx +105 -105
- package/src/layouts/NSASectionTabs.tsx +36 -36
- package/src/layouts/NSASectionView.tsx +15 -15
- package/src/main.ts +16 -16
- package/src/pages/NSALoginPage.module.css +19 -19
- package/src/pages/NSALoginPage.tsx +37 -37
- package/tsconfig.json +43 -43
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import { NSLine, NSSection, NSSpace, NSSpaceSizeType, NSTable } from "namirasoft-site-react";
|
|
2
|
-
import { Component, ReactNode, createRef } from "react";
|
|
3
|
-
import { IEntityInfo } from "../IEntityInfo";
|
|
4
|
-
import { NSASectionTabs } from "./NSASectionTabs";
|
|
5
|
-
|
|
6
|
-
export interface NSASectionListProps
|
|
7
|
-
{
|
|
8
|
-
ui: {
|
|
9
|
-
getColumns: () => { [key: string]: string };
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface NSASectionListState
|
|
14
|
-
{
|
|
15
|
-
page: {
|
|
16
|
-
current: number;
|
|
17
|
-
size: number;
|
|
18
|
-
};
|
|
19
|
-
totalItems: number;
|
|
20
|
-
selected: string[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export class NSASectionList<EntityType extends { id: string }, EntityTypeInput = EntityType> extends Component<NSASectionListProps & { entity: IEntityInfo<EntityType, EntityTypeInput> }, NSASectionListState>
|
|
24
|
-
{
|
|
25
|
-
private Table = createRef<NSTable<EntityType>>();
|
|
26
|
-
constructor(props: NSASectionListProps & { entity: IEntityInfo<EntityType, EntityTypeInput>, children: ReactNode })
|
|
27
|
-
{
|
|
28
|
-
super(props);
|
|
29
|
-
this.state = { page: { current: 1, size: 25 }, totalItems: 0, selected: [] };
|
|
30
|
-
this.reload = this.reload.bind(this);
|
|
31
|
-
this.getSelectedIDs = this.getSelectedIDs.bind(this);
|
|
32
|
-
}
|
|
33
|
-
reload(): void
|
|
34
|
-
{
|
|
35
|
-
this.Table.current?.setRows(
|
|
36
|
-
this.props.entity.server.list(null, this.state.page.current, this.state.page.size).then(response =>
|
|
37
|
-
{
|
|
38
|
-
this.Table.current?.setRows(response.rows);
|
|
39
|
-
this.setState(prevState => ({ ...prevState, totalItems: response.count ?? 0 }));
|
|
40
|
-
}).catch(() => { });
|
|
41
|
-
}
|
|
42
|
-
getSelectedIDs(): string[]
|
|
43
|
-
{
|
|
44
|
-
return this.state.selected;
|
|
45
|
-
}
|
|
46
|
-
override componentDidMount()
|
|
47
|
-
{
|
|
48
|
-
this.reload();
|
|
49
|
-
}
|
|
50
|
-
override render()
|
|
51
|
-
{
|
|
52
|
-
const getColumns = (): { [key: string]: string } =>
|
|
53
|
-
{
|
|
54
|
-
return {
|
|
55
|
-
selected: "",
|
|
56
|
-
...this.props.ui.getColumns()
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
const getRowKey = (row: EntityType, _: number): string =>
|
|
60
|
-
{
|
|
61
|
-
return row.id.toString();
|
|
62
|
-
};
|
|
63
|
-
const getColumnAttributes = (): { [key: string]: string } =>
|
|
64
|
-
{
|
|
65
|
-
return {};
|
|
66
|
-
};
|
|
67
|
-
const getCell = (row: EntityType, column: string) =>
|
|
68
|
-
{
|
|
69
|
-
if (column === "selected")
|
|
70
|
-
return <input id={`checkbox_device_${row.id}`} type="checkbox" defaultValue={this.state.selected.includes(row.id) + ""} onChange={(e) =>
|
|
71
|
-
{
|
|
72
|
-
let selected = this.state.selected;
|
|
73
|
-
if (e.currentTarget.checked)
|
|
74
|
-
selected.push(row.id);
|
|
75
|
-
else
|
|
76
|
-
selected = selected.filter(x => x != row.id);
|
|
77
|
-
this.setState(prevState => ({ ...prevState, selected }));
|
|
78
|
-
}} />;
|
|
79
|
-
return (row as any)[column];
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
let ids = this.getSelectedIDs();
|
|
83
|
-
let id = "";
|
|
84
|
-
if (ids.length == 1)
|
|
85
|
-
id = ids[0];
|
|
86
|
-
|
|
87
|
-
return (
|
|
88
|
-
<NSSection center_items={false}>
|
|
89
|
-
<NSTable<EntityType>
|
|
90
|
-
ref={this.Table}
|
|
91
|
-
columns={getColumns()}
|
|
92
|
-
getRowKey={getRowKey}
|
|
93
|
-
getColumnAttributes={getColumnAttributes}
|
|
94
|
-
getCell={getCell}
|
|
95
|
-
pageSize={this.state.page.size}
|
|
96
|
-
totalItems={this.state.totalItems}
|
|
97
|
-
reload={this.reload}
|
|
98
|
-
/>
|
|
99
|
-
<NSSpace size={NSSpaceSizeType.NORMAL}></NSSpace>
|
|
100
|
-
<NSLine></NSLine>
|
|
101
|
-
<NSSpace size={NSSpaceSizeType.NORMAL}></NSSpace>
|
|
102
|
-
<NSASectionTabs entity={this.props.entity} id={id} />
|
|
103
|
-
</NSSection>
|
|
104
|
-
);
|
|
105
|
-
}
|
|
1
|
+
import { NSLine, NSSection, NSSpace, NSSpaceSizeType, NSTable } from "namirasoft-site-react";
|
|
2
|
+
import { Component, ReactNode, createRef } from "react";
|
|
3
|
+
import { IEntityInfo } from "../IEntityInfo";
|
|
4
|
+
import { NSASectionTabs } from "./NSASectionTabs";
|
|
5
|
+
|
|
6
|
+
export interface NSASectionListProps
|
|
7
|
+
{
|
|
8
|
+
ui: {
|
|
9
|
+
getColumns: () => { [key: string]: string };
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface NSASectionListState
|
|
14
|
+
{
|
|
15
|
+
page: {
|
|
16
|
+
current: number;
|
|
17
|
+
size: number;
|
|
18
|
+
};
|
|
19
|
+
totalItems: number;
|
|
20
|
+
selected: string[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class NSASectionList<EntityType extends { id: string }, EntityTypeInput = EntityType> extends Component<NSASectionListProps & { entity: IEntityInfo<EntityType, EntityTypeInput> }, NSASectionListState>
|
|
24
|
+
{
|
|
25
|
+
private Table = createRef<NSTable<EntityType>>();
|
|
26
|
+
constructor(props: NSASectionListProps & { entity: IEntityInfo<EntityType, EntityTypeInput>, children: ReactNode })
|
|
27
|
+
{
|
|
28
|
+
super(props);
|
|
29
|
+
this.state = { page: { current: 1, size: 25 }, totalItems: 0, selected: [] };
|
|
30
|
+
this.reload = this.reload.bind(this);
|
|
31
|
+
this.getSelectedIDs = this.getSelectedIDs.bind(this);
|
|
32
|
+
}
|
|
33
|
+
reload(): void
|
|
34
|
+
{
|
|
35
|
+
this.Table.current?.setRows(null);
|
|
36
|
+
this.props.entity.server.list(null, this.state.page.current, this.state.page.size).then(response =>
|
|
37
|
+
{
|
|
38
|
+
this.Table.current?.setRows(response.rows);
|
|
39
|
+
this.setState(prevState => ({ ...prevState, totalItems: response.count ?? 0 }));
|
|
40
|
+
}).catch(() => { });
|
|
41
|
+
}
|
|
42
|
+
getSelectedIDs(): string[]
|
|
43
|
+
{
|
|
44
|
+
return this.state.selected;
|
|
45
|
+
}
|
|
46
|
+
override componentDidMount()
|
|
47
|
+
{
|
|
48
|
+
this.reload();
|
|
49
|
+
}
|
|
50
|
+
override render()
|
|
51
|
+
{
|
|
52
|
+
const getColumns = (): { [key: string]: string } =>
|
|
53
|
+
{
|
|
54
|
+
return {
|
|
55
|
+
selected: "",
|
|
56
|
+
...this.props.ui.getColumns()
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
const getRowKey = (row: EntityType, _: number): string =>
|
|
60
|
+
{
|
|
61
|
+
return row.id.toString();
|
|
62
|
+
};
|
|
63
|
+
const getColumnAttributes = (): { [key: string]: string } =>
|
|
64
|
+
{
|
|
65
|
+
return {};
|
|
66
|
+
};
|
|
67
|
+
const getCell = (row: EntityType, column: string) =>
|
|
68
|
+
{
|
|
69
|
+
if (column === "selected")
|
|
70
|
+
return <input id={`checkbox_device_${row.id}`} type="checkbox" defaultValue={this.state.selected.includes(row.id) + ""} onChange={(e) =>
|
|
71
|
+
{
|
|
72
|
+
let selected = this.state.selected;
|
|
73
|
+
if (e.currentTarget.checked)
|
|
74
|
+
selected.push(row.id);
|
|
75
|
+
else
|
|
76
|
+
selected = selected.filter(x => x != row.id);
|
|
77
|
+
this.setState(prevState => ({ ...prevState, selected }));
|
|
78
|
+
}} />;
|
|
79
|
+
return (row as any)[column];
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
let ids = this.getSelectedIDs();
|
|
83
|
+
let id = "";
|
|
84
|
+
if (ids.length == 1)
|
|
85
|
+
id = ids[0];
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
<NSSection center_items={false}>
|
|
89
|
+
<NSTable<EntityType>
|
|
90
|
+
ref={this.Table}
|
|
91
|
+
columns={getColumns()}
|
|
92
|
+
getRowKey={getRowKey}
|
|
93
|
+
getColumnAttributes={getColumnAttributes}
|
|
94
|
+
getCell={getCell}
|
|
95
|
+
pageSize={this.state.page.size}
|
|
96
|
+
totalItems={this.state.totalItems}
|
|
97
|
+
reload={this.reload}
|
|
98
|
+
/>
|
|
99
|
+
<NSSpace size={NSSpaceSizeType.NORMAL}></NSSpace>
|
|
100
|
+
<NSLine></NSLine>
|
|
101
|
+
<NSSpace size={NSSpaceSizeType.NORMAL}></NSSpace>
|
|
102
|
+
<NSASectionTabs entity={this.props.entity} id={id} />
|
|
103
|
+
</NSSection>
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
106
|
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { NSTabPage } from "namirasoft-site-react";
|
|
2
|
-
import { IEntityInfo } from "../IEntityInfo";
|
|
3
|
-
|
|
4
|
-
export interface NSASectionTabsProps
|
|
5
|
-
{
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function NSASectionTabs<EntityType extends { id: string }, EntityTypeInput = EntityType>(props: NSASectionTabsProps & { entity: IEntityInfo<EntityType, EntityTypeInput>; })
|
|
10
|
-
{
|
|
11
|
-
console.log("Todo", props);
|
|
12
|
-
|
|
13
|
-
// tabs
|
|
14
|
-
let todo = () => <p>This is not impolemented yet.</p>;
|
|
15
|
-
const tabs = [];
|
|
16
|
-
if (props.id)
|
|
17
|
-
{
|
|
18
|
-
tabs.push({ title: 'Information', getContent: todo });
|
|
19
|
-
tabs.push({ title: 'Price History', getContent: todo });
|
|
20
|
-
}
|
|
21
|
-
tabs.push({ title: 'Price Estimator', getContent: todo });
|
|
22
|
-
if (props.id)
|
|
23
|
-
{
|
|
24
|
-
tabs.push({ title: 'Log', getContent: todo });
|
|
25
|
-
tabs.push({ title: 'Monitor', getContent: todo });
|
|
26
|
-
tabs.push({ title: 'History', getContent: todo });
|
|
27
|
-
}
|
|
28
|
-
tabs.push({ title: 'How It Works', getContent: todo });
|
|
29
|
-
tabs.push({ title: 'API', getContent: todo });
|
|
30
|
-
tabs.push({ title: 'Sample Code', getContent: todo });
|
|
31
|
-
tabs.push({ title: 'Tag', getContent: todo });
|
|
32
|
-
tabs.push({ title: 'Category', getContent: todo });
|
|
33
|
-
tabs.push({ title: 'Field', getContent: todo });
|
|
34
|
-
return (
|
|
35
|
-
<NSTabPage tabs={tabs} />
|
|
36
|
-
);
|
|
1
|
+
import { NSTabPage } from "namirasoft-site-react";
|
|
2
|
+
import { IEntityInfo } from "../IEntityInfo";
|
|
3
|
+
|
|
4
|
+
export interface NSASectionTabsProps
|
|
5
|
+
{
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function NSASectionTabs<EntityType extends { id: string }, EntityTypeInput = EntityType>(props: NSASectionTabsProps & { entity: IEntityInfo<EntityType, EntityTypeInput>; })
|
|
10
|
+
{
|
|
11
|
+
console.log("Todo", props);
|
|
12
|
+
|
|
13
|
+
// tabs
|
|
14
|
+
let todo = () => <p>This is not impolemented yet.</p>;
|
|
15
|
+
const tabs = [];
|
|
16
|
+
if (props.id)
|
|
17
|
+
{
|
|
18
|
+
tabs.push({ title: 'Information', getContent: todo });
|
|
19
|
+
tabs.push({ title: 'Price History', getContent: todo });
|
|
20
|
+
}
|
|
21
|
+
tabs.push({ title: 'Price Estimator', getContent: todo });
|
|
22
|
+
if (props.id)
|
|
23
|
+
{
|
|
24
|
+
tabs.push({ title: 'Log', getContent: todo });
|
|
25
|
+
tabs.push({ title: 'Monitor', getContent: todo });
|
|
26
|
+
tabs.push({ title: 'History', getContent: todo });
|
|
27
|
+
}
|
|
28
|
+
tabs.push({ title: 'How It Works', getContent: todo });
|
|
29
|
+
tabs.push({ title: 'API', getContent: todo });
|
|
30
|
+
tabs.push({ title: 'Sample Code', getContent: todo });
|
|
31
|
+
tabs.push({ title: 'Tag', getContent: todo });
|
|
32
|
+
tabs.push({ title: 'Category', getContent: todo });
|
|
33
|
+
tabs.push({ title: 'Field', getContent: todo });
|
|
34
|
+
return (
|
|
35
|
+
<NSTabPage tabs={tabs} />
|
|
36
|
+
);
|
|
37
37
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { NSASectionTabs } from "./NSASectionTabs";
|
|
2
|
-
import { IEntityInfo } from "../IEntityInfo";
|
|
3
|
-
import { useParams } from "react-router-dom";
|
|
4
|
-
|
|
5
|
-
export interface NSASectionViewProps
|
|
6
|
-
{
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function NSASectionView<EntityType extends { id: string }, EntityTypeInput = EntityType>(props: NSASectionViewProps & { entity: IEntityInfo<EntityType, EntityTypeInput>; })
|
|
10
|
-
{
|
|
11
|
-
let { id } = useParams();
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<NSASectionTabs entity={props.entity} id={id ?? ""} />
|
|
15
|
-
);
|
|
1
|
+
import { NSASectionTabs } from "./NSASectionTabs";
|
|
2
|
+
import { IEntityInfo } from "../IEntityInfo";
|
|
3
|
+
import { useParams } from "react-router-dom";
|
|
4
|
+
|
|
5
|
+
export interface NSASectionViewProps
|
|
6
|
+
{
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function NSASectionView<EntityType extends { id: string }, EntityTypeInput = EntityType>(props: NSASectionViewProps & { entity: IEntityInfo<EntityType, EntityTypeInput>; })
|
|
10
|
+
{
|
|
11
|
+
let { id } = useParams();
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<NSASectionTabs entity={props.entity} id={id ?? ""} />
|
|
15
|
+
);
|
|
16
16
|
}
|
package/src/main.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export * from "./components/NSADeleteModal";
|
|
2
|
-
export * from "./components/NSAMessageDialog";
|
|
3
|
-
|
|
4
|
-
export * from "./layouts/Actions";
|
|
5
|
-
export * from "./layouts/NSALayout";
|
|
6
|
-
export * from "./layouts/NSASectionEdit";
|
|
7
|
-
export * from "./layouts/NSASectionList";
|
|
8
|
-
export * from "./layouts/NSASectionView";
|
|
9
|
-
|
|
10
|
-
export * from "./pages/NSALoginPage";
|
|
11
|
-
|
|
12
|
-
export * from "./IEntityInfo";
|
|
13
|
-
export * from "./Info";
|
|
14
|
-
export * from "./INSARouterMaker";
|
|
15
|
-
export * from "./INSARouterProps";
|
|
16
|
-
export * from "./INSARouterState";
|
|
1
|
+
export * from "./components/NSADeleteModal";
|
|
2
|
+
export * from "./components/NSAMessageDialog";
|
|
3
|
+
|
|
4
|
+
export * from "./layouts/Actions";
|
|
5
|
+
export * from "./layouts/NSALayout";
|
|
6
|
+
export * from "./layouts/NSASectionEdit";
|
|
7
|
+
export * from "./layouts/NSASectionList";
|
|
8
|
+
export * from "./layouts/NSASectionView";
|
|
9
|
+
|
|
10
|
+
export * from "./pages/NSALoginPage";
|
|
11
|
+
|
|
12
|
+
export * from "./IEntityInfo";
|
|
13
|
+
export * from "./Info";
|
|
14
|
+
export * from "./INSARouterMaker";
|
|
15
|
+
export * from "./INSARouterProps";
|
|
16
|
+
export * from "./INSARouterState";
|
|
17
17
|
export * from "./NSARouterMaker";
|
|
@@ -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
|
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import Styles from './NSALoginPage.module.css';
|
|
2
|
-
|
|
3
|
-
import { NSSpace, NSSpaceSizeType, NSLinkBlue } from 'namirasoft-site-react';
|
|
4
|
-
|
|
5
|
-
export interface INSALoginPageProps
|
|
6
|
-
{
|
|
7
|
-
title: string;
|
|
8
|
-
logo: string;
|
|
9
|
-
background: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function NSALoginPage(props: INSALoginPageProps)
|
|
13
|
-
{
|
|
14
|
-
return (
|
|
15
|
-
<div
|
|
16
|
-
style={{
|
|
17
|
-
backgroundImage: `url(${props.background})`,
|
|
18
|
-
width: '100%',
|
|
19
|
-
backgroundSize: 'cover',
|
|
20
|
-
backgroundAttachment: 'fixed'
|
|
21
|
-
}}
|
|
22
|
-
>
|
|
23
|
-
<div className={Styles.ns_login_container} style={{ minHeight: '100vh' }}>
|
|
24
|
-
<div className={Styles.ns_logo}>
|
|
25
|
-
<img width={256} height={256} src={props.logo} alt={`${props.title} Logo`} />
|
|
26
|
-
</div>
|
|
27
|
-
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
28
|
-
<div>
|
|
29
|
-
<h1 className={Styles.ns_title}>{props.title}</h1>
|
|
30
|
-
</div>
|
|
31
|
-
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
32
|
-
<div className={Styles.ns_button}>
|
|
33
|
-
<NSLinkBlue title="Login" href={'https://account.namirasoft.com/login'} />
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
);
|
|
1
|
+
import Styles from './NSALoginPage.module.css';
|
|
2
|
+
|
|
3
|
+
import { NSSpace, NSSpaceSizeType, NSLinkBlue } from 'namirasoft-site-react';
|
|
4
|
+
|
|
5
|
+
export interface INSALoginPageProps
|
|
6
|
+
{
|
|
7
|
+
title: string;
|
|
8
|
+
logo: string;
|
|
9
|
+
background: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function NSALoginPage(props: INSALoginPageProps)
|
|
13
|
+
{
|
|
14
|
+
return (
|
|
15
|
+
<div
|
|
16
|
+
style={{
|
|
17
|
+
backgroundImage: `url(${props.background})`,
|
|
18
|
+
width: '100%',
|
|
19
|
+
backgroundSize: 'cover',
|
|
20
|
+
backgroundAttachment: 'fixed'
|
|
21
|
+
}}
|
|
22
|
+
>
|
|
23
|
+
<div className={Styles.ns_login_container} style={{ minHeight: '100vh' }}>
|
|
24
|
+
<div className={Styles.ns_logo}>
|
|
25
|
+
<img width={256} height={256} src={props.logo} alt={`${props.title} Logo`} />
|
|
26
|
+
</div>
|
|
27
|
+
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
28
|
+
<div>
|
|
29
|
+
<h1 className={Styles.ns_title}>{props.title}</h1>
|
|
30
|
+
</div>
|
|
31
|
+
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
32
|
+
<div className={Styles.ns_button}>
|
|
33
|
+
<NSLinkBlue title="Login" href={'https://account.namirasoft.com/login'} />
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
38
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES6",
|
|
4
|
-
"jsx": "react-jsx",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"rootDir": "./src",
|
|
7
|
-
"outDir": "./dist",
|
|
8
|
-
"lib": [
|
|
9
|
-
"dom",
|
|
10
|
-
"dom.iterable",
|
|
11
|
-
"esnext"
|
|
12
|
-
],
|
|
13
|
-
"allowJs": false,
|
|
14
|
-
"checkJs": false,
|
|
15
|
-
"strict": true,
|
|
16
|
-
"esModuleInterop": true,
|
|
17
|
-
"sourceMap": true,
|
|
18
|
-
"resolveJsonModule": true,
|
|
19
|
-
"declaration": true,
|
|
20
|
-
"noUnusedLocals": true,
|
|
21
|
-
"noUnusedParameters": true,
|
|
22
|
-
"noImplicitAny": true,
|
|
23
|
-
"noImplicitOverride": true,
|
|
24
|
-
"noImplicitReturns": true,
|
|
25
|
-
"noImplicitThis": true,
|
|
26
|
-
"skipLibCheck": true,
|
|
27
|
-
"allowSyntheticDefaultImports": true,
|
|
28
|
-
"forceConsistentCasingInFileNames": true,
|
|
29
|
-
"noFallthroughCasesInSwitch": true,
|
|
30
|
-
"isolatedModules": false,
|
|
31
|
-
"removeComments": true,
|
|
32
|
-
},
|
|
33
|
-
"include": [
|
|
34
|
-
"src",
|
|
35
|
-
"build/types/**/*.ts",
|
|
36
|
-
],
|
|
37
|
-
"exclude": [
|
|
38
|
-
"node_modules",
|
|
39
|
-
"build",
|
|
40
|
-
"dist",
|
|
41
|
-
"static",
|
|
42
|
-
"public"
|
|
43
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES6",
|
|
4
|
+
"jsx": "react-jsx",
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"rootDir": "./src",
|
|
7
|
+
"outDir": "./dist",
|
|
8
|
+
"lib": [
|
|
9
|
+
"dom",
|
|
10
|
+
"dom.iterable",
|
|
11
|
+
"esnext"
|
|
12
|
+
],
|
|
13
|
+
"allowJs": false,
|
|
14
|
+
"checkJs": false,
|
|
15
|
+
"strict": true,
|
|
16
|
+
"esModuleInterop": true,
|
|
17
|
+
"sourceMap": true,
|
|
18
|
+
"resolveJsonModule": true,
|
|
19
|
+
"declaration": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"noUnusedParameters": true,
|
|
22
|
+
"noImplicitAny": true,
|
|
23
|
+
"noImplicitOverride": true,
|
|
24
|
+
"noImplicitReturns": true,
|
|
25
|
+
"noImplicitThis": true,
|
|
26
|
+
"skipLibCheck": true,
|
|
27
|
+
"allowSyntheticDefaultImports": true,
|
|
28
|
+
"forceConsistentCasingInFileNames": true,
|
|
29
|
+
"noFallthroughCasesInSwitch": true,
|
|
30
|
+
"isolatedModules": false,
|
|
31
|
+
"removeComments": true,
|
|
32
|
+
},
|
|
33
|
+
"include": [
|
|
34
|
+
"src",
|
|
35
|
+
"build/types/**/*.ts",
|
|
36
|
+
],
|
|
37
|
+
"exclude": [
|
|
38
|
+
"node_modules",
|
|
39
|
+
"build",
|
|
40
|
+
"dist",
|
|
41
|
+
"static",
|
|
42
|
+
"public"
|
|
43
|
+
]
|
|
44
44
|
}
|