Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-029
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-029
2023-029
Commits
93fc9979
Commit
93fc9979
authored
Sep 03, 2023
by
janithgamage1.ed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update
Desc : update project
parent
a6b843b5
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
134 additions
and
44 deletions
+134
-44
Project/Frontend/SignConnectPlus/src/data/tutorials.ts
Project/Frontend/SignConnectPlus/src/data/tutorials.ts
+21
-2
Project/Frontend/SignConnectPlus/src/pages/parameter/tutorial-management/list/list.tsx
...lus/src/pages/parameter/tutorial-management/list/list.tsx
+4
-4
Project/Frontend/SignConnectPlus/src/sections/parameters/tutorial-management/AddEditTutorial.tsx
...ctions/parameters/tutorial-management/AddEditTutorial.tsx
+106
-35
Project/Frontend/SignConnectPlus/src/types/tutorial.ts
Project/Frontend/SignConnectPlus/src/types/tutorial.ts
+3
-3
No files found.
Project/Frontend/SignConnectPlus/src/data/tutorials.ts
View file @
93fc9979
import
{
tutorialType
}
from
"
types/tutorial
"
;
import
{
Tutorial
,
tutorialType
}
from
"
types/tutorial
"
;
export
const
tutorials
:
tutorialType
[]
=
[
export
const
tutorials
:
tutorialType
[]
=
[
{
{
...
@@ -180,4 +180,23 @@ export const tutorials: tutorialType[] = [
...
@@ -180,4 +180,23 @@ export const tutorials: tutorialType[] = [
"
createdAt
"
:
new
Date
(
"
2023-08-30T12:00:00Z
"
),
"
createdAt
"
:
new
Date
(
"
2023-08-30T12:00:00Z
"
),
"
tutorialMark
"
:
0
,
"
tutorialMark
"
:
0
,
}
}
]
]
\ No newline at end of file
export
const
tutorialReqOb
:
Tutorial
=
{
"
tutorialCode
"
:
"
Tutorial Code -12312
"
,
"
tutorialTitle
"
:
"
Tutorial Title
"
,
"
tutorialImage
"
:
"
Tutorial Image
"
,
"
tutorialDescription
"
:
"
Tutorial Description
"
,
"
taskItems
"
:
[
{
"
title
"
:
"
Task Title -213123
"
,
"
description
"
:
"
Task Reference Image
"
,
//@ts-ignore
"
howToDo
"
:
"
Task How To Do
"
,
"
referenceImage
"
:
"
Task Reference Image
"
,
"
referenceVideo
"
:
"
Task Reference Image
"
,
"
taskItemMark
"
:
10
}
],
"
createdBy
"
:
"
Nuwan Gamage
"
}
\ No newline at end of file
Project/Frontend/SignConnectPlus/src/pages/parameter/tutorial-management/list/list.tsx
View file @
93fc9979
...
@@ -40,8 +40,8 @@ import AlertTutorialDelete from 'sections/parameters/tutorial-management/AlertTu
...
@@ -40,8 +40,8 @@ import AlertTutorialDelete from 'sections/parameters/tutorial-management/AlertTu
import
{
useDispatch
,
useSelector
}
from
'
store
'
;
import
{
useDispatch
,
useSelector
}
from
'
store
'
;
import
{
openSnackbar
}
from
'
store/reducers/snackbar
'
;
import
{
openSnackbar
}
from
'
store/reducers/snackbar
'
;
import
{
fetchTutorials
,
toInitialState
}
from
'
store/reducers/tutorial
'
;
import
{
fetchTutorials
,
toInitialState
}
from
'
store/reducers/tutorial
'
;
import
{
Tutorials
}
from
'
types/tutorial
'
;
import
{
Tutorial
,
Tutorial
s
}
from
'
types/tutorial
'
;
import
{
ReactTableProps
,
tutorialProps
}
from
'
./types/types
'
;
import
{
ReactTableProps
}
from
'
./types/types
'
;
// ==============================|| REACT TABLE ||============================== //
// ==============================|| REACT TABLE ||============================== //
...
@@ -396,7 +396,7 @@ const List = () => {
...
@@ -396,7 +396,7 @@ const List = () => {
//dialog model
//dialog model
const
[
addEdit
,
setAddEdit
]
=
useState
<
boolean
>
(
false
);
const
[
addEdit
,
setAddEdit
]
=
useState
<
boolean
>
(
false
);
const
[
tutorial
,
setTutorial
]
=
useState
<
tutorialProps
>
();
const
[
tutorial
,
setTutorial
]
=
useState
<
Tutorial
>
();
const
handleAddEdit
=
()
=>
{
const
handleAddEdit
=
()
=>
{
setAddEdit
(
!
addEdit
);
setAddEdit
(
!
addEdit
);
...
@@ -481,7 +481,7 @@ const List = () => {
...
@@ -481,7 +481,7 @@ const List = () => {
sx=
{
{
'
& .MuiDialog-paper
'
:
{
p
:
0
},
transition
:
'
transform 225ms
'
}
}
sx=
{
{
'
& .MuiDialog-paper
'
:
{
p
:
0
},
transition
:
'
transform 225ms
'
}
}
aria
-
describedby=
"alert-dialog-slide-description"
aria
-
describedby=
"alert-dialog-slide-description"
>
>
<
AddEditTutorial
tutorial=
{
tutorial
}
onCancel=
{
handleAddEdit
}
/>
<
AddEditTutorial
tutorial=
{
tutorial
!
}
onCancel=
{
handleAddEdit
}
/>
</
Dialog
>
</
Dialog
>
{
/* alert model */
}
{
/* alert model */
}
{
!
tutorial
&&
<
AlertTutorialDelete
title=
{
""
}
open=
{
openAlert
}
handleClose=
{
handleAlertClose
}
deleteId=
{
tutorialId
}
/>
}
{
!
tutorial
&&
<
AlertTutorialDelete
title=
{
""
}
open=
{
openAlert
}
handleClose=
{
handleAlertClose
}
deleteId=
{
tutorialId
}
/>
}
...
...
Project/Frontend/SignConnectPlus/src/sections/parameters/tutorial-management/AddEditTutorial.tsx
View file @
93fc9979
This diff is collapsed.
Click to expand it.
Project/Frontend/SignConnectPlus/src/types/tutorial.ts
View file @
93fc9979
...
@@ -21,11 +21,11 @@ export type Tutorial = {
...
@@ -21,11 +21,11 @@ export type Tutorial = {
tutorialTitle
?:
string
tutorialTitle
?:
string
tutorialDescription
?:
string
tutorialDescription
?:
string
tutorialImage
?:
string
tutorialImage
?:
string
tutorialMark
:
number
tutorialMark
?
:
number
taskItems
:
taskItemType
[]
taskItems
:
taskItemType
[]
status
:
number
status
?
:
number
createdBy
:
string
createdBy
:
string
createdAt
:
Date
createdAt
?
:
Date
updatedBy
?:
string
updatedBy
?:
string
updatedAt
?:
Date
updatedAt
?:
Date
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment