-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restructuring of node & web application
- Loading branch information
1 parent
931ca63
commit 94f1882
Showing
35 changed files
with
606 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
<h1> | ||
{{title}} | ||
</h1> | ||
<app-viewport></app-viewport> |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { Component } from '@angular/core'; | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./app.component.css'] | ||
styleUrls: ['./app.component.scss'] | ||
}) | ||
export class AppComponent { | ||
title = 'app works!'; | ||
|
||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
|
||
<md-card> | ||
<codemirror [(ngModel)]="code" [config]="cmOptions"></codemirror> | ||
</md-card> | ||
|
||
<md-card> | ||
<button md-button>FLAT</button> | ||
<button md-raised-button md-tooltip="This is a tooltip!">RAISED</button> | ||
<button md-raised-button color="primary">PRIMARY RAISED</button> | ||
<button md-raised-button color="accent">ACCENT RAISED</button> | ||
</md-card> | ||
|
||
<md-card> | ||
<md-checkbox>Unchecked</md-checkbox> | ||
<md-checkbox [checked]="true">Checked</md-checkbox> | ||
<md-checkbox [indeterminate]="true">Indeterminate</md-checkbox> | ||
<md-checkbox [disabled]="true">Disabled</md-checkbox> | ||
</md-card> | ||
|
||
<md-card> | ||
<md-radio-button name="symbol">Alpha</md-radio-button> | ||
<md-radio-button name="symbol">Beta</md-radio-button> | ||
<md-radio-button name="symbol" disabled>Gamma</md-radio-button> | ||
</md-card> | ||
|
||
<md-card class="app-input-section"> | ||
<md-input placeholder="First name"></md-input> | ||
|
||
<md-input #nickname placeholder="Nickname" maxlength="50"> | ||
<md-hint align="end"> | ||
{{nickname.characterCount}} / 50 | ||
</md-hint> | ||
</md-input> | ||
|
||
<md-input> | ||
<md-placeholder> | ||
<i class="material-icons app-input-icon">android</i> Favorite phone | ||
</md-placeholder> | ||
</md-input> | ||
|
||
<md-input placeholder="Motorcycle model"> | ||
<span md-prefix> | ||
<i class="material-icons app-input-icon">motorcycle</i> | ||
| ||
</span> | ||
</md-input> | ||
</md-card> | ||
|
||
<md-card> | ||
<md-list class="app-list"> | ||
<md-list-item *ngFor="let food of foods"> | ||
<h3 md-line>{{food.name}}</h3> | ||
<p md-line class="demo-secondary-text">{{food.rating}}</p> | ||
</md-list-item> | ||
</md-list> | ||
</md-card> | ||
|
||
<md-card> | ||
<md-spinner class="app-spinner"></md-spinner> | ||
<md-spinner color="accent" class="app-spinner"></md-spinner> | ||
</md-card> | ||
|
||
<md-card> | ||
<label> | ||
Indeterminate progress-bar | ||
<md-progress-bar | ||
class="app-progress" | ||
mode="indeterminate" | ||
aria-label="Indeterminate progress-bar example"></md-progress-bar> | ||
</label> | ||
|
||
<label> | ||
Determinate progress bar - {{progress}}% | ||
<md-progress-bar | ||
class="app-progress" | ||
color="accent" | ||
mode="determinate" | ||
[value]="progress" | ||
aria-label="Determinate progress-bar example"></md-progress-bar> | ||
</label> | ||
</md-card> | ||
|
||
<md-card> | ||
<md-tab-group> | ||
<md-tab label="Earth"> | ||
<p>EARTH</p> | ||
</md-tab> | ||
<md-tab label="Fire"> | ||
<p>FIRE</p> | ||
</md-tab> | ||
</md-tab-group> | ||
</md-card> | ||
|
||
<md-card> | ||
<md-icon>build</md-icon> | ||
</md-card> | ||
|
||
<md-card> | ||
<button md-button [md-menu-trigger-for]="menu"> | ||
MENU | ||
</button> | ||
</md-card> | ||
|
||
<md-menu #menu="mdMenu"> | ||
<button md-menu-item>Lemon</button> | ||
<button md-menu-item>Lime</button> | ||
<button md-menu-item>Banana</button> | ||
</md-menu> | ||
|
||
<md-card> | ||
<p>Last dialog result: {{lastDialogResult}}</p> | ||
<button md-raised-button (click)="openDialog()">DIALOG</button> | ||
<button md-raised-button (click)="showSnackbar()">SNACKBAR</button> | ||
</md-card> |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* tslint:disable:no-unused-variable */ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { By } from '@angular/platform-browser'; | ||
import { DebugElement } from '@angular/core'; | ||
|
||
import { EditorComponent } from './editor.component'; | ||
|
||
describe('EditorComponent', () => { | ||
let component: EditorComponent; | ||
let fixture: ComponentFixture<EditorComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ EditorComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(EditorComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import 'codemirror/mode/javascript/javascript'; | ||
|
||
@Component({ | ||
selector: 'app-editor', | ||
templateUrl: './editor.component.html', | ||
styleUrls: ['./editor.component.scss'] | ||
}) | ||
export class EditorComponent implements OnInit { | ||
|
||
public code:String = ""; | ||
public cmOptions:Object = {}; | ||
|
||
constructor() { | ||
this.cmOptions = { | ||
lineNumbers: true, | ||
mode: { | ||
name: 'javascript', | ||
json: true | ||
} | ||
}; | ||
|
||
} | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<md-toolbar color="primary"> | ||
<button class="app-icon-button" (click)="sidenav.toggle()"> | ||
<i class="material-icons app-toolbar-menu">menu</i> | ||
</button> | ||
Scaffolding-all: Scaffold Documnetation | ||
<span class="app-toolbar-filler"></span> | ||
<!--<button md-button (click)="isDarkTheme = !isDarkTheme"> | ||
TOGGLE DARK THEME | ||
</button>--> | ||
</md-toolbar> |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* tslint:disable:no-unused-variable */ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { By } from '@angular/platform-browser'; | ||
import { DebugElement } from '@angular/core'; | ||
|
||
import { HeaderComponent } from './header.component'; | ||
|
||
describe('HeaderComponent', () => { | ||
let component: HeaderComponent; | ||
let fixture: ComponentFixture<HeaderComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ HeaderComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(HeaderComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-header', | ||
templateUrl: './header.component.html', | ||
styleUrls: ['./header.component.scss'] | ||
}) | ||
export class HeaderComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
preview works! | ||
</p> |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* tslint:disable:no-unused-variable */ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { By } from '@angular/platform-browser'; | ||
import { DebugElement } from '@angular/core'; | ||
|
||
import { PreviewComponent } from './preview.component'; | ||
|
||
describe('PreviewComponent', () => { | ||
let component: PreviewComponent; | ||
let fixture: ComponentFixture<PreviewComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ PreviewComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(PreviewComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.