template resource delete

This commit is contained in:
leejinho 2020-02-28 09:28:32 +09:00
parent c656112099
commit 7273af3ab4
9 changed files with 1 additions and 749 deletions

View File

@ -18,13 +18,6 @@ const routes: Routes = [
import('./pages/account/account.page.module').then(
m => m.AppAccountPageModule
)
},
{
path: 'template',
loadChildren: () =>
import('./pages/template/template.page.module').then(
m => m.AppTemplatePageModule
)
}
];

View File

@ -9,8 +9,7 @@ import * as AppStore from '@app/store';
import * as AuthenticationStore from '@app/store/account/authentication';
import * as CompanyStore from '@app/store/setting/company';
import { Observable, Subscription } from 'rxjs';
import { Router } from '@angular/router';
import { tap, map } from 'rxjs/operators';
import { map } from 'rxjs/operators';
import {
DialogService,
AlertDialogComponent,
@ -81,7 +80,6 @@ export class LoginPageComponent implements OnInit, OnDestroy {
constructor(
@Inject(UCAP_NATIVE_SERVICE) private nativeService: NativeService,
private store: Store<any>,
private router: Router,
private translateService: TranslateService,
private dialogService: DialogService,
private protocolService: ProtocolService,
@ -325,8 +323,4 @@ export class LoginPageComponent implements OnInit, OnDestroy {
}, 8000);
}
}
// onClickTemplate() {
// this.router.navigate(['/template']);
// }
}

View File

@ -1,90 +0,0 @@
import { TemplatePageComponent } from './template.page.component';
export const COMPONENTS = [TemplatePageComponent];
import { A11yModule } from '@angular/cdk/a11y';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { PortalModule } from '@angular/cdk/portal';
import { ScrollingModule } from '@angular/cdk/scrolling';
import { CdkStepperModule } from '@angular/cdk/stepper';
import { CdkTableModule } from '@angular/cdk/table';
import { CdkTreeModule } from '@angular/cdk/tree';
import { MatAutocompleteModule } from '@angular/material/autocomplete';
import { MatBadgeModule } from '@angular/material/badge';
import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
import { MatButtonModule } from '@angular/material/button';
import { MatButtonToggleModule } from '@angular/material/button-toggle';
import { MatCardModule } from '@angular/material/card';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatChipsModule } from '@angular/material/chips';
import { MatStepperModule } from '@angular/material/stepper';
import { MatDatepickerModule } from '@angular/material/datepicker';
import { MatDialogModule } from '@angular/material/dialog';
import { MatDividerModule } from '@angular/material/divider';
import { MatExpansionModule } from '@angular/material/expansion';
import { MatGridListModule } from '@angular/material/grid-list';
import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatListModule } from '@angular/material/list';
import { MatMenuModule } from '@angular/material/menu';
import { MatNativeDateModule, MatRippleModule } from '@angular/material/core';
import { MatPaginatorModule } from '@angular/material/paginator';
import { MatProgressBarModule } from '@angular/material/progress-bar';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
import { MatRadioModule } from '@angular/material/radio';
import { MatSelectModule } from '@angular/material/select';
import { MatSidenavModule } from '@angular/material/sidenav';
import { MatSliderModule } from '@angular/material/slider';
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { MatSnackBarModule } from '@angular/material/snack-bar';
import { MatSortModule } from '@angular/material/sort';
import { MatTableModule } from '@angular/material/table';
import { MatTabsModule } from '@angular/material/tabs';
import { MatToolbarModule } from '@angular/material/toolbar';
import { MatTooltipModule } from '@angular/material/tooltip';
import { MatTreeModule } from '@angular/material/tree';
export const MET_MODULES = [
A11yModule,
CdkStepperModule,
CdkTableModule,
CdkTreeModule,
DragDropModule,
MatAutocompleteModule,
MatBadgeModule,
MatBottomSheetModule,
MatButtonModule,
MatButtonToggleModule,
MatCardModule,
MatCheckboxModule,
MatChipsModule,
MatStepperModule,
MatDatepickerModule,
MatDialogModule,
MatDividerModule,
MatExpansionModule,
MatGridListModule,
MatIconModule,
MatInputModule,
MatListModule,
MatMenuModule,
MatNativeDateModule,
MatPaginatorModule,
MatProgressBarModule,
MatProgressSpinnerModule,
MatRadioModule,
MatRippleModule,
MatSelectModule,
MatSidenavModule,
MatSliderModule,
MatSlideToggleModule,
MatSnackBarModule,
MatSortModule,
MatTableModule,
MatTabsModule,
MatToolbarModule,
MatTooltipModule,
MatTreeModule,
PortalModule,
ScrollingModule
];

View File

@ -1,170 +0,0 @@
<div class="template" fxLayout="column">
<button
mat-raised-button
color="accent"
class="submit-button"
aria-label="Login"
(click)="onClickLogin()"
>
Login
</button>
<h3>User-list-item</h3>
<div>
<ucap-profile-user-list-item
[userInfo]="userInfo"
[profileImageRoot]="profileImageRoot"
[presence]="presence"
[sessionVerinfo]="sessionVerinfo"
>
</ucap-profile-user-list-item>
<ucap-profile-user-list-item
[userInfo]="userInfo"
[sessionVerinfo]="sessionVerinfo"
>
</ucap-profile-user-list-item>
<ucap-profile-user-list-item
[userInfo]="userInfo"
[profileImageRoot]="profileImageRoot"
[checkable]="true"
[sessionVerinfo]="sessionVerinfo"
>
</ucap-profile-user-list-item>
</div>
<h3>Organization</h3>
<div>
<div>
<div>
Tenant Search
</div>
<div>
<ucap-organization-tenant-search
[companyList]="companyList"
[companyCode]="companyCode"
>
</ucap-organization-tenant-search>
</div>
</div>
</div>
<h3>Chat</h3>
<div>
<ucap-room-list-item
[roomInfo]="roomInfo"
[sessionVerinfo]="sessionVerinfo"
>
</ucap-room-list-item>
</div>
<!-- <h3>Chat::MessageBox</h3>
<div>
<div>
<div>
date splitter
</div>
<div>
<ucap-chat-message-box-date-splitter></ucap-chat-message-box-date-splitter>
</div>
</div>
<div>
<div>
attach-file
</div>
<div>
<ucap-chat-message-box-attach-file></ucap-chat-message-box-attach-file>
</div>
</div>
<div>
<div>
image
</div>
<div>
<ucap-chat-message-box-image></ucap-chat-message-box-image>
</div>
</div>
<div>
<div>
video
</div>
<div>
<ucap-chat-message-box-video></ucap-chat-message-box-video>
</div>
</div>
<div>
<div>
information
</div>
<div>
<ucap-chat-message-box-information></ucap-chat-message-box-information>
</div>
</div>
<div>
<div>
mass-translation
</div>
<div>
<ucap-chat-message-box-mass-translation></ucap-chat-message-box-mass-translation>
</div>
</div>
<div>
<div>
mass
</div>
<div>
<ucap-chat-message-box-mass></ucap-chat-message-box-mass>
</div>
</div>
<div>
<div>
notice
</div>
<div>
<ucap-chat-message-box-notice></ucap-chat-message-box-notice>
</div>
</div>
<div>
<div>
recall
</div>
<div>
<ucap-chat-message-box-recall></ucap-chat-message-box-recall>
</div>
</div>
<div>
<div>schedule</div>
<div>
<ucap-chat-message-box-schedule></ucap-chat-message-box-schedule>
</div>
</div>
<div>
<div>
sticker
</div>
<div>
<ucap-chat-message-box-sticker></ucap-chat-message-box-sticker>
</div>
</div>
<div>
<div>
text
</div>
<div>
<ucap-chat-message-box-text></ucap-chat-message-box-text>
</div>
</div>
<div>
<div>
translation
</div>
<div>
<ucap-chat-message-box-translation></ucap-chat-message-box-translation>
</div>
</div>
<div>
<div>
video-conference
</div>
<div>
<ucap-chat-message-box-video-conference></ucap-chat-message-box-video-conference>
</div>
</div>
</div> -->
</div>

View File

@ -1,4 +0,0 @@
div.template {
height: 100%;
overflow-y: auto;
}

View File

@ -1,27 +0,0 @@
/* tslint:disable:no-unused-variable */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { TemplatePageComponent } from './template.page.component';
describe('TemplatePageComponent', () => {
let component: TemplatePageComponent;
let fixture: ComponentFixture<TemplatePageComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [TemplatePageComponent]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(TemplatePageComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -1,393 +0,0 @@
import { Component, OnInit } from '@angular/core';
import { UserInfo } from '@ucap-webmessenger/protocol-sync';
import {
EmployeeType,
RoomInfo,
RoomType
} from '@ucap-webmessenger/protocol-room';
import { RoleCode } from '@ucap-webmessenger/protocol-authentication';
import {
StatusBulkInfo,
TerminalStatusInfo,
TerminalStatusNumber,
WorkStatusType
} from '@ucap-webmessenger/protocol-status';
import { Router } from '@angular/router';
import { Company } from '@ucap-webmessenger/api-external';
import { EventType, Info, EventJson } from '@ucap-webmessenger/protocol-event';
import { VersionInfo2Response } from '@ucap-webmessenger/api-public';
import { StatusCode as ApiStatusCode } from '@ucap-webmessenger/api';
import { StatusCode } from '@ucap-webmessenger/core';
@Component({
selector: 'app-template.page',
templateUrl: './template.page.component.html',
styleUrls: ['./template.page.component.scss']
})
export class TemplatePageComponent implements OnInit {
profileImageRoot = 'http://27.122.224.170:8011/ProfileImage';
userInfo: UserInfo = buddyData;
presence: StatusBulkInfo = status;
companyList: Company[] = companyList;
companyCode: string = 'GUC006';
roomInfo: RoomInfo = roomInfo;
sessionVerinfo: VersionInfo2Response;
constructor(private router: Router) {}
ngOnInit() {
this.sessionVerinfo = {
statusCode: ApiStatusCode.Success,
errorMessage: '',
profileRoot: this.profileImageRoot
};
}
onClickLogin() {
this.router.navigate(['/account/login']);
}
}
export const status: StatusBulkInfo = {
// 사용자SEQ
userSeq: 15,
// 상태코드(PC)
pcStatus: StatusCode.Away,
// 상태코드(통화)
phoneStatus: StatusCode.Offline,
// 상태코드(모바일)
mobileStatus: StatusCode.OnLine,
// 상태코드(PC화상)
conferenceStatus: StatusCode.Offline,
// 상태메시지
statusMessage: '다른용무중',
// 상태코드(Mobile화상)
mobileConferenceStatus: StatusCode.Offline,
// 상태코드(iMessenger)
imessengerStatus: StatusCode.Offline,
// 단말상태정보(s)
terminalStatus: TerminalStatusInfo.Idle,
// 단말상태번호(n)
terminalStatusNumber: TerminalStatusNumber.Idle,
workstatus: WorkStatusType.Work
};
export const buddyData: UserInfo = {
seq: 15,
name: '채희중',
profileImageFile: '/2017/08/09/PF_15_174154508.jpeg',
grade: '책임',
intro: '프로필정보 변경됨.',
companyCode: 'GUC006',
hpNumber: '01089339833',
lineNumber: '01089339833',
email: 'hjchae72@lgcns.com',
isMobile: false,
deptName: 'UCAP TEAM',
isFavorit: false,
isBuddy: true,
isActive: true,
roleCd: RoleCode.CompanyExcludeSync,
employeeNum: ' ',
madn: '0033',
hardSadn: ' ',
fmcSadn: '0033',
nameEn: 'HUI JOONG CHAE',
nameCn: ' ',
gradeEn: 'Business Engineering',
gradeCn: ' ',
deptNameEn: ' ',
deptNameCn: ' ',
isPrivacyAgree: true,
isValidLogin: true,
employeeType: EmployeeType.Regular,
nickName: '채책임(닉)',
order: ''
};
const roomInfo: RoomInfo = {
roomSeq: '2530',
roomType: RoomType.Single,
roomName: ' ',
finalEventType: EventType.Character,
finalEventMessage: '비밀 대화방입니다',
finalEventDate: '2019-09-30 13:57:06',
joinUserCount: 2,
noReadCnt: 0,
receiveAlarm: true,
isJoinRoom: true,
expiredFileStdSeq: 0,
isTimeRoom: true,
timeRoomInterval: 5
};
const companyList: Company[] = [
{
companyCode: 'GUC002',
companyName: 'LG Electronics.',
companyDomain: 'lge.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC040',
companyName: 'LGE한국영업협력사',
companyDomain: 'lgepartner.com',
companyConfAuthYn: 'Y',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC021',
companyName: 'LG이노텍',
companyDomain: 'lginnotek.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC036',
companyName: '하이프라자',
companyDomain: 'hiplaza.co.kr',
companyConfAuthYn: 'Y',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC006',
companyName: 'LG CNS',
companyDomain: 'lgcns.com',
companyConfAuthYn: 'Y',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC041',
companyName: 'LGEIL',
companyDomain: 'lgeil.com',
companyConfAuthYn: 'Y',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC100',
companyName: 'LG UCAP',
companyDomain: 'lgucap.com',
companyConfAuthYn: 'Y',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUCIM',
companyName: '아메사용회사',
companyDomain: 'test.com',
companyConfAuthYn: 'N',
ucapUseYn: 'N',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC005',
companyName: 'LG화학',
companyDomain: 'lgchem.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GSGAL',
companyName: 'GS칼텍스',
companyDomain: 'gscaltex.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC001',
companyName: 'LG U+',
companyDomain: 'lguplus.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC007',
companyName: 'LG Display',
companyDomain: 'lgdisplay.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'N'
},
{
companyCode: 'GUC011',
companyName: 'LG인화원',
companyDomain: 'lgacademy.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC013',
companyName: 'LG MMA',
companyDomain: 'lgmma.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC015',
companyName: '(주)LG',
companyDomain: 'lg.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC016',
companyName: 'LGERI',
companyDomain: 'lgeri.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC024',
companyName: 'LG Hausys',
companyDomain: 'lghausys.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC028',
companyName: 'LG상사',
companyDomain: 'lgi.co.kr',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC032',
companyName: '코리아일레콤',
companyDomain: 'koreaelecom.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC035',
companyName: 'HLDS',
companyDomain: 'hlds.co.kr',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC038',
companyName: 'BizTech Partners',
companyDomain: 'GUC018',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
},
{
companyCode: 'GUC042',
companyName: 'Japan R&D Lab',
companyDomain: 'lgjlab.com',
companyConfAuthYn: 'N',
ucapUseYn: 'Y',
companyTimerChatAuthYn: 'Y'
}
];
const eventInfo: Info<EventJson>[] = [
{
seq: 6,
type: EventType.Character,
senderSeq: 504688,
sendDate: '2019-10-08 14:28:43',
sentMessage: '테스트1111',
receiverCount: 2
},
{
seq: 20,
type: EventType.File,
senderSeq: 509747,
sendDate: '2019-10-15 17:18:49',
sentMessage:
'{\r\n"StatusCode":"200",\r\n"ErrorMessage":"",\r\n"RoomID":"0",\r\n"FileName":"1.jpg",\r\n"FileExt":"jpg",\r\n"FileType":"I",\r\n"ThumbURL":"http://27.122.224.170:8011/WebFile/GUC006/2019/10/15/MA_509747_17184948.jpg.thumb.jpg",\r\n"AttSEQ":"2964",\r\n"AttSize":"879394",\r\n"AttRegDate":"2019-10-15 17:18:49",\r\n"ImageWidth":"320",\r\n"ImageHeight":"240",\r\n"CompanyCode":"GUC006",\r\n"VoiceTime":"",\r\n"SynappKey":""\r\n}',
receiverCount: 2
},
{
seq: 21,
type: EventType.File,
senderSeq: 509747,
sendDate: '2019-10-15 17:20:24',
sentMessage:
'{\r\n"StatusCode":"200",\r\n"ErrorMessage":"",\r\n"RoomID":"0",\r\n"FileName":"dummy_더미.txt",\r\n"FileExt":"txt",\r\n"FileType":"F",\r\n"ThumbURL":"",\r\n"AttSEQ":"2965",\r\n"AttSize":"1736",\r\n"AttRegDate":"2019-10-15 17:20:23",\r\n"ImageWidth":"320",\r\n"ImageHeight":"320",\r\n"CompanyCode":"GUC006",\r\n"VoiceTime":"",\r\n"SynappKey":""\r\n}',
receiverCount: 2
},
{
seq: 22,
type: EventType.File,
senderSeq: 509747,
sendDate: '2019-10-15 17:21:10',
sentMessage:
'{\r\n"StatusCode":"200",\r\n"ErrorMessage":"",\r\n"RoomID":"0",\r\n"FileName":"The_Power_of_Teamwork_-_Funny_Animation.mp4",\r\n"FileExt":"mp4",\r\n"FileType":"V",\r\n"ThumbURL":"",\r\n"AttSEQ":"2966",\r\n"AttSize":"4476141",\r\n"AttRegDate":"2019-10-15 17:21:10",\r\n"ImageWidth":"320",\r\n"ImageHeight":"320",\r\n"CompanyCode":"GUC006",\r\n"VoiceTime":"",\r\n"SynappKey":""\r\n}',
receiverCount: 2
},
{
seq: 3,
type: EventType.MassText,
senderSeq: 10642,
sendDate: '2019-09-19 09:46:24',
sentMessage:
'{"StatusCode":"200","ErrorMessage":"","EventMassSeq":"1011","RoomID":"2479","RegDate":"","Content":"RequestMassEventSendRequestMassEventSendRequestMassEventSendRequestMassEventSendRequestMassEventSendRequestMassEventSendRequestMassEventSendRequestMassEventSendRequestMassEventSendRequestMassEventSendRequestMassEventSendRequestMassEventSendRequestMassEventSendRequestMassEventSendRequestMassEventSend"}',
receiverCount: 2
},
{
seq: 1,
type: EventType.Join,
senderSeq: 509747,
sendDate: '2019-10-15 17:23:26',
sentMessage: '이진호2,T10112,T10222,이진호',
receiverCount: 4
},
{
seq: 4,
type: EventType.Exit,
senderSeq: 509747,
sendDate: '2019-10-15 17:24:15',
sentMessage: '이진호2',
receiverCount: 3
},
{
seq: 19,
type: EventType.RecalledMessage,
senderSeq: 509747,
sendDate: '2019-10-15 16:36:47',
sentMessage: 'aaaaaa',
receiverCount: 2
},
{
seq: 25,
type: EventType.RenameRoom,
senderSeq: 509747,
sendDate: '2019-10-15 17:25:55',
sentMessage: '이진호2,이진호,이진호2 바꿔',
receiverCount: 2
},
{
receiverCount: 2,
sendDate: '2019-10-15 17:28:13',
senderSeq: 509747,
sentMessage: '509747,43200',
seq: 5,
type: EventType.GuideForRoomTimerChanged
}
];

View File

@ -1,17 +0,0 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { TemplatePageComponent } from './components/template.page.component';
const routes: Routes = [
{ path: '', redirectTo: '/template/page', pathMatch: 'full' },
{
path: 'page',
component: TemplatePageComponent
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class AppTemplateRoutingPageModule {}

View File

@ -1,34 +0,0 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FlexLayoutModule } from '@angular/flex-layout';
import { MatButtonModule } from '@angular/material/button';
import { UCapUiChatModule } from '@ucap-webmessenger/ui-chat';
import { UCapUiRoomModule } from '@ucap-webmessenger/ui-room';
import { UCapUiGroupModule } from '@ucap-webmessenger/ui-group';
import { UCapUiOrganizationModule } from '@ucap-webmessenger/ui-organization';
import { UCapUiProfileModule } from '@ucap-webmessenger/ui-profile';
import { AppTemplateRoutingPageModule } from './template-routing.page.module';
import { COMPONENTS, MET_MODULES } from './components';
@NgModule({
imports: [
...MET_MODULES,
CommonModule,
FlexLayoutModule,
MatButtonModule,
UCapUiChatModule,
UCapUiRoomModule,
UCapUiGroupModule,
UCapUiOrganizationModule,
UCapUiProfileModule,
AppTemplateRoutingPageModule
],
declarations: [...COMPONENTS],
entryComponents: []
})
export class AppTemplatePageModule {}