From 32f1b5a083fe00ff9f0ebcb6b39b1e16be65cd39 Mon Sep 17 00:00:00 2001 From: byung eun park Date: Thu, 5 Sep 2019 17:07:25 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=8C=EC=9D=BC=EC=A0=95=EB=A6=AC=20?= =?UTF-8?q?=EB=B0=8F=20=EB=A9=94=EB=89=B4=20=EB=9D=BC=EC=9A=B0=ED=8A=B8=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/navigation/i18n/en.ts | 29 ++++----- src/app/navigation/i18n/ko.ts | 29 ++++----- src/app/navigation/navigation.ts | 54 +++++++++------- .../bet-history/bet-history.component.spec.ts | 25 -------- .../excel-regist.component.spec.ts | 25 -------- .../except-auto-regist.component.spec.ts | 25 -------- src/app/pages/games/component/index.ts | 23 ------- .../item-management.component.spec.ts | 25 -------- .../mini-game-settings.component.spec.ts | 25 -------- .../mini-game/mini-game.component.spec.ts | 25 -------- .../settlement/settlement.component.spec.ts | 25 -------- .../sport-mix/sport-mix.component.spec.ts | 25 -------- .../sport-result.component.spec.ts | 25 -------- .../component}/bet-history.component.html | 0 .../component}/bet-history.component.scss | 0 .../component}/bet-history.component.ts | 0 .../component}/excel-regist.component.html | 0 .../component}/excel-regist.component.scss | 0 .../component}/excel-regist.component.ts | 0 .../except-auto-regist.component.html | 0 .../except-auto-regist.component.scss | 0 .../except-auto-regist.component.ts | 0 src/app/pages/games/game/component/index.ts | 23 +++++++ .../component}/item-management.component.html | 0 .../component}/item-management.component.scss | 0 .../component}/item-management.component.ts | 0 .../league-management.component.html | 0 .../league-management.component.scss | 0 .../component}/league-management.component.ts | 0 .../league-management.data-source.ts | 0 .../mini-game-settings.component.html | 0 .../mini-game-settings.component.scss | 0 .../mini-game-settings.component.ts | 0 .../component}/mini-game.component.html | 0 .../component}/mini-game.component.scss | 0 .../component}/mini-game.component.ts | 0 .../component}/settlement.component.html | 0 .../component}/settlement.component.scss | 0 .../component}/settlement.component.ts | 0 .../component}/sport-mix.component.html | 0 .../component}/sport-mix.component.scss | 0 .../component}/sport-mix.component.ts | 0 .../component}/sport-result.component.html | 0 .../component}/sport-result.component.scss | 0 .../component}/sport-result.component.ts | 0 .../pages/games/game/game-routing.module.ts | 61 ++++++++++++++++++ .../manage.module.ts => game/game.module.ts} | 16 ++--- .../pages/games/{ => game}/resolver/index.ts | 0 src/app/pages/games/games-routing.module.ts | 4 +- .../games/manage/manage-routing.module.ts | 63 ------------------- src/app/pages/infos/info/component/index.ts | 3 + .../component/service-center.component.html | 1 + .../component/service-center.component.scss | 0 .../component/service-center.component.ts | 12 ++++ .../pages/infos/info/info-routing.module.ts | 16 +++++ src/app/pages/infos/info/info.module.ts | 46 ++++++++++++++ src/app/pages/infos/infos-routing.module.ts | 15 +++++ src/app/pages/infos/infos.module.ts | 9 +++ .../money/component/deposit.component.html | 1 + .../money/component/deposit.component.scss | 0 .../money/component/deposit.component.ts | 12 ++++ src/app/pages/moneys/money/component/index.ts | 3 + .../moneys/money/money-routing.module.ts | 17 +++++ src/app/pages/moneys/money/money.module.ts | 46 ++++++++++++++ src/app/pages/moneys/moneys-routing.module.ts | 15 +++++ src/app/pages/moneys/moneys.module.ts | 8 +++ src/app/pages/pages-routing.module.ts | 12 ++++ .../special/component/coupon.component.html | 1 + .../special/component/coupon.component.scss | 0 .../special/component/coupon.component.ts | 12 ++++ .../pages/specials/special/component/index.ts | 3 + .../special/special-routing.module.ts | 17 +++++ .../pages/specials/special/special.module.ts | 46 ++++++++++++++ .../pages/specials/specials-routing.module.ts | 15 +++++ src/app/pages/specials/specials.module.ts | 8 +++ .../users/user/component/user-list.service.ts | 60 ------------------ 76 files changed, 474 insertions(+), 431 deletions(-) delete mode 100644 src/app/pages/games/component/bet-history/bet-history.component.spec.ts delete mode 100644 src/app/pages/games/component/excel-regist/excel-regist.component.spec.ts delete mode 100644 src/app/pages/games/component/except-auto-regist/except-auto-regist.component.spec.ts delete mode 100644 src/app/pages/games/component/index.ts delete mode 100644 src/app/pages/games/component/item-management/item-management.component.spec.ts delete mode 100644 src/app/pages/games/component/mini-game-settings/mini-game-settings.component.spec.ts delete mode 100644 src/app/pages/games/component/mini-game/mini-game.component.spec.ts delete mode 100644 src/app/pages/games/component/settlement/settlement.component.spec.ts delete mode 100644 src/app/pages/games/component/sport-mix/sport-mix.component.spec.ts delete mode 100644 src/app/pages/games/component/sport-result/sport-result.component.spec.ts rename src/app/pages/games/{component/bet-history => game/component}/bet-history.component.html (100%) rename src/app/pages/games/{component/bet-history => game/component}/bet-history.component.scss (100%) rename src/app/pages/games/{component/bet-history => game/component}/bet-history.component.ts (100%) rename src/app/pages/games/{component/excel-regist => game/component}/excel-regist.component.html (100%) rename src/app/pages/games/{component/excel-regist => game/component}/excel-regist.component.scss (100%) rename src/app/pages/games/{component/excel-regist => game/component}/excel-regist.component.ts (100%) rename src/app/pages/games/{component/except-auto-regist => game/component}/except-auto-regist.component.html (100%) rename src/app/pages/games/{component/except-auto-regist => game/component}/except-auto-regist.component.scss (100%) rename src/app/pages/games/{component/except-auto-regist => game/component}/except-auto-regist.component.ts (100%) create mode 100644 src/app/pages/games/game/component/index.ts rename src/app/pages/games/{component/item-management => game/component}/item-management.component.html (100%) rename src/app/pages/games/{component/item-management => game/component}/item-management.component.scss (100%) rename src/app/pages/games/{component/item-management => game/component}/item-management.component.ts (100%) rename src/app/pages/games/{component/league-management => game/component}/league-management.component.html (100%) rename src/app/pages/games/{component/league-management => game/component}/league-management.component.scss (100%) rename src/app/pages/games/{component/league-management => game/component}/league-management.component.ts (100%) rename src/app/pages/games/{component/league-management => game/component}/league-management.data-source.ts (100%) rename src/app/pages/games/{component/mini-game-settings => game/component}/mini-game-settings.component.html (100%) rename src/app/pages/games/{component/mini-game-settings => game/component}/mini-game-settings.component.scss (100%) rename src/app/pages/games/{component/mini-game-settings => game/component}/mini-game-settings.component.ts (100%) rename src/app/pages/games/{component/mini-game => game/component}/mini-game.component.html (100%) rename src/app/pages/games/{component/mini-game => game/component}/mini-game.component.scss (100%) rename src/app/pages/games/{component/mini-game => game/component}/mini-game.component.ts (100%) rename src/app/pages/games/{component/settlement => game/component}/settlement.component.html (100%) rename src/app/pages/games/{component/settlement => game/component}/settlement.component.scss (100%) rename src/app/pages/games/{component/settlement => game/component}/settlement.component.ts (100%) rename src/app/pages/games/{component/sport-mix => game/component}/sport-mix.component.html (100%) rename src/app/pages/games/{component/sport-mix => game/component}/sport-mix.component.scss (100%) rename src/app/pages/games/{component/sport-mix => game/component}/sport-mix.component.ts (100%) rename src/app/pages/games/{component/sport-result => game/component}/sport-result.component.html (100%) rename src/app/pages/games/{component/sport-result => game/component}/sport-result.component.scss (100%) rename src/app/pages/games/{component/sport-result => game/component}/sport-result.component.ts (100%) create mode 100644 src/app/pages/games/game/game-routing.module.ts rename src/app/pages/games/{manage/manage.module.ts => game/game.module.ts} (87%) rename src/app/pages/games/{ => game}/resolver/index.ts (100%) delete mode 100644 src/app/pages/games/manage/manage-routing.module.ts create mode 100644 src/app/pages/infos/info/component/index.ts create mode 100644 src/app/pages/infos/info/component/service-center.component.html create mode 100644 src/app/pages/infos/info/component/service-center.component.scss create mode 100644 src/app/pages/infos/info/component/service-center.component.ts create mode 100644 src/app/pages/infos/info/info-routing.module.ts create mode 100644 src/app/pages/infos/info/info.module.ts create mode 100644 src/app/pages/infos/infos-routing.module.ts create mode 100644 src/app/pages/infos/infos.module.ts create mode 100644 src/app/pages/moneys/money/component/deposit.component.html create mode 100644 src/app/pages/moneys/money/component/deposit.component.scss create mode 100644 src/app/pages/moneys/money/component/deposit.component.ts create mode 100644 src/app/pages/moneys/money/component/index.ts create mode 100644 src/app/pages/moneys/money/money-routing.module.ts create mode 100644 src/app/pages/moneys/money/money.module.ts create mode 100644 src/app/pages/moneys/moneys-routing.module.ts create mode 100644 src/app/pages/moneys/moneys.module.ts create mode 100644 src/app/pages/specials/special/component/coupon.component.html create mode 100644 src/app/pages/specials/special/component/coupon.component.scss create mode 100644 src/app/pages/specials/special/component/coupon.component.ts create mode 100644 src/app/pages/specials/special/component/index.ts create mode 100644 src/app/pages/specials/special/special-routing.module.ts create mode 100644 src/app/pages/specials/special/special.module.ts create mode 100644 src/app/pages/specials/specials-routing.module.ts create mode 100644 src/app/pages/specials/specials.module.ts delete mode 100644 src/app/pages/users/user/component/user-list.service.ts diff --git a/src/app/navigation/i18n/en.ts b/src/app/navigation/i18n/en.ts index 03bc766..ee3f45e 100644 --- a/src/app/navigation/i18n/en.ts +++ b/src/app/navigation/i18n/en.ts @@ -3,35 +3,36 @@ export const locale = { data: { NAV: { DASHBOARD: '대시보드', + STATICS: '통계보기', APPLICATIONS: '어플리케이션', USERS: { TITLE: 'User-Management', LIST: { - TITLE: 'User List', + TITLE: 'User List' }, CONNECT_LIST: { - TITLE: 'Current Connect List', + TITLE: 'Current Connect List' }, REGIST: { - TITLE: 'SignUp', + TITLE: 'SignUp' }, FEES_MANAGEMENT: { - TITLE: 'Fees Management', + TITLE: 'Fees Management' }, ATTENDANCE_MANAGEMENT: { - TITLE: 'Attendance Management', - }, + TITLE: 'Attendance Management' + } }, GAME: { TITLE: 'Game Management', SPORT_RESULT: { - TITLE: 'Sport Result Management', + TITLE: 'Sport Result Management' }, SPORT_MIX: { - TITLE: 'Sport Mix Management', + TITLE: 'Sport Mix Management' }, MINI_GAME: { - TITLE: 'Mini Game', + TITLE: 'Mini Game' }, MINI_GAME_MANAGEMENT: { TITLE: 'Mini Game Management' @@ -53,7 +54,7 @@ export const locale = { }, EXCEPT_AUTO_REGIST: { TITLE: 'Except Auto Regist' - }, + } }, DEPOSIT_WITHDRAWAL: { TITLE: 'Depost/Withdrawal Management', @@ -71,7 +72,7 @@ export const locale = { }, DAILY_SETTLEMENT: { TITLE: 'Daily Settlement' - }, + } }, INFO: { TITLE: 'Info Management', @@ -119,7 +120,7 @@ export const locale = { }, SET_LEVEL: { TITLE: 'Level Manage' - }, + } }, SPECIAL: { TITLE: '특수관리', @@ -137,10 +138,10 @@ export const locale = { }, CHECK_NOTICE: { TITLE: 'Check Notice' - }, + } }, SUPPORT: { - TITLE: 'Support Management', + TITLE: 'Support Management' } } } diff --git a/src/app/navigation/i18n/ko.ts b/src/app/navigation/i18n/ko.ts index c22ea62..72daed7 100644 --- a/src/app/navigation/i18n/ko.ts +++ b/src/app/navigation/i18n/ko.ts @@ -3,35 +3,36 @@ export const locale = { data: { NAV: { DASHBOARD: '대시보드', + STATICS: '통계보기', APPLICATIONS: '어플리케이션', USERS: { TITLE: '회원관리', LIST: { - TITLE: '회원 리스트', + TITLE: '회원 리스트' }, CONNECT_LIST: { - TITLE: '현재접속자', + TITLE: '현재접속자' }, REGIST: { - TITLE: '회원가입', + TITLE: '회원가입' }, FEES_MANAGEMENT: { - TITLE: '커미션 설정', + TITLE: '커미션 설정' }, ATTENDANCE_MANAGEMENT: { - TITLE: '출석 관리', - }, + TITLE: '출석 관리' + } }, GAME: { TITLE: '게임관리', SPORT_RESULT: { - TITLE: '결과입력 및 수정', + TITLE: '결과입력 및 수정' }, SPORT_MIX: { - TITLE: '스포츠 조합설정', + TITLE: '스포츠 조합설정' }, MINI_GAME: { - TITLE: '미니게임', + TITLE: '미니게임' }, MINI_GAME_MANAGEMENT: { TITLE: '미니게임 관리' @@ -53,7 +54,7 @@ export const locale = { }, EXCEPT_AUTO_REGIST: { TITLE: '자동등록 제외' - }, + } }, DEPOSIT_WITHDRAWAL: { TITLE: '입출금 관리', @@ -71,7 +72,7 @@ export const locale = { }, DAILY_SETTLEMENT: { TITLE: '일일정산' - }, + } }, INFO: { TITLE: '정보관리', @@ -119,7 +120,7 @@ export const locale = { }, SET_LEVEL: { TITLE: '레벨 설정관리' - }, + } }, SPECIAL: { TITLE: '특수관리', @@ -137,10 +138,10 @@ export const locale = { }, CHECK_NOTICE: { TITLE: '점검공지 관리' - }, + } }, SUPPORT: { - TITLE: '받치기관리', + TITLE: '받치기관리' } } } diff --git a/src/app/navigation/navigation.ts b/src/app/navigation/navigation.ts index cbf292f..64e3fdf 100644 --- a/src/app/navigation/navigation.ts +++ b/src/app/navigation/navigation.ts @@ -9,6 +9,14 @@ export const navigation: FuseNavigation[] = [ icon: 'dashboard', url: '/dashboard' }, + { + id: 'statics', + title: '통계보기', + translate: 'NAV.STATICS', + type: 'item', + icon: 'assessment', + url: '/pages/statics' + }, { id: 'users', title: '회원 관리', @@ -159,7 +167,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.DEPOSIT_WITHDRAWAL.DEPOST.TITLE', type: 'item', icon: 'email', - url: '/pages/deposit/management/deposit-management' + url: '/pages/moneys/management/deposit' }, { id: 'withdrawal', @@ -167,7 +175,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.DEPOSIT_WITHDRAWAL.WITHDRAWAL.TITLE', type: 'item', icon: 'email', - url: '/pages/deposit/management/withdrawal-management' + url: '/pages/moneys/management/withdrawal' }, { id: 'money_log', @@ -175,7 +183,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.DEPOSIT_WITHDRAWAL.MONEY_LOG.TITLE', type: 'item', icon: 'email', - url: '/pages/deposit/management/money-log' + url: '/pages/moneys/management/money-log' }, { id: 'point_log', @@ -183,7 +191,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.DEPOSIT_WITHDRAWAL.POINT_LOG.TITLE', type: 'item', icon: 'email', - url: '/pages/deposit/management/point-log' + url: '/pages/moneys/management/point-log' }, { id: 'daily_settlement', @@ -191,7 +199,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.DEPOSIT_WITHDRAWAL.DAILY_SETTLEMENT.TITLE', type: 'item', icon: 'email', - url: '/pages/deposit/management/dauly-settlement' + url: '/pages/moneys/management/daily' } ] }, @@ -207,7 +215,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.INFO.SERVICE_CENTER_MANAGEMENT.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/infos/management/service-center' }, { id: 'send_message', @@ -215,7 +223,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.INFO.SEND_MESSAGE_MANAGEMENT.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/infos/management/send-message' }, { id: 'free_board', @@ -223,7 +231,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.INFO.FREE_BOARD_MANAGEMENT.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/infos/management/free' }, { id: 'bet_rule', @@ -231,7 +239,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.INFO.BET_RULE.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/infos/management/bet-rule' }, { id: 'popup_setting', @@ -239,7 +247,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.INFO.POPUP_SETTING.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/infos/management/popup-set' }, { id: 'main_event_regist', @@ -247,7 +255,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.INFO.MAIN_EVENT_REGIST.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/infos/management/event-regist' }, { id: 'notice_board', @@ -255,7 +263,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.INFO.NOTICE_BOARD_MANAGEMENT.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/infos/management/notice' }, { id: 'board_regist', @@ -263,7 +271,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.INFO.BOARD_REGIST.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/infos/management/board-regist' } ] }, @@ -279,7 +287,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.SITE.DEFAULT_SET.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/sites/configs' }, { id: 'account_separate', @@ -295,7 +303,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.SITE.SET_BET_AMOUNT.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/sites/bet-amount' }, { id: 'block_ip', @@ -303,7 +311,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.SITE.BLOCK_IP.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/sites/block-ip' }, { id: 'admin_ip', @@ -311,7 +319,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.SITE.ADMIN_IP.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/sites/admin-ip' }, { id: 'set_level', @@ -319,7 +327,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.SITE.SET_LEVEL.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/sites/level' } ] }, @@ -335,7 +343,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.SPECIAL.ROULETTE_COUPON.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/specials/management/coupon' }, { id: 'fix_bonus', @@ -343,7 +351,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.SPECIAL.FIX_BONUS.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/specials/management/bonus' }, { id: 'mini_game_martin', @@ -351,7 +359,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.SPECIAL.MINI_GAME_MARTIN.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/specials/management/martin' }, { id: 'set_alert', @@ -359,7 +367,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.SPECIAL.SET_ALERT.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/specials/management/alert' }, { id: 'check_notice', @@ -367,7 +375,7 @@ export const navigation: FuseNavigation[] = [ translate: 'NAV.SPECIAL.CHECK_NOTICE.TITLE', type: 'item', icon: 'email', - url: '/sample' + url: '/pages/specials/management/check-notice' } ] }, diff --git a/src/app/pages/games/component/bet-history/bet-history.component.spec.ts b/src/app/pages/games/component/bet-history/bet-history.component.spec.ts deleted file mode 100644 index 78d963e..0000000 --- a/src/app/pages/games/component/bet-history/bet-history.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { BetHistoryComponent } from './bet-history.component'; - -describe('BetHistoryComponent', () => { - let component: BetHistoryComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ BetHistoryComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(BetHistoryComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/pages/games/component/excel-regist/excel-regist.component.spec.ts b/src/app/pages/games/component/excel-regist/excel-regist.component.spec.ts deleted file mode 100644 index 914279f..0000000 --- a/src/app/pages/games/component/excel-regist/excel-regist.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { ExcelRegistComponent } from './excel-regist.component'; - -describe('ExcelRegistComponent', () => { - let component: ExcelRegistComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ ExcelRegistComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ExcelRegistComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/pages/games/component/except-auto-regist/except-auto-regist.component.spec.ts b/src/app/pages/games/component/except-auto-regist/except-auto-regist.component.spec.ts deleted file mode 100644 index a752a7d..0000000 --- a/src/app/pages/games/component/except-auto-regist/except-auto-regist.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { ExceptAutoRegistComponent } from './except-auto-regist.component'; - -describe('ExceptAutoRegistComponent', () => { - let component: ExceptAutoRegistComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ ExceptAutoRegistComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ExceptAutoRegistComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/pages/games/component/index.ts b/src/app/pages/games/component/index.ts deleted file mode 100644 index cfce932..0000000 --- a/src/app/pages/games/component/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { SportResultComponent } from './sport-result/sport-result.component'; -import { SportMixComponent } from '../component/sport-mix/sport-mix.component'; -import { MiniGameComponent } from '../component/mini-game/mini-game.component'; -import { MiniGameSettingsComponent } from '../component/mini-game-settings/mini-game-settings.component'; -import { ExcelRegistComponent } from '../component/excel-regist/excel-regist.component'; -import { BetHistoryComponent } from '../component/bet-history/bet-history.component'; -import { SettlementComponent } from '../component/settlement/settlement.component'; -import { ItemManagementComponent } from '../component/item-management/item-management.component'; -import { LeagueManagementComponent } from '../component/league-management/league-management.component'; -import { ExceptAutoRegistComponent } from '../component/except-auto-regist/except-auto-regist.component'; - -export const COMPONENTS = [ - SportResultComponent, - SportMixComponent, - MiniGameComponent, - MiniGameSettingsComponent, - ExcelRegistComponent, - BetHistoryComponent, - SettlementComponent, - ItemManagementComponent, - LeagueManagementComponent, - ExceptAutoRegistComponent -]; diff --git a/src/app/pages/games/component/item-management/item-management.component.spec.ts b/src/app/pages/games/component/item-management/item-management.component.spec.ts deleted file mode 100644 index c01e5e4..0000000 --- a/src/app/pages/games/component/item-management/item-management.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { ItemManagementComponent } from './item-management.component'; - -describe('ItemManagementComponent', () => { - let component: ItemManagementComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ ItemManagementComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemManagementComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/pages/games/component/mini-game-settings/mini-game-settings.component.spec.ts b/src/app/pages/games/component/mini-game-settings/mini-game-settings.component.spec.ts deleted file mode 100644 index d9d2f2c..0000000 --- a/src/app/pages/games/component/mini-game-settings/mini-game-settings.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { MiniGameSettingsComponent } from './mini-game-settings.component'; - -describe('MiniGameSettingsComponent', () => { - let component: MiniGameSettingsComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ MiniGameSettingsComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MiniGameSettingsComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/pages/games/component/mini-game/mini-game.component.spec.ts b/src/app/pages/games/component/mini-game/mini-game.component.spec.ts deleted file mode 100644 index 491e82b..0000000 --- a/src/app/pages/games/component/mini-game/mini-game.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { MiniGameComponent } from './mini-game.component'; - -describe('MiniGameComponent', () => { - let component: MiniGameComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ MiniGameComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MiniGameComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/pages/games/component/settlement/settlement.component.spec.ts b/src/app/pages/games/component/settlement/settlement.component.spec.ts deleted file mode 100644 index 7f2b46a..0000000 --- a/src/app/pages/games/component/settlement/settlement.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { SettlementComponent } from './settlement.component'; - -describe('SettlementComponent', () => { - let component: SettlementComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ SettlementComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(SettlementComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/pages/games/component/sport-mix/sport-mix.component.spec.ts b/src/app/pages/games/component/sport-mix/sport-mix.component.spec.ts deleted file mode 100644 index 2160010..0000000 --- a/src/app/pages/games/component/sport-mix/sport-mix.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { SportMixComponent } from './sport-mix.component'; - -describe('SportMixComponent', () => { - let component: SportMixComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ SportMixComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(SportMixComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/pages/games/component/sport-result/sport-result.component.spec.ts b/src/app/pages/games/component/sport-result/sport-result.component.spec.ts deleted file mode 100644 index b8db036..0000000 --- a/src/app/pages/games/component/sport-result/sport-result.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { SportResultComponent } from './sport-result.component'; - -describe('SportResultComponent', () => { - let component: SportResultComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ SportResultComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(SportResultComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/pages/games/component/bet-history/bet-history.component.html b/src/app/pages/games/game/component/bet-history.component.html similarity index 100% rename from src/app/pages/games/component/bet-history/bet-history.component.html rename to src/app/pages/games/game/component/bet-history.component.html diff --git a/src/app/pages/games/component/bet-history/bet-history.component.scss b/src/app/pages/games/game/component/bet-history.component.scss similarity index 100% rename from src/app/pages/games/component/bet-history/bet-history.component.scss rename to src/app/pages/games/game/component/bet-history.component.scss diff --git a/src/app/pages/games/component/bet-history/bet-history.component.ts b/src/app/pages/games/game/component/bet-history.component.ts similarity index 100% rename from src/app/pages/games/component/bet-history/bet-history.component.ts rename to src/app/pages/games/game/component/bet-history.component.ts diff --git a/src/app/pages/games/component/excel-regist/excel-regist.component.html b/src/app/pages/games/game/component/excel-regist.component.html similarity index 100% rename from src/app/pages/games/component/excel-regist/excel-regist.component.html rename to src/app/pages/games/game/component/excel-regist.component.html diff --git a/src/app/pages/games/component/excel-regist/excel-regist.component.scss b/src/app/pages/games/game/component/excel-regist.component.scss similarity index 100% rename from src/app/pages/games/component/excel-regist/excel-regist.component.scss rename to src/app/pages/games/game/component/excel-regist.component.scss diff --git a/src/app/pages/games/component/excel-regist/excel-regist.component.ts b/src/app/pages/games/game/component/excel-regist.component.ts similarity index 100% rename from src/app/pages/games/component/excel-regist/excel-regist.component.ts rename to src/app/pages/games/game/component/excel-regist.component.ts diff --git a/src/app/pages/games/component/except-auto-regist/except-auto-regist.component.html b/src/app/pages/games/game/component/except-auto-regist.component.html similarity index 100% rename from src/app/pages/games/component/except-auto-regist/except-auto-regist.component.html rename to src/app/pages/games/game/component/except-auto-regist.component.html diff --git a/src/app/pages/games/component/except-auto-regist/except-auto-regist.component.scss b/src/app/pages/games/game/component/except-auto-regist.component.scss similarity index 100% rename from src/app/pages/games/component/except-auto-regist/except-auto-regist.component.scss rename to src/app/pages/games/game/component/except-auto-regist.component.scss diff --git a/src/app/pages/games/component/except-auto-regist/except-auto-regist.component.ts b/src/app/pages/games/game/component/except-auto-regist.component.ts similarity index 100% rename from src/app/pages/games/component/except-auto-regist/except-auto-regist.component.ts rename to src/app/pages/games/game/component/except-auto-regist.component.ts diff --git a/src/app/pages/games/game/component/index.ts b/src/app/pages/games/game/component/index.ts new file mode 100644 index 0000000..d3fc728 --- /dev/null +++ b/src/app/pages/games/game/component/index.ts @@ -0,0 +1,23 @@ +import { SportResultComponent } from './sport-result.component'; +import { SportMixComponent } from './sport-mix.component'; +import { MiniGameComponent } from './mini-game.component'; +import { MiniGameSettingsComponent } from './mini-game-settings.component'; +import { ExcelRegistComponent } from './excel-regist.component'; +import { BetHistoryComponent } from './bet-history.component'; +import { SettlementComponent } from './settlement.component'; +import { ItemManagementComponent } from './item-management.component'; +import { LeagueManagementComponent } from './league-management.component'; +import { ExceptAutoRegistComponent } from './except-auto-regist.component'; + +export const COMPONENTS = [ + SportResultComponent, + SportMixComponent, + MiniGameComponent, + MiniGameSettingsComponent, + ExcelRegistComponent, + BetHistoryComponent, + SettlementComponent, + ItemManagementComponent, + LeagueManagementComponent, + ExceptAutoRegistComponent +]; diff --git a/src/app/pages/games/component/item-management/item-management.component.html b/src/app/pages/games/game/component/item-management.component.html similarity index 100% rename from src/app/pages/games/component/item-management/item-management.component.html rename to src/app/pages/games/game/component/item-management.component.html diff --git a/src/app/pages/games/component/item-management/item-management.component.scss b/src/app/pages/games/game/component/item-management.component.scss similarity index 100% rename from src/app/pages/games/component/item-management/item-management.component.scss rename to src/app/pages/games/game/component/item-management.component.scss diff --git a/src/app/pages/games/component/item-management/item-management.component.ts b/src/app/pages/games/game/component/item-management.component.ts similarity index 100% rename from src/app/pages/games/component/item-management/item-management.component.ts rename to src/app/pages/games/game/component/item-management.component.ts diff --git a/src/app/pages/games/component/league-management/league-management.component.html b/src/app/pages/games/game/component/league-management.component.html similarity index 100% rename from src/app/pages/games/component/league-management/league-management.component.html rename to src/app/pages/games/game/component/league-management.component.html diff --git a/src/app/pages/games/component/league-management/league-management.component.scss b/src/app/pages/games/game/component/league-management.component.scss similarity index 100% rename from src/app/pages/games/component/league-management/league-management.component.scss rename to src/app/pages/games/game/component/league-management.component.scss diff --git a/src/app/pages/games/component/league-management/league-management.component.ts b/src/app/pages/games/game/component/league-management.component.ts similarity index 100% rename from src/app/pages/games/component/league-management/league-management.component.ts rename to src/app/pages/games/game/component/league-management.component.ts diff --git a/src/app/pages/games/component/league-management/league-management.data-source.ts b/src/app/pages/games/game/component/league-management.data-source.ts similarity index 100% rename from src/app/pages/games/component/league-management/league-management.data-source.ts rename to src/app/pages/games/game/component/league-management.data-source.ts diff --git a/src/app/pages/games/component/mini-game-settings/mini-game-settings.component.html b/src/app/pages/games/game/component/mini-game-settings.component.html similarity index 100% rename from src/app/pages/games/component/mini-game-settings/mini-game-settings.component.html rename to src/app/pages/games/game/component/mini-game-settings.component.html diff --git a/src/app/pages/games/component/mini-game-settings/mini-game-settings.component.scss b/src/app/pages/games/game/component/mini-game-settings.component.scss similarity index 100% rename from src/app/pages/games/component/mini-game-settings/mini-game-settings.component.scss rename to src/app/pages/games/game/component/mini-game-settings.component.scss diff --git a/src/app/pages/games/component/mini-game-settings/mini-game-settings.component.ts b/src/app/pages/games/game/component/mini-game-settings.component.ts similarity index 100% rename from src/app/pages/games/component/mini-game-settings/mini-game-settings.component.ts rename to src/app/pages/games/game/component/mini-game-settings.component.ts diff --git a/src/app/pages/games/component/mini-game/mini-game.component.html b/src/app/pages/games/game/component/mini-game.component.html similarity index 100% rename from src/app/pages/games/component/mini-game/mini-game.component.html rename to src/app/pages/games/game/component/mini-game.component.html diff --git a/src/app/pages/games/component/mini-game/mini-game.component.scss b/src/app/pages/games/game/component/mini-game.component.scss similarity index 100% rename from src/app/pages/games/component/mini-game/mini-game.component.scss rename to src/app/pages/games/game/component/mini-game.component.scss diff --git a/src/app/pages/games/component/mini-game/mini-game.component.ts b/src/app/pages/games/game/component/mini-game.component.ts similarity index 100% rename from src/app/pages/games/component/mini-game/mini-game.component.ts rename to src/app/pages/games/game/component/mini-game.component.ts diff --git a/src/app/pages/games/component/settlement/settlement.component.html b/src/app/pages/games/game/component/settlement.component.html similarity index 100% rename from src/app/pages/games/component/settlement/settlement.component.html rename to src/app/pages/games/game/component/settlement.component.html diff --git a/src/app/pages/games/component/settlement/settlement.component.scss b/src/app/pages/games/game/component/settlement.component.scss similarity index 100% rename from src/app/pages/games/component/settlement/settlement.component.scss rename to src/app/pages/games/game/component/settlement.component.scss diff --git a/src/app/pages/games/component/settlement/settlement.component.ts b/src/app/pages/games/game/component/settlement.component.ts similarity index 100% rename from src/app/pages/games/component/settlement/settlement.component.ts rename to src/app/pages/games/game/component/settlement.component.ts diff --git a/src/app/pages/games/component/sport-mix/sport-mix.component.html b/src/app/pages/games/game/component/sport-mix.component.html similarity index 100% rename from src/app/pages/games/component/sport-mix/sport-mix.component.html rename to src/app/pages/games/game/component/sport-mix.component.html diff --git a/src/app/pages/games/component/sport-mix/sport-mix.component.scss b/src/app/pages/games/game/component/sport-mix.component.scss similarity index 100% rename from src/app/pages/games/component/sport-mix/sport-mix.component.scss rename to src/app/pages/games/game/component/sport-mix.component.scss diff --git a/src/app/pages/games/component/sport-mix/sport-mix.component.ts b/src/app/pages/games/game/component/sport-mix.component.ts similarity index 100% rename from src/app/pages/games/component/sport-mix/sport-mix.component.ts rename to src/app/pages/games/game/component/sport-mix.component.ts diff --git a/src/app/pages/games/component/sport-result/sport-result.component.html b/src/app/pages/games/game/component/sport-result.component.html similarity index 100% rename from src/app/pages/games/component/sport-result/sport-result.component.html rename to src/app/pages/games/game/component/sport-result.component.html diff --git a/src/app/pages/games/component/sport-result/sport-result.component.scss b/src/app/pages/games/game/component/sport-result.component.scss similarity index 100% rename from src/app/pages/games/component/sport-result/sport-result.component.scss rename to src/app/pages/games/game/component/sport-result.component.scss diff --git a/src/app/pages/games/component/sport-result/sport-result.component.ts b/src/app/pages/games/game/component/sport-result.component.ts similarity index 100% rename from src/app/pages/games/component/sport-result/sport-result.component.ts rename to src/app/pages/games/game/component/sport-result.component.ts diff --git a/src/app/pages/games/game/game-routing.module.ts b/src/app/pages/games/game/game-routing.module.ts new file mode 100644 index 0000000..27724df --- /dev/null +++ b/src/app/pages/games/game/game-routing.module.ts @@ -0,0 +1,61 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; +import { SportResultComponent } from './component/sport-result.component'; +import { SportMixComponent } from './component/sport-mix.component'; +import { MiniGameComponent } from './component/mini-game.component'; +import { MiniGameSettingsComponent } from './component/mini-game-settings.component'; +import { ExcelRegistComponent } from './component/excel-regist.component'; +import { BetHistoryComponent } from './component/bet-history.component'; +import { SettlementComponent } from './component/settlement.component'; +import { ItemManagementComponent } from './component/item-management.component'; +import { LeagueManagementComponent } from './component/league-management.component'; +import { ExceptAutoRegistComponent } from './component/except-auto-regist.component'; + +const routes: Routes = [ + { + path: 'sport-result', + component: SportResultComponent + }, + { + path: 'sport-mix', + component: SportMixComponent + }, + { + path: 'mini-game', + component: MiniGameComponent + }, + { + path: 'mini-game-settings', + component: MiniGameSettingsComponent + }, + { + path: 'excel-regist', + component: ExcelRegistComponent + }, + { + path: 'bet-history', + component: BetHistoryComponent + }, + { + path: 'settlement', + component: SettlementComponent + }, + { + path: 'item-management', + component: ItemManagementComponent + }, + { + path: 'league-management', + component: LeagueManagementComponent + }, + { + path: 'except-auto-regist', + component: ExceptAutoRegistComponent + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class GameRoutingModule {} diff --git a/src/app/pages/games/manage/manage.module.ts b/src/app/pages/games/game/game.module.ts similarity index 87% rename from src/app/pages/games/manage/manage.module.ts rename to src/app/pages/games/game/game.module.ts index 49ec70f..b2aa048 100644 --- a/src/app/pages/games/manage/manage.module.ts +++ b/src/app/pages/games/game/game.module.ts @@ -18,11 +18,14 @@ import { MatDatepickerModule } from '@angular/material/datepicker'; import { MatDialogModule } from '@angular/material/dialog'; import { MatToolbarModule } from '@angular/material/toolbar'; import { MatTooltipModule } from '@angular/material/tooltip'; -import { CalendarModule as AngularCalendarModule, DateAdapter } from 'angular-calendar'; +import { + CalendarModule as AngularCalendarModule, + DateAdapter +} from 'angular-calendar'; import { FuseSharedModule } from 'src/@fuse/shared.module'; -import { ManageRoutingModule } from './manage-routing.module'; -import { COMPONENTS } from '../component'; +import { GameRoutingModule } from './game-routing.module'; +import { COMPONENTS } from './component'; import { MatStepperModule } from '@angular/material/stepper'; @@ -56,9 +59,8 @@ import { adapterFactory } from 'angular-calendar/date-adapters/date-fns'; }), FuseSharedModule, - ManageRoutingModule - + GameRoutingModule ], - declarations: [...COMPONENTS], + declarations: [...COMPONENTS] }) -export class ManageModule { } +export class GameModule {} diff --git a/src/app/pages/games/resolver/index.ts b/src/app/pages/games/game/resolver/index.ts similarity index 100% rename from src/app/pages/games/resolver/index.ts rename to src/app/pages/games/game/resolver/index.ts diff --git a/src/app/pages/games/games-routing.module.ts b/src/app/pages/games/games-routing.module.ts index 87a227c..19bac18 100644 --- a/src/app/pages/games/games-routing.module.ts +++ b/src/app/pages/games/games-routing.module.ts @@ -4,7 +4,7 @@ import { Routes, RouterModule } from '@angular/router'; const routes: Routes = [ { path: 'management', - loadChildren: './manage/manage.module#ManageModule' + loadChildren: './game/game.module#GameModule' } ]; @@ -12,4 +12,4 @@ const routes: Routes = [ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) -export class GamesRoutingModule { } +export class GamesRoutingModule {} diff --git a/src/app/pages/games/manage/manage-routing.module.ts b/src/app/pages/games/manage/manage-routing.module.ts deleted file mode 100644 index 04a46cf..0000000 --- a/src/app/pages/games/manage/manage-routing.module.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { NgModule } from '@angular/core'; -import { Routes, RouterModule } from '@angular/router'; -import { SportResultComponent } from '../component/sport-result/sport-result.component'; -import { SportMixComponent } from '../component/sport-mix/sport-mix.component'; -import { MiniGameComponent } from '../component/mini-game/mini-game.component'; -import { MiniGameSettingsComponent } from '../component/mini-game-settings/mini-game-settings.component'; -import { ExcelRegistComponent } from '../component/excel-regist/excel-regist.component'; -import { BetHistoryComponent } from '../component/bet-history/bet-history.component'; -import { SettlementComponent } from '../component/settlement/settlement.component'; -import { ItemManagementComponent } from '../component/item-management/item-management.component'; -import { LeagueManagementComponent } from '../component/league-management/league-management.component'; -import { ExceptAutoRegistComponent } from '../component/except-auto-regist/except-auto-regist.component'; - -const routes: Routes = [ - - { - path: 'sport-result', - component: SportResultComponent, - }, - { - path: 'sport-mix', - component: SportMixComponent - }, - { - path: 'mini-game', - component: MiniGameComponent - }, - { - path: 'mini-game-settings', - component: MiniGameSettingsComponent - }, - { - path: 'excel-regist', - component: ExcelRegistComponent - }, - { - path: 'bet-history', - component: BetHistoryComponent - }, - { - path: 'settlement', - component: SettlementComponent - }, - { - path: 'item-management', - component: ItemManagementComponent - } - , - { - path: 'league-management', - component: LeagueManagementComponent - }, - { - path: 'except-auto-regist', - component: ExceptAutoRegistComponent - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class ManageRoutingModule { } diff --git a/src/app/pages/infos/info/component/index.ts b/src/app/pages/infos/info/component/index.ts new file mode 100644 index 0000000..e5c1a43 --- /dev/null +++ b/src/app/pages/infos/info/component/index.ts @@ -0,0 +1,3 @@ +import { ServiceCenterComponent } from './service-center.component'; + +export const COMPONENTS = [ServiceCenterComponent]; diff --git a/src/app/pages/infos/info/component/service-center.component.html b/src/app/pages/infos/info/component/service-center.component.html new file mode 100644 index 0000000..af63e6f --- /dev/null +++ b/src/app/pages/infos/info/component/service-center.component.html @@ -0,0 +1 @@ +

service-center works!

diff --git a/src/app/pages/infos/info/component/service-center.component.scss b/src/app/pages/infos/info/component/service-center.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/infos/info/component/service-center.component.ts b/src/app/pages/infos/info/component/service-center.component.ts new file mode 100644 index 0000000..8976900 --- /dev/null +++ b/src/app/pages/infos/info/component/service-center.component.ts @@ -0,0 +1,12 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-service-center', + templateUrl: './service-center.component.html', + styleUrls: ['./service-center.component.scss'] +}) +export class ServiceCenterComponent implements OnInit { + constructor() {} + + ngOnInit() {} +} diff --git a/src/app/pages/infos/info/info-routing.module.ts b/src/app/pages/infos/info/info-routing.module.ts new file mode 100644 index 0000000..8ded12d --- /dev/null +++ b/src/app/pages/infos/info/info-routing.module.ts @@ -0,0 +1,16 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; +import { ServiceCenterComponent } from './component/service-center.component'; + +const routes: Routes = [ + { + path: 'service-center', + component: ServiceCenterComponent + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class InfoRoutingModule {} diff --git a/src/app/pages/infos/info/info.module.ts b/src/app/pages/infos/info/info.module.ts new file mode 100644 index 0000000..1030558 --- /dev/null +++ b/src/app/pages/infos/info/info.module.ts @@ -0,0 +1,46 @@ +import { NgModule } from '@angular/core'; + +import { MatButtonModule } from '@angular/material/button'; +import { MatExpansionModule } from '@angular/material/expansion'; +import { MatFormFieldModule } from '@angular/material/form-field'; +import { MatIconModule } from '@angular/material/icon'; +import { MatInputModule } from '@angular/material/input'; +import { MatMenuModule } from '@angular/material/menu'; +import { MatPaginatorModule } from '@angular/material/paginator'; +import { MatSelectModule } from '@angular/material/select'; +import { MatSortModule } from '@angular/material/sort'; +import { MatTableModule } from '@angular/material/table'; +import { MatTabsModule } from '@angular/material/tabs'; +import { MatCheckboxModule } from '@angular/material/checkbox'; + +import { FuseSharedModule } from 'src/@fuse/shared.module'; +import { FuseWidgetModule } from 'src/@fuse/components/widget/widget.module'; + +import { InfoRoutingModule } from './info-routing.module'; + +import { COMPONENTS } from './component'; + +@NgModule({ + imports: [ + MatButtonModule, + MatExpansionModule, + MatFormFieldModule, + MatIconModule, + MatInputModule, + MatMenuModule, + MatPaginatorModule, + MatSelectModule, + MatSortModule, + MatTableModule, + MatTabsModule, + MatCheckboxModule, + + FuseSharedModule, + FuseWidgetModule, + + InfoRoutingModule + ], + declarations: [...COMPONENTS], + providers: [] +}) +export class InfoModule {} diff --git a/src/app/pages/infos/infos-routing.module.ts b/src/app/pages/infos/infos-routing.module.ts new file mode 100644 index 0000000..8bfa629 --- /dev/null +++ b/src/app/pages/infos/infos-routing.module.ts @@ -0,0 +1,15 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +const routes: Routes = [ + { + path: 'management', + loadChildren: './info/info.module#InfoModule' + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class InfosRoutingModule {} diff --git a/src/app/pages/infos/infos.module.ts b/src/app/pages/infos/infos.module.ts new file mode 100644 index 0000000..3ec92b9 --- /dev/null +++ b/src/app/pages/infos/infos.module.ts @@ -0,0 +1,9 @@ +import { NgModule } from '@angular/core'; + +import { InfosRoutingModule } from './infos-routing.module'; + +@NgModule({ + declarations: [], + imports: [InfosRoutingModule] +}) +export class InfosModule {} diff --git a/src/app/pages/moneys/money/component/deposit.component.html b/src/app/pages/moneys/money/component/deposit.component.html new file mode 100644 index 0000000..c98b60a --- /dev/null +++ b/src/app/pages/moneys/money/component/deposit.component.html @@ -0,0 +1 @@ +

deposit works!

diff --git a/src/app/pages/moneys/money/component/deposit.component.scss b/src/app/pages/moneys/money/component/deposit.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/moneys/money/component/deposit.component.ts b/src/app/pages/moneys/money/component/deposit.component.ts new file mode 100644 index 0000000..00466d8 --- /dev/null +++ b/src/app/pages/moneys/money/component/deposit.component.ts @@ -0,0 +1,12 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-deposit', + templateUrl: './deposit.component.html', + styleUrls: ['./deposit.component.scss'] +}) +export class DepositComponent implements OnInit { + constructor() {} + + ngOnInit() {} +} diff --git a/src/app/pages/moneys/money/component/index.ts b/src/app/pages/moneys/money/component/index.ts new file mode 100644 index 0000000..799a1bc --- /dev/null +++ b/src/app/pages/moneys/money/component/index.ts @@ -0,0 +1,3 @@ +import { DepositComponent } from './deposit.component'; + +export const COMPONENTS = [DepositComponent]; diff --git a/src/app/pages/moneys/money/money-routing.module.ts b/src/app/pages/moneys/money/money-routing.module.ts new file mode 100644 index 0000000..262724e --- /dev/null +++ b/src/app/pages/moneys/money/money-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { DepositComponent } from './component/deposit.component'; + +const routes: Routes = [ + { + path: 'deposit', + component: DepositComponent + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class MoneyRoutingModule {} diff --git a/src/app/pages/moneys/money/money.module.ts b/src/app/pages/moneys/money/money.module.ts new file mode 100644 index 0000000..836d654 --- /dev/null +++ b/src/app/pages/moneys/money/money.module.ts @@ -0,0 +1,46 @@ +import { NgModule } from '@angular/core'; + +import { MatButtonModule } from '@angular/material/button'; +import { MatExpansionModule } from '@angular/material/expansion'; +import { MatFormFieldModule } from '@angular/material/form-field'; +import { MatIconModule } from '@angular/material/icon'; +import { MatInputModule } from '@angular/material/input'; +import { MatMenuModule } from '@angular/material/menu'; +import { MatPaginatorModule } from '@angular/material/paginator'; +import { MatSelectModule } from '@angular/material/select'; +import { MatSortModule } from '@angular/material/sort'; +import { MatTableModule } from '@angular/material/table'; +import { MatTabsModule } from '@angular/material/tabs'; +import { MatCheckboxModule } from '@angular/material/checkbox'; + +import { FuseSharedModule } from 'src/@fuse/shared.module'; +import { FuseWidgetModule } from 'src/@fuse/components/widget/widget.module'; + +import { MoneyRoutingModule } from './money-routing.module'; + +import { COMPONENTS } from './component'; + +@NgModule({ + imports: [ + MatButtonModule, + MatExpansionModule, + MatFormFieldModule, + MatIconModule, + MatInputModule, + MatMenuModule, + MatPaginatorModule, + MatSelectModule, + MatSortModule, + MatTableModule, + MatTabsModule, + MatCheckboxModule, + + FuseSharedModule, + FuseWidgetModule, + + MoneyRoutingModule + ], + declarations: [...COMPONENTS], + providers: [] +}) +export class MoneyModule {} diff --git a/src/app/pages/moneys/moneys-routing.module.ts b/src/app/pages/moneys/moneys-routing.module.ts new file mode 100644 index 0000000..08fd6ad --- /dev/null +++ b/src/app/pages/moneys/moneys-routing.module.ts @@ -0,0 +1,15 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +const routes: Routes = [ + { + path: 'management', + loadChildren: './money/money.module#MoneyModule' + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class MoneysRoutingModule {} diff --git a/src/app/pages/moneys/moneys.module.ts b/src/app/pages/moneys/moneys.module.ts new file mode 100644 index 0000000..6dadbeb --- /dev/null +++ b/src/app/pages/moneys/moneys.module.ts @@ -0,0 +1,8 @@ +import { NgModule } from '@angular/core'; +import { MoneysRoutingModule } from './moneys-routing.module'; + +@NgModule({ + imports: [MoneysRoutingModule], + declarations: [] +}) +export class MoneysModule {} diff --git a/src/app/pages/pages-routing.module.ts b/src/app/pages/pages-routing.module.ts index 65de30a..0f32e61 100644 --- a/src/app/pages/pages-routing.module.ts +++ b/src/app/pages/pages-routing.module.ts @@ -10,9 +10,21 @@ const routes: Routes = [ path: 'games', loadChildren: './games/games.module#GamesModule' }, + { + path: 'moneys', + loadChildren: './moneys/moneys.module#MoneysModule' + }, + { + path: 'infos', + loadChildren: './infos/infos.module#InfosModule' + }, { path: 'sites', loadChildren: './sites/sites.module#SitesModule' + }, + { + path: 'specials', + loadChildren: './specials/specials.module#SpecialsModule' } ]; diff --git a/src/app/pages/specials/special/component/coupon.component.html b/src/app/pages/specials/special/component/coupon.component.html new file mode 100644 index 0000000..c923b26 --- /dev/null +++ b/src/app/pages/specials/special/component/coupon.component.html @@ -0,0 +1 @@ +

coupon works!

diff --git a/src/app/pages/specials/special/component/coupon.component.scss b/src/app/pages/specials/special/component/coupon.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/specials/special/component/coupon.component.ts b/src/app/pages/specials/special/component/coupon.component.ts new file mode 100644 index 0000000..b20db44 --- /dev/null +++ b/src/app/pages/specials/special/component/coupon.component.ts @@ -0,0 +1,12 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-coupon', + templateUrl: './coupon.component.html', + styleUrls: ['./coupon.component.scss'] +}) +export class CouponComponent implements OnInit { + constructor() {} + + ngOnInit() {} +} diff --git a/src/app/pages/specials/special/component/index.ts b/src/app/pages/specials/special/component/index.ts new file mode 100644 index 0000000..b1fa66d --- /dev/null +++ b/src/app/pages/specials/special/component/index.ts @@ -0,0 +1,3 @@ +import { CouponComponent } from './coupon.component'; + +export const COMPONENTS = [CouponComponent]; diff --git a/src/app/pages/specials/special/special-routing.module.ts b/src/app/pages/specials/special/special-routing.module.ts new file mode 100644 index 0000000..719b07b --- /dev/null +++ b/src/app/pages/specials/special/special-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { CouponComponent } from './component/coupon.component'; + +const routes: Routes = [ + { + path: 'coupon', + component: CouponComponent + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class SpecialRoutingModule {} diff --git a/src/app/pages/specials/special/special.module.ts b/src/app/pages/specials/special/special.module.ts new file mode 100644 index 0000000..457d99b --- /dev/null +++ b/src/app/pages/specials/special/special.module.ts @@ -0,0 +1,46 @@ +import { NgModule } from '@angular/core'; + +import { MatButtonModule } from '@angular/material/button'; +import { MatExpansionModule } from '@angular/material/expansion'; +import { MatFormFieldModule } from '@angular/material/form-field'; +import { MatIconModule } from '@angular/material/icon'; +import { MatInputModule } from '@angular/material/input'; +import { MatMenuModule } from '@angular/material/menu'; +import { MatPaginatorModule } from '@angular/material/paginator'; +import { MatSelectModule } from '@angular/material/select'; +import { MatSortModule } from '@angular/material/sort'; +import { MatTableModule } from '@angular/material/table'; +import { MatTabsModule } from '@angular/material/tabs'; +import { MatCheckboxModule } from '@angular/material/checkbox'; + +import { FuseSharedModule } from 'src/@fuse/shared.module'; +import { FuseWidgetModule } from 'src/@fuse/components/widget/widget.module'; + +import { SpecialRoutingModule } from './special-routing.module'; + +import { COMPONENTS } from './component'; + +@NgModule({ + imports: [ + MatButtonModule, + MatExpansionModule, + MatFormFieldModule, + MatIconModule, + MatInputModule, + MatMenuModule, + MatPaginatorModule, + MatSelectModule, + MatSortModule, + MatTableModule, + MatTabsModule, + MatCheckboxModule, + + FuseSharedModule, + FuseWidgetModule, + + SpecialRoutingModule + ], + declarations: [...COMPONENTS], + providers: [] +}) +export class SpecialModule {} diff --git a/src/app/pages/specials/specials-routing.module.ts b/src/app/pages/specials/specials-routing.module.ts new file mode 100644 index 0000000..090520c --- /dev/null +++ b/src/app/pages/specials/specials-routing.module.ts @@ -0,0 +1,15 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +const routes: Routes = [ + { + path: 'management', + loadChildren: './special/special.module#SpecialModule' + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class SpecialsRoutingModule {} diff --git a/src/app/pages/specials/specials.module.ts b/src/app/pages/specials/specials.module.ts new file mode 100644 index 0000000..7aa6bdf --- /dev/null +++ b/src/app/pages/specials/specials.module.ts @@ -0,0 +1,8 @@ +import { NgModule } from '@angular/core'; +import { SpecialsRoutingModule } from './specials-routing.module'; + +@NgModule({ + imports: [SpecialsRoutingModule], + declarations: [] +}) +export class SpecialsModule {} diff --git a/src/app/pages/users/user/component/user-list.service.ts b/src/app/pages/users/user/component/user-list.service.ts deleted file mode 100644 index 3aabf0a..0000000 --- a/src/app/pages/users/user/component/user-list.service.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { Injectable } from '@angular/core'; -import { HttpClient } from '@angular/common/http'; -import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router'; -import { BehaviorSubject, Observable } from 'rxjs'; - -@Injectable() -export class UserListService implements Resolve { - - userList: any[]; - onUserListChanged: BehaviorSubject; - - /** - * Constructor - * - * @param {HttpClient} _httpClient - */ - constructor( - private _httpClient: HttpClient - ) { - // Set the defaults - this.onUserListChanged = new BehaviorSubject({}); - } - - /** - * Resolver - * - * @param {ActivatedRouteSnapshot} route - * @param {RouterStateSnapshot} state - * @returns {Observable | Promise | any} - */ - resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable | Promise | any { - return new Promise((resolve, reject) => { - - Promise.all([ - this.getUserList() - ]).then( - () => { - resolve(); - }, - reject - ); - }); - } - - /** - * Get user list - * - * @returns {Promise} - */ - getUserList(): Promise { - return new Promise((resolve, reject) => { - this._httpClient.get('api/users-list') - .subscribe((response: any) => { - this.userList = response; - this.onUserListChanged.next(this.userList); - resolve(response); - }, reject); - }); - } -}