파일정리 및 메뉴 라우트 설정

This commit is contained in:
byung eun park 2019-09-05 17:07:25 +09:00
parent 65fc2d9277
commit 32f1b5a083
76 changed files with 474 additions and 431 deletions

View File

@ -3,35 +3,36 @@ export const locale = {
data: { data: {
NAV: { NAV: {
DASHBOARD: '대시보드', DASHBOARD: '대시보드',
STATICS: '통계보기',
APPLICATIONS: '어플리케이션', APPLICATIONS: '어플리케이션',
USERS: { USERS: {
TITLE: 'User-Management', TITLE: 'User-Management',
LIST: { LIST: {
TITLE: 'User List', TITLE: 'User List'
}, },
CONNECT_LIST: { CONNECT_LIST: {
TITLE: 'Current Connect List', TITLE: 'Current Connect List'
}, },
REGIST: { REGIST: {
TITLE: 'SignUp', TITLE: 'SignUp'
}, },
FEES_MANAGEMENT: { FEES_MANAGEMENT: {
TITLE: 'Fees Management', TITLE: 'Fees Management'
}, },
ATTENDANCE_MANAGEMENT: { ATTENDANCE_MANAGEMENT: {
TITLE: 'Attendance Management', TITLE: 'Attendance Management'
}, }
}, },
GAME: { GAME: {
TITLE: 'Game Management', TITLE: 'Game Management',
SPORT_RESULT: { SPORT_RESULT: {
TITLE: 'Sport Result Management', TITLE: 'Sport Result Management'
}, },
SPORT_MIX: { SPORT_MIX: {
TITLE: 'Sport Mix Management', TITLE: 'Sport Mix Management'
}, },
MINI_GAME: { MINI_GAME: {
TITLE: 'Mini Game', TITLE: 'Mini Game'
}, },
MINI_GAME_MANAGEMENT: { MINI_GAME_MANAGEMENT: {
TITLE: 'Mini Game Management' TITLE: 'Mini Game Management'
@ -53,7 +54,7 @@ export const locale = {
}, },
EXCEPT_AUTO_REGIST: { EXCEPT_AUTO_REGIST: {
TITLE: 'Except Auto Regist' TITLE: 'Except Auto Regist'
}, }
}, },
DEPOSIT_WITHDRAWAL: { DEPOSIT_WITHDRAWAL: {
TITLE: 'Depost/Withdrawal Management', TITLE: 'Depost/Withdrawal Management',
@ -71,7 +72,7 @@ export const locale = {
}, },
DAILY_SETTLEMENT: { DAILY_SETTLEMENT: {
TITLE: 'Daily Settlement' TITLE: 'Daily Settlement'
}, }
}, },
INFO: { INFO: {
TITLE: 'Info Management', TITLE: 'Info Management',
@ -119,7 +120,7 @@ export const locale = {
}, },
SET_LEVEL: { SET_LEVEL: {
TITLE: 'Level Manage' TITLE: 'Level Manage'
}, }
}, },
SPECIAL: { SPECIAL: {
TITLE: '특수관리', TITLE: '특수관리',
@ -137,10 +138,10 @@ export const locale = {
}, },
CHECK_NOTICE: { CHECK_NOTICE: {
TITLE: 'Check Notice' TITLE: 'Check Notice'
}, }
}, },
SUPPORT: { SUPPORT: {
TITLE: 'Support Management', TITLE: 'Support Management'
} }
} }
} }

View File

@ -3,35 +3,36 @@ export const locale = {
data: { data: {
NAV: { NAV: {
DASHBOARD: '대시보드', DASHBOARD: '대시보드',
STATICS: '통계보기',
APPLICATIONS: '어플리케이션', APPLICATIONS: '어플리케이션',
USERS: { USERS: {
TITLE: '회원관리', TITLE: '회원관리',
LIST: { LIST: {
TITLE: '회원 리스트', TITLE: '회원 리스트'
}, },
CONNECT_LIST: { CONNECT_LIST: {
TITLE: '현재접속자', TITLE: '현재접속자'
}, },
REGIST: { REGIST: {
TITLE: '회원가입', TITLE: '회원가입'
}, },
FEES_MANAGEMENT: { FEES_MANAGEMENT: {
TITLE: '커미션 설정', TITLE: '커미션 설정'
}, },
ATTENDANCE_MANAGEMENT: { ATTENDANCE_MANAGEMENT: {
TITLE: '출석 관리', TITLE: '출석 관리'
}, }
}, },
GAME: { GAME: {
TITLE: '게임관리', TITLE: '게임관리',
SPORT_RESULT: { SPORT_RESULT: {
TITLE: '결과입력 및 수정', TITLE: '결과입력 및 수정'
}, },
SPORT_MIX: { SPORT_MIX: {
TITLE: '스포츠 조합설정', TITLE: '스포츠 조합설정'
}, },
MINI_GAME: { MINI_GAME: {
TITLE: '미니게임', TITLE: '미니게임'
}, },
MINI_GAME_MANAGEMENT: { MINI_GAME_MANAGEMENT: {
TITLE: '미니게임 관리' TITLE: '미니게임 관리'
@ -53,7 +54,7 @@ export const locale = {
}, },
EXCEPT_AUTO_REGIST: { EXCEPT_AUTO_REGIST: {
TITLE: '자동등록 제외' TITLE: '자동등록 제외'
}, }
}, },
DEPOSIT_WITHDRAWAL: { DEPOSIT_WITHDRAWAL: {
TITLE: '입출금 관리', TITLE: '입출금 관리',
@ -71,7 +72,7 @@ export const locale = {
}, },
DAILY_SETTLEMENT: { DAILY_SETTLEMENT: {
TITLE: '일일정산' TITLE: '일일정산'
}, }
}, },
INFO: { INFO: {
TITLE: '정보관리', TITLE: '정보관리',
@ -119,7 +120,7 @@ export const locale = {
}, },
SET_LEVEL: { SET_LEVEL: {
TITLE: '레벨 설정관리' TITLE: '레벨 설정관리'
}, }
}, },
SPECIAL: { SPECIAL: {
TITLE: '특수관리', TITLE: '특수관리',
@ -137,10 +138,10 @@ export const locale = {
}, },
CHECK_NOTICE: { CHECK_NOTICE: {
TITLE: '점검공지 관리' TITLE: '점검공지 관리'
}, }
}, },
SUPPORT: { SUPPORT: {
TITLE: '받치기관리', TITLE: '받치기관리'
} }
} }
} }

View File

@ -9,6 +9,14 @@ export const navigation: FuseNavigation[] = [
icon: 'dashboard', icon: 'dashboard',
url: '/dashboard' url: '/dashboard'
}, },
{
id: 'statics',
title: '통계보기',
translate: 'NAV.STATICS',
type: 'item',
icon: 'assessment',
url: '/pages/statics'
},
{ {
id: 'users', id: 'users',
title: '회원 관리', title: '회원 관리',
@ -159,7 +167,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.DEPOSIT_WITHDRAWAL.DEPOST.TITLE', translate: 'NAV.DEPOSIT_WITHDRAWAL.DEPOST.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/pages/deposit/management/deposit-management' url: '/pages/moneys/management/deposit'
}, },
{ {
id: 'withdrawal', id: 'withdrawal',
@ -167,7 +175,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.DEPOSIT_WITHDRAWAL.WITHDRAWAL.TITLE', translate: 'NAV.DEPOSIT_WITHDRAWAL.WITHDRAWAL.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/pages/deposit/management/withdrawal-management' url: '/pages/moneys/management/withdrawal'
}, },
{ {
id: 'money_log', id: 'money_log',
@ -175,7 +183,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.DEPOSIT_WITHDRAWAL.MONEY_LOG.TITLE', translate: 'NAV.DEPOSIT_WITHDRAWAL.MONEY_LOG.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/pages/deposit/management/money-log' url: '/pages/moneys/management/money-log'
}, },
{ {
id: 'point_log', id: 'point_log',
@ -183,7 +191,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.DEPOSIT_WITHDRAWAL.POINT_LOG.TITLE', translate: 'NAV.DEPOSIT_WITHDRAWAL.POINT_LOG.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/pages/deposit/management/point-log' url: '/pages/moneys/management/point-log'
}, },
{ {
id: 'daily_settlement', id: 'daily_settlement',
@ -191,7 +199,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.DEPOSIT_WITHDRAWAL.DAILY_SETTLEMENT.TITLE', translate: 'NAV.DEPOSIT_WITHDRAWAL.DAILY_SETTLEMENT.TITLE',
type: 'item', type: 'item',
icon: 'email', 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', translate: 'NAV.INFO.SERVICE_CENTER_MANAGEMENT.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/infos/management/service-center'
}, },
{ {
id: 'send_message', id: 'send_message',
@ -215,7 +223,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.INFO.SEND_MESSAGE_MANAGEMENT.TITLE', translate: 'NAV.INFO.SEND_MESSAGE_MANAGEMENT.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/infos/management/send-message'
}, },
{ {
id: 'free_board', id: 'free_board',
@ -223,7 +231,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.INFO.FREE_BOARD_MANAGEMENT.TITLE', translate: 'NAV.INFO.FREE_BOARD_MANAGEMENT.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/infos/management/free'
}, },
{ {
id: 'bet_rule', id: 'bet_rule',
@ -231,7 +239,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.INFO.BET_RULE.TITLE', translate: 'NAV.INFO.BET_RULE.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/infos/management/bet-rule'
}, },
{ {
id: 'popup_setting', id: 'popup_setting',
@ -239,7 +247,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.INFO.POPUP_SETTING.TITLE', translate: 'NAV.INFO.POPUP_SETTING.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/infos/management/popup-set'
}, },
{ {
id: 'main_event_regist', id: 'main_event_regist',
@ -247,7 +255,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.INFO.MAIN_EVENT_REGIST.TITLE', translate: 'NAV.INFO.MAIN_EVENT_REGIST.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/infos/management/event-regist'
}, },
{ {
id: 'notice_board', id: 'notice_board',
@ -255,7 +263,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.INFO.NOTICE_BOARD_MANAGEMENT.TITLE', translate: 'NAV.INFO.NOTICE_BOARD_MANAGEMENT.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/infos/management/notice'
}, },
{ {
id: 'board_regist', id: 'board_regist',
@ -263,7 +271,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.INFO.BOARD_REGIST.TITLE', translate: 'NAV.INFO.BOARD_REGIST.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/infos/management/board-regist'
} }
] ]
}, },
@ -279,7 +287,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.SITE.DEFAULT_SET.TITLE', translate: 'NAV.SITE.DEFAULT_SET.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/sites/configs'
}, },
{ {
id: 'account_separate', id: 'account_separate',
@ -295,7 +303,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.SITE.SET_BET_AMOUNT.TITLE', translate: 'NAV.SITE.SET_BET_AMOUNT.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/sites/bet-amount'
}, },
{ {
id: 'block_ip', id: 'block_ip',
@ -303,7 +311,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.SITE.BLOCK_IP.TITLE', translate: 'NAV.SITE.BLOCK_IP.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/sites/block-ip'
}, },
{ {
id: 'admin_ip', id: 'admin_ip',
@ -311,7 +319,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.SITE.ADMIN_IP.TITLE', translate: 'NAV.SITE.ADMIN_IP.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/sites/admin-ip'
}, },
{ {
id: 'set_level', id: 'set_level',
@ -319,7 +327,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.SITE.SET_LEVEL.TITLE', translate: 'NAV.SITE.SET_LEVEL.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/sites/level'
} }
] ]
}, },
@ -335,7 +343,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.SPECIAL.ROULETTE_COUPON.TITLE', translate: 'NAV.SPECIAL.ROULETTE_COUPON.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/specials/management/coupon'
}, },
{ {
id: 'fix_bonus', id: 'fix_bonus',
@ -343,7 +351,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.SPECIAL.FIX_BONUS.TITLE', translate: 'NAV.SPECIAL.FIX_BONUS.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/specials/management/bonus'
}, },
{ {
id: 'mini_game_martin', id: 'mini_game_martin',
@ -351,7 +359,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.SPECIAL.MINI_GAME_MARTIN.TITLE', translate: 'NAV.SPECIAL.MINI_GAME_MARTIN.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/specials/management/martin'
}, },
{ {
id: 'set_alert', id: 'set_alert',
@ -359,7 +367,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.SPECIAL.SET_ALERT.TITLE', translate: 'NAV.SPECIAL.SET_ALERT.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/specials/management/alert'
}, },
{ {
id: 'check_notice', id: 'check_notice',
@ -367,7 +375,7 @@ export const navigation: FuseNavigation[] = [
translate: 'NAV.SPECIAL.CHECK_NOTICE.TITLE', translate: 'NAV.SPECIAL.CHECK_NOTICE.TITLE',
type: 'item', type: 'item',
icon: 'email', icon: 'email',
url: '/sample' url: '/pages/specials/management/check-notice'
} }
] ]
}, },

View File

@ -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<BetHistoryComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ BetHistoryComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(BetHistoryComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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<ExcelRegistComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ExcelRegistComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ExcelRegistComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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<ExceptAutoRegistComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ExceptAutoRegistComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ExceptAutoRegistComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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
];

View File

@ -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<ItemManagementComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ItemManagementComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ItemManagementComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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<MiniGameSettingsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MiniGameSettingsComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MiniGameSettingsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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<MiniGameComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MiniGameComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MiniGameComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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<SettlementComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SettlementComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SettlementComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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<SportMixComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SportMixComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SportMixComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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<SportResultComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SportResultComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SportResultComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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
];

View File

@ -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 {}

View File

@ -18,11 +18,14 @@ import { MatDatepickerModule } from '@angular/material/datepicker';
import { MatDialogModule } from '@angular/material/dialog'; import { MatDialogModule } from '@angular/material/dialog';
import { MatToolbarModule } from '@angular/material/toolbar'; import { MatToolbarModule } from '@angular/material/toolbar';
import { MatTooltipModule } from '@angular/material/tooltip'; 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 { FuseSharedModule } from 'src/@fuse/shared.module';
import { ManageRoutingModule } from './manage-routing.module'; import { GameRoutingModule } from './game-routing.module';
import { COMPONENTS } from '../component'; import { COMPONENTS } from './component';
import { MatStepperModule } from '@angular/material/stepper'; import { MatStepperModule } from '@angular/material/stepper';
@ -56,9 +59,8 @@ import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
}), }),
FuseSharedModule, FuseSharedModule,
ManageRoutingModule GameRoutingModule
], ],
declarations: [...COMPONENTS], declarations: [...COMPONENTS]
}) })
export class ManageModule { } export class GameModule {}

View File

@ -4,7 +4,7 @@ import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [ const routes: Routes = [
{ {
path: 'management', path: 'management',
loadChildren: './manage/manage.module#ManageModule' loadChildren: './game/game.module#GameModule'
} }
]; ];
@ -12,4 +12,4 @@ const routes: Routes = [
imports: [RouterModule.forChild(routes)], imports: [RouterModule.forChild(routes)],
exports: [RouterModule] exports: [RouterModule]
}) })
export class GamesRoutingModule { } export class GamesRoutingModule {}

View File

@ -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 { }

View File

@ -0,0 +1,3 @@
import { ServiceCenterComponent } from './service-center.component';
export const COMPONENTS = [ServiceCenterComponent];

View File

@ -0,0 +1 @@
<p>service-center works!</p>

View File

@ -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() {}
}

View File

@ -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 {}

View File

@ -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 {}

View File

@ -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 {}

View File

@ -0,0 +1,9 @@
import { NgModule } from '@angular/core';
import { InfosRoutingModule } from './infos-routing.module';
@NgModule({
declarations: [],
imports: [InfosRoutingModule]
})
export class InfosModule {}

View File

@ -0,0 +1 @@
<p>deposit works!</p>

View File

@ -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() {}
}

View File

@ -0,0 +1,3 @@
import { DepositComponent } from './deposit.component';
export const COMPONENTS = [DepositComponent];

View File

@ -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 {}

View File

@ -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 {}

View File

@ -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 {}

View File

@ -0,0 +1,8 @@
import { NgModule } from '@angular/core';
import { MoneysRoutingModule } from './moneys-routing.module';
@NgModule({
imports: [MoneysRoutingModule],
declarations: []
})
export class MoneysModule {}

View File

@ -10,9 +10,21 @@ const routes: Routes = [
path: 'games', path: 'games',
loadChildren: './games/games.module#GamesModule' loadChildren: './games/games.module#GamesModule'
}, },
{
path: 'moneys',
loadChildren: './moneys/moneys.module#MoneysModule'
},
{
path: 'infos',
loadChildren: './infos/infos.module#InfosModule'
},
{ {
path: 'sites', path: 'sites',
loadChildren: './sites/sites.module#SitesModule' loadChildren: './sites/sites.module#SitesModule'
},
{
path: 'specials',
loadChildren: './specials/specials.module#SpecialsModule'
} }
]; ];

View File

@ -0,0 +1 @@
<p>coupon works!</p>

View File

@ -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() {}
}

View File

@ -0,0 +1,3 @@
import { CouponComponent } from './coupon.component';
export const COMPONENTS = [CouponComponent];

View File

@ -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 {}

View File

@ -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 {}

View File

@ -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 {}

View File

@ -0,0 +1,8 @@
import { NgModule } from '@angular/core';
import { SpecialsRoutingModule } from './specials-routing.module';
@NgModule({
imports: [SpecialsRoutingModule],
declarations: []
})
export class SpecialsModule {}

View File

@ -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<any> {
userList: any[];
onUserListChanged: BehaviorSubject<any>;
/**
* Constructor
*
* @param {HttpClient} _httpClient
*/
constructor(
private _httpClient: HttpClient
) {
// Set the defaults
this.onUserListChanged = new BehaviorSubject({});
}
/**
* Resolver
*
* @param {ActivatedRouteSnapshot} route
* @param {RouterStateSnapshot} state
* @returns {Observable<any> | Promise<any> | any}
*/
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<any> | Promise<any> | any {
return new Promise((resolve, reject) => {
Promise.all([
this.getUserList()
]).then(
() => {
resolve();
},
reject
);
});
}
/**
* Get user list
*
* @returns {Promise<any>}
*/
getUserList(): Promise<any> {
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);
});
}
}