파일정리 및 메뉴 라우트 설정
This commit is contained in:
parent
65fc2d9277
commit
32f1b5a083
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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: '받치기관리'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
});
|
|
@ -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();
|
||||
});
|
||||
});
|
|
@ -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();
|
||||
});
|
||||
});
|
|
@ -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
|
||||
];
|
|
@ -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();
|
||||
});
|
||||
});
|
|
@ -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();
|
||||
});
|
||||
});
|
|
@ -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();
|
||||
});
|
||||
});
|
|
@ -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();
|
||||
});
|
||||
});
|
|
@ -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();
|
||||
});
|
||||
});
|
|
@ -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();
|
||||
});
|
||||
});
|
23
src/app/pages/games/game/component/index.ts
Normal file
23
src/app/pages/games/game/component/index.ts
Normal 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
|
||||
];
|
61
src/app/pages/games/game/game-routing.module.ts
Normal file
61
src/app/pages/games/game/game-routing.module.ts
Normal 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 {}
|
|
@ -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 {}
|
|
@ -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 {}
|
||||
|
|
|
@ -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 { }
|
3
src/app/pages/infos/info/component/index.ts
Normal file
3
src/app/pages/infos/info/component/index.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
import { ServiceCenterComponent } from './service-center.component';
|
||||
|
||||
export const COMPONENTS = [ServiceCenterComponent];
|
|
@ -0,0 +1 @@
|
|||
<p>service-center works!</p>
|
|
@ -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() {}
|
||||
}
|
16
src/app/pages/infos/info/info-routing.module.ts
Normal file
16
src/app/pages/infos/info/info-routing.module.ts
Normal 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 {}
|
46
src/app/pages/infos/info/info.module.ts
Normal file
46
src/app/pages/infos/info/info.module.ts
Normal 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 {}
|
15
src/app/pages/infos/infos-routing.module.ts
Normal file
15
src/app/pages/infos/infos-routing.module.ts
Normal 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 {}
|
9
src/app/pages/infos/infos.module.ts
Normal file
9
src/app/pages/infos/infos.module.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
|
||||
import { InfosRoutingModule } from './infos-routing.module';
|
||||
|
||||
@NgModule({
|
||||
declarations: [],
|
||||
imports: [InfosRoutingModule]
|
||||
})
|
||||
export class InfosModule {}
|
|
@ -0,0 +1 @@
|
|||
<p>deposit works!</p>
|
12
src/app/pages/moneys/money/component/deposit.component.ts
Normal file
12
src/app/pages/moneys/money/component/deposit.component.ts
Normal 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() {}
|
||||
}
|
3
src/app/pages/moneys/money/component/index.ts
Normal file
3
src/app/pages/moneys/money/component/index.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
import { DepositComponent } from './deposit.component';
|
||||
|
||||
export const COMPONENTS = [DepositComponent];
|
17
src/app/pages/moneys/money/money-routing.module.ts
Normal file
17
src/app/pages/moneys/money/money-routing.module.ts
Normal 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 {}
|
46
src/app/pages/moneys/money/money.module.ts
Normal file
46
src/app/pages/moneys/money/money.module.ts
Normal 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 {}
|
15
src/app/pages/moneys/moneys-routing.module.ts
Normal file
15
src/app/pages/moneys/moneys-routing.module.ts
Normal 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 {}
|
8
src/app/pages/moneys/moneys.module.ts
Normal file
8
src/app/pages/moneys/moneys.module.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { MoneysRoutingModule } from './moneys-routing.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [MoneysRoutingModule],
|
||||
declarations: []
|
||||
})
|
||||
export class MoneysModule {}
|
|
@ -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'
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<p>coupon works!</p>
|
12
src/app/pages/specials/special/component/coupon.component.ts
Normal file
12
src/app/pages/specials/special/component/coupon.component.ts
Normal 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() {}
|
||||
}
|
3
src/app/pages/specials/special/component/index.ts
Normal file
3
src/app/pages/specials/special/component/index.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
import { CouponComponent } from './coupon.component';
|
||||
|
||||
export const COMPONENTS = [CouponComponent];
|
17
src/app/pages/specials/special/special-routing.module.ts
Normal file
17
src/app/pages/specials/special/special-routing.module.ts
Normal 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 {}
|
46
src/app/pages/specials/special/special.module.ts
Normal file
46
src/app/pages/specials/special/special.module.ts
Normal 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 {}
|
15
src/app/pages/specials/specials-routing.module.ts
Normal file
15
src/app/pages/specials/specials-routing.module.ts
Normal 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 {}
|
8
src/app/pages/specials/specials.module.ts
Normal file
8
src/app/pages/specials/specials.module.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { SpecialsRoutingModule } from './specials-routing.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [SpecialsRoutingModule],
|
||||
declarations: []
|
||||
})
|
||||
export class SpecialsModule {}
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user