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
422b2ccf
Commit
422b2ccf
authored
Feb 21, 2022
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
table view update
parent
6b4cb5ce
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
12 deletions
+29
-12
API/app.py
API/app.py
+1
-1
frontend/src/component/TableList.js
frontend/src/component/TableList.js
+3
-3
frontend/src/screen/Color.js
frontend/src/screen/Color.js
+20
-2
frontend/src/screen/client/Client.js
frontend/src/screen/client/Client.js
+1
-1
frontend/src/screen/result/ColorResult.js
frontend/src/screen/result/ColorResult.js
+4
-5
No files found.
API/app.py
View file @
422b2ccf
...
...
@@ -93,7 +93,7 @@ def abc():
if
__name__
==
"__main__"
:
app
.
run
(
host
=
'192.168.8.10
0
'
)
app
.
run
(
host
=
'192.168.8.10
1
'
)
# app.run(host='192.168.8.100,port='5000', debug=True)
# app.run(debug=True)
frontend/src/component/TableList.js
View file @
422b2ccf
...
...
@@ -11,8 +11,8 @@ const CONTENT = {
[
'
4 jan 2022
'
,
'
2s
'
,
'
White
'
,
'
Good
'
],
[
'
5 jan 2022
'
,
'
2s
'
,
'
Blue
'
,
'
Good
'
],
[
'
6 jan 2022
'
,
'
2s
'
,
'
Yellow
'
,
'
Good
'
],
],
};
...
...
@@ -45,7 +45,7 @@ export default function App() {
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
0
,
paddingTop
:
20
,
paddingLeft
:
60
,
paddingRight
:
60
,
marginTop
:
0
,
},
head
:
{
height
:
60
,
},
head
:
{
height
:
60
,},
wrapper
:
{
flexDirection
:
'
row
'
},
title
:
{
flex
:
1
,
},
row
:
{
height
:
40
},
...
...
frontend/src/screen/Color.js
View file @
422b2ccf
...
...
@@ -82,7 +82,7 @@ export default function Color() {
<
/View
>
<
View
style
=
{{
marginTop
:
20
,
marginBottom
:
40
}}
>
<
TouchableOpacity
onPress
=
{()
=>
{
navigation
.
navigate
(
"
ColorResult
"
)
}}
style
=
{
styles
.
card
}
>
style
=
{
styles
.
card
3
}
>
<
View
style
=
{[{
flexDirection
:
"
row
"
}]}
>
...
...
@@ -141,7 +141,7 @@ const styles = StyleSheet.create({
},
card
:
{
borderWidth
:
5
,
borderColor
:
"
lightblu
e
"
,
borderColor
:
"
purpl
e
"
,
marginVertical
:
20
,
backgroundColor
:
"
#FFD700
"
,
paddingVertical
:
8
,
...
...
@@ -176,6 +176,24 @@ const styles = StyleSheet.create({
},
shadowOpacity
:
0.3
,
shadowRadius
:
1.5
,
},
card3
:
{
borderWidth
:
5
,
borderColor
:
"
lightblue
"
,
marginVertical
:
20
,
backgroundColor
:
"
purple
"
,
paddingVertical
:
8
,
paddingHorizontal
:
15
,
padding
:
15
,
width
:
380
,
marginHorizontal
:
20
,
borderRadius
:
30
,
shadowColor
:
"
#000
"
,
shadowOffset
:
{
width
:
2
,
height
:
2
},
shadowOpacity
:
0.3
,
shadowRadius
:
1.5
,
},
cardTitle
:
{
fontWeight
:
"
bold
"
,
color
:
"
white
"
,
...
...
frontend/src/screen/client/Client.js
View file @
422b2ccf
import
axios
from
'
axios
'
;
export
default
axios
.
create
({
baseURL
:
'
http://192.168.8.100:5000/
'
,
timeout
:
15000
,
});
\ No newline at end of file
export
default
axios
.
create
({
baseURL
:
'
http://192.168.8.101:5000/
'
,
timeout
:
15000
,
});
\ No newline at end of file
frontend/src/screen/result/ColorResult.js
View file @
422b2ccf
import
React
,
{
useEffect
,
useState
}
from
"
react
"
;
import
{
StyleSheet
,
View
,
Text
,
ScrollView
,
Pressable
,
ImageBackground
,
TouchableOpacity
,
Image
,
StatusBar
}
from
'
react-native
'
;
import
{
StyleSheet
,
View
,
Text
,
Pressable
,
ImageBackground
,
TouchableOpacity
,
Image
,
ScrollView
,
StatusBar
}
from
'
react-native
'
;
import
{
SafeAreaView
}
from
"
react-native-safe-area-context
"
;
import
Orientation
from
'
react-native-orientation-locker
'
;
...
...
@@ -11,7 +11,6 @@ import axios from "axios";
const
webUrel
=
"
http://192.168.8.100:5000/getColorActivitiesResult
"
;
export
default
function
ColorResult
()
{
const
navigation
=
useNavigation
();
...
...
@@ -58,8 +57,8 @@ export default function ColorResult() {
source
=
{
require
(
"
../../assets/result/title.png
"
)}
/
>
<
/View
>
<
View
style
=
{{
marginTop
:
-
9
0
}}
>
{
/* <TableList /> */
}
<
View
style
=
{{
marginTop
:
-
7
0
}}
>
<
TableList
/>
<
/View
>
<
/ImageBackground
>
<
/View
>
...
...
@@ -76,7 +75,7 @@ const styles = StyleSheet.create({
},
container
:
{
// backgroundColor : '#fff',
marginTop
:
-
22
0
,
marginTop
:
-
13
0
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
},
...
...
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