Heatmap solver is now a worker
- Android app now requests root (purpose still unknown) - Android app starts on boot - Frontend is now a PWA (purpose still unknown)
This commit is contained in:
1
frontend/src/app/admin/admin.component.html
Normal file
1
frontend/src/app/admin/admin.component.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>admin works!</p>
|
||||
0
frontend/src/app/admin/admin.component.scss
Normal file
0
frontend/src/app/admin/admin.component.scss
Normal file
25
frontend/src/app/admin/admin.component.spec.ts
Normal file
25
frontend/src/app/admin/admin.component.spec.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { AdminComponent } from './admin.component';
|
||||
|
||||
describe('AdminComponent', () => {
|
||||
let component: AdminComponent;
|
||||
let fixture: ComponentFixture<AdminComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ AdminComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(AdminComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
22
frontend/src/app/admin/admin.component.ts
Normal file
22
frontend/src/app/admin/admin.component.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { AfterContentInit, Component, OnDestroy, OnInit } from '@angular/core';
|
||||
import { APIService } from '../api.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-admin',
|
||||
templateUrl: './admin.component.html',
|
||||
styleUrls: ['./admin.component.scss']
|
||||
})
|
||||
export class AdminComponent implements AfterContentInit, OnDestroy {
|
||||
|
||||
constructor(public api: APIService) { }
|
||||
|
||||
ngAfterContentInit(): void {
|
||||
this.api.showFilter = false;
|
||||
console.log(this.api.showFilter);
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
this.api.showFilter = true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user