mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-06 01:54:30 +02:00
restructure for backend/frontend separation
This commit is contained in:
11
frontend/ng-karaoqueue/src/app/app-routing.module.ts
Normal file
11
frontend/ng-karaoqueue/src/app/app-routing.module.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
|
||||
const routes: Routes = [];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forRoot(routes)],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class AppRoutingModule { }
|
0
frontend/ng-karaoqueue/src/app/app.component.css
Normal file
0
frontend/ng-karaoqueue/src/app/app.component.css
Normal file
6
frontend/ng-karaoqueue/src/app/app.component.html
Normal file
6
frontend/ng-karaoqueue/src/app/app.component.html
Normal file
@ -0,0 +1,6 @@
|
||||
<div>
|
||||
<mat-toolbar color="primary">
|
||||
<span>KaraoQueue</span>
|
||||
</mat-toolbar>
|
||||
</div>
|
||||
<router-outlet></router-outlet>
|
35
frontend/ng-karaoqueue/src/app/app.component.spec.ts
Normal file
35
frontend/ng-karaoqueue/src/app/app.component.spec.ts
Normal file
@ -0,0 +1,35 @@
|
||||
import { TestBed, async } from '@angular/core/testing';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
import { AppComponent } from './app.component';
|
||||
|
||||
describe('AppComponent', () => {
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
RouterTestingModule
|
||||
],
|
||||
declarations: [
|
||||
AppComponent
|
||||
],
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
it('should create the app', () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
const app = fixture.debugElement.componentInstance;
|
||||
expect(app).toBeTruthy();
|
||||
});
|
||||
|
||||
it(`should have as title 'ng-karaoqueue'`, () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
const app = fixture.debugElement.componentInstance;
|
||||
expect(app.title).toEqual('ng-karaoqueue');
|
||||
});
|
||||
|
||||
it('should render title', () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
fixture.detectChanges();
|
||||
const compiled = fixture.debugElement.nativeElement;
|
||||
expect(compiled.querySelector('.content span').textContent).toContain('ng-karaoqueue app is running!');
|
||||
});
|
||||
});
|
10
frontend/ng-karaoqueue/src/app/app.component.ts
Normal file
10
frontend/ng-karaoqueue/src/app/app.component.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
templateUrl: './app.component.html',
|
||||
styleUrls: ['./app.component.css']
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'KaraoQueue';
|
||||
}
|
24
frontend/ng-karaoqueue/src/app/app.module.ts
Normal file
24
frontend/ng-karaoqueue/src/app/app.module.ts
Normal file
@ -0,0 +1,24 @@
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { NgModule } from '@angular/core';
|
||||
|
||||
import { AppRoutingModule } from './app-routing.module';
|
||||
import { AppComponent } from './app.component';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { MatSliderModule } from '@angular/material/slider';
|
||||
import { MatToolbarModule } from '@angular/material/toolbar'
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
AppComponent
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
AppRoutingModule,
|
||||
BrowserAnimationsModule,
|
||||
MatSliderModule,
|
||||
MatToolbarModule
|
||||
],
|
||||
providers: [],
|
||||
bootstrap: [AppComponent]
|
||||
})
|
||||
export class AppModule { }
|
Reference in New Issue
Block a user