Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
fix horrendous indentation again
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 2, 2024
1 parent b18896c commit eeacc53
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 398 deletions.
72 changes: 14 additions & 58 deletions src/components/Dialogs.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<template>
<div>
<div
class="true-center blank-slate"
v-if="npcs.length === 0"
>
<div class="true-center blank-slate" v-if="npcs.length === 0">
Add NPCs first
</div>

Expand All @@ -12,12 +9,9 @@ v-if="npcs.length === 0"
v-if="npcs.length && dialogs.length === 0"
>
No NPC Scripts
<br>
<br />

<b-button
variant="primary"
@click="openModal()"
>Add one</b-button>
<b-button variant="primary" @click="openModal()">Add one</b-button>
</div>

<b-modal
Expand All @@ -37,10 +31,7 @@ variant="primary"
>
<div class="d-block p-1">
<b-form>
<b-tabs
content-class="mt-3"
fill
>
<b-tabs content-class="mt-3" fill>
<b-tab title="Core Stats">
<div class="row">
<div class="col-md-4">
Expand All @@ -51,11 +42,7 @@ fill
:maps="maps"
/>

<b-form-group
label-cols-md="3"
label="Name"
class="optional"
>
<b-form-group label-cols-md="3" label="Name" class="optional">
<b-form-input
type="text"
v-model="dialog.name"
Expand All @@ -75,11 +62,7 @@ class="optional"
/>
</b-form-group>

<b-form-group
label-cols-md="3"
label="HP"
class="multi"
>
<b-form-group label-cols-md="3" label="HP" class="multi">
<b-form-input
type="number"
v-model="dialog.hp.min"
Expand All @@ -96,11 +79,7 @@ class="multi"
/>
</b-form-group>

<b-form-group
label-cols-md="3"
label="MP"
class="multi"
>
<b-form-group label-cols-md="3" label="MP" class="multi">
<b-form-input
type="number"
v-model="dialog.mp.min"
Expand All @@ -117,21 +96,15 @@ class="multi"
/>
</b-form-group>

<b-form-group
label-cols-md="3"
label="Hostility"
>
<b-form-group label-cols-md="3" label="Hostility">
<b-form-select
v-model="dialog.hostility"
required
:options="['OnHit', 'Faction', 'Always', 'Never']"
/>
</b-form-group>

<b-form-group
label-cols-md="3"
label="Allegiance"
>
<b-form-group label-cols-md="3" label="Allegiance">
<b-form-select
v-model="dialog.allegiance"
required
Expand All @@ -148,10 +121,7 @@ label="Allegiance"
/>
</b-form-group>

<b-form-group
label-cols-md="3"
label="Alignment"
>
<b-form-group label-cols-md="3" label="Alignment">
<b-form-select
v-model="dialog.alignment"
required
Expand Down Expand Up @@ -309,15 +279,9 @@ label="Alignment"
</div>
</b-modal>

<div
class="mb-3 row"
v-if="dialogs.length > 0"
>
<div class="mb-3 row" v-if="dialogs.length > 0">
<div class="col-6">
<b-form-input
v-model="filter"
placeholder="Search NPC scripts..."
/>
<b-form-input v-model="filter" placeholder="Search NPC scripts..." />
</div>

<div class="col-6">
Expand All @@ -344,11 +308,7 @@ placeholder="Search NPC scripts..."
@filtered="onFiltered"
>
<template #head(actions)>
<b-button
size="sm"
variant="success"
@click="openModal()"
>
<b-button size="sm" variant="success" @click="openModal()">
Add
</b-button>
</template>
Expand Down Expand Up @@ -380,11 +340,7 @@ variant="success"
Edit
</b-button>

<b-button
size="sm"
variant="danger"
@click="remove(data.item)"
>
<b-button size="sm" variant="danger" @click="remove(data.item)">
Remove
</b-button>
</template>
Expand Down
60 changes: 12 additions & 48 deletions src/components/Droptables.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@
v-if="items.length && maps.length && droptables.length === 0"
>
No Droptables
<br>
<br />

<b-button
variant="primary"
@click="openModal()"
>Add one</b-button>
<b-button variant="primary" @click="openModal()">Add one</b-button>
</div>

<b-modal
Expand All @@ -41,31 +38,21 @@ variant="primary"
<b-form>
<div class="row mt-3">
<div class="col-6">
<b-form-group
label-cols-md="3"
label="Map"
>
<b-form-group label-cols-md="3" label="Map">
<b-form-select
v-model="droptable.mapName"
required
@change.native="droptable.regionName = ''"
>
<option :value="''">Choose map (unselects region)</option>

<option
v-for="map in mapNames"
:value="map"
:key="map"
>
<option v-for="map in mapNames" :value="map" :key="map">
{{ map }}
</option>
</b-form-select>
</b-form-group>

<b-form-group
label-cols-md="3"
label="Region"
>
<b-form-group label-cols-md="3" label="Region">
<b-form-select
v-model="droptable.regionName"
required
Expand All @@ -83,14 +70,8 @@ label="Region"
</b-form-select>
</b-form-group>

<b-form-group
label-cols-md="3"
label="Item"
>
<b-form-select
v-model="droptable.result"
required
>
<b-form-group label-cols-md="3" label="Item">
<b-form-select v-model="droptable.result" required>
<option :value="''">Choose item</option>

<option
Expand All @@ -103,10 +84,7 @@ required
</b-form-select>
</b-form-group>

<b-form-group
label-cols-md="3"
label="Chance to Drop (1/x)"
>
<b-form-group label-cols-md="3" label="Chance to Drop (1/x)">
<b-form-input
type="number"
v-model="droptable.maxChance"
Expand Down Expand Up @@ -140,15 +118,9 @@ label="Chance to Drop (1/x)"
</div>
</b-modal>

<div
class="mb-3 row"
v-if="droptables.length > 0"
>
<div class="mb-3 row" v-if="droptables.length > 0">
<div class="col-6">
<b-form-input
v-model="filter"
placeholder="Search droptables..."
/>
<b-form-input v-model="filter" placeholder="Search droptables..." />
</div>

<div class="col-6">
Expand All @@ -175,11 +147,7 @@ placeholder="Search droptables..."
@filtered="onFiltered"
>
<template #head(actions)>
<b-button
size="sm"
variant="success"
@click="openModal()"
>
<b-button size="sm" variant="success" @click="openModal()">
Add
</b-button>
</template>
Expand All @@ -205,11 +173,7 @@ variant="success"
Edit
</b-button>

<b-button
size="sm"
variant="danger"
@click="remove(data.item)"
>
<b-button size="sm" variant="danger" @click="remove(data.item)">
Remove
</b-button>
</template>
Expand Down
Loading

0 comments on commit eeacc53

Please sign in to comment.