Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-066
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
2022-066
2022-066
Commits
9b390602
Commit
9b390602
authored
Nov 16, 2022
by
tandin2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes for chaveena
parent
de55cb57
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18925 additions
and
108 deletions
+18925
-108
frontend/package-lock.json
frontend/package-lock.json
+18890
-46
frontend/src/indexing/upload.js
frontend/src/indexing/upload.js
+32
-59
frontend/src/main/AboutUs/aboutUs.js
frontend/src/main/AboutUs/aboutUs.js
+3
-3
No files found.
frontend/package-lock.json
View file @
9b390602
This diff is collapsed.
Click to expand it.
frontend/src/indexing/upload.js
View file @
9b390602
...
...
@@ -13,6 +13,7 @@ function Upload() {
const
[
video
,
setVideo
]
=
useState
(
""
);
const
[
indexingData
,
setIndexingData
]
=
useState
([])
// const [post, setPost] = React.useState(null);
const
[
buttonStatus
,
setButtonStatus
]
=
useState
(
false
);
const
[
videoFilePath
,
setVideoFilePath
]
=
useState
([]);
const
[
initialValue
,
setInitalValue
]
=
useState
(
0
);
const
handleVideoUpload
=
(
event
)
=>
{
...
...
@@ -21,7 +22,7 @@ function Upload() {
};
const
onReady
=
React
.
useCallback
(()
=>
{
console
.
log
(
"
here
"
)
//
console.log("here")
if
(
!
isReady
)
{
playerRef
.
current
.
seekTo
(
initialValue
,
"
seconds
"
);
setIsReady
(
true
);
...
...
@@ -38,8 +39,7 @@ function Upload() {
.
then
(
response
=>
response
.
json
())
.
then
(
response
=>
{
setIndexingData
(
response
);
// setVideoFilePath('C:\Users\User\Desktop\Backup\MyDATA\SLIIT\Video Indexing\Indexing\upload
setButtonStatus
(
true
);
})
.
catch
(
err
=>
{
console
.
log
(
err
);
...
...
@@ -67,65 +67,38 @@ function Upload() {
return
(
<
div
>
<
input
type
=
"
file
"
className
=
'
forrm-control
'
onChange
=
{
handleVideoUpload
}
><
/input
>
<>
<
center
>
<
div
style
=
{{
"
background-color
"
:
"
White
"
,
width
:
"
60%
"
,
"
border-radius
"
:
"
15px
"
,
"
margin-top
"
:
"
50px
"
}}
>
<
center
>
<
input
type
=
"
file
"
className
=
'
forrm-control
'
style
=
{{
"
margin-top
"
:
"
100px
"
,
"
margin-bottom
"
:
"
50px
"
}}
onChange
=
{
handleVideoUpload
}
><
/input
>
<
button
onClick
=
{
sendVideo
}
className
=
"
btn btn-primary
"
>
Upload
<
/button
>
<
ReactPlayer
ref
=
{
playerRef
}
url
=
{
videoFilePath
}
playing
=
{
isPlaying
}
width
=
"
50%
"
height
=
"
50%
"
controls
=
{
true
}
onReady
=
{
onReady
}
/
>
<
br
/>
{
/* <video controls>
<source src="C:\Users\User\Desktop\Backup\MyDATA\SLIIT\Video Indexing\Indexing\upload\IAS_Lec1_10min.mp4" />
</video> */
}
<
p
>
{
selectOptions
}
<
/p
>
{
buttonStatus
===
true
?
(
<
div
>
<
ReactPlayer
ref
=
{
playerRef
}
url
=
{
videoFilePath
}
playing
=
{
isPlaying
}
width
=
"
50%
"
height
=
"
50%
"
controls
=
{
true
}
onReady
=
{
onReady
}
/
>
<
br
/>
<
p
>
{
selectOptions
}
<
/p
>
<
/div
>
):
""
}
<
/center
>
<
/div
>
// <div className="background-material">
// <div className="container mt-4 shadow p-3 mb-5 bg-body rounded">
// <div>
// <h3>UPLOAD THE VIDEO</h3>
// <div className="container mt-4 p-3 mb-5 bg-body rounded">
// <form
// className="row g-3">
// <div className="form-group files">
// <input
// type="file"
// className="form-control"
// onChange={(e)=>setVideo(e.target.files[0])}
// multiple=""
// required=""
// />
// <button onClick={sendVideo}>UPLOAD</button>
// </div>
// {/* <div className="row g-3">
// <button onClick={sendVideo} className="button2-submit button-submit">UPLOAD</button>
// </div> */}
// </form>
// </div>
// </div>
// </div>
// </div>
<
/center
>
<
/
>
);
}
...
...
frontend/src/main/AboutUs/aboutUs.js
View file @
9b390602
...
...
@@ -28,21 +28,21 @@ class AboutUs extends Component {
<
span
className
=
'
aim_icon
'
>
<
ImUsers
/>
<
/span
>
<
h3
>
450
+<
/h3
>
<
h3
>
6
+<
/h3
>
<
p
>
Subscribers
<
/p
>
<
/article
>
<
article
className
=
'
aim_card
'
>
<
span
className
=
'
aim_icon
'
>
<
MdSubscriptions
/>
<
/span
>
<
h3
>
500
+<
/h3
>
<
h3
>
25
+<
/h3
>
<
p
>
Videos
<
/p
>
<
/article
>
<
article
className
=
'
aim_card
'
>
<
span
className
=
'
aim_icon
'
>
<
MdSubscriptions
/>
<
/span
>
<
h3
>
500
+<
/h3
>
<
h3
>
25
+<
/h3
>
<
p
>
Videos
<
/p
>
<
/article
>
<
/div
>
...
...
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