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
parent 7c48faaa3d
commit 847904c49b
172 changed files with 13629 additions and 9154 deletions

View File

@@ -12,46 +12,46 @@
*/
import { defineStore } from "pinia";
import moment from 'moment';
import moment from "moment";
/**
* Pinia store for caching user input during conformance rule editing.
*/
export const useConformanceInputStore = defineStore('conformanceInputStore', {
export const useConformanceInputStore = defineStore("conformanceInputStore", {
state: () => ({
inputDataToSave: {
inputStart: null, // TODO: clarify whether "start" means activity start or time start
inputEnd: null,
min: null,
max: null,
type: null,
task: null,
inputStart: null, // TODO: clarify whether "start" means activity start or time start
inputEnd: null,
min: null,
max: null,
type: null,
task: null,
},
activityRadioData: {
category: null,
task: ['', ''],
task: ["", ""],
},
}),
getters: {
},
getters: {},
actions: {
/**
* Sets the activity radio global state for either the start ('From') or end ('To') of a task.
* We arrange in this way because backend needs us to communicate in this way.
* @param {object} actRadioData
* @param {object} actRadioData
* @param {string} fromToStr 'From' or 'To'
*/
setActivityRadioStartEndData(actRadioData, fromToStr){
switch(fromToStr) {
case 'From':
setActivityRadioStartEndData(actRadioData, fromToStr) {
switch (fromToStr) {
case "From":
this.activityRadioData.task[0] = actRadioData;
break;
case 'To':
this.activityRadioData.task[this.activityRadioData.task.length - 1] = actRadioData;
case "To":
this.activityRadioData.task[this.activityRadioData.task.length - 1] =
actRadioData;
break;
default:
break;
}
},
},
})
});