-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBackup
91 lines (89 loc) · 3.86 KB
/
Backup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<div class>
<div class>
<div class>
<div class="border border-secondary">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">Search</span>
</div>
<input type="text" v-model="searchString" class="form-control" />
</div>
<div class="search-container border">
<div class="card-sm">
<ul class="list-group list-group-flush">
<li
class="list-group-item"
:class="selectedSpell.id === spell.id ? 'selected' : ''"
v-for="spell in filteredSpells"
v-on:click="selectSpell(spell.id)"
:spell="spell"
:key="spell.id"
>{{ spell.name }}</li>
<li
class="list-group-item"
v-if="filteredSpells.length === 0"
>No spells found.</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class>
<div class>
<div class>
<div class="border d-flex flex-column">
<div id="infoContainer" class="info-container py-4">
<div
id="infoSubcontainer"
class="info-subcontainer px-3 pb-5 pt-1 align-self-top"
>
<span class="info-header">
<h3>{{ selectedSpell.name }}</h3>
<h5
v-if="selectedSpell.level"
>Level {{ selectedSpell.level }} - {{ selectedSpell.school }}</h5>
<small class="text-primary">{{ selectedSpell.class }}</small>
</span>
<!-- <div
class="text-justify"
:class="this.selectedSpell.desc ? '' : 'invisible'"
v-html="extendedDescription"
></div>-->
<span class="extended-description text-justify">
<strong v-if="selectedSpell.id" class="d-block pt-2 text-primary">Description</strong>
<span v-html="formattedDescription"></span>
<strong v-if="selectedSpell.id" class="text-primary">Classes</strong>
<p>{{ selectedSpell.class }}</p>
<strong v-if="selectedSpell.id" class="text-primary">Components</strong>
<p v-html="formattedComponents"></p>
<strong v-if="selectedSpell.id" class="text-primary">School</strong>
<p>{{ selectedSpell.school }}</p>
</span>
</div>
</div>
<div
v-if="paginationEnabled === true"
class="info-footer border p-2 pb-5 text-center align-self-end"
>
<span
class="btn btn-dark float-right"
:class="nextEnabled ? '' : 'disabled'"
v-on:click="nextPage()"
>Next</span>
<span
class="btn btn-dark float-left"
:class="previousEnabled ? '' : 'disabled'"
v-on:click="previousPage()"
>Previous</span>
<span
:class="selectedSpell.id === undefined ? 'disabled' : ''"
class="btn btn-primary align-bottom"
v-on:click="addSpell(selectedSpell)"
>Add Spell</span>
</div>
</div>
</div>
</div>
</div>