Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 117x 117x 117x | import { DateTime } from 'luxon';
import { Plugin } from '../../model/plugin';
import { Mod } from '../../model/tag';
export const durationPlugin: Plugin = {
tag: 'plugin/duration',
name: $localize`⏱️ Duration`,
config: {
type: 'plugin',
version: 1,
default: true,
add: true,
generated: $localize`Generated by jasper-ui ${DateTime.now().toISO()}`,
description: $localize`Stores media duration in the tag itself (e.g., plugin/duration/pt15m).`,
infoUi: `{{#if (duration ref 'plugin/duration')}}<span class="info-tag" title="Duration">⏱️ {{human (duration ref 'plugin/duration')}}</span>{{/if}}`,
},
};
export const durationMod: Mod = {
plugin: [
durationPlugin,
]
};
|