@museumwnf/viewer-layout 3.89.0 → 3.90.0
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/README.md +14 -16
- package/dist/minisite.js +42 -58
- package/package.json +1 -1
- package/src/minisite/testing.js +0 -1
package/README.md
CHANGED
|
@@ -871,8 +871,7 @@ export default minisiteConfig({
|
|
|
871
871
|
```
|
|
872
872
|
|
|
873
873
|
The factory reads `minisite.json` (`menuSecondColumnFrom`, `curators`, `maps`,
|
|
874
|
-
and for the other families `social`, `design`, `banner`, `
|
|
875
|
-
`partnerLinks`), points the frame's links at the parent product next to the
|
|
874
|
+
and for the other families `social`, `design`, `banner`, `logos`), points the frame's links at the parent product next to the
|
|
876
875
|
site's own address (`parentSite(origin, 'islamicart')`), and gives the
|
|
877
876
|
family's no-country rule (`ISLAMICART_NO_COUNTRY`, `BAROQUEART_NO_COUNTRY`) and
|
|
878
877
|
Word document title unless `minisite.json` sets `noCountry` or
|
|
@@ -988,8 +987,8 @@ const parent = 'https://museumwithnofrontiers.github.io/sharinghistory'
|
|
|
988
987
|
export default {
|
|
989
988
|
// …datasetPackage, siteName, site, features, languages, chrome…
|
|
990
989
|
shell: SharingHistoryShell,
|
|
991
|
-
navigation: sharinghistoryNavigation({ languages: languageLabels(languages), parent, profiles }),
|
|
992
|
-
minisite: sharinghistorySettings({ parent,
|
|
990
|
+
navigation: sharinghistoryNavigation({ languages: languageLabels(languages), parent, profiles: parentProfiles(manifest.site?.parent?.profiles, parent) }),
|
|
991
|
+
minisite: sharinghistorySettings({ parent, logos }),
|
|
993
992
|
views: { home: SharingHistoryHome },
|
|
994
993
|
extraViews: sharinghistoryRoutes(sectionMeta()),
|
|
995
994
|
}
|
|
@@ -1001,21 +1000,20 @@ export default {
|
|
|
1001
1000
|
theme's overview, then its subthemes (`sharinghistoryReadingOrder`); a theme or
|
|
1002
1001
|
subtheme with no title is not a page, as legacy listed only titled ones
|
|
1003
1002
|
(`sharinghistoryListedThemes`, `sharinghistoryListedSubthemes`).
|
|
1004
|
-
- **Legacy's rules
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
its status is "Y". The introduction shows the exhibition's own pictures,
|
|
1003
|
+
- **Legacy's rules, from the package**: a page's pictures are the package's
|
|
1004
|
+
`slots` (`sharinghistorySlotsOf`); the item panel's "Related" lists the other views
|
|
1005
|
+
of a slot; the caption is `showItem()`'s (`sharinghistoryCaption`), its
|
|
1006
|
+
place line the package's `caption_place`, the curator's justification only
|
|
1007
|
+
when its status is "Y". The introduction shows the exhibition's own pictures,
|
|
1010
1008
|
the first five. Related Content leads to the parent's timelines and its
|
|
1011
1009
|
gallery, narrowed to the page's theme and subtheme
|
|
1012
1010
|
(`sharinghistoryRelatedLinks`).
|
|
1013
|
-
- **The site's own values**: `
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
`
|
|
1018
|
-
|
|
1011
|
+
- **The site's own values**: `logos`, the partners' logos on the home page's band
|
|
1012
|
+
(`{ image, link, tip }`: the file under theme/assets/, the page it leads to
|
|
1013
|
+
and its tooltip; without it the band draws the package's logo images). The
|
|
1014
|
+
footer menu's Historical Profiles are the package's
|
|
1015
|
+
(`manifest.site.parent.profiles`, `parentProfiles`); a site's own
|
|
1016
|
+
`profiles` list is read only while its package has none.
|
|
1019
1017
|
- **The theme**: `minisite-sharinghistory.css` reads `--sh-*` tokens, the
|
|
1020
1018
|
exhibition's `sh_exhibitions_styles`; its pictures are the site's chrome
|
|
1021
1019
|
files under the names legacy gave them (`legacy/home_bg.jpg`,
|
package/dist/minisite.js
CHANGED
|
@@ -1145,40 +1145,21 @@ function Xn(e, t, n) {
|
|
|
1145
1145
|
};
|
|
1146
1146
|
}
|
|
1147
1147
|
function Zn(e) {
|
|
1148
|
-
|
|
1148
|
+
return (e?.slots ?? []).map((t) => ({
|
|
1149
1149
|
n: t.position,
|
|
1150
1150
|
variants: t.variants.map((t) => e.items[t]).filter(Boolean)
|
|
1151
1151
|
}));
|
|
1152
|
-
let t = /* @__PURE__ */ new Map();
|
|
1153
|
-
for (let n of e?.items ?? []) {
|
|
1154
|
-
if (!n.image_url || n.curator_status !== "Y") continue;
|
|
1155
|
-
let e = n.display_order ?? 0;
|
|
1156
|
-
t.has(e) || t.set(e, []), t.get(e).push(n);
|
|
1157
|
-
}
|
|
1158
|
-
let n = (e) => (e.variant_order ?? 1) === 1;
|
|
1159
|
-
return [...t.entries()].sort(([e], [t]) => e - t).flatMap(([e, t]) => {
|
|
1160
|
-
let r = t.filter((e) => !n(e)).sort((e, t) => e.variant_order - t.variant_order);
|
|
1161
|
-
return t.filter(n).map((t) => ({
|
|
1162
|
-
n: e,
|
|
1163
|
-
variants: [t, ...r]
|
|
1164
|
-
}));
|
|
1165
|
-
});
|
|
1166
1152
|
}
|
|
1167
|
-
function Qn({ item: e, own: t, entry: n, lang: r
|
|
1168
|
-
let
|
|
1169
|
-
a ? t.holder : "",
|
|
1170
|
-
t.location,
|
|
1171
|
-
i(t.country_id_present_days),
|
|
1172
|
-
i(e?.country_id)
|
|
1173
|
-
].map((e) => (e ?? "").trim()).filter(Boolean).join(", "), s = n?.curator_status === "Y" ? (n.justifications?.[r]?.curator ?? "").trim() : "";
|
|
1153
|
+
function Qn({ item: e, own: t, entry: n, lang: r }) {
|
|
1154
|
+
let i = e?.type !== "monument", a = t.caption_place ?? "", o = n?.curator_status === "Y" ? (n.justifications?.[r]?.curator ?? "").trim() : "";
|
|
1174
1155
|
return {
|
|
1175
1156
|
name: t.name ?? "",
|
|
1176
1157
|
date: t.dates ?? "",
|
|
1177
|
-
place:
|
|
1178
|
-
artist:
|
|
1179
|
-
material:
|
|
1180
|
-
architects:
|
|
1181
|
-
justification:
|
|
1158
|
+
place: a,
|
|
1159
|
+
artist: i ? t.artist ?? "" : "",
|
|
1160
|
+
material: i ? t.materials ?? "" : "",
|
|
1161
|
+
architects: i ? "" : t.architects ?? "",
|
|
1162
|
+
justification: o.replace(/\s+/g, " ")
|
|
1182
1163
|
};
|
|
1183
1164
|
}
|
|
1184
1165
|
function $n({ own: e, images: t = [], picture: n }) {
|
|
@@ -1220,18 +1201,17 @@ function er({ parent: e, exhibitionId: t, themeId: n = null, subthemeId: r = nul
|
|
|
1220
1201
|
function $() {
|
|
1221
1202
|
let { pkg: e, data: t, tree: r } = He(), { locale: i, t: a } = B(), o = V(), s = o.minisite ?? {}, c = s.texts ?? "minisiteSharingHistory", l = (e) => a(`${c}.${e}`), u = T(), d = n(() => i.value);
|
|
1222
1203
|
b(d, (t) => Promise.all(Gn.flatMap((n) => [e.loadTranslations(n, t), e.loadTranslations(n, "en")])), { immediate: !0 });
|
|
1223
|
-
let f = (t) => e.translations("collections", d.value)[t] ?? {}, p = (t, n) => e.translations("collections", n)[t]?.title, m = r.root, h = n(() => m.value ? qn(r.children(m.value.id), p, d.value) : []), g = (e) => Jn(r.children(e), p, d.value), _ = n(() => Kn(h.value, g)), v = (e.manifest.site?.languages ?? []).map((e) => e.code), y = (t) => e.manifest.site?.languages?.find((e) => e.code === t)?.label ?? t
|
|
1224
|
-
function
|
|
1204
|
+
let f = (t) => e.translations("collections", d.value)[t] ?? {}, p = (t, n) => e.translations("collections", n)[t]?.title, m = r.root, h = n(() => m.value ? qn(r.children(m.value.id), p, d.value) : []), g = (e) => Jn(r.children(e), p, d.value), _ = n(() => Kn(h.value, g)), v = (e.manifest.site?.languages ?? []).map((e) => e.code), y = (t) => e.manifest.site?.languages?.find((e) => e.code === t)?.label ?? t;
|
|
1205
|
+
function x(e) {
|
|
1225
1206
|
return Qn({
|
|
1226
1207
|
item: t.itemById.value.get(e.id),
|
|
1227
1208
|
own: t.tr("items", e.id, d.value),
|
|
1228
1209
|
entry: e,
|
|
1229
|
-
lang: d.value
|
|
1230
|
-
countryName: x
|
|
1210
|
+
lang: d.value
|
|
1231
1211
|
});
|
|
1232
1212
|
}
|
|
1233
|
-
let
|
|
1234
|
-
function
|
|
1213
|
+
let S = (e) => e ? H(o.chrome, e) : null;
|
|
1214
|
+
function C(e) {
|
|
1235
1215
|
return new URL(u.resolve({
|
|
1236
1216
|
...e,
|
|
1237
1217
|
query: {
|
|
@@ -1254,9 +1234,9 @@ function $() {
|
|
|
1254
1234
|
offered: v,
|
|
1255
1235
|
languageName: y,
|
|
1256
1236
|
settings: s,
|
|
1257
|
-
caption:
|
|
1258
|
-
picture:
|
|
1259
|
-
href:
|
|
1237
|
+
caption: x,
|
|
1238
|
+
picture: S,
|
|
1239
|
+
href: C,
|
|
1260
1240
|
imagesOf: (e) => [...m.value?.images ?? []].filter((t) => t.type === e).sort((e, t) => e.display_order - t.display_order),
|
|
1261
1241
|
slots: Zn,
|
|
1262
1242
|
pageAt: (e, t) => Xn(_.value, e, t),
|
|
@@ -1382,21 +1362,21 @@ var tr = {
|
|
|
1382
1362
|
}, jr = ["href"], Mr = ["src"], Nr = ["src"], Pr = {
|
|
1383
1363
|
__name: "Home",
|
|
1384
1364
|
setup(t) {
|
|
1385
|
-
let { data: r, imagesOf: l, label: f, picture: h, root: y, settings: b, subthemesOf: C, text: w, themes: T, title: E } = $(), D =
|
|
1365
|
+
let { data: r, imagesOf: l, label: f, picture: h, root: y, settings: b, subthemesOf: C, text: w, themes: T, title: E } = $(), D = n(() => y.value ? w(y.value.id).subtitle ?? "" : ""), O = n(() => $n({
|
|
1386
1366
|
own: b.logos,
|
|
1387
1367
|
images: l("logo"),
|
|
1388
1368
|
picture: h
|
|
1389
|
-
})),
|
|
1369
|
+
})), k = p(-1);
|
|
1390
1370
|
return (t, n) => {
|
|
1391
1371
|
let l = g("router-link");
|
|
1392
1372
|
return v(y) ? (d(), a("div", hr, [
|
|
1393
1373
|
o("div", {
|
|
1394
1374
|
class: "mwnf-sh-home__picture",
|
|
1395
1375
|
style: u({ backgroundImage: `url(${v(h)("legacy/home_bg.jpg") ?? ""})` })
|
|
1396
|
-
}, [o("div", gr, [o("div", _r, _(v(E)), 1),
|
|
1376
|
+
}, [o("div", gr, [o("div", _r, _(v(E)), 1), D.value ? (d(), a("div", {
|
|
1397
1377
|
key: 0,
|
|
1398
1378
|
class: "mwnf-sh-home__quote",
|
|
1399
|
-
innerHTML: v(r).mdInline(
|
|
1379
|
+
innerHTML: v(r).mdInline(D.value)
|
|
1400
1380
|
}, null, 8, vr)) : i("", !0)])], 4),
|
|
1401
1381
|
o("div", yr, [o("div", br, [c(l, { to: { name: "introduction" } }, {
|
|
1402
1382
|
default: x(() => [o("b", null, _(v(f)("home.introduction")), 1), o("img", {
|
|
@@ -1409,14 +1389,14 @@ var tr = {
|
|
|
1409
1389
|
}), (d(!0), a(e, null, m(v(T), (t, n) => (d(), a("div", { key: t.id }, [o("button", {
|
|
1410
1390
|
type: "button",
|
|
1411
1391
|
class: "mwnf-sh-home__theme",
|
|
1412
|
-
"aria-expanded":
|
|
1413
|
-
onClick: (e) =>
|
|
1392
|
+
"aria-expanded": k.value === n,
|
|
1393
|
+
onClick: (e) => k.value = k.value === n ? -1 : n
|
|
1414
1394
|
}, [o("span", { innerHTML: v(r).mdInline(v(w)(t.id).title ?? "") }, null, 8, Cr), o("img", {
|
|
1415
1395
|
src: v(h)("legacy/arrow_black_down.gif"),
|
|
1416
1396
|
alt: "",
|
|
1417
1397
|
width: "15",
|
|
1418
1398
|
height: "9"
|
|
1419
|
-
}, null, 8, wr)], 8, Sr),
|
|
1399
|
+
}, null, 8, wr)], 8, Sr), k.value === n ? (d(), a("ul", Tr, [o("li", null, [o("img", {
|
|
1420
1400
|
src: v(h)("legacy/arrow_inner_black.gif"),
|
|
1421
1401
|
alt: "",
|
|
1422
1402
|
class: "mwnf-sh-arrow",
|
|
@@ -1444,9 +1424,9 @@ var tr = {
|
|
|
1444
1424
|
},
|
|
1445
1425
|
innerHTML: v(r).mdInline(v(w)(e.id).title ?? "")
|
|
1446
1426
|
}, null, 8, ["to", "innerHTML"])]))), 128))])) : i("", !0)]))), 128))]), c(lr, { "all-exhibitions": "" })]),
|
|
1447
|
-
o("div", Or, [c(mr, { class: "mwnf-sh-band__links" }), o("div", kr, [(d(!0), a(e, null, m(
|
|
1427
|
+
o("div", Or, [c(mr, { class: "mwnf-sh-band__links" }), o("div", kr, [(d(!0), a(e, null, m(O.value, (t, n) => (d(), a(e, { key: t.url }, [n > 0 ? (d(), a("span", Ar)) : i("", !0), t.link ? S((d(), a("a", {
|
|
1448
1428
|
key: 1,
|
|
1449
|
-
href:
|
|
1429
|
+
href: t.link
|
|
1450
1430
|
}, [o("img", {
|
|
1451
1431
|
src: t.url,
|
|
1452
1432
|
alt: ""
|
|
@@ -1995,13 +1975,9 @@ var tr = {
|
|
|
1995
1975
|
} },
|
|
1996
1976
|
setup(e) {
|
|
1997
1977
|
let t = e, { data: r, label: i, root: s, text: c, title: l } = $(), u = {
|
|
1998
|
-
curators:
|
|
1999
|
-
coverImage:
|
|
2000
|
-
}, f = n(() =>
|
|
2001
|
-
if (!s.value) return "";
|
|
2002
|
-
let e = c(s.value.id), [n, i] = u[t.kind];
|
|
2003
|
-
return r.md(e[n] ?? e.extra?.[i] ?? "");
|
|
2004
|
-
});
|
|
1978
|
+
curators: "curated_by",
|
|
1979
|
+
coverImage: "cover_caption"
|
|
1980
|
+
}, f = n(() => s.value ? r.md(c(s.value.id)[u[t.kind]] ?? "") : "");
|
|
2005
1981
|
return (t, n) => (d(), a("div", null, [
|
|
2006
1982
|
o("h3", null, _(v(l)), 1),
|
|
2007
1983
|
o("p", null, _(v(i)(`windows.${e.kind}`)), 1),
|
|
@@ -3405,23 +3381,31 @@ function Cc({ exhibition: e = {}, ...t }) {
|
|
|
3405
3381
|
extraViews: Es(I())
|
|
3406
3382
|
};
|
|
3407
3383
|
}
|
|
3408
|
-
function wc(
|
|
3409
|
-
|
|
3384
|
+
function wc(e, t, n = []) {
|
|
3385
|
+
return !Array.isArray(e) || e.length === 0 ? n : e.map((e) => {
|
|
3386
|
+
let n = e.names ?? {};
|
|
3387
|
+
return {
|
|
3388
|
+
text: String(n.en || Object.values(n).find(Boolean) || "").trim().replace(/\.$/, ""),
|
|
3389
|
+
href: `${t}/#/historical-profiles/${[e.collection_id, e.page_id].filter(Boolean).map(encodeURIComponent).join("/")}`
|
|
3390
|
+
};
|
|
3391
|
+
}).filter((e) => e.text).sort((e, t) => e.text.localeCompare(t.text, "en"));
|
|
3392
|
+
}
|
|
3393
|
+
function Tc({ exhibition: e = {}, ...t }) {
|
|
3394
|
+
let n = N(), r = vc(t.origin, "sharinghistory"), i = wc(z().manifest.site?.parent?.profiles, r, e.profiles);
|
|
3410
3395
|
return {
|
|
3411
3396
|
...bc(t, n),
|
|
3412
3397
|
shell: Un,
|
|
3413
3398
|
navigation: Aa({
|
|
3414
3399
|
languages: k(n),
|
|
3415
3400
|
parent: r,
|
|
3416
|
-
profiles:
|
|
3401
|
+
profiles: i
|
|
3417
3402
|
}),
|
|
3418
3403
|
minisite: ja({
|
|
3419
3404
|
parent: r,
|
|
3420
|
-
logos: e.logos
|
|
3421
|
-
partnerLinks: e.partnerLinks
|
|
3405
|
+
logos: e.logos
|
|
3422
3406
|
}),
|
|
3423
3407
|
views: { home: Pr },
|
|
3424
3408
|
extraViews: Oa(I())
|
|
3425
3409
|
};
|
|
3426
3410
|
}
|
|
3427
|
-
export { Bs as ArtIntroHome, mc as ArtIntroPage, ao as BAROQUEART_LABELS, Ya as BAROQUEART_NO_COUNTRY, so as BAROQUEART_WINDOWS, ko as BaroqueartHome, qo as BaroqueartIntroduction, Ss as BaroqueartPage, Ja as BaroqueartShell, Ts as BaroqueartZoom, Ue as EXHIBITION_ENTITIES, Ie as FAMILY_CODES, xe as ISLAMICART_NO_COUNTRY, Le as LABELS, dn as MinisiteCredits, nt as MinisiteHome, Pt as MinisiteIntroduction, hn as MinisiteMap, cn as MinisitePage, ve as MinisiteShell, vn as MinisiteZoom, be as PLACEHOLDER_TITLE, Wn as SHARINGHISTORY_LABELS, tr as SHARINGHISTORY_WINDOWS, Sa as SharingHistoryFurtherReading, Pr as SharingHistoryHome, bi as SharingHistoryIntroduction, da as SharingHistoryPage, Un as SharingHistoryShell, wa as SharingHistoryWindow, Ea as SharingHistoryZoom, Sc as artintroConfig, gc as artintroNavigation, hc as artintroRoutes, _c as artintroSettings, eo as baroqueartCaption, io as baroqueartCuratorLabel, to as baroqueartDetailViewCaption, ro as baroqueartIntroCaption, Ds as baroqueartMenu, Cc as baroqueartMinisiteConfig, ks as baroqueartNavigation, Es as baroqueartRoutes, As as baroqueartSettings, Xa as baroqueartSlotsOf, no as baroqueartWithFirstView, J as cleanText, Ne as curatorLabel, Pe as curatorLink, He as exhibitionData, Re as familyOf, Me as introCaption, rt as introductionOf, bn as islamicartMenu, ze as labelSet, xc as minisiteConfig, xn as minisiteNavigation, yn as minisiteRoutes, Sn as minisiteSettings, yc as packageParent, Ce as pageWithNeighbours, vc as parentSite, Oe as placementCaption, Fe as quoteHasItalics, Se as readingOrder, Qn as sharinghistoryCaption, $n as sharinghistoryHomeLogos, Jn as sharinghistoryListedSubthemes, qn as sharinghistoryListedThemes,
|
|
3411
|
+
export { Bs as ArtIntroHome, mc as ArtIntroPage, ao as BAROQUEART_LABELS, Ya as BAROQUEART_NO_COUNTRY, so as BAROQUEART_WINDOWS, ko as BaroqueartHome, qo as BaroqueartIntroduction, Ss as BaroqueartPage, Ja as BaroqueartShell, Ts as BaroqueartZoom, Ue as EXHIBITION_ENTITIES, Ie as FAMILY_CODES, xe as ISLAMICART_NO_COUNTRY, Le as LABELS, dn as MinisiteCredits, nt as MinisiteHome, Pt as MinisiteIntroduction, hn as MinisiteMap, cn as MinisitePage, ve as MinisiteShell, vn as MinisiteZoom, be as PLACEHOLDER_TITLE, Wn as SHARINGHISTORY_LABELS, tr as SHARINGHISTORY_WINDOWS, Sa as SharingHistoryFurtherReading, Pr as SharingHistoryHome, bi as SharingHistoryIntroduction, da as SharingHistoryPage, Un as SharingHistoryShell, wa as SharingHistoryWindow, Ea as SharingHistoryZoom, Sc as artintroConfig, gc as artintroNavigation, hc as artintroRoutes, _c as artintroSettings, eo as baroqueartCaption, io as baroqueartCuratorLabel, to as baroqueartDetailViewCaption, ro as baroqueartIntroCaption, Ds as baroqueartMenu, Cc as baroqueartMinisiteConfig, ks as baroqueartNavigation, Es as baroqueartRoutes, As as baroqueartSettings, Xa as baroqueartSlotsOf, no as baroqueartWithFirstView, J as cleanText, Ne as curatorLabel, Pe as curatorLink, He as exhibitionData, Re as familyOf, Me as introCaption, rt as introductionOf, bn as islamicartMenu, ze as labelSet, xc as minisiteConfig, xn as minisiteNavigation, yn as minisiteRoutes, Sn as minisiteSettings, yc as packageParent, Ce as pageWithNeighbours, wc as parentProfiles, vc as parentSite, Oe as placementCaption, Fe as quoteHasItalics, Se as readingOrder, Qn as sharinghistoryCaption, $n as sharinghistoryHomeLogos, Jn as sharinghistoryListedSubthemes, qn as sharinghistoryListedThemes, Tc as sharinghistoryMinisiteConfig, Aa as sharinghistoryNavigation, Yn as sharinghistoryPageRoute, Xn as sharinghistoryPageWithNext, Kn as sharinghistoryReadingOrder, er as sharinghistoryRelatedLinks, Oa as sharinghistoryRoutes, ja as sharinghistorySettings, Zn as sharinghistorySlotsOf, Ae as sheetItemId, we as slotsOf, ot as subtitleOf, co as useBaroqueartExhibition, Y as useExhibition, $ as useSharingHistoryExhibition, je as viewPicture, ke as withFirstView };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.90.0",
|
|
4
4
|
"description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/minisite/testing.js
CHANGED
|
@@ -60,7 +60,6 @@ export function describeMinisiteSmoke({ config, exhibition, sharedTexts, ownText
|
|
|
60
60
|
// Legacy's address is provenance only: checked where minisite.json keeps it.
|
|
61
61
|
if (exhibition.legacy !== undefined) expect(exhibition.legacy).toMatch(marks.legacy)
|
|
62
62
|
if (family === 'ISL' || family === 'BAR') expect(exhibition.curators.length).toBeGreaterThan(0)
|
|
63
|
-
if (family === 'SH') expect(exhibition.profiles.length).toBeGreaterThan(0)
|
|
64
63
|
expect(readFileSync('theme/tokens.css', 'utf8')).toContain(marks.token)
|
|
65
64
|
expect(Object.keys(sources.files).length).toBeGreaterThan(0)
|
|
66
65
|
})
|