mirror of https://github.com/BTCPrivate/copay.git
Fix ionic build prod
This commit is contained in:
parent
87aaf5e0c4
commit
f11e761301
|
@ -201,13 +201,130 @@ export function createTranslateLoader(http: HttpClient) {
|
|||
return new TranslatePoHttpLoader(http, 'assets/i18n', '.po');
|
||||
}
|
||||
|
||||
let directives: any = [
|
||||
@NgModule({
|
||||
declarations: [
|
||||
/* Pages */
|
||||
ActivityPage,
|
||||
AddPage,
|
||||
AmazonCardDetailsPage,
|
||||
AmazonPage,
|
||||
AmountPage,
|
||||
AddressbookPage,
|
||||
AddressbookAddPage,
|
||||
AddressbookViewPage,
|
||||
AboutPage,
|
||||
AdvancedPage,
|
||||
AllAddressesPage,
|
||||
AltCurrencyPage,
|
||||
BackupRequestPage,
|
||||
BitcoinCashPage,
|
||||
BuyAmazonPage,
|
||||
BuyCoinbasePage,
|
||||
BuyGlideraPage,
|
||||
BuyMercadoLibrePage,
|
||||
ChooseFeeLevelPage,
|
||||
CreateWalletPage,
|
||||
CoinbasePage,
|
||||
CoinbaseTxDetailsPage,
|
||||
CopayersPage,
|
||||
FeedbackCardPage,
|
||||
FeedbackPage,
|
||||
FeedbackCompletePage,
|
||||
IncomingDataMenuPage,
|
||||
ImportWalletPage,
|
||||
JoinWalletPage,
|
||||
BackupWarningPage,
|
||||
BackupGamePage,
|
||||
ConfirmPage,
|
||||
CustomAmountPage,
|
||||
CopayApp,
|
||||
DisclaimerPage,
|
||||
CollectEmailPage,
|
||||
FeeWarningPage,
|
||||
GlideraPage,
|
||||
GravatarPage,
|
||||
FingerprintModalPage,
|
||||
HomePage,
|
||||
LanguagePage,
|
||||
LockPage,
|
||||
MercadoLibrePage,
|
||||
OnboardingPage,
|
||||
PaperWalletPage,
|
||||
PayProPage,
|
||||
GlideraTxDetailsPage,
|
||||
PinModalPage,
|
||||
ProposalsPage,
|
||||
ReceivePage,
|
||||
ScanPage,
|
||||
SendPage,
|
||||
SettingsPage,
|
||||
SellCoinbasePage,
|
||||
SellGlideraPage,
|
||||
GlideraSettingsPage,
|
||||
CoinbaseSettingsPage,
|
||||
ShapeshiftConfirmPage,
|
||||
ShapeshiftDetailsPage,
|
||||
ShapeshiftPage,
|
||||
ShapeshiftShiftPage,
|
||||
TermsOfUsePage,
|
||||
MercadoLibreCardDetailsPage,
|
||||
NotificationsPage,
|
||||
FeePolicyPage,
|
||||
SessionLogPage,
|
||||
SendFeedbackPage,
|
||||
SuccessModalPage,
|
||||
TourPage,
|
||||
TabsPage,
|
||||
TxpDetailsPage,
|
||||
TxDetailsPage,
|
||||
TxpPage,
|
||||
WalletSettingsPage,
|
||||
WalletSettingsAdvancedPage,
|
||||
WalletNamePage,
|
||||
WalletColorPage,
|
||||
WalletInformationPage,
|
||||
WalletAddressesPage,
|
||||
WalletExportPage,
|
||||
WalletServiceUrlPage,
|
||||
WalletTransactionHistoryPage,
|
||||
WalletDeletePage,
|
||||
WalletExtendedPrivateKeyPage,
|
||||
WalletDetailsPage,
|
||||
WalletItemPage,
|
||||
WalletActivityPage,
|
||||
WalletSelectorPage,
|
||||
/* Directives */
|
||||
CopyToClipboard,
|
||||
LongPress,
|
||||
NoLowFee
|
||||
];
|
||||
|
||||
let pages: any = [
|
||||
NoLowFee,
|
||||
/* Pipes */
|
||||
SatToUnitPipe,
|
||||
SatToFiatPipe,
|
||||
FiatToUnitPipe,
|
||||
KeysPipe,
|
||||
OrderByPipe
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forRoot(CopayApp, {
|
||||
tabsHideOnSubPages: true,
|
||||
tabsPlacement: 'bottom'
|
||||
}),
|
||||
BrowserModule,
|
||||
HttpClientModule,
|
||||
NgLoggerModule.forRoot(Level.LOG),
|
||||
MomentModule,
|
||||
NgxQRCodeModule,
|
||||
TranslateModule.forRoot({
|
||||
loader: {
|
||||
provide: TranslateLoader,
|
||||
useFactory: createTranslateLoader,
|
||||
deps: [HttpClient]
|
||||
}
|
||||
}),
|
||||
],
|
||||
bootstrap: [IonicApp],
|
||||
entryComponents: [
|
||||
/* Pages */
|
||||
ActivityPage,
|
||||
AddPage,
|
||||
AmazonCardDetailsPage,
|
||||
|
@ -297,9 +414,8 @@ let pages: any = [
|
|||
WalletItemPage,
|
||||
WalletActivityPage,
|
||||
WalletSelectorPage
|
||||
];
|
||||
|
||||
let providers: any = [
|
||||
],
|
||||
providers: [
|
||||
AddressProvider,
|
||||
AddressBookProvider,
|
||||
AndroidFingerprintAuth,
|
||||
|
@ -356,56 +472,6 @@ let providers: any = [
|
|||
provide: ErrorHandler,
|
||||
useClass: IonicErrorHandler
|
||||
}
|
||||
];
|
||||
|
||||
let pipes = [
|
||||
SatToUnitPipe,
|
||||
SatToFiatPipe,
|
||||
FiatToUnitPipe,
|
||||
KeysPipe,
|
||||
OrderByPipe
|
||||
];
|
||||
|
||||
export function declarationsComponents() {
|
||||
let declarations = [];
|
||||
|
||||
declarations = declarations.concat(pages);
|
||||
declarations = declarations.concat(directives);
|
||||
declarations = declarations.concat(pipes);
|
||||
|
||||
return declarations;
|
||||
}
|
||||
|
||||
export function entryComponents() {
|
||||
return pages;
|
||||
}
|
||||
|
||||
export function providersComponents() {
|
||||
return providers;
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
declarations: declarationsComponents(),
|
||||
imports: [
|
||||
IonicModule.forRoot(CopayApp, {
|
||||
tabsHideOnSubPages: true,
|
||||
tabsPlacement: 'bottom'
|
||||
}),
|
||||
BrowserModule,
|
||||
HttpClientModule,
|
||||
NgLoggerModule.forRoot(Level.LOG),
|
||||
MomentModule,
|
||||
NgxQRCodeModule,
|
||||
TranslateModule.forRoot({
|
||||
loader: {
|
||||
provide: TranslateLoader,
|
||||
useFactory: createTranslateLoader,
|
||||
deps: [HttpClient]
|
||||
}
|
||||
}),
|
||||
],
|
||||
bootstrap: [IonicApp],
|
||||
entryComponents: entryComponents(),
|
||||
providers: providersComponents()
|
||||
]
|
||||
})
|
||||
export class AppModule { }
|
||||
|
|
Loading…
Reference in New Issue