Spedon 0812a5a6b8 feat: loading transition (#277)
* refactor: change hires loader function name

* feat: add loading transition animation and improve performance

* refactor: refactor mutation handling in desktop codebase

- Modify the `initStage` function in `assets/ts/desktop/stage.ts`:
  - Change the `onMutation` callback to accept a single mutation instead of an array of mutations.
  - Update the conditions inside the callback to use `hold` instead of `skip`.
- Modify the `onMutation` function in `assets/ts/desktop/utils.ts`:
  - Change the `callback` parameter to `trigger`.
  - Update the implementation of the function to iterate over each mutation and check if it triggers the `trigger` function. If it does, disconnect the observer and break the loop.

* style: refactor state section and remove unnecessary code

- Remove the declaration of `lastIndex` on line 21
- Add a comment block for the state section
- Add a declaration of `lastIndex` for the state section

* refactor: refactor mobile collection and intersection functions

- Modify the `initCollection` function in `assets/ts/mobile/collection.ts`
- Remove the nested loop in the `initCollection` function
- Modify the `onIntersection` function in `assets/ts/mobile/utils.ts`
- Replace the callback parameter with a trigger parameter in the `onIntersection` function
- Remove the nested loop in the `onIntersection` function

* refactor: refactor Watchable class constructor to include lazy parameter

- Add a second parameter `lazy` in the constructor of the `Watchable` class in `globalUtils.ts`
- Set the default value of `lazy` to `true` in the constructor
- Add a condition to check if `e` is equal to `this.obj` and `this.lazy` is `true` to return in `watch`
- Delete the previous constructor definition in the `Watchable` class in `globalUtils.ts`

* fix: set state's lazy param to false

* refactor: refactor third party lib import
2024-02-06 23:12:44 +08:00
2023-03-09 08:50:16 +08:00
2024-02-06 23:12:44 +08:00
2023-11-06 17:30:44 +08:00
2024-02-06 14:13:56 +00:00
2023-12-14 13:48:45 +08:00
2023-11-06 17:30:44 +08:00
2023-11-06 17:53:05 +08:00

Bridget

GitHub Workflow Status (with event) GitHub deployments

Bridget is a minimal Hugo theme designed for photographers / visual artists.

Its based on the https://github.com/tylermcrobert/bridget-pictures-www.

thumbnail

Demo Site

To see this theme in action, here is a live demo site which is rendered with Bridget theme.

Getting Started

Head to this documentation for a complete guidance to get started with the Bridget theme.

Features

  • Blazingly fast: 99/100 on mobile and 100/100 on desktop in Google PageSpeed Insights

  • JS dynamic loading (powered by ES6 syntax)

  • JS code splitting by rollup.js

  • Image Preloading/Lazy loading

  • Dynamic resolution based on view mode

  • Multiple analytics services supported

  • Search engine verification supported (Google, Bind, Yandex and Baidu)

Multilingual and i18n

Bridget supports the following languages:

Credits

Description
Bridget is a minimal Hugo theme for photographers/visual artists, powered by SolidJS.
Readme MIT 53 MiB
Languages
TypeScript 63.5%
HTML 18.5%
SCSS 12.5%
JavaScript 3%
Shell 1.5%
Other 1%