app.module.ts 3.8 KB

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