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

+3 -2
View File
@@ -30,7 +30,7 @@
</div>
</template>
<script>
<script lang="ts">
import { defineComponent } from 'vue';
import { ElButton } from 'element-plus';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
@@ -43,8 +43,9 @@ import EndImage from './config/EndImage.vue';
import CfgScaleSelector from './config/CfgScaleSelector.vue';
import PromptInput from './config/PromptInput.vue';
import NegativePromptInput from './config/NegativePromptInput.vue';
export default defineComponent({
name: 'PresetPanel',
name: 'ConfigPanel',
components: {
ElButton,
FontAwesomeIcon,
@@ -15,7 +15,7 @@
</div>
</template>
<script>
<script lang="ts">
import { defineComponent } from 'vue';
import { ElSlider, ElInputNumber } from 'element-plus';
import InfoIcon from '@/components/common/InfoIcon.vue';
@@ -33,7 +33,7 @@ export default defineComponent({
get() {
return this.$store.state?.kling?.config?.cfg_scale;
},
set(val) {
set(val: string) {
console.debug('set cfg_scale', val);
this.$store.commit('kling/setConfig', {
...this.$store.state?.kling?.config,
@@ -7,7 +7,7 @@
</div>
</template>
<script>
<script lang="ts">
import { defineComponent } from 'vue';
import { ElSelect, ElOption } from 'element-plus';
import { KLING_DEFAULT_DURATION } from '@/constants';
@@ -44,7 +44,7 @@ export default defineComponent({
get() {
return this.$store.state.kling?.config?.duration;
},
set(val) {
set(val: string) {
this.$store.commit('kling/setConfig', {
...this.$store.state.kling.config,
duration: val
+3 -2
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)"
@@ -78,7 +79,7 @@ export default defineComponent({
get() {
return this.$store.state?.kling?.config?.start_image_url;
},
set(val: string) {
set() {
// this.$store.commit('kling/setConfig', {
// ...this.$store.state?.kling?.config,
// start_image_url: val
+2 -2
View File
@@ -7,7 +7,7 @@
</div>
</template>
<script>
<script lang="ts">
import { defineComponent } from 'vue';
import { ElSelect, ElOption } from 'element-plus';
import { KLING_DEFAULT_MODE } from '@/constants';
@@ -44,7 +44,7 @@ export default defineComponent({
get() {
return this.$store.state.kling?.config?.mode;
},
set(val) {
set(val: string) {
this.$store.commit('kling/setConfig', {
...this.$store.state.kling.config,
mode: val
@@ -7,7 +7,7 @@
</div>
</template>
<script>
<script lang="ts">
import { defineComponent } from 'vue';
import { ElSelect, ElOption } from 'element-plus';
import { KLING_DEFAULT_MODEL } from '@/constants';
@@ -48,7 +48,7 @@ export default defineComponent({
get() {
return this.$store.state.kling?.config?.model;
},
set(val) {
set(val: string) {
this.$store.commit('kling/setConfig', {
...this.$store.state.kling.config,
model: val
@@ -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.kling?.config?.negative_prompt;
},
set(val) {
set(val: string) {
console.debug('set prompt', val);
this.$store.commit('kling/setConfig', {
...this.$store.state.kling?.config,
@@ -44,8 +44,8 @@ export default defineComponent({
}
},
mounted() {
if (!this.value) {
this.value = DEFAULT_NEGATIVE_PROMPT;
if (!this.prompt) {
this.prompt = DEFAULT_NEGATIVE_PROMPT;
}
}
});
+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.kling?.config?.prompt;
},
set(val) {
set(val: string) {
console.debug('set prompt', val);
this.$store.commit('kling/setConfig', {
...this.$store.state.kling?.config,
@@ -44,8 +44,8 @@ export default defineComponent({
}
},
mounted() {
if (!this.value) {
this.value = DEFAULT_PROMPT;
if (!this.prompt) {
this.prompt = DEFAULT_PROMPT;
}
}
});
@@ -19,7 +19,7 @@
</div>
</template>
<script>
<script lang="ts">
import { defineComponent } from 'vue';
import { KLING_DEFAULT_ASPECT_RATIO } from '@/constants';
@@ -57,7 +57,7 @@ export default defineComponent({
get() {
return this.$store.state?.kling?.config?.aspect_ratio;
},
set(val) {
set(val: string) {
console.debug('set ratio', val);
this.$store.commit('kling/setConfig', {
...this.$store.state?.kling?.config,
+3 -2
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)"
@@ -79,7 +80,7 @@ export default defineComponent({
get() {
return this.$store.state?.kling?.config?.start_image_url;
},
set(val: string) {
set() {
// this.$store.commit('kling/setConfig', {
// ...this.$store.state?.kling?.config,
// start_image_url: val