From 5394ea20eb6e05ff9d3a5c7d12bdf56299789d0e Mon Sep 17 00:00:00 2001 From: Spedon <70063177+Sped0n@users.noreply.github.com> Date: Mon, 13 Nov 2023 21:14:36 +0800 Subject: [PATCH] fix: now preloading will also work in stageNav (#150) * chore(Geist): bump geist font to v1.0.1 * refactor(_typography.scss): split the CSS lang tag to ensure compatibility with Chromium-based browsers * refactor(stage.ts): bump up preload count on desktop * feat(params.toml): add support for user defined resize option * feat(_fonts.scss): add a new font file to better support fullwidth plus and minus * refactor(info): update info * chore(build.yml): update branch name for updating bundled artifacts to include the current date * chore(package.json): update version from 0.0.1 to v0.0.2 to reflect changes made in the codebase * feat: refactor initialization process for retrieving and sorting image data - Modify `main.ts` to use async initialization of resources - Change the return type of `initResources` function to `Promise` - Add try-catch block to handle errors in `initResources` function - Use fetch API to retrieve image data from `index.json` - Sort the image data based on the index field * refactor: update file naming and variable assignments in layouts - Add new file `exampleSite/config/_default/outputs.toml` with the contents `page = ["HTML", "JSON"]` - Rename file `layouts/partials/resources/imageJSON.html` to `layouts/_default/single.json` - Modify variable assignments and references in the `single.json` layou * chore: remove code that includes imageJSON.html partials in layouts - Remove the code that includes the "resources/imageJSON.html" partial in the 404.html layout - Remove the code that includes the "resources/imageJSON.html" partial in the single.html layout * refactor: add `getElPrev()` and `getElNext()` functions to `hires` - Add `getElPrev()` and `getElNext()` to the `hires` function call --- assets/ts/desktop/stage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/ts/desktop/stage.ts b/assets/ts/desktop/stage.ts index 0f7a291..347622c 100644 --- a/assets/ts/desktop/stage.ts +++ b/assets/ts/desktop/stage.ts @@ -110,7 +110,7 @@ function setPositions(): void { if (isOpen.get()) { lores(getElTrail()) - hires([getElCurrent()]) + hires([getElCurrent(), getElPrev(), getElNext()]) _gsap.set(imgs, { opacity: 0 }) _gsap.set(getElCurrent(), { opacity: 1, x: 0, y: 0, scale: 1 }) }