Redesign login page. Add OAuth2 support.

This commit is contained in:
Igor Kulikov
2021-06-10 13:12:58 +03:00
parent 8c519540ba
commit 27013f88e7
12 changed files with 317 additions and 81 deletions

View File

@@ -1 +0,0 @@
const thingsBoardApiEndpoint = 'http://localhost:8080';

View File

@@ -0,0 +1,4 @@
abstract class ThingsboardAppConstants {
static final thingsBoardApiEndpoint = 'http://localhost:8080';
static final thingsboardOAuth2CallbackUrlScheme = 'org.thingsboard.app.auth';
}

View File

@@ -5,4 +5,11 @@ abstract class ThingsboardImage {
static final thingsboardCenter = 'assets/images/thingsboard_center.svg';
static final dashboardPlaceholder = 'assets/images/dashboard-placeholder.png';
static final deviceProfilePlaceholder = 'assets/images/device-profile-placeholder.png';
static final oauth2Logos = <String,String>{
'google-logo': 'assets/images/google-logo.svg',
'github-logo': 'assets/images/github-logo.svg',
'facebook-logo': 'assets/images/facebook-logo.svg'
};
}