generated from maximegris/angular-electron
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
25 changed files
with
562 additions
and
224 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { IQuest } from '../../interfaces'; | ||
import { id } from './id'; | ||
|
||
export const defaultQuest: () => IQuest = () => ({ | ||
_id: id(), | ||
|
||
name: '', | ||
desc: '', | ||
giver: '', | ||
isDaily: false, | ||
isRepeatable: false, | ||
|
||
messages: { | ||
kill: '', | ||
complete: '', | ||
incomplete: '', | ||
alreadyHas: '', | ||
permComplete: '', | ||
}, | ||
|
||
requirements: { | ||
type: 'none', | ||
|
||
npcIds: [], | ||
killsRequired: 0, | ||
|
||
item: '', | ||
fromHands: true, | ||
slot: ['rightHand', 'leftHand'], | ||
|
||
countRequired: 0, | ||
|
||
itemsRequired: 0, | ||
}, | ||
|
||
rewards: [], // { type, statName, value } | ||
}); |
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
6 changes: 6 additions & 0 deletions
6
src/app/shared/components/input-questreward/input-questreward.component.html
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,6 @@ | ||
<div class="relative"> | ||
<ng-select class="form-control" [items]="values" [(ngModel)]="rewardType" placeholder="Select quest reward type..." | ||
(change)="change.emit($event)"></ng-select> | ||
|
||
<app-input-floating-label>Quest Reward Type</app-input-floating-label> | ||
</div> |
Empty file.
14 changes: 14 additions & 0 deletions
14
src/app/shared/components/input-questreward/input-questreward.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,14 @@ | ||
import { Component, model, output } from '@angular/core'; | ||
import { QuestRewardType, QuestRewardTypeType } from '../../../../interfaces'; | ||
|
||
@Component({ | ||
selector: 'app-input-questreward', | ||
templateUrl: './input-questreward.component.html', | ||
styleUrl: './input-questreward.component.scss', | ||
}) | ||
export class InputQuestrewardComponent { | ||
public rewardType = model.required<QuestRewardTypeType | undefined>(); | ||
public change = output<QuestRewardTypeType>(); | ||
|
||
public values = [...Object.values(QuestRewardType).sort()]; | ||
} |
6 changes: 6 additions & 0 deletions
6
src/app/shared/components/input-questtype/input-questtype.component.html
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,6 @@ | ||
<div class="relative"> | ||
<ng-select class="form-control" [items]="values" [(ngModel)]="questType" placeholder="Select quest type..." | ||
(change)="change.emit($event)"></ng-select> | ||
|
||
<app-input-floating-label>Quest Type</app-input-floating-label> | ||
</div> |
Empty file.
17 changes: 17 additions & 0 deletions
17
src/app/shared/components/input-questtype/input-questtype.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,17 @@ | ||
import { Component, model, output } from '@angular/core'; | ||
import { | ||
QuestRequirementType, | ||
QuestRequirementTypeType, | ||
} from '../../../../interfaces'; | ||
|
||
@Component({ | ||
selector: 'app-input-questtype', | ||
templateUrl: './input-questtype.component.html', | ||
styleUrl: './input-questtype.component.scss', | ||
}) | ||
export class InputQuesttypeComponent { | ||
public questType = model.required<QuestRequirementTypeType | undefined>(); | ||
public change = output<QuestRequirementTypeType>(); | ||
|
||
public values = [...Object.values(QuestRequirementType).sort()]; | ||
} |
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
Oops, something went wrong.