app.module.ts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 { AuthProvider } from "../providers/auth/auth";
  11. import { MyApp } from "./app.component";
  12. import { HomePage } from "../pages/home/home";
  13. import { SearchPage } from "../pages/search/search";
  14. import { SettingsPage } from "../pages/settings/settings";
  15. import { LoginPage } from "../pages/login/login";
  16. import { TwitterApiProvider } from "../providers/twitter-api/twitter-api";
  17. import { FeedComponent } from "../components/feed/feed";
  18. import { TweetComponent } from "../components/tweet/tweet";
  19. import { TweetHeaderComponent } from "../components/tweet-header/tweet-header";
  20. import { TweetBodyComponent } from "../components/tweet-body/tweet-body";
  21. import { TweetActionsComponent } from "../components/tweet-actions/tweet-actions";
  22. import { ProfilePage } from "../pages/profile/profile";
  23. import { ProfileHeaderComponent } from "../components/profile-header/profile-header";
  24. import { PipesModule } from "../pipes/pipes.module";
  25. import { WriteTweetPage } from "../pages/write-tweet/write-tweet";
  26. import { QuotedStatusComponent } from "../components/quoted-status/quoted-status";
  27. import { P2pStorageIpfsProvider } from "../providers/p2p-storage-ipfs/p2p-storage-ipfs";
  28. import { P2pDatabaseGunProvider } from "../providers/p2p-database-gun/p2p-database-gun";
  29. import { FeedProvider } from "../providers/feed/feed";
  30. import { MentionComponent } from "../components/mention/mention";
  31. import { HashtagComponent } from "../components/hashtag/hashtag";
  32. import { SearchResultsUsersPage } from "../pages/search-results-users/search-results-users";
  33. import { SearchResultsTweetsPopularPage } from "../pages/search-results-tweets-popular/search-results-tweets-popular";
  34. import { SearchResultsTweetsRecentPage } from "../pages/search-results-tweets-recent/search-results-tweets-recent";
  35. import { SearchResultsTweetsTabsPage } from "../pages/search-results-tweets-tabs/search-results-tweets-tabs";
  36. import { AboutPage } from "../pages/about/about";
  37. import { CryptoProvider } from "../providers/crypto/crypto";
  38. @NgModule({
  39. declarations: [
  40. MyApp,
  41. HomePage,
  42. SearchPage,
  43. SettingsPage,
  44. LoginPage,
  45. ProfilePage,
  46. WriteTweetPage,
  47. SearchResultsTweetsTabsPage,
  48. SearchResultsTweetsRecentPage,
  49. SearchResultsTweetsPopularPage,
  50. SearchResultsUsersPage,
  51. AboutPage,
  52. FeedComponent,
  53. TweetComponent,
  54. TweetHeaderComponent,
  55. TweetBodyComponent,
  56. TweetActionsComponent,
  57. ProfileHeaderComponent,
  58. QuotedStatusComponent,
  59. MentionComponent,
  60. HashtagComponent
  61. ],
  62. imports: [
  63. BrowserModule,
  64. HttpClientModule,
  65. IonicModule.forRoot(MyApp),
  66. IonicStorageModule.forRoot(),
  67. PipesModule
  68. ],
  69. bootstrap: [IonicApp],
  70. entryComponents: [
  71. MyApp,
  72. HomePage,
  73. SearchPage,
  74. SettingsPage,
  75. LoginPage,
  76. ProfilePage,
  77. WriteTweetPage,
  78. SearchResultsTweetsTabsPage,
  79. SearchResultsTweetsRecentPage,
  80. SearchResultsTweetsPopularPage,
  81. SearchResultsUsersPage,
  82. AboutPage
  83. ],
  84. providers: [
  85. StatusBar,
  86. SplashScreen,
  87. HttpClient,
  88. SocialSharing,
  89. PhotoViewer,
  90. { provide: ErrorHandler, useClass: IonicErrorHandler },
  91. AuthProvider,
  92. TwitterApiProvider,
  93. P2pStorageIpfsProvider,
  94. P2pDatabaseGunProvider,
  95. FeedProvider,
  96. CryptoProvider
  97. ]
  98. })
  99. export class AppModule {}