Add the Studio 2 bench and restore saved prompt sections
This commit is contained in:
@@ -1074,6 +1074,11 @@ async function onMoveFocused(event: Event) {
|
||||
}
|
||||
|
||||
function openInStudio(entry: LibraryEntry) {
|
||||
const part = focusedParts.value.find(part => part.id === focusedPartId.value) || focusedParts.value[0]
|
||||
if ((part as any)?.studio2) {
|
||||
navigateTo({ path: '/studio-2', query: { [entry.kind === 'clip' ? 'clip' : 'still']: part!.id } })
|
||||
return
|
||||
}
|
||||
if (entry.kind === 'clip' && entry.group) {
|
||||
navigateTo({ path: '/', query: { clip: focusedPartId.value || entry.group.head.id } })
|
||||
return
|
||||
@@ -1088,6 +1093,11 @@ function openInStudio(entry: LibraryEntry) {
|
||||
}
|
||||
|
||||
function useInStudio(entry: LibraryEntry) {
|
||||
const part = focusedParts.value.find(part => part.id === focusedPartId.value) || focusedParts.value[0]
|
||||
if ((part as any)?.studio2) {
|
||||
navigateTo({ path: '/studio-2', query: { [entry.kind === 'clip' ? 'clip' : 'still']: part!.id, use: '1' } })
|
||||
return
|
||||
}
|
||||
if (entry.kind === 'clip' && entry.group) {
|
||||
navigateTo({ path: '/', query: { clip: focusedPartId.value || entry.group.head.id, use: '1' } })
|
||||
return
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<Studio2Bench v-if="config.public.studio !== 'xaigen'" />
|
||||
<main v-else class="mx-auto max-w-xl p-8"><h1 class="text-2xl font-semibold">Studio 2 preview</h1><p class="mt-3">Studio 2 is AIGen-first. Your LTX studio remains available.</p><NuxtLink to="/" class="mt-4 inline-block text-amber-200">Open xAIGen</NuxtLink></main>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
const config = useRuntimeConfig()
|
||||
</script>
|
||||
Reference in New Issue
Block a user