update to server location popup
This commit is contained in:
@ -2,9 +2,10 @@
|
||||
|
||||
|
||||
class ConstValues{
|
||||
static const server_uri = "http://container.intranet.sumasen.net:8100";
|
||||
static const container_svr = "http://container.intranet.sumasen.net:8100";
|
||||
static const server_uri = "https://rogaining.sumasen.net";
|
||||
static const dev_server = "http://localhost:8100";
|
||||
static const dev_ip_server = "http://192.168.8.100:8100";
|
||||
static const dev_ip_server = "http://192.168.1.10:8100";
|
||||
static const dev_home_ip_server = "http://172.20.10.9:8100";
|
||||
|
||||
static String currentServer(){
|
||||
|
||||
@ -45,7 +45,8 @@ class DatabaseHelper{
|
||||
checkedin INTEGER,
|
||||
cp REAL,
|
||||
checkin_point REAL,
|
||||
buy_point REAL
|
||||
buy_point REAL,
|
||||
hidden_location INTEGER
|
||||
)
|
||||
''');
|
||||
|
||||
@ -82,6 +83,14 @@ class DatabaseHelper{
|
||||
return roglist;
|
||||
}
|
||||
|
||||
Future<Destination> getDestinationById(int id) async {
|
||||
Database db = await instance.database;
|
||||
var rog = await db.query('destination', where: "location_id = ${id}");
|
||||
List<Destination> deslist = rog.isNotEmpty
|
||||
? rog.map((e) => Destination.fromMap(e)).toList() : [];
|
||||
return deslist[0];
|
||||
}
|
||||
|
||||
|
||||
Future<int> deleteRogaining(int rog_id) async {
|
||||
Database db = await instance.database;
|
||||
@ -195,7 +204,7 @@ class DatabaseHelper{
|
||||
dest.toMap(),
|
||||
conflictAlgorithm: ConflictAlgorithm.replace,
|
||||
);
|
||||
print("------ database helper insert ${res}-----------::::::::");
|
||||
print("------ database helper insert ${dest.toMap()}-----------::::::::");
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
@ -58,7 +58,16 @@ class StringValues extends Translations{
|
||||
'goal_saved': "Goal Saved",
|
||||
'goal_added_successfuly' : 'Goal added successfully',
|
||||
'goal_not_added' : 'Goal not added',
|
||||
'please_try_again' : 'Please try again'
|
||||
'please_try_again' : 'Please try again',
|
||||
"Click start to start rogaining":"Click start to start rogaining",
|
||||
"you are at roganing point, start rogaining":"you are at roganing point, start rogaining",
|
||||
"Start":"Start",
|
||||
"Rogaining Started":"Rogaining Started",
|
||||
"Rogaining session started":"Rogaining session started",
|
||||
"Not started yet":"Not started yet",
|
||||
"You have not started rogaining yet.":"You have not started rogaining yet.",
|
||||
"Not reached the goal yet": "Not reached the goal yet",
|
||||
"You have not reached the goal yet.":"You have not reached the goal yet."
|
||||
},
|
||||
'ja_JP': {
|
||||
'drawer_title':'ロゲイニング参加者はログイン するとチェックポイントが参照 できます',
|
||||
@ -117,7 +126,16 @@ class StringValues extends Translations{
|
||||
'goal_saved': "目標を保存しました",
|
||||
'goal_added_successfuly' : '目標が正常に追加されました',
|
||||
'goal_not_added' : '目標が追加されていません',
|
||||
'please_try_again' : 'もう一度お試しください'
|
||||
'please_try_again' : 'もう一度お試しください',
|
||||
"Click start to start rogaining":"開始をクリックして、ロゲイニングを開始します",
|
||||
"you are at roganing point, start rogaining":"あなたはロガニングポイントにいます、ロガニングを始めてください",
|
||||
"Start":"始める",
|
||||
"Rogaining Started":"ロゲイニング開始",
|
||||
"Rogaining session started":"ロゲイニングセッション開始",
|
||||
"Not started yet":"まだ開始されていません",
|
||||
"You have not started rogaining yet.":"あなたはまだロゲイニングを始めていません。",
|
||||
"Not reached the goal yet": "まだ目標に達していない",
|
||||
"You have not reached the goal yet.":"あなたはまだゴールに達していません。"
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user