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
40 changed files
with
855 additions
and
41 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
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
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
12 changes: 0 additions & 12 deletions
12
src/app/features/item/item-loot-template/item-loot-template.component.html
This file was deleted.
Oops, something went wrong.
Empty file.
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
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,13 @@ | ||
import { NgModule } from '@angular/core'; | ||
|
||
import { ReferenceLootTemplateModule } from './reference-loot/reference-loot-template.module'; | ||
|
||
const modules = [ | ||
ReferenceLootTemplateModule, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [modules], | ||
exports: [modules], | ||
}) | ||
export class OtherLootsModule {} |
15 changes: 15 additions & 0 deletions
15
src/app/features/other-loots/reference-loot/reference-loot-handler.service.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { TestBed } from '@angular/core/testing'; | ||
import { RouterTestingModule } from '@angular/router/testing'; | ||
|
||
import { ReferenceLootHandlerService } from './reference-loot-handler.service'; | ||
|
||
describe('ReferenceLootHandlerService', () => { | ||
beforeEach(() => TestBed.configureTestingModule({ | ||
imports: [RouterTestingModule], | ||
providers: [ReferenceLootHandlerService], | ||
})); | ||
|
||
it('should be created', () => { | ||
expect(TestBed.inject(ReferenceLootHandlerService)).toBeTruthy(); | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
src/app/features/other-loots/reference-loot/reference-loot-handler.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,25 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { Router } from '@angular/router'; | ||
|
||
import { HandlerService } from '@keira-abstract/service/handlers/handler.service'; | ||
import { REFERENCE_LOOT_TEMPLATE_TABLE, ReferenceLootTemplate } from '@keira-types/reference-loot-template.type'; | ||
|
||
@Injectable() | ||
export class ReferenceLootHandlerService extends HandlerService<ReferenceLootTemplate> { | ||
|
||
get isUnsaved(): boolean { return this.statusMap[REFERENCE_LOOT_TEMPLATE_TABLE]; } | ||
|
||
protected _statusMap = { | ||
[REFERENCE_LOOT_TEMPLATE_TABLE]: false, | ||
}; | ||
|
||
/* istanbul ignore next */ // because of: https://github.com/gotwarlost/istanbul/issues/690 | ||
constructor( | ||
protected router: Router, | ||
) { | ||
super( | ||
'other-loots/reference', | ||
router, | ||
); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/app/features/other-loots/reference-loot/reference-loot-template.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,21 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { ReferenceLootTemplate } from '@keira-types/reference-loot-template.type'; | ||
import { ReferenceLootTemplateService } from './reference-loot-template.service'; | ||
import { LootTemplateComponent } from '@keira-abstract/components/editors/loot-template/loot-template.component'; | ||
import { ReferenceLootHandlerService } from './reference-loot-handler.service'; | ||
|
||
@Component({ | ||
selector: 'keira-reference-loot-template', | ||
templateUrl: '../../../shared/abstract/components/editors/loot-template/loot-template.component.html', | ||
}) | ||
export class ReferenceLootTemplateComponent extends LootTemplateComponent<ReferenceLootTemplate> { | ||
|
||
/* istanbul ignore next */ // because of: https://github.com/gotwarlost/istanbul/issues/690 | ||
constructor( | ||
public editorService: ReferenceLootTemplateService, | ||
public handlerService: ReferenceLootHandlerService, | ||
) { | ||
super(editorService, handlerService); | ||
} | ||
} |
Oops, something went wrong.