diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 4246a48..a55af5a 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,17 +1,22 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; +import { DashboardComponent } from './dashboard/dashboard.component'; import { AppLayoutComponent } from './layout/app.layout.component'; import { SplashComponent } from './splash/splash.component'; const routes: Routes = [ { path: '', + component: SplashComponent + }, + { + path: 'app', component: AppLayoutComponent, children: [ { - path: '', - component: SplashComponent + path: 'dashboard', + component: DashboardComponent } ] } diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 1e2e639..04e6840 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,24 +1,30 @@ +import { CommonModule, HashLocationStrategy, LocationStrategy } from '@angular/common'; import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { PrimeNGModule } from '../prime-ng.module'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; +import { DashboardComponent } from './dashboard/dashboard.component'; import { AppLayoutModule } from './layout/app.layout.module'; import { SplashComponent } from './splash/splash.component'; @NgModule({ declarations: [ AppComponent, - SplashComponent + SplashComponent, + DashboardComponent ], imports: [ + CommonModule, BrowserModule, AppRoutingModule, PrimeNGModule, AppLayoutModule ], - providers: [], + providers: [ + { provide: LocationStrategy, useClass: HashLocationStrategy }, + ], bootstrap: [AppComponent] }) export class AppModule { } diff --git a/src/app/dashboard/dashboard.component.html b/src/app/dashboard/dashboard.component.html new file mode 100644 index 0000000..9c5fce9 --- /dev/null +++ b/src/app/dashboard/dashboard.component.html @@ -0,0 +1 @@ +

dashboard works!

diff --git a/src/app/dashboard/dashboard.component.scss b/src/app/dashboard/dashboard.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/dashboard/dashboard.component.spec.ts b/src/app/dashboard/dashboard.component.spec.ts new file mode 100644 index 0000000..6e4dcd8 --- /dev/null +++ b/src/app/dashboard/dashboard.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { DashboardComponent } from './dashboard.component'; + +describe('DashboardComponent', () => { + let component: DashboardComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ DashboardComponent ] + }) + .compileComponents(); + + fixture = TestBed.createComponent(DashboardComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts new file mode 100644 index 0000000..69c4b8f --- /dev/null +++ b/src/app/dashboard/dashboard.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-dashboard', + templateUrl: './dashboard.component.html', + styleUrls: ['./dashboard.component.scss'] +}) +export class DashboardComponent { + +} diff --git a/src/app/splash/splash.component.html b/src/app/splash/splash.component.html index a2520ab..f445aac 100644 --- a/src/app/splash/splash.component.html +++ b/src/app/splash/splash.component.html @@ -1 +1,19 @@ -

splash works!

+
+
+
+

Public Pool

+
+
+
+ stratum+tcp://public-pool-web.airdns.org:40557 + +
+ + + +
+
+
+
+
\ No newline at end of file diff --git a/src/app/splash/splash.component.ts b/src/app/splash/splash.component.ts index 87a4cd1..ed61d64 100644 --- a/src/app/splash/splash.component.ts +++ b/src/app/splash/splash.component.ts @@ -7,4 +7,5 @@ import { Component } from '@angular/core'; }) export class SplashComponent { + constructor() { } } diff --git a/src/assets/layout/images/hero.png b/src/assets/layout/images/hero.png new file mode 100644 index 0000000..0a90fcb Binary files /dev/null and b/src/assets/layout/images/hero.png differ diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts new file mode 100644 index 0000000..54e2baa --- /dev/null +++ b/src/environments/environment.prod.ts @@ -0,0 +1,4 @@ +export const environment = { + production: true, + API_URL: '', +}; diff --git a/src/environments/environment.ts b/src/environments/environment.ts new file mode 100644 index 0000000..6f24758 --- /dev/null +++ b/src/environments/environment.ts @@ -0,0 +1,4 @@ +export const environment = { + production: false, + API_URL: '' +}; diff --git a/src/prime-ng.module.ts b/src/prime-ng.module.ts index 4d58cab..de16ee6 100644 --- a/src/prime-ng.module.ts +++ b/src/prime-ng.module.ts @@ -17,14 +17,17 @@ import { InputTextModule } from 'primeng/inputtext'; import { InputTextareaModule } from 'primeng/inputtextarea'; import { MenuModule } from 'primeng/menu'; import { OverlayPanelModule } from 'primeng/overlaypanel'; +import { PanelModule } from 'primeng/panel'; import { ProgressSpinnerModule } from 'primeng/progressspinner'; import { StepsModule } from 'primeng/steps'; +import { StyleClassModule } from 'primeng/styleclass'; import { TableModule } from 'primeng/table'; import { TabViewModule } from 'primeng/tabview'; import { TagModule } from 'primeng/tag'; import { ToastModule } from 'primeng/toast'; + export const primeNgServices = [ MessageService, ConfirmationService @@ -53,7 +56,9 @@ const primeNgModules = [ OverlayPanelModule, DataViewModule, ChartModule, - TagModule + TagModule, + StyleClassModule, + PanelModule ];