This file contains hidden or 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
| <PropertyGroup> | |
| <!-- Customize which folders are not shown by default --> | |
| <ExcludedItems>bin;bld;platforms;node_modules;simulation;.git;.vs;.vscode</ExcludedItems> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <Content Include="**\**" Exclude="**\platforms\**;**\bin\**;**\bld\**;**\node_modules\**;**\simulation\**;.gitignore;allpee.mobile.*;**\.git\**;**\.vs\**;**\.vscode\**" /> | |
| </ItemGroup> |
This file contains hidden or 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
| # Specifies intentionally untracked files to ignore when using Git | |
| # http://git-scm.com/docs/gitignore | |
| *~ | |
| *.sw[mnpcod] | |
| *.log | |
| *.tmp | |
| *.tmp.* | |
| log.txt | |
| *.sublime-project |
This file contains hidden or 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
| import { TranslateModule, TranslateLoader } from '@ngx-translate/core'; | |
| import { TranslateHttpLoader } from '@ngx-translate/http-loader'; | |
| import { HttpModule, Http } from '@angular/http'; | |
| export function createTranslateLoader(http: Http) { | |
| return new TranslateHttpLoader(http, './assets/i18n/', '.json'); | |
| } | |
| @NgModule({ | |
| .... |
This file contains hidden or 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
| import { TranslateService } from '@ngx-translate/core'; | |
| constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, translate: TranslateService) { | |
| platform.ready().then(() => { | |
| statusBar.styleDefault(); | |
| splashScreen.hide(); | |
| translate.setDefaultLang('en'); | |
| translate.use('en'); | |
| }); |
This file contains hidden or 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
| import { TranslateModule } from '@ngx-translate/core'; | |
| @NgModule({ | |
| declarations: [HomePage], | |
| imports: [ | |
| IonicPageModule.forChild(HomePage), | |
| TranslateModule.forChild() | |
| ] | |
| }) | |
| export class HomePageModule { } |
This file contains hidden or 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
| import { TranslateService } from '@ngx-translate/core'; | |
| constructor(public navCtrl: NavController, platform: Platform, translate: TranslateService) { | |
| platform.ready().then(() => { | |
| translate.get('W_TEXT').subscribe( | |
| value => { | |
| // value is our translated string | |
| this.text = value; | |
| } | |
| ); |
This file contains hidden or 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
| import { BrowserModule } from '@angular/platform-browser'; | |
| import { ErrorHandler, NgModule } from '@angular/core'; | |
| import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular'; | |
| import { IonicStorageModule } from '@ionic/storage'; | |
| import { SplashScreen } from '@ionic-native/splash-screen'; | |
| import { StatusBar } from '@ionic-native/status-bar'; | |
| import { MyApp } from './app.component'; | |
| @NgModule({ |
This file contains hidden or 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
| import { Component } from '@angular/core'; | |
| import { Platform } from 'ionic-angular'; | |
| import { StatusBar } from '@ionic-native/status-bar'; | |
| import { SplashScreen } from '@ionic-native/splash-screen'; | |
| @Component({ | |
| templateUrl: 'app.html' | |
| }) | |
| export class MyApp { |
This file contains hidden or 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
| ion-content { | |
| background-color: #11aaaa !important; | |
| } | |
| ion-title img { | |
| max-height: 35px; | |
| } | |
| button { | |
| border: none !important; |
This file contains hidden or 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
| interface Period { | |
| start: Date; | |
| end: Date; | |
| updatePeriod(start: Date, end: Date); | |
| } | |
| export interface TimeTracker extends Period { | |
| id: string; | |
| detail: string; |
OlderNewer