Merge branch 'feature/BETERAN-BACKEND-APP-BROWSER-init' of https://gitlab.loafle.net/bet/beteran-backend-app-browser into feature/BETERAN-BACKEND-APP-BROWSER-init

This commit is contained in:
병준 박 2022-08-14 08:54:53 +00:00
commit 2f39027610
21 changed files with 1404 additions and 187 deletions

View File

@ -99,8 +99,11 @@
<div <div
class="coupon-grid z-10 sticky top-0 grid gap-4 py-4 px-6 md:px-8 shadow text-md font-semibold text-secondary bg-gray-50 dark:bg-black dark:bg-opacity-5" class="coupon-grid z-10 sticky top-0 grid gap-4 py-4 px-6 md:px-8 shadow text-md font-semibold text-secondary bg-gray-50 dark:bg-black dark:bg-opacity-5"
> >
<div>그룹번호</div> <div>
<div>쿠폰시리얼번호</div> 그룹번호
<hr style="margin: 7px 0px" />
쿠폰시리얼번호
</div>
<div> <div>
생성아이디 생성아이디
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />
@ -129,8 +132,18 @@
<div <div
class="coupon-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b" class="coupon-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
> >
<div>{{ coupon.couponGroupNumber }}</div> <div
<div>{{ coupon.couponSerialNumber }}</div> style="
width: 300px;
padding: 0 5px;
overflow: hidden;
text-overflow: ellipsis;
"
>
{{ coupon.couponGroupNumber }}
<hr style="margin: 7px 0px" />
{{ coupon.couponSerialNumber }}
</div>
<div> <div>
<div> <div>
{{ coupon.issuedCouponId }} {{ coupon.issuedCouponId }}
@ -138,9 +151,7 @@
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />
{{ coupon.issuedCouponNickname }} {{ coupon.issuedCouponNickname }}
</div> </div>
<div>
{{ coupon.issuedCouponMoney }}
</div>
<div> <div>
{{ coupon.issuedCoupons }} {{ coupon.issuedCoupons }}
</div> </div>
@ -149,6 +160,9 @@
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />
{{ coupon.takeCouponNickname }} {{ coupon.takeCouponNickname }}
</div> </div>
<div>
{{ coupon.issuedCouponMoney }}
</div>
<div class="hidden md:block"> <div class="hidden md:block">
{{ coupon.couponStartDate }} {{ coupon.couponStartDate }}
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />

View File

@ -56,8 +56,8 @@ import { Router } from '@angular/router';
} }
@screen lg { @screen lg {
/* 그룹 시리얼 생성 발행수 지급 시작 사용 등록 */ /* 그룹 생성 발행수 지급 금액 시작 사용 등록 */
grid-template-columns: 140px 140px auto 100px 140px 140px 40px 140px; grid-template-columns: auto 100px 80px 100px 100px 140px 60px 140px;
} }
} }
`, `,

View File

@ -2,173 +2,164 @@
<div class="flex-auto border-t -mt-px pt-4 sm:pt-6"> <div class="flex-auto border-t -mt-px pt-4 sm:pt-6">
<div class="w-full max-w-screen-xl mx-auto"> <div class="w-full max-w-screen-xl mx-auto">
<div class="grid grid-cols-1 sm:grid-cols-6 gap-6 w-full min-w-0"> <div class="grid grid-cols-1 sm:grid-cols-6 gap-6 w-full min-w-0">
<!-- Budget distribution -->
<div <div
class="sm:col-span-6 flex flex-col flex-auto p-6 bg-card shadow rounded-2xl overflow-hidden" class="sm:col-span-6 flex flex-col flex-auto p-6 bg-card shadow rounded-2xl overflow-hidden"
> >
<!-- Header --> <div class="text-lg font-medium tracking-tight leading-6 truncate">
<div 현재접속자&쪽지전송
class="relative flex flex-col sm:flex-row flex-0 sm:items-center sm:justify-between py-8 px-6 md:px-8 border-b"
>
<!-- Loader -->
<div class="absolute inset-x-0 bottom-0" *ngIf="isLoading">
<mat-progress-bar [mode]="'indeterminate'"></mat-progress-bar>
</div>
<!-- Title -->
<div class="text-4xl font-extrabold tracking-tight">
현재접속자&쪽지전송
</div>
</div> </div>
<!-- Main --> <div class="flex flex-col flex-auto mt-2 overflow-x-auto">
<div class="flex flex-auto overflow-hidden"> <table
<!-- Products list --> class="min-w-240 overflow-y-visible"
<div mat-table
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto" [dataSource]="currentUserDataSource"
> >
<ng-container *ngIf="currentUsers$ | async as currentUsers"> <!-- Total -->
<ng-container <ng-container matColumnDef="idx">
*ngIf="currentUsers.length > 0; else noCurrentUser" <th mat-header-cell *matHeaderCellDef>번호</th>
> <td mat-cell *matCellDef="let info">
<div class="grid"> <span class="font-medium text-right"> {{ info.idx }} </span>
<!-- Header --> </td>
<div
class="current-user-grid z-10 sticky top-0 grid gap-4 py-4 px-6 md:px-8 shadow text-md font-semibold text-secondary bg-gray-50 dark:bg-black dark:bg-opacity-5"
>
<div>번호</div>
<div>상부</div>
<div>
아이디
<hr style="margin: 7px 0px" />
닉네임
</div>
<div>
등급
<hr style="margin: 7px 0px" />
레벨
</div>
<div>현재위치</div>
<div class="hidden md:block">보유금</div>
<div class="hidden md:block">
게임중머니
<hr style="margin: 7px 0px" />
콤프
</div>
<div class="hidden md:block">사이트</div>
<div class="hidden md:block">카지노->캐쉬</div>
<div class="hidden lg:block">쪽지보내기</div>
<div class="hidden lg:block">배팅내역</div>
<div class="hidden lg:block">로그아웃</div>
</div>
<!-- Rows -->
<ng-container *ngIf="currentUsers$ | async as currentUsers">
<ng-container
*ngFor="
let currentUser of currentUsers;
trackBy: __trackByFn
"
>
<div
class="current-user-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
>
<div>{{ currentUser.idx }}</div>
<div>{{ currentUser.highRank }}</div>
<div>
<div>
{{ currentUser.signinId }}
</div>
<hr style="margin: 7px 0px" />
{{ currentUser.nickname }}
<hr style="margin: 7px 0px" />
{{ currentUser.currentLocation }}
</div>
<div>
{{ currentUser.rank }}
<hr style="margin: 7px 0px" />
{{ currentUser.level }}
</div>
<div>{{ currentUser.currentLocation }}</div>
<div class="hidden md:block">
{{ currentUser.ownCash }}
<hr style="margin: 7px 0px" />
{{ currentUser.ownComp }}
</div>
<div class="hidden md:block">
{{ currentUser.gameMoney }}
<hr style="margin: 7px 0px" />
{{ currentUser.ownComp }}
</div>
<div class="hidden md:block">
{{ currentUser.siteAddress }}
</div>
<div class="hidden md:block">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
게임머니확인
</button>
<hr style="margin: 7px 0px" />
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
게임머니회수
</button>
</div>
<div class="hidden lg:block">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
<mat-icon svgIcon="email-outline"></mat-icon>
</button>
</div>
<div class="hidden lg:block">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
배팅내역
</button>
</div>
<div class="hidden lg:block">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
로그아웃
</button>
</div>
</div>
</ng-container>
</ng-container>
</div>
<mat-paginator
class="sm:absolute sm:inset-x-0 sm:bottom-0 border-b sm:border-t sm:border-b-0 z-10 bg-gray-50 dark:bg-transparent"
[ngClass]="{ 'pointer-events-none': isLoading }"
[length]="pagination?.length"
[pageIndex]="pagination?.page"
[pageSize]="pagination?.size"
[pageSizeOptions]="[5, 10, 25, 100]"
[showFirstLastButtons]="true"
></mat-paginator>
</ng-container>
</ng-container> </ng-container>
<ng-template #noCurrentUser> <!-- Expenses amount -->
<div <ng-container matColumnDef="highRank">
class="p-8 sm:p-16 border-t text-4xl font-semibold tracking-tight text-center" <th mat-header-cell *matHeaderCellDef>상위</th>
>
There are no data! <td mat-cell *matCellDef="let info">{{ info.highRank }}</td>
</div> </ng-container>
</ng-template>
</div> <ng-container matColumnDef="signinId">
<th mat-header-cell *matHeaderCellDef>
아이디
<hr style="margin: 7px 0px" />
닉네임
</th>
<td mat-cell *matCellDef="let info">
{{ info.signinId }}
<hr style="margin: 7px 0px" />
{{ info.nickname }}
</td>
</ng-container>
<!-- Expenses amount -->
<ng-container matColumnDef="level">
<th mat-header-cell *matHeaderCellDef>
등급
<hr style="margin: 7px 0px" />
레벨
<hr style="margin: 7px 0px" />
현재위치
</th>
<td mat-cell *matCellDef="let info">
{{ info.rank }}
<hr style="margin: 7px 0px" />
{{ info.level }}
<hr style="margin: 7px 0px" />
{{ info.currentLocation }}
</td>
</ng-container>
<!-- Expenses amount -->
<ng-container matColumnDef="ownCash">
<th mat-header-cell *matHeaderCellDef>캐쉬</th>
<td mat-cell *matCellDef="let info">{{ info.ownCash }}</td>
</ng-container>
<!-- Expenses amount -->
<ng-container matColumnDef="comp">
<th mat-header-cell *matHeaderCellDef>
게임중머니
<hr style="margin: 7px 0px" />
콤프
</th>
<td mat-cell *matCellDef="let info">
{{ info.gameMoney }}
<hr style="margin: 7px 0px" />
{{ info.ownComp }}
</td>
</ng-container>
<!-- Expenses amount -->
<ng-container matColumnDef="site">
<th mat-header-cell *matHeaderCellDef>사이트</th>
<td mat-cell *matCellDef="let info">{{ info.siteAddress }}</td>
</ng-container>
<!-- Expenses amount -->
<ng-container matColumnDef="casino">
<th mat-header-cell *matHeaderCellDef>카지노->캐쉬</th>
<td mat-cell *matCellDef="let info">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
게임머니확인
</button>
<hr style="margin: 7px 0px" />
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
게임머니회수
</button>
</td>
</ng-container>
<!-- Expenses amount -->
<ng-container matColumnDef="etcBtn">
<th mat-header-cell *matHeaderCellDef>
쪽지보내기
<hr style="margin: 7px 0px" />
배팅내역
<hr style="margin: 7px 0px" />
로그아웃
</th>
<td mat-cell *matCellDef="let basicSetting">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
<mat-icon svgIcon="email-outline"> </mat-icon>
</button>
<hr style="margin: 7px 0px" />
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
배팅내역
</button>
<hr style="margin: 7px 0px" />
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
로그아웃
</button>
</td>
</ng-container>
<tr
mat-header-row
*matHeaderRowDef="currentUserTableColumns"
></tr>
<tr
mat-row
*matRowDef="let row; columns: currentUserTableColumns"
></tr>
</table>
</div> </div>
</div>
<!-- Budget details -->
<div
class="sm:col-span-6 flex flex-col flex-auto p-6 bg-card shadow rounded-2xl overflow-hidden"
>
<div> <div>
<div <div
class="sm:col-span-6 flex flex-col flex-auto p-6 bg-card shadow rounded-2xl overflow-hidden" class="sm:col-span-6 flex flex-col flex-auto p-6 bg-card shadow rounded-2xl overflow-hidden"

View File

@ -43,21 +43,21 @@ import { Router } from '@angular/router';
` `
.current-user-grid { .current-user-grid {
/* 번호 상부 아이디 등급 위치 */ /* 번호 상부 아이디 등급 위치 */
grid-template-columns: 20px 40px auto 40px 140px; grid-template-columns: 40px 40px auto 40px 140px;
@screen sm { @screen sm {
/* 번호 상부 아이디 등급 위치 보유금 */ /* 번호 상부 아이디 등급 위치 보유금 */
grid-template-columns: 20px 40px auto 40px 140px 140px; grid-template-columns: 40px 40px auto 40px 140px 140px;
} }
@screen md { @screen md {
/* 번호 상부 아이디 등급 위치 보유금 게임중 사이트 */ /* 번호 상부 아이디 등급 위치 보유금 게임중 사이트 */
grid-template-columns: 20px 40px auto 40px 140px 140px 140px 140px; grid-template-columns: 40px 40px auto 40px 140px 140px 140px 140px;
} }
@screen lg { @screen lg {
/* 번호 상부 아이디 등급 위치 보유금 게임중 사이트 카지노 배팅 로그아웃 */ /* 번호 상부 아이디 등급 캐시 게임중 사이트 카지노 배팅 */
grid-template-columns: 20px 100px auto 40px 140px 140px 140px 140px 140px 140px 140px; grid-template-columns: 40px 100px auto 100px 100px 100px 140px 120px 120px;
} }
} }
`, `,
@ -70,6 +70,9 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild(MatPaginator) private _paginator!: MatPaginator; @ViewChild(MatPaginator) private _paginator!: MatPaginator;
@ViewChild(MatSort) private _sort!: MatSort; @ViewChild(MatSort) private _sort!: MatSort;
currentUserDataSource: MatTableDataSource<CurrentUser> =
new MatTableDataSource();
currentUsers$!: Observable<CurrentUser[] | undefined>; currentUsers$!: Observable<CurrentUser[] | undefined>;
users$!: Observable<User[] | undefined>; users$!: Observable<User[] | undefined>;
@ -79,6 +82,18 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
pagination?: CurrentUserPagination; pagination?: CurrentUserPagination;
targetForm!: FormGroup; targetForm!: FormGroup;
currentUserTableColumns: string[] = [
'idx',
'highRank',
'signinId',
'level',
'ownCash',
'comp',
'site',
'casino',
'etcBtn',
];
private _unsubscribeAll: Subject<any> = new Subject<any>(); private _unsubscribeAll: Subject<any> = new Subject<any>();
/** /**
@ -122,6 +137,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
if (!curUsers) { if (!curUsers) {
return; return;
} }
this.currentUserDataSource.data = curUsers;
this.targetForm.patchValue(curUsers[0]); this.targetForm.patchValue(curUsers[0]);
// Mark for check // Mark for check

View File

@ -254,6 +254,32 @@
</div> </div>
</ng-container> </ng-container>
</ng-container> </ng-container>
<div
style="
display: flex;
flex-direction: row;
justify-content: center;
"
>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
탈퇴
</button>
</div>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
휴면
</button>
</div>
</div>
</div> </div>
<mat-paginator <mat-paginator
@ -276,15 +302,5 @@
</div> </div>
</ng-template> </ng-template>
</div> </div>
<div>
<button mat-flat-button class="bet-mat-small-8" [color]="'primary'">
탈퇴
</button>
</div>
<div>
<button mat-flat-button class="bet-mat-small-8" [color]="'primary'">
휴면
</button>
</div>
</div> </div>
</div> </div>

View File

@ -204,8 +204,40 @@
<div> <div>
<mat-checkbox></mat-checkbox> <mat-checkbox></mat-checkbox>
</div> </div>
<div>관리</div> <div class="hidden lg:block">
<div>요율</div> <div
mat-button
[matMenuTriggerFor]="menu"
style="cursor: pointer"
>
관리
</div>
<mat-menu #menu="matMenu">
<button mat-menu-item (click)="__onClickCash($event)">
보유금지급/회수
</button>
<button
mat-menu-item
(click)="__onClickCommission($event)"
>
수수료설정
</button>
<button mat-menu-item (click)="__onClickComp($event)">
콤프지급/회수
</button>
<button mat-menu-item (click)="__onClickCoupon($event)">
쿠폰머니지급/회수
</button>
<button mat-menu-item (click)="__onClickMessage($event)">
쪽지보내기
</button>
<button mat-menu-item>배팅리스트</button>
<button mat-menu-item (click)="__onClickSignout($event)">
강제로그아웃
</button>
</mat-menu>
</div>
<div [matTooltip]="__getRateTooltop()">요율</div>
<div> <div>
{{ user.highRank }} {{ user.highRank }}
</div> </div>

View File

@ -20,6 +20,13 @@ import { UserPagination } from '../models/user-pagination';
import { UserService } from '../services/user.service'; import { UserService } from '../services/user.service';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service'; import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service';
import { MatDialog } from '@angular/material/dialog';
import { CashComposeComponent } from '../compose/cash-compose.component';
import { CommissionComposeComponent } from '../compose/commission-compose.component';
import { CompComposeComponent } from '../compose/comp-compose.component';
import { CouponComposeComponent } from '../compose/coupon-compose.component';
import { MessageComposeComponent } from '../compose/message-compose.component';
import { SignoutComposeComponent } from '../compose/signout-compose.component';
@Component({ @Component({
selector: 'user-list', selector: 'user-list',
@ -46,6 +53,10 @@ import { IdentityService } from 'app/modules/polyglot/identity/services/identity
grid-template-columns: 20px 40px 40px 100px auto 40px 140px 140px 140px 140px 140px 140px; grid-template-columns: 20px 40px 40px 100px auto 40px 140px 140px 140px 140px 140px 140px;
} }
} }
.mat-tooltip {
white-space: pre-line;
}
`, `,
], ],
encapsulation: ViewEncapsulation.None, encapsulation: ViewEncapsulation.None,
@ -75,7 +86,8 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
private _formBuilder: FormBuilder, private _formBuilder: FormBuilder,
private _userService: UserService, private _userService: UserService,
private _identityService: IdentityService, private _identityService: IdentityService,
private router: Router private router: Router,
private _matDialog: MatDialog
) {} ) {}
// ----------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------
@ -194,4 +206,66 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
__trackByFn(index: number, item: any): any { __trackByFn(index: number, item: any): any {
return item.id || index; return item.id || index;
} }
__onClickCash(event: MouseEvent): void {
const dialogRef = this._matDialog.open(CashComposeComponent, {
data: { price: '', memo: '' },
});
dialogRef.afterClosed().subscribe((result) => {
console.log('Compose dialog was closed!');
});
}
__onClickCommission(event: MouseEvent): void {
const dialogRef = this._matDialog.open(CommissionComposeComponent, {
data: { price: '', memo: '' },
});
dialogRef.afterClosed().subscribe((result) => {
console.log('Compose dialog was closed!');
});
}
__onClickComp(event: MouseEvent): void {
const dialogRef = this._matDialog.open(CompComposeComponent, {
data: { price: '', memo: '' },
});
dialogRef.afterClosed().subscribe((result) => {
console.log('Compose dialog was closed!');
});
}
__onClickCoupon(event: MouseEvent): void {
const dialogRef = this._matDialog.open(CouponComposeComponent, {
data: { price: '', memo: '' },
});
dialogRef.afterClosed().subscribe((result) => {
console.log('Compose dialog was closed!');
});
}
__onClickMessage(event: MouseEvent): void {
const dialogRef = this._matDialog.open(MessageComposeComponent, {
data: { price: '', memo: '' },
});
dialogRef.afterClosed().subscribe((result) => {
console.log('Compose dialog was closed!');
});
}
__onClickSignout(event: MouseEvent): void {
const dialogRef = this._matDialog.open(SignoutComposeComponent, {
data: { price: '', memo: '' },
});
dialogRef.afterClosed().subscribe((result) => {
console.log('Compose dialog was closed!');
});
}
__getRateTooltop(): string {
const tempRate = 0;
const resultTooltip = `
\n -바카라: ${tempRate}% \n -룰렛: ${tempRate}% \n -드레곤타이거: ${tempRate}% \n -그외:${tempRate}% \n 슬롯:${tempRate}% \n 카지노루징: ${tempRate}% \n 슬롯루징: ${tempRate}%
`;
return resultTooltip;
}
} }

View File

@ -0,0 +1,88 @@
<div class="flex flex-col max-w-240 md:min-w-160 max-h-screen -m-6">
<!-- Header -->
<div
class="flex flex-0 items-center justify-between h-16 pr-3 sm:pr-5 pl-6 sm:pl-8 bg-primary text-on-primary"
>
<div class="text-lg font-medium">캐쉬 충환전</div>
<button mat-icon-button (click)="saveAndClose()" [tabIndex]="-1">
<mat-icon
class="text-current"
[svgIcon]="'heroicons_outline:x'"
></mat-icon>
</button>
</div>
<!-- Compose form -->
<form
class="flex flex-col flex-auto p-6 sm:p-8 overflow-y-auto"
[formGroup]="composeForm"
>
<div>
<span class="font-semibold mb-2">캐쉬구분</span>
<mat-radio-group
class="flex flex-col w-1/3 pr-2"
[color]="'primary'"
[value]="'cash'"
>
<mat-radio-button class="mb-2" [value]="'cash'">
캐쉬
</mat-radio-button>
</mat-radio-group>
</div>
<div>
<span class="font-semibold mb-2">추가/삭제</span>
<mat-radio-group
class="flex flex-col w-1/3 pr-2"
[color]="'primary'"
[value]="'give'"
>
<mat-radio-button class="mb-2" [value]="'give'">
지급
</mat-radio-button>
<mat-radio-button class="mb-2" [value]="'take'">
회수
</mat-radio-button>
</mat-radio-group>
</div>
<!-- To -->
<mat-form-field>
<mat-label>입력금액</mat-label>
<input matInput [formControlName]="'price'" />
</mat-form-field>
<!-- <div *ngFor="let f of sites">{{ f.getUrl() }}</div> -->
<!-- Cc -->
<mat-form-field>
<mat-label>메모</mat-label>
<input matInput [formControlName]="'memo'" />
</mat-form-field>
<!-- Body -->
<!-- <quill-editor
class="mt-2"
[formControlName]="'body'"
[modules]="quillModules"
></quill-editor> -->
<!-- Actions -->
<div
class="flex flex-col sm:flex-row sm:items-center justify-between mt-4 sm:mt-6"
>
<div class="flex items-center mt-4 sm:mt-0">
<!-- Send -->
<button
class="order-first sm:order-last"
mat-flat-button
[color]="'primary'"
(click)="send()"
>
캐쉬충환전
</button>
<!-- Save as draft -->
<button class="sm:mx-3" mat-stroked-button (click)="saveAsDraft()">
<span>닫기</span>
</button>
</div>
</div>
</form>
</div>

View File

@ -0,0 +1,94 @@
import {
ChangeDetectorRef,
Component,
Inject,
OnInit,
ViewEncapsulation,
} from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { SiteService } from 'app/modules/polyglot/site/services/site.service';
import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service';
import { Site } from 'app/modules/proto/models/site_pb';
export interface CashComposeData {
price: string;
memo: string;
}
export interface CashComposeResult {
price: string;
memo: string;
}
@Component({
selector: 'app-cash-compose',
templateUrl: './cash-compose.component.html',
encapsulation: ViewEncapsulation.None,
})
export class CashComposeComponent implements OnInit {
composeForm!: FormGroup;
sites: any[] = [];
// quillModules: any = {
// toolbar: [
// ['bold', 'italic', 'underline'],
// [{ align: [] }, { list: 'ordered' }, { list: 'bullet' }],
// ['clean'],
// ],
// };
/**
* Constructor
*/
constructor(
public matDialogRef: MatDialogRef<CashComposeComponent>,
@Inject(MAT_DIALOG_DATA) public data: CashComposeData,
private _formBuilder: FormBuilder,
private _identityService: IdentityService,
private _changeDetectorRef: ChangeDetectorRef
) {}
// -----------------------------------------------------------------------------------------------------
// @ Lifecycle hooks
// -----------------------------------------------------------------------------------------------------
/**
* On init
*/
ngOnInit(): void {
// Create the form
this.composeForm = this._formBuilder.group({
price: ['', [Validators.required]],
memo: ['', [Validators.required]],
});
}
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
/**
* Save and close
*/
saveAndClose(): void {
// Save the message as a draft
this.saveAsDraft();
// Close the dialog
this.matDialogRef.close();
}
/**
* Discard the message
*/
discard(): void {}
/**
* Save the message as a draft
*/
saveAsDraft(): void {}
/**
* Send the message
*/
send(): void {}
}

View File

@ -0,0 +1,96 @@
<div class="flex flex-col max-w-240 md:min-w-160 max-h-screen -m-6">
<!-- Header -->
<div
class="flex flex-0 items-center justify-between h-16 pr-3 sm:pr-5 pl-6 sm:pl-8 bg-primary text-on-primary"
>
<div class="text-lg font-medium">수수료 변경</div>
<button mat-icon-button (click)="saveAndClose()" [tabIndex]="-1">
<mat-icon
class="text-current"
[svgIcon]="'heroicons_outline:x'"
></mat-icon>
</button>
</div>
<!-- Compose form -->
<form
class="flex flex-col flex-auto p-6 sm:p-8 overflow-y-auto"
[formGroup]="composeForm"
>
<fieldset>
<div class="font-semibold mb-2">카지노 요율</div>
<!-- 바카라 -->
<mat-form-field style="text-align: center">
<mat-label>바카라</mat-label>
<input matInput [formControlName]="'bacaraRate'" />2.00
</mat-form-field>
<span style="float: inherit">%(최소 2 ~ 최대 5)</span
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!-- 룰렛 -->
<mat-form-field style="text-align: center">
<mat-label>룰렛</mat-label>
<input matInput [formControlName]="'rouletteRate'" />2.00
</mat-form-field>
<span style="float: inherit">%(최소 1.8 ~ 최대 5)</span>
<br />
<!-- 드레곤타이거 -->
<mat-form-field style="text-align: center">
<mat-label>드레곤타이거</mat-label>
<input matInput [formControlName]="'dragonTigerRate'" />2.00
</mat-form-field>
<span style="float: inherit">%(최소 1.8 ~ 최대 5)</span
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!-- 기타게임 -->
<mat-form-field style="text-align: center">
<mat-label>기타게임</mat-label>
<input matInput [formControlName]="'otherGameRate'" />2.00
</mat-form-field>
<span style="float: inherit">%(최소 1.5 ~ 최대 5)</span>
</fieldset>
<b><mat-divider></mat-divider></b>
<!-- 슬롯요율 -->
<fieldset>
<mat-form-field style="text-align: center">
<mat-label>슬롯요율</mat-label>
<input matInput [formControlName]="'slotRate'" />5.00
</mat-form-field>
<span style="float: inherit">%(최소 4 ~ 최대 5)</span>
</fieldset>
<mat-divider></mat-divider>
<fieldset>
<!-- 카지노 루징 -->
<mat-form-field style="text-align: center">
<mat-label>카지노 루징</mat-label>
<input matInput [formControlName]="'casinoLoosing'" />50.00
</mat-form-field>
<span style="float: inherit">%(최소 40 ~ 최대 50)</span>
&nbsp;&nbsp;&nbsp;
<!-- 술롯 루징 -->
<mat-form-field style="text-align: center">
<mat-label>슬롯 루징</mat-label>
<input matInput [formControlName]="'slotLoosing'" />50.00
</mat-form-field>
<span style="float: inherit">%(최소 40 ~ 최대 50)</span>
</fieldset>
<!-- Actions -->
<div
class="flex flex-col sm:flex-row sm:items-center justify-between mt-4 sm:mt-6"
>
<div class="flex items-center mt-4 sm:mt-0">
<!-- Send -->
<button
class="order-first sm:order-last"
mat-flat-button
[color]="'primary'"
(click)="send()"
>
요율변경
</button>
<!-- Save as draft -->
<button class="sm:mx-3" mat-stroked-button (click)="saveAsDraft()">
<span>닫기</span>
</button>
</div>
</div>
</form>
</div>

View File

@ -0,0 +1,99 @@
import {
ChangeDetectorRef,
Component,
Inject,
OnInit,
ViewEncapsulation,
} from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { SiteService } from 'app/modules/polyglot/site/services/site.service';
import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service';
import { Site } from 'app/modules/proto/models/site_pb';
export interface CommissionComposeData {
price: string;
memo: string;
}
export interface CommissionComposeResult {
price: string;
memo: string;
}
@Component({
selector: 'app-commission-compose',
templateUrl: './commission-compose.component.html',
encapsulation: ViewEncapsulation.None,
})
export class CommissionComposeComponent implements OnInit {
composeForm!: FormGroup;
sites: any[] = [];
// quillModules: any = {
// toolbar: [
// ['bold', 'italic', 'underline'],
// [{ align: [] }, { list: 'ordered' }, { list: 'bullet' }],
// ['clean'],
// ],
// };
/**
* Constructor
*/
constructor(
public matDialogRef: MatDialogRef<CommissionComposeComponent>,
@Inject(MAT_DIALOG_DATA) public data: CommissionComposeData,
private _formBuilder: FormBuilder,
private _identityService: IdentityService,
private _changeDetectorRef: ChangeDetectorRef
) {}
// -----------------------------------------------------------------------------------------------------
// @ Lifecycle hooks
// -----------------------------------------------------------------------------------------------------
/**
* On init
*/
ngOnInit(): void {
// Create the form
this.composeForm = this._formBuilder.group({
bacaraRate: ['', [Validators.required]],
rouletteRate: ['', [Validators.required]],
dragonTigerRate: ['', [Validators.required]],
otherGameRate: ['', [Validators.required]],
slotRate: ['', [Validators.required]],
casinoLoosing: ['', [Validators.required]],
slotLoosing: ['', [Validators.required]],
});
}
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
/**
* Save and close
*/
saveAndClose(): void {
// Save the message as a draft
this.saveAsDraft();
// Close the dialog
this.matDialogRef.close();
}
/**
* Discard the message
*/
discard(): void {}
/**
* Save the message as a draft
*/
saveAsDraft(): void {}
/**
* Send the message
*/
send(): void {}
}

View File

@ -0,0 +1,88 @@
<div class="flex flex-col max-w-240 md:min-w-160 max-h-screen -m-6">
<!-- Header -->
<div
class="flex flex-0 items-center justify-between h-16 pr-3 sm:pr-5 pl-6 sm:pl-8 bg-primary text-on-primary"
>
<div class="text-lg font-medium">콤프 충환전</div>
<button mat-icon-button (click)="saveAndClose()" [tabIndex]="-1">
<mat-icon
class="text-current"
[svgIcon]="'heroicons_outline:x'"
></mat-icon>
</button>
</div>
<!-- Compose form -->
<form
class="flex flex-col flex-auto p-6 sm:p-8 overflow-y-auto"
[formGroup]="composeForm"
>
<div>
<span class="font-semibold mb-2">콤프구분</span>
<mat-radio-group
class="flex flex-col w-1/3 pr-2"
[color]="'primary'"
[value]="'cash'"
>
<mat-radio-button class="mb-2" [value]="'cash'">
콤프
</mat-radio-button>
</mat-radio-group>
</div>
<div>
<span class="font-semibold mb-2">추가/삭제</span>
<mat-radio-group
class="flex flex-col w-1/3 pr-2"
[color]="'primary'"
[value]="'give'"
>
<mat-radio-button class="mb-2" [value]="'give'">
지급
</mat-radio-button>
<mat-radio-button class="mb-2" [value]="'take'">
회수
</mat-radio-button>
</mat-radio-group>
</div>
<!-- To -->
<mat-form-field>
<mat-label>입력콤프</mat-label>
<input matInput [formControlName]="'comp'" />
</mat-form-field>
<!-- <div *ngFor="let f of sites">{{ f.getUrl() }}</div> -->
<!-- Cc -->
<mat-form-field>
<mat-label>메모</mat-label>
<input matInput [formControlName]="'memo'" />
</mat-form-field>
<!-- Body -->
<!-- <quill-editor
class="mt-2"
[formControlName]="'body'"
[modules]="quillModules"
></quill-editor> -->
<!-- Actions -->
<div
class="flex flex-col sm:flex-row sm:items-center justify-between mt-4 sm:mt-6"
>
<div class="flex items-center mt-4 sm:mt-0">
<!-- Send -->
<button
class="order-first sm:order-last"
mat-flat-button
[color]="'primary'"
(click)="send()"
>
콤프충환전
</button>
<!-- Save as draft -->
<button class="sm:mx-3" mat-stroked-button (click)="saveAsDraft()">
<span>닫기</span>
</button>
</div>
</div>
</form>
</div>

View File

@ -0,0 +1,94 @@
import {
ChangeDetectorRef,
Component,
Inject,
OnInit,
ViewEncapsulation,
} from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { SiteService } from 'app/modules/polyglot/site/services/site.service';
import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service';
import { Site } from 'app/modules/proto/models/site_pb';
export interface CompComposeData {
price: string;
memo: string;
}
export interface CompComposeResult {
price: string;
memo: string;
}
@Component({
selector: 'app-comp-compose',
templateUrl: './comp-compose.component.html',
encapsulation: ViewEncapsulation.None,
})
export class CompComposeComponent implements OnInit {
composeForm!: FormGroup;
sites: any[] = [];
// quillModules: any = {
// toolbar: [
// ['bold', 'italic', 'underline'],
// [{ align: [] }, { list: 'ordered' }, { list: 'bullet' }],
// ['clean'],
// ],
// };
/**
* Constructor
*/
constructor(
public matDialogRef: MatDialogRef<CompComposeComponent>,
@Inject(MAT_DIALOG_DATA) public data: CompComposeData,
private _formBuilder: FormBuilder,
private _identityService: IdentityService,
private _changeDetectorRef: ChangeDetectorRef
) {}
// -----------------------------------------------------------------------------------------------------
// @ Lifecycle hooks
// -----------------------------------------------------------------------------------------------------
/**
* On init
*/
ngOnInit(): void {
// Create the form
this.composeForm = this._formBuilder.group({
price: ['', [Validators.required]],
memo: ['', [Validators.required]],
});
}
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
/**
* Save and close
*/
saveAndClose(): void {
// Save the message as a draft
this.saveAsDraft();
// Close the dialog
this.matDialogRef.close();
}
/**
* Discard the message
*/
discard(): void {}
/**
* Save the message as a draft
*/
saveAsDraft(): void {}
/**
* Send the message
*/
send(): void {}
}

View File

@ -0,0 +1,88 @@
<div class="flex flex-col max-w-240 md:min-w-160 max-h-screen -m-6">
<!-- Header -->
<div
class="flex flex-0 items-center justify-between h-16 pr-3 sm:pr-5 pl-6 sm:pl-8 bg-primary text-on-primary"
>
<div class="text-lg font-medium">쿠폰금액 지급/회수</div>
<button mat-icon-button (click)="saveAndClose()" [tabIndex]="-1">
<mat-icon
class="text-current"
[svgIcon]="'heroicons_outline:x'"
></mat-icon>
</button>
</div>
<!-- Compose form -->
<form
class="flex flex-col flex-auto p-6 sm:p-8 overflow-y-auto"
[formGroup]="composeForm"
>
<div>
<span class="font-semibold mb-2">쿠폰구분</span>
<mat-radio-group
class="flex flex-col w-1/3 pr-2"
[color]="'primary'"
[value]="'coupon'"
>
<mat-radio-button class="mb-2" [value]="'coupon'">
쿠폰
</mat-radio-button>
</mat-radio-group>
</div>
<div>
<span class="font-semibold mb-2">추가/삭제</span>
<mat-radio-group
class="flex flex-col w-1/3 pr-2"
[color]="'primary'"
[value]="'give'"
>
<mat-radio-button class="mb-2" [value]="'give'">
지급
</mat-radio-button>
<mat-radio-button class="mb-2" [value]="'take'">
회수
</mat-radio-button>
</mat-radio-group>
</div>
<!-- To -->
<mat-form-field>
<mat-label>입력쿠폰금액</mat-label>
<input matInput [formControlName]="'couponPrice'" />
</mat-form-field>
<!-- <div *ngFor="let f of sites">{{ f.getUrl() }}</div> -->
<!-- Cc -->
<mat-form-field>
<mat-label>쿠폰제목</mat-label>
<input matInput [formControlName]="'couponTitle'" />
</mat-form-field>
<!-- Body -->
<!-- <quill-editor
class="mt-2"
[formControlName]="'body'"
[modules]="quillModules"
></quill-editor> -->
<!-- Actions -->
<div
class="flex flex-col sm:flex-row sm:items-center justify-between mt-4 sm:mt-6"
>
<div class="flex items-center mt-4 sm:mt-0">
<!-- Send -->
<button
class="order-first sm:order-last"
mat-flat-button
[color]="'primary'"
(click)="send()"
>
쿠폰 지급/회수
</button>
<!-- Save as draft -->
<button class="sm:mx-3" mat-stroked-button (click)="saveAsDraft()">
<span>닫기</span>
</button>
</div>
</div>
</form>
</div>

View File

@ -0,0 +1,94 @@
import {
ChangeDetectorRef,
Component,
Inject,
OnInit,
ViewEncapsulation,
} from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { SiteService } from 'app/modules/polyglot/site/services/site.service';
import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service';
import { Site } from 'app/modules/proto/models/site_pb';
export interface CouponComposeData {
price: string;
memo: string;
}
export interface CouponComposeResult {
price: string;
memo: string;
}
@Component({
selector: 'app-coupon-compose',
templateUrl: './coupon-compose.component.html',
encapsulation: ViewEncapsulation.None,
})
export class CouponComposeComponent implements OnInit {
composeForm!: FormGroup;
sites: any[] = [];
// quillModules: any = {
// toolbar: [
// ['bold', 'italic', 'underline'],
// [{ align: [] }, { list: 'ordered' }, { list: 'bullet' }],
// ['clean'],
// ],
// };
/**
* Constructor
*/
constructor(
public matDialogRef: MatDialogRef<CouponComposeComponent>,
@Inject(MAT_DIALOG_DATA) public data: CouponComposeData,
private _formBuilder: FormBuilder,
private _identityService: IdentityService,
private _changeDetectorRef: ChangeDetectorRef
) {}
// -----------------------------------------------------------------------------------------------------
// @ Lifecycle hooks
// -----------------------------------------------------------------------------------------------------
/**
* On init
*/
ngOnInit(): void {
// Create the form
this.composeForm = this._formBuilder.group({
price: ['', [Validators.required]],
memo: ['', [Validators.required]],
});
}
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
/**
* Save and close
*/
saveAndClose(): void {
// Save the message as a draft
this.saveAsDraft();
// Close the dialog
this.matDialogRef.close();
}
/**
* Discard the message
*/
discard(): void {}
/**
* Save the message as a draft
*/
saveAsDraft(): void {}
/**
* Send the message
*/
send(): void {}
}

View File

@ -0,0 +1,15 @@
import { CashComposeComponent } from './cash-compose.component';
import { CommissionComposeComponent } from './commission-compose.component';
import { CompComposeComponent } from './comp-compose.component';
import { CouponComposeComponent } from './coupon-compose.component';
import { MessageComposeComponent } from './message-compose.component';
import { SignoutComposeComponent } from './signout-compose.component';
export const COMPOSE = [
CashComposeComponent,
CommissionComposeComponent,
CompComposeComponent,
CouponComposeComponent,
MessageComposeComponent,
SignoutComposeComponent,
];

View File

@ -0,0 +1,89 @@
<div class="flex flex-col max-w-240 md:min-w-160 max-h-screen -m-6">
<!-- Header -->
<div
class="flex flex-0 items-center justify-between h-16 pr-3 sm:pr-5 pl-6 sm:pl-8 bg-primary text-on-primary"
>
<div class="text-lg font-medium">쪽지보내기</div>
<button mat-icon-button (click)="saveAndClose()" [tabIndex]="-1">
<mat-icon
class="text-current"
[svgIcon]="'heroicons_outline:x'"
></mat-icon>
</button>
</div>
<!-- Compose form -->
<form
class="flex flex-col flex-auto p-6 sm:p-8 overflow-y-auto"
[formGroup]="composeForm"
>
<div class="flex">
<mat-form-field class="w-1/3 pr-2">
<mat-label>제목</mat-label>
<input matInput [required]="true" />
</mat-form-field>
</div>
<div class="mt-8">
<mat-form-field
class="fuse-mat-dense fuse-mat-no-subscript fuse-mat-rounded fuse-mat-bold w-full"
>
<mat-label>글쓴이</mat-label>
<input matInput [required]="true" [formControlName]="'writer'" />
</mat-form-field>
</div>
<div class="mt-8">
<mat-form-field
class="fuse-mat-dense fuse-mat-no-subscript fuse-mat-rounded fuse-mat-bold w-full"
>
<mat-label>받는이</mat-label>
<input matInput [required]="true" [formControlName]="'writer'" />
</mat-form-field>
</div>
<mat-form-field
class="mt-8 fuse-mat-dense fuse-mat-no-subscript fuse-mat-rounded fuse-mat-bold w-full"
>
<textarea
matInput
[required]="true"
[rows]="5"
matTextareaAutosize
[formControlName]="'content'"
></textarea>
<mat-label>내용</mat-label>
</mat-form-field>
<mat-form-field
class="mt-8 fuse-mat-dense fuse-mat-no-subscript fuse-mat-rounded fuse-mat-bold w-full"
>
<textarea
matInput
[rows]="5"
matTextareaAutosize
[formControlName]="'content'"
></textarea>
<mat-label>선택</mat-label>
--선택--5008\n**입금계좌문의시(가상계좌1)****출금비밀번호문의시**----탈퇴,졸업관련----**졸업안내----입금관련문의---->>타인명의입금시----환전관련문의----**환전지연안내(환전량
증가)**은행점검(뱅킹장애)등으로 충환전지연안내서버점검안내서버점검완료안내
</mat-form-field>
<!-- Actions -->
<div
class="flex flex-col sm:flex-row sm:items-center justify-between mt-4 sm:mt-6"
>
<div class="flex items-center mt-4 sm:mt-0">
<!-- Send -->
<button
class="order-first sm:order-last"
mat-flat-button
[color]="'primary'"
(click)="send()"
>
쪽지보내기
</button>
<!-- Save as draft -->
<button class="sm:mx-3" mat-stroked-button (click)="saveAsDraft()">
<span>닫기</span>
</button>
</div>
</div>
</form>
</div>

View File

@ -0,0 +1,94 @@
import {
ChangeDetectorRef,
Component,
Inject,
OnInit,
ViewEncapsulation,
} from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { SiteService } from 'app/modules/polyglot/site/services/site.service';
import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service';
import { Site } from 'app/modules/proto/models/site_pb';
export interface MessageComposeData {
price: string;
memo: string;
}
export interface MessageComposeResult {
price: string;
memo: string;
}
@Component({
selector: 'app-message-compose',
templateUrl: './message-compose.component.html',
encapsulation: ViewEncapsulation.None,
})
export class MessageComposeComponent implements OnInit {
composeForm!: FormGroup;
sites: any[] = [];
// quillModules: any = {
// toolbar: [
// ['bold', 'italic', 'underline'],
// [{ align: [] }, { list: 'ordered' }, { list: 'bullet' }],
// ['clean'],
// ],
// };
/**
* Constructor
*/
constructor(
public matDialogRef: MatDialogRef<MessageComposeComponent>,
@Inject(MAT_DIALOG_DATA) public data: MessageComposeData,
private _formBuilder: FormBuilder,
private _identityService: IdentityService,
private _changeDetectorRef: ChangeDetectorRef
) {}
// -----------------------------------------------------------------------------------------------------
// @ Lifecycle hooks
// -----------------------------------------------------------------------------------------------------
/**
* On init
*/
ngOnInit(): void {
// Create the form
this.composeForm = this._formBuilder.group({
price: ['', [Validators.required]],
memo: ['', [Validators.required]],
});
}
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
/**
* Save and close
*/
saveAndClose(): void {
// Save the message as a draft
this.saveAsDraft();
// Close the dialog
this.matDialogRef.close();
}
/**
* Discard the message
*/
discard(): void {}
/**
* Save the message as a draft
*/
saveAsDraft(): void {}
/**
* Send the message
*/
send(): void {}
}

View File

@ -0,0 +1,34 @@
<div class="flex flex-col max-w-240 md:min-w-160 max-h-screen -m-6">
<!-- Header -->
<div
class="flex flex-0 items-center justify-between h-16 pr-3 sm:pr-5 pl-6 sm:pl-8 bg-primary text-on-primary"
>
<div class="text-lg font-medium">알림</div>
<button mat-icon-button (click)="saveAndClose()" [tabIndex]="-1">
<mat-icon
class="text-current"
[svgIcon]="'heroicons_outline:x'"
></mat-icon>
</button>
</div>
<!-- Compose form -->
<form
class="flex flex-col flex-auto p-6 sm:p-8 overflow-y-auto"
[formGroup]="composeForm"
>
<div>
<span class="font-semibold mb-2">로그아웃되었습니다.</span>
</div>
<div
class="flex flex-col sm:flex-row sm:items-center justify-between mt-4 sm:mt-6"
>
<div class="flex items-center mt-4 sm:mt-0">
<!-- Save as draft -->
<button class="sm:mx-3" mat-stroked-button (click)="saveAsDraft()">
<span>OK</span>
</button>
</div>
</div>
</form>
</div>

View File

@ -0,0 +1,94 @@
import {
ChangeDetectorRef,
Component,
Inject,
OnInit,
ViewEncapsulation,
} from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { SiteService } from 'app/modules/polyglot/site/services/site.service';
import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service';
import { Site } from 'app/modules/proto/models/site_pb';
export interface SignoutComposeData {
price: string;
memo: string;
}
export interface SignoutComposeResult {
price: string;
memo: string;
}
@Component({
selector: 'app-signout-compose',
templateUrl: './signout-compose.component.html',
encapsulation: ViewEncapsulation.None,
})
export class SignoutComposeComponent implements OnInit {
composeForm!: FormGroup;
sites: any[] = [];
// quillModules: any = {
// toolbar: [
// ['bold', 'italic', 'underline'],
// [{ align: [] }, { list: 'ordered' }, { list: 'bullet' }],
// ['clean'],
// ],
// };
/**
* Constructor
*/
constructor(
public matDialogRef: MatDialogRef<SignoutComposeComponent>,
@Inject(MAT_DIALOG_DATA) public data: SignoutComposeData,
private _formBuilder: FormBuilder,
private _identityService: IdentityService,
private _changeDetectorRef: ChangeDetectorRef
) {}
// -----------------------------------------------------------------------------------------------------
// @ Lifecycle hooks
// -----------------------------------------------------------------------------------------------------
/**
* On init
*/
ngOnInit(): void {
// Create the form
this.composeForm = this._formBuilder.group({
price: ['', [Validators.required]],
memo: ['', [Validators.required]],
});
}
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
/**
* Save and close
*/
saveAndClose(): void {
// Save the message as a draft
this.saveAsDraft();
// Close the dialog
this.matDialogRef.close();
}
/**
* Discard the message
*/
discard(): void {}
/**
* Save the message as a draft
*/
saveAsDraft(): void {}
/**
* Send the message
*/
send(): void {}
}

View File

@ -16,6 +16,9 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { MatRadioModule } from '@angular/material/radio'; import { MatRadioModule } from '@angular/material/radio';
import { MatCheckboxModule } from '@angular/material/checkbox'; import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatChipsModule } from '@angular/material/chips'; import { MatChipsModule } from '@angular/material/chips';
import { MatMenuModule } from '@angular/material/menu';
import { MatDividerModule } from '@angular/material/divider';
import { MatDialogModule } from '@angular/material/dialog';
import { FuseCardModule } from '@fuse/components/card'; import { FuseCardModule } from '@fuse/components/card';
@ -24,11 +27,12 @@ import { TranslocoModule } from '@ngneat/transloco';
import { SharedModule } from 'app/shared/shared.module'; import { SharedModule } from 'app/shared/shared.module';
import { COMPONENTS } from './components'; import { COMPONENTS } from './components';
import { COMPOSE } from './compose';
import { userRoutes } from 'app/modules/admin/member/user/user.routing'; import { userRoutes } from 'app/modules/admin/member/user/user.routing';
@NgModule({ @NgModule({
declarations: [COMPONENTS], declarations: [COMPONENTS, COMPOSE],
imports: [ imports: [
TranslocoModule, TranslocoModule,
SharedModule, SharedModule,
@ -49,6 +53,9 @@ import { userRoutes } from 'app/modules/admin/member/user/user.routing';
MatRadioModule, MatRadioModule,
MatCheckboxModule, MatCheckboxModule,
MatChipsModule, MatChipsModule,
MatMenuModule,
MatDividerModule,
MatDialogModule,
FuseCardModule, FuseCardModule,
], ],