refactor(editor): Move editor-ui and design-system to frontend dir (no-changelog) (#13564)

This commit is contained in:
Alex Grozav
2025-02-28 14:28:30 +02:00
committed by GitHub
parent 684353436d
commit f5743176e5
1635 changed files with 805 additions and 1079 deletions

View File

@@ -0,0 +1,34 @@
<script setup lang="ts">
import { useUIStore } from '@/stores/ui.store';
defineProps<{
name: string;
keepAlive?: boolean;
}>();
defineSlots<{
default: {
modalName: string;
active: boolean;
open: boolean;
activeId: string;
mode: string;
data: Record<string, unknown>;
};
}>();
const uiStore = useUIStore();
</script>
<template>
<div v-if="uiStore.modalsById[name].open || keepAlive">
<slot
:modal-name="name"
:active="uiStore.isModalActiveById[name]"
:open="uiStore.modalsById[name].open"
:active-id="uiStore.modalsById[name].activeId"
:mode="uiStore.modalsById[name].mode"
:data="uiStore.modalsById[name].data"
></slot>
</div>
</template>