app.module.ts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 { PgpKeyServerProvider } from "../providers/pgp-key-server/pgp-key-server";
  31. import { FeedProvider } from "../providers/feed/feed";
  32. import { MentionComponent } from "../components/mention/mention";
  33. import { HashtagComponent } from "../components/hashtag/hashtag";
  34. import { SearchResultsUsersPage } from "../pages/search-results-users/search-results-users";
  35. import { SearchResultsTweetsPopularPage } from "../pages/search-results-tweets-popular/search-results-tweets-popular";
  36. import { SearchResultsTweetsRecentPage } from "../pages/search-results-tweets-recent/search-results-tweets-recent";
  37. import { SearchResultsTweetsTabsPage } from "../pages/search-results-tweets-tabs/search-results-tweets-tabs";
  38. import { AboutPage } from "../pages/about/about";
  39. import { CryptoProvider } from "../providers/crypto/crypto";
  40. @NgModule({
  41. declarations: [
  42. MyApp,
  43. HomePage,
  44. SearchPage,
  45. SettingsPage,
  46. LoginPage,
  47. ProfilePage,
  48. WriteTweetPage,
  49. SearchResultsTweetsTabsPage,
  50. SearchResultsTweetsRecentPage,
  51. SearchResultsTweetsPopularPage,
  52. SearchResultsUsersPage,
  53. AboutPage,
  54. FeedComponent,
  55. TweetComponent,
  56. TweetHeaderComponent,
  57. TweetBodyComponent,
  58. TweetActionsComponent,
  59. ProfileHeaderComponent,
  60. QuotedStatusComponent,
  61. MentionComponent,
  62. HashtagComponent
  63. ],
  64. imports: [
  65. BrowserModule,
  66. HttpClientModule,
  67. IonicModule.forRoot(MyApp),
  68. IonicStorageModule.forRoot(),
  69. PipesModule
  70. ],
  71. bootstrap: [IonicApp],
  72. entryComponents: [
  73. MyApp,
  74. HomePage,
  75. SearchPage,
  76. SettingsPage,
  77. LoginPage,
  78. ProfilePage,
  79. WriteTweetPage,
  80. SearchResultsTweetsTabsPage,
  81. SearchResultsTweetsRecentPage,
  82. SearchResultsTweetsPopularPage,
  83. SearchResultsUsersPage,
  84. AboutPage
  85. ],
  86. providers: [
  87. StatusBar,
  88. SplashScreen,
  89. HttpClient,
  90. SocialSharing,
  91. PhotoViewer,
  92. { provide: ErrorHandler, useClass: IonicErrorHandler },
  93. AuthProvider,
  94. TwitterApiProvider,
  95. P2pStorageIpfsProvider,
  96. P2pDatabaseGunProvider,
  97. PgpKeyServerProvider,
  98. FeedProvider,
  99. CryptoProvider,
  100. Vibration
  101. ]
  102. })
  103. export class AppModule {}