-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
57 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
libs/shared/selectors/src/search/game-tele-search.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { MysqlQueryService } from '@keira/shared/db-layer'; | ||
import { GAME_TELE_SEARCH_FIELDS, GAME_TELE_TABLE, GameTele } from '@keira/shared/acore-world-model'; | ||
import { SearchService } from '@keira/shared/base-abstract-classes'; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class GameTeleSearchService extends SearchService<GameTele> { | ||
/* istanbul ignore next */ // because of: https://github.com/gotwarlost/istanbul/issues/690 | ||
constructor(override readonly queryService: MysqlQueryService) { | ||
super(queryService, GAME_TELE_TABLE, GAME_TELE_SEARCH_FIELDS); | ||
} | ||
} |
22 changes: 0 additions & 22 deletions
22
libs/shared/selectors/src/selectors/game-tele-selector/creature-selector-modal.component.ts
This file was deleted.
Oops, something went wrong.
13 changes: 6 additions & 7 deletions
13
...r/creature-selector-btn.component.spec.ts → .../game-tele-selector-btn.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 9 additions & 10 deletions
19
...creature-selector-modal.component.spec.ts → ...ame-tele-selector-modal.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
libs/shared/selectors/src/selectors/game-tele-selector/game-tele-selector-modal.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { ChangeDetectionStrategy, Component, inject } from '@angular/core'; | ||
import { GAME_TELE_ID, GameTele } from '@keira/shared/acore-world-model'; | ||
import { TranslateModule } from '@ngx-translate/core'; | ||
import { NgxDatatableModule } from '@siemens/ngx-datatable'; | ||
import { SearchSelectorModalComponent } from '../base-selector/search-selector-modal.component'; | ||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | ||
import { GameTeleSearchService } from '../../search/game-tele-search.service'; | ||
import { HighlightjsWrapperComponent } from '@keira/shared/base-editor-components'; | ||
|
||
@Component({ | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
selector: 'keira-game-tele-selector-modal', | ||
templateUrl: './game-tele-selector-modal.component.html', | ||
standalone: true, | ||
imports: [FormsModule, ReactiveFormsModule, NgxDatatableModule, TranslateModule, HighlightjsWrapperComponent], | ||
}) | ||
export class GameTeleSelectorModalComponent extends SearchSelectorModalComponent<GameTele> { | ||
protected entityIdField = GAME_TELE_ID; | ||
protected searchService = inject(GameTeleSearchService); | ||
} |