HOtfix
This commit is contained in:
parent
887829420e
commit
f159956697
@ -10,24 +10,10 @@ import arrow from "./autoscrolling-images-arrow.svg";
|
|||||||
|
|
||||||
import type { FilePointer } from "@sealcode/file-manager";
|
import type { FilePointer } from "@sealcode/file-manager";
|
||||||
import type { makeJDDContext } from "../../jdd-context.js";
|
import type { makeJDDContext } from "../../jdd-context.js";
|
||||||
import _locreq from "locreq";
|
|
||||||
const locreq = _locreq(new URL("./", import.meta.url).pathname);
|
|
||||||
|
|
||||||
const images = new ComponentArguments.List(
|
const images = new ComponentArguments.List(
|
||||||
new ComponentArguments.Structured({
|
new ComponentArguments.Structured({
|
||||||
image: new ComponentArguments.Image().setExampleImages(
|
image: new ComponentArguments.Image(),
|
||||||
[
|
|
||||||
"logo1.png",
|
|
||||||
"logo2.png",
|
|
||||||
"logo3.png",
|
|
||||||
"logo4.png",
|
|
||||||
"logo5.png",
|
|
||||||
"logo6.png",
|
|
||||||
"logo7.png",
|
|
||||||
"logo8.png",
|
|
||||||
"logo9.png",
|
|
||||||
].map((name) => locreq.resolve("assets/" + name))
|
|
||||||
),
|
|
||||||
alt: new ComponentArguments.ShortText(),
|
alt: new ComponentArguments.ShortText(),
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
@ -7,17 +7,9 @@ import type {
|
|||||||
} from "@sealcode/jdd";
|
} from "@sealcode/jdd";
|
||||||
import { Component, ComponentArguments } from "@sealcode/jdd";
|
import { Component, ComponentArguments } from "@sealcode/jdd";
|
||||||
|
|
||||||
import _locreq from "locreq";
|
|
||||||
|
|
||||||
const locreq = _locreq(new URL("./", import.meta.url).pathname);
|
|
||||||
|
|
||||||
const component_arguments = {
|
const component_arguments = {
|
||||||
image: new ComponentArguments.Structured({
|
image: new ComponentArguments.Structured({
|
||||||
image: new ComponentArguments.Image().setExampleImages(
|
image: new ComponentArguments.Image(),
|
||||||
["image1.jpg", "image2.jpg", "image3.jpg", "image5.jpg"].map((name) =>
|
|
||||||
locreq.resolve("assets/" + name)
|
|
||||||
)
|
|
||||||
),
|
|
||||||
alt: new ComponentArguments.ShortText(),
|
alt: new ComponentArguments.ShortText(),
|
||||||
}),
|
}),
|
||||||
} as const;
|
} as const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user