mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
bundle demos with CJS
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import {ActionSheetPage} from 'actionSheet/actionSheet';
|
||||
import {ActionSheetPage} from './actionSheet/actionSheet';
|
||||
|
||||
import {ButtonsPage,
|
||||
BlockButtonsPage,
|
||||
@ -9,18 +9,18 @@ import {ButtonsPage,
|
||||
FabPage,
|
||||
ButtonSizesPage,
|
||||
IconButtonsPage,
|
||||
ButtonsInComponentsPage} from 'buttons/buttons';
|
||||
ButtonsInComponentsPage} from './buttons/buttons';
|
||||
|
||||
import {CardsPage} from 'cards/cards';
|
||||
import {FormsPage} from 'forms/forms';
|
||||
import {IconsPage} from 'icons/icons';
|
||||
import {ListsPage} from 'lists/lists';
|
||||
import {MenusPage} from 'menus/menus';
|
||||
import {ModalsPage} from 'modals/modals';
|
||||
import {NavigationPage} from 'navigation/navigation';
|
||||
import {PopupsPage} from 'popups/popups';
|
||||
import {SlidesPage} from 'slides/slides';
|
||||
import {TabsPage} from 'tabs/tabs';
|
||||
import {CardsPage} from './cards/cards';
|
||||
import {FormsPage} from './forms/forms';
|
||||
import {IconsPage} from './icons/icons';
|
||||
import {ListsPage} from './lists/lists';
|
||||
import {MenusPage} from './menus/menus';
|
||||
import {ModalsPage} from './modals/modals';
|
||||
import {NavigationPage} from './navigation/navigation';
|
||||
import {PopupsPage} from './popups/popups';
|
||||
import {SlidesPage} from './slides/slides';
|
||||
import {TabsPage} from './tabs/tabs';
|
||||
|
||||
|
||||
export function toTitleCase(str) {
|
||||
@ -52,5 +52,3 @@ export function getPageFor(hash) {
|
||||
'tabs': TabsPage
|
||||
}[hash]
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import {App, IonicApp, IonicPlatform, ActionSheet} from 'ionic/ionic';
|
||||
import {Page, IonicConfig, Events} from 'ionic/ionic';
|
||||
import {ActionSheetPage} from 'actionSheet/actionSheet';
|
||||
import * as helpers from 'helpers';
|
||||
import {ActionSheetPage} from './actionSheet/actionSheet';
|
||||
import * as helpers from './helpers';
|
||||
|
||||
|
||||
@App({
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {App, IonicApp, Page, NavController, NavParams} from 'ionic/ionic';
|
||||
import {Page, Events} from 'ionic/ionic';
|
||||
import * as helpers from 'helpers';
|
||||
import * as helpers from './helpers';
|
||||
|
||||
@Page({
|
||||
templateUrl: 'menus/menu-home.html'
|
||||
@ -54,5 +54,3 @@ export class MenusPage {
|
||||
this.nav.setRoot(page.component);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import {App, IonicApp, Animation, Modal, NavController, Page, Events} from 'ionic/ionic';
|
||||
import * as helpers from 'helpers';
|
||||
import * as helpers from './helpers';
|
||||
|
||||
|
||||
@Page({
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {NavController, NavParams} from 'ionic/ionic';
|
||||
import {Page, Events} from 'ionic/ionic';
|
||||
import * as helpers from 'helpers';
|
||||
import * as helpers from './helpers';
|
||||
|
||||
@Page({
|
||||
templateUrl: 'navigation/navigation-details.html'
|
||||
@ -30,7 +30,7 @@ class NavigationDetailsPage {
|
||||
templateUrl: 'navigation/navigation.html',
|
||||
})
|
||||
export class NavigationPage {
|
||||
|
||||
|
||||
constructor(nav: NavController) {
|
||||
this.nav = nav;
|
||||
}
|
||||
@ -39,4 +39,4 @@ export class NavigationPage {
|
||||
this.nav.push(NavigationDetailsPage, { name: item });
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {NavController, NavParams} from 'ionic/ionic';
|
||||
import {Page, ViewController} from 'ionic/ionic';
|
||||
import * as helpers from 'helpers';
|
||||
import * as helpers from './helpers';
|
||||
|
||||
@Page({
|
||||
template: 'Hello 1',
|
||||
@ -19,4 +19,4 @@ export class TabsPage {
|
||||
constructor(nav: NavController, params: NavParams) {
|
||||
this.nav = nav;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user