From 4901930c119b46f25ac7222c3df2907932c6b645 Mon Sep 17 00:00:00 2001 From: Park Byung Eun Date: Thu, 14 Jul 2022 09:13:06 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=9E=84ON/OFF=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/mock-api/apps/settings/evo/data.ts | 2 +- src/app/mock-api/apps/settings/game/api.ts | 12 +- src/app/mock-api/apps/settings/game/data.ts | 106 +----- src/app/mock-api/apps/settings/ladder/api.ts | 12 +- src/app/mock-api/apps/settings/ladder/data.ts | 314 +++++++++++++----- .../branch/components/list.component.html | 147 ++++---- .../branch/components/list.component.ts | 7 + .../evo/components/list.component.html | 43 ++- .../settings/evo/components/list.component.ts | 14 +- .../game/components/list.component.html | 108 +++++- .../game/components/list.component.ts | 37 ++- .../admin/settings/game/game.module.ts | 2 + .../admin/settings/game/game.routing.ts | 6 +- .../indexing/components/list.component.html | 32 +- .../ladder/components/list.component.html | 99 +++++- .../ladder/components/list.component.ts | 29 +- .../admin/settings/ladder/ladder.module.ts | 4 + .../admin/settings/ladder/ladder.routing.ts | 6 +- 18 files changed, 699 insertions(+), 281 deletions(-) diff --git a/src/app/mock-api/apps/settings/evo/data.ts b/src/app/mock-api/apps/settings/evo/data.ts index c4c5aaf..a557f17 100644 --- a/src/app/mock-api/apps/settings/evo/data.ts +++ b/src/app/mock-api/apps/settings/evo/data.ts @@ -23,7 +23,7 @@ export const evoSetting = { description: '1,000~5,000,000', }, ], - vota: [ + bota: [ { level: 'LV1', amountScope: '1,000~5,000,000(기본유저)', diff --git a/src/app/mock-api/apps/settings/game/api.ts b/src/app/mock-api/apps/settings/game/api.ts index 8dee8e5..49da384 100644 --- a/src/app/mock-api/apps/settings/game/api.ts +++ b/src/app/mock-api/apps/settings/game/api.ts @@ -1,13 +1,13 @@ import { Injectable } from '@angular/core'; import { assign, cloneDeep } from 'lodash-es'; import { FuseMockApiService, FuseMockApiUtils } from '@fuse/lib/mock-api'; -import { basicSetting as basicSettingData } from './data'; +import { gameSetting as gameSettingData } from './data'; @Injectable({ providedIn: 'root', }) export class GameSettingMockApi { - private _basicSetting: any = basicSettingData; + private _gameSetting: any = gameSettingData; /** * Constructor @@ -32,13 +32,13 @@ export class GameSettingMockApi { .onGet('api/apps/settings/game', 300) .reply(({ request }) => { // Clone the deposits - let basicSetting: any | null = cloneDeep(this._basicSetting); + let gameSetting: any | null = cloneDeep(this._gameSetting); // Return the response return [ 200, { - basicSetting, + gameSetting, }, ]; }); @@ -51,7 +51,7 @@ export class GameSettingMockApi { .reply(({ request }) => { // Get the id and deposit const id = request.body.id; - const basicSetting = cloneDeep(request.body.basicSetting); + const gameSetting = cloneDeep(request.body.gameSetting); // Prepare the updated basicSetting let updatedBasicSetting = null; @@ -68,7 +68,7 @@ export class GameSettingMockApi { // }); // Return the response - return [200, basicSetting]; + return [200, gameSetting]; }); } } diff --git a/src/app/mock-api/apps/settings/game/data.ts b/src/app/mock-api/apps/settings/game/data.ts index ae3bccb..9539759 100644 --- a/src/app/mock-api/apps/settings/game/data.ts +++ b/src/app/mock-api/apps/settings/game/data.ts @@ -2,101 +2,11 @@ import { SiteStatusType } from 'app/modules/admin/settings/basic/types/site-status.type'; -export const basicSetting = { - infos: [ - { - name: '사이트 ON/OFF 설정', - content: SiteStatusType.joinAvailable, - }, - { - name: '메모', - content: '메모 테스트', - }, - ], - earnSettings: [ - { - level: 'LV1', - firstRate: '15', - firstIsUse: true, - firstMaxEarnMoney: '10000', - everyRate: '15', - everyIsUse: true, - everyMaxEarnMoney: '10000', - }, - { - level: 'LV2', - firstRate: '15', - firstIsUse: true, - firstMaxEarnMoney: '10000', - everyRate: '15', - everyIsUse: true, - everyMaxEarnMoney: '10000', - }, - { - level: 'LV3', - firstRate: '15', - firstIsUse: true, - firstMaxEarnMoney: '10000', - everyRate: '15', - everyIsUse: true, - everyMaxEarnMoney: '10000', - }, - { - level: 'LV4', - firstRate: '15', - firstIsUse: true, - firstMaxEarnMoney: '10000', - everyRate: '15', - everyIsUse: true, - everyMaxEarnMoney: '10000', - }, - ], - gameSetting: [ - { - name: '스포츠게임 가져오기', - isUse: true, - memo: '슬롯 사이트 메모', - description: '다른서버에서 경기가져오고 있음(5분)', - }, - { - name: '스포츠게임 결과 가져오기', - isUse: false, - memo: '슬롯 사이트 메모', - description: '다른서버에서 경기결과 가져오고 있음(5분)', - }, - { - name: '실시간게임 가져오기', - isUse: true, - memo: '슬롯 사이트 메모', - description: '하루한번 21시50분에 가져옴', - }, - { - name: '실시간게임 결과처리/정산', - isUse: true, - memo: '슬롯 사이트 메모', - description: '5분 단위로 체크(4분35초, 40초, 54초, 50초, 55초 정각)', - }, - { - name: '스포츠실시간 포인트 정산', - isUse: true, - memo: '슬롯 사이트 메모', - description: '10초마다 완료된 경기 포인트 정산', - }, - { - name: '카지노 로그 가져오기', - isUse: true, - memo: '슬롯 사이트 메모', - description: '20초마다 마지막 로그 가져옴', - }, - { - name: '카지노 포인트 정산', - isUse: true, - memo: '슬롯 사이트 메모', - description: '5분마다 정산내용 DB저장', - }, - ], -}; -// siteStatus?: SiteStatusType; -// memo?: string; -// earnSetting?: any; -// gameSetting?: any; +export const gameSetting = [ + { + siteName: 'kgonsample.com', + minBettingMoney: '100', + maxBettingMoney: '1000000', + maxWinMoney: '20000000', + }, +]; diff --git a/src/app/mock-api/apps/settings/ladder/api.ts b/src/app/mock-api/apps/settings/ladder/api.ts index 63dfe45..b9a67f7 100644 --- a/src/app/mock-api/apps/settings/ladder/api.ts +++ b/src/app/mock-api/apps/settings/ladder/api.ts @@ -1,13 +1,13 @@ import { Injectable } from '@angular/core'; import { assign, cloneDeep } from 'lodash-es'; import { FuseMockApiService, FuseMockApiUtils } from '@fuse/lib/mock-api'; -import { basicSetting as basicSettingData } from './data'; +import { ladderSetting as ladderSettingData } from './data'; @Injectable({ providedIn: 'root', }) export class LadderSettingMockApi { - private _basicSetting: any = basicSettingData; + private _ladderSetting: any = ladderSettingData; /** * Constructor @@ -32,13 +32,13 @@ export class LadderSettingMockApi { .onGet('api/apps/settings/ladder', 300) .reply(({ request }) => { // Clone the deposits - let basicSetting: any | null = cloneDeep(this._basicSetting); + let ladderSetting: any | null = cloneDeep(this._ladderSetting); // Return the response return [ 200, { - basicSetting, + ladderSetting, }, ]; }); @@ -51,7 +51,7 @@ export class LadderSettingMockApi { .reply(({ request }) => { // Get the id and deposit const id = request.body.id; - const basicSetting = cloneDeep(request.body.basicSetting); + const ladderSetting = cloneDeep(request.body.ladderSetting); // Prepare the updated basicSetting let updatedBasicSetting = null; @@ -68,7 +68,7 @@ export class LadderSettingMockApi { // }); // Return the response - return [200, basicSetting]; + return [200, ladderSetting]; }); } } diff --git a/src/app/mock-api/apps/settings/ladder/data.ts b/src/app/mock-api/apps/settings/ladder/data.ts index ae3bccb..b241c49 100644 --- a/src/app/mock-api/apps/settings/ladder/data.ts +++ b/src/app/mock-api/apps/settings/ladder/data.ts @@ -2,101 +2,245 @@ import { SiteStatusType } from 'app/modules/admin/settings/basic/types/site-status.type'; -export const basicSetting = { - infos: [ - { - name: '사이트 ON/OFF 설정', - content: SiteStatusType.joinAvailable, +export const ladderSetting = [ + { + game: { + ko: '파워볼', + en: 'POWERBALL', }, - { - name: '메모', - content: '메모 테스트', + isUse: true, + memo: '점검중', + }, + { + game: { + ko: '에볼류션', + en: 'EVOLUTION', }, - ], - earnSettings: [ - { - level: 'LV1', - firstRate: '15', - firstIsUse: true, - firstMaxEarnMoney: '10000', - everyRate: '15', - everyIsUse: true, - everyMaxEarnMoney: '10000', + isUse: true, + memo: '에볼루션 카지노 긴급점검 중입니다. 이용에 불편을 드려 죄송합니다.', + }, + { + game: { + ko: '디지', + en: 'DG', }, - { - level: 'LV2', - firstRate: '15', - firstIsUse: true, - firstMaxEarnMoney: '10000', - everyRate: '15', - everyIsUse: true, - everyMaxEarnMoney: '10000', + isUse: true, + memo: '점검중 10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '마이크로카지노', + en: 'MICROCASINO', }, - { - level: 'LV3', - firstRate: '15', - firstIsUse: true, - firstMaxEarnMoney: '10000', - everyRate: '15', - everyIsUse: true, - everyMaxEarnMoney: '10000', + isUse: true, + memo: '10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '프라그마카지노', + en: 'PRAGMATICCASINO', }, - { - level: 'LV4', - firstRate: '15', - firstIsUse: true, - firstMaxEarnMoney: '10000', - everyRate: '15', - everyIsUse: true, - everyMaxEarnMoney: '10000', + isUse: true, + memo: '10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '오리엔탈게임', + en: 'OG', }, - ], - gameSetting: [ - { - name: '스포츠게임 가져오기', - isUse: true, - memo: '슬롯 사이트 메모', - description: '다른서버에서 경기가져오고 있음(5분)', + isUse: true, + memo: '10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '아시안게이밍카지노', + en: 'ASIACASINO', }, - { - name: '스포츠게임 결과 가져오기', - isUse: false, - memo: '슬롯 사이트 메모', - description: '다른서버에서 경기결과 가져오고 있음(5분)', + isUse: true, + memo: '10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: 'CQ9카지노', + en: 'CQ9CASINO', }, - { - name: '실시간게임 가져오기', - isUse: true, - memo: '슬롯 사이트 메모', - description: '하루한번 21시50분에 가져옴', + isUse: true, + memo: '10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '이주기', + en: 'EZUGI', }, - { - name: '실시간게임 결과처리/정산', - isUse: true, - memo: '슬롯 사이트 메모', - description: '5분 단위로 체크(4분35초, 40초, 54초, 50초, 55초 정각)', + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '비보 카지노', + en: 'VIVOCASINO', }, - { - name: '스포츠실시간 포인트 정산', - isUse: true, - memo: '슬롯 사이트 메모', - description: '10초마다 완료된 경기 포인트 정산', + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '보타 카지노', + en: 'BOTACASINO', }, - { - name: '카지노 로그 가져오기', - isUse: true, - memo: '슬롯 사이트 메모', - description: '20초마다 마지막 로그 가져옴', + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '프라그마틱슬롯', + en: 'PRAGIMATICSLOT', }, - { - name: '카지노 포인트 정산', - isUse: true, - memo: '슬롯 사이트 메모', - description: '5분마다 정산내용 DB저장', + isUse: true, + memo: '점검중', + }, + { + game: { + ko: '마이크로슬롯', + en: 'MICROSLOT', }, - ], -}; -// siteStatus?: SiteStatusType; -// memo?: string; -// earnSetting?: any; -// gameSetting?: any; + isUse: true, + memo: '10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '하바네트', + en: 'HABANERO', + }, + isUse: true, + memo: '10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '부운고', + en: 'BOONGO', + }, + isUse: true, + memo: '10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '플레이손', + en: 'PLAYSON', + }, + isUse: true, + memo: '10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '퀵스핀', + en: 'QS', + }, + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '플레이엔고', + en: 'PLAYSNGO', + }, + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '넷엔트', + en: 'NETENT', + }, + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '매버릭', + en: 'MAVERICK', + }, + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '레드레이크', + en: 'REDRAKE', + }, + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '릴렉스', + en: 'RELAX', + }, + isUse: true, + memo: '10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '블루프린트', + en: 'BLUEPRINT', + }, + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '이엘케이', + en: 'ELK', + }, + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '아시안게이밍슬롯', + en: 'ASIASLOT', + }, + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: 'CQ9슬롯', + en: 'CQ9SLOT', + }, + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '레드타이거', + en: 'REDTSLOT', + }, + isUse: true, + memo: '10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '드래곤소프트', + en: 'DRAGSLOT', + }, + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '스피어헤드', + en: 'SPHSLOT', + }, + isUse: true, + memo: '10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, + { + game: { + ko: '엘리시움', + en: 'ELYSSLOT', + }, + isUse: true, + memo: '점검중10:00~11:00까지 점검이며 연장 또는 조기종료 될 수 있습니다.', + }, +]; diff --git a/src/app/modules/admin/settings/branch/components/list.component.html b/src/app/modules/admin/settings/branch/components/list.component.html index 5b7c2b4..d13cf77 100644 --- a/src/app/modules/admin/settings/branch/components/list.component.html +++ b/src/app/modules/admin/settings/branch/components/list.component.html @@ -10,75 +10,100 @@ 대본별 계좌 설정
- - - - - - + +
상부 - - {{ info.hignRank }} - -
+ + + + + - - - - - + + + + + - - - - + + + + - - - - + + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - - + + + + + - - -
상부 + + {{ info.hignRank }} + + 대본사아이디{{ info.signinId }}대본사아이디{{ info.signinId }}대본사닉네임{{ info.nickname }}대본사닉네임{{ info.nickname }}은행명{{ info.bankName }}은행명 + + + + 계좌번호 - {{ info.accountNumber }} - 계좌번호 + + + + 예금주{{ info.content }}예금주 + + + + 등록/수정일{{ info.reditDate }}등록/수정일{{ info.reditDate }}비고 - - 비고 + +
+ + + +
diff --git a/src/app/modules/admin/settings/branch/components/list.component.ts b/src/app/modules/admin/settings/branch/components/list.component.ts index 1b5f680..6e125d6 100644 --- a/src/app/modules/admin/settings/branch/components/list.component.ts +++ b/src/app/modules/admin/settings/branch/components/list.component.ts @@ -64,6 +64,8 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { private _unsubscribeAll: Subject = new Subject(); + branchForm!: FormGroup; + branchSetting$!: Observable; branchSettingDataSource: MatTableDataSource = new MatTableDataSource(); @@ -95,6 +97,11 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { * On init */ ngOnInit(): void { + this.branchForm = this._formBuilder.group({ + bankName: [''], + accountNumber: [''], + accountHolder: [''], + }); // Get the products this._branchService.branchSetting$ .pipe(takeUntil(this._unsubscribeAll)) diff --git a/src/app/modules/admin/settings/evo/components/list.component.html b/src/app/modules/admin/settings/evo/components/list.component.html index fe9fad2..8170220 100644 --- a/src/app/modules/admin/settings/evo/components/list.component.html +++ b/src/app/modules/admin/settings/evo/components/list.component.html @@ -28,7 +28,26 @@ 게임설정 - {{ info.amountScope }} + + + + + + {{ amountScope.value }} + + + + @@ -65,7 +84,7 @@ @@ -80,7 +99,21 @@ - + @@ -100,11 +133,11 @@
게임설정{{ info.amountScope }} + + + + {{ amountScope.value }} + + + +
diff --git a/src/app/modules/admin/settings/evo/components/list.component.ts b/src/app/modules/admin/settings/evo/components/list.component.ts index a62b5a7..911b135 100644 --- a/src/app/modules/admin/settings/evo/components/list.component.ts +++ b/src/app/modules/admin/settings/evo/components/list.component.ts @@ -30,6 +30,7 @@ import { import { fuseAnimations } from '@fuse/animations'; import { FuseConfirmationService } from '@fuse/services/confirmation'; import { EvoService } from '../services/evo.service'; +import { MatSelectChange } from '@angular/material/select'; @Component({ selector: 'settings-evo-list', @@ -62,6 +63,11 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { @ViewChild(MatPaginator) private _paginator!: MatPaginator; @ViewChild(MatSort) private _sort!: MatSort; + amountScopeOptions = [ + { idx: 0, value: '1,000~5,000,000(기본유저)' }, + { idx: 1, value: '1,000~3,000,000(소액유저)' }, + { idx: 2, value: '1,000~20,000,000(고액유저)' }, + ]; evoSettingTableColumns: string[] = [ 'level', 'amountScope', @@ -69,7 +75,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { 'updateBtn', ]; - votaSettingTableColumns: string[] = [ + botaSettingTableColumns: string[] = [ 'level', 'amountScope', 'description', @@ -77,7 +83,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { ]; evoSettingDataSource: MatTableDataSource = new MatTableDataSource(); - votaSettingDataSource: MatTableDataSource = new MatTableDataSource(); + botaSettingDataSource: MatTableDataSource = new MatTableDataSource(); private _unsubscribeAll: Subject = new Subject(); @@ -104,7 +110,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { .pipe(takeUntil(this._unsubscribeAll)) .subscribe((evoSetting: any | undefined) => { this.evoSettingDataSource = evoSetting.evo; - this.votaSettingDataSource = evoSetting.vota; + this.botaSettingDataSource = evoSetting.bota; // Mark for check this._changeDetectorRef.markForCheck(); }); @@ -153,4 +159,6 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { __trackByFn(index: number, item: any): any { return item.id || index; } + + __onSelectionAmountScope(event: MatSelectChange): void {} } diff --git a/src/app/modules/admin/settings/game/components/list.component.html b/src/app/modules/admin/settings/game/components/list.component.html index b128d7c..85a74b2 100644 --- a/src/app/modules/admin/settings/game/components/list.component.html +++ b/src/app/modules/admin/settings/game/components/list.component.html @@ -1 +1,107 @@ -

powerball game setting page

+
+
+
+
+ +
+
+ 게임설정 +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
사이트명 + + + + 파워볼 최소 배팅액 + + + + 파워볼 최대 배팅액 + + + + 파워볼 최대 당첨액 + + + + 수정 + + 삭제 + +
+
+
+
+
+
+
+
diff --git a/src/app/modules/admin/settings/game/components/list.component.ts b/src/app/modules/admin/settings/game/components/list.component.ts index 242a7d5..f96e622 100644 --- a/src/app/modules/admin/settings/game/components/list.component.ts +++ b/src/app/modules/admin/settings/game/components/list.component.ts @@ -17,6 +17,8 @@ import { import { MatCheckboxChange } from '@angular/material/checkbox'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; +import { MatTableDataSource } from '@angular/material/table'; + import { debounceTime, map, @@ -28,6 +30,7 @@ import { } from 'rxjs'; import { fuseAnimations } from '@fuse/animations'; import { FuseConfirmationService } from '@fuse/services/confirmation'; +import { GameService } from '../services/game.service'; @Component({ selector: 'settings-game-list', @@ -39,15 +42,15 @@ import { FuseConfirmationService } from '@fuse/services/confirmation'; grid-template-columns: 60px auto 40px; @screen sm { - grid-template-columns: 60px auto 60px 72px; + grid-template-columns: 100px auto 60px 60px; } @screen md { - grid-template-columns: 60px 60px auto 112px 72px; + grid-template-columns: 100px 100px auto 60px 60px; } @screen lg { - grid-template-columns: 60px 60px auto 112px 96px 96px 72px; + grid-template-columns: 100px 100px 100px 60px 60px; } } `, @@ -62,13 +65,26 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { private _unsubscribeAll: Subject = new Subject(); + gameForm!: FormGroup; + + gameSettingDataSource: MatTableDataSource = new MatTableDataSource(); + gameSettingTableColumns: string[] = [ + 'siteName', + 'minBettingMoney', + 'maxBettingMoney', + 'maxWinMoney', + 'modifyBtn', + 'removeBtn', + ]; + /** * Constructor */ constructor( private _changeDetectorRef: ChangeDetectorRef, private _fuseConfirmationService: FuseConfirmationService, - private _formBuilder: FormBuilder + private _formBuilder: FormBuilder, + private _gameService: GameService ) {} // ----------------------------------------------------------------------------------------------------- @@ -78,7 +94,18 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { /** * On init */ - ngOnInit(): void {} + ngOnInit(): void { + this.gameForm = this._formBuilder.group({}); + + // Get the products + this._gameService.gameSetting$ + .pipe(takeUntil(this._unsubscribeAll)) + .subscribe((gameSetting: any | undefined) => { + this.gameSettingDataSource = gameSetting; + // Mark for check + this._changeDetectorRef.markForCheck(); + }); + } /** * After view init diff --git a/src/app/modules/admin/settings/game/game.module.ts b/src/app/modules/admin/settings/game/game.module.ts index 37d9df9..e738dc8 100644 --- a/src/app/modules/admin/settings/game/game.module.ts +++ b/src/app/modules/admin/settings/game/game.module.ts @@ -11,6 +11,7 @@ import { MatRippleModule } from '@angular/material/core'; import { MatSortModule } from '@angular/material/sort'; import { MatSelectModule } from '@angular/material/select'; import { MatTooltipModule } from '@angular/material/tooltip'; +import { MatTableModule } from '@angular/material/table'; import { TranslocoModule } from '@ngneat/transloco'; @@ -37,6 +38,7 @@ import { gameRoutes } from './game.routing'; MatSortModule, MatSelectModule, MatTooltipModule, + MatTableModule, ], }) export class GameModule {} diff --git a/src/app/modules/admin/settings/game/game.routing.ts b/src/app/modules/admin/settings/game/game.routing.ts index 16bc492..d600768 100644 --- a/src/app/modules/admin/settings/game/game.routing.ts +++ b/src/app/modules/admin/settings/game/game.routing.ts @@ -8,8 +8,8 @@ export const gameRoutes: Route[] = [ { path: '', component: ListComponent, - // resolve: { - // deposits: GameResolver, - // }, + resolve: { + game: GameResolver, + }, }, ]; diff --git a/src/app/modules/admin/settings/indexing/components/list.component.html b/src/app/modules/admin/settings/indexing/components/list.component.html index 9126c50..f134272 100644 --- a/src/app/modules/admin/settings/indexing/components/list.component.html +++ b/src/app/modules/admin/settings/indexing/components/list.component.html @@ -1 +1,31 @@ -

indexing server setting page

+
+
+
+ +
+ +
+ + +
+ 서버 인덱싱 +
+
+

카지노/슬롯 배팅리스트 페이지가 평소보다 느릴경우 사용하세요

+

+ 실행시 서버가 느려질 수 있으니 사용자가 없는 시간에 하시기 바랍니다. +

+

매주 점검 기간에 인덱싱 하니 3~4일에 한번씩만 사용을 권장합니다.

+
+ + +
+ +
+
+
+
diff --git a/src/app/modules/admin/settings/ladder/components/list.component.html b/src/app/modules/admin/settings/ladder/components/list.component.html index 84449d1..dec1a16 100644 --- a/src/app/modules/admin/settings/ladder/components/list.component.html +++ b/src/app/modules/admin/settings/ladder/components/list.component.html @@ -1 +1,98 @@ -

ladder game setting page

+
+
+
+
+ +
+
+ 게임 ON/OFF +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
종목KO + {{ info.game.ko }} + 종목 + {{ info.game.en }} + 사용여부 + + + 메모 + + + + 수정 + + +
+ +
+
+ +
+
+ +
+
+
+
+
+
diff --git a/src/app/modules/admin/settings/ladder/components/list.component.ts b/src/app/modules/admin/settings/ladder/components/list.component.ts index 449f5b7..569ed29 100644 --- a/src/app/modules/admin/settings/ladder/components/list.component.ts +++ b/src/app/modules/admin/settings/ladder/components/list.component.ts @@ -28,6 +28,8 @@ import { } from 'rxjs'; import { fuseAnimations } from '@fuse/animations'; import { FuseConfirmationService } from '@fuse/services/confirmation'; +import { MatTableDataSource } from '@angular/material/table'; +import { LadderService } from '../services/ladder.service'; @Component({ selector: 'settings-ladder-list', @@ -62,13 +64,25 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { private _unsubscribeAll: Subject = new Subject(); + ladderForm!: FormGroup; + + ladderSettingDataSource: MatTableDataSource = new MatTableDataSource(); + ladderSettingTableColumns: string[] = [ + 'gameKo', + 'gameEn', + 'isUse', + 'memo', + 'modifyBtn', + ]; + /** * Constructor */ constructor( private _changeDetectorRef: ChangeDetectorRef, private _fuseConfirmationService: FuseConfirmationService, - private _formBuilder: FormBuilder + private _formBuilder: FormBuilder, + private _ladderService: LadderService ) {} // ----------------------------------------------------------------------------------------------------- @@ -78,7 +92,18 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { /** * On init */ - ngOnInit(): void {} + ngOnInit(): void { + this.ladderForm = this._formBuilder.group({}); + + // Get the products + this._ladderService.ladderSetting$ + .pipe(takeUntil(this._unsubscribeAll)) + .subscribe((ladderSetting: any | undefined) => { + this.ladderSettingDataSource = ladderSetting; + // Mark for check + this._changeDetectorRef.markForCheck(); + }); + } /** * After view init diff --git a/src/app/modules/admin/settings/ladder/ladder.module.ts b/src/app/modules/admin/settings/ladder/ladder.module.ts index 65bd841..bce622c 100644 --- a/src/app/modules/admin/settings/ladder/ladder.module.ts +++ b/src/app/modules/admin/settings/ladder/ladder.module.ts @@ -11,6 +11,8 @@ import { MatRippleModule } from '@angular/material/core'; import { MatSortModule } from '@angular/material/sort'; import { MatSelectModule } from '@angular/material/select'; import { MatTooltipModule } from '@angular/material/tooltip'; +import { MatTableModule } from '@angular/material/table'; +import { MatSlideToggleModule } from '@angular/material/slide-toggle'; import { TranslocoModule } from '@ngneat/transloco'; @@ -37,6 +39,8 @@ import { ladderRoutes } from './ladder.routing'; MatSortModule, MatSelectModule, MatTooltipModule, + MatTableModule, + MatSlideToggleModule, ], }) export class LadderModule {} diff --git a/src/app/modules/admin/settings/ladder/ladder.routing.ts b/src/app/modules/admin/settings/ladder/ladder.routing.ts index bc8ac9e..5ead48f 100644 --- a/src/app/modules/admin/settings/ladder/ladder.routing.ts +++ b/src/app/modules/admin/settings/ladder/ladder.routing.ts @@ -8,8 +8,8 @@ export const ladderRoutes: Route[] = [ { path: '', component: ListComponent, - // resolve: { - // ladder: LadderResolver, - // }, + resolve: { + ladder: LadderResolver, + }, }, ];