refactor: ♻️ Rewrite state system to use Pinia for composer and auth

This commit is contained in:
Jesse Wierzbinski 2025-08-28 07:41:51 +02:00
parent a6db9e059d
commit b510782a30
No known key found for this signature in database
80 changed files with 999 additions and 1011 deletions

View file

@ -26,14 +26,13 @@ const { items, command } = defineProps<{
items: string[];
command: (value: { name: string }) => void;
}>();
const authStore = useAuthStore();
const selectedIndex = ref(0);
const emojis = computed(() => {
return items
.map((item) => {
return identity.value?.emojis.find(
(emoji) => emoji.shortcode === item,
);
return authStore.emojis.find((emoji) => emoji.shortcode === item);
})
.filter((emoji) => emoji !== undefined);
});