This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Routes } from '@angular/router'; | |
| import { LoginComponent } from './login/login.component'; | |
| import { PageNotFoundComponent } from './page-not-found/page-not-found.component'; | |
| export const APP_ROUTES: Routes = [ | |
| { path: 'login', component: LoginComponent }, | |
| { path: '', redirectTo: 'dashboard', pathMatch: 'full' }, | |
| { path: '**', component: PageNotFoundComponent } | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // npm install chartjs --save | |
| import * as Chart from 'chart.js'; | |
| // npm install chart.piecelabel.js --save | |
| import 'chart.piecelabel.js'; | |
| /** | |
| * this is simply used to init our chartjs | |
| * | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component, OnInit } from '@angular/core'; | |
| import { ActivatedRoute } from '@angular/router'; | |
| import { IData } from '../interfaces/idata'; | |
| @Component({ | |
| selector: 'app-records', | |
| templateUrl: './records.component.html', | |
| styles: [] | |
| }) | |
| export class RecordsComponent implements OnInit { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable } from '@angular/core'; | |
| import { IData } from '../interfaces/idata'; | |
| import { ActivatedRouteSnapshot, RouterStateSnapshot, Resolve } from '@angular/router'; | |
| import { MockHttpService } from '../services/mock-http.service'; | |
| import { Observable } from 'rxjs/Observable'; | |
| import 'rxjs/add/observable/forkJoin'; | |
| import 'rxjs/add/operator/map'; | |
| import 'rxjs/add/operator/catch'; | |
| import 'rxjs/add/observable/throw'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Routes } from '@angular/router'; | |
| import { RecordsComponent } from './records/records.component'; | |
| import { HomeComponent } from './home/home.component'; | |
| export const APP_ROUTES: Routes = [ | |
| { path: 'home', component: HomeComponent }, | |
| { path: '', redirectTo: 'home', pathMatch: 'full' }, | |
| { path: 'records/:with-error', component: RecordsComponent}, | |
| { path: '**', redirectTo: 'home' } | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: trion/ng-cli-karma | |
| cache: | |
| paths: | |
| - node_modules/ | |
| before_script: | |
| - apt-get update -qq && apt-get install -y -qq sshpass | |
| deploy_stage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: trion/ng-cli-karma | |
| cache: | |
| paths: | |
| - node_modules/ | |
| deploy_stage: | |
| stage: deploy | |
| environment: Staging | |
| only: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Trad | |
| { | |
| public $id; | |
| public $count; | |
| } | |
| /** | |
| * Created by PhpStorm. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Write a function to return true if the string can be broken down to incrementing sets of integers | |
| * no negative >= 1 | |
| * "" => false | |
| * "1" > false | |
| * "1315" => ? => false | |
| * "54" => false | |
| * "1234" => "1" + "2" + "3" + "4" => true | |
| * "91011" => "9" + "10" + "11" => true | |
| * "5556" => "55" + "56" => true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Component} from '@angular/core'; | |
| import {SlimLoadingBarService} from 'ng2-slim-loading-bar'; | |
| import {HttpClient} from "@angular/common/http"; | |
| @Component({ | |
| selector: 'app-root', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'] | |
| }) | |
| export class AppComponent { |