Rebase to master when repo went private

This commit is contained in:
Your Name
2020-08-17 13:31:05 +01:00
commit fe20b27432
345 changed files with 28876 additions and 0 deletions
@@ -0,0 +1,15 @@
.status-bar {
background-color: #4caf50;
position: fixed;
z-index: 9999;
bottom: 0;
left: 0;
color: white;
width: 100%;
padding: 5px;
padding-left: 10px;
}
.status-bar-warning {
background-color: #ff9800;
}
@@ -0,0 +1,8 @@
<div class="status-bar" [ngClass]="{'status-bar-warning':isWarning}" *ngIf="isActive">
<i class="material-icons right white-text cursor" (click)="statusService.hideStatus()" mz-tooltip position="top"
tooltip="Close this status.">close</i>
<div *ngIf="isWarning" class="right btn small-button green" (click)="getHelp.emit(statusMessage)">Get Help</div>
<span class="status-message truncate" [innerHTML]="statusMessage | sanitizeHtml">
</span>
</div>
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { StatusBarComponent } from './status-bar.component';
describe('StatusBarComponent', () => {
let component: StatusBarComponent;
let fixture: ComponentFixture<StatusBarComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ StatusBarComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(StatusBarComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,18 @@
import { Component, EventEmitter, OnInit, Output } from '@angular/core';
import { StatusBarService } from '../status-bar.service';
@Component({
selector: 'app-status-bar',
templateUrl: './status-bar.component.html',
styleUrls: ['./status-bar.component.css'],
})
export class StatusBarComponent implements OnInit {
isWarning: boolean;
isActive: boolean;
showDiscord: boolean;
statusMessage: string;
@Output() getHelp = new EventEmitter();
constructor(public statusService: StatusBarService) {}
ngOnInit() {}
}