Rework folder structure in frontend
Pages are now grouped per group they appear in on in the header (where possible) Utilities used by multiple pages in the project are grouped in folders such as services/pipes/etc
This commit is contained in:
1 parent
c42fc38b2c
commit
ebe66c87c0
169 files changed
+123
-113
No files matched your search
@@ -0,0 +1,3 @@
|
||||
<button type="button" class="button-outer" (click)="copyIpToClipboard()">
|
||||
<span class="button-inner">{{ displayText }}</span>
|
||||
</button>
|
||||
Whitespace-only changes.
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CopyIpComponent } from './copy-ip.component';
|
||||
|
||||
describe('CopyIpComponent', () => {
|
||||
let component: CopyIpComponent;
|
||||
let fixture: ComponentFixture<CopyIpComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [CopyIpComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(CopyIpComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,21 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-copy-ip',
|
||||
templateUrl: './copy-ip.component.html',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule
|
||||
],
|
||||
styleUrl: './copy-ip.component.scss'
|
||||
})
|
||||
export class CopyIpComponent {
|
||||
public displayText: string = 'Copy IP'
|
||||
|
||||
public copyIpToClipboard(): void {
|
||||
navigator.clipboard.writeText('play.alttd.com');
|
||||
this.displayText = 'Copied!';
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user