mirror of
https://github.com/unraid/api.git
synced 2026-01-03 23:19:54 -06:00
refactor: simplify callback handler component
This commit is contained in:
@@ -1,24 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import { storeToRefs } from 'pinia';
|
||||
import 'tailwindcss/tailwind.css';
|
||||
import '~/assets/main.css';
|
||||
|
||||
import { useCallbackStore } from '~/store/callback';
|
||||
import { useCallbackStore } from '~/store/callbackActions';
|
||||
|
||||
const callbackStore = useCallbackStore();
|
||||
|
||||
const { decryptedData } = storeToRefs(callbackStore);
|
||||
|
||||
onBeforeMount(() => {
|
||||
callbackStore.watcher();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="text-white font-semibold p-4 bg-orange-400 rounded-lg">
|
||||
<h2>CallbackHandler.ce</h2>
|
||||
<pre>{{ JSON.stringify(decryptedData, null, 2) }}</pre>
|
||||
</div>
|
||||
<slot />
|
||||
</template>
|
||||
|
||||
<style lang="postcss">
|
||||
|
||||
Reference in New Issue
Block a user