Move to pages directory

This commit is contained in:
everoddandeven 2024-09-24 00:46:50 +02:00
parent ef3d5b616e
commit 57a37ff521
56 changed files with 52 additions and 53 deletions

View file

@ -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 = [
{

View file

@ -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
],

View file

@ -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',

View file

@ -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({

View file

@ -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',

View file

@ -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],

View file

@ -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',

View file

@ -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],

View file

@ -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({

View file

@ -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';

View file

@ -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',

View file

@ -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';

View file

@ -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',

View file

@ -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',

View file

@ -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({

View file

@ -1 +1,2 @@
export * from './page-not-found/page-not-found.component';
export * from './sidebar/sidebar.component';

View file

@ -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[];

View file

@ -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 {}