mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-03 23:14:15 +01:00
ref. https://github.com/gulpjs/gulp/issues/2812 https://nodejs.org/en/learn/modules/how-to-use-streams#how-to-operate-with-streams https://nodejs.org/en/learn/modules/how-to-use-streams#pipeline while the gulp issue refers to this as a workaround, this is actually the proper way to handle streams, merging streams and applying transformations webserver code still spawns the pipe(line) unconditionally, though
15 lines
363 B
JavaScript
15 lines
363 B
JavaScript
import { addEnumerables } from './settings.mjs';
|
|
|
|
export function init() {
|
|
/** @import { EnumerableNames } from './settings.mjs' */
|
|
|
|
/** @type {EnumerableNames} */
|
|
const timezones = {"UTC0": "No offset"};
|
|
|
|
for (let offset = -14; offset < 13; ++offset) {
|
|
timezones[`UTC${offset}`] = "";
|
|
}
|
|
|
|
addEnumerables("timezones", timezones);
|
|
}
|