Apply repository-wide ESLint auto-fix formatting pass

Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
2026-03-08 12:11:57 +08:00
co-authored by Codex
parent 7c48faaa3d
commit 847904c49b
172 changed files with 13629 additions and 9154 deletions
+17 -17
View File
@@ -11,10 +11,10 @@
import { defineStore } from "pinia";
import apiClient from "@/api/client.js";
import apiError from '@/module/apiError.js';
import apiError from "@/module/apiError.js";
/** Pinia store for the Discover Performance page data. */
export const usePerformanceStore = defineStore('performanceStore', {
export const usePerformanceStore = defineStore("performanceStore", {
state: () => ({
allPerformanceData: null,
freqChartData: null,
@@ -24,10 +24,10 @@ export const usePerformanceStore = defineStore('performanceStore', {
maxX: null,
xData: null,
content: null,
}
},
}),
getters: {
performanceData: state => {
performanceData: (state) => {
return state.allPerformanceData;
},
},
@@ -38,43 +38,43 @@ export const usePerformanceStore = defineStore('performanceStore', {
* @param {number} id - The file ID.
*/
async getPerformance(type, id) {
let api = '';
let api = "";
switch (type) {
case 'log':
case "log":
api = `/api/logs/${id}/performance`;
break;
case 'filter':
case "filter":
api = `/api/filters/${id}/performance`;
break;
}
try {
const response = await apiClient.get(api);
this.allPerformanceData = response.data;
} catch(error) {
apiError(error, 'Failed to load the Performance.');
} catch (error) {
apiError(error, "Failed to load the Performance.");
}
},
/**
* In PrimeVue format
* @param {object} freqChartData
* @param {object} freqChartData
*/
setFreqChartData(freqChartData){
setFreqChartData(freqChartData) {
this.freqChartData = freqChartData;
},
/**
* In PrimeVue format
* @param {object} freqChartOptions
* @param {object} freqChartOptions
*/
setFreqChartOptions(freqChartOptions){
setFreqChartOptions(freqChartOptions) {
this.freqChartOptions = freqChartOptions;
},
/**
*
* @param {object} freqChartXData
*
* @param {object} freqChartXData
*/
setFreqChartXData(freqChartXData) {
this.freqChartXData = freqChartXData;
}
},
},
})
});