Show the app version at the top of the page (Ver YYMMDDX)
Adds src/version.js, bump-version.js and a pre-commit hook that bumps the version in commits that change the app. Closes #15 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -669,6 +669,7 @@
|
||||
h('header', { class: 'top' },
|
||||
h('h1', {}, state.doc.meta.title || 'Final Wishes'),
|
||||
h('span', { class: 'muted' }, 'Last update: ' + state.doc.meta.lastUpdated),
|
||||
h('span', { class: 'muted', id: 'version', title: 'Version of this app' }, 'Ver ' + APP_VERSION),
|
||||
h('span', { id: 'dirty', class: 'badge tbd', hidden: !state.dirty }, 'Unsaved changes'),
|
||||
h('span', { id: 'status', class: 'muted', role: 'status' }, state.status),
|
||||
btn('Save', () => save(), state.dirty ? 'primary' : ''),
|
||||
|
||||
Reference in New Issue
Block a user