Clean up dead code, typos, and minor style issues
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<ul class="space-y-2" id="cyp-conformance-result-check">
|
||||
<li
|
||||
class="flex justify-start items-center pr-4"
|
||||
v-for="(act, index) in datadata"
|
||||
v-for="(act, index) in displayData"
|
||||
:key="index"
|
||||
:title="act"
|
||||
>
|
||||
@@ -34,21 +34,21 @@ import emitter from "@/utils/emitter";
|
||||
|
||||
const props = defineProps(["data", "select"]);
|
||||
|
||||
const datadata = ref(props.select);
|
||||
const displayData = ref(props.select);
|
||||
|
||||
watch(
|
||||
() => props.data,
|
||||
(newValue) => {
|
||||
datadata.value = newValue;
|
||||
displayData.value = newValue;
|
||||
},
|
||||
);
|
||||
|
||||
watch(
|
||||
() => props.select,
|
||||
(newValue) => {
|
||||
datadata.value = newValue;
|
||||
displayData.value = newValue;
|
||||
},
|
||||
);
|
||||
|
||||
emitter.on("reset", (val) => (datadata.value = val));
|
||||
emitter.on("reset", (val) => (displayData.value = val));
|
||||
</script>
|
||||
|
||||
@@ -181,9 +181,7 @@ export default function cytoscapeMap(
|
||||
"text-margin-y": function (node) {
|
||||
return node.data("type") === "activity" ? 2 : 0;
|
||||
},
|
||||
padding: function (node) {
|
||||
return node.data("type") === "activity" ? 0 : 0;
|
||||
},
|
||||
padding: 0,
|
||||
"text-justification": "left",
|
||||
"text-halign": "center",
|
||||
"text-valign": "center",
|
||||
|
||||
@@ -25,7 +25,6 @@ cytoscape.use(dagre);
|
||||
* backgroundColor, bordercolor, height, id, label, shape, and width.
|
||||
* @param {Array<Object>} edges - Array of edge data objects.
|
||||
* @param {HTMLElement} graphId - The DOM container element for Cytoscape.
|
||||
* @returns {cytoscape.Core} The configured Cytoscape instance.
|
||||
*/
|
||||
export default function cytoscapeMapTrace(nodes, edges, graphId) {
|
||||
// create Cytoscape
|
||||
|
||||
@@ -110,7 +110,7 @@ export function getTimeLabel(second, fixedNumber = 0) {
|
||||
} else if (mm > 0) {
|
||||
return ((second % hour) / minutes).toFixed(fixedNumber) + " mins";
|
||||
}
|
||||
if (second == 0) {
|
||||
if (second === 0) {
|
||||
return second + " sec";
|
||||
}
|
||||
return second + " sec";
|
||||
@@ -141,7 +141,7 @@ export function simpleTimeLabel(second, fixedNumber = 0) {
|
||||
} else if (mm > 0) {
|
||||
return ((second % hour) / minutes).toFixed(fixedNumber) + "m";
|
||||
}
|
||||
if (second == 0) {
|
||||
if (second === 0) {
|
||||
return second + "s";
|
||||
}
|
||||
return second + "s";
|
||||
|
||||
@@ -824,7 +824,7 @@ function download(type, id, source, name) {
|
||||
*/
|
||||
function primaryDragDelete() {
|
||||
compareData.value.unshift(primaryDragData.value[0]);
|
||||
primaryDragData.value.length = 0;
|
||||
primaryDragData.value = [];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -832,7 +832,7 @@ function primaryDragDelete() {
|
||||
*/
|
||||
function secondaryDragDelete() {
|
||||
compareData.value.unshift(secondaryDragData.value[0]);
|
||||
secondaryDragData.value.length = 0;
|
||||
secondaryDragData.value = [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user