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 {
|
.section1 {
|
||||||
background:
|
background:
|
||||||
linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
|
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;
|
background-size: cover;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -1,18 +1,15 @@
|
|||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { RouterTestingModule } from '@angular/router/testing';
|
|
||||||
import { HomeComponent } from './home.component';
|
import { HomeComponent } from './home.component';
|
||||||
import { UntypedFormBuilder } from '@angular/forms';
|
|
||||||
|
|
||||||
describe('HomeComponent', () => {
|
describe('HomeComponent', () => {
|
||||||
let component: HomeComponent;
|
let component: HomeComponent;
|
||||||
let fixture: ComponentFixture<HomeComponent>;
|
let fixture: ComponentFixture<HomeComponent>;
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async () => {
|
||||||
TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
providers: [UntypedFormBuilder],
|
imports: [HomeComponent]
|
||||||
imports: [RouterTestingModule.withRoutes([]), HomeComponent]
|
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
}));
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(HomeComponent);
|
fixture = TestBed.createComponent(HomeComponent);
|
||||||
@ -13,15 +13,11 @@ import { MatIconButton, MatButton } from '@angular/material/button';
|
|||||||
import { NgClass } from '@angular/common';
|
import { NgClass } from '@angular/common';
|
||||||
import { MatToolbar } from '@angular/material/toolbar';
|
import { MatToolbar } from '@angular/material/toolbar';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
|
import { HttpService } from '../../services/http/http.service';
|
||||||
// import { ConfigService } from '@app/services/config.service';
|
import { OpenViduMeetRoom, OpenViduMeetRoomOptions } from '../../typings/ce/room';
|
||||||
import { HttpService, OpenViduMeetRoom, OpenViduMeetRoomOptions } from 'projects/shared-meet-components/src/public-api';
|
|
||||||
|
|
||||||
import packageInfo from '../../../../package.json';
|
|
||||||
|
|
||||||
import { animals, colors, Config, uniqueNamesGenerator } from 'unique-names-generator';
|
import { animals, colors, Config, uniqueNamesGenerator } from 'unique-names-generator';
|
||||||
|
import packageInfo from '../../../../../../package.json';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-home',
|
selector: 'app-home',
|
||||||
@ -7,6 +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 './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';
|
||||||
|
|||||||
@ -17,15 +17,17 @@ import {
|
|||||||
ConsoleComponent,
|
ConsoleComponent,
|
||||||
ConsoleLoginComponent,
|
ConsoleLoginComponent,
|
||||||
DisconnectedComponent,
|
DisconnectedComponent,
|
||||||
|
HomeComponent,
|
||||||
OverviewComponent,
|
OverviewComponent,
|
||||||
ParticipantNameFormComponent,
|
ParticipantNameFormComponent,
|
||||||
|
RecordingsComponent,
|
||||||
RoomsComponent,
|
RoomsComponent,
|
||||||
SecurityPreferencesComponent,
|
SecurityPreferencesComponent,
|
||||||
VideoRoomComponent
|
VideoRoomComponent
|
||||||
} from '../pages';
|
} from '../pages';
|
||||||
import { RecordingsComponent } from '@lib/pages/console/recordings/recordings.component';
|
|
||||||
|
|
||||||
export const baseRoutes: Routes = [
|
export const baseRoutes: Routes = [
|
||||||
|
{ path: '', component: HomeComponent },
|
||||||
{ path: 'disconnected', component: DisconnectedComponent },
|
{ path: 'disconnected', component: DisconnectedComponent },
|
||||||
{ path: 'unauthorized', component: UnauthorizedComponent },
|
{ path: 'unauthorized', component: UnauthorizedComponent },
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { HomeComponent } from '@app/pages/home/home.component';
|
|
||||||
import { baseRoutes } from 'projects/shared-meet-components/src/public-api';
|
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