chore(): begin adding ionic components to mono-repo.

This commit is contained in:
Josh Thomas
2017-06-21 09:33:06 -05:00
parent 1181fe98fc
commit bd5b67304d
2159 changed files with 15687 additions and 147 deletions

View File

@ -0,0 +1,4 @@
<!-- Generated template for the $CLASSNAME component -->
<div>
{{text}}
</div>

View File

@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { IonicModule } from 'ionic-angular';
import { $CLASSNAME } from './$FILENAME';
@NgModule({
declarations: [
$CLASSNAME,
],
imports: [
IonicModule,
],
exports: [
$CLASSNAME
]
})
export class $CLASSNAMEModule {}

View File

@ -0,0 +1,3 @@
$FILENAME {
}

View File

@ -0,0 +1,6 @@
describe('$CLASSNAME', () => {
it('should do something', () => {
expect(true).toEqual(true);
});
});

View File

@ -0,0 +1,22 @@
import { Component } from '@angular/core';
/**
* Generated class for the $CLASSNAME component.
*
* See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html
* for more info on Angular Components.
*/
@Component({
selector: '$FILENAME',
templateUrl: '$FILENAME.html'
})
export class $CLASSNAME {
text: string;
constructor() {
console.log('Hello $CLASSNAME Component');
this.text = 'Hello World';
}
}

View File

@ -0,0 +1,5 @@
describe('$CLASSNAME', () => {
it('should do something', () => {
expect(true).toEqual(true);
});
});

View File

@ -0,0 +1,18 @@
import { Directive } from '@angular/core';
/**
* Generated class for the $CLASSNAME directive.
*
* See https://angular.io/docs/ts/latest/api/core/index/DirectiveMetadata-class.html
* for more info on Angular Directives.
*/
@Directive({
selector: '[$FILENAME]' // Attribute selector
})
export class $CLASSNAME {
constructor() {
console.log('Hello $CLASSNAME Directive');
}
}

View File

@ -0,0 +1,18 @@
<!--
Generated template for the $CLASSNAME page.
See http://ionicframework.com/docs/components/#navigation for more info on
Ionic pages and navigation.
-->
<ion-header>
<ion-navbar>
<ion-title>$SUPPLIEDNAME</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
</ion-content>

View File

@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { $CLASSNAME } from './$FILENAME';
@NgModule({
declarations: [
$CLASSNAME,
],
imports: [
IonicPageModule.forChild($CLASSNAME),
],
exports: [
$CLASSNAME
]
})
export class $CLASSNAMEModule {}

View File

@ -0,0 +1,3 @@
page-$FILENAME {
}

View File

@ -0,0 +1,6 @@
describe('$CLASSNAME', () => {
it('should do something', () => {
expect(true).toEqual(true);
});
});

View File

@ -0,0 +1,24 @@
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
/**
* Generated class for the $CLASSNAME page.
*
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
@IonicPage()
@Component({
selector: 'page-$FILENAME',
templateUrl: '$FILENAME.html',
})
export class $CLASSNAME {
constructor(public navCtrl: NavController, public navParams: NavParams) {
}
ionViewDidLoad() {
console.log('ionViewDidLoad $CLASSNAME');
}
}

View File

@ -0,0 +1,6 @@
describe('$CLASSNAME', () => {
it('should do something', () => {
expect(true).toEqual(true);
});
});

View File

@ -0,0 +1,19 @@
import { Pipe, PipeTransform } from '@angular/core';
/**
* Generated class for the $CLASSNAME pipe.
*
* See https://angular.io/docs/ts/latest/guide/pipes.html for more info on
* Angular Pipes.
*/
@Pipe({
name: '$FILENAME',
})
export class $CLASSNAME implements PipeTransform {
/**
* Takes a value and makes it lowercase.
*/
transform(value: string, ...args) {
return value.toLowerCase();
}
}

View File

@ -0,0 +1,6 @@
describe('$CLASSNAME', () => {
it('should do something', () => {
expect(true).toEqual(true);
});
});

View File

@ -0,0 +1,18 @@
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import 'rxjs/add/operator/map';
/*
Generated class for the $CLASSNAME provider.
See https://angular.io/docs/ts/latest/guide/dependency-injection.html
for more info on providers and Angular DI.
*/
@Injectable()
export class $CLASSNAME {
constructor(public http: Http) {
console.log('Hello $CLASSNAME Provider');
}
}

View File

@ -0,0 +1,3 @@
<ion-tabs>
$TAB_CONTENT
</ion-tabs>

View File

@ -0,0 +1,13 @@
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { $CLASSNAME } from './$FILENAME';
@NgModule({
declarations: [
$CLASSNAME,
],
imports: [
IonicPageModule.forChild($CLASSNAME),
]
})
export class $CLASSNAMEModule {}

View File

@ -0,0 +1,3 @@
page-$FILENAME {
}

View File

@ -0,0 +1,5 @@
describe('$CLASSNAME', () => {
it('should do something', () => {
expect(true).toEqual(true);
});
});

View File

@ -0,0 +1,21 @@
import { Component } from '@angular/core';
import { IonicPage, NavController } from 'ionic-angular';
/**
* Generated class for the $CLASSNAME tabs.
*
* See https://angular.io/docs/ts/latest/guide/dependency-injection.html for
* more info on providers and Angular DI.
*/
@Component({
selector: 'page-$FILENAME',
templateUrl: '$FILENAME.html'
})
@IonicPage()
export class $CLASSNAME {
$TAB_VARIABLES
constructor(public navCtrl: NavController) {}
}