From 0b6cd50a1ff4c893763709c04a3eda5f168fe65e Mon Sep 17 00:00:00 2001 From: byung eun park Date: Sun, 27 Oct 2019 16:28:04 +0900 Subject: [PATCH] info model --- src/app/navigation/navigation.ts | 8 +- ...onent.html => betting-rule.component.html} | 2 +- ...onent.scss => betting-rule.component.scss} | 2 +- ...component.ts => betting-rule.component.ts} | 8 +- .../info/component/free-board.component.ts | 2 +- src/app/pages/infos/info/component/index.ts | 12 +- ...tml => popup-config-detail.component.html} | 2 +- ...css => popup-config-detail.component.scss} | 2 +- ...nt.ts => popup-config-detail.component.ts} | 8 +- .../component/popup-config.component.html | 221 +++++++++++++++ ...onent.scss => popup-config.component.scss} | 8 +- ...component.ts => popup-config.component.ts} | 26 +- ...-source.ts => popup-config.data-source.ts} | 78 +++--- .../info/component/popup-set.component.html | 254 ------------------ .../component/service-center.component.ts | 2 +- .../component/service-center.data-source.ts | 4 +- .../pages/infos/info/info-routing.module.ts | 22 +- src/app/pages/infos/info/resolver/index.ts | 4 +- ...ver.ts => popup-config-detail.resolver.ts} | 10 +- src/modules/infos/infos.module.ts | 6 +- src/modules/infos/model/betting-rule.model.ts | 7 + src/modules/infos/model/free-board.model.ts | 8 + src/modules/infos/model/main-event.model.ts | 7 + src/modules/infos/model/message.model.ts | 9 + src/modules/infos/model/notice-board.model.ts | 10 + src/modules/infos/model/popup-config.model.ts | 13 + src/modules/infos/model/reply.model.ts | 8 + .../infos/model/service-center.model.ts | 12 + .../infos/popup-set/model/popup-set.model.ts | 13 - src/modules/infos/popup-set/service/index.ts | 3 - .../model/service-center.model.ts | 13 - .../infos/service-center/service/index.ts | 3 - src/modules/infos/service/index.ts | 4 + .../popup-config.service.ts} | 4 +- .../service/service-center.service.ts | 0 src/modules/infos/type/answer-state.type.ts | 6 + src/modules/infos/type/message-state.type.ts | 4 + src/modules/infos/type/notice-state.type.ts | 4 + src/modules/infos/type/question-state.type.ts | 4 + 39 files changed, 427 insertions(+), 386 deletions(-) rename src/app/pages/infos/info/component/{bet-rule.component.html => betting-rule.component.html} (97%) rename src/app/pages/infos/info/component/{bet-rule.component.scss => betting-rule.component.scss} (99%) rename src/app/pages/infos/info/component/{bet-rule.component.ts => betting-rule.component.ts} (84%) rename src/app/pages/infos/info/component/{popup-set-detail.component.html => popup-config-detail.component.html} (99%) rename src/app/pages/infos/info/component/{popup-set-detail.component.scss => popup-config-detail.component.scss} (99%) rename src/app/pages/infos/info/component/{popup-set-detail.component.ts => popup-config-detail.component.ts} (82%) create mode 100644 src/app/pages/infos/info/component/popup-config.component.html rename src/app/pages/infos/info/component/{popup-set.component.scss => popup-config.component.scss} (96%) rename src/app/pages/infos/info/component/{popup-set.component.ts => popup-config.component.ts} (76%) rename src/app/pages/infos/info/component/{popup-set.data-source.ts => popup-config.data-source.ts} (59%) delete mode 100644 src/app/pages/infos/info/component/popup-set.component.html rename src/app/pages/infos/info/resolver/{popup-set-detail.resolver.ts => popup-config-detail.resolver.ts} (59%) create mode 100644 src/modules/infos/model/betting-rule.model.ts create mode 100644 src/modules/infos/model/free-board.model.ts create mode 100644 src/modules/infos/model/main-event.model.ts create mode 100644 src/modules/infos/model/message.model.ts create mode 100644 src/modules/infos/model/notice-board.model.ts create mode 100644 src/modules/infos/model/popup-config.model.ts create mode 100644 src/modules/infos/model/reply.model.ts create mode 100644 src/modules/infos/model/service-center.model.ts delete mode 100644 src/modules/infos/popup-set/model/popup-set.model.ts delete mode 100644 src/modules/infos/popup-set/service/index.ts delete mode 100644 src/modules/infos/service-center/model/service-center.model.ts delete mode 100644 src/modules/infos/service-center/service/index.ts create mode 100644 src/modules/infos/service/index.ts rename src/modules/infos/{popup-set/service/popup-set.service.ts => service/popup-config.service.ts} (88%) rename src/modules/infos/{service-center => }/service/service-center.service.ts (100%) create mode 100644 src/modules/infos/type/answer-state.type.ts create mode 100644 src/modules/infos/type/message-state.type.ts create mode 100644 src/modules/infos/type/notice-state.type.ts create mode 100644 src/modules/infos/type/question-state.type.ts diff --git a/src/app/navigation/navigation.ts b/src/app/navigation/navigation.ts index bcba70c..ba30c7c 100644 --- a/src/app/navigation/navigation.ts +++ b/src/app/navigation/navigation.ts @@ -234,20 +234,20 @@ export const navigation: FuseNavigation[] = [ url: '/pages/infos/management/free-board' }, { - id: 'bet_rule', + id: 'betting_rule', title: '배팅규정', translate: 'NAV.INFO.BET_RULE.TITLE', type: 'item', icon: 'email', - url: '/pages/infos/management/bet-rule' + url: '/pages/infos/management/betting-rule' }, { - id: 'popup_setting', + id: 'popup_config', title: '팝업창', translate: 'NAV.INFO.POPUP_SETTING.TITLE', type: 'item', icon: 'email', - url: '/pages/infos/management/popup-set' + url: '/pages/infos/management/popup-config' }, { id: 'main_event_regist', diff --git a/src/app/pages/infos/info/component/bet-rule.component.html b/src/app/pages/infos/info/component/betting-rule.component.html similarity index 97% rename from src/app/pages/infos/info/component/bet-rule.component.html rename to src/app/pages/infos/info/component/betting-rule.component.html index 53da4c2..a1ed442 100644 --- a/src/app/pages/infos/info/component/bet-rule.component.html +++ b/src/app/pages/infos/info/component/betting-rule.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/app/pages/infos/info/component/bet-rule.component.scss b/src/app/pages/infos/info/component/betting-rule.component.scss similarity index 99% rename from src/app/pages/infos/info/component/bet-rule.component.scss rename to src/app/pages/infos/info/component/betting-rule.component.scss index f867e96..3759656 100644 --- a/src/app/pages/infos/info/component/bet-rule.component.scss +++ b/src/app/pages/infos/info/component/betting-rule.component.scss @@ -1,6 +1,6 @@ @import "src/@fuse/scss/fuse"; -#bet-rule { +#betting-rule { .header { diff --git a/src/app/pages/infos/info/component/bet-rule.component.ts b/src/app/pages/infos/info/component/betting-rule.component.ts similarity index 84% rename from src/app/pages/infos/info/component/bet-rule.component.ts rename to src/app/pages/infos/info/component/betting-rule.component.ts index 6a59036..1932a80 100644 --- a/src/app/pages/infos/info/component/bet-rule.component.ts +++ b/src/app/pages/infos/info/component/betting-rule.component.ts @@ -5,13 +5,13 @@ import { takeUntil } from 'rxjs/operators'; import { fuseAnimations } from 'src/@fuse/animations'; @Component({ - selector: 'app-bet-rule', - templateUrl: './bet-rule.component.html', - styleUrls: ['./bet-rule.component.scss'], + selector: 'app-betting-rule', + templateUrl: './betting-rule.component.html', + styleUrls: ['./betting-rule.component.scss'], encapsulation: ViewEncapsulation.None, animations: fuseAnimations }) -export class BetRuleComponent implements OnInit, OnDestroy { +export class BettingRuleComponent implements OnInit, OnDestroy { private unsubscribeAll: Subject; constructor(private fb: FormBuilder) { diff --git a/src/app/pages/infos/info/component/free-board.component.ts b/src/app/pages/infos/info/component/free-board.component.ts index c7cf029..255aced 100644 --- a/src/app/pages/infos/info/component/free-board.component.ts +++ b/src/app/pages/infos/info/component/free-board.component.ts @@ -16,7 +16,7 @@ import { takeUntil } from 'rxjs/operators'; import { fuseAnimations } from 'src/@fuse/animations'; -import { ServiceCenterService } from 'src/modules/infos/service-center/service/service-center.service'; +import { ServiceCenterService } from 'src/modules/infos/service/service-center.service'; import { ServiceCenterDataSource } from './service-center.data-source'; @Component({ selector: 'app-free-board', diff --git a/src/app/pages/infos/info/component/index.ts b/src/app/pages/infos/info/component/index.ts index 797d723..d9fb423 100644 --- a/src/app/pages/infos/info/component/index.ts +++ b/src/app/pages/infos/info/component/index.ts @@ -1,21 +1,21 @@ import { ServiceCenterComponent } from './service-center.component'; import { SendMessageComponent } from './send-message.component'; import { FreeBoardComponent } from './free-board.component'; -import { BetRuleComponent } from './bet-rule.component'; -import { PopupSetComponent } from './popup-set.component'; +import { BettingRuleComponent } from './betting-rule.component'; +import { PopupConfigComponent } from './popup-config.component'; import { EventRegistComponent } from './event-regist.component'; import { NoticeBoardComponent } from './notice-board.component'; import { FreeBoardRegistComponent } from './free-board-regist.component'; -import { PopupSetDetailComponent } from './popup-set-detail.component'; +import { PopupConfigDetailComponent } from './popup-config-detail.component'; export const COMPONENTS = [ ServiceCenterComponent, SendMessageComponent, FreeBoardComponent, - BetRuleComponent, - PopupSetComponent, + BettingRuleComponent, + PopupConfigComponent, EventRegistComponent, NoticeBoardComponent, FreeBoardRegistComponent, - PopupSetDetailComponent + PopupConfigDetailComponent ]; diff --git a/src/app/pages/infos/info/component/popup-set-detail.component.html b/src/app/pages/infos/info/component/popup-config-detail.component.html similarity index 99% rename from src/app/pages/infos/info/component/popup-set-detail.component.html rename to src/app/pages/infos/info/component/popup-config-detail.component.html index e4f07c9..4de9d92 100644 --- a/src/app/pages/infos/info/component/popup-set-detail.component.html +++ b/src/app/pages/infos/info/component/popup-config-detail.component.html @@ -1,4 +1,4 @@ -