app.module.ts 4.0 KB

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