app.module.ts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. import { BrowserModule } from "@angular/platform-browser";
  2. import { ErrorHandler, NgModule } from "@angular/core";
  3. import { IonicApp, IonicErrorHandler, IonicModule } from "ionic-angular";
  4. import { SplashScreen } from "@ionic-native/splash-screen";
  5. import { StatusBar } from "@ionic-native/status-bar";
  6. import { HttpClient, HttpClientModule } from "@angular/common/http";
  7. import { IonicStorageModule } from "@ionic/storage";
  8. import { SocialSharing } from "@ionic-native/social-sharing";
  9. import { PhotoViewer } from "@ionic-native/photo-viewer";
  10. import { Vibration } from "@ionic-native/vibration";
  11. import { File } from "@ionic-native/file";
  12. import { AuthProvider } from "../providers/auth/auth";
  13. import { LoginPage } from "../pages/login/login";
  14. import { MyApp } from "./app.component";
  15. import { HomePage } from "../pages/home/home";
  16. import { SearchPage } from "../pages/search/search";
  17. import { SettingsPage } from "../pages/settings/settings";
  18. import { MockLoginPage } from "../pages/mock-login/mock-login";
  19. import { FeedComponent } from "../components/feed/feed";
  20. import { TweetComponent } from "../components/tweet/tweet";
  21. import { TweetHeaderComponent } from "../components/tweet-header/tweet-header";
  22. import { TweetBodyComponent } from "../components/tweet-body/tweet-body";
  23. import { TweetActionsComponent } from "../components/tweet-actions/tweet-actions";
  24. import { ProfilePage } from "../pages/profile/profile";
  25. import { P2pStorageIpfsProvider } from "../providers/p2p-storage-ipfs/p2p-storage-ipfs";
  26. import { ProfileHeaderComponent } from "../components/profile-header/profile-header";
  27. import { PipesModule } from "../pipes/pipes.module";
  28. import { WriteTweetPage } from "../pages/write-tweet/write-tweet";
  29. import { QuotedStatusComponent } from "../components/quoted-status/quoted-status";
  30. import { MockProvider } from "../providers/mock-provider/mock-provider";
  31. import { P2pDatabaseGunProvider } from "../providers/p2p-database-gun/p2p-database-gun";
  32. import { MentionComponent } from "../components/mention/mention";
  33. import { HashtagComponent } from "../components/hashtag/hashtag";
  34. import { SearchResultsUsersPage } from "../pages/search-results-users/search-results-users";
  35. import { SearchResultsTweetsPopularPage } from "../pages/search-results-tweets-popular/search-results-tweets-popular";
  36. import { SearchResultsTweetsRecentPage } from "../pages/search-results-tweets-recent/search-results-tweets-recent";
  37. import { SearchResultsTweetsTabsPage } from "../pages/search-results-tweets-tabs/search-results-tweets-tabs";
  38. import { AboutPage } from "../pages/about/about";
  39. import { CryptoProvider } from "../providers/crypto/crypto";
  40. @NgModule({
  41. declarations: [
  42. MyApp,
  43. HomePage,
  44. SearchPage,
  45. LoginPage,
  46. SettingsPage,
  47. MockLoginPage,
  48. ProfilePage,
  49. WriteTweetPage,
  50. SearchResultsTweetsTabsPage,
  51. SearchResultsTweetsRecentPage,
  52. SearchResultsTweetsPopularPage,
  53. SearchResultsUsersPage,
  54. AboutPage,
  55. FeedComponent,
  56. TweetComponent,
  57. TweetHeaderComponent,
  58. TweetBodyComponent,
  59. TweetActionsComponent,
  60. ProfileHeaderComponent,
  61. QuotedStatusComponent,
  62. MentionComponent,
  63. HashtagComponent
  64. ],
  65. imports: [
  66. BrowserModule,
  67. HttpClientModule,
  68. IonicModule.forRoot(MyApp),
  69. IonicStorageModule.forRoot(),
  70. PipesModule
  71. ],
  72. bootstrap: [IonicApp],
  73. entryComponents: [
  74. MyApp,
  75. HomePage,
  76. SearchPage,
  77. SettingsPage,
  78. LoginPage,
  79. MockLoginPage,
  80. ProfilePage,
  81. WriteTweetPage,
  82. SearchResultsTweetsTabsPage,
  83. SearchResultsTweetsRecentPage,
  84. SearchResultsTweetsPopularPage,
  85. SearchResultsUsersPage,
  86. AboutPage
  87. ],
  88. providers: [
  89. StatusBar,
  90. SplashScreen,
  91. HttpClient,
  92. SocialSharing,
  93. PhotoViewer,
  94. { provide: ErrorHandler, useClass: IonicErrorHandler },
  95. AuthProvider,
  96. P2pDatabaseGunProvider,
  97. P2pStorageIpfsProvider,
  98. MockProvider,
  99. CryptoProvider,
  100. Vibration,
  101. File
  102. ]
  103. })
  104. export class AppModule {}