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
4f8e1209
Commit
4f8e1209
authored
Jul 17, 2022
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'it18218640' into 'master'
final See merge request
!205
parents
f03f2d61
ae67aeb3
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 @
4f8e1209
...
@@ -256,4 +256,4 @@ def predict_pronounce(FPFN):
...
@@ -256,4 +256,4 @@ def predict_pronounce(FPFN):
if
__name__
==
"__main__"
:
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 @
4f8e1209
import
React
,
{
Component
}
from
'
react
'
;
import
React
,
{
Component
,
useState
}
from
'
react
'
;
import
{
import
{
StyleSheet
,
StyleSheet
,
TouchableOpacity
,
TouchableOpacity
,
...
@@ -14,23 +14,59 @@ import {
...
@@ -14,23 +14,59 @@ import {
Easing
,
Easing
,
NativeModules
,
NativeModules
,
Button
,
Button
,
Modal
}
from
'
react-native
'
;
}
from
'
react-native
'
;
import
{
useNavigation
}
from
'
@react-navigation/native
'
;
import
{
useNavigation
}
from
'
@react-navigation/native
'
;
export
default
function
Progress
()
{
export
default
function
Progress
()
{
const
[
modalVisible2
,
setModalVisible2
]
=
useState
(
false
);
const
Separator
=
()
=>
<
View
style
=
{
styles
.
separator
}
/>
;
const
Separator
=
()
=>
<
View
style
=
{
styles
.
separator
}
/>
;
const
navigation
=
useNavigation
();
const
navigation
=
useNavigation
();
return
(
return
(
<
SafeAreaView
style
=
{
styles
.
container
}
>
<
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
>
<
View
>
<
Button
<
Button
title
=
"
Color Activity
"
title
=
"
Color Activity
"
onPress
=
{()
=>
onPress
=
{()
=>
setModalVisible2
(
true
)}
><
/Button
>
navigation
.
navigate
(
'
PrimaryType
'
,
{
title
:
'
Primary Activities
'
,
id
:
1
,
})
}
><
/Button
>
<
/View
>
<
/View
>
<
Separator
/>
<
Separator
/>
...
@@ -53,4 +89,70 @@ const styles = StyleSheet.create({
...
@@ -53,4 +89,70 @@ const styles = StyleSheet.create({
separator
:
{
separator
:
{
marginVertical
:
10
,
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 @
4f8e1209
...
@@ -2,6 +2,6 @@ import axios from 'axios';
...
@@ -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.102:5000/', timeout: 15000, });
export
default
axios
.
create
({
export
default
axios
.
create
({
baseURL
:
'
http://192.168.8.10
0
:5000/
'
,
baseURL
:
'
http://192.168.8.10
2
:5000/
'
,
timeout
:
15000
,
timeout
:
15000
,
});
});
frontend/src/screen/reading/basic/ReadActivityGo.js
View file @
4f8e1209
...
@@ -26,7 +26,7 @@ import CountDownModal from '../../../component/reading/CountDownModal';
...
@@ -26,7 +26,7 @@ import CountDownModal from '../../../component/reading/CountDownModal';
export
default
function
ReadActivityGo
()
{
export
default
function
ReadActivityGo
()
{
const
navigation
=
useNavigation
();
const
navigation
=
useNavigation
();
const
[
count
,
setCount
]
=
useState
(
0
);
const
[
count
,
setCount
]
=
useState
(
1
);
const
[
modalVisible
,
setModalVisible
]
=
useState
(
false
);
const
[
modalVisible
,
setModalVisible
]
=
useState
(
false
);
const
[
modalVisible2
,
setModalVisible2
]
=
useState
(
false
);
const
[
modalVisible2
,
setModalVisible2
]
=
useState
(
false
);
const
[
modalVisible3
,
setModalVisible3
]
=
useState
(
false
);
const
[
modalVisible3
,
setModalVisible3
]
=
useState
(
false
);
...
...
frontend/src/screen/reading/basic/ReadActivityHe.js
View file @
4f8e1209
...
@@ -26,7 +26,7 @@ import CountDownModal from '../../../component/reading/CountDownModal';
...
@@ -26,7 +26,7 @@ import CountDownModal from '../../../component/reading/CountDownModal';
export
default
function
ReadActivityHe
()
{
export
default
function
ReadActivityHe
()
{
const
navigation
=
useNavigation
();
const
navigation
=
useNavigation
();
const
[
count
,
setCount
]
=
useState
(
0
);
const
[
count
,
setCount
]
=
useState
(
1
);
const
[
modalVisible
,
setModalVisible
]
=
useState
(
false
);
const
[
modalVisible
,
setModalVisible
]
=
useState
(
false
);
const
[
modalVisible2
,
setModalVisible2
]
=
useState
(
false
);
const
[
modalVisible2
,
setModalVisible2
]
=
useState
(
false
);
const
[
modalVisible3
,
setModalVisible3
]
=
useState
(
false
);
const
[
modalVisible3
,
setModalVisible3
]
=
useState
(
false
);
...
...
frontend/src/screen/reading/basic/ReadActivityNo.js
View file @
4f8e1209
...
@@ -28,7 +28,7 @@ import CountDownModal from '../../../component/reading/CountDownModal';
...
@@ -28,7 +28,7 @@ import CountDownModal from '../../../component/reading/CountDownModal';
export
default
function
ReadActivityNo
()
{
export
default
function
ReadActivityNo
()
{
const
navigation
=
useNavigation
();
const
navigation
=
useNavigation
();
const
[
count
,
setCount
]
=
useState
(
0
);
const
[
count
,
setCount
]
=
useState
(
1
);
const
[
modalVisible
,
setModalVisible
]
=
useState
(
false
);
const
[
modalVisible
,
setModalVisible
]
=
useState
(
false
);
const
[
modalVisible2
,
setModalVisible2
]
=
useState
(
false
);
const
[
modalVisible2
,
setModalVisible2
]
=
useState
(
false
);
const
[
modalVisible3
,
setModalVisible3
]
=
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