Fix unused variable (#225)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
393e61f04d
commit
dd19262a73
36 files changed
+41
-73
No files matched your search
@@ -67,7 +67,7 @@ export default defineComponent({
|
||||
'text-align': 'center'
|
||||
};
|
||||
},
|
||||
spanMethod({ row, column, rowIndex, columnIndex }: SpanMethodProps) {
|
||||
spanMethod({ rowIndex, columnIndex }: SpanMethodProps) {
|
||||
if (this.spans) {
|
||||
for (const span of this.spans) {
|
||||
if (rowIndex === span[0] && columnIndex === span[1]) {
|
||||
|
||||
@@ -180,7 +180,7 @@ export default defineComponent({
|
||||
onStop() {
|
||||
this.$emit('stop');
|
||||
},
|
||||
onProgress(evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) {
|
||||
onProgress(evt: UploadProgressEvent, uploadFile: UploadFile) {
|
||||
console.debug('File upload progress:', uploadFile.name, evt.loaded, evt.total);
|
||||
},
|
||||
onExceed() {
|
||||
|
||||
@@ -40,7 +40,6 @@ import {
|
||||
ERROR_CODE_USED_UP,
|
||||
ROLE_ASSISTANT
|
||||
} from '@/constants';
|
||||
import message from '@/i18n/zh/common/message';
|
||||
|
||||
interface IData {
|
||||
copied: boolean;
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSkeleton, ElInput } from 'element-plus';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { ROUTE_CHAT_CONVERSATION, ROUTE_CHAT_CONVERSATION_NEW } from '@/router/constants';
|
||||
import { ROUTE_CHAT_CONVERSATION_NEW } from '@/router/constants';
|
||||
import { Status } from '@/store/common/models';
|
||||
import { IChatdocRepository } from '@/models';
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { getCookie } from 'typescript-cookie';
|
||||
import { BASE_HOST_HUB } from '@/constants';
|
||||
import { isOfficial } from '@/utils';
|
||||
|
||||
export default {
|
||||
|
||||
@@ -24,21 +24,13 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElTooltip, ElImage } from 'element-plus';
|
||||
import {
|
||||
ROUTE_CHAT_CONVERSATION,
|
||||
ROUTE_CHAT_CONVERSATION_NEW,
|
||||
ROUTE_CONSOLE_ROOT,
|
||||
ROUTE_PROFILE_INDEX,
|
||||
ROUTE_DISTRIBUTION_INDEX,
|
||||
ROUTE_INDEX,
|
||||
ROUTE_MIDJOURNEY_INDEX,
|
||||
ROUTE_LUMA_INDEX,
|
||||
ROUTE_LUMA_HISTORY,
|
||||
ROUTE_PIKA_INDEX,
|
||||
ROUTE_PIKA_HISTORY,
|
||||
ROUTE_HAILUO_INDEX,
|
||||
ROUTE_HAILUO_HISTORY,
|
||||
ROUTE_HEADSHOTS_INDEX,
|
||||
ROUTE_HEADSHOTS_HISTORY,
|
||||
ROUTE_SUNO_INDEX,
|
||||
ROUTE_SUNO_HISTORY,
|
||||
ROUTE_FLUX_INDEX,
|
||||
|
||||
@@ -24,7 +24,7 @@ export default defineComponent({
|
||||
},
|
||||
emits: ['update:show'],
|
||||
watch: {
|
||||
show(val, oldVal) {
|
||||
show(val) {
|
||||
if (val) {
|
||||
setTimeout(() => {
|
||||
this.$emit('update:show', false);
|
||||
|
||||
@@ -33,7 +33,6 @@ import {
|
||||
ROUTE_INDEX
|
||||
} from '@/router';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { BASE_HOST_HUB } from '@/constants';
|
||||
import { isOfficial } from '@/utils';
|
||||
|
||||
interface ILink {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="image-gallery">
|
||||
<div class="image-container">
|
||||
<img :src="modelValue.image_url" alt="Image" />
|
||||
<button class="view-button" @click="viewImage(modelValue.image_url)">
|
||||
<img :src="modelValue?.image_url" alt="Image" />
|
||||
<button v-if="modelValue?.image_url" class="view-button" @click="viewImage(modelValue.image_url)">
|
||||
{{ $t('flux.button.viewImage') }}
|
||||
</button>
|
||||
</div>
|
||||
@@ -10,16 +10,8 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, computed } from 'vue';
|
||||
import { defineComponent } from 'vue';
|
||||
import { IFluxImage } from '@/models';
|
||||
interface IDataItem {
|
||||
image_url: string;
|
||||
// Add other properties if necessary
|
||||
}
|
||||
|
||||
interface IResponse {
|
||||
data: IDataItem[];
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ImageGallery',
|
||||
@@ -29,7 +21,7 @@ export default defineComponent({
|
||||
required: true
|
||||
}
|
||||
},
|
||||
setup(props) {
|
||||
setup() {
|
||||
// Computed property to extract the first two images
|
||||
|
||||
// Method to handle the "View Image" button click
|
||||
|
||||
@@ -79,7 +79,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.hailuo?.config?.first_image_url;
|
||||
},
|
||||
set(val: string) {
|
||||
set() {
|
||||
const url = this.urls?.[0];
|
||||
this.$store.commit('hailuo/setConfig', {
|
||||
...this.$store.state.hailuo?.config,
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
<div class="image-gallery">
|
||||
<div v-for="(image, index) in images" :key="index" class="image-container">
|
||||
<img :src="image.image_url" alt="Image" />
|
||||
<button class="view-button" @click="viewImage(image.image_url)">{{ $t('headshots.button.viewImage') }}</button>
|
||||
<button v-if="image.image_url" class="view-button" @click="viewImage(image.image_url)">
|
||||
{{ $t('headshots.button.viewImage') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -10,14 +12,6 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent, computed } from 'vue';
|
||||
import { IHeadshotsTask } from '@/models';
|
||||
interface IDataItem {
|
||||
image_url: string;
|
||||
// Add other properties if necessary
|
||||
}
|
||||
|
||||
interface IResponse {
|
||||
data: IDataItem[];
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ImageGallery',
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElImage, ElAlert, ElButton, ElTooltip } from 'element-plus';
|
||||
import { IKlingTask, IKlingGenerateResponse, IKlingVideo } from '@/models';
|
||||
import { IKlingTask } from '@/models';
|
||||
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import VideoPlayer from '../VideoPlayer.vue';
|
||||
|
||||
@@ -62,7 +62,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.luma?.config?.end_image_url;
|
||||
},
|
||||
set(val: string) {
|
||||
set() {
|
||||
const url = this.urls?.[0];
|
||||
this.$store.commit('luma/setConfig', {
|
||||
...this.$store.state.luma?.config,
|
||||
|
||||
@@ -63,7 +63,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.luma?.config?.video_url;
|
||||
},
|
||||
set(val: string) {
|
||||
set() {
|
||||
const url = this.urls?.[0];
|
||||
this.$store.commit('luma/setConfig', {
|
||||
...this.$store.state.luma?.config,
|
||||
|
||||
@@ -130,7 +130,6 @@ import { ElImage, ElButton, ElTooltip, ElAlert } from 'element-plus';
|
||||
import { IMidjourneyTask, MidjourneyImagineAction, MidjourneyImagineState } from '@/models';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
|
||||
import { Check } from '@element-plus/icons-vue';
|
||||
|
||||
interface IData {
|
||||
midjourneyImagineState: typeof MidjourneyImagineState;
|
||||
|
||||
@@ -63,11 +63,11 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.pika?.config?.image_url;
|
||||
},
|
||||
set(val: string) {
|
||||
set() {
|
||||
const url = this.urls?.[0];
|
||||
this.$store.commit('pika/setConfig', {
|
||||
...this.$store.state.pika?.config,
|
||||
image_url: this.urls
|
||||
image_url: url
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElImage, ElAlert, ElButton, ElTooltip } from 'element-plus';
|
||||
import { IPikaTask, IPikaGenerateResponse, IPikaVideo } from '@/models';
|
||||
import { IPikaTask, IPikaVideo } from '@/models';
|
||||
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import VideoPlayer from '../VideoPlayer.vue';
|
||||
|
||||
@@ -46,7 +46,6 @@ import { defineComponent } from 'vue';
|
||||
import { ElForm, ElFormItem } from 'element-plus';
|
||||
import EditText from '@/components/site/EditText.vue';
|
||||
import { siteOperator } from '@/operators';
|
||||
import site from '@/router/site';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'SiteIndex',
|
||||
|
||||
@@ -140,12 +140,10 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElRow, ElCol, ElCard, ElForm, ElFormItem, ElImage, ElDivider, ElSwitch } from 'element-plus';
|
||||
import { ElForm, ElFormItem, ElImage, ElSwitch } from 'element-plus';
|
||||
import EditText from '@/components/site/EditText.vue';
|
||||
import EditImage from '@/components/site/EditImage.vue';
|
||||
import EditArray from '@/components/site/EditArray.vue';
|
||||
import { siteOperator } from '@/operators';
|
||||
import site from '@/router/site';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'SiteIndex',
|
||||
|
||||
@@ -34,12 +34,10 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElRow, ElCol, ElCard, ElForm, ElFormItem, ElImage, ElDivider, ElSwitch } from 'element-plus';
|
||||
import { ElForm, ElFormItem } from 'element-plus';
|
||||
import EditText from '@/components/site/EditText.vue';
|
||||
import EditImage from '@/components/site/EditImage.vue';
|
||||
import EditArray from '@/components/site/EditArray.vue';
|
||||
import { siteOperator } from '@/operators';
|
||||
import site from '@/router/site';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'SettingSeo',
|
||||
|
||||
@@ -76,7 +76,6 @@ import EditText from '@/components/site/EditText.vue';
|
||||
import EditImage from '@/components/site/EditImage.vue';
|
||||
import EditArray from '@/components/site/EditArray.vue';
|
||||
import { siteOperator } from '@/operators';
|
||||
import site from '@/router/site';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'SiteIndex',
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElDialog, ElButton, ElIcon, ElMessage, ElUpload, UploadFiles, UploadFile } from 'element-plus';
|
||||
import { ElDialog, ElButton, ElIcon, ElMessage, ElUpload, UploadFile } from 'element-plus';
|
||||
import { Edit } from '@element-plus/icons-vue';
|
||||
import { getBaseUrlPlatform } from '@/utils';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
|
||||
@@ -75,7 +75,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.suno?.config?.audio_id;
|
||||
},
|
||||
set(val: string[]) {}
|
||||
set() {}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -37,7 +37,7 @@ import UserAvatar from '@/components/user/Avatar.vue';
|
||||
import UserSetting from '@/components/user/Setting.vue';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { ROUTE_CONSOLE_ROOT, ROUTE_DISTRIBUTION_INDEX } from '@/router';
|
||||
import { ElDivider, ElCard } from 'element-plus';
|
||||
import { ElDivider } from 'element-plus';
|
||||
import { ElDropdownMenu, ElDropdownItem, ElDropdown } from 'element-plus';
|
||||
|
||||
export default defineComponent({
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElDialog, ElMenu, ElMenuItem, ElDropdownMenu, ElDropdownItem, ElSubMenu } from 'element-plus';
|
||||
import { ElDialog, ElMenu, ElMenuItem } from 'element-plus';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { faCog, faBell, faUserShield, faMagic, faMoneyBill } from '@fortawesome/free-solid-svg-icons';
|
||||
import GeneralSetting from '@/components/setting/General.vue';
|
||||
|
||||
Reference in new issue
Block a user