Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sggerard committed Sep 27, 2024
1 parent e27005f commit 8d7601b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 21 deletions.
3 changes: 0 additions & 3 deletions bcmi/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@ import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AuthorizationsComponent } from './static-pages/authorizations/authorizations.component';
import { ComplianceOversightComponent } from './static-pages/compliance-oversight/compliance-oversight.component';
import { ContactComponent } from './static-pages/contact/contact.component';
import { HomeComponent } from './home/home.component';
import { LegislationComponent } from './static-pages/legislation/legislation.component';
import { LifecycleComponent } from './static-pages/lifecycle/lifecycle.component';
import { ReclamationComponent } from './static-pages/reclamation/reclamation.component';
import { TailingsManagementComponent } from './static-pages/tailings-management/tailings-management.component';
import { TopicsOfInterestComponent } from './static-pages/topics-of-interest/topics-of-interest.component';
import { WaterQualityComponent } from './static-pages/water-quality/water-quality.component';
import { PageComponent } from './static-pages/page/page.component';
import { MainMapComponent } from './map/main-map/main-map.component';
import { NotFoundComponent } from './not-found/not-found.component';
import {ContentResolver} from './services/content-resolver'

export const routes: Routes = [
{
Expand Down
20 changes: 8 additions & 12 deletions bcmi/src/app/models/content/page.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
export class Page {
Title: String
Description: String
Content: String
Ongoing_card: String
External_card: String
Related_card: String
route: String
tooltip: String

constructor() {

}
Title: string
Description: string
Content: string
Ongoing_card: string
External_card: string
Related_card: string
route: string
tooltip: string
}

6 changes: 3 additions & 3 deletions bcmi/src/app/services/config.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable, Injector } from '@angular/core';
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Route, Router, RouterModule } from '@angular/router';
import { Route, Router } from '@angular/router';
import { PageComponent } from '@app/static-pages/page/page.component';
import { ContentResolver } from './content-resolver';
import { ContentService } from './content-service';
Expand All @@ -27,7 +27,7 @@ export class ConfigService {
*/
async init() {
//Dynamically build routes based on pages in the CMS
let results = await this.contentService.getRoutes();
const results = await this.contentService.getRoutes();
const routes: Route[] = [];
results.forEach( (page) => {
routes.push({path: page.attributes.route, component: PageComponent, resolve: {pageData: ContentResolver}})
Expand Down
3 changes: 1 addition & 2 deletions bcmi/src/app/services/content-service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {throwError as observableThrowError, Observable, map, catchError, firstValueFrom } from 'rxjs';
import { map } from 'rxjs';
import { Injectable } from '@angular/core';
import { Apollo, gql } from 'apollo-angular';
import { Page } from '@app/models/content/page';

@Injectable()
export class ContentService {
Expand Down
1 change: 0 additions & 1 deletion bcmi/src/app/static-pages/page/page.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { Page } from '../../models/content/page';
import { Apollo, gql } from 'apollo-angular';
import { ActivatedRoute } from '@angular/router';

@Component({
Expand Down

0 comments on commit 8d7601b

Please sign in to comment.