#244 Reverse metadata field defaults
This commit is contained in:
@@ -11,7 +11,7 @@ import type { InitParams } from '../shared/types.js'
|
||||
import { state } from './state.js'
|
||||
import { setupToolbar } from './selection.js'
|
||||
import { initLightbox, openLightbox } from './lightbox.js'
|
||||
import { computeLayoutAndRender, onScroll } from './virtualization.js'
|
||||
import { computeLayoutAndRender, onScroll } from './virtualisation.js'
|
||||
|
||||
function readInitParams (): InitParams {
|
||||
const el = document.getElementById('ipp-init')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Justified-rows + square-grid layout, with optional month grouping. Pure
|
||||
// geometry: takes a container width, returns positions for every tile and
|
||||
// every header. Called by virtualization on first render and on resize.
|
||||
// every header. Called by virtualisation on first render and on resize.
|
||||
|
||||
import {
|
||||
state,
|
||||
@@ -26,7 +26,7 @@ export interface LayoutResult {
|
||||
* for the gallery at the given container width.
|
||||
*
|
||||
* Reads `state.items` and `state.groupByDate`. Output is pure data - the
|
||||
* caller (virtualization) is responsible for actually placing DOM nodes
|
||||
* caller (virtualisation) is responsible for actually placing DOM nodes
|
||||
* according to the returned positions.
|
||||
*
|
||||
* Switches between a mobile square grid (under MOBILE_BREAKPOINT) and the
|
||||
|
||||
@@ -15,7 +15,7 @@ function onThumbError (this: HTMLImageElement) {
|
||||
}
|
||||
|
||||
// Cache of decoded thumbhash → PNG data URL. Same thumbhash on multiple
|
||||
// tile-creations (revisits during virtualization) reuses the same URL.
|
||||
// tile-creations (revisits during virtualisation) reuses the same URL.
|
||||
const thumbhashCache = new Map<string, string | null>()
|
||||
|
||||
function decodeThumbhash (base64: string): string | null {
|
||||
|
||||
Reference in New Issue
Block a user