@adminforth/bulk-ai-flow 1.17.5 → 1.17.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.log +2 -2
- package/custom/ImageCompare.vue +7 -7
- package/custom/VisionAction.vue +30 -1
- package/dist/custom/ImageCompare.vue +7 -7
- package/dist/custom/VisionAction.vue +30 -1
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -13,5 +13,5 @@ custom/package-lock.json
|
|
|
13
13
|
custom/package.json
|
|
14
14
|
custom/tsconfig.json
|
|
15
15
|
|
|
16
|
-
sent
|
|
17
|
-
total size is
|
|
16
|
+
sent 90,341 bytes received 172 bytes 181,026.00 bytes/sec
|
|
17
|
+
total size is 89,696 speedup is 0.99
|
package/custom/ImageCompare.vue
CHANGED
|
@@ -159,19 +159,19 @@ watch([() => props.oldImage, () => props.newImage, () => compiledOldImage.value]
|
|
|
159
159
|
})
|
|
160
160
|
</script>
|
|
161
161
|
|
|
162
|
-
<style>
|
|
162
|
+
<style scoped>
|
|
163
163
|
.medium-zoom-image {
|
|
164
|
-
z-index: 999999
|
|
164
|
+
z-index: 999999;
|
|
165
165
|
background: rgba(0, 0, 0, 0.8);
|
|
166
|
-
border: none
|
|
167
|
-
border-radius: 0
|
|
166
|
+
border: none;
|
|
167
|
+
border-radius: 0;
|
|
168
168
|
}
|
|
169
169
|
.medium-zoom-overlay {
|
|
170
|
-
z-index: 99999
|
|
171
|
-
background: rgba(0, 0, 0, 0.8)
|
|
170
|
+
z-index: 99999;
|
|
171
|
+
background: rgba(0, 0, 0, 0.8);
|
|
172
172
|
}
|
|
173
173
|
html.dark .medium-zoom-overlay {
|
|
174
|
-
background: rgba(17, 24, 39, 0.8)
|
|
174
|
+
background: rgba(17, 24, 39, 0.8);
|
|
175
175
|
}
|
|
176
176
|
body.medium-zoom--opened aside {
|
|
177
177
|
filter: grayscale(1);
|
package/custom/VisionAction.vue
CHANGED
|
@@ -894,8 +894,34 @@ function click() {
|
|
|
894
894
|
}
|
|
895
895
|
|
|
896
896
|
function saveSettings() {
|
|
897
|
+
const promptsToSaveGenerateImages = Object.fromEntries(
|
|
898
|
+
Object.entries(generationPrompts.value.generateImages).filter(
|
|
899
|
+
([key, value]) => value !== props.meta.generationPrompts.imageGenerationPrompts[key].prompt
|
|
900
|
+
)
|
|
901
|
+
);
|
|
902
|
+
|
|
903
|
+
const promptsToSaveAnalyzeImages = Object.fromEntries(
|
|
904
|
+
Object.entries(generationPrompts.value.imageFieldsPrompts).filter(
|
|
905
|
+
([key, value]) => value !== props.meta.generationPrompts.imageFieldsPrompts[key]
|
|
906
|
+
)
|
|
907
|
+
);
|
|
908
|
+
|
|
909
|
+
const promptsToSaveAnalyzeNoImages = Object.fromEntries(
|
|
910
|
+
Object.entries(generationPrompts.value.plainFieldsPrompts).filter(
|
|
911
|
+
([key, value]) => value !== props.meta.generationPrompts.plainFieldsPrompts[key]
|
|
912
|
+
)
|
|
913
|
+
);
|
|
914
|
+
|
|
915
|
+
const promptsToSave = {
|
|
916
|
+
...(Object.keys(promptsToSaveAnalyzeNoImages).length > 0 ? { plainFieldsPrompts: promptsToSaveAnalyzeNoImages } : {}),
|
|
917
|
+
...(Object.keys(promptsToSaveAnalyzeImages).length > 0 ? { imageFieldsPrompts: promptsToSaveAnalyzeImages } : {}),
|
|
918
|
+
...(Object.keys(promptsToSaveGenerateImages).length > 0 ? { generateImages: promptsToSaveGenerateImages } : {}),
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
console.log('Saving prompts:', promptsToSave);
|
|
922
|
+
|
|
923
|
+
localStorage.setItem(`bulkAiFlowGenerationPrompts_${props.meta.pluginInstanceId}`, JSON.stringify(promptsToSave));
|
|
897
924
|
popupMode.value = 'confirmation';
|
|
898
|
-
localStorage.setItem(`bulkAiFlowGenerationPrompts_${props.meta.pluginInstanceId}`, JSON.stringify(generationPrompts.value));
|
|
899
925
|
}
|
|
900
926
|
|
|
901
927
|
async function getGenerationPrompts() {
|
|
@@ -925,10 +951,13 @@ async function getGenerationPrompts() {
|
|
|
925
951
|
}
|
|
926
952
|
|
|
927
953
|
function resetPromptToDefault(categoryKey, promptKey) {
|
|
954
|
+
console.log('Resetting prompt:', categoryKey, promptKey);
|
|
955
|
+
console.log('Default prompt:', props.meta.generationPrompts);
|
|
928
956
|
if (categoryKey === 'generateImages') {
|
|
929
957
|
generationPrompts.value[categoryKey][promptKey] = props.meta.generationPrompts.imageGenerationPrompts[promptKey].prompt;
|
|
930
958
|
return;
|
|
931
959
|
}
|
|
960
|
+
console.log('Resetting prompt to the:', props.meta.generationPrompts[categoryKey][promptKey]);
|
|
932
961
|
generationPrompts.value[categoryKey][promptKey] = props.meta.generationPrompts[categoryKey][promptKey];
|
|
933
962
|
}
|
|
934
963
|
|
|
@@ -159,19 +159,19 @@ watch([() => props.oldImage, () => props.newImage, () => compiledOldImage.value]
|
|
|
159
159
|
})
|
|
160
160
|
</script>
|
|
161
161
|
|
|
162
|
-
<style>
|
|
162
|
+
<style scoped>
|
|
163
163
|
.medium-zoom-image {
|
|
164
|
-
z-index: 999999
|
|
164
|
+
z-index: 999999;
|
|
165
165
|
background: rgba(0, 0, 0, 0.8);
|
|
166
|
-
border: none
|
|
167
|
-
border-radius: 0
|
|
166
|
+
border: none;
|
|
167
|
+
border-radius: 0;
|
|
168
168
|
}
|
|
169
169
|
.medium-zoom-overlay {
|
|
170
|
-
z-index: 99999
|
|
171
|
-
background: rgba(0, 0, 0, 0.8)
|
|
170
|
+
z-index: 99999;
|
|
171
|
+
background: rgba(0, 0, 0, 0.8);
|
|
172
172
|
}
|
|
173
173
|
html.dark .medium-zoom-overlay {
|
|
174
|
-
background: rgba(17, 24, 39, 0.8)
|
|
174
|
+
background: rgba(17, 24, 39, 0.8);
|
|
175
175
|
}
|
|
176
176
|
body.medium-zoom--opened aside {
|
|
177
177
|
filter: grayscale(1);
|
|
@@ -894,8 +894,34 @@ function click() {
|
|
|
894
894
|
}
|
|
895
895
|
|
|
896
896
|
function saveSettings() {
|
|
897
|
+
const promptsToSaveGenerateImages = Object.fromEntries(
|
|
898
|
+
Object.entries(generationPrompts.value.generateImages).filter(
|
|
899
|
+
([key, value]) => value !== props.meta.generationPrompts.imageGenerationPrompts[key].prompt
|
|
900
|
+
)
|
|
901
|
+
);
|
|
902
|
+
|
|
903
|
+
const promptsToSaveAnalyzeImages = Object.fromEntries(
|
|
904
|
+
Object.entries(generationPrompts.value.imageFieldsPrompts).filter(
|
|
905
|
+
([key, value]) => value !== props.meta.generationPrompts.imageFieldsPrompts[key]
|
|
906
|
+
)
|
|
907
|
+
);
|
|
908
|
+
|
|
909
|
+
const promptsToSaveAnalyzeNoImages = Object.fromEntries(
|
|
910
|
+
Object.entries(generationPrompts.value.plainFieldsPrompts).filter(
|
|
911
|
+
([key, value]) => value !== props.meta.generationPrompts.plainFieldsPrompts[key]
|
|
912
|
+
)
|
|
913
|
+
);
|
|
914
|
+
|
|
915
|
+
const promptsToSave = {
|
|
916
|
+
...(Object.keys(promptsToSaveAnalyzeNoImages).length > 0 ? { plainFieldsPrompts: promptsToSaveAnalyzeNoImages } : {}),
|
|
917
|
+
...(Object.keys(promptsToSaveAnalyzeImages).length > 0 ? { imageFieldsPrompts: promptsToSaveAnalyzeImages } : {}),
|
|
918
|
+
...(Object.keys(promptsToSaveGenerateImages).length > 0 ? { generateImages: promptsToSaveGenerateImages } : {}),
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
console.log('Saving prompts:', promptsToSave);
|
|
922
|
+
|
|
923
|
+
localStorage.setItem(`bulkAiFlowGenerationPrompts_${props.meta.pluginInstanceId}`, JSON.stringify(promptsToSave));
|
|
897
924
|
popupMode.value = 'confirmation';
|
|
898
|
-
localStorage.setItem(`bulkAiFlowGenerationPrompts_${props.meta.pluginInstanceId}`, JSON.stringify(generationPrompts.value));
|
|
899
925
|
}
|
|
900
926
|
|
|
901
927
|
async function getGenerationPrompts() {
|
|
@@ -925,10 +951,13 @@ async function getGenerationPrompts() {
|
|
|
925
951
|
}
|
|
926
952
|
|
|
927
953
|
function resetPromptToDefault(categoryKey, promptKey) {
|
|
954
|
+
console.log('Resetting prompt:', categoryKey, promptKey);
|
|
955
|
+
console.log('Default prompt:', props.meta.generationPrompts);
|
|
928
956
|
if (categoryKey === 'generateImages') {
|
|
929
957
|
generationPrompts.value[categoryKey][promptKey] = props.meta.generationPrompts.imageGenerationPrompts[promptKey].prompt;
|
|
930
958
|
return;
|
|
931
959
|
}
|
|
960
|
+
console.log('Resetting prompt to the:', props.meta.generationPrompts[categoryKey][promptKey]);
|
|
932
961
|
generationPrompts.value[categoryKey][promptKey] = props.meta.generationPrompts[categoryKey][promptKey];
|
|
933
962
|
}
|
|
934
963
|
|