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
@@ -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