all page components do extend basecomponent and its common config service

This commit is contained in:
ty kayn 2019-09-09 10:57:08 +02:00
parent d2478c37a4
commit 8f8a258ecf
7 changed files with 46 additions and 21 deletions

View File

@ -1,15 +1,19 @@
import { Component, OnInit } from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
import {ConfigService} from "../../config.service";
@Component({
selector: 'framadate-create-or-retrieve',
templateUrl: './create-or-retrieve.component.html',
styleUrls: ['./create-or-retrieve.component.scss']
})
export class CreateOrRetrieveComponent implements OnInit {
export class CreateOrRetrieveComponent extends BaseComponent implements OnInit {
constructor() { }
constructor(public config: ConfigService) {
super(config);
}
ngOnInit() {
ngOnInit() {
}
}

View File

@ -1,15 +1,19 @@
import { Component, OnInit } from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
import {ConfigService} from "../../config.service";
@Component({
selector: 'framadate-end-confirmation',
templateUrl: './end-confirmation.component.html',
styleUrls: ['./end-confirmation.component.scss']
})
export class EndConfirmationComponent implements OnInit {
export class EndConfirmationComponent extends BaseComponent implements OnInit {
constructor() { }
constructor(public config: ConfigService) {
super(config);
}
ngOnInit() {
ngOnInit() {
}
}

View File

@ -1,16 +1,16 @@
import {Component, OnInit} from '@angular/core';
import {ConfigService} from "../../config.service";
import {BaseComponent} from "../base-page/base.component";
@Component({
selector: 'framadate-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
export class HomeComponent extends BaseComponent implements OnInit {
constructor(public config: ConfigService) {
super(config);
}
ngOnInit() {

View File

@ -1,15 +1,19 @@
import { Component, OnInit } from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
import {ConfigService} from "../../config.service";
@Component({
selector: 'framadate-password',
templateUrl: './password.component.html',
styleUrls: ['./password.component.scss']
})
export class PasswordComponent implements OnInit {
export class PasswordComponent extends BaseComponent implements OnInit {
constructor() { }
constructor(public config: ConfigService) {
super(config);
}
ngOnInit() {
ngOnInit() {
}
}

View File

@ -1,15 +1,20 @@
import { Component, OnInit } from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
import {ConfigService} from "../../config.service";
@Component({
selector: 'framadate-voting-choice',
templateUrl: './voting-choice.component.html',
styleUrls: ['./voting-choice.component.scss']
})
export class VotingChoiceComponent implements OnInit {
export class VotingChoiceComponent extends BaseComponent implements OnInit {
constructor() { }
constructor(public config: ConfigService) {
super(config);
}
ngOnInit() {
ngOnInit() {
}
}

View File

@ -1,15 +1,19 @@
import { Component, OnInit } from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
import {ConfigService} from "../../config.service";
@Component({
selector: 'framadate-voting-graph',
templateUrl: './voting-graph.component.html',
styleUrls: ['./voting-graph.component.scss']
})
export class VotingGraphComponent implements OnInit {
export class VotingGraphComponent extends BaseComponent implements OnInit {
constructor() { }
constructor(public config: ConfigService) {
super(config);
}
ngOnInit() {
ngOnInit() {
}
}

View File

@ -1,15 +1,19 @@
import { Component, OnInit } from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
import {ConfigService} from "../../config.service";
@Component({
selector: 'framadate-voting-summary',
templateUrl: './voting-summary.component.html',
styleUrls: ['./voting-summary.component.scss']
})
export class VotingSummaryComponent implements OnInit {
export class VotingSummaryComponent extends BaseComponent implements OnInit {
constructor() { }
constructor(public config: ConfigService) {
super(config);
}
ngOnInit() {
ngOnInit() {
}
}