This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(app): add the skelton of the app for running examples, this start…
…s but has not pages
- Loading branch information
1 parent
ce65aec
commit 72431e5
Showing
11 changed files
with
124 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
|
||
const routes: Routes = [{ | ||
path: '', | ||
redirectTo: '', | ||
pathMatch: 'full' | ||
}]; | ||
|
||
@NgModule({ | ||
imports: [ RouterModule.forRoot(routes) ], | ||
exports: [ RouterModule ] | ||
}) | ||
export class AppRoutingModule {} |
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,5 @@ | ||
<main class="view-container flex-container in-column-direction"> | ||
<div class="view flex-container overflow-auto"> | ||
<router-outlet></router-outlet> | ||
</div> | ||
</main> |
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 @@ | ||
.app { | ||
|
||
} |
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,19 @@ | ||
import { Component, ViewEncapsulation } from '@angular/core'; | ||
|
||
/* | ||
* App Component | ||
* Top Level Component | ||
*/ | ||
@Component({ | ||
encapsulation: ViewEncapsulation.None, | ||
host: {'class': 'app app-component flex-container in-column-direction flex-grow-1'}, | ||
selector: 'demo-app', | ||
styleUrls: ['./app.component.scss'], | ||
templateUrl: './app.component.html' | ||
}) | ||
export class AppComponent { | ||
|
||
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,27 @@ | ||
//import './rxjs-extensions'; | ||
|
||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { HttpModule } from '@angular/http'; | ||
|
||
// App components | ||
import { AppComponent } from './app.component'; | ||
import { AppRoutingModule } from './app-routing.module'; | ||
|
||
// Main areas | ||
|
||
@NgModule({ | ||
imports: [ | ||
AppRoutingModule, | ||
BrowserModule, | ||
FormsModule, | ||
HttpModule | ||
], | ||
declarations: [ | ||
AppComponent | ||
], | ||
providers: [], | ||
bootstrap: [ AppComponent ] | ||
}) | ||
export class AppModule { } |
Binary file not shown.
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,11 @@ | ||
<html> | ||
<head> | ||
<base href="/"> | ||
<title>NGX Widgets Demo</title> | ||
<meta charset="UTF-8"> | ||
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"> | ||
</head> | ||
<body> | ||
<demo-app>Loading...</demo-app> | ||
</body> | ||
</html> |
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,11 @@ | ||
// The usual bootstrapping imports | ||
import { enableProdMode } from '@angular/core'; | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
|
||
import { AppModule } from './app/app.module'; | ||
|
||
if (process.env.ENV === 'production') { | ||
enableProdMode(); | ||
} | ||
|
||
platformBrowserDynamic().bootstrapModule(AppModule); |
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 @@ | ||
import 'core-js/es6'; | ||
import 'reflect-metadata'; | ||
require('zone.js/dist/zone'); | ||
if (process.env.ENV === 'production') { | ||
// Production | ||
} else { | ||
// Development | ||
Error['stackTraceLimit'] = Infinity; | ||
require('zone.js/dist/long-stack-trace-zone'); | ||
} |
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,21 @@ | ||
// Angular 2 | ||
import '@angular/common'; | ||
//import '@angular/compiler'; | ||
//import '@angular/compiler-cli'; | ||
import '@angular/core'; | ||
import '@angular/forms'; | ||
import '@angular/http'; | ||
import '@angular/platform-browser'; | ||
import '@angular/platform-browser-dynamic'; | ||
//import '@angular/platform-server'; | ||
import '@angular/router'; | ||
//import '@angular/upgrade'; | ||
|
||
// RxJS | ||
import 'rxjs'; | ||
|
||
// Other vendors for example jQuery, Lodash or Bootstrap | ||
// You can import js, ts, css, sass, ... | ||
|
||
// import 'patternfly-sass-with-css/assets/css/patternfly.css'; | ||
|