Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { async, ComponentFixture, TestBed } from "@angular/core/testing";
import { RouterTestingModule } from "@angular/router/testing";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { AppComponent } from "./app.component";
import { ToolbarModule } from "./toolbar/toolbar.module";
import { MatSidenavModule } from "@angular/material";
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppComponent } from './app.component';
import { ToolbarModule } from './toolbar/toolbar.module';
import { MatSidenavModule } from '@angular/material';

describe("AppComponent", () => {
describe('AppComponent', () => {
let component: AppComponent;
let fixture: ComponentFixture<AppComponent>;

Expand All @@ -29,7 +29,7 @@ describe("AppComponent", () => {
fixture.detectChanges();
});

it("should create", () => {
it('should create', () => {
expect(component).toBeTruthy();
});
});
24 changes: 12 additions & 12 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component } from "@angular/core";
import { Component } from '@angular/core';

interface Menu {
title: string;
Expand All @@ -7,30 +7,30 @@ interface Menu {
}

@Component({
selector: "app-root",
templateUrl: "./app.component.html",
styleUrls: ["./app.component.scss"]
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
menus: Menu[] = [
{
title: "Home",
link: "/",
title: 'Home',
link: '/',
options: { exact: true }
},
{
title: "Operators",
link: "/operators",
title: 'Operators',
link: '/operators',
options: { exact: false }
},
{
title: "Companies",
link: "/companies",
title: 'Companies',
link: '/companies',
options: { exact: false }
},
{
title: "Team",
link: "/team",
title: 'Team',
link: '/team',
options: { exact: false }
}
];
Expand Down
16 changes: 8 additions & 8 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { BrowserModule } from "@angular/platform-browser";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { NgModule } from "@angular/core";
import { RouterModule, PreloadAllModules } from "@angular/router";
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { RouterModule, PreloadAllModules } from '@angular/router';

import { AppComponent } from "./app.component";
import { RXJS_DOC_ROUTES } from "./app.routing";
import { ToolbarModule } from "./toolbar/toolbar.module";
import { MatSidenavModule, MatListModule } from "@angular/material";
import { AppComponent } from './app.component';
import { RXJS_DOC_ROUTES } from './app.routing';
import { ToolbarModule } from './toolbar/toolbar.module';
import { MatSidenavModule, MatListModule } from '@angular/material';

@NgModule({
declarations: [AppComponent],
Expand Down
8 changes: 4 additions & 4 deletions src/app/companies/companies.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Component, OnInit } from "@angular/core";
import { Component, OnInit } from '@angular/core';

@Component({
selector: "app-companies",
templateUrl: "./companies.component.html",
styleUrls: ["./companies.component.scss"]
selector: 'app-companies',
templateUrl: './companies.component.html',
styleUrls: ['./companies.component.scss']
})
export class CompaniesComponent implements OnInit {
constructor() {}
Expand Down
10 changes: 5 additions & 5 deletions src/app/companies/companies.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { NgModule } from "@angular/core";
import { NgModule } from '@angular/core';

import { CompaniesComponent } from "./companies.component";
import { routing } from "./companies.routing";
import { SharedModule } from "../shared.module";
import { environment } from "../../environments/environment";
import { CompaniesComponent } from './companies.component';
import { routing } from './companies.routing';
import { SharedModule } from '../shared.module';
import { environment } from '../../environments/environment';

@NgModule({
imports: [routing, SharedModule],
Expand Down
16 changes: 8 additions & 8 deletions src/app/operators/components/operator/operator.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@ import {
Input,
OnInit,
ChangeDetectionStrategy
} from "@angular/core";
import { OperatorDoc } from "../../../../operator-docs/operator.model";
} from '@angular/core';
import { OperatorDoc } from '../../../../operator-docs/operator.model';

@Component({
selector: "app-operator",
templateUrl: "./operator.component.html",
styleUrls: ["./operator.component.scss"],
selector: 'app-operator',
templateUrl: './operator.component.html',
styleUrls: ['./operator.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class OperatorComponent {
@Input() operator: OperatorDoc;

private readonly baseSourceUrl = "https://github.com/ReactiveX/rxjs/blob/master/src/operators/";
private readonly baseSpecUrl = "http://reactivex.io/rxjs/test-file/spec-js/operators";
private readonly baseSourceUrl = 'https://github.com/ReactiveX/rxjs/blob/master/src/operators/';
private readonly baseSpecUrl = 'http://reactivex.io/rxjs/test-file/spec-js/operators';

get operatorName() {
return this.operator.name;
}

get signature() {
return this.operator.signature || "Signature Placeholder";
return this.operator.signature || 'Signature Placeholder';
}

get marbleUrl() {
Expand Down
36 changes: 18 additions & 18 deletions src/app/operators/operators.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ import {
NgModule,
InjectionToken,
CUSTOM_ELEMENTS_SCHEMA
} from "@angular/core";
import { LayoutModule } from "@angular/cdk/layout";
import { ClipboardModule } from "ngx-clipboard";
} from '@angular/core';
import { LayoutModule } from '@angular/cdk/layout';
import { ClipboardModule } from 'ngx-clipboard';

import { ALL_OPERATORS, OperatorDoc } from "../../operator-docs";
import { OperatorsRoutingModule } from "./operators.routing";
import { OperatorsComponent, OPERATORS_TOKEN } from "./operators.component";
import { OperatorComponent } from "./components/operator/operator.component";
import { OperatorHeaderComponent } from "./components/operator-header/operator-header.component";
import { OperatorParametersComponent } from "./components/operator-parameters/operator-parameters.component";
import { OperatorExamplesComponent } from "./components/operator-examples/operator-examples.component";
import { RelatedOperatorsComponent } from "./components/related-operators/related-operators.component";
import { OperatorExtrasComponent } from "./components/operator-extras/operator-extras.component";
import { AdditionalResourcesComponent } from "./components/additional-resources/additional-resources.component";
import { MarbleDiagramComponent } from "./components/marble-diagram/marble-diagram.component";
import { WalkthroughComponent } from "./components/walkthrough/walkthrough.component";
import { HighlightJsDirective } from "./directives/highlight-js.directive";
import { SafeUrlPipe } from "./pipes/safe-url.pipe";
import { SharedModule } from "../shared.module";
import { ALL_OPERATORS, OperatorDoc } from '../../operator-docs';
import { OperatorsRoutingModule } from './operators.routing';
import { OperatorsComponent, OPERATORS_TOKEN } from './operators.component';
import { OperatorComponent } from './components/operator/operator.component';
import { OperatorHeaderComponent } from './components/operator-header/operator-header.component';
import { OperatorParametersComponent } from './components/operator-parameters/operator-parameters.component';
import { OperatorExamplesComponent } from './components/operator-examples/operator-examples.component';
import { RelatedOperatorsComponent } from './components/related-operators/related-operators.component';
import { OperatorExtrasComponent } from './components/operator-extras/operator-extras.component';
import { AdditionalResourcesComponent } from './components/additional-resources/additional-resources.component';
import { MarbleDiagramComponent } from './components/marble-diagram/marble-diagram.component';
import { WalkthroughComponent } from './components/walkthrough/walkthrough.component';
import { HighlightJsDirective } from './directives/highlight-js.directive';
import { SafeUrlPipe } from './pipes/safe-url.pipe';
import { SharedModule } from '../shared.module';

@NgModule({
declarations: [
Expand Down
8 changes: 4 additions & 4 deletions src/app/rxjs/rxjs.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { NgModule } from "@angular/core";
import { NgModule } from '@angular/core';

import { RxjsComponent } from "./rxjs.component";
import { routing } from "./rxjs.routing";
import { SharedModule } from "../shared.module";
import { RxjsComponent } from './rxjs.component';
import { routing } from './rxjs.routing';
import { SharedModule } from '../shared.module';

@NgModule({
imports: [routing, SharedModule],
Expand Down
8 changes: 4 additions & 4 deletions src/app/shared.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { FlexLayoutModule } from "@angular/flex-layout";
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FlexLayoutModule } from '@angular/flex-layout';
import {
MatToolbarModule,
MatIconModule,
Expand All @@ -12,7 +12,7 @@ import {
MatInputModule,
MatMenuModule,
MatTooltipModule
} from "@angular/material";
} from '@angular/material';

@NgModule({
declarations: [],
Expand Down
8 changes: 4 additions & 4 deletions src/app/team/team.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { NgModule } from "@angular/core";
import { NgModule } from '@angular/core';

import { TeamComponent } from "./team.component";
import { routing } from "./team.routing";
import { SharedModule } from "../shared.module";
import { TeamComponent } from './team.component';
import { routing } from './team.routing';
import { SharedModule } from '../shared.module';

@NgModule({
imports: [routing, SharedModule],
Expand Down
14 changes: 7 additions & 7 deletions src/app/toolbar/toolbar.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { async, ComponentFixture, TestBed } from "@angular/core/testing";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { RouterTestingModule } from "@angular/router/testing";
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterTestingModule } from '@angular/router/testing';

import { ToolbarComponent } from "./toolbar.component";
import { SharedModule } from "../shared.module";
import { ToolbarComponent } from './toolbar.component';
import { SharedModule } from '../shared.module';

describe("ToolbarComponent", () => {
describe('ToolbarComponent', () => {
let component: ToolbarComponent;
let fixture: ComponentFixture<ToolbarComponent>;

Expand All @@ -24,7 +24,7 @@ describe("ToolbarComponent", () => {
fixture.detectChanges();
});

it("should create", () => {
it('should create', () => {
expect(component).toBeTruthy();
});
});
8 changes: 4 additions & 4 deletions src/app/toolbar/toolbar.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Component, OnInit, Output, EventEmitter } from "@angular/core";
import { Component, OnInit, Output, EventEmitter } from '@angular/core';

@Component({
selector: "app-toolbar",
templateUrl: "./toolbar.component.html",
styleUrls: ["./toolbar.component.scss"]
selector: 'app-toolbar',
templateUrl: './toolbar.component.html',
styleUrls: ['./toolbar.component.scss']
})
export class ToolbarComponent implements OnInit {
@Output() navToggle = new EventEmitter<boolean>();
Expand Down
8 changes: 4 additions & 4 deletions src/app/toolbar/toolbar.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NgModule } from "@angular/core";
import { ToolbarComponent } from "./toolbar.component";
import { SharedModule } from "../shared.module";
import { RouterModule } from "@angular/router";
import { NgModule } from '@angular/core';
import { ToolbarComponent } from './toolbar.component';
import { SharedModule } from '../shared.module';
import { RouterModule } from '@angular/router';

@NgModule({
imports: [SharedModule, RouterModule],
Expand Down
2 changes: 1 addition & 1 deletion src/operator-docs/combination/combineLatest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const combineLatest: OperatorDoc = {
'name': 'combineLatest',
'operatorType': 'combination',
'signature': 'public combineLatest(observables: ...Observable, project: function): Observable',
"useInteractiveMarbles": true,
'useInteractiveMarbles': true,
'parameters': [
{
'name': 'other',
Expand Down
42 changes: 21 additions & 21 deletions src/operator-docs/combination/concatAll.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { OperatorDoc } from "../operator.model";
import { OperatorDoc } from '../operator.model';

export const concatAll: OperatorDoc = {
name: "concatAll",
operatorType: "combination",
signature: "public concatAll(): Observable",
name: 'concatAll',
operatorType: 'combination',
signature: 'public concatAll(): Observable',
parameters: [],
marbleUrl: "http://reactivex.io/rxjs/img/concatAll.png",
marbleUrl: 'http://reactivex.io/rxjs/img/concatAll.png',
shortDescription: {
description:
"Converts a higher-order Observable into a first-order Observable by concatenating the inner Observables in order.",
'Converts a higher-order Observable into a first-order Observable by concatenating the inner Observables in order.',
extras: [
{
type: "Tip",
type: 'Tip',
text:
"Flattens an Observable-of-Observables by putting one inner Observable after the other."
'Flattens an Observable-of-Observables by putting one inner Observable after the other.'
}
]
},
Expand All @@ -25,43 +25,43 @@ export const concatAll: OperatorDoc = {
`,
extras: [
{
type: "Warning",
type: 'Warning',
text: `
If the source Observable emits Observables quickly and endlessly, and the inner Observables it emits generally
complete slower than the source emits, you can run into memory issues as the incoming Observables collect in an unbounded buffer.
`
},
{
type: "Tip",
type: 'Tip',
text: `concatAll is equivalent to mergeAll with concurrency parameter set to 1.`
}
]
},
examples: [
{
name:
"For each click event, tick every second from 0 to 3, with no concurrency",
'For each click event, tick every second from 0 to 3, with no concurrency',
code: `
const clicks = Rx.Observable.fromEvent(document, 'click');
const higherOrder = clicks.map(ev => Rx.Observable.interval(1000).take(4));
const firstOrder = higherOrder.concatAll();
firstOrder.subscribe(x => console.log(x));
`,
externalLink: {
platform: "JSBin",
url: "http://jsbin.com/guhefeyahi/edit?js,console,output"
platform: 'JSBin',
url: 'http://jsbin.com/guhefeyahi/edit?js,console,output'
}
}
],
relatedOperators: [
"combineAll",
"concat",
"concatMap",
"concatMapTo",
"exhaust",
"mergeAll",
"switch",
"zipAll"
'combineAll',
'concat',
'concatMap',
'concatMapTo',
'exhaust',
'mergeAll',
'switch',
'zipAll'
],
additionalResources: []
};