2018-03-17 04:52:10 +01:00
|
|
|
import { BrowserModule } from "@angular/platform-browser";
|
|
|
|
import { FormsModule } from "@angular/forms";
|
|
|
|
import { HttpModule } from "@angular/http";
|
2018-09-08 05:17:19 +02:00
|
|
|
import { HttpClientModule } from '@angular/common/http';
|
2018-09-23 19:40:29 +02:00
|
|
|
import { NgModule, APP_INITIALIZER, CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";
|
2018-03-17 02:42:10 +01:00
|
|
|
import { RouterModule, Routes } from "@angular/router";
|
2018-03-15 01:48:52 +01:00
|
|
|
|
2018-03-17 04:52:10 +01:00
|
|
|
import { NgxElectronModule } from "ngx-electron";
|
2018-03-15 01:48:52 +01:00
|
|
|
|
2018-08-07 03:07:28 +02:00
|
|
|
import { NgxsModule } from '@ngxs/store';
|
|
|
|
import { NgxsStoragePluginModule } from '@ngxs/storage-plugin';
|
|
|
|
|
2018-03-17 04:52:10 +01:00
|
|
|
import { AppComponent } from "./app.component";
|
|
|
|
import { LeftSideBarComponent } from "./components/left-side-bar/left-side-bar.component";
|
|
|
|
import { StreamsMainDisplayComponent } from "./pages/streams-main-display/streams-main-display.component";
|
|
|
|
import { StreamComponent } from "./components/stream/stream.component";
|
|
|
|
import { StreamsSelectionFooterComponent } from "./components/streams-selection-footer/streams-selection-footer.component";
|
|
|
|
import { RegisterNewAccountComponent } from "./pages/register-new-account/register-new-account.component";
|
|
|
|
import { AuthService } from "./services/auth.service";
|
2018-03-22 05:31:34 +01:00
|
|
|
import { StreamingService } from "./services/streaming.service";
|
2018-08-15 03:32:13 +02:00
|
|
|
import { RegisteredAppsState } from "./states/registered-apps.state";
|
2018-09-09 07:29:23 +02:00
|
|
|
import { AccountsState } from "./states/accounts.state";
|
2018-09-22 05:15:02 +02:00
|
|
|
import { AccountIconComponent } from './components/left-side-bar/account-icon/account-icon.component';
|
2018-09-10 03:55:16 +02:00
|
|
|
import { NavigationService } from "./services/navigation.service";
|
|
|
|
import { FloatingColumnComponent } from './components/floating-column/floating-column.component';
|
2018-09-11 06:35:19 +02:00
|
|
|
import { StreamsState } from "./states/streams.state";
|
2018-09-16 04:08:59 +02:00
|
|
|
import { StatusComponent } from "./components/stream/status/status.component";
|
2018-09-16 04:25:20 +02:00
|
|
|
import { MastodonService } from "./services/mastodon.service";
|
2018-09-21 05:27:04 +02:00
|
|
|
import { AttachementsComponent } from './components/stream/status/attachements/attachements.component';
|
2018-09-22 06:22:51 +02:00
|
|
|
import { SettingsComponent } from './components/floating-column/settings/settings.component';
|
|
|
|
import { AddNewAccountComponent } from './components/floating-column/add-new-account/add-new-account.component';
|
|
|
|
import { SearchComponent } from './components/floating-column/search/search.component';
|
|
|
|
import { AddNewStatusComponent } from "./components/floating-column/add-new-status/add-new-status.component";
|
|
|
|
import { ManageAccountComponent } from "./components/floating-column/manage-account/manage-account.component";
|
2018-10-02 05:46:12 +02:00
|
|
|
import { ActionBarComponent } from './components/stream/status/action-bar/action-bar.component';
|
2018-10-02 03:44:59 +02:00
|
|
|
import { WaitingAnimationComponent } from './components/waiting-animation/waiting-animation.component';
|
2018-10-13 07:10:43 +02:00
|
|
|
import { ReplyToStatusComponent } from './components/stream/status/reply-to-status/reply-to-status.component';
|
2018-10-22 06:25:36 +02:00
|
|
|
import { UserProfileComponent } from './components/stream/user-profile/user-profile.component';
|
|
|
|
import { ThreadComponent } from './components/stream/thread/thread.component';
|
|
|
|
import { HashtagComponent } from './components/stream/hashtag/hashtag.component';
|
2018-10-22 07:25:40 +02:00
|
|
|
import { StreamOverlayComponent } from './components/stream/stream-overlay/stream-overlay.component';
|
2018-03-15 01:48:52 +01:00
|
|
|
|
2018-03-17 02:42:10 +01:00
|
|
|
const routes: Routes = [
|
|
|
|
{ path: "", redirectTo: "home", pathMatch: "full" },
|
|
|
|
{ path: "home", component: StreamsMainDisplayComponent },
|
|
|
|
{ path: "register", component: RegisterNewAccountComponent},
|
|
|
|
{ path: "**", redirectTo: "home" }
|
|
|
|
];
|
2018-03-15 01:48:52 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
2018-03-16 01:43:53 +01:00
|
|
|
AppComponent,
|
|
|
|
LeftSideBarComponent,
|
2018-03-16 02:03:23 +01:00
|
|
|
StreamsMainDisplayComponent,
|
2018-03-16 02:41:25 +01:00
|
|
|
StreamComponent,
|
2018-03-16 04:48:30 +01:00
|
|
|
StreamsSelectionFooterComponent,
|
2018-09-16 04:08:59 +02:00
|
|
|
StatusComponent,
|
2018-09-09 08:38:59 +02:00
|
|
|
RegisterNewAccountComponent,
|
2018-09-10 03:55:16 +02:00
|
|
|
AccountIconComponent,
|
|
|
|
FloatingColumnComponent,
|
2018-09-22 06:22:51 +02:00
|
|
|
ManageAccountComponent,
|
|
|
|
AddNewStatusComponent,
|
|
|
|
AttachementsComponent,
|
|
|
|
SettingsComponent,
|
|
|
|
AddNewAccountComponent,
|
2018-10-02 05:46:12 +02:00
|
|
|
SearchComponent,
|
2018-10-13 02:48:11 +02:00
|
|
|
ActionBarComponent,
|
2018-10-13 07:10:43 +02:00
|
|
|
WaitingAnimationComponent,
|
2018-10-22 06:25:36 +02:00
|
|
|
ReplyToStatusComponent,
|
|
|
|
UserProfileComponent,
|
|
|
|
ThreadComponent,
|
2018-10-22 07:25:40 +02:00
|
|
|
HashtagComponent,
|
|
|
|
StreamOverlayComponent
|
2018-03-15 01:48:52 +01:00
|
|
|
],
|
|
|
|
imports: [
|
2018-03-17 04:52:10 +01:00
|
|
|
BrowserModule,
|
|
|
|
HttpModule,
|
2018-09-08 05:17:19 +02:00
|
|
|
HttpClientModule,
|
2018-03-17 04:52:10 +01:00
|
|
|
FormsModule,
|
2018-03-17 02:42:10 +01:00
|
|
|
NgxElectronModule,
|
2018-08-07 03:07:28 +02:00
|
|
|
RouterModule.forRoot(routes),
|
|
|
|
|
|
|
|
NgxsModule.forRoot([
|
2018-09-09 07:29:23 +02:00
|
|
|
RegisteredAppsState,
|
2018-09-10 04:33:41 +02:00
|
|
|
AccountsState,
|
2018-09-11 06:35:19 +02:00
|
|
|
StreamsState
|
2018-08-07 03:07:28 +02:00
|
|
|
]),
|
|
|
|
NgxsStoragePluginModule.forRoot()
|
2018-03-15 01:48:52 +01:00
|
|
|
],
|
2018-09-16 04:25:20 +02:00
|
|
|
providers: [AuthService, NavigationService, MastodonService, StreamingService],
|
2018-09-23 19:40:29 +02:00
|
|
|
bootstrap: [AppComponent],
|
|
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
2018-03-15 01:48:52 +01:00
|
|
|
})
|
|
|
|
export class AppModule { }
|