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;
|
border-radius: 10px;
|
||||||
.el-textarea__inner {
|
.el-textarea__inner {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
resize: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,9 @@ import {
|
|||||||
ROUTE_DEEPSEEK_CONVERSATION_NEW,
|
ROUTE_DEEPSEEK_CONVERSATION_NEW,
|
||||||
ROUTE_DEEPSEEK_CONVERSATION,
|
ROUTE_DEEPSEEK_CONVERSATION,
|
||||||
ROUTE_GROK_CONVERSATION_NEW,
|
ROUTE_GROK_CONVERSATION_NEW,
|
||||||
ROUTE_GROK_CONVERSATION
|
ROUTE_GROK_CONVERSATION,
|
||||||
|
ROUTE_KLING_INDEX,
|
||||||
|
ROUTE_KLING_HISTORY
|
||||||
} from '@/router/constants';
|
} from '@/router/constants';
|
||||||
import LogoTiny from './LogoTiny.vue';
|
import LogoTiny from './LogoTiny.vue';
|
||||||
import UserCenter from '@/components/user/Center.vue';
|
import UserCenter from '@/components/user/Center.vue';
|
||||||
@@ -140,7 +142,6 @@ export default defineComponent({
|
|||||||
// name: ROUTE_QRART_INDEX
|
// name: ROUTE_QRART_INDEX
|
||||||
// },
|
// },
|
||||||
// displayName: this.$t('common.nav.qrart'),
|
// displayName: this.$t('common.nav.qrart'),
|
||||||
// icon: 'fa-solid fa-qrcode',
|
|
||||||
// routes: [ROUTE_QRART_INDEX, ROUTE_QRART_HISTORY]
|
// routes: [ROUTE_QRART_INDEX, ROUTE_QRART_HISTORY]
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
@@ -167,16 +168,16 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Add pika's leftmost icon
|
// Add pika's leftmost icon
|
||||||
if (this.$store?.state?.site?.features?.pika?.enabled) {
|
// if (this.$store?.state?.site?.features?.pika?.enabled) {
|
||||||
result.push({
|
// result.push({
|
||||||
route: {
|
// route: {
|
||||||
name: ROUTE_PIKA_INDEX
|
// name: ROUTE_PIKA_INDEX
|
||||||
},
|
// },
|
||||||
displayName: this.$t('common.nav.pika'),
|
// displayName: this.$t('common.nav.pika'),
|
||||||
logo: 'https://cdn.acedata.cloud/i80tgn.png',
|
// logo: 'https://cdn.acedata.cloud/i80tgn.png',
|
||||||
routes: [ROUTE_PIKA_INDEX, ROUTE_PIKA_HISTORY]
|
// routes: [ROUTE_PIKA_INDEX, ROUTE_PIKA_HISTORY]
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
// Add hailuo's leftmost icon
|
// Add hailuo's leftmost icon
|
||||||
if (this.$store?.state?.site?.features?.hailuo?.enabled) {
|
if (this.$store?.state?.site?.features?.hailuo?.enabled) {
|
||||||
result.push({
|
result.push({
|
||||||
@@ -184,22 +185,32 @@ export default defineComponent({
|
|||||||
name: ROUTE_HAILUO_INDEX
|
name: ROUTE_HAILUO_INDEX
|
||||||
},
|
},
|
||||||
displayName: this.$t('common.nav.hailuo'),
|
displayName: this.$t('common.nav.hailuo'),
|
||||||
icon: 'fa-solid fa-film',
|
logo: 'https://cdn.acedata.cloud/0qg4gp.png',
|
||||||
logo: 'https://cdn.acedata.cloud/4tfwwz.png',
|
|
||||||
routes: [ROUTE_HAILUO_INDEX, ROUTE_HAILUO_HISTORY]
|
routes: [ROUTE_HAILUO_INDEX, ROUTE_HAILUO_HISTORY]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Add headshots's leftmost icon
|
// Add kling's leftmost icon
|
||||||
if (this.$store?.state?.site?.features?.headshots?.enabled) {
|
if (this.$store?.state?.site?.features?.kling?.enabled) {
|
||||||
result.push({
|
result.push({
|
||||||
route: {
|
route: {
|
||||||
name: ROUTE_HEADSHOTS_INDEX
|
name: ROUTE_KLING_INDEX
|
||||||
},
|
},
|
||||||
displayName: this.$t('common.nav.headshots'),
|
displayName: this.$t('common.nav.kling'),
|
||||||
icon: 'fa-solid fa-id-card',
|
logo: 'https://cdn.acedata.cloud/qpbbbb.jpg',
|
||||||
routes: [ROUTE_HEADSHOTS_INDEX, ROUTE_HEADSHOTS_HISTORY]
|
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') {
|
if (this.direction === 'row') {
|
||||||
result.push({
|
result.push({
|
||||||
route: {
|
route: {
|
||||||
|
|||||||
@@ -29,9 +29,7 @@ import { ElButton } from 'element-plus';
|
|||||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||||
import ModelSelector from './config/ModelSelector.vue';
|
import ModelSelector from './config/ModelSelector.vue';
|
||||||
import PromptInput from './config/PromptInput.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({
|
export default defineComponent({
|
||||||
name: 'PresetPanel',
|
name: 'PresetPanel',
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ export default defineComponent({
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
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;
|
margin: 0;
|
||||||
width: 30%;
|
width: 30%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.value {
|
.value {
|
||||||
width: 80px;
|
width: 120px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -57,7 +57,7 @@ export default defineComponent({
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between; // Add this line to move the icon to the right
|
justify-content: space-between;
|
||||||
position: relative;
|
position: relative;
|
||||||
.title {
|
.title {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@@ -65,7 +65,10 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.info {
|
.info {
|
||||||
margin-left: auto; // Ensure the icon stays on the right
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
.prompt {
|
||||||
|
resize: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -105,9 +105,9 @@ export default defineComponent({
|
|||||||
|
|
||||||
.items {
|
.items {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(5, 48px); // 固定每行5列
|
grid-template-columns: repeat(5, 48px);
|
||||||
gap: 8px; // 元素间距
|
gap: 8px;
|
||||||
justify-content: start; // 左对齐
|
justify-content: start;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
width: 48px;
|
width: 48px;
|
||||||
|
|||||||
@@ -92,10 +92,11 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { ElImage, ElAlert, ElButton, ElTooltip } from 'element-plus';
|
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 CopyToClipboard from '@/components/common/CopyToClipboard.vue';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||||
import ImageGallery from '../ImageGallery.vue';
|
import ImageGallery from '../ImageGallery.vue';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'TaskPreview',
|
name: 'TaskPreview',
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-for="(video, videoIndex) in videos" :key="videoIndex" class="preview">
|
<div v-for="(video, videoIndex) in videos" :key="videoIndex" class="preview">
|
||||||
<div class="left">
|
<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>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="bot">
|
<div class="bot">
|
||||||
@@ -208,12 +208,11 @@ $left-width: 70px;
|
|||||||
.left {
|
.left {
|
||||||
width: $left-width;
|
width: $left-width;
|
||||||
.avatar {
|
.avatar {
|
||||||
background-color: rgb(85, 131, 186);
|
|
||||||
padding: 2px;
|
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
border: 1px solid var(--el-border-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<info-icon :content="$t('kling.description.cfgScale')" />
|
<info-icon :content="$t('kling.description.cfgScale')" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-end items-center">
|
<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>
|
</div>
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
|
|||||||
@@ -83,19 +83,18 @@ export default defineComponent({
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: flex-start;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
width: 48px;
|
width: 48px;
|
||||||
height: 65px;
|
height: 65px;
|
||||||
border: 2px solid var(--el-border-color);
|
border: 1px solid var(--el-border-color);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 5px;
|
border-radius: 10px;
|
||||||
margin-right: 30px;
|
|
||||||
|
|
||||||
.preview {
|
.preview {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
@@ -107,7 +106,7 @@ export default defineComponent({
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
.rect {
|
.rect {
|
||||||
border: 2px solid var(--el-border-color);
|
border: 1px solid var(--el-border-color);
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="preview">
|
<div class="preview">
|
||||||
<div class="left">
|
<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>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="bot">
|
<div class="bot">
|
||||||
@@ -198,8 +198,6 @@ $left-width: 70px;
|
|||||||
.left {
|
.left {
|
||||||
width: $left-width;
|
width: $left-width;
|
||||||
.avatar {
|
.avatar {
|
||||||
background-color: rgb(34, 34, 34);
|
|
||||||
padding: 2px;
|
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="presets">
|
<div class="config">
|
||||||
<slot name="presets" />
|
<slot name="config" />
|
||||||
</div>
|
</div>
|
||||||
<div class="results">
|
<div class="results">
|
||||||
<slot name="results" />
|
<slot name="results" />
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<font-awesome-icon icon="fa-solid fa-gear" class="icon-menu" />
|
<font-awesome-icon icon="fa-solid fa-gear" class="icon-menu" />
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-drawer v-model="drawer" :with-header="false" size="300px" class="drawer">
|
<el-drawer v-model="drawer" :with-header="false" size="300px" class="drawer">
|
||||||
<slot name="presets" />
|
<slot name="config" />
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -60,7 +60,7 @@ export default defineComponent({
|
|||||||
.menu2 {
|
.menu2 {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.presets {
|
.config {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -77,7 +77,7 @@ export default defineComponent({
|
|||||||
@media screen and (min-width: 768px) and (max-width: 1060px) {
|
@media screen and (min-width: 768px) and (max-width: 1060px) {
|
||||||
.main {
|
.main {
|
||||||
position: relative;
|
position: relative;
|
||||||
.presets {
|
.config {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.menu {
|
.menu {
|
||||||
@@ -93,7 +93,7 @@ export default defineComponent({
|
|||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.main {
|
.main {
|
||||||
position: relative;
|
position: relative;
|
||||||
.presets {
|
.config {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.results {
|
.results {
|
||||||
|
|||||||
@@ -1,21 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<layout>
|
<layout>
|
||||||
<template #config>
|
<template #config>
|
||||||
<config-panel @generate="onGenerateVideo" />
|
<config-panel @generate="onGenerate" />
|
||||||
</template>
|
</template>
|
||||||
<template #result>
|
<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" />
|
<recent-panel class="panel recent" @reach-top="onReachTop" />
|
||||||
<!-- <operation-panel class="panel operation" @generate="onGenerate" /> -->
|
|
||||||
</template>
|
</template>
|
||||||
</layout>
|
</layout>
|
||||||
</template>
|
</template>
|
||||||
@@ -28,7 +17,6 @@ import { applicationOperator, fluxOperator } from '@/operators';
|
|||||||
import { IApplicationDetailResponse, IFluxGenerateRequest, Status } from '@/models';
|
import { IApplicationDetailResponse, IFluxGenerateRequest, Status } from '@/models';
|
||||||
import { ElMessage } from 'element-plus';
|
import { ElMessage } from 'element-plus';
|
||||||
import { ERROR_CODE_DUPLICATION, ERROR_CODE_USED_UP } from '@/constants';
|
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 RecentPanel from '@/components/flux/RecentPanel.vue';
|
||||||
import { IFluxTask } from '@/models';
|
import { IFluxTask } from '@/models';
|
||||||
|
|
||||||
@@ -45,7 +33,6 @@ export default defineComponent({
|
|||||||
components: {
|
components: {
|
||||||
ConfigPanel,
|
ConfigPanel,
|
||||||
Layout,
|
Layout,
|
||||||
ApplicationStatus,
|
|
||||||
RecentPanel
|
RecentPanel
|
||||||
},
|
},
|
||||||
data(): IData {
|
data(): IData {
|
||||||
@@ -102,7 +89,7 @@ export default defineComponent({
|
|||||||
await this.onGetApplication();
|
await this.onGetApplication();
|
||||||
await this.onScrollDown();
|
await this.onScrollDown();
|
||||||
await this.onGetTasks();
|
await this.onGetTasks();
|
||||||
// await this.onScrollDown();
|
await this.onScrollDown();
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this.job = setInterval(() => {
|
this.job = setInterval(() => {
|
||||||
this.onGetTasks();
|
this.onGetTasks();
|
||||||
@@ -169,7 +156,7 @@ export default defineComponent({
|
|||||||
createdAtMax
|
createdAtMax
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async onGenerateVideo() {
|
async onGenerate() {
|
||||||
const request = {
|
const request = {
|
||||||
...this.config,
|
...this.config,
|
||||||
callback_url: CALLBACK_URL
|
callback_url: CALLBACK_URL
|
||||||
|
|||||||
@@ -1,21 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<layout>
|
<layout>
|
||||||
<template #config>
|
<template #config>
|
||||||
<config-panel @generate="onGenerateVideo" />
|
<config-panel @generate="onGenerate" />
|
||||||
</template>
|
</template>
|
||||||
<template #result>
|
<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" />
|
<recent-panel class="panel recent" @reach-top="onReachTop" />
|
||||||
<!-- <operation-panel class="panel operation" @generate="onGenerate" /> -->
|
|
||||||
</template>
|
</template>
|
||||||
</layout>
|
</layout>
|
||||||
</template>
|
</template>
|
||||||
@@ -28,7 +17,6 @@ import { applicationOperator, hailuoOperator } from '@/operators';
|
|||||||
import { IApplicationDetailResponse, IHailuoGenerateRequest, Status } from '@/models';
|
import { IApplicationDetailResponse, IHailuoGenerateRequest, Status } from '@/models';
|
||||||
import { ElMessage } from 'element-plus';
|
import { ElMessage } from 'element-plus';
|
||||||
import { ERROR_CODE_DUPLICATION, ERROR_CODE_USED_UP } from '@/constants';
|
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 RecentPanel from '@/components/hailuo/RecentPanel.vue';
|
||||||
import { IHailuoTask } from '@/models';
|
import { IHailuoTask } from '@/models';
|
||||||
|
|
||||||
@@ -45,7 +33,6 @@ export default defineComponent({
|
|||||||
components: {
|
components: {
|
||||||
ConfigPanel,
|
ConfigPanel,
|
||||||
Layout,
|
Layout,
|
||||||
ApplicationStatus,
|
|
||||||
RecentPanel
|
RecentPanel
|
||||||
},
|
},
|
||||||
data(): IData {
|
data(): IData {
|
||||||
@@ -169,7 +156,7 @@ export default defineComponent({
|
|||||||
createdAtMax
|
createdAtMax
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async onGenerateVideo() {
|
async onGenerate() {
|
||||||
const request = {
|
const request = {
|
||||||
...this.config,
|
...this.config,
|
||||||
callback_url: CALLBACK_URL
|
callback_url: CALLBACK_URL
|
||||||
|
|||||||
@@ -1,21 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<layout>
|
<layout>
|
||||||
<template #config>
|
<template #config>
|
||||||
<config-panel @generate="onGenerateVideo" />
|
<config-panel @generate="onGenerate" />
|
||||||
</template>
|
</template>
|
||||||
<template #result>
|
<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" />
|
<recent-panel class="panel recent" @reach-top="onReachTop" />
|
||||||
<!-- <operation-panel class="panel operation" @generate="onGenerate" /> -->
|
|
||||||
</template>
|
</template>
|
||||||
</layout>
|
</layout>
|
||||||
</template>
|
</template>
|
||||||
@@ -28,7 +17,6 @@ import { applicationOperator, klingOperator } from '@/operators';
|
|||||||
import { IApplicationDetailResponse, IKlingGenerateRequest, Status } from '@/models';
|
import { IApplicationDetailResponse, IKlingGenerateRequest, Status } from '@/models';
|
||||||
import { ElMessage } from 'element-plus';
|
import { ElMessage } from 'element-plus';
|
||||||
import { ERROR_CODE_DUPLICATION, ERROR_CODE_USED_UP } from '@/constants';
|
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 RecentPanel from '@/components/kling/RecentPanel.vue';
|
||||||
import { IKlingTask } from '@/models';
|
import { IKlingTask } from '@/models';
|
||||||
|
|
||||||
@@ -45,7 +33,6 @@ export default defineComponent({
|
|||||||
components: {
|
components: {
|
||||||
ConfigPanel,
|
ConfigPanel,
|
||||||
Layout,
|
Layout,
|
||||||
ApplicationStatus,
|
|
||||||
RecentPanel
|
RecentPanel
|
||||||
},
|
},
|
||||||
data(): IData {
|
data(): IData {
|
||||||
@@ -169,7 +156,7 @@ export default defineComponent({
|
|||||||
createdAtMax
|
createdAtMax
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async onGenerateVideo() {
|
async onGenerate() {
|
||||||
const request = {
|
const request = {
|
||||||
...this.config,
|
...this.config,
|
||||||
callback_url: CALLBACK_URL
|
callback_url: CALLBACK_URL
|
||||||
|
|||||||
@@ -1,21 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<layout>
|
<layout>
|
||||||
<template #config>
|
<template #config>
|
||||||
<config-panel @generate="onGenerateVideo" />
|
<config-panel @generate="onGenerate" />
|
||||||
</template>
|
</template>
|
||||||
<template #result>
|
<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" />
|
<recent-panel class="panel recent" @reach-top="onReachTop" />
|
||||||
<!-- <operation-panel class="panel operation" @generate="onGenerate" /> -->
|
|
||||||
</template>
|
</template>
|
||||||
</layout>
|
</layout>
|
||||||
</template>
|
</template>
|
||||||
@@ -28,7 +17,6 @@ import { applicationOperator, lumaOperator } from '@/operators';
|
|||||||
import { IApplicationDetailResponse, ILumaGenerateRequest, Status } from '@/models';
|
import { IApplicationDetailResponse, ILumaGenerateRequest, Status } from '@/models';
|
||||||
import { ElMessage } from 'element-plus';
|
import { ElMessage } from 'element-plus';
|
||||||
import { ERROR_CODE_DUPLICATION, ERROR_CODE_USED_UP } from '@/constants';
|
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 RecentPanel from '@/components/luma/RecentPanel.vue';
|
||||||
import { ILumaTask } from '@/models';
|
import { ILumaTask } from '@/models';
|
||||||
|
|
||||||
@@ -45,7 +33,6 @@ export default defineComponent({
|
|||||||
components: {
|
components: {
|
||||||
ConfigPanel,
|
ConfigPanel,
|
||||||
Layout,
|
Layout,
|
||||||
ApplicationStatus,
|
|
||||||
RecentPanel
|
RecentPanel
|
||||||
},
|
},
|
||||||
data(): IData {
|
data(): IData {
|
||||||
@@ -169,7 +156,7 @@ export default defineComponent({
|
|||||||
createdAtMax
|
createdAtMax
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async onGenerateVideo() {
|
async onGenerate() {
|
||||||
const request = {
|
const request = {
|
||||||
...this.config,
|
...this.config,
|
||||||
callback_url: CALLBACK_URL
|
callback_url: CALLBACK_URL
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<layout>
|
<layout>
|
||||||
<template #presets>
|
<template #config>
|
||||||
<config-panel @generate="onGenerate" />
|
<config-panel @generate="onGenerate" />
|
||||||
</template>
|
</template>
|
||||||
<template #results>
|
<template #results>
|
||||||
|
|||||||
@@ -1,21 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<layout>
|
<layout>
|
||||||
<template #config>
|
<template #config>
|
||||||
<config-panel @generate="onGenerateVideo" />
|
<config-panel @generate="onGenerate" />
|
||||||
</template>
|
</template>
|
||||||
<template #result>
|
<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" />
|
<recent-panel class="panel recent" @reach-top="onReachTop" />
|
||||||
<!-- <operation-panel class="panel operation" @generate="onGenerate" /> -->
|
|
||||||
</template>
|
</template>
|
||||||
</layout>
|
</layout>
|
||||||
</template>
|
</template>
|
||||||
@@ -28,7 +17,6 @@ import { applicationOperator, pikaOperator } from '@/operators';
|
|||||||
import { IApplicationDetailResponse, IPikaGenerateRequest, Status } from '@/models';
|
import { IApplicationDetailResponse, IPikaGenerateRequest, Status } from '@/models';
|
||||||
import { ElMessage } from 'element-plus';
|
import { ElMessage } from 'element-plus';
|
||||||
import { ERROR_CODE_DUPLICATION, ERROR_CODE_USED_UP } from '@/constants';
|
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 RecentPanel from '@/components/pika/RecentPanel.vue';
|
||||||
import { IPikaTask } from '@/models';
|
import { IPikaTask } from '@/models';
|
||||||
|
|
||||||
@@ -45,7 +33,6 @@ export default defineComponent({
|
|||||||
components: {
|
components: {
|
||||||
ConfigPanel,
|
ConfigPanel,
|
||||||
Layout,
|
Layout,
|
||||||
ApplicationStatus,
|
|
||||||
RecentPanel
|
RecentPanel
|
||||||
},
|
},
|
||||||
data(): IData {
|
data(): IData {
|
||||||
@@ -169,7 +156,7 @@ export default defineComponent({
|
|||||||
createdAtMax
|
createdAtMax
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async onGenerateVideo() {
|
async onGenerate() {
|
||||||
const request = {
|
const request = {
|
||||||
...this.config,
|
...this.config,
|
||||||
callback_url: CALLBACK_URL
|
callback_url: CALLBACK_URL
|
||||||
|
|||||||
@@ -4,16 +4,6 @@
|
|||||||
<config-panel @generate="onGenerateAudio" />
|
<config-panel @generate="onGenerateAudio" />
|
||||||
</template>
|
</template>
|
||||||
<template #result>
|
<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" />
|
<recent-panel class="panel recent" @reach-top="onReachTop" />
|
||||||
</template>
|
</template>
|
||||||
<template #preview>
|
<template #preview>
|
||||||
@@ -28,7 +18,6 @@ import Layout from '@/layouts/Suno.vue';
|
|||||||
import { applicationOperator, sunoOperator } from '@/operators';
|
import { applicationOperator, sunoOperator } from '@/operators';
|
||||||
import { IApplicationDetailResponse, ISunoAudioRequest, Status } from '@/models';
|
import { IApplicationDetailResponse, ISunoAudioRequest, Status } from '@/models';
|
||||||
import { ElMessage } from 'element-plus';
|
import { ElMessage } from 'element-plus';
|
||||||
import ApplicationStatus from '@/components/application/Status.vue';
|
|
||||||
import { ISunoTask } from '@/models';
|
import { ISunoTask } from '@/models';
|
||||||
import { ERROR_CODE_DUPLICATION } from '@/constants';
|
import { ERROR_CODE_DUPLICATION } from '@/constants';
|
||||||
import ConfigPanel from '@/components/suno/ConfigPanel.vue';
|
import ConfigPanel from '@/components/suno/ConfigPanel.vue';
|
||||||
@@ -47,7 +36,6 @@ export default defineComponent({
|
|||||||
name: 'SunoIndex',
|
name: 'SunoIndex',
|
||||||
components: {
|
components: {
|
||||||
Layout,
|
Layout,
|
||||||
ApplicationStatus,
|
|
||||||
ConfigPanel,
|
ConfigPanel,
|
||||||
RecentPanel,
|
RecentPanel,
|
||||||
PreviewPanel
|
PreviewPanel
|
||||||
|
|||||||
Reference in new issue
Block a user