@monkeyplus/flow 6.0.100 → 6.0.102
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.
|
Binary file
|
package/package.json
CHANGED
package/server/lib/render.mjs
CHANGED
|
@@ -108,7 +108,17 @@ async function renderBody(page) {
|
|
|
108
108
|
params: page.params,
|
|
109
109
|
path: page.pathname
|
|
110
110
|
};
|
|
111
|
-
|
|
111
|
+
let nitroImagesConfig;
|
|
112
|
+
try {
|
|
113
|
+
const pkg = "#internal/nitro";
|
|
114
|
+
const nitro = await import(
|
|
115
|
+
/* @vite-ignore */
|
|
116
|
+
pkg
|
|
117
|
+
);
|
|
118
|
+
nitroImagesConfig = nitro.useRuntimeConfig?.()?.flow?.images;
|
|
119
|
+
} catch (e) {
|
|
120
|
+
}
|
|
121
|
+
const imageUtils = getFlowImageRuntimeUtils(nitroImagesConfig);
|
|
112
122
|
const utils = {
|
|
113
123
|
getLocale() {
|
|
114
124
|
return page.locale;
|
|
@@ -149,6 +149,7 @@ export default defineComponent({
|
|
|
149
149
|
if (options.value.lazy && !props.sync && !imgAttrs.loading) {
|
|
150
150
|
imgAttrs.loading = "lazy";
|
|
151
151
|
}
|
|
152
|
+
console.log("imgAttrs.....", imgAttrs);
|
|
152
153
|
const children = [];
|
|
153
154
|
if (fallbackSource) {
|
|
154
155
|
children.push(h("source", {
|
|
Binary file
|