Commit 50ce9a83 authored by Lihinikaduwa D.N.R.  's avatar Lihinikaduwa D.N.R.

Merge branch 'it18257632' into 'master'

finished

See merge request !196
parents f9617c5e e3daf5c4
...@@ -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.100') app.run(host='192.168.1.101')
...@@ -12,7 +12,7 @@ def create_con(): ...@@ -12,7 +12,7 @@ def create_con():
database="helply", database="helply",
host="127.0.0.1", host="127.0.0.1",
user="root", user="root",
password="rp19970520" password="12345678"
) )
return db return db
......
...@@ -10,7 +10,7 @@ export const ImagePaths = { ...@@ -10,7 +10,7 @@ export const ImagePaths = {
backgroundAdvancedDog: require('../image/dogbb.jpg'), backgroundAdvancedDog: require('../image/dogbb.jpg'),
backgroundAdvancedBird: require('../image/birdb.jpg'), backgroundAdvancedBird: require('../image/birdb.jpg'),
backgroundAdvancedFish: require('../image/fishbb.jpg'), backgroundAdvancedFish: require('../image/fishbb.jpg'),
resultBackground: require('../image/rersultBacground.jpeg'), resultBackground: require('../image/table.jpeg'),
no: require('../image/no.png'), no: require('../image/no.png'),
go: require('../image/go.png'), go: require('../image/go.png'),
he: require('../image/he.png'), he: require('../image/he.png'),
......
...@@ -35,7 +35,7 @@ export default function TableList() { ...@@ -35,7 +35,7 @@ export default function TableList() {
Client.get('result/' + userId) Client.get('result/' + userId)
.then(response => { .then(response => {
setTableData({ setTableData({
tableHead: ['Word', 'Count', 'Level'], tableHead: ['Word', 'Try Count', 'Level'],
data: response.data.data, data: response.data.data,
}); });
}) })
...@@ -54,14 +54,14 @@ export default function TableList() { ...@@ -54,14 +54,14 @@ export default function TableList() {
<Table borderStyle={{borderWidth: 3, borderColor: '#fff'}}> <Table borderStyle={{borderWidth: 3, borderColor: '#fff'}}>
<Row <Row
data={tableData.tableHead} data={tableData.tableHead}
flexArr={[ 1, 1, 1.5]} flexArr={[ 1, 1.4, 1.3]}
style={styles.head} style={styles.head}
textStyle={styles.text} textStyle={styles.text}
/> />
<TableWrapper style={styles.wrapper}> <TableWrapper style={styles.wrapper}>
<Rows <Rows
data={tableData.data} data={tableData.data}
flexArr={[1, 1, 1.5]} flexArr={[1, 1.4, 1.3]}
style={styles.row} style={styles.row}
textStyle={styles.text} textStyle={styles.text}
/> />
...@@ -80,7 +80,7 @@ const styles = StyleSheet.create({ ...@@ -80,7 +80,7 @@ const styles = StyleSheet.create({
paddingRight: 60, paddingRight: 60,
marginTop: 0, marginTop: 0,
}, },
head: {height: 60, backgroundColor: '#f1f8ff'}, head: {height: 60, backgroundColor: 'green'},
wrapper: { wrapper: {
flexDirection: 'row', flexDirection: 'row',
backgroundColor: '#f1f8ff', backgroundColor: '#f1f8ff',
......
...@@ -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.100:5000/', baseURL: 'http://192.168.1.101:5000/',
timeout: 15000, timeout: 15000,
}); });
...@@ -246,34 +246,6 @@ export default function ReadActivityNo() { ...@@ -246,34 +246,6 @@ export default function ReadActivityNo() {
<ReadModalFailed visible="true" imagePath={ImagePaths.robot1} /> <ReadModalFailed visible="true" imagePath={ImagePaths.robot1} />
)} )}
{modalVisible && (
<Modal
animationType="fade"
transparent={true}
hidden={true}
visible={true}
// onRequestClose={() => {
// setModalVisible2(!modalVisible2);
// }}
>
<View style={styles.centeredView2}>
<View style={styles.modalView2}>
<Text style={styles.headStyle2}>Press The Button</Text>
<Text style={styles.head2Style2}>And Pronounce</Text>
<TouchableOpacity
style={[styles.buttonClose2]}
onPress={() => setModalVisible(false)}>
<Image
source={ImagePaths.correct}
resizeMode="contain"
style={{width: 100, height: 70, marginBottom: -10}}
/>
</TouchableOpacity>
</View>
</View>
</Modal>
)}
{modalVisible && ( {modalVisible && (
<Modal <Modal
animationType="fade" animationType="fade"
......
...@@ -70,6 +70,9 @@ export default function ReadResults() { ...@@ -70,6 +70,9 @@ export default function ReadResults() {
<TableList /> <TableList />
{/* </View> */} {/* </View> */}
</View> </View>
<View>
<Image style={styles.temp} source={ImagePaths.chart}></Image>
</View>
</ImageBackground> </ImageBackground>
</View> </View>
</SafeAreaView> </SafeAreaView>
...@@ -114,4 +117,13 @@ const styles = StyleSheet.create({ ...@@ -114,4 +117,13 @@ const styles = StyleSheet.create({
textAlign: 'center', textAlign: 'center',
fontWeight: 'bold', fontWeight: 'bold',
}, },
temp: {
marginTop: 100,
marginLeft: 80,
// backgroundColor: '#00008B',
width: 220,
height: 200,
borderRadius: 50,
padding: 5,
},
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment