(display: HTMLElement)
| 946 | } |
| 947 | |
| 948 | async function listVersionsInto(display: HTMLElement) { |
| 949 | const { adapter } = await createFileAdapter(); |
| 950 | const versions = await adapter.listVersions("composition.html"); |
| 951 | display.textContent = versions.length ? versions.map(versionLabel).join("\n") : "(no versions)"; |
| 952 | logEntry("info", { versions: versions.map((v) => v.key) }); |
| 953 | } |
| 954 | |
| 955 | function versionLabel(v: { key: string; timestamp?: number }): string { |
| 956 | return `${v.key} (${new Date(v.timestamp ?? 0).toLocaleTimeString()})`; |
no test coverage detected