mirror of
https://github.com/benjamin-wilson/public-pool-ui.git
synced 2025-07-22 20:55:12 +02:00
splash init
This commit is contained in:
@@ -1,17 +1,22 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { RouterModule, Routes } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
|
||||||
|
import { DashboardComponent } from './dashboard/dashboard.component';
|
||||||
import { AppLayoutComponent } from './layout/app.layout.component';
|
import { AppLayoutComponent } from './layout/app.layout.component';
|
||||||
import { SplashComponent } from './splash/splash.component';
|
import { SplashComponent } from './splash/splash.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
|
component: SplashComponent
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'app',
|
||||||
component: AppLayoutComponent,
|
component: AppLayoutComponent,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: 'dashboard',
|
||||||
component: SplashComponent
|
component: DashboardComponent
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -1,24 +1,30 @@
|
|||||||
|
import { CommonModule, HashLocationStrategy, LocationStrategy } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
|
||||||
import { PrimeNGModule } from '../prime-ng.module';
|
import { PrimeNGModule } from '../prime-ng.module';
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
import { AppRoutingModule } from './app-routing.module';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
|
import { DashboardComponent } from './dashboard/dashboard.component';
|
||||||
import { AppLayoutModule } from './layout/app.layout.module';
|
import { AppLayoutModule } from './layout/app.layout.module';
|
||||||
import { SplashComponent } from './splash/splash.component';
|
import { SplashComponent } from './splash/splash.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
SplashComponent
|
SplashComponent,
|
||||||
|
DashboardComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
|
CommonModule,
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
AppRoutingModule,
|
AppRoutingModule,
|
||||||
PrimeNGModule,
|
PrimeNGModule,
|
||||||
AppLayoutModule
|
AppLayoutModule
|
||||||
],
|
],
|
||||||
providers: [],
|
providers: [
|
||||||
|
{ provide: LocationStrategy, useClass: HashLocationStrategy },
|
||||||
|
],
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
})
|
})
|
||||||
export class AppModule { }
|
export class AppModule { }
|
||||||
|
1
src/app/dashboard/dashboard.component.html
Normal file
1
src/app/dashboard/dashboard.component.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<p>dashboard works!</p>
|
0
src/app/dashboard/dashboard.component.scss
Normal file
0
src/app/dashboard/dashboard.component.scss
Normal file
23
src/app/dashboard/dashboard.component.spec.ts
Normal file
23
src/app/dashboard/dashboard.component.spec.ts
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { DashboardComponent } from './dashboard.component';
|
||||||
|
|
||||||
|
describe('DashboardComponent', () => {
|
||||||
|
let component: DashboardComponent;
|
||||||
|
let fixture: ComponentFixture<DashboardComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
declarations: [ DashboardComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(DashboardComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
10
src/app/dashboard/dashboard.component.ts
Normal file
10
src/app/dashboard/dashboard.component.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-dashboard',
|
||||||
|
templateUrl: './dashboard.component.html',
|
||||||
|
styleUrls: ['./dashboard.component.scss']
|
||||||
|
})
|
||||||
|
export class DashboardComponent {
|
||||||
|
|
||||||
|
}
|
@@ -1 +1,19 @@
|
|||||||
<p>splash works!</p>
|
<div class="py-4 px-4 lg:px-8 mt-5 mx-0 lg:mx-8">
|
||||||
|
<div class="grid justify-content-center">
|
||||||
|
<div class="col-12 text-center mt-8 mb-4">
|
||||||
|
<h2 class="text-900 font-normal mb-2">Public Pool</h2>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card text-center">
|
||||||
|
<code>stratum+tcp://public-pool-web.airdns.org:40557</code>
|
||||||
|
|
||||||
|
<div class="field mt-8">
|
||||||
|
|
||||||
|
<input placeholder="Address" pInputText id="name1" type="text"
|
||||||
|
class="p-inputtext p-component p-element">
|
||||||
|
<button class="ml-3" pButton label="My Account" [routerLink]="['app','dashboard']"></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
@@ -7,4 +7,5 @@ import { Component } from '@angular/core';
|
|||||||
})
|
})
|
||||||
export class SplashComponent {
|
export class SplashComponent {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
}
|
}
|
||||||
|
BIN
src/assets/layout/images/hero.png
Normal file
BIN
src/assets/layout/images/hero.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 986 KiB |
4
src/environments/environment.prod.ts
Normal file
4
src/environments/environment.prod.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export const environment = {
|
||||||
|
production: true,
|
||||||
|
API_URL: '',
|
||||||
|
};
|
4
src/environments/environment.ts
Normal file
4
src/environments/environment.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export const environment = {
|
||||||
|
production: false,
|
||||||
|
API_URL: ''
|
||||||
|
};
|
@@ -17,14 +17,17 @@ import { InputTextModule } from 'primeng/inputtext';
|
|||||||
import { InputTextareaModule } from 'primeng/inputtextarea';
|
import { InputTextareaModule } from 'primeng/inputtextarea';
|
||||||
import { MenuModule } from 'primeng/menu';
|
import { MenuModule } from 'primeng/menu';
|
||||||
import { OverlayPanelModule } from 'primeng/overlaypanel';
|
import { OverlayPanelModule } from 'primeng/overlaypanel';
|
||||||
|
import { PanelModule } from 'primeng/panel';
|
||||||
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
||||||
import { StepsModule } from 'primeng/steps';
|
import { StepsModule } from 'primeng/steps';
|
||||||
|
import { StyleClassModule } from 'primeng/styleclass';
|
||||||
import { TableModule } from 'primeng/table';
|
import { TableModule } from 'primeng/table';
|
||||||
import { TabViewModule } from 'primeng/tabview';
|
import { TabViewModule } from 'primeng/tabview';
|
||||||
import { TagModule } from 'primeng/tag';
|
import { TagModule } from 'primeng/tag';
|
||||||
import { ToastModule } from 'primeng/toast';
|
import { ToastModule } from 'primeng/toast';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export const primeNgServices = [
|
export const primeNgServices = [
|
||||||
MessageService,
|
MessageService,
|
||||||
ConfirmationService
|
ConfirmationService
|
||||||
@@ -53,7 +56,9 @@ const primeNgModules = [
|
|||||||
OverlayPanelModule,
|
OverlayPanelModule,
|
||||||
DataViewModule,
|
DataViewModule,
|
||||||
ChartModule,
|
ChartModule,
|
||||||
TagModule
|
TagModule,
|
||||||
|
StyleClassModule,
|
||||||
|
PanelModule
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user