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