app.module.ts 3.7 KB

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