Merged code, moved some code from constructor to componentDidMount to avoid bugs on really slow devices

This commit is contained in:
Fan-Wu Yang
2018-10-15 02:22:05 +13:00
7 changed files with 457 additions and 420 deletions
+2
View File
@@ -10,6 +10,8 @@ exports.connect = function(done){
host: 'localhost',
user: 'admin_seng440',
password: 'seng440',
// user: 'root',
// password: '',
port: 3306,
database: "admin_territory-walker",
//multipleStatements: true
+284 -284
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -95,7 +95,7 @@ module.exports = {
});
let area = mathFunc.calculateArea(points);
module.exports.polygonDestruction(res, gameID, userID, polygonPoints, area, polygonsMerged);
// module.exports.polygonDestruction(res, gameID, userID, polygonPoints, area, polygonsMerged);
module.exports.submitFinalCollation(res, gameID, userID, polygonPoints, area, polygonsMerged);
});
},