Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-142
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-142
2023-142
Commits
189c5d8e
Commit
189c5d8e
authored
May 27, 2023
by
IT20013950 Lakshani N.V.M.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: review step 2
parent
9042a4d8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
111 additions
and
1 deletion
+111
-1
frontend/src/Components/SVM/SVM.tsx
frontend/src/Components/SVM/SVM.tsx
+28
-1
frontend/src/Components/_common/ButtonCustom.tsx
frontend/src/Components/_common/ButtonCustom.tsx
+27
-0
frontend/src/Components/_common/Custom
frontend/src/Components/_common/Custom
+0
-0
frontend/src/Components/_common/DropDownWidget.tsx
frontend/src/Components/_common/DropDownWidget.tsx
+18
-0
frontend/src/Components/_common/ScrollButton.tsx
frontend/src/Components/_common/ScrollButton.tsx
+23
-0
frontend/src/Components/_common/TextAreaCustom.tsx
frontend/src/Components/_common/TextAreaCustom.tsx
+15
-0
No files found.
frontend/src/Components/SVM/SVM.tsx
View file @
189c5d8e
import
{
createStyles
}
from
"
@mantine/core
"
import
{
TextAreaCustom
}
from
"
../_common/TextAreaCustom
"
import
{
DropDownWidget
}
from
"
../_common/DropDownWidget
"
;
import
{
ButtonCustom
}
from
"
../_common/ButtonCustom
"
;
import
{
ScrollButton
}
from
"
../_common/ScrollButton
"
;
const
useStyle
=
createStyles
((
theme
)
=>
({
mainContainer
:
{
display
:
"
flex
"
,
flexDirection
:
"
column
"
,
alignItems
:
"
center
"
,
}
}))
function
SVM
()
{
const
{
classes
}
=
useStyle
();
return
(
<
div
>
SVM
</
div
>
<
div
className=
{
classes
.
mainContainer
}
>
<
TextAreaCustom
label=
"Enter the review"
placeholder=
"Enter the review"
/>
<
DropDownWidget
label=
"Select the Algorithm"
placeholder=
"Algorithm"
/>
<
ButtonCustom
label=
"Get the rule"
/>
<
ScrollButton
/>
</
div
>
)
}
...
...
frontend/src/Components/_common/ButtonCustom.tsx
0 → 100644
View file @
189c5d8e
import
{
Button
,
createStyles
}
from
'
@mantine/core
'
;
const
useStyles
=
createStyles
((
theme
)
=>
({
container
:
{
width
:
window
.
innerWidth
/
5
*
3
,
display
:
"
flex
"
,
justifyContent
:
"
end
"
,
}
}))
export
function
ButtonCustom
(
data
:
{
label
:
string
})
{
const
{
classes
}
=
useStyles
()
return
(
<
div
className=
{
classes
.
container
}
>
<
Button
variant=
"gradient"
gradient=
{
{
from
:
'
teal
'
,
to
:
'
blue
'
,
deg
:
60
}
}
radius=
"xl"
size=
"lg"
mt=
{
30
}
>
{
data
.
label
}
</
Button
>
</
div
>
);
}
\ No newline at end of file
frontend/src/Components/_common/Custom
0 → 100644
View file @
189c5d8e
frontend/src/Components/_common/DropDownWidget.tsx
0 → 100644
View file @
189c5d8e
import
{
Select
}
from
'
@mantine/core
'
;
export
function
DropDownWidget
(
data
:
{
label
:
string
,
placeholder
:
string
})
{
return
(
<
Select
mt=
{
30
}
label=
{
data
.
label
}
placeholder=
{
data
.
placeholder
}
data=
{
[
{
value
:
'
SVM
'
,
label
:
'
Support Vector Machine
'
},
{
value
:
'
random forest
'
,
label
:
'
Random Forest
'
},
{
value
:
'
logistic Regression
'
,
label
:
'
Logistic Regression
'
},
{
value
:
'
KNN
'
,
label
:
'
K-Nearest Neighbor
'
},
]
}
style=
{
{
width
:
window
.
innerWidth
/
5
*
3
}
}
/>
);
}
\ No newline at end of file
frontend/src/Components/_common/ScrollButton.tsx
0 → 100644
View file @
189c5d8e
import
{
useWindowScroll
}
from
'
@mantine/hooks
'
;
import
{
Button
,
createStyles
}
from
'
@mantine/core
'
;
const
useStyle
=
createStyles
((
theme
)
=>
({
button
:
{
position
:
"
fixed
"
,
bottom
:
50
,
right
:
50
,
width
:
"
50px
"
,
height
:
"
50px
"
,
borderRadius
:
"
50%
"
,
}
}))
export
function
ScrollButton
()
{
const
[
scroll
,
scrollTo
]
=
useWindowScroll
();
const
{
classes
}
=
useStyle
()
return
(
<
Button
className=
{
classes
.
button
}
onClick=
{
()
=>
scrollTo
({
y
:
0
})
}
>
^
</
Button
>
);
}
\ No newline at end of file
frontend/src/Components/_common/TextAreaCustom.tsx
0 → 100644
View file @
189c5d8e
import
{
Textarea
}
from
"
@mantine/core
"
;
export
function
TextAreaCustom
(
data
:
{
placeholder
:
string
,
label
:
string
})
{
return
(
<
Textarea
mt=
{
30
}
placeholder=
{
data
.
placeholder
}
label=
{
data
.
label
}
style=
{
{
width
:
window
.
innerWidth
/
5
*
3
}
}
minRows=
{
10
}
autosize=
{
true
}
withAsterisk
/>
);
}
\ No newline at end of file
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