mirror of
https://github.com/everoddandeven/monerod-gui.git
synced 2024-12-22 19:49:27 +00:00
Move to pages directory
This commit is contained in:
parent
ef3d5b616e
commit
57a37ff521
56 changed files with 52 additions and 53 deletions
|
@ -2,11 +2,11 @@ import { NgModule } from '@angular/core';
|
|||
import { Routes, RouterModule } from '@angular/router';
|
||||
import { PageNotFoundComponent } from './shared/components';
|
||||
|
||||
import { HomeRoutingModule } from './home/home-routing.module';
|
||||
import { DetailRoutingModule } from './detail/detail-routing.module';
|
||||
import { HardForkInfoRoutingModule } from './hard-fork-info/hard-fork-info-routing.module';
|
||||
import { SettingsModule } from './settings/settings.module';
|
||||
import { TransactionsModule } from './transactions/transactions.module';
|
||||
import { HomeRoutingModule } from './pages/home/home-routing.module';
|
||||
import { DetailRoutingModule } from './pages/detail/detail-routing.module';
|
||||
import { HardForkInfoRoutingModule } from './pages/hard-fork-info/hard-fork-info-routing.module';
|
||||
import { SettingsModule } from './pages/settings/settings.module';
|
||||
import { TransactionsModule } from './pages/transactions/transactions.module';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
|
|
|
@ -11,17 +11,17 @@ import { AppRoutingModule } from './app-routing.module';
|
|||
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
||||
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
||||
|
||||
import { HomeModule } from './home/home.module';
|
||||
import { DetailModule } from './detail/detail.module';
|
||||
import { HomeModule } from './pages/home/home.module';
|
||||
import { DetailModule } from './pages/detail/detail.module';
|
||||
|
||||
import { AppComponent } from './app.component';
|
||||
import { SidebarComponent } from "./sidebar/sidebar.component";
|
||||
import { LoadComponent } from "./load/load.component";
|
||||
import { BansModule } from './bans/bans.module';
|
||||
import { BansModule } from './pages/bans/bans.module';
|
||||
import { NavbarComponent } from "./navbar/navbar.component";
|
||||
import { MiningModule } from './mining/mining.module';
|
||||
import { TransactionsModule } from './transactions/transactions.module';
|
||||
import { OutputsModule } from './outputs/outputs.module';
|
||||
import { MiningModule } from './pages/mining/mining.module';
|
||||
import { TransactionsModule } from './pages/transactions/transactions.module';
|
||||
import { OutputsModule } from './pages/outputs/outputs.module';
|
||||
import { SidebarComponent } from './shared/components';
|
||||
|
||||
// AoT requires an exported function for factories
|
||||
const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
||||
|
@ -49,7 +49,6 @@ const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new Transl
|
|||
deps: [HttpClient]
|
||||
}
|
||||
}),
|
||||
SidebarComponent,
|
||||
NavbarComponent,
|
||||
LoadComponent
|
||||
],
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { AfterViewInit, Component } from '@angular/core';
|
||||
import { NavigationEnd, Router } from '@angular/router';
|
||||
import { NavbarService } from '../navbar/navbar.service';
|
||||
import { DaemonService } from '../core/services/daemon/daemon.service';
|
||||
import { NavbarService } from '../../navbar/navbar.service';
|
||||
import { DaemonService } from '../../core/services/daemon/daemon.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-bans',
|
|
@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common';
|
|||
|
||||
import { BansRoutingModule } from './bans-routing.module';
|
||||
import { BansComponent } from './bans.component';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
import { SharedModule } from '../../shared/shared.module';
|
||||
|
||||
|
||||
@NgModule({
|
|
@ -1,11 +1,11 @@
|
|||
import { Component, OnInit, AfterViewInit, NgZone, OnDestroy } from '@angular/core';
|
||||
import { DaemonService } from '../core/services/daemon/daemon.service';
|
||||
import { SyncInfo } from '../../common/SyncInfo';
|
||||
import { Peer } from '../../common/Peer';
|
||||
import { NavbarLink } from '../navbar/navbar.model';
|
||||
import { NavbarService } from '../navbar/navbar.service';
|
||||
import { DaemonService } from '../../core/services/daemon/daemon.service';
|
||||
import { SyncInfo } from '../../../common/SyncInfo';
|
||||
import { Peer } from '../../../common/Peer';
|
||||
import { NavbarLink } from '../../navbar/navbar.model';
|
||||
import { NavbarService } from '../../navbar/navbar.service';
|
||||
import { NavigationEnd, Router } from '@angular/router';
|
||||
import { DaemonInfo } from '../../common/DaemonInfo';
|
||||
import { DaemonInfo } from '../../../common/DaemonInfo';
|
||||
|
||||
@Component({
|
||||
selector: 'app-detail',
|
|
@ -4,8 +4,8 @@ import { CommonModule } from '@angular/common';
|
|||
import { DetailRoutingModule } from './detail-routing.module';
|
||||
|
||||
import { DetailComponent } from './detail.component';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
import { LoadComponent } from "../load/load.component";
|
||||
import { SharedModule } from '../../shared/shared.module';
|
||||
import { LoadComponent } from "../../load/load.component";
|
||||
|
||||
@NgModule({
|
||||
declarations: [DetailComponent],
|
|
@ -1,7 +1,7 @@
|
|||
import { AfterViewInit, Component } from '@angular/core';
|
||||
import { DaemonService } from '../core/services/daemon/daemon.service';
|
||||
import { DaemonService } from '../../core/services/daemon/daemon.service';
|
||||
import { NavigationEnd, Router } from '@angular/router';
|
||||
import { NavbarService } from '../navbar/navbar.service';
|
||||
import { NavbarService } from '../../navbar/navbar.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-hard-fork-info',
|
|
@ -4,7 +4,7 @@ import { CommonModule } from '@angular/common';
|
|||
import { HomeRoutingModule } from './home-routing.module';
|
||||
|
||||
import { HomeComponent } from './home.component';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
import { SharedModule } from '../../shared/shared.module';
|
||||
|
||||
@NgModule({
|
||||
declarations: [HomeComponent],
|
|
@ -1,12 +1,12 @@
|
|||
import { AfterViewInit, Component } from '@angular/core';
|
||||
import { DaemonService } from '../core/services/daemon/daemon.service';
|
||||
import { NavbarService } from '../navbar/navbar.service';
|
||||
import { MinerData } from '../../common/MinerData';
|
||||
import { DaemonService } from '../../core/services/daemon/daemon.service';
|
||||
import { NavbarService } from '../../navbar/navbar.service';
|
||||
import { MinerData } from '../../../common/MinerData';
|
||||
import { NavigationEnd, Router } from '@angular/router';
|
||||
import { NavbarLink } from '../navbar/navbar.model';
|
||||
import { MineableTxBacklog } from '../../common/MineableTxBacklog';
|
||||
import { Chain } from '../../common/Chain';
|
||||
import { CoreIsBusyError } from '../../common/error';
|
||||
import { NavbarLink } from '../../navbar/navbar.model';
|
||||
import { MineableTxBacklog } from '../../../common/MineableTxBacklog';
|
||||
import { Chain } from '../../../common/Chain';
|
||||
import { CoreIsBusyError } from '../../../common/error';
|
||||
import { CommonModule, NgIf } from '@angular/common';
|
||||
|
||||
@Component({
|
|
@ -2,8 +2,8 @@ import { NgModule } from '@angular/core';
|
|||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { MiningRoutingModule } from './mining-routing.module';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
import { LoadComponent } from '../load/load.component';
|
||||
import { SharedModule } from '../../shared/shared.module';
|
||||
import { LoadComponent } from '../../load/load.component';
|
||||
import { MiningComponent } from './mining.component';
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { AfterViewInit, Component } from '@angular/core';
|
||||
import { NavbarLink } from '../navbar/navbar.model';
|
||||
import { DaemonService } from '../core/services/daemon/daemon.service';
|
||||
import { NavbarService } from '../navbar/navbar.service';
|
||||
import { NavbarLink } from '../../navbar/navbar.model';
|
||||
import { DaemonService } from '../../core/services/daemon/daemon.service';
|
||||
import { NavbarService } from '../../navbar/navbar.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-outputs',
|
|
@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';
|
|||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { OutputsRoutingModule } from './outputs-routing.module';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
import { SharedModule } from '../../shared/shared.module';
|
||||
import { OutputsComponent } from './outputs.component';
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { AfterViewInit, Component } from '@angular/core';
|
||||
import { NavbarService } from '../navbar/navbar.service';
|
||||
import { NavbarService } from '../../navbar/navbar.service';
|
||||
import { NavigationEnd, NavigationStart, Router } from '@angular/router';
|
||||
import { NavbarLink } from '../navbar/navbar.model';
|
||||
import { NavbarLink } from '../../navbar/navbar.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-settings',
|
|
@ -1,7 +1,7 @@
|
|||
import { AfterViewInit, Component } from '@angular/core';
|
||||
import { DaemonService } from '../core/services/daemon/daemon.service';
|
||||
import { NavbarService } from '../navbar/navbar.service';
|
||||
import { NavbarLink } from '../navbar/navbar.model';
|
||||
import { DaemonService } from '../../core/services/daemon/daemon.service';
|
||||
import { NavbarService } from '../../navbar/navbar.service';
|
||||
import { NavbarLink } from '../../navbar/navbar.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-transactions',
|
|
@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common';
|
|||
|
||||
import { TransactionsRoutingModule } from './transactions-routing.module';
|
||||
import { TransactionsComponent } from './transactions.component';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
import { SharedModule } from '../../shared/shared.module';
|
||||
|
||||
|
||||
@NgModule({
|
|
@ -1 +1,2 @@
|
|||
export * from './page-not-found/page-not-found.component';
|
||||
export * from './sidebar/sidebar.component';
|
||||
|
|
|
@ -4,10 +4,8 @@ import { ChildActivationEnd, ChildActivationStart, NavigationCancel, NavigationE
|
|||
|
||||
@Component({
|
||||
selector: 'app-sidebar',
|
||||
standalone: true,
|
||||
templateUrl: './sidebar.component.html',
|
||||
styleUrl: './sidebar.component.scss',
|
||||
imports: [RouterModule, NgClass]
|
||||
styleUrl: './sidebar.component.scss'
|
||||
})
|
||||
export class SidebarComponent {
|
||||
public readonly navLinks: NavLink[];
|
|
@ -3,13 +3,14 @@ import { CommonModule } from '@angular/common';
|
|||
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { PageNotFoundComponent } from './components/';
|
||||
import { PageNotFoundComponent, SidebarComponent } from './components/';
|
||||
import { WebviewDirective } from './directives/';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
@NgModule({
|
||||
declarations: [PageNotFoundComponent, WebviewDirective],
|
||||
imports: [CommonModule, TranslateModule, FormsModule],
|
||||
exports: [TranslateModule, WebviewDirective, FormsModule]
|
||||
declarations: [PageNotFoundComponent, SidebarComponent, WebviewDirective],
|
||||
imports: [CommonModule, TranslateModule, FormsModule, RouterModule],
|
||||
exports: [TranslateModule, WebviewDirective, FormsModule, SidebarComponent]
|
||||
})
|
||||
export class SharedModule {}
|
||||
|
|
Loading…
Reference in a new issue