frontend: Rename HomeComponent to RoomCreatorComponent
This commit is contained in:
parent
2af1fdcbc8
commit
d1d3a1d96d
@ -7,7 +7,7 @@ export * from './console/security-preferences/security-preferences.component';
|
|||||||
export * from './console/about/about.component';
|
export * from './console/about/about.component';
|
||||||
export * from './console/overview/overview.component';
|
export * from './console/overview/overview.component';
|
||||||
export * from './console/login/login.component';
|
export * from './console/login/login.component';
|
||||||
export * from './home/home.component';
|
export * from './room-creator/room-creator.component';
|
||||||
export * from './video-room/video-room.component';
|
export * from './video-room/video-room.component';
|
||||||
export * from './participant-name-form/participant-name-form.component';
|
export * from './participant-name-form/participant-name-form.component';
|
||||||
export * from './disconnected/disconnected.component';
|
export * from './disconnected/disconnected.component';
|
||||||
|
|||||||
@ -1,18 +1,18 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { HomeComponent } from './home.component';
|
import { RoomCreatorComponent } from './room-creator.component';
|
||||||
|
|
||||||
describe('HomeComponent', () => {
|
describe('RoomCreatorComponent', () => {
|
||||||
let component: HomeComponent;
|
let component: RoomCreatorComponent;
|
||||||
let fixture: ComponentFixture<HomeComponent>;
|
let fixture: ComponentFixture<RoomCreatorComponent>;
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [HomeComponent]
|
imports: [RoomCreatorComponent]
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(HomeComponent);
|
fixture = TestBed.createComponent(RoomCreatorComponent);
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
||||||
@ -20,13 +20,13 @@ import { animals, colors, Config, uniqueNamesGenerator } from 'unique-names-gene
|
|||||||
import packageInfo from '../../../../../../package.json';
|
import packageInfo from '../../../../../../package.json';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-home',
|
selector: 'app-room-creator',
|
||||||
templateUrl: './home.component.html',
|
templateUrl: './room-creator.component.html',
|
||||||
styleUrls: ['./home.component.scss'],
|
styleUrls: ['./room-creator.component.scss'],
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [MatToolbar, MatIconButton, MatTooltip, MatIcon, FormsModule, ReactiveFormsModule, NgClass, MatButton]
|
imports: [MatToolbar, MatIconButton, MatTooltip, MatIcon, FormsModule, ReactiveFormsModule, NgClass, MatButton]
|
||||||
})
|
})
|
||||||
export class HomeComponent implements OnInit, OnDestroy {
|
export class RoomCreatorComponent implements OnInit, OnDestroy {
|
||||||
roomForm: FormGroup;
|
roomForm: FormGroup;
|
||||||
loginForm: FormGroup;
|
loginForm: FormGroup;
|
||||||
version = '';
|
version = '';
|
||||||
@ -17,7 +17,7 @@ import {
|
|||||||
ConsoleComponent,
|
ConsoleComponent,
|
||||||
ConsoleLoginComponent,
|
ConsoleLoginComponent,
|
||||||
DisconnectedComponent,
|
DisconnectedComponent,
|
||||||
HomeComponent,
|
RoomCreatorComponent,
|
||||||
OverviewComponent,
|
OverviewComponent,
|
||||||
ParticipantNameFormComponent,
|
ParticipantNameFormComponent,
|
||||||
RecordingsComponent,
|
RecordingsComponent,
|
||||||
@ -27,7 +27,7 @@ import {
|
|||||||
} from '../pages';
|
} from '../pages';
|
||||||
|
|
||||||
export const baseRoutes: Routes = [
|
export const baseRoutes: Routes = [
|
||||||
{ path: '', component: HomeComponent },
|
{ path: '', component: RoomCreatorComponent },
|
||||||
{ path: 'disconnected', component: DisconnectedComponent },
|
{ path: 'disconnected', component: DisconnectedComponent },
|
||||||
{ path: 'unauthorized', component: UnauthorizedComponent },
|
{ path: 'unauthorized', component: UnauthorizedComponent },
|
||||||
{
|
{
|
||||||
@ -93,6 +93,6 @@ export const baseRoutes: Routes = [
|
|||||||
component: ParticipantNameFormComponent
|
component: ParticipantNameFormComponent
|
||||||
},
|
},
|
||||||
|
|
||||||
// Redirect all other routes to home
|
// Redirect all other routes to RoomCreatorComponent
|
||||||
{ path: '**', redirectTo: '' }
|
{ path: '**', redirectTo: '' }
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user