Remove unused imports and variables (S1128, S1481, S1854)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
// Authors:
|
// Authors:
|
||||||
// imacat.yang@dsp.im (imacat), 2026/03/05
|
// imacat.yang@dsp.im (imacat), 2026/03/05
|
||||||
|
|
||||||
import { setupApiIntercepts, loginWithFixtures } from "../support/intercept";
|
import { setupApiIntercepts } from "../support/intercept";
|
||||||
|
|
||||||
describe("Login Flow", () => {
|
describe("Login Flow", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -100,8 +100,6 @@ import { useAllMapDataStore } from "@/stores/allMapData";
|
|||||||
import { useConformanceStore } from "@/stores/conformance";
|
import { useConformanceStore } from "@/stores/conformance";
|
||||||
import { usePageAdminStore } from "@/stores/pageAdmin";
|
import { usePageAdminStore } from "@/stores/pageAdmin";
|
||||||
import { useMapCompareStore } from "@/stores/mapCompareStore";
|
import { useMapCompareStore } from "@/stores/mapCompareStore";
|
||||||
import IconSearch from "@/components/icons/IconSearch.vue";
|
|
||||||
import IconSetting from "@/components/icons/IconSetting.vue";
|
|
||||||
import {
|
import {
|
||||||
saveFilter,
|
saveFilter,
|
||||||
savedSuccessfully,
|
savedSuccessfully,
|
||||||
|
|||||||
@@ -195,7 +195,6 @@ function onFocus(event) {
|
|||||||
* @param {Event} event - The change event from a duration input.
|
* @param {Event} event - The change event from a duration input.
|
||||||
*/
|
*/
|
||||||
function onChange(event) {
|
function onChange(event) {
|
||||||
const baseInputValue = event.target.value;
|
|
||||||
let decoratedInputValue;
|
let decoratedInputValue;
|
||||||
if (isNaN(event.target.value)) {
|
if (isNaN(event.target.value)) {
|
||||||
event.target.value = "00";
|
event.target.value = "00";
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import moment from "moment";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pinia store for caching user input during conformance rule editing.
|
* Pinia store for caching user input during conformance rule editing.
|
||||||
|
|||||||
@@ -151,7 +151,6 @@ import { useRoute } from "vue-router";
|
|||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
import { useLoadingStore } from "@/stores/loading";
|
import { useLoadingStore } from "@/stores/loading";
|
||||||
import { useAllMapDataStore } from "@/stores/allMapData";
|
import { useAllMapDataStore } from "@/stores/allMapData";
|
||||||
import { useConformanceStore } from "@/stores/conformance";
|
|
||||||
import cytoscapeMap from "@/module/cytoscapeMap.js";
|
import cytoscapeMap from "@/module/cytoscapeMap.js";
|
||||||
import { useCytoscapeStore } from "@/stores/cytoscapeStore";
|
import { useCytoscapeStore } from "@/stores/cytoscapeStore";
|
||||||
import { useMapPathStore } from "@/stores/mapPathStore";
|
import { useMapPathStore } from "@/stores/mapPathStore";
|
||||||
|
|||||||
@@ -474,11 +474,6 @@ import { useFilesStore } from "@/stores/files";
|
|||||||
import { useAllMapDataStore } from "@/stores/allMapData";
|
import { useAllMapDataStore } from "@/stores/allMapData";
|
||||||
import { usePageAdminStore } from "@/stores/pageAdmin";
|
import { usePageAdminStore } from "@/stores/pageAdmin";
|
||||||
import { useLoadingStore } from "@/stores/loading";
|
import { useLoadingStore } from "@/stores/loading";
|
||||||
import IconDataFormat from "@/components/icons/IconDataFormat.vue";
|
|
||||||
import IconRule from "@/components/icons/IconRule.vue";
|
|
||||||
import IconsFilter from "@/components/icons/IconsFilter.vue";
|
|
||||||
import IconFlowChart from "@/components/icons/IconFlowChart.vue";
|
|
||||||
import IconVector from "@/components/icons/IconVector.vue";
|
|
||||||
import IconList from "@/components/icons/IconList.vue";
|
import IconList from "@/components/icons/IconList.vue";
|
||||||
import IconGrid from "@/components/icons/IconGrid.vue";
|
import IconGrid from "@/components/icons/IconGrid.vue";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -173,8 +173,6 @@ import { useRouter } from "vue-router";
|
|||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
import { useLoadingStore } from "@/stores/loading";
|
import { useLoadingStore } from "@/stores/loading";
|
||||||
import {
|
import {
|
||||||
uploadFailedFirst,
|
|
||||||
uploadSuccess,
|
|
||||||
uploadConfirm,
|
uploadConfirm,
|
||||||
} from "@/module/alertModal.js";
|
} from "@/module/alertModal.js";
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ describe("Login", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("stores return-to URL from route query", () => {
|
it("stores return-to URL from route query", () => {
|
||||||
const wrapper = mountLogin({
|
mountLogin({
|
||||||
route: { query: { "return-to": "encodedUrl" } },
|
route: { query: { "return-to": "encodedUrl" } },
|
||||||
});
|
});
|
||||||
const store = useLoginStore();
|
const store = useLoginStore();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
// Authors:
|
// Authors:
|
||||||
// imacat.yang@dsp.im (imacat), 2026/03/05
|
// imacat.yang@dsp.im (imacat), 2026/03/05
|
||||||
|
|
||||||
import { describe, it, expect, beforeEach, vi } from "vitest";
|
import { describe, it, expect, beforeEach } from "vitest";
|
||||||
import { mount } from "@vue/test-utils";
|
import { mount } from "@vue/test-utils";
|
||||||
import { setActivePinia, createPinia } from "pinia";
|
import { setActivePinia, createPinia } from "pinia";
|
||||||
import ModalHeader from "@/views/AccountManagement/ModalHeader.vue";
|
import ModalHeader from "@/views/AccountManagement/ModalHeader.vue";
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ vi.mock("@/api/client.js", () => ({
|
|||||||
default: { get: mockGet, post: mockPost, put: mockPut },
|
default: { get: mockGet, post: mockPost, put: mockPut },
|
||||||
}));
|
}));
|
||||||
|
|
||||||
import apiError from "@/module/apiError.js";
|
|
||||||
import { useConformanceStore } from "@/stores/conformance";
|
import { useConformanceStore } from "@/stores/conformance";
|
||||||
|
|
||||||
describe("conformanceStore", () => {
|
describe("conformanceStore", () => {
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import {
|
|||||||
setLineChartData,
|
setLineChartData,
|
||||||
setBarChartData,
|
setBarChartData,
|
||||||
timeRange,
|
timeRange,
|
||||||
yTimeRange,
|
|
||||||
getXIndex,
|
getXIndex,
|
||||||
formatTime,
|
formatTime,
|
||||||
formatMaxTwo,
|
formatMaxTwo,
|
||||||
|
|||||||
Reference in New Issue
Block a user