Skip to content

Commit

Permalink
Release/2.0.1 (#107)
Browse files Browse the repository at this point in the history
* linter fixes

* initial add of ambient light service

* added location retrieval
added date retrievel
added date correction for dst
added darkmode toggle in ambientLight service (static)
implemented api call

* added moment-timezone
fixed time correction

* added global force possibility for darkmode

* added snackbar message if geolocation access was not granted

* added snackbar message if geolocation access was not granted

* added subscription to darkmode object
added force switch function in settings

changed darkmode theme to deeppurple-amber

* added e2e tests
added unit test

* xitted unit tests of ambient light service

* added custom snackbar to display orientation change referrals

* added jsdoc comments

* corrected css properties of custom snackbar

* changed custom snackbar message
fixed import order

* bumped up version number

* added orientation assistance paragraph to settings

* added tooltips to settings

* added calls for orientation assistance to navbar
added orientation check

* only suggest orientation change if it's a mobile device

* added enable/ disable option in settings

* Create LICENSE (#61)

* fix(package): update @p2olab/polaris-interface to version 2.0.0

* chore(package): update lockfile package-lock.json

* chore(package): update jasmine-core to version 3.5.0

* chore(package): update lockfile package-lock.json

* chore(package): update @angular/material to version 8.2.1

* chore(package): update @angular/cdk to version 8.2.1

* chore(package): update lockfile package-lock.json

* Feature/process values (#64)

* separated view for different kinds of parameters (procedure parameters, process values, report values)
* editing parameters now possible via new dialog
* parameter values can also be expression strings
* update polaris-interface
* fix tests
* fix linter warnings

* Greenkeeper/@types/jasmine 3.4.3 (#76)

* chore(package): update @types/jasmine to version 3.4.3

* chore(package): update lockfile package-lock.json

* Greenkeeper/@types/node 12.7.12 (#77)

* chore(package): update @types/node to version 12.7.12

* chore(package): update lockfile package-lock.json

* Greenkeeper/monorepo.angular2 20191009153639 (#78)

* chore(package): update @angular/material to version 8.2.3

* chore(package): update @angular/cdk to version 8.2.3

* chore(package): update lockfile package-lock.json

* Greenkeeper/@angular devkit/build angular 0.803.8 (#79)

* chore(package): update @angular-devkit/build-angular to version 0.803.8

* chore(package): update lockfile package-lock.json

* Greenkeeper/@angular/pwa 0.803.8 (#80)

* chore(package): update @angular/pwa to version 0.803.8

* chore(package): update lockfile package-lock.json

* Greenkeeper/@types/jasminewd2 2.0.8 (#82)

* chore(package): update @types/jasminewd2 to version 2.0.8

* chore(package): update lockfile package-lock.json

* Greenkeeper/@angular/cli 8.3.8 (#81)

* chore(package): update @angular/cli to version 8.3.8

* chore(package): update lockfile package-lock.json

* Feature/process values (#86)

* update polaris-interface

* new layout for different kinds of parameters

* fix tests

* fix linter warnings

* rework

* fix template

* explaination for parameter change dialog added

* add logging

* add hammer.js to angular scripts

* add logging

* fix linter warnings

* remove .npmrc (#87)

* some refactorings (#88)

* update angular cli

* add logging to http call

* longer snackbar timeout

* simplify dialog close

* service view enhanced

* reload app after changing settings

* update polaris-interface

* format parameter values as numbers if applicable

* refactor service parameter dialog

* step towards working setAction of service launcher

* fix linter warning

* chore(package): update @types/node to version 12.11.0

* chore(package): update lockfile package-lock.json

* Greenkeeper/karma 4.4.0 (#91)

* chore(package): update karma to version 4.4.0

* chore(package): update lockfile package-lock.json

* chore(package): update karma to version 4.4.1

* chore(package): update lockfile package-lock.json

* Feature/split opmode (#94)

* chore: update packages

* feat: split opmode

* fix service settings

* Update package.json (#95)

* chore(package): update @types/node to version 12.11.2

* chore(package): update lockfile package-lock.json

* fixed missing import

* added orientation referral snackbar to ngmodule

* chore(package): update ngx-logger to version 4.0.6

* chore(package): update lockfile package-lock.json

* enabe/ disable settings for ambient light

* updated packages

* refactor: localstorage of settings (#103)

* Better module loading (#106)

* Better module loading

* fix linter warning

* update drone signature

* Move to template driven forms

* Bump version number
  • Loading branch information
markusgraube authored Oct 29, 2019
1 parent 8a64082 commit 1a964c7
Show file tree
Hide file tree
Showing 25 changed files with 972 additions and 377 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ steps:

---
kind: signature
hmac: e30a77c0ca1de6b3e41d9ea2df1e0afcb7f62430316290ce4ebcc7105f346ed4
hmac: 58aaccd193aef862418f242688920adeafc3bb8ef6f24df30928e3a0c5ed33ba

...
23 changes: 23 additions & 0 deletions e2e/src/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,27 @@ describe('workspace-project App', () => {
// check if the radius is 48, what means it expanded
expect(element(by.tagName('cdk-overlay-container')).element(by.tagName('div')).isPresent()).toBeFalsy();
});
/*
Ambient-Light
*/
xit('should switch to dark theme when forced', () => {
page.navigateTo();
// switch to settings screen
element(by.css('[routerLink="/settings"]')).click();
// click on force dark theme checkbox
element(by.name('forceDarkmode')).click();
browser.debugger();
// check if the theme has changed
expect(element(by.tagName('app-root')).getAttribute('class')).toEqual('deeppurple-amber-dark');
});
xit('should switch back to light theme when forced', () => {
page.navigateTo();
// switch to settings screen
element(by.css('[routerLink="/settings"]')).click();
// click on force dark theme checkbox
element(by.name('forceDarkmode')).click();
element(by.name('forceDarkmode')).click();
// check if the theme has changed
expect(element(by.tagName('app-root')).getAttribute('class')).toEqual('indigo-purple');
});
});
147 changes: 131 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@p2olab/polaris-frontend",
"version": "2.0.0",
"version": "2.0.1",
"author": "Markus Graube <markus.graube@tu-dresden.de>",
"repository": "https://github.com/p2o-lab/polaris-interface.git",
"homepage": "https://github.com/p2o-lab/polaris-interface",
Expand Down Expand Up @@ -30,15 +30,17 @@
"@angular/service-worker": "^8.2.2",
"@ngx-loading-bar/core": "^4.2.0",
"@ngx-loading-bar/http-client": "^4.2.0",
"@p2olab/polaris-interface": "~2.3.0",
"@p2olab/polaris-interface": "^2.3.0",
"@swimlane/ngx-charts": "^12.0.1",
"@types/snapsvg": "^0.5.0",
"angular-highcharts": "^8.0.3",
"angular-material-dynamic-themes": "^1.0.4",
"assign-deep": "^1.0.1",
"hammerjs": "^2.0.8",
"highcharts": "^7.1.2",
"moment": "^2.24.0",
"ngx-logger": "^4.0.4",
"ngx-logger": "^4.0.6",
"moment-timezone": "^0.5.26",
"ngx-store": "^2.1.0",
"open-sans-fontface": "^1.4.0",
"rxjs": "^6.5.2",
Expand All @@ -52,13 +54,15 @@
"@angular/cli": "^8.3.9",
"@angular/compiler-cli": "^8.2.2",
"@angular/language-service": "^8.2.2",
"@types/moment": "^2.13.0",
"@types/moment-timezone": "^0.5.12",
"@types/jasmine": "^3.4.3",
"@types/jasminewd2": "^2.0.8",
"@types/node": "~12.11.0",
"@types/node": "~12.11.2",
"codelyzer": "^5.1.0",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^4.4.0",
"karma": "^4.4.1",
"karma-chrome-launcher": "^3.0.0",
"karma-coverage-istanbul-reporter": "^2.1.0",
"karma-jasmine": "^2.0.1",
Expand Down
24 changes: 24 additions & 0 deletions src/app/_services/ambient-light.service.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import {inject, TestBed} from '@angular/core/testing';

import {HttpClientTestingModule} from '@angular/common/http/testing';
import {MatSnackBarModule} from '@angular/material';
import {AmbientLightService} from './ambient-light.service';
import {BackendService} from './backend.service';
import {SettingsService} from './settings.service';
import {settingsServiceStub} from './settings.service.spec';
import {WebsocketService, websocketServiceStub} from './websocket.service';

describe('AmbientLightService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [AmbientLightService,
{provide: SettingsService, useValue: settingsServiceStub}
],
imports: [HttpClientTestingModule, MatSnackBarModule, SettingsService]
});
});

xit('should be created', inject([AmbientLightService], (service: AmbientLightService) => {
expect(service).toBeTruthy();
}));
});
Loading

0 comments on commit 1a964c7

Please sign in to comment.