@adminforth/bulk-ai-flow 1.17.5 → 1.17.6
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/VisionAction.vue +30 -1
- 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,400 bytes received 172 bytes 181,144.00 bytes/sec
|
|
17
|
+
total size is 89,755 speedup is 0.99
|
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
|
|
|
@@ -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
|
|