@monkeyplus/flow 6.0.114 → 6.0.115
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.
|
@@ -127,7 +127,6 @@ export default defineFlowModule({
|
|
|
127
127
|
dirImages: options.dirImages
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
|
-
console.log("imagesRuntimeConfig", imagesRuntimeConfig);
|
|
131
130
|
process.env.FLOW_IMAGES_RUNTIME_CONFIG = JSON.stringify(imagesRuntimeConfig);
|
|
132
131
|
if (shouldGenerateOutput) {
|
|
133
132
|
rmSync(generatedManifestPath, { force: true });
|
package/package.json
CHANGED
package/server/renderer.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { resolve } from "node:path";
|
|
2
2
|
import { pathToFileURL } from "node:url";
|
|
3
|
+
import { useRuntimeConfig } from "nitro/runtime-config";
|
|
3
4
|
let prerenderFetchHandlerPromise;
|
|
4
5
|
function resolvePrerenderServiceUrls() {
|
|
6
|
+
globalThis.useRuntimeConfig = useRuntimeConfig;
|
|
5
7
|
const cwd = process.cwd();
|
|
6
8
|
return [
|
|
7
9
|
pathToFileURL(resolve(cwd, "node_modules/.nitro/vite/services/ssr/index.js")).href,
|
|
@@ -69,7 +69,6 @@ export default defineComponent({
|
|
|
69
69
|
baseURL: "/_ipx",
|
|
70
70
|
dirImages: "/images"
|
|
71
71
|
});
|
|
72
|
-
console.log("mkPictureOptions", options.value);
|
|
73
72
|
const originalFormat = () => getFileExtension(resolvedSrc.value);
|
|
74
73
|
const isTransparent = () => ["png", "webp", "gif"].includes(originalFormat());
|
|
75
74
|
const nFormat = () => {
|
|
@@ -32,7 +32,6 @@ export function createBootImageUtils(boot) {
|
|
|
32
32
|
return {
|
|
33
33
|
getImage: resolver.getImage,
|
|
34
34
|
getImageMeta(src) {
|
|
35
|
-
console.log("getImageMeta", src, stateImages.all[src]);
|
|
36
35
|
return stateImages.all[src];
|
|
37
36
|
},
|
|
38
37
|
getImageOptions() {
|
|
@@ -67,7 +66,7 @@ export function useImage(props) {
|
|
|
67
66
|
grayscale: props.grayscale,
|
|
68
67
|
rotate: props.rotate,
|
|
69
68
|
size: props.size,
|
|
70
|
-
watermark: typeof props.watermark === "object" && props.watermark !== null ?
|
|
69
|
+
watermark: typeof props.watermark === "object" && props.watermark !== null ? "b64" + (typeof btoa !== "undefined" ? btoa(unescape(encodeURIComponent(JSON.stringify(props.watermark)))) : "") : props.watermark
|
|
71
70
|
}));
|
|
72
71
|
const nOption = computed(() => ({
|
|
73
72
|
provider: props.provider,
|