bluejoyq

idiots cut~

...@@ -39,7 +39,8 @@ apiRequest.ETRI = async ( query, argument ) => { ...@@ -39,7 +39,8 @@ apiRequest.ETRI = async ( query, argument ) => {
39 return new Promise( ( resolve, reject ) => { 39 return new Promise( ( resolve, reject ) => {
40 let apiReqJson = apiRequestJsonFrame; 40 let apiReqJson = apiRequestJsonFrame;
41 apiReqJson.argument = argument; 41 apiReqJson.argument = argument;
42 - let apiReqOption = { headers: { 42 + let apiReqOption = {
43 + headers: {
43 "Accept": "application/json", 44 "Accept": "application/json",
44 "Content-Type": "application/json", 45 "Content-Type": "application/json",
45 },uri : URL.ETRI + query, body : JSON.stringify( apiReqJson ) }; 46 },uri : URL.ETRI + query, body : JSON.stringify( apiReqJson ) };
......
...@@ -9,6 +9,9 @@ model = Doc2Vec.load("doc2vec.model") ...@@ -9,6 +9,9 @@ model = Doc2Vec.load("doc2vec.model")
9 9
10 app = Flask(__name__) 10 app = Flask(__name__)
11 11
12 +@app.route('/')
13 +def test():
14 + print('test')
12 15
13 @app.route('/analyze', methods=['POST']) 16 @app.route('/analyze', methods=['POST'])
14 def sendreq(): 17 def sendreq():
......
...@@ -47,7 +47,10 @@ export default RateBar = (props) => { ...@@ -47,7 +47,10 @@ export default RateBar = (props) => {
47 }, 47 },
48 { 48 {
49 value: (100-(props.score.key+props.score.fix)), 49 value: (100-(props.score.key+props.score.fix)),
50 - key : "" 50 + key : "",
51 + svg: {
52 + fill : "rgba(0,0,0,0)",
53 + },
51 } 54 }
52 ]} 55 ]}
53 innerRadius={"50%"} 56 innerRadius={"50%"}
...@@ -76,7 +79,6 @@ const styles = StyleSheet.create({ ...@@ -76,7 +79,6 @@ const styles = StyleSheet.create({
76 width: '100%', 79 width: '100%',
77 flexDirection:'row', 80 flexDirection:'row',
78 justifyContent:'center', 81 justifyContent:'center',
79 - marginTop : 3,
80 }, 82 },
81 colorContainer:{ 83 colorContainer:{
82 position:"absolute", 84 position:"absolute",
...@@ -102,7 +104,7 @@ const styles = StyleSheet.create({ ...@@ -102,7 +104,7 @@ const styles = StyleSheet.create({
102 flexDirection:'row', 104 flexDirection:'row',
103 justifyContent:"flex-start", 105 justifyContent:"flex-start",
104 alignItems:'flex-start', 106 alignItems:'flex-start',
105 - marginBottom: 10, 107 + marginBottom: 5,
106 }, 108 },
107 chart:{ 109 chart:{
108 height: 125, 110 height: 125,
...@@ -134,8 +136,8 @@ const styles = StyleSheet.create({ ...@@ -134,8 +136,8 @@ const styles = StyleSheet.create({
134 borderRadius: 5 136 borderRadius: 5
135 }, 137 },
136 Text:{ 138 Text:{
137 - fontSize: 22, 139 + fontSize: 20,
138 - marginBottom:5, 140 + marginBottom:2,
139 fontFamily:"Bold", 141 fontFamily:"Bold",
140 }, 142 },
141 message:{ 143 message:{
......
...@@ -43,7 +43,7 @@ const RateMessage = ({keywordText, score }) => { ...@@ -43,7 +43,7 @@ const RateMessage = ({keywordText, score }) => {
43 const styles = StyleSheet.create({ 43 const styles = StyleSheet.create({
44 surface: { 44 surface: {
45 padding: 8, 45 padding: 8,
46 - flex: 0.225, 46 + flex: 0.215,
47 width: '95%', 47 width: '95%',
48 alignItems: 'center', 48 alignItems: 'center',
49 justifyContent: 'center', 49 justifyContent: 'center',
......
...@@ -46,7 +46,7 @@ const RateSentence = ({originalText, fixedText, keywordText }) => { ...@@ -46,7 +46,7 @@ const RateSentence = ({originalText, fixedText, keywordText }) => {
46 const styles = StyleSheet.create({ 46 const styles = StyleSheet.create({
47 surface: { 47 surface: {
48 padding: 8, 48 padding: 8,
49 - flex: 0.225, 49 + flex: 0.235,
50 width: '95%', 50 width: '95%',
51 alignItems: 'center', 51 alignItems: 'center',
52 justifyContent: 'center', 52 justifyContent: 'center',
......
...@@ -35,7 +35,7 @@ export const submit = (text) => async (dispatch) => { ...@@ -35,7 +35,7 @@ export const submit = (text) => async (dispatch) => {
35 },10000); 35 },10000);
36 36
37 try{ 37 try{
38 - // const response = await readTest() 38 + //const response = await readTest()
39 const response = await sendSearch(text.nativeEvent.text); 39 const response = await sendSearch(text.nativeEvent.text);
40 40
41 // 에러시 error throw 41 // 에러시 error throw
...@@ -45,9 +45,10 @@ export const submit = (text) => async (dispatch) => { ...@@ -45,9 +45,10 @@ export const submit = (text) => async (dispatch) => {
45 await sqlite.insert(tempScore.full); 45 await sqlite.insert(tempScore.full);
46 let pastRecords = await sqlite.select(); 46 let pastRecords = await sqlite.select();
47 47
48 + clearTimeout(timer);
48 dispatch( { type:SUCCESS, result:response, pastRecords: pastRecords, score:tempScore}) 49 dispatch( { type:SUCCESS, result:response, pastRecords: pastRecords, score:tempScore})
49 50
50 - clearTimeout(timer); 51 +
51 } 52 }
52 catch(err){ 53 catch(err){
53 Alert.alert( 54 Alert.alert(
......