Skip to content

Commit

Permalink
chore(demo): remove unecessary package to clear cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
tinesoft committed Jun 17, 2018
1 parent 69da1ea commit 570bfcf
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
1 change: 0 additions & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"include-media": "^1.4.9",
"ngx-clipboard": "^8.0.4",
"ngx-color-picker": "^4.2.0",
"ngx-cookie": "^4.0.2",
"rxjs": "^5.5.2",
"zone.js": "^0.8.14"
},
Expand Down
2 changes: 0 additions & 2 deletions demo/src/app/home/home.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { NgbAccordionModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstra
import { ColorPickerModule } from 'ngx-color-picker';
import { ClipboardModule } from 'ngx-clipboard';
import { TranslateModule } from '@ngx-translate/core';
import { CookieModule } from 'ngx-cookie';

import { HomeRoutingModule } from './home-routing.module';
import { HomeComponent } from './home.component';
Expand All @@ -19,7 +18,6 @@ import { PlaygroundComponent } from './playground/playground.component';
HomeRoutingModule,
NgbAccordionModule.forRoot(),
NgbDropdownModule.forRoot(),
CookieModule.forRoot(),
TranslateModule,
ColorPickerModule,
ClipboardModule],
Expand Down
5 changes: 2 additions & 3 deletions demo/src/app/home/playground/playground.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { CookieService } from 'ngx-cookie';

import { NgcCookieConsentService, NgcCookieConsentConfig, NgcCookiePosition, NgcCookieTheme, NgcCookieCompliance } from 'ngx-cookieconsent';
import { environment } from './../../../environments/environment';
Expand Down Expand Up @@ -57,7 +56,7 @@ export class PlaygroundComponent implements OnInit {
// { popup: { background: '#efefef', text: '#404040' }, 'button': { background: '#8ec760', text: '#ffffff' } }
// ];

constructor(private ccService: NgcCookieConsentService, private cookieService:CookieService, public translate: TranslateService) {
constructor(private ccService: NgcCookieConsentService, public translate: TranslateService) {
this.translate.use('en');// default language
}

Expand Down Expand Up @@ -128,14 +127,14 @@ export class PlaygroundComponent implements OnInit {
}

updateConfig(): void {
this.ccService.clearStatus();
this.ccService.destroy();
this.ccService.init(this.options);
this.areOptionsCopied = false;
}

resetConfig(): void {
this.options = Object.assign(this.minOptions, this.optionsBackup);
this.cookieService.remove('cookieconsent_status', { domain: environment.cookieDomain});
this.updateConfig();
}
}
10 changes: 0 additions & 10 deletions demo/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3664,12 +3664,6 @@ ngx-color-picker@^4.2.0:
version "4.5.1"
resolved "https://registry.yarnpkg.com/ngx-color-picker/-/ngx-color-picker-4.5.1.tgz#5a9907b274c9cea770b7c5f71cf73e08a5382e66"

ngx-cookie@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/ngx-cookie/-/ngx-cookie-4.0.2.tgz#dc0044826cc3482b723fa70ecc6cd12af057d862"
dependencies:
tslib "^1.9.0"

[email protected]:
version "0.0.4"
resolved "https://registry.yarnpkg.com/ngx-window-token/-/ngx-window-token-0.0.4.tgz#47e7aaa465411c4ab5f7ba17601bc593c956c736"
Expand Down Expand Up @@ -5605,10 +5599,6 @@ tslib@^1.7.1:
version "1.7.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.7.1.tgz#bc8004164691923a79fe8378bbeb3da2017538ec"

tslib@^1.9.0:
version "1.9.2"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.2.tgz#8be0cc9a1f6dc7727c38deb16c2ebd1a2892988e"

tslint@~5.7.0:
version "5.7.0"
resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.7.0.tgz#c25e0d0c92fa1201c2bc30e844e08e682b4f3552"
Expand Down

0 comments on commit 570bfcf

Please sign in to comment.