-
Notifications
You must be signed in to change notification settings - Fork 9
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
5 changed files
with
87 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Vue from 'vue' | ||
import Component, { mixins } from 'vue-class-component'; | ||
import { Prop } from 'vue-property-decorator'; | ||
import MixinUtil from '@/components/MixinUtil'; | ||
import * as ui from '@/util/ui'; | ||
|
||
@Component | ||
export default class RewardData extends mixins(MixinUtil) { | ||
@Prop() | ||
private data!: any; | ||
|
||
length() { | ||
return Object.keys(this.data).filter(key => key.startsWith("CraftSignboardR")).length | ||
} | ||
item(i: number) { | ||
const n = (i > 1) ? i.toString() : "" | ||
return this.data[`CraftSignboardReward${n}`] | ||
} | ||
name(i: number) { | ||
return ui.getName(this.item(i)) | ||
} | ||
} |
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,32 @@ | ||
<template> | ||
<section> | ||
<hr> | ||
<h4 class="subsection-heading">Addison Rewards</h4> | ||
<div class="beedle-shop-limit-size"> | ||
<div class="beedle-shop-table"> | ||
<div v-for="idx in length()" :key="idx" class="table-row"> | ||
<div class="cell">- {{name(idx)}}</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</template> | ||
<style> | ||
.beedle-shop-limit-size { | ||
max-height: 15em; | ||
overflow: scroll; | ||
padding-right:1em; | ||
} | ||
.beedle-shop-table { | ||
color: white; | ||
display: table; | ||
width: 100%; | ||
} | ||
.beedle-shop-table .table-row { | ||
display: table-row; | ||
} | ||
.beedle-shop-table .cell { | ||
display: table-cell; | ||
} | ||
</style> | ||
<script src="./RewardData.ts"></script> |