Refine styles for video models (#216)
This commit is contained in:
1 parent
90824b0018
commit
b3fc92eb4c
22 files changed
+79
-252
No files matched your search
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "minor",
|
||||
"comment": "refine new styles for models",
|
||||
"packageName": "@acedatacloud/nexior",
|
||||
"email": "cqc@cuiqingcai.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
||||
@@ -116,6 +116,7 @@ html.dark,
|
||||
border-radius: 10px;
|
||||
.el-textarea__inner {
|
||||
border-radius: 10px;
|
||||
resize: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,9 @@ import {
|
||||
ROUTE_DEEPSEEK_CONVERSATION_NEW,
|
||||
ROUTE_DEEPSEEK_CONVERSATION,
|
||||
ROUTE_GROK_CONVERSATION_NEW,
|
||||
ROUTE_GROK_CONVERSATION
|
||||
ROUTE_GROK_CONVERSATION,
|
||||
ROUTE_KLING_INDEX,
|
||||
ROUTE_KLING_HISTORY
|
||||
} from '@/router/constants';
|
||||
import LogoTiny from './LogoTiny.vue';
|
||||
import UserCenter from '@/components/user/Center.vue';
|
||||
@@ -140,7 +142,6 @@ export default defineComponent({
|
||||
// name: ROUTE_QRART_INDEX
|
||||
// },
|
||||
// displayName: this.$t('common.nav.qrart'),
|
||||
// icon: 'fa-solid fa-qrcode',
|
||||
// routes: [ROUTE_QRART_INDEX, ROUTE_QRART_HISTORY]
|
||||
// });
|
||||
// }
|
||||
@@ -167,16 +168,16 @@ export default defineComponent({
|
||||
});
|
||||
}
|
||||
// Add pika's leftmost icon
|
||||
if (this.$store?.state?.site?.features?.pika?.enabled) {
|
||||
result.push({
|
||||
route: {
|
||||
name: ROUTE_PIKA_INDEX
|
||||
},
|
||||
displayName: this.$t('common.nav.pika'),
|
||||
logo: 'https://cdn.acedata.cloud/i80tgn.png',
|
||||
routes: [ROUTE_PIKA_INDEX, ROUTE_PIKA_HISTORY]
|
||||
});
|
||||
}
|
||||
// if (this.$store?.state?.site?.features?.pika?.enabled) {
|
||||
// result.push({
|
||||
// route: {
|
||||
// name: ROUTE_PIKA_INDEX
|
||||
// },
|
||||
// displayName: this.$t('common.nav.pika'),
|
||||
// logo: 'https://cdn.acedata.cloud/i80tgn.png',
|
||||
// routes: [ROUTE_PIKA_INDEX, ROUTE_PIKA_HISTORY]
|
||||
// });
|
||||
// }
|
||||
// Add hailuo's leftmost icon
|
||||
if (this.$store?.state?.site?.features?.hailuo?.enabled) {
|
||||
result.push({
|
||||
@@ -184,22 +185,32 @@ export default defineComponent({
|
||||
name: ROUTE_HAILUO_INDEX
|
||||
},
|
||||
displayName: this.$t('common.nav.hailuo'),
|
||||
icon: 'fa-solid fa-film',
|
||||
logo: 'https://cdn.acedata.cloud/4tfwwz.png',
|
||||
logo: 'https://cdn.acedata.cloud/0qg4gp.png',
|
||||
routes: [ROUTE_HAILUO_INDEX, ROUTE_HAILUO_HISTORY]
|
||||
});
|
||||
}
|
||||
// Add headshots's leftmost icon
|
||||
if (this.$store?.state?.site?.features?.headshots?.enabled) {
|
||||
// Add kling's leftmost icon
|
||||
if (this.$store?.state?.site?.features?.kling?.enabled) {
|
||||
result.push({
|
||||
route: {
|
||||
name: ROUTE_HEADSHOTS_INDEX
|
||||
name: ROUTE_KLING_INDEX
|
||||
},
|
||||
displayName: this.$t('common.nav.headshots'),
|
||||
icon: 'fa-solid fa-id-card',
|
||||
routes: [ROUTE_HEADSHOTS_INDEX, ROUTE_HEADSHOTS_HISTORY]
|
||||
displayName: this.$t('common.nav.kling'),
|
||||
logo: 'https://cdn.acedata.cloud/qpbbbb.jpg',
|
||||
routes: [ROUTE_KLING_INDEX, ROUTE_KLING_HISTORY]
|
||||
});
|
||||
}
|
||||
// Add headshots's leftmost icon
|
||||
// if (this.$store?.state?.site?.features?.headshots?.enabled) {
|
||||
// result.push({
|
||||
// route: {
|
||||
// name: ROUTE_HEADSHOTS_INDEX
|
||||
// },
|
||||
// displayName: this.$t('common.nav.headshots'),
|
||||
// icon: 'fa-solid fa-id-card',
|
||||
// routes: [ROUTE_HEADSHOTS_INDEX, ROUTE_HEADSHOTS_HISTORY]
|
||||
// });
|
||||
// }
|
||||
if (this.direction === 'row') {
|
||||
result.push({
|
||||
route: {
|
||||
|
||||
@@ -29,9 +29,7 @@ import { ElButton } from 'element-plus';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import ModelSelector from './config/ModelSelector.vue';
|
||||
import PromptInput from './config/PromptInput.vue';
|
||||
// import RatioSelector from './config/RatioSelector.vue';
|
||||
// import NumbersSelector from './config/NumbersSelector.vue';
|
||||
// import QualitySelector from './config/QualitySelector.vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'PresetPanel',
|
||||
components: {
|
||||
|
||||
@@ -57,6 +57,7 @@ export default defineComponent({
|
||||
overflow: hidden;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 10px;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
|
||||
@@ -1,115 +0,0 @@
|
||||
<template>
|
||||
<div class="field">
|
||||
<h2 class="title font-bold">{{ $t('pika.name.effect') }}</h2>
|
||||
<el-select v-model="value" class="value" :placeholder="$t('pika.placeholder.select')" clearable>
|
||||
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
||||
<span class="float-left">{{ item.label }}</span>
|
||||
<!-- <span class="float-right">{{ item.value }}</span> -->
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'EffectSelector',
|
||||
components: {
|
||||
ElSelect,
|
||||
ElOption
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
computed: {
|
||||
options() {
|
||||
return [
|
||||
{
|
||||
value: 'Levitate',
|
||||
label: this.$t('pika.style.effect1')
|
||||
},
|
||||
{
|
||||
value: 'Decapitate',
|
||||
label: this.$t('pika.style.effect2')
|
||||
},
|
||||
{
|
||||
value: 'Eye-pop',
|
||||
label: this.$t('pika.style.effect3')
|
||||
},
|
||||
{
|
||||
value: 'Ta-da',
|
||||
label: this.$t('pika.style.effect4')
|
||||
},
|
||||
{
|
||||
value: 'Deflate',
|
||||
label: this.$t('pika.style.effect5')
|
||||
},
|
||||
{
|
||||
value: 'Crumble',
|
||||
label: this.$t('pika.style.effect6')
|
||||
},
|
||||
{
|
||||
value: 'Dissolve',
|
||||
label: this.$t('pika.style.effect7')
|
||||
},
|
||||
{
|
||||
value: 'Squish',
|
||||
label: this.$t('pika.style.effect8')
|
||||
},
|
||||
{
|
||||
value: 'Inflate',
|
||||
label: this.$t('pika.style.effect9')
|
||||
},
|
||||
{
|
||||
value: 'Melt',
|
||||
label: this.$t('pika.style.effect10')
|
||||
},
|
||||
{
|
||||
value: 'Cake-ify',
|
||||
label: this.$t('pika.style.effect11')
|
||||
},
|
||||
{
|
||||
value: 'Crush',
|
||||
label: this.$t('pika.style.effect12')
|
||||
},
|
||||
{
|
||||
value: 'Explode',
|
||||
label: this.$t('pika.style.effect13')
|
||||
}
|
||||
];
|
||||
},
|
||||
value: {
|
||||
get() {
|
||||
return this.$store.state.pika?.config?.effect;
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit('pika/setConfig', {
|
||||
...this.$store.state.pika?.config,
|
||||
effect: val
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {},
|
||||
mounted() {}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.field {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
.title {
|
||||
font-size: 14px;
|
||||
margin: 0;
|
||||
width: 30%;
|
||||
}
|
||||
.value {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -80,8 +80,9 @@ export default defineComponent({
|
||||
margin: 0;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.value {
|
||||
width: 80px;
|
||||
width: 120px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -57,7 +57,7 @@ export default defineComponent({
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between; // Add this line to move the icon to the right
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
.title {
|
||||
font-size: 14px;
|
||||
@@ -65,7 +65,10 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
.info {
|
||||
margin-left: auto; // Ensure the icon stays on the right
|
||||
margin-left: auto;
|
||||
}
|
||||
.prompt {
|
||||
resize: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -105,9 +105,9 @@ export default defineComponent({
|
||||
|
||||
.items {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 48px); // 固定每行5列
|
||||
gap: 8px; // 元素间距
|
||||
justify-content: start; // 左对齐
|
||||
grid-template-columns: repeat(5, 48px);
|
||||
gap: 8px;
|
||||
justify-content: start;
|
||||
|
||||
.item {
|
||||
width: 48px;
|
||||
|
||||
@@ -92,10 +92,11 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElImage, ElAlert, ElButton, ElTooltip } from 'element-plus';
|
||||
import { IFluxTask, IFluxGenerateResponse, IFluxImage } from '@/models';
|
||||
import { IFluxTask, IFluxImage } from '@/models';
|
||||
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import ImageGallery from '../ImageGallery.vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'TaskPreview',
|
||||
components: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div v-for="(video, videoIndex) in videos" :key="videoIndex" class="preview">
|
||||
<div class="left">
|
||||
<el-image src="https://cdn.acedata.cloud/4tfwwz.png" class="avatar" />
|
||||
<el-image src="https://cdn.acedata.cloud/0qg4gp.png" class="avatar" />
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="bot">
|
||||
@@ -208,12 +208,11 @@ $left-width: 70px;
|
||||
.left {
|
||||
width: $left-width;
|
||||
.avatar {
|
||||
background-color: rgb(85, 131, 186);
|
||||
padding: 2px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin: 10px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid var(--el-border-color);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<info-icon :content="$t('kling.description.cfgScale')" />
|
||||
</div>
|
||||
<div class="flex justify-end items-center">
|
||||
<el-input-number v-model="value" size="small" controls-position="right" />
|
||||
<el-input-number v-model="value" controls-position="right" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full">
|
||||
|
||||
@@ -83,19 +83,18 @@ export default defineComponent({
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
justify-content: flex-start;
|
||||
gap: 10px;
|
||||
|
||||
.item {
|
||||
width: 48px;
|
||||
height: 65px;
|
||||
border: 2px solid var(--el-border-color);
|
||||
border: 1px solid var(--el-border-color);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
border-radius: 5px;
|
||||
margin-right: 30px;
|
||||
border-radius: 10px;
|
||||
|
||||
.preview {
|
||||
margin-top: 8px;
|
||||
@@ -107,7 +106,7 @@ export default defineComponent({
|
||||
justify-content: center;
|
||||
|
||||
.rect {
|
||||
border: 2px solid var(--el-border-color);
|
||||
border: 1px solid var(--el-border-color);
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 2px;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="preview">
|
||||
<div class="left">
|
||||
<el-image src="https://cdn.acedata.cloud/gtt64b.png" class="avatar" />
|
||||
<el-image src="https://cdn.acedata.cloud/qpbbbb.jpg" class="avatar" />
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="bot">
|
||||
@@ -198,8 +198,6 @@ $left-width: 70px;
|
||||
.left {
|
||||
width: $left-width;
|
||||
.avatar {
|
||||
background-color: rgb(34, 34, 34);
|
||||
padding: 2px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin: 10px;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="main">
|
||||
<div class="presets">
|
||||
<slot name="presets" />
|
||||
<div class="config">
|
||||
<slot name="config" />
|
||||
</div>
|
||||
<div class="results">
|
||||
<slot name="results" />
|
||||
@@ -10,7 +10,7 @@
|
||||
<font-awesome-icon icon="fa-solid fa-gear" class="icon-menu" />
|
||||
</el-button>
|
||||
<el-drawer v-model="drawer" :with-header="false" size="300px" class="drawer">
|
||||
<slot name="presets" />
|
||||
<slot name="config" />
|
||||
</el-drawer>
|
||||
</div>
|
||||
</template>
|
||||
@@ -60,7 +60,7 @@ export default defineComponent({
|
||||
.menu2 {
|
||||
display: none;
|
||||
}
|
||||
.presets {
|
||||
.config {
|
||||
width: 300px;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
@@ -77,7 +77,7 @@ export default defineComponent({
|
||||
@media screen and (min-width: 768px) and (max-width: 1060px) {
|
||||
.main {
|
||||
position: relative;
|
||||
.presets {
|
||||
.config {
|
||||
display: none;
|
||||
}
|
||||
.menu {
|
||||
@@ -93,7 +93,7 @@ export default defineComponent({
|
||||
@media (max-width: 767px) {
|
||||
.main {
|
||||
position: relative;
|
||||
.presets {
|
||||
.config {
|
||||
display: none;
|
||||
}
|
||||
.results {
|
||||
|
||||
@@ -1,21 +1,10 @@
|
||||
<template>
|
||||
<layout>
|
||||
<template #config>
|
||||
<config-panel @generate="onGenerateVideo" />
|
||||
<config-panel @generate="onGenerate" />
|
||||
</template>
|
||||
<template #result>
|
||||
<application-status
|
||||
:initializing="initializing"
|
||||
:application="application"
|
||||
:applications="applications"
|
||||
:service="service"
|
||||
:need-apply="needApply"
|
||||
class="mb-4"
|
||||
@refresh="onGetApplication"
|
||||
@select="$store.dispatch('flux/setApplication', $event)"
|
||||
/>
|
||||
<recent-panel class="panel recent" @reach-top="onReachTop" />
|
||||
<!-- <operation-panel class="panel operation" @generate="onGenerate" /> -->
|
||||
</template>
|
||||
</layout>
|
||||
</template>
|
||||
@@ -28,7 +17,6 @@ import { applicationOperator, fluxOperator } from '@/operators';
|
||||
import { IApplicationDetailResponse, IFluxGenerateRequest, Status } from '@/models';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { ERROR_CODE_DUPLICATION, ERROR_CODE_USED_UP } from '@/constants';
|
||||
import ApplicationStatus from '@/components/application/Status.vue';
|
||||
import RecentPanel from '@/components/flux/RecentPanel.vue';
|
||||
import { IFluxTask } from '@/models';
|
||||
|
||||
@@ -45,7 +33,6 @@ export default defineComponent({
|
||||
components: {
|
||||
ConfigPanel,
|
||||
Layout,
|
||||
ApplicationStatus,
|
||||
RecentPanel
|
||||
},
|
||||
data(): IData {
|
||||
@@ -102,7 +89,7 @@ export default defineComponent({
|
||||
await this.onGetApplication();
|
||||
await this.onScrollDown();
|
||||
await this.onGetTasks();
|
||||
// await this.onScrollDown();
|
||||
await this.onScrollDown();
|
||||
// @ts-ignore
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
@@ -169,7 +156,7 @@ export default defineComponent({
|
||||
createdAtMax
|
||||
});
|
||||
},
|
||||
async onGenerateVideo() {
|
||||
async onGenerate() {
|
||||
const request = {
|
||||
...this.config,
|
||||
callback_url: CALLBACK_URL
|
||||
|
||||
@@ -1,21 +1,10 @@
|
||||
<template>
|
||||
<layout>
|
||||
<template #config>
|
||||
<config-panel @generate="onGenerateVideo" />
|
||||
<config-panel @generate="onGenerate" />
|
||||
</template>
|
||||
<template #result>
|
||||
<application-status
|
||||
:initializing="initializing"
|
||||
:application="application"
|
||||
:applications="applications"
|
||||
:service="service"
|
||||
:need-apply="needApply"
|
||||
class="mb-4"
|
||||
@refresh="onGetApplication"
|
||||
@select="$store.dispatch('hailuo/setApplication', $event)"
|
||||
/>
|
||||
<recent-panel class="panel recent" @reach-top="onReachTop" />
|
||||
<!-- <operation-panel class="panel operation" @generate="onGenerate" /> -->
|
||||
</template>
|
||||
</layout>
|
||||
</template>
|
||||
@@ -28,7 +17,6 @@ import { applicationOperator, hailuoOperator } from '@/operators';
|
||||
import { IApplicationDetailResponse, IHailuoGenerateRequest, Status } from '@/models';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { ERROR_CODE_DUPLICATION, ERROR_CODE_USED_UP } from '@/constants';
|
||||
import ApplicationStatus from '@/components/application/Status.vue';
|
||||
import RecentPanel from '@/components/hailuo/RecentPanel.vue';
|
||||
import { IHailuoTask } from '@/models';
|
||||
|
||||
@@ -45,7 +33,6 @@ export default defineComponent({
|
||||
components: {
|
||||
ConfigPanel,
|
||||
Layout,
|
||||
ApplicationStatus,
|
||||
RecentPanel
|
||||
},
|
||||
data(): IData {
|
||||
@@ -169,7 +156,7 @@ export default defineComponent({
|
||||
createdAtMax
|
||||
});
|
||||
},
|
||||
async onGenerateVideo() {
|
||||
async onGenerate() {
|
||||
const request = {
|
||||
...this.config,
|
||||
callback_url: CALLBACK_URL
|
||||
|
||||
@@ -1,21 +1,10 @@
|
||||
<template>
|
||||
<layout>
|
||||
<template #config>
|
||||
<config-panel @generate="onGenerateVideo" />
|
||||
<config-panel @generate="onGenerate" />
|
||||
</template>
|
||||
<template #result>
|
||||
<application-status
|
||||
:initializing="initializing"
|
||||
:application="application"
|
||||
:applications="applications"
|
||||
:service="service"
|
||||
:need-apply="needApply"
|
||||
class="mb-4"
|
||||
@refresh="onGetApplication"
|
||||
@select="$store.dispatch('kling/setApplication', $event)"
|
||||
/>
|
||||
<recent-panel class="panel recent" @reach-top="onReachTop" />
|
||||
<!-- <operation-panel class="panel operation" @generate="onGenerate" /> -->
|
||||
</template>
|
||||
</layout>
|
||||
</template>
|
||||
@@ -28,7 +17,6 @@ import { applicationOperator, klingOperator } from '@/operators';
|
||||
import { IApplicationDetailResponse, IKlingGenerateRequest, Status } from '@/models';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { ERROR_CODE_DUPLICATION, ERROR_CODE_USED_UP } from '@/constants';
|
||||
import ApplicationStatus from '@/components/application/Status.vue';
|
||||
import RecentPanel from '@/components/kling/RecentPanel.vue';
|
||||
import { IKlingTask } from '@/models';
|
||||
|
||||
@@ -45,7 +33,6 @@ export default defineComponent({
|
||||
components: {
|
||||
ConfigPanel,
|
||||
Layout,
|
||||
ApplicationStatus,
|
||||
RecentPanel
|
||||
},
|
||||
data(): IData {
|
||||
@@ -169,7 +156,7 @@ export default defineComponent({
|
||||
createdAtMax
|
||||
});
|
||||
},
|
||||
async onGenerateVideo() {
|
||||
async onGenerate() {
|
||||
const request = {
|
||||
...this.config,
|
||||
callback_url: CALLBACK_URL
|
||||
|
||||
@@ -1,21 +1,10 @@
|
||||
<template>
|
||||
<layout>
|
||||
<template #config>
|
||||
<config-panel @generate="onGenerateVideo" />
|
||||
<config-panel @generate="onGenerate" />
|
||||
</template>
|
||||
<template #result>
|
||||
<application-status
|
||||
:initializing="initializing"
|
||||
:application="application"
|
||||
:applications="applications"
|
||||
:service="service"
|
||||
:need-apply="needApply"
|
||||
class="mb-4"
|
||||
@refresh="onGetApplication"
|
||||
@select="$store.dispatch('luma/setApplication', $event)"
|
||||
/>
|
||||
<recent-panel class="panel recent" @reach-top="onReachTop" />
|
||||
<!-- <operation-panel class="panel operation" @generate="onGenerate" /> -->
|
||||
</template>
|
||||
</layout>
|
||||
</template>
|
||||
@@ -28,7 +17,6 @@ import { applicationOperator, lumaOperator } from '@/operators';
|
||||
import { IApplicationDetailResponse, ILumaGenerateRequest, Status } from '@/models';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { ERROR_CODE_DUPLICATION, ERROR_CODE_USED_UP } from '@/constants';
|
||||
import ApplicationStatus from '@/components/application/Status.vue';
|
||||
import RecentPanel from '@/components/luma/RecentPanel.vue';
|
||||
import { ILumaTask } from '@/models';
|
||||
|
||||
@@ -45,7 +33,6 @@ export default defineComponent({
|
||||
components: {
|
||||
ConfigPanel,
|
||||
Layout,
|
||||
ApplicationStatus,
|
||||
RecentPanel
|
||||
},
|
||||
data(): IData {
|
||||
@@ -169,7 +156,7 @@ export default defineComponent({
|
||||
createdAtMax
|
||||
});
|
||||
},
|
||||
async onGenerateVideo() {
|
||||
async onGenerate() {
|
||||
const request = {
|
||||
...this.config,
|
||||
callback_url: CALLBACK_URL
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<layout>
|
||||
<template #presets>
|
||||
<template #config>
|
||||
<config-panel @generate="onGenerate" />
|
||||
</template>
|
||||
<template #results>
|
||||
|
||||
@@ -1,21 +1,10 @@
|
||||
<template>
|
||||
<layout>
|
||||
<template #config>
|
||||
<config-panel @generate="onGenerateVideo" />
|
||||
<config-panel @generate="onGenerate" />
|
||||
</template>
|
||||
<template #result>
|
||||
<application-status
|
||||
:initializing="initializing"
|
||||
:application="application"
|
||||
:applications="applications"
|
||||
:service="service"
|
||||
:need-apply="needApply"
|
||||
class="mb-4"
|
||||
@refresh="onGetApplication"
|
||||
@select="$store.dispatch('pika/setApplication', $event)"
|
||||
/>
|
||||
<recent-panel class="panel recent" @reach-top="onReachTop" />
|
||||
<!-- <operation-panel class="panel operation" @generate="onGenerate" /> -->
|
||||
</template>
|
||||
</layout>
|
||||
</template>
|
||||
@@ -28,7 +17,6 @@ import { applicationOperator, pikaOperator } from '@/operators';
|
||||
import { IApplicationDetailResponse, IPikaGenerateRequest, Status } from '@/models';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { ERROR_CODE_DUPLICATION, ERROR_CODE_USED_UP } from '@/constants';
|
||||
import ApplicationStatus from '@/components/application/Status.vue';
|
||||
import RecentPanel from '@/components/pika/RecentPanel.vue';
|
||||
import { IPikaTask } from '@/models';
|
||||
|
||||
@@ -45,7 +33,6 @@ export default defineComponent({
|
||||
components: {
|
||||
ConfigPanel,
|
||||
Layout,
|
||||
ApplicationStatus,
|
||||
RecentPanel
|
||||
},
|
||||
data(): IData {
|
||||
@@ -169,7 +156,7 @@ export default defineComponent({
|
||||
createdAtMax
|
||||
});
|
||||
},
|
||||
async onGenerateVideo() {
|
||||
async onGenerate() {
|
||||
const request = {
|
||||
...this.config,
|
||||
callback_url: CALLBACK_URL
|
||||
|
||||
@@ -4,16 +4,6 @@
|
||||
<config-panel @generate="onGenerateAudio" />
|
||||
</template>
|
||||
<template #result>
|
||||
<application-status
|
||||
:initializing="initializing"
|
||||
:application="application"
|
||||
:applications="applications"
|
||||
:service="service"
|
||||
:need-apply="needApply"
|
||||
class="mb-4"
|
||||
@refresh="onGetApplication"
|
||||
@select="$store.dispatch('suno/setApplication', $event)"
|
||||
/>
|
||||
<recent-panel class="panel recent" @reach-top="onReachTop" />
|
||||
</template>
|
||||
<template #preview>
|
||||
@@ -28,7 +18,6 @@ import Layout from '@/layouts/Suno.vue';
|
||||
import { applicationOperator, sunoOperator } from '@/operators';
|
||||
import { IApplicationDetailResponse, ISunoAudioRequest, Status } from '@/models';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import ApplicationStatus from '@/components/application/Status.vue';
|
||||
import { ISunoTask } from '@/models';
|
||||
import { ERROR_CODE_DUPLICATION } from '@/constants';
|
||||
import ConfigPanel from '@/components/suno/ConfigPanel.vue';
|
||||
@@ -47,7 +36,6 @@ export default defineComponent({
|
||||
name: 'SunoIndex',
|
||||
components: {
|
||||
Layout,
|
||||
ApplicationStatus,
|
||||
ConfigPanel,
|
||||
RecentPanel,
|
||||
PreviewPanel
|
||||
|
||||
Reference in new issue
Block a user