Deploy deepseek 2
Some checks failed
Test / test (push) Failing after 2s
Build and Deploy Nuxt / build (push) Successful in 1m51s

This commit is contained in:
2026-10-19 19:04:28 +02:00
parent b5d5e570d5
commit 1ec29121e1
45 changed files with 3438 additions and 166 deletions

View File

@@ -1,23 +1,28 @@
<script setup>
import { ref,onMounted } from 'vue';
import { ref,onMounted,onUnmounted } from 'vue';
import { emitter } from '~/services/Emitter';
const statusIcon = ref(null);
const statusMessage = ref(null);
emitter.on("status-bar-update", (state) => {
const handleStatusUpdate = (state) => {
var preloadImage = new Image();
preloadImage.src = '/icons/Pixelarticons/black/' + state.icon + ".svg";
preloadImage.onload = function() {
statusIcon.value.src = this.src;
// The update can arrive (or finish loading) while the bar is not mounted.
if (statusIcon.value) statusIcon.value.src = this.src;
};
statusMessage.value.innerText = state.text;
})
if (statusMessage.value) statusMessage.value.innerText = state.text;
};
emitter.on("status-bar-update", handleStatusUpdate);
onMounted(() => {
emitter.emit("status-bar-update", {text: "Hola", icon: "check"})
});
onUnmounted(() => emitter.off("status-bar-update", handleStatusUpdate));
</script>
<template>
<span class="status-text">