frontend: Remove unused models and refactor code to include HomeComponent in shared-meet-components library
This commit is contained in:
parent
bcf9f286f9
commit
2af1fdcbc8
@ -17,7 +17,7 @@ $formGap: 0.375rem;
|
||||
.section1 {
|
||||
background:
|
||||
linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
|
||||
url('../../../assets/images/bg.webp') top center no-repeat;
|
||||
url('/assets/images/bg.webp') top center no-repeat;
|
||||
background-size: cover;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
@ -1,18 +1,15 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { HomeComponent } from './home.component';
|
||||
import { UntypedFormBuilder } from '@angular/forms';
|
||||
|
||||
describe('HomeComponent', () => {
|
||||
let component: HomeComponent;
|
||||
let fixture: ComponentFixture<HomeComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [UntypedFormBuilder],
|
||||
imports: [RouterTestingModule.withRoutes([]), HomeComponent]
|
||||
}).compileComponents();
|
||||
}));
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [HomeComponent]
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(HomeComponent);
|
||||
@ -13,15 +13,11 @@ import { MatIconButton, MatButton } from '@angular/material/button';
|
||||
import { NgClass } from '@angular/common';
|
||||
import { MatToolbar } from '@angular/material/toolbar';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
|
||||
import { Subscription } from 'rxjs';
|
||||
|
||||
// import { ConfigService } from '@app/services/config.service';
|
||||
import { HttpService, OpenViduMeetRoom, OpenViduMeetRoomOptions } from 'projects/shared-meet-components/src/public-api';
|
||||
|
||||
import packageInfo from '../../../../package.json';
|
||||
|
||||
import { HttpService } from '../../services/http/http.service';
|
||||
import { OpenViduMeetRoom, OpenViduMeetRoomOptions } from '../../typings/ce/room';
|
||||
import { animals, colors, Config, uniqueNamesGenerator } from 'unique-names-generator';
|
||||
import packageInfo from '../../../../../../package.json';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
@ -7,6 +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 './video-room/video-room.component';
|
||||
export * from './participant-name-form/participant-name-form.component';
|
||||
export * from './disconnected/disconnected.component';
|
||||
|
||||
@ -17,15 +17,17 @@ import {
|
||||
ConsoleComponent,
|
||||
ConsoleLoginComponent,
|
||||
DisconnectedComponent,
|
||||
HomeComponent,
|
||||
OverviewComponent,
|
||||
ParticipantNameFormComponent,
|
||||
RecordingsComponent,
|
||||
RoomsComponent,
|
||||
SecurityPreferencesComponent,
|
||||
VideoRoomComponent
|
||||
} from '../pages';
|
||||
import { RecordingsComponent } from '@lib/pages/console/recordings/recordings.component';
|
||||
|
||||
export const baseRoutes: Routes = [
|
||||
{ path: '', component: HomeComponent },
|
||||
{ path: 'disconnected', component: DisconnectedComponent },
|
||||
{ path: 'unauthorized', component: UnauthorizedComponent },
|
||||
{
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { HomeComponent } from '@app/pages/home/home.component';
|
||||
import { baseRoutes } from 'projects/shared-meet-components/src/public-api';
|
||||
|
||||
export const routes: Routes = [{ path: '', component: HomeComponent }, ...baseRoutes];
|
||||
export const routes: Routes = baseRoutes;
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
export interface ServerConfigurationResponse {
|
||||
isPrivateAccess: boolean;
|
||||
|
||||
}
|
||||
@ -1,7 +0,0 @@
|
||||
export enum StorageAppKeys {
|
||||
PARTICIPANT_NAME = 'participantName',
|
||||
PARTICIPANT_CREDENTIALS = 'participantCredentials',
|
||||
ADMIN_CREDENTIALS = 'adminCredentials',
|
||||
}
|
||||
|
||||
export const STORAGE_PREFIX = 'OvCall-';
|
||||
Loading…
x
Reference in New Issue
Block a user