diff --git a/package.json b/package.json index d94a2861..ed61b5a2 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "@angular/common": "4.4.4", "@angular/compiler": "4.4.4", "@angular/core": "4.4.4", + "@angular/flex-layout": "2.0.0-beta.9", "@angular/forms": "4.4.4", "@angular/http": "4.4.4", "@angular/material": "2.0.0-beta.12", diff --git a/src/app/app.component.html b/src/app/app.component.html index 976f6af0..4dec9a2b 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,26 +1,17 @@
- companies works! -
+ diff --git a/src/app/companies/companies.component.ts b/src/app/companies/companies.component.ts index 53634219..0dbc9a29 100644 --- a/src/app/companies/companies.component.ts +++ b/src/app/companies/companies.component.ts @@ -1,15 +1,12 @@ -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() {} - constructor() { } - - ngOnInit() { - } + ngOnInit() {} } - diff --git a/src/app/companies/companies.module.ts b/src/app/companies/companies.module.ts index 6389143f..aeece1fe 100644 --- a/src/app/companies/companies.module.ts +++ b/src/app/companies/companies.module.ts @@ -1,10 +1,12 @@ -import { NgModule } from '@angular/core'; +import { NgModule } from "@angular/core"; -import { CompaniesComponent } from './companies.component'; -import { routing } from './companies.routing'; +import { CompaniesComponent } from "./companies.component"; +import { routing } from "./companies.routing"; +import { SharedModule } from "../shared.module"; +import { environment } from "../../environments/environment"; @NgModule({ - imports: [routing], - declarations: [CompaniesComponent] + imports: [routing, SharedModule], + declarations: [CompaniesComponent] }) -export class CompaniesModule { } +export class CompaniesModule {} diff --git a/src/app/operators/operators.module.ts b/src/app/operators/operators.module.ts index e04f6a09..908fa12e 100644 --- a/src/app/operators/operators.module.ts +++ b/src/app/operators/operators.module.ts @@ -1,34 +1,26 @@ -import { NgModule, InjectionToken, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { LayoutModule } from '@angular/cdk/layout'; import { - MatSidenavModule, - MatIconModule, - MatListModule, - MatToolbarModule, - MatExpansionModule, - MatCardModule, - MatInputModule, - MatMenuModule, - MatButtonModule, - MatTooltipModule -} from '@angular/material'; -import { ClipboardModule } from 'ngx-clipboard'; -import { ALL_OPERATORS, OperatorDoc } from '../../operator-docs'; + NgModule, + InjectionToken, + CUSTOM_ELEMENTS_SCHEMA +} from "@angular/core"; +import { LayoutModule } from "@angular/cdk/layout"; +import { ClipboardModule } from "ngx-clipboard"; -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 { 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: [ @@ -46,23 +38,12 @@ import { SafeUrlPipe } from './pipes/safe-url.pipe'; SafeUrlPipe ], imports: [ - CommonModule, + SharedModule, OperatorsRoutingModule, ClipboardModule, - LayoutModule, - MatSidenavModule, - MatIconModule, - MatListModule, - MatToolbarModule, - MatCardModule, - MatInputModule, - MatMenuModule, - MatButtonModule, - MatTooltipModule + LayoutModule ], - providers: [ - { provide: OPERATORS_TOKEN, useValue: ALL_OPERATORS } - ], - schemas: [ CUSTOM_ELEMENTS_SCHEMA ] + providers: [{ provide: OPERATORS_TOKEN, useValue: ALL_OPERATORS }], + schemas: [CUSTOM_ELEMENTS_SCHEMA] }) -export class OperatorsModule { } +export class OperatorsModule {} diff --git a/src/app/rxjs/rxjs.module.ts b/src/app/rxjs/rxjs.module.ts index 53e1d345..0c93ac40 100644 --- a/src/app/rxjs/rxjs.module.ts +++ b/src/app/rxjs/rxjs.module.ts @@ -1,10 +1,11 @@ -import { NgModule } from '@angular/core'; +import { NgModule } from "@angular/core"; -import { RxjsComponent } from './rxjs.component'; -import { routing } from './rxjs.routing'; +import { RxjsComponent } from "./rxjs.component"; +import { routing } from "./rxjs.routing"; +import { SharedModule } from "../shared.module"; @NgModule({ - imports: [routing], - declarations: [RxjsComponent] + imports: [routing, SharedModule], + declarations: [RxjsComponent] }) -export class RxjsModule { } +export class RxjsModule {} diff --git a/src/app/shared.module.ts b/src/app/shared.module.ts new file mode 100644 index 00000000..f864e8c2 --- /dev/null +++ b/src/app/shared.module.ts @@ -0,0 +1,50 @@ +import { NgModule } from "@angular/core"; +import { CommonModule } from "@angular/common"; +import { FlexLayoutModule } from "@angular/flex-layout"; +import { + MatToolbarModule, + MatIconModule, + MatButtonModule, + MatListModule, + MatSidenavModule, + MatExpansionModule, + MatCardModule, + MatInputModule, + MatMenuModule, + MatTooltipModule +} from "@angular/material"; + +@NgModule({ + declarations: [], + imports: [ + CommonModule, + MatToolbarModule, + MatIconModule, + MatButtonModule, + MatListModule, + MatSidenavModule, + MatExpansionModule, + MatCardModule, + MatInputModule, + MatMenuModule, + MatTooltipModule, + FlexLayoutModule + ], + providers: [], + entryComponents: [], + exports: [ + CommonModule, + MatToolbarModule, + MatIconModule, + MatButtonModule, + MatListModule, + MatSidenavModule, + MatExpansionModule, + MatCardModule, + MatInputModule, + MatMenuModule, + MatTooltipModule, + FlexLayoutModule + ] +}) +export class SharedModule {} diff --git a/src/app/team/team.module.ts b/src/app/team/team.module.ts index 32836909..a2268215 100644 --- a/src/app/team/team.module.ts +++ b/src/app/team/team.module.ts @@ -1,10 +1,11 @@ -import { NgModule } from '@angular/core'; +import { NgModule } from "@angular/core"; -import { TeamComponent } from './team.component'; -import { routing } from './team.routing'; +import { TeamComponent } from "./team.component"; +import { routing } from "./team.routing"; +import { SharedModule } from "../shared.module"; @NgModule({ - imports: [routing], - declarations: [TeamComponent] + imports: [routing, SharedModule], + declarations: [TeamComponent] }) -export class TeamModule { } +export class TeamModule {} diff --git a/src/app/toolbar/toolbar.component.html b/src/app/toolbar/toolbar.component.html new file mode 100644 index 00000000..7ee35605 --- /dev/null +++ b/src/app/toolbar/toolbar.component.html @@ -0,0 +1,13 @@ +