Upgrade build libs and fixed lints (#235)

This commit is contained in:
Germey authored and GitHub committed 2025-07-27 15:09:06 +08:00
1 parent 8bf60b4b05
commit 03244e096f
197 files changed
+3924 -3714

No files matched your search

+2 -2
View File
@@ -29,7 +29,7 @@
</div>
</template>
<script>
<script lang="ts">
import { defineComponent } from 'vue';
import { ElButton } from 'element-plus';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
@@ -44,7 +44,7 @@ import PromptInput from './config/PromptInput.vue';
import ExtendFromInput from './config/ExtendFromInput.vue';
export default defineComponent({
name: 'PresetPanel',
name: 'ConfigPanel',
components: {
LoopSelector,
StartImageInput,
-23
View File
@@ -1,23 +0,0 @@
<template>
<div class="panel detail">
<task-detail />
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import TaskDetail from './task/Detail.vue';
export default defineComponent({
name: 'DetailPanel',
components: {
TaskDetail
},
data() {
return {
job: 0
};
},
computed: {}
});
</script>
@@ -12,7 +12,7 @@
</div>
</template>
<script>
<script lang="ts">
import { defineComponent } from 'vue';
import { ElSwitch } from 'element-plus';
import { LUMA_DEFAULT_CUSTOM } from '@/constants';
@@ -29,7 +29,7 @@ export default defineComponent({
get() {
return this.$store.state.luma?.config?.custom;
},
set(val) {
set(val: boolean) {
console.debug('set custom', val);
this.$store.commit('luma/setConfig', {
...this.$store.state.luma?.config,
+2 -1
View File
@@ -22,7 +22,8 @@
>
<template #file="{ file }">
<image-preview
:url="file.url || file.response?.file_url"
v-if="file.url && file.percentage !== undefined"
:url="file.url"
:name="file.name"
:percentage="file.percentage"
@remove="fileList.splice(fileList.indexOf(file), 1)"
@@ -12,7 +12,7 @@
</div>
</template>
<script>
<script lang="ts">
import { defineComponent } from 'vue';
import { ElSwitch } from 'element-plus';
import { LUMA_DEFAULT_ENHANCEMENT } from '@/constants';
@@ -28,7 +28,7 @@ export default defineComponent({
get() {
return this.$store.state.luma?.config?.enhancement;
},
set(val) {
set(val: boolean) {
console.debug('set enhancement', val);
this.$store.commit('luma/setConfig', {
...this.$store.state.luma?.config,
@@ -21,7 +21,8 @@ export default defineComponent({
props: {
modelValue: {
type: Object as () => ILumaTask | undefined,
required: true
required: false,
default: undefined
}
},
data() {
+2 -2
View File
@@ -12,7 +12,7 @@
</div>
</template>
<script>
<script lang="ts">
import { defineComponent } from 'vue';
import { ElSwitch } from 'element-plus';
import { LUMA_DEFAULT_LOOP } from '@/constants';
@@ -29,7 +29,7 @@ export default defineComponent({
get() {
return this.$store.state.luma?.config?.loop;
},
set(val) {
set(val: boolean) {
console.debug('set loop', val);
this.$store.commit('luma/setConfig', {
...this.$store.state.luma?.config,
+4 -4
View File
@@ -16,7 +16,7 @@
</div>
</template>
<script>
<script lang="ts">
import { defineComponent } from 'vue';
import { ElInput } from 'element-plus';
import InfoIcon from '@/components/common/InfoIcon.vue';
@@ -34,7 +34,7 @@ export default defineComponent({
get() {
return this.$store.state.luma?.config?.prompt;
},
set(val) {
set(val: string) {
console.debug('set prompt', val);
this.$store.commit('luma/setConfig', {
...this.$store.state.luma?.config,
@@ -44,8 +44,8 @@ export default defineComponent({
}
},
mounted() {
if (!this.value) {
this.value = DEFAULT_PROMPT;
if (!this.prompt) {
this.prompt = DEFAULT_PROMPT;
}
}
});
@@ -22,7 +22,8 @@
>
<template #file="{ file }">
<image-preview
:url="file.url || file.response?.file_url"
v-if="file.percentage != undefined"
:url="file.url || (file.response as any).file_url"
:name="file.name"
:percentage="file.percentage"
@remove="fileList.splice(fileList.indexOf(file), 1)"
+2 -1
View File
@@ -23,7 +23,8 @@
>
<template #file="{ file }">
<file-preview
:url="file.url || file.response?.file_url"
v-if="file.percentage != undefined"
:url="file.url || (file.response as any)?.file_url"
:name="file.name"
:percentage="file.percentage"
@remove="fileList.splice(fileList.indexOf(file), 1)"
+3 -3
View File
@@ -35,7 +35,7 @@
type="info"
size="small"
class="btn-action"
@click.stop="onDownload($event, modelValue?.response?.video_url)"
@click.stop="onDownload(modelValue?.response?.video_url)"
>
{{ $t('luma.button.download') }}
</el-button>
@@ -143,7 +143,7 @@ export default defineComponent({
}
},
methods: {
onExtend(event: MouseEvent, response: ILumaGenerateResponse) {
onExtend(_event: MouseEvent, response: ILumaGenerateResponse) {
// extend url here
console.debug('set config', response);
this.$store.commit('luma/setConfig', {
@@ -155,7 +155,7 @@ export default defineComponent({
video_url: response.video_url
});
},
onDownload(event: MouseEvent, video_url: string) {
onDownload(video_url: string) {
// download url here
window.open(video_url, '_blank');
}