Fix unused variable (#225)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"comment": "update change log",
|
||||
"packageName": "@acedatacloud/nexior",
|
||||
"email": "office@acedata.cloud",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
||||
@@ -101,6 +101,7 @@
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-promise": "^5.0.0",
|
||||
"eslint-plugin-unused-imports": "^4.1.4",
|
||||
"eslint-plugin-vue": "^8.5.0",
|
||||
"husky": "^7.0.2",
|
||||
"postcss": "^8.4.32",
|
||||
|
||||
@@ -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';
|
||||
|
||||
Vendored
-3
@@ -13,6 +13,3 @@ declare module '*.vue' {
|
||||
const component: DefineComponent<{}, {}, {}>;
|
||||
export default component;
|
||||
}
|
||||
|
||||
// declare config object
|
||||
declare const config: any;
|
||||
|
||||
@@ -3,6 +3,7 @@ import { nextTick } from 'vue';
|
||||
import axios from 'axios';
|
||||
|
||||
declare namespace Intl {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
function getCanonicalLocales(locales: string | string[] | undefined): string[];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { IApi } from './api';
|
||||
import { IService } from './service';
|
||||
|
||||
export interface IApiUsage {
|
||||
|
||||
@@ -113,14 +113,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import {
|
||||
IApi,
|
||||
IApplication,
|
||||
IApplicationListResponse,
|
||||
IApiUsage,
|
||||
IApiUsageListResponse,
|
||||
ICredentialType
|
||||
} from '@/models';
|
||||
import { IApplication, IApplicationListResponse, IApiUsage, IApiUsageListResponse, ICredentialType } from '@/models';
|
||||
import Pagination from '@/components/common/Pagination.vue';
|
||||
import { ElTable, ElRow, ElCol, ElTableColumn, ElCard, ElTag, ElSelect, ElOption } from 'element-plus';
|
||||
import { apiUsageOperator, applicationOperator } from '@/operators';
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import Layout from '@/layouts/Midjourney.vue';
|
||||
import ConfigPanel from '@/components/midjourney/ConfigPanel.vue';
|
||||
import { ElMessage, ElCard } from 'element-plus';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { applicationOperator, midjourneyOperator } from '@/operators';
|
||||
import TaskList from '@/components/midjourney/tasks/TaskList.vue';
|
||||
import { ERROR_CODE_DUPLICATION, ERROR_CODE_FORBIDDEN, ERROR_CODE_USED_UP } from '@/constants/errorCode';
|
||||
import { ERROR_CODE_DUPLICATION, ERROR_CODE_USED_UP } from '@/constants/errorCode';
|
||||
import { Status } from '@/models';
|
||||
import { IMidjourneyImagineRequest, IApplicationDetailResponse, MidjourneyImagineAction } from '@/models';
|
||||
import {
|
||||
|
||||
@@ -322,7 +322,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',
|
||||
|
||||
@@ -5,7 +5,6 @@ import {
|
||||
ROUTE_CONSOLE_ORDER_DETAIL,
|
||||
ROUTE_CONSOLE_ORDER_LIST,
|
||||
ROUTE_CONSOLE_ROOT,
|
||||
ROUTE_CONSOLE_SUBSCRIPTION,
|
||||
ROUTE_CONSOLE_USAGE_LIST
|
||||
} from './constants';
|
||||
|
||||
|
||||
@@ -79,7 +79,6 @@ export const getService = async ({
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
dispatch,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IChatState, IRootState>): Promise<IApplication[] | undefined> => {
|
||||
|
||||
@@ -2578,6 +2578,11 @@ eslint-plugin-promise@^5.0.0:
|
||||
resolved "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-5.2.0.tgz"
|
||||
integrity sha512-SftLb1pUG01QYq2A/hGAWfDRXqYD82zE7j7TopDOyNdU+7SvvoXREls/+PRTY17vUXzXnZA/zfnyKgRH6x4JJw==
|
||||
|
||||
eslint-plugin-unused-imports@^4.1.4:
|
||||
version "4.1.4"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-4.1.4.tgz#62ddc7446ccbf9aa7b6f1f0b00a980423cda2738"
|
||||
integrity sha512-YptD6IzQjDardkl0POxnnRBhU1OEePMV0nd6siHaRBbd+lyh6NAhFEobiznKU7kTsSsDeSD62Pe7kAM1b7dAZQ==
|
||||
|
||||
eslint-plugin-vue@^8.5.0:
|
||||
version "8.5.0"
|
||||
resolved "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-8.5.0.tgz"
|
||||
|
||||
Reference in New Issue
Block a user