app.module.ts 3.5 KB

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