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
3f29afae
Commit
3f29afae
authored
Sep 01, 2023
by
janithgamage1.ed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update
Desc : update project
parent
17009258
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
634 additions
and
19 deletions
+634
-19
Project/Frontend/SignConnectPlus/src/data/userProgress.ts
Project/Frontend/SignConnectPlus/src/data/userProgress.ts
+206
-0
Project/Frontend/SignConnectPlus/src/layout/MainLayout/Header/HeaderContent/index.tsx
...Plus/src/layout/MainLayout/Header/HeaderContent/index.tsx
+2
-2
Project/Frontend/SignConnectPlus/src/pages/learning-management/learning-curriculums-subscribed/list/list.tsx
...-management/learning-curriculums-subscribed/list/list.tsx
+239
-4
Project/Frontend/SignConnectPlus/src/pages/learning-management/learning-curriculums/list/list.tsx
...es/learning-management/learning-curriculums/list/list.tsx
+5
-5
Project/Frontend/SignConnectPlus/src/sections/learning-management/learning-curriculums-subscribed/Animation.tsx
...-management/learning-curriculums-subscribed/Animation.tsx
+40
-0
Project/Frontend/SignConnectPlus/src/sections/learning-management/learning-curriculums-subscribed/CurriculumCard.tsx
...gement/learning-curriculums-subscribed/CurriculumCard.tsx
+24
-0
Project/Frontend/SignConnectPlus/src/sections/learning-management/learning-curriculums-subscribed/skeleton/CurriculumCard.tsx
...arning-curriculums-subscribed/skeleton/CurriculumCard.tsx
+60
-0
Project/Frontend/SignConnectPlus/src/sections/learning-management/learning-curriculums-subscribed/skeleton/EmptyCurriculumCard.tsx
...g-curriculums-subscribed/skeleton/EmptyCurriculumCard.tsx
+52
-0
Project/Frontend/SignConnectPlus/src/types/userProgress.ts
Project/Frontend/SignConnectPlus/src/types/userProgress.ts
+6
-8
No files found.
Project/Frontend/SignConnectPlus/src/data/userProgress.ts
0 → 100644
View file @
3f29afae
This diff is collapsed.
Click to expand it.
Project/Frontend/SignConnectPlus/src/layout/MainLayout/Header/HeaderContent/index.tsx
View file @
3f29afae
...
@@ -10,7 +10,7 @@ import Message from './Message';
...
@@ -10,7 +10,7 @@ import Message from './Message';
import
Notification
from
'
./Notification
'
;
import
Notification
from
'
./Notification
'
;
import
Profile
from
'
./Profile
'
;
import
Profile
from
'
./Profile
'
;
import
Search
from
'
./Search
'
;
import
Search
from
'
./Search
'
;
//
import Customization from './Customization';
import
Customization
from
'
./Customization
'
;
import
MobileSection
from
'
./MobileSection
'
;
import
MobileSection
from
'
./MobileSection
'
;
// import MegaMenuSection from './MegaMenuSection';
// import MegaMenuSection from './MegaMenuSection';
...
@@ -42,7 +42,7 @@ const HeaderContent = () => {
...
@@ -42,7 +42,7 @@ const HeaderContent = () => {
<
Notification
/>
<
Notification
/>
<
Message
/>
<
Message
/>
{
/* <Customization /> */
}
<
Customization
/>
{
!
downLG
&&
<
Profile
/>
}
{
!
downLG
&&
<
Profile
/>
}
{
downLG
&&
<
MobileSection
/>
}
{
downLG
&&
<
MobileSection
/>
}
</>
</>
...
...
Project/Frontend/SignConnectPlus/src/pages/learning-management/learning-curriculums-subscribed/list/list.tsx
View file @
3f29afae
This diff is collapsed.
Click to expand it.
Project/Frontend/SignConnectPlus/src/pages/learning-management/learning-curriculums/list/list.tsx
View file @
3f29afae
...
@@ -18,7 +18,6 @@ import {
...
@@ -18,7 +18,6 @@ import {
// project import
// project import
import
{
curriculums
}
from
'
data/curriculums
'
;
import
usePagination
from
'
hooks/usePagination
'
;
import
usePagination
from
'
hooks/usePagination
'
;
import
CurriculumCard
from
'
sections/learning-management/learning-curriculums/CurriculumCard
'
;
import
CurriculumCard
from
'
sections/learning-management/learning-curriculums/CurriculumCard
'
;
import
EmptyCurriculumCard
from
'
sections/learning-management/learning-curriculums/skeleton/EmptyCurriculumCard
'
;
import
EmptyCurriculumCard
from
'
sections/learning-management/learning-curriculums/skeleton/EmptyCurriculumCard
'
;
...
@@ -28,6 +27,7 @@ import { GlobalFilter } from 'utils/react-table';
...
@@ -28,6 +27,7 @@ import { GlobalFilter } from 'utils/react-table';
// types
// types
// assets
// assets
import
{
curriculums
}
from
'
data/curriculums
'
;
// ==============================|| List ||============================== //
// ==============================|| List ||============================== //
...
@@ -35,7 +35,7 @@ const allColumns = [
...
@@ -35,7 +35,7 @@ const allColumns = [
{
{
id
:
1
,
id
:
1
,
header
:
'
Default
'
header
:
'
Default
'
},
},
{
{
id
:
2
,
id
:
2
,
header
:
'
Title
'
header
:
'
Title
'
...
@@ -79,7 +79,7 @@ const List = () => {
...
@@ -79,7 +79,7 @@ const List = () => {
_DATA
.
jump
(
p
);
_DATA
.
jump
(
p
);
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
setData
(
curriculums
)
setData
(
curriculums
)
},
[])
},
[])
...
@@ -128,8 +128,8 @@ const List = () => {
...
@@ -128,8 +128,8 @@ const List = () => {
{
curriculumsData
.
length
>
0
?
(
{
curriculumsData
.
length
>
0
?
(
_DATA
_DATA
.
currentData
()
.
currentData
()
.
sort
(
function
(
a
:
any
,
b
:
any
)
{
.
sort
(
function
(
a
:
any
,
b
:
any
)
{
if
(
sortBy
===
'
Title
'
)
return
a
.
curriculumTitle
.
localeCompare
(
b
.
curriculumTitle
);
if
(
sortBy
===
'
Title
'
)
return
a
.
curriculumTitle
.
localeCompare
(
b
.
curriculumTitle
);
return
a
;
return
a
;
})
})
.
map
((
curriculum
:
curriculumType
,
index
:
number
)
=>
(
.
map
((
curriculum
:
curriculumType
,
index
:
number
)
=>
(
...
...
Project/Frontend/SignConnectPlus/src/sections/learning-management/learning-curriculums-subscribed/Animation.tsx
0 → 100644
View file @
3f29afae
import
React
,
{
useEffect
}
from
'
react
'
;
// third party
import
{
useInView
}
from
'
react-intersection-observer
'
;
import
{
motion
,
useAnimation
}
from
'
framer-motion
'
;
// =============================|| LANDING - FADE IN ANIMATION ||============================= //
function
Animation
({
children
,
variants
}:
{
children
:
React
.
ReactElement
;
variants
:
any
})
{
const
controls
=
useAnimation
();
const
[
ref
,
inView
]
=
useInView
();
useEffect
(()
=>
{
if
(
inView
)
{
controls
.
start
(
'
visible
'
);
}
},
[
controls
,
inView
]);
return
(
<
motion
.
div
ref=
{
ref
}
animate=
{
controls
}
initial=
"hidden"
transition=
{
{
x
:
{
type
:
'
spring
'
,
stiffness
:
150
,
damping
:
30
,
duration
:
0.5
},
opacity
:
{
duration
:
1
}
}
}
variants=
{
variants
}
>
{
children
}
</
motion
.
div
>
);
}
export
default
Animation
;
Project/Frontend/SignConnectPlus/src/sections/learning-management/learning-curriculums-subscribed/CurriculumCard.tsx
0 → 100644
View file @
3f29afae
// material-ui
// third-party
// project import
// assets
// types
import
{
curriculumTypeUserProgress
}
from
"
types/userProgress
"
;
// ==============================|| CURRICULUM - CARD ||============================== //
const
CurriculumCard
=
({
curriculum
}:
{
curriculum
:
curriculumTypeUserProgress
})
=>
{
return
(
<>
</>
);
};
export
default
CurriculumCard
;
Project/Frontend/SignConnectPlus/src/sections/learning-management/learning-curriculums-subscribed/skeleton/CurriculumCard.tsx
0 → 100644
View file @
3f29afae
// material-ui
import
{
CardContent
,
Grid
,
Skeleton
,
Stack
,
Avatar
}
from
'
@mui/material
'
;
// project import
import
MainCard
from
'
components/MainCard
'
;
// assets
import
{
ContactsOutlined
}
from
'
@ant-design/icons
'
;
// ===========================|| SKELETON - USER EMPTY CARD ||=========================== //
const
UserCard
=
()
=>
{
return
(
<
MainCard
border=
{
false
}
content=
{
false
}
boxShadow
sx=
{
{
boxShadow
:
`rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px`
,
borderRadius
:
2
}
}
>
<
CardContent
sx=
{
{
p
:
2
}
}
>
<
Grid
container
spacing=
{
2
}
>
<
Grid
item
xs=
{
12
}
>
<
Stack
flexDirection=
"row"
alignItems=
"center"
>
<
Avatar
>
<
ContactsOutlined
style=
{
{
visibility
:
'
inherit
'
}
}
/>
</
Avatar
>
<
Stack
sx=
{
{
width
:
'
100%
'
,
pl
:
2.5
}
}
>
<
Skeleton
animation=
{
false
}
height=
{
20
}
width=
"80%"
/>
<
Skeleton
animation=
{
false
}
height=
{
20
}
width=
"40%"
/>
</
Stack
>
</
Stack
>
</
Grid
>
<
Grid
item
xs=
{
12
}
>
<
Skeleton
animation=
{
false
}
height=
{
20
}
width=
{
45
}
/>
<
Skeleton
animation=
{
false
}
height=
{
20
}
/>
<
Stack
direction=
"row"
alignItems=
"center"
spacing=
{
1
}
>
<
Skeleton
animation=
{
false
}
height=
{
20
}
width=
{
90
}
/>
<
Skeleton
animation=
{
false
}
height=
{
20
}
width=
{
38
}
/>
</
Stack
>
</
Grid
>
<
Grid
item
xs=
{
12
}
>
<
Stack
direction=
"row"
justifyContent=
"space-between"
alignItems=
"center"
>
<
Grid
container
spacing=
{
1
}
>
<
Grid
item
>
<
Skeleton
animation=
{
false
}
height=
{
20
}
width=
{
40
}
/>
</
Grid
>
<
Grid
item
>
<
Skeleton
animation=
{
false
}
height=
{
17
}
width=
{
20
}
/>
</
Grid
>
</
Grid
>
<
Skeleton
animation=
{
false
}
height=
{
32
}
width=
{
47
}
/>
</
Stack
>
</
Grid
>
</
Grid
>
</
CardContent
>
</
MainCard
>
);
};
export
default
UserCard
;
Project/Frontend/SignConnectPlus/src/sections/learning-management/learning-curriculums-subscribed/skeleton/EmptyCurriculumCard.tsx
0 → 100644
View file @
3f29afae
// material-ui
import
{
Box
,
Grid
,
Stack
,
Typography
}
from
'
@mui/material
'
;
// project import
import
CurriculumCard
from
'
./CurriculumCard
'
;
interface
Props
{
title
:
string
;
}
// ==============================|| EMPTY STATE ||============================== //
const
EmptyCurriculumCard
=
({
title
}:
Props
)
=>
{
return
(
<
Grid
container
spacing=
{
3
}
>
<
Grid
item
xs=
{
12
}
>
<
Box
sx=
{
{
p
:
{
xs
:
2.5
,
sm
:
6
},
height
:
`calc(100vh - 192px)`
,
display
:
'
flex
'
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
bgcolor
:
'
transparent
'
}
}
>
<
Grid
container
direction=
"column"
justifyContent=
"center"
alignItems=
"center"
>
<
Grid
item
>
<
Box
sx=
{
{
ml
:
-
9
,
mb
:
{
xs
:
-
8
,
sm
:
-
5
}
}
}
>
<
Box
sx=
{
{
position
:
'
relative
'
}
}
>
<
CurriculumCard
/>
</
Box
>
<
Box
sx=
{
{
position
:
'
relative
'
,
top
:
-
120
,
left
:
72
}
}
>
<
CurriculumCard
/>
</
Box
>
</
Box
>
</
Grid
>
<
Grid
item
>
<
Stack
spacing=
{
1
}
>
<
Typography
align=
"center"
variant=
"h4"
>
{
title
}
</
Typography
>
</
Stack
>
</
Grid
>
</
Grid
>
</
Box
>
</
Grid
>
</
Grid
>
);
};
export
default
EmptyCurriculumCard
;
Project/Frontend/SignConnectPlus/src/types/userProgress.ts
View file @
3f29afae
export
interface
userProgressType
{
export
interface
userProgressType
{
_id
:
string
userId
:
string
userId
:
string
curriculums
?:
curriculumTypeUserProgress
[]
curriculums
?:
curriculumTypeUserProgress
[]
totalCurriculumsMarks
:
number
totalCurriculumsMarks
:
number
totalCurriculumSpentTime
:
number
totalCurriculumSpentTime
:
number
status
:
number
status
:
number
createdBy
:
string
createdBy
?
:
string
createdAt
:
Date
createdAt
:
Date
updatedBy
?:
string
updatedBy
?:
string
updatedAt
?:
Date
updatedAt
?:
Date
...
@@ -12,7 +13,6 @@ export interface userProgressType {
...
@@ -12,7 +13,6 @@ export interface userProgressType {
export
interface
curriculumTypeUserProgress
{
export
interface
curriculumTypeUserProgress
{
_id
?:
string
curriculumCode
:
string
curriculumCode
:
string
curriculumLevel
:
number
curriculumLevel
:
number
curriculumTitle
:
string
curriculumTitle
:
string
...
@@ -21,11 +21,10 @@ export interface curriculumTypeUserProgress {
...
@@ -21,11 +21,10 @@ export interface curriculumTypeUserProgress {
curriculumMark
:
number
curriculumMark
:
number
curriculumMarkUser
:
number
curriculumMarkUser
:
number
curriculumSpentTime
:
number
curriculumSpentTime
:
number
tutorials
:
tutorialTypeUserProgress
[],
tutorials
:
tutorialTypeUserProgress
[],
}
}
export
interface
tutorialTypeUserProgress
{
export
interface
tutorialTypeUserProgress
{
_id
?:
string
tutorialCode
?:
string
tutorialCode
?:
string
tutorialTitle
?:
string
tutorialTitle
?:
string
tutorialDescription
?:
string
tutorialDescription
?:
string
...
@@ -33,11 +32,10 @@ export interface tutorialTypeUserProgress {
...
@@ -33,11 +32,10 @@ export interface tutorialTypeUserProgress {
tutorialMark
:
number
tutorialMark
:
number
tutorialMarkUser
:
number
tutorialMarkUser
:
number
tutorialSpentTime
:
number
tutorialSpentTime
:
number
taskItems
:
taskItemTypeUserProgress
[]
taskItems
:
taskItemTypeUserProgress
[]
}
}
export
interface
taskItemTypeUserProgress
{
export
interface
taskItemTypeUserProgress
{
_id
?:
string
title
:
string
,
title
:
string
,
description
:
string
,
description
:
string
,
howToDo
:
string
[],
howToDo
:
string
[],
...
...
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