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