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 @@
<span class="link" [ngClass]="{'link-white':appService.currentTheme === 'dark' && !isDark}" (click)="open()">{{text}}</span>
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { LinkComponent } from './link.component';
describe('LinkComponent', () => {
let component: LinkComponent;
let fixture: ComponentFixture<LinkComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ LinkComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(LinkComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,24 @@
import { Component, Input, OnInit } from '@angular/core';
import { AppService } from '../app.service';
@Component({
selector: 'app-link',
templateUrl: './link.component.html',
styleUrls: ['./link.component.css']
})
export class LinkComponent implements OnInit {
@Input('url') url:string;
@Input('text') text:string;
@Input('isDark') isDark:boolean;
constructor(public appService:AppService) {
}
ngOnInit() {
}
open(){
console.log(this.url);
this.appService.opn(this.url);
}
}