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
Show 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
...
@@ -5,121 +5,107 @@ packages:
...
@@ -5,121 +5,107 @@ packages:
dependency: "direct main"
dependency: "direct main"
description:
description:
name: animated_text_kit
name: animated_text_kit
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "4.2.1"
version: "4.2.1"
archive:
archive:
dependency: transitive
dependency: transitive
description:
description:
name: archive
name: archive
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "2.0.13"
version: "3.1.2"
args:
dependency: transitive
description:
name: args
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.6.0"
async:
async:
dependency: transitive
dependency: transitive
description:
description:
name: async
name: async
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "2.
5.0
"
version: "2.
6.1
"
boolean_selector:
boolean_selector:
dependency: transitive
dependency: transitive
description:
description:
name: boolean_selector
name: boolean_selector
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "2.1.0"
version: "2.1.0"
characters:
characters:
dependency: transitive
dependency: transitive
description:
description:
name: characters
name: characters
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.1.0"
version: "1.1.0"
charcode:
charcode:
dependency: transitive
dependency: transitive
description:
description:
name: charcode
name: charcode
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.2.0"
version: "1.2.0"
circlegraph:
circlegraph:
dependency: "direct main"
dependency: "direct main"
description:
description:
name: circlegraph
name: circlegraph
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "0.0.6"
version: "0.0.6"
clock:
clock:
dependency: transitive
dependency: transitive
description:
description:
name: clock
name: clock
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.1.0"
version: "1.1.0"
collection:
collection:
dependency: transitive
dependency: transitive
description:
description:
name: collection
name: collection
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.15.0"
version: "1.15.0"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.1"
crypto:
crypto:
dependency: transitive
dependency: transitive
description:
description:
name: crypto
name: crypto
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "
2.1.5
"
version: "
3.0.1
"
cupertino_icons:
cupertino_icons:
dependency: "direct main"
dependency: "direct main"
description:
description:
name: cupertino_icons
name: cupertino_icons
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.0.3"
version: "1.0.3"
enhanced_future_builder:
enhanced_future_builder:
dependency: "direct main"
dependency: "direct main"
description:
description:
name: enhanced_future_builder
name: enhanced_future_builder
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.0.3"
version: "1.0.3"
fake_async:
fake_async:
dependency: transitive
dependency: transitive
description:
description:
name: fake_async
name: fake_async
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.2.0"
version: "1.2.0"
ffi:
ffi:
dependency: transitive
dependency: transitive
description:
description:
name: ffi
name: ffi
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.1.2"
version: "1.1.2"
file:
file:
dependency: transitive
dependency: transitive
description:
description:
name: file
name: file
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "6.
0
.0"
version: "6.
1
.0"
flutter:
flutter:
dependency: "direct main"
dependency: "direct main"
description: flutter
description: flutter
...
@@ -134,7 +120,7 @@ packages:
...
@@ -134,7 +120,7 @@ packages:
dependency: "direct main"
dependency: "direct main"
description:
description:
name: flutter_spinkit
name: flutter_spinkit
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "5.0.0"
version: "5.0.0"
flutter_test:
flutter_test:
...
@@ -151,126 +137,126 @@ packages:
...
@@ -151,126 +137,126 @@ packages:
dependency: "direct main"
dependency: "direct main"
description:
description:
name: http
name: http
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "0.13.3"
version: "0.13.3"
http_parser:
http_parser:
dependency: transitive
dependency: transitive
description:
description:
name: http_parser
name: http_parser
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "4.0.0"
version: "4.0.0"
integration_test:
integration_test:
dependency: "direct dev"
dependency: "direct dev"
description: flutter
description: flutter
source: sdk
source: sdk
version: "0.
9.2+2
"
version: "0.
0.0
"
intl:
intl:
dependency: "direct main"
dependency: "direct main"
description:
description:
name: intl
name: intl
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "0.17.0"
version: "0.17.0"
localstorage:
localstorage:
dependency: "direct main"
dependency: "direct main"
description:
description:
name: localstorage
name: localstorage
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "4.0.0+1"
version: "4.0.0+1"
logger:
logger:
dependency: "direct main"
dependency: "direct main"
description:
description:
name: logger
name: logger
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.0.0"
version: "1.0.0"
matcher:
matcher:
dependency: transitive
dependency: transitive
description:
description:
name: matcher
name: matcher
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "0.12.10"
version: "0.12.10"
meta:
meta:
dependency: transitive
dependency: transitive
description:
description:
name: meta
name: meta
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.3.0"
version: "1.3.0"
path:
path:
dependency: transitive
dependency: transitive
description:
description:
name: path
name: path
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.8.0"
version: "1.8.0"
path_provider:
path_provider:
dependency: transitive
dependency: transitive
description:
description:
name: path_provider
name: path_provider
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "2.0.2"
version: "2.0.2"
path_provider_linux:
path_provider_linux:
dependency: transitive
dependency: transitive
description:
description:
name: path_provider_linux
name: path_provider_linux
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "2.0.0"
version: "2.0.0"
path_provider_macos:
path_provider_macos:
dependency: transitive
dependency: transitive
description:
description:
name: path_provider_macos
name: path_provider_macos
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "2.0.0"
version: "2.0.0"
path_provider_platform_interface:
path_provider_platform_interface:
dependency: transitive
dependency: transitive
description:
description:
name: path_provider_platform_interface
name: path_provider_platform_interface
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "2.0.1"
version: "2.0.1"
path_provider_windows:
path_provider_windows:
dependency: transitive
dependency: transitive
description:
description:
name: path_provider_windows
name: path_provider_windows
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "2.0.1"
version: "2.0.1"
pedantic:
pedantic:
dependency: transitive
dependency: transitive
description:
description:
name: pedantic
name: pedantic
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.11.1"
version: "1.11.1"
platform:
platform:
dependency: transitive
dependency: transitive
description:
description:
name: platform
name: platform
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "3.0.0"
version: "3.0.0"
plugin_platform_interface:
plugin_platform_interface:
dependency: transitive
dependency: transitive
description:
description:
name: plugin_platform_interface
name: plugin_platform_interface
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "2.0.0"
version: "2.0.0"
process:
process:
dependency: transitive
dependency: transitive
description:
description:
name: process
name: process
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "4.
0.0
"
version: "4.
2.1
"
sky_engine:
sky_engine:
dependency: transitive
dependency: transitive
description: flutter
description: flutter
...
@@ -280,93 +266,93 @@ packages:
...
@@ -280,93 +266,93 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: source_span
name: source_span
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.8.
0
"
version: "1.8.
1
"
stack_trace:
stack_trace:
dependency: transitive
dependency: transitive
description:
description:
name: stack_trace
name: stack_trace
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.10.0"
version: "1.10.0"
stream_channel:
stream_channel:
dependency: transitive
dependency: transitive
description:
description:
name: stream_channel
name: stream_channel
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "2.1.0"
version: "2.1.0"
string_scanner:
string_scanner:
dependency: transitive
dependency: transitive
description:
description:
name: string_scanner
name: string_scanner
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.1.0"
version: "1.1.0"
sync_http:
sync_http:
dependency: transitive
dependency: transitive
description:
description:
name: sync_http
name: sync_http
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "0.
2
.0"
version: "0.
3
.0"
term_glyph:
term_glyph:
dependency: transitive
dependency: transitive
description:
description:
name: term_glyph
name: term_glyph
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.2.0"
version: "1.2.0"
test_api:
test_api:
dependency: transitive
dependency: transitive
description:
description:
name: test_api
name: test_api
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "0.
2.19
"
version: "0.
3.0
"
typed_data:
typed_data:
dependency: transitive
dependency: transitive
description:
description:
name: typed_data
name: typed_data
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "1.3.0"
version: "1.3.0"
vector_math:
vector_math:
dependency: transitive
dependency: transitive
description:
description:
name: vector_math
name: vector_math
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "2.1.0"
version: "2.1.0"
vm_service:
vm_service:
dependency: transitive
dependency: transitive
description:
description:
name: vm_service
name: vm_service
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "
5.5
.0"
version: "
6.2
.0"
webdriver:
webdriver:
dependency: transitive
dependency: transitive
description:
description:
name: webdriver
name: webdriver
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "
2.1.2
"
version: "
3.0.0
"
win32:
win32:
dependency: transitive
dependency: transitive
description:
description:
name: win32
name: win32
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "2.
0
.5"
version: "2.
2
.5"
xdg_directories:
xdg_directories:
dependency: transitive
dependency: transitive
description:
description:
name: xdg_directories
name: xdg_directories
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
source: hosted
version: "0.2.0"
version: "0.2.0"
sdks:
sdks:
dart: ">=2.1
2
.0 <3.0.0"
dart: ">=2.1
3
.0 <3.0.0"
flutter: ">=2.0.0"
flutter: ">=2.0.0"
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