Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
534b87ec
Commit
534b87ec
authored
Jul 12, 2021
by
Manuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dashboard] updated host to articonf1
parent
57e95f06
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
89 deletions
+64
-89
server_constants.dart
src/demo/dashboard/lib/constants/server_constants.dart
+0
-3
host_provider.dart
src/demo/dashboard/lib/querying/host_provider.dart
+3
-11
loginhelper.dart
src/demo/dashboard/lib/util/loginhelper.dart
+2
-2
pubspec.lock
src/demo/dashboard/pubspec.lock
+59
-73
No files found.
src/demo/dashboard/lib/constants/server_constants.dart
deleted
100644 → 0
View file @
57e95f06
class
ServerConstants
{
static
const
String
host
=
"https://articonf1.itec.aau.at:30401/"
;
}
src/demo/dashboard/lib/querying/host_provider.dart
View file @
534b87ec
import
'package:flutter/foundation.dart'
;
class
HostProvider
{
class
HostProvider
{
static
String
_hostArticonfDebug
=
"https://articonf1.itec.aau.at"
;
static
String
_hostArticonfRelease
=
"https://articonf1.itec.aau.at"
;
static
String
_hostArticonfRelease
=
"https://articonf1.itec.aau.at"
;
static
String
_hostManuelDebug
=
"https://live.nope-api.systems:81"
;
static
String
_hostManuelRelease
=
"https://articonf1.itec.aau.at:30470"
;
static
String
_hostManuelRelease
=
"https://live.nope-api.systems:81"
;
static
String
articonfHost
(
int
port
)
{
static
String
articonfHost
(
int
port
)
=>
"
$_hostArticonfRelease
:
$port
"
;
return
kReleaseMode
?
"
$_hostArticonfRelease
:
$port
"
:
"
$_hostArticonfDebug
:
$port
"
;
}
static
String
get
manuelHost
{
static
String
get
manuelHost
=>
_hostManuelRelease
;
return
kReleaseMode
?
_hostManuelRelease
:
_hostManuelDebug
;
}
}
}
src/demo/dashboard/lib/util/loginhelper.dart
View file @
534b87ec
import
'dart:convert'
;
import
'dart:convert'
;
import
'dart:io'
;
import
'dart:io'
;
import
'package:dashboard/constants/server_constants.dart'
;
import
'package:dashboard/exceptions/login_exception.dart'
;
import
'package:dashboard/exceptions/login_exception.dart'
;
import
'package:dashboard/querying/host_provider.dart'
;
import
'package:dashboard/util/user.dart'
;
import
'package:dashboard/util/user.dart'
;
import
'package:localstorage/localstorage.dart'
;
import
'package:localstorage/localstorage.dart'
;
import
'package:logger/logger.dart'
;
import
'package:logger/logger.dart'
;
...
@@ -51,7 +51,7 @@ class LoginHelper {
...
@@ -51,7 +51,7 @@ class LoginHelper {
"password"
:
password
,
"password"
:
password
,
});
});
String
url
=
"
${
ServerConstants.host
}
/api/tokens"
;
String
url
=
"
${
HostProvider.articonfHost(30401)
}
/api/tokens"
;
_logger
.
v
(
"calling
$url
"
);
_logger
.
v
(
"calling
$url
"
);
...
...
src/demo/dashboard/pubspec.lock
View file @
534b87ec
This diff is collapsed.
Click to expand it.
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