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
{
static
String
_hostArticonfDebug
=
"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://live.nope-api.systems:81"
;
static
String
_hostManuelRelease
=
"https://articonf1.itec.aau.at:30470"
;
static
String
articonfHost
(
int
port
)
{
return
kReleaseMode
?
"
$_hostArticonfRelease
:
$port
"
:
"
$_hostArticonfDebug
:
$port
"
;
}
static
String
articonfHost
(
int
port
)
=>
"
$_hostArticonfRelease
:
$port
"
;
static
String
get
manuelHost
{
return
kReleaseMode
?
_hostManuelRelease
:
_hostManuelDebug
;
}
static
String
get
manuelHost
=>
_hostManuelRelease
;
}
src/demo/dashboard/lib/util/loginhelper.dart
View file @
534b87ec
import
'dart:convert'
;
import
'dart:io'
;
import
'package:dashboard/constants/server_constants.dart'
;
import
'package:dashboard/exceptions/login_exception.dart'
;
import
'package:dashboard/querying/host_provider.dart'
;
import
'package:dashboard/util/user.dart'
;
import
'package:localstorage/localstorage.dart'
;
import
'package:logger/logger.dart'
;
...
...
@@ -51,7 +51,7 @@ class LoginHelper {
"password"
:
password
,
});
String
url
=
"
${
ServerConstants.host
}
/api/tokens"
;
String
url
=
"
${
HostProvider.articonfHost(30401)
}
/api/tokens"
;
_logger
.
v
(
"calling
$url
"
);
...
...
src/demo/dashboard/pubspec.lock
View file @
534b87ec
...
...
@@ -5,121 +5,107 @@ packages:
dependency: "direct main"
description:
name: animated_text_kit
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "4.2.1"
archive:
dependency: transitive
description:
name: archive
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.6.0"
version: "3.1.2"
async:
dependency: transitive
description:
name: async
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "2.
5.0
"
version: "2.
6.1
"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "2.1.0"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.1.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.2.0"
circlegraph:
dependency: "direct main"
description:
name: circlegraph
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "0.0.6"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.1.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.15.0"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.1"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "
2.1.5
"
version: "
3.0.1
"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.0.3"
enhanced_future_builder:
dependency: "direct main"
description:
name: enhanced_future_builder
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.0.3"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.2.0"
ffi:
dependency: transitive
description:
name: ffi
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.1.2"
file:
dependency: transitive
description:
name: file
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "6.
0
.0"
version: "6.
1
.0"
flutter:
dependency: "direct main"
description: flutter
...
...
@@ -134,7 +120,7 @@ packages:
dependency: "direct main"
description:
name: flutter_spinkit
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "5.0.0"
flutter_test:
...
...
@@ -151,126 +137,126 @@ packages:
dependency: "direct main"
description:
name: http
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "0.13.3"
http_parser:
dependency: transitive
description:
name: http_parser
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "4.0.0"
integration_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.
9.2+2
"
version: "0.
0.0
"
intl:
dependency: "direct main"
description:
name: intl
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "0.17.0"
localstorage:
dependency: "direct main"
description:
name: localstorage
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "4.0.0+1"
logger:
dependency: "direct main"
description:
name: logger
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.0.0"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "0.12.10"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.3.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.8.0"
path_provider:
dependency: transitive
description:
name: path_provider
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "2.0.2"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "2.0.0"
path_provider_macos:
dependency: transitive
description:
name: path_provider_macos
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "2.0.0"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "2.0.1"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "2.0.1"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.11.1"
platform:
dependency: transitive
description:
name: platform
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "3.0.0"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "2.0.0"
process:
dependency: transitive
description:
name: process
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "4.
0.0
"
version: "4.
2.1
"
sky_engine:
dependency: transitive
description: flutter
...
...
@@ -280,93 +266,93 @@ packages:
dependency: transitive
description:
name: source_span
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.8.
0
"
version: "1.8.
1
"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.1.0"
sync_http:
dependency: transitive
description:
name: sync_http
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "0.
2
.0"
version: "0.
3
.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "0.
2.19
"
version: "0.
3.0
"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "1.3.0"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "2.1.0"
vm_service:
dependency: transitive
description:
name: vm_service
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "
5.5
.0"
version: "
6.2
.0"
webdriver:
dependency: transitive
description:
name: webdriver
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "
2.1.2
"
version: "
3.0.0
"
win32:
dependency: transitive
description:
name: win32
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "2.
0
.5"
version: "2.
2
.5"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
url: "https://pub.
flutter-io.cn
"
url: "https://pub.
dartlang.org
"
source: hosted
version: "0.2.0"
sdks:
dart: ">=2.1
2
.0 <3.0.0"
dart: ">=2.1
3
.0 <3.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