@@ -111,7 +117,10 @@ const redact_images = async () => {
ref="inputModal"
:modal-id="'inputDirectory'"
:title="'Input Directory'"
- @update-image-list="redactionStateFlags.showImageTable = true, redactionStateFlags.redactionComplete = false"
+ @update-image-list="
+ (redactionStateFlags.showImageTable = true),
+ (redactionStateFlags.redactionComplete = false)
+ "
/>
{
ref="rulesetModal"
:modal-id="'rulesetDirectory'"
:title="'Ruleset Directory'"
- />
+ />
diff --git a/client/src/api/rest.ts b/client/src/api/rest.ts
index 5f2cd2c1..375612e6 100644
--- a/client/src/api/rest.ts
+++ b/client/src/api/rest.ts
@@ -18,10 +18,7 @@ export async function getDirectoryInfo(path?: string) {
});
}
-
-export async function getRedactionPlan(
- params: ImagePlanParams,
-) {
+export async function getRedactionPlan(params: ImagePlanParams) {
const response = await fetch(
`${basePath}/redaction_plan?input_directory=${params.directory}&rules_path=${params.rules}&limit=${params.limit}&offset=${params.offset}&update=${params.update}`,
{
diff --git a/client/src/components/FileBrowser.vue b/client/src/components/FileBrowser.vue
index 840dc4b3..9a837789 100644
--- a/client/src/components/FileBrowser.vue
+++ b/client/src/components/FileBrowser.vue
@@ -47,16 +47,17 @@ const closeModal = () => {
const updateSelectedDirectories = (path: string) => {
selectedDirectories.value[props.modalId] = path;
};
+
const updateTableData = () => {
redactionStateFlags.value.redactionSnackbar = false;
- useRedactionPlan.updateImageData({
- directory: selectedDirectories.value.inputDirectory,
- rules: selectedDirectories.value.rulesetDirectory,
- limit: 50,
- offset: 0,
- update: false});
+ useRedactionPlan.updateImageData({
+ directory: selectedDirectories.value.inputDirectory,
+ rules: selectedDirectories.value.rulesetDirectory,
+ limit: 50,
+ offset: 0,
+ update: false,
+ });
};
-
@@ -74,9 +75,7 @@ const updateTableData = () => {
@click="
$emit('update-image-list'),
closeModal(),
- title !== 'Output Directory'
- ? updateTableData()
- : ''
+ title !== 'Output Directory' ? updateTableData() : ''
"
>
Select
@@ -133,34 +132,30 @@ const updateTableData = () => {
-
- -
-
- {{ child_image.name }}
-
- -
- {{ directoryData.childrenImages.length - 10 }} More Images
-
-
-
- -
-
- {{ ruleset.name }}
-
-
+
+ -
+
+ {{ child_image.name }}
+
+ -
+ {{ directoryData.childrenImages.length - 10 }} More Images
+
+
+
+ -
+
+ {{ ruleset.name }}
+
+
diff --git a/client/src/components/ImageDataDisplay.vue b/client/src/components/ImageDataDisplay.vue
index 644daaf2..3f2d379e 100644
--- a/client/src/components/ImageDataDisplay.vue
+++ b/client/src/components/ImageDataDisplay.vue
@@ -6,7 +6,6 @@ import ImageDataTable from "./ImageDataTable.vue";
import InfiniteScroller from "./InfiniteScroller.vue";
import { selectedDirectories } from "../store/directoryStore";
-
const limit = ref(50);
const offset = ref(1);
@@ -22,8 +21,8 @@ const loadImagePlan = async () => {
rules: selectedDirectories.value.rulesetDirectory,
limit: limit.value,
offset: offset.value,
- update: true,}
- );
+ update: true,
+ });
useRedactionPlan.imageRedactionPlan.data = {
...useRedactionPlan.imageRedactionPlan.data,
...newPlan.data,
@@ -32,7 +31,6 @@ const loadImagePlan = async () => {
++offset.value;
};
const usedColumns = computed(() => useRedactionPlan.imageRedactionPlan.tags);
-
diff --git a/client/src/components/MenuSteps.vue b/client/src/components/MenuSteps.vue
index 703bd69e..161933f4 100644
--- a/client/src/components/MenuSteps.vue
+++ b/client/src/components/MenuSteps.vue
@@ -33,8 +33,8 @@ const openModal = () => {
props.stepTitle.includes("Input")
? props.inputModal.modal.showModal()
: props.stepTitle.includes("Output")
- ? props.outputModal.modal.showModal()
- : props.rulesetModal.modal.showModal();
+ ? props.outputModal.modal.showModal()
+ : props.rulesetModal.modal.showModal();
};
const clearRuleset = () => {
@@ -47,7 +47,6 @@ const clearRuleset = () => {
update: false,
});
};
-
@@ -120,8 +119,8 @@ const clearRuleset = () => {
v-else
class="text-left text-gray-500 text-[14px] font-bold break-all pl-8"
>
- {{ rulesetModal ? 'No file selected' : 'No directory selected' }}
-
+ {{ rulesetModal ? "No file selected" : "No directory selected" }}
+