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
Show 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';
import
Notification
from
'
./Notification
'
;
import
Profile
from
'
./Profile
'
;
import
Search
from
'
./Search
'
;
//
import Customization from './Customization';
import
Customization
from
'
./Customization
'
;
import
MobileSection
from
'
./MobileSection
'
;
// import MegaMenuSection from './MegaMenuSection';
...
...
@@ -42,7 +42,7 @@ const HeaderContent = () => {
<
Notification
/>
<
Message
/>
{
/* <Customization /> */
}
<
Customization
/>
{
!
downLG
&&
<
Profile
/>
}
{
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 {
// project import
import
{
curriculums
}
from
'
data/curriculums
'
;
import
usePagination
from
'
hooks/usePagination
'
;
import
CurriculumCard
from
'
sections/learning-management/learning-curriculums/CurriculumCard
'
;
import
EmptyCurriculumCard
from
'
sections/learning-management/learning-curriculums/skeleton/EmptyCurriculumCard
'
;
...
...
@@ -28,6 +27,7 @@ import { GlobalFilter } from 'utils/react-table';
// types
// assets
import
{
curriculums
}
from
'
data/curriculums
'
;
// ==============================|| List ||============================== //
...
...
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
{
_id
:
string
userId
:
string
curriculums
?:
curriculumTypeUserProgress
[]
totalCurriculumsMarks
:
number
totalCurriculumSpentTime
:
number
totalCurriculumsMarks
:
number
totalCurriculumSpentTime
:
number
status
:
number
createdBy
:
string
createdBy
?
:
string
createdAt
:
Date
updatedBy
?:
string
updatedAt
?:
Date
...
...
@@ -12,7 +13,6 @@ export interface userProgressType {
export
interface
curriculumTypeUserProgress
{
_id
?:
string
curriculumCode
:
string
curriculumLevel
:
number
curriculumTitle
:
string
...
...
@@ -25,7 +25,6 @@ export interface curriculumTypeUserProgress {
}
export
interface
tutorialTypeUserProgress
{
_id
?:
string
tutorialCode
?:
string
tutorialTitle
?:
string
tutorialDescription
?:
string
...
...
@@ -37,7 +36,6 @@ export interface tutorialTypeUserProgress {
}
export
interface
taskItemTypeUserProgress
{
_id
?:
string
title
:
string
,
description
:
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