Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
21_22-J 38
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
21_22-J 38
21_22-J 38
Commits
ae67aeb3
Commit
ae67aeb3
authored
Jul 17, 2022
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final
parent
84e27acd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
115 additions
and
13 deletions
+115
-13
API/app.py
API/app.py
+1
-1
frontend/src/screen/Progress.js
frontend/src/screen/Progress.js
+110
-8
frontend/src/screen/client/Client.js
frontend/src/screen/client/Client.js
+1
-1
frontend/src/screen/reading/basic/ReadActivityGo.js
frontend/src/screen/reading/basic/ReadActivityGo.js
+1
-1
frontend/src/screen/reading/basic/ReadActivityHe.js
frontend/src/screen/reading/basic/ReadActivityHe.js
+1
-1
frontend/src/screen/reading/basic/ReadActivityNo.js
frontend/src/screen/reading/basic/ReadActivityNo.js
+1
-1
No files found.
API/app.py
View file @
ae67aeb3
...
...
@@ -256,4 +256,4 @@ def predict_pronounce(FPFN):
if
__name__
==
"__main__"
:
app
.
run
(
host
=
'192.168.8.10
0
'
)
app
.
run
(
host
=
'192.168.8.10
2
'
)
frontend/src/screen/Progress.js
View file @
ae67aeb3
import
React
,
{
Component
}
from
'
react
'
;
import
React
,
{
Component
,
useState
}
from
'
react
'
;
import
{
StyleSheet
,
TouchableOpacity
,
...
...
@@ -14,23 +14,59 @@ import {
Easing
,
NativeModules
,
Button
,
Modal
}
from
'
react-native
'
;
import
{
useNavigation
}
from
'
@react-navigation/native
'
;
import
{
useNavigation
}
from
'
@react-navigation/native
'
;
export
default
function
Progress
()
{
const
[
modalVisible2
,
setModalVisible2
]
=
useState
(
false
);
const
Separator
=
()
=>
<
View
style
=
{
styles
.
separator
}
/>
;
const
navigation
=
useNavigation
();
return
(
<
SafeAreaView
style
=
{
styles
.
container
}
>
<
View
>
<
Modal
animationType
=
"
fade
"
transparent
=
{
true
}
hidden
=
{
true
}
visible
=
{
modalVisible2
}
onRequestClose
=
{()
=>
{
setModalVisible2
(
!
modalVisible2
);
}}
>
<
View
style
=
{
styles
.
centeredView2
}
>
<
View
style
=
{
styles
.
modalView2
}
>
<
Text
style
=
{
styles
.
headStyle2
}
>
Color
Activity
Progress
<
/Text
>
<
TouchableOpacity
>
<
Text
style
=
{{
borderColor
:
"
black
"
,
borderWidth
:
2
,
padding
:
10
,
marginTop
:
10
,
marginBottom
:
5
,
fontSize
:
20
,
borderRadius
:
5
}}
>
Accuracy
<
/Text
>
<
/TouchableOpacity
>
<
TouchableOpacity
>
<
Text
style
=
{{
borderColor
:
"
black
"
,
borderWidth
:
2
,
padding
:
10
,
marginBottom
:
5
,
fontSize
:
20
,
borderRadius
:
5
}}
>
Time
<
/Text
>
<
/TouchableOpacity
>
<
TouchableOpacity
>
<
Text
style
=
{{
borderColor
:
"
black
"
,
borderWidth
:
2
,
padding
:
10
,
fontSize
:
20
,
borderRadius
:
5
}}
>
Count
<
/Text
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/Modal
>
<
/View
>
<
View
>
<
Button
title
=
"
Color Activity
"
onPress
=
{()
=>
navigation
.
navigate
(
'
PrimaryType
'
,
{
title
:
'
Primary Activities
'
,
id
:
1
,
})
}
><
/Button
>
onPress
=
{()
=>
setModalVisible2
(
true
)}
><
/Button
>
<
/View
>
<
Separator
/>
...
...
@@ -53,4 +89,70 @@ const styles = StyleSheet.create({
separator
:
{
marginVertical
:
10
,
},
centeredView2
:
{
flex
:
1
,
justifyContent
:
"
center
"
,
alignItems
:
"
center
"
,
marginTop
:
22
},
modalView2
:
{
marginTop
:
-
10
,
margin
:
20
,
backgroundColor
:
"
#FFFFFF
"
,
borderRadius
:
20
,
padding
:
35
,
borderWidth
:
5
,
borderColor
:
"
#1DCE92
"
,
alignItems
:
"
center
"
,
shadowColor
:
"
green
"
,
shadowOffset
:
{
width
:
0
,
height
:
2
},
shadowOpacity
:
0.25
,
shadowRadius
:
4
,
elevation
:
5
},
button2
:
{
borderRadius
:
20
,
padding
:
10
,
elevation
:
2
},
buttonOpen2
:
{
backgroundColor
:
"
#F194FF
"
,
},
buttonClose2
:
{
// backgroundColor: "#1DCE92",
},
textStyle2
:
{
color
:
"
white
"
,
fontWeight
:
"
bold
"
,
textAlign
:
"
center
"
},
modalText2
:
{
marginBottom
:
15
,
textAlign
:
"
center
"
},
headStyle2
:
{
color
:
"
black
"
,
fontWeight
:
"
bold
"
,
textAlign
:
"
center
"
,
fontSize
:
30
,
marginBottom
:
5
,
},
head2Style2
:
{
color
:
"
black
"
,
fontWeight
:
"
bold
"
,
textAlign
:
"
center
"
,
fontSize
:
30
,
marginBottom
:
20
,
},
alert2
:
{
backgroundColor
:
"
white
"
,
borderRadius
:
50
,
width
:
100
,
height
:
100
,
marginBottom
:
20
,
marginTop
:
-
80
},
});
frontend/src/screen/client/Client.js
View file @
ae67aeb3
...
...
@@ -2,6 +2,6 @@ import axios from 'axios';
// export default axios.create({ baseURL: 'http://192.168.8.102:5000/', timeout: 15000, });
export
default
axios
.
create
({
baseURL
:
'
http://192.168.8.10
0
:5000/
'
,
baseURL
:
'
http://192.168.8.10
2
:5000/
'
,
timeout
:
15000
,
});
frontend/src/screen/reading/basic/ReadActivityGo.js
View file @
ae67aeb3
...
...
@@ -24,7 +24,7 @@ import ReadModalFailed from '../../../component/reading/ReadModalFailed';
export
default
function
ReadActivityGo
()
{
const
navigation
=
useNavigation
();
const
[
count
,
setCount
]
=
useState
(
0
);
const
[
count
,
setCount
]
=
useState
(
1
);
const
[
modalVisible
,
setModalVisible
]
=
useState
(
false
);
const
[
modalVisible2
,
setModalVisible2
]
=
useState
(
false
);
const
[
modalVisible3
,
setModalVisible3
]
=
useState
(
false
);
...
...
frontend/src/screen/reading/basic/ReadActivityHe.js
View file @
ae67aeb3
...
...
@@ -24,7 +24,7 @@ import ReadModalFailed from '../../../component/reading/ReadModalFailed';
export
default
function
ReadActivityHe
()
{
const
navigation
=
useNavigation
();
const
[
count
,
setCount
]
=
useState
(
0
);
const
[
count
,
setCount
]
=
useState
(
1
);
const
[
modalVisible
,
setModalVisible
]
=
useState
(
false
);
const
[
modalVisible2
,
setModalVisible2
]
=
useState
(
false
);
const
[
modalVisible3
,
setModalVisible3
]
=
useState
(
false
);
...
...
frontend/src/screen/reading/basic/ReadActivityNo.js
View file @
ae67aeb3
...
...
@@ -26,7 +26,7 @@ import ReadModalFailed from '../../../component/reading/ReadModalFailed';
export
default
function
ReadActivityNo
()
{
const
navigation
=
useNavigation
();
const
[
count
,
setCount
]
=
useState
(
0
);
const
[
count
,
setCount
]
=
useState
(
1
);
const
[
modalVisible
,
setModalVisible
]
=
useState
(
false
);
const
[
modalVisible2
,
setModalVisible2
]
=
useState
(
false
);
const
[
modalVisible3
,
setModalVisible3
]
=
useState
(
false
);
...
...
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