Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed May 3, 2024
1 parent 58dd4d1 commit e9359c3
Show file tree
Hide file tree
Showing 4 changed files with 287 additions and 267 deletions.
11 changes: 8 additions & 3 deletions components/Interact.vue
Expand Up @@ -43,16 +43,21 @@ export default {
case config === true:
return instance.value[method]({});
}
}
};
onMounted(() => {
instance.value = interact(element.value);
instance.value.on('dragmove', (event) => emit('dragmove', event));
instance.value.on('resizemove', (event) => emit('resizemove', event));
watch(drag, (config) => applyConfigToInteract(config, 'draggable'), { immediate: true });
watch(resize, (config) => applyConfigToInteract(config, 'resizable'), { immediate: true });
watch(drag, (config) => applyConfigToInteract(config, 'draggable'), {
immediate: true,
});
watch(resize, (config) => applyConfigToInteract(config, 'resizable'), {
immediate: true,
});
});
onBeforeUnmount(destroy);
Expand Down
22 changes: 19 additions & 3 deletions components/Spinner.vue
@@ -1,6 +1,22 @@
<template>
<svg class="animate-spin h-5 w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
<svg
class="animate-spin h-5 w-5"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
>
<circle
class="opacity-25"
cx="12"
cy="12"
r="10"
stroke="currentColor"
stroke-width="4"
></circle>
<path
class="opacity-75"
fill="currentColor"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
></path>
</svg>
</template>

0 comments on commit e9359c3

Please sign in to comment.