aboutsummaryrefslogtreecommitdiffstats
path: root/components/base
diff options
context:
space:
mode:
Diffstat (limited to 'components/base')
-rw-r--r--components/base/ItemStack/ItemStackModal.vue5
-rw-r--r--components/base/Pulser.vue56
2 files changed, 60 insertions, 1 deletions
diff --git a/components/base/ItemStack/ItemStackModal.vue b/components/base/ItemStack/ItemStackModal.vue
index 865c054..2a53926 100644
--- a/components/base/ItemStack/ItemStackModal.vue
+++ b/components/base/ItemStack/ItemStackModal.vue
@@ -47,7 +47,9 @@ const selectedQuestItem = computed({
},
set(newValue: string) {
value.value = {}
- value.value['quest-item'] = newValue;
+ if (newValue) {
+ value.value['quest-item'] = newValue;
+ }
}
})
const knownQuestItems = computed(() => { return session.session.items.map((item) => item.id) });
@@ -102,6 +104,7 @@ const confirm = () => {
<div id="material" class="option-group" v-if="selectedType === 'material'">
<label for="material">Material</label>
<multiselect v-model="value" :options="materials" :searchable="true" placeholder="Enter material name" />
+ <p>Any items of this material will be matched.</p>
</div>
<div id="itemstack" class="option-group" v-if="selectedType === 'itemstack'">
diff --git a/components/base/Pulser.vue b/components/base/Pulser.vue
new file mode 100644
index 0000000..796b3cc
--- /dev/null
+++ b/components/base/Pulser.vue
@@ -0,0 +1,56 @@
+<template>
+ <div class="circles">
+ <div class="circle1"></div>
+ <div class="circle2"></div>
+ <div class="circle3"></div>
+ </div>
+</template>
+
+<style scoped>
+.circles {
+ position: relative;
+ height: 100px;
+ width: 100px;
+
+ >div {
+ animation: growAndFade 3s infinite ease-out;
+ background-color: var(--color-primary);
+ border-radius: 50%;
+ height: 100%;
+ opacity: 0;
+ position: absolute;
+ width: 100%;
+ }
+
+ .circle1 {
+ animation-delay: 1s;
+ }
+
+ .circle2 {
+ animation-delay: 2s;
+ }
+
+ .circle3 {
+ animation-delay: 3s;
+ }
+}
+
+@keyframes growAndFade {
+ 0% {
+ opacity: .25;
+ transform: scale(0);
+ }
+
+ 100% {
+ opacity: 0;
+ transform: scale(1);
+ }
+}
+
+body {
+ align-items: center;
+ display: flex;
+ justify-content: center;
+ margin: 0;
+}
+</style> \ No newline at end of file