initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<div class="container">
|
||||
<h1>Viewing Stats: </h1>
|
||||
<div class="row">
|
||||
<div class="col-md-6" style="padding: 0 2% 0;"> </div>
|
||||
<div class="col-md-6" style="padding: 0 2% 0;"> </div>
|
||||
<div class="col-md-6" style="padding: 0 2% 0;">
|
||||
<br>
|
||||
<app-history></app-history>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<br>
|
||||
<app-comments></app-comments>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { StatsComponent } from './stats.component';
|
||||
|
||||
describe('StatsComponent', () => {
|
||||
let component: StatsComponent;
|
||||
let fixture: ComponentFixture<StatsComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ StatsComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(StatsComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { CookiesService } from '../cookies.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-stats',
|
||||
templateUrl: './stats.component.html',
|
||||
styleUrls: ['./stats.component.css']
|
||||
})
|
||||
export class StatsComponent implements OnInit {
|
||||
CookieService: any;
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
let reload = this.CookieService.get("proxima-login-reload");
|
||||
if(reload != null) {
|
||||
this.CookieService.deleteCookie("proxima-login-reload");
|
||||
document.location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user