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 { makeJDDContext } from "../../jdd-context.js";
|
||||
import _locreq from "locreq";
|
||||
const locreq = _locreq(new URL("./", import.meta.url).pathname);
|
||||
|
||||
const images = new ComponentArguments.List(
|
||||
new ComponentArguments.Structured({
|
||||
image: new ComponentArguments.Image().setExampleImages(
|
||||
[
|
||||
"logo1.png",
|
||||
"logo2.png",
|
||||
"logo3.png",
|
||||
"logo4.png",
|
||||
"logo5.png",
|
||||
"logo6.png",
|
||||
"logo7.png",
|
||||
"logo8.png",
|
||||
"logo9.png",
|
||||
].map((name) => locreq.resolve("assets/" + name))
|
||||
),
|
||||
image: new ComponentArguments.Image(),
|
||||
alt: new ComponentArguments.ShortText(),
|
||||
})
|
||||
);
|
||||
|
@ -7,17 +7,9 @@ import type {
|
||||
} 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 = {
|
||||
image: new ComponentArguments.Structured({
|
||||
image: new ComponentArguments.Image().setExampleImages(
|
||||
["image1.jpg", "image2.jpg", "image3.jpg", "image5.jpg"].map((name) =>
|
||||
locreq.resolve("assets/" + name)
|
||||
)
|
||||
),
|
||||
image: new ComponentArguments.Image(),
|
||||
alt: new ComponentArguments.ShortText(),
|
||||
}),
|
||||
} as const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user