feat(web): announce theme changes, refresh on bfcache restore, match theme-color by data-scheme
37 files · +136 -119
M internal/adapters/web/jstest/a11y.test.mjs +1 -1
| @@ -44,7 +44,7 @@ El.prototype.focus = function (opts) { | |||
| 44 | 44 | const doc = installDom({ parseHTML: (text) => parsed[text] }); | |
| 45 | 45 | const parsed = {}; | |
| 46 | 46 | Object.defineProperty(doc, 'activeElement', { get: () => active ?? dom.body }); | |
| 47 | - | doc.documentElement = { classList: { add() {} } }; | |
| 47 | + | doc.documentElement = { classList: { add() {} }, setAttribute() {}, removeAttribute() {} }; | |
| 48 | 48 | const query = { all: doc.querySelectorAll, one: doc.querySelector }; | |
| 49 | 49 | doc.querySelectorAll = () => []; // the page-wide queries of the top of ermite.js | |
| 50 | 50 | doc.querySelector = () => null; | |
| @@ -44,7 +44,7 @@ El.prototype.focus = function (opts) { | |||||
| 44 | const doc = installDom({ parseHTML: (text) => parsed[text] }); | 44 | const doc = installDom({ parseHTML: (text) => parsed[text] }); | ||
| 45 | const parsed = {}; | 45 | const parsed = {}; | ||
| 46 | Object.defineProperty(doc, 'activeElement', { get: () => active ?? dom.body }); | 46 | Object.defineProperty(doc, 'activeElement', { get: () => active ?? dom.body }); | ||
| 47 | - | doc.documentElement = { classList: { add() {} } }; | 47 | + | doc.documentElement = { classList: { add() {} }, setAttribute() {}, removeAttribute() {} }; |
| 48 | const query = { all: doc.querySelectorAll, one: doc.querySelector }; | 48 | const query = { all: doc.querySelectorAll, one: doc.querySelector }; | ||
| 49 | doc.querySelectorAll = () => []; // the page-wide queries of the top of ermite.js | 49 | doc.querySelectorAll = () => []; // the page-wide queries of the top of ermite.js | ||
| 50 | doc.querySelector = () => null; | 50 | doc.querySelector = () => null; | ||
M internal/adapters/web/jstest/theme.test.mjs +22 -10
| @@ -41,8 +41,8 @@ function load({ stored, withSwitch = true } = {}) { | |||
| 41 | 41 | doc.documentElement = root; | |
| 42 | 42 | scheme = el('meta', { attrs: { name: 'color-scheme', content: 'light dark' } }); | |
| 43 | 43 | colors = [ | |
| 44 | - | el('meta', { attrs: { name: 'theme-color', media: '(prefers-color-scheme: light)', content: '#ffffff' } }), | |
| 45 | - | el('meta', { attrs: { name: 'theme-color', media: '(prefers-color-scheme: dark)', content: '#0c0c0c' } }), | |
| 44 | + | el('meta', { attrs: { name: 'theme-color', 'data-scheme': 'light', media: '(prefers-color-scheme: light)', content: '#ffffff' } }), | |
| 45 | + | el('meta', { attrs: { name: 'theme-color', 'data-scheme': 'dark', media: '(prefers-color-scheme: dark)', content: '#0c0c0c' } }), | |
| 46 | 46 | ]; | |
| 47 | 47 | icon = el('span', { cls: 'ico i-sun-moon', attrs: { 'aria-hidden': 'true' } }); | |
| 48 | 48 | button = el('button', { cls: 'foot-theme', attrs: { type: 'button', 'data-js': '', 'data-theme-switch': '' } }, icon); | |
| @@ -58,6 +58,7 @@ const state = () => ({ | |||
| 58 | 58 | colors: colors.map((m) => m.getAttribute('content')), | |
| 59 | 59 | }); | |
| 60 | 60 | const click = (target) => listeners.click.forEach((f) => f({ target })); | |
| 61 | + | const pageshow = (persisted) => listeners.pageshow.forEach((f) => f({ persisted })); | |
| 61 | 62 | const storageEvent = (newValue) => listeners.storage.forEach((f) => f({ key: 'theme', newValue, storageArea: localStorage })); | |
| 62 | 63 | ||
| 63 | 64 | beforeEach(() => { delete globalThis.localStorage; }); | |
| @@ -81,20 +82,21 @@ test('a stored value that is not a theme falls back to auto', () => { | |||
| 81 | 82 | assert.equal(root.getAttribute('data-theme'), null); | |
| 82 | 83 | }); | |
| 83 | 84 | ||
| 84 | - | test('next cycles auto, light, dark', () => { | |
| 85 | - | const T = load({ withSwitch: false }); | |
| 86 | - | assert.deepEqual(T.values.map(T.next), ['light', 'dark', 'auto']); | |
| 85 | + | test('the switch shows the stored theme on load', () => { | |
| 86 | + | load({ stored: { theme: 'dark' } }); | |
| 87 | + | assert.equal(icon.className, 'ico i-moon'); | |
| 88 | + | assert.equal(button.getAttribute('aria-label'), 'theme: dark (switch to auto)'); | |
| 87 | 89 | }); | |
| 88 | 90 | ||
| 89 | 91 | test('a click on the button (or its icon) cycles, stores and shows the theme', () => { | |
| 90 | 92 | load(); | |
| 91 | - | assert.equal(button.getAttribute('aria-label'), 'theme: auto (click for light)'); | |
| 93 | + | assert.equal(button.getAttribute('aria-label'), 'theme: auto (switch to light)'); | |
| 92 | 94 | click(icon); | |
| 93 | 95 | assert.equal(storage.get('theme'), 'light'); | |
| 94 | 96 | assert.deepEqual(state(), { attr: 'light', scheme: 'light', colors: ['#ffffff', '#ffffff'] }); | |
| 95 | 97 | assert.equal(icon.className, 'ico i-sun'); | |
| 96 | - | assert.equal(button.getAttribute('aria-label'), 'theme: light (click for dark)'); | |
| 97 | - | assert.equal(button.getAttribute('title'), 'theme: light (click for dark)'); | |
| 98 | + | assert.equal(button.getAttribute('aria-label'), 'theme: light (switch to dark)'); | |
| 99 | + | assert.equal(button.getAttribute('title'), 'theme: light (switch to dark)'); | |
| 98 | 100 | click(button); | |
| 99 | 101 | assert.equal(storage.get('theme'), 'dark'); | |
| 100 | 102 | assert.deepEqual(state(), { attr: 'dark', scheme: 'dark', colors: ['#0c0c0c', '#0c0c0c'] }); | |
| @@ -103,7 +105,17 @@ test('a click on the button (or its icon) cycles, stores and shows the theme', ( | |||
| 103 | 105 | assert.equal(storage.get('theme'), 'auto'); | |
| 104 | 106 | assert.deepEqual(state(), { attr: null, scheme: 'light dark', colors: ['#ffffff', '#0c0c0c'] }); | |
| 105 | 107 | assert.equal(icon.className, 'ico i-sun-moon'); | |
| 106 | - | assert.equal(button.getAttribute('aria-label'), 'theme: auto (click for light)'); | |
| 108 | + | assert.equal(button.getAttribute('aria-label'), 'theme: auto (switch to light)'); | |
| 109 | + | }); | |
| 110 | + | ||
| 111 | + | test('a page back from the back/forward cache shows the stored theme', () => { | |
| 112 | + | load(); | |
| 113 | + | storage.set('theme', 'light'); | |
| 114 | + | pageshow(false); | |
| 115 | + | assert.equal(root.getAttribute('data-theme'), null, 'a fresh load: store.js already applied it'); | |
| 116 | + | pageshow(true); | |
| 117 | + | assert.deepEqual(state(), { attr: 'light', scheme: 'light', colors: ['#ffffff', '#ffffff'] }); | |
| 118 | + | assert.equal(icon.className, 'ico i-sun'); | |
| 107 | 119 | }); | |
| 108 | 120 | ||
| 109 | 121 | test('other clicks do nothing', () => { | |
| @@ -123,7 +135,7 @@ test("another tab's change applies live", () => { | |||
| 123 | 135 | storage.delete('theme'); | |
| 124 | 136 | storageEvent(null); | |
| 125 | 137 | assert.equal(root.getAttribute('data-theme'), null, 'removed: back to auto'); | |
| 126 | - | assert.equal(button.getAttribute('aria-label'), 'theme: auto (click for light)'); | |
| 138 | + | assert.equal(button.getAttribute('aria-label'), 'theme: auto (switch to light)'); | |
| 127 | 139 | }); | |
| 128 | 140 | ||
| 129 | 141 | test('without usable storage the choice holds for the page', () => { | |
| @@ -41,8 +41,8 @@ function load({ stored, withSwitch = true } = {}) { | |||||
| 41 | doc.documentElement = root; | 41 | doc.documentElement = root; | ||
| 42 | scheme = el('meta', { attrs: { name: 'color-scheme', content: 'light dark' } }); | 42 | scheme = el('meta', { attrs: { name: 'color-scheme', content: 'light dark' } }); | ||
| 43 | colors = [ | 43 | colors = [ | ||
| 44 | - | el('meta', { attrs: { name: 'theme-color', media: '(prefers-color-scheme: light)', content: '#ffffff' } }), | 44 | + | el('meta', { attrs: { name: 'theme-color', 'data-scheme': 'light', media: '(prefers-color-scheme: light)', content: '#ffffff' } }), |
| 45 | - | el('meta', { attrs: { name: 'theme-color', media: '(prefers-color-scheme: dark)', content: '#0c0c0c' } }), | 45 | + | el('meta', { attrs: { name: 'theme-color', 'data-scheme': 'dark', media: '(prefers-color-scheme: dark)', content: '#0c0c0c' } }), |
| 46 | ]; | 46 | ]; | ||
| 47 | icon = el('span', { cls: 'ico i-sun-moon', attrs: { 'aria-hidden': 'true' } }); | 47 | icon = el('span', { cls: 'ico i-sun-moon', attrs: { 'aria-hidden': 'true' } }); | ||
| 48 | button = el('button', { cls: 'foot-theme', attrs: { type: 'button', 'data-js': '', 'data-theme-switch': '' } }, icon); | 48 | button = el('button', { cls: 'foot-theme', attrs: { type: 'button', 'data-js': '', 'data-theme-switch': '' } }, icon); | ||
| @@ -58,6 +58,7 @@ const state = () => ({ | |||||
| 58 | colors: colors.map((m) => m.getAttribute('content')), | 58 | colors: colors.map((m) => m.getAttribute('content')), | ||
| 59 | }); | 59 | }); | ||
| 60 | const click = (target) => listeners.click.forEach((f) => f({ target })); | 60 | const click = (target) => listeners.click.forEach((f) => f({ target })); | ||
| 61 | + | const pageshow = (persisted) => listeners.pageshow.forEach((f) => f({ persisted })); | |||
| 61 | const storageEvent = (newValue) => listeners.storage.forEach((f) => f({ key: 'theme', newValue, storageArea: localStorage })); | 62 | const storageEvent = (newValue) => listeners.storage.forEach((f) => f({ key: 'theme', newValue, storageArea: localStorage })); | ||
| 62 | 63 | ||||
| 63 | beforeEach(() => { delete globalThis.localStorage; }); | 64 | beforeEach(() => { delete globalThis.localStorage; }); | ||
| @@ -81,20 +82,21 @@ test('a stored value that is not a theme falls back to auto', () => { | |||||
| 81 | assert.equal(root.getAttribute('data-theme'), null); | 82 | assert.equal(root.getAttribute('data-theme'), null); | ||
| 82 | }); | 83 | }); | ||
| 83 | 84 | ||||
| 84 | - | test('next cycles auto, light, dark', () => { | 85 | + | test('the switch shows the stored theme on load', () => { |
| 85 | - | const T = load({ withSwitch: false }); | 86 | + | load({ stored: { theme: 'dark' } }); |
| 86 | - | assert.deepEqual(T.values.map(T.next), ['light', 'dark', 'auto']); | 87 | + | assert.equal(icon.className, 'ico i-moon'); |
| 88 | + | assert.equal(button.getAttribute('aria-label'), 'theme: dark (switch to auto)'); | |||
| 87 | }); | 89 | }); | ||
| 88 | 90 | ||||
| 89 | test('a click on the button (or its icon) cycles, stores and shows the theme', () => { | 91 | test('a click on the button (or its icon) cycles, stores and shows the theme', () => { | ||
| 90 | load(); | 92 | load(); | ||
| 91 | - | assert.equal(button.getAttribute('aria-label'), 'theme: auto (click for light)'); | 93 | + | assert.equal(button.getAttribute('aria-label'), 'theme: auto (switch to light)'); |
| 92 | click(icon); | 94 | click(icon); | ||
| 93 | assert.equal(storage.get('theme'), 'light'); | 95 | assert.equal(storage.get('theme'), 'light'); | ||
| 94 | assert.deepEqual(state(), { attr: 'light', scheme: 'light', colors: ['#ffffff', '#ffffff'] }); | 96 | assert.deepEqual(state(), { attr: 'light', scheme: 'light', colors: ['#ffffff', '#ffffff'] }); | ||
| 95 | assert.equal(icon.className, 'ico i-sun'); | 97 | assert.equal(icon.className, 'ico i-sun'); | ||
| 96 | - | assert.equal(button.getAttribute('aria-label'), 'theme: light (click for dark)'); | 98 | + | assert.equal(button.getAttribute('aria-label'), 'theme: light (switch to dark)'); |
| 97 | - | assert.equal(button.getAttribute('title'), 'theme: light (click for dark)'); | 99 | + | assert.equal(button.getAttribute('title'), 'theme: light (switch to dark)'); |
| 98 | click(button); | 100 | click(button); | ||
| 99 | assert.equal(storage.get('theme'), 'dark'); | 101 | assert.equal(storage.get('theme'), 'dark'); | ||
| 100 | assert.deepEqual(state(), { attr: 'dark', scheme: 'dark', colors: ['#0c0c0c', '#0c0c0c'] }); | 102 | assert.deepEqual(state(), { attr: 'dark', scheme: 'dark', colors: ['#0c0c0c', '#0c0c0c'] }); | ||
| @@ -103,7 +105,17 @@ test('a click on the button (or its icon) cycles, stores and shows the theme', ( | |||||
| 103 | assert.equal(storage.get('theme'), 'auto'); | 105 | assert.equal(storage.get('theme'), 'auto'); | ||
| 104 | assert.deepEqual(state(), { attr: null, scheme: 'light dark', colors: ['#ffffff', '#0c0c0c'] }); | 106 | assert.deepEqual(state(), { attr: null, scheme: 'light dark', colors: ['#ffffff', '#0c0c0c'] }); | ||
| 105 | assert.equal(icon.className, 'ico i-sun-moon'); | 107 | assert.equal(icon.className, 'ico i-sun-moon'); | ||
| 106 | - | assert.equal(button.getAttribute('aria-label'), 'theme: auto (click for light)'); | 108 | + | assert.equal(button.getAttribute('aria-label'), 'theme: auto (switch to light)'); |
| 109 | + | }); | |||
| 110 | + | ||||
| 111 | + | test('a page back from the back/forward cache shows the stored theme', () => { | |||
| 112 | + | load(); | |||
| 113 | + | storage.set('theme', 'light'); | |||
| 114 | + | pageshow(false); | |||
| 115 | + | assert.equal(root.getAttribute('data-theme'), null, 'a fresh load: store.js already applied it'); | |||
| 116 | + | pageshow(true); | |||
| 117 | + | assert.deepEqual(state(), { attr: 'light', scheme: 'light', colors: ['#ffffff', '#ffffff'] }); | |||
| 118 | + | assert.equal(icon.className, 'ico i-sun'); | |||
| 107 | }); | 119 | }); | ||
| 108 | 120 | ||||
| 109 | test('other clicks do nothing', () => { | 121 | test('other clicks do nothing', () => { | ||
| @@ -123,7 +135,7 @@ test("another tab's change applies live", () => { | |||||
| 123 | storage.delete('theme'); | 135 | storage.delete('theme'); | ||
| 124 | storageEvent(null); | 136 | storageEvent(null); | ||
| 125 | assert.equal(root.getAttribute('data-theme'), null, 'removed: back to auto'); | 137 | assert.equal(root.getAttribute('data-theme'), null, 'removed: back to auto'); | ||
| 126 | - | assert.equal(button.getAttribute('aria-label'), 'theme: auto (click for light)'); | 138 | + | assert.equal(button.getAttribute('aria-label'), 'theme: auto (switch to light)'); |
| 127 | }); | 139 | }); | ||
| 128 | 140 | ||||
| 129 | test('without usable storage the choice holds for the page', () => { | 141 | test('without usable storage the choice holds for the page', () => { | ||
M internal/adapters/web/shell.templ +3 -3
| @@ -13,8 +13,8 @@ templ Shell(l Layout, rail templ.Component) { | |||
| 13 | 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> | |
| 14 | 14 | <meta name="color-scheme" content="light dark"/> | |
| 15 | 15 | <title>{ l.Title }</title> | |
| 16 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"/> | |
| 17 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"/> | |
| 16 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"/> | |
| 17 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"/> | |
| 18 | 18 | <meta name="apple-mobile-web-app-title" content="ermite"/> | |
| 19 | 19 | <link rel="icon" type="image/svg+xml" href={ templ.SafeURL(l.Assets.Icon) }/> | |
| 20 | 20 | <link rel="apple-touch-icon" href={ templ.SafeURL(l.Assets.AppleIcon) }/> | |
| @@ -200,7 +200,7 @@ templ Footer(l Layout) { | |||
| 200 | 200 | <span>ermite { l.Version }</span> | |
| 201 | 201 | <a href={ templ.SafeURL(l.SourceURL) } rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 202 | 202 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"><kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 203 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"><span class="ico i-sun-moon" aria-hidden="true"></span></button> | |
| 203 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"><span class="ico i-sun-moon" aria-hidden="true"></span></button> | |
| 204 | 204 | </footer> | |
| 205 | 205 | } | |
| 206 | 206 | ||
| @@ -13,8 +13,8 @@ templ Shell(l Layout, rail templ.Component) { | |||||
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> | 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
| 14 | <meta name="color-scheme" content="light dark"/> | 14 | <meta name="color-scheme" content="light dark"/> | ||
| 15 | <title>{ l.Title }</title> | 15 | <title>{ l.Title }</title> | ||
| 16 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"/> | 16 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"/> |
| 17 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"/> | 17 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"/> |
| 18 | <meta name="apple-mobile-web-app-title" content="ermite"/> | 18 | <meta name="apple-mobile-web-app-title" content="ermite"/> | ||
| 19 | <link rel="icon" type="image/svg+xml" href={ templ.SafeURL(l.Assets.Icon) }/> | 19 | <link rel="icon" type="image/svg+xml" href={ templ.SafeURL(l.Assets.Icon) }/> | ||
| 20 | <link rel="apple-touch-icon" href={ templ.SafeURL(l.Assets.AppleIcon) }/> | 20 | <link rel="apple-touch-icon" href={ templ.SafeURL(l.Assets.AppleIcon) }/> | ||
| @@ -200,7 +200,7 @@ templ Footer(l Layout) { | |||||
| 200 | <span>ermite { l.Version }</span> | 200 | <span>ermite { l.Version }</span> | ||
| 201 | <a href={ templ.SafeURL(l.SourceURL) } rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 201 | <a href={ templ.SafeURL(l.SourceURL) } rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 202 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"><kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 202 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"><kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 203 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"><span class="ico i-sun-moon" aria-hidden="true"></span></button> | 203 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"><span class="ico i-sun-moon" aria-hidden="true"></span></button> |
| 204 | </footer> | 204 | </footer> | ||
| 205 | } | 205 | } | ||
| 206 | 206 | ||||
M internal/adapters/web/shell_templ.go +2 -2 generated file: collapsed
M internal/adapters/web/static/js/ermite.js +8 -3
| @@ -604,14 +604,16 @@ | |||
| 604 | 604 | // The theme switch: the footer button [data-theme-switch] cycles the theme | |
| 605 | 605 | // of ermiteTheme (store.js, which applies it before the first paint): | |
| 606 | 606 | // auto → light → dark → auto. Its icon, label and title say the current | |
| 607 | - | // mode and what a click does. Another tab's change applies here at once. | |
| 607 | + | // mode and the next one; a click flashes the new mode in the hint (a live | |
| 608 | + | // region). Another tab's change applies here at once, and on a page back | |
| 609 | + | // from the back/forward cache. | |
| 608 | 610 | // Self-contained with store.js: jstest/theme.test.mjs evaluates this block. | |
| 609 | 611 | window.ermiteThemeSwitch = (() => { | |
| 610 | 612 | const T = window.ermiteTheme; | |
| 611 | 613 | const icons = { auto: 'i-sun-moon', light: 'i-sun', dark: 'i-moon' }; | |
| 612 | 614 | function apply() { | |
| 613 | 615 | const mode = T.apply(); | |
| 614 | - | const label = `theme: ${mode} (click for ${T.next(mode)})`; | |
| 616 | + | const label = `theme: ${mode} (switch to ${T.next(mode)})`; | |
| 615 | 617 | for (const b of document.querySelectorAll('[data-theme-switch]')) { | |
| 616 | 618 | b.setAttribute('aria-label', label); | |
| 617 | 619 | b.setAttribute('title', label); | |
| @@ -620,12 +622,15 @@ | |||
| 620 | 622 | } | |
| 621 | 623 | } | |
| 622 | 624 | function cycle() { | |
| 623 | - | T.set(T.next(T.get())); | |
| 625 | + | const mode = T.next(T.get()); | |
| 626 | + | T.set(mode); | |
| 624 | 627 | apply(); | |
| 628 | + | window.ermite?.flash('theme: ' + mode); | |
| 625 | 629 | } | |
| 626 | 630 | addEventListener('click', (e) => { | |
| 627 | 631 | if (e.target.closest?.('[data-theme-switch]')) cycle(); | |
| 628 | 632 | }); | |
| 633 | + | addEventListener('pageshow', (e) => { if (e.persisted) apply(); }); | |
| 629 | 634 | T.watch(apply); | |
| 630 | 635 | apply(); | |
| 631 | 636 | return { cycle, apply }; | |
| @@ -604,14 +604,16 @@ | |||||
| 604 | // The theme switch: the footer button [data-theme-switch] cycles the theme | 604 | // The theme switch: the footer button [data-theme-switch] cycles the theme | ||
| 605 | // of ermiteTheme (store.js, which applies it before the first paint): | 605 | // of ermiteTheme (store.js, which applies it before the first paint): | ||
| 606 | // auto → light → dark → auto. Its icon, label and title say the current | 606 | // auto → light → dark → auto. Its icon, label and title say the current | ||
| 607 | - | // mode and what a click does. Another tab's change applies here at once. | 607 | + | // mode and the next one; a click flashes the new mode in the hint (a live |
| 608 | + | // region). Another tab's change applies here at once, and on a page back | |||
| 609 | + | // from the back/forward cache. | |||
| 608 | // Self-contained with store.js: jstest/theme.test.mjs evaluates this block. | 610 | // Self-contained with store.js: jstest/theme.test.mjs evaluates this block. | ||
| 609 | window.ermiteThemeSwitch = (() => { | 611 | window.ermiteThemeSwitch = (() => { | ||
| 610 | const T = window.ermiteTheme; | 612 | const T = window.ermiteTheme; | ||
| 611 | const icons = { auto: 'i-sun-moon', light: 'i-sun', dark: 'i-moon' }; | 613 | const icons = { auto: 'i-sun-moon', light: 'i-sun', dark: 'i-moon' }; | ||
| 612 | function apply() { | 614 | function apply() { | ||
| 613 | const mode = T.apply(); | 615 | const mode = T.apply(); | ||
| 614 | - | const label = `theme: ${mode} (click for ${T.next(mode)})`; | 616 | + | const label = `theme: ${mode} (switch to ${T.next(mode)})`; |
| 615 | for (const b of document.querySelectorAll('[data-theme-switch]')) { | 617 | for (const b of document.querySelectorAll('[data-theme-switch]')) { | ||
| 616 | b.setAttribute('aria-label', label); | 618 | b.setAttribute('aria-label', label); | ||
| 617 | b.setAttribute('title', label); | 619 | b.setAttribute('title', label); | ||
| @@ -620,12 +622,15 @@ | |||||
| 620 | } | 622 | } | ||
| 621 | } | 623 | } | ||
| 622 | function cycle() { | 624 | function cycle() { | ||
| 623 | - | T.set(T.next(T.get())); | 625 | + | const mode = T.next(T.get()); |
| 626 | + | T.set(mode); | |||
| 624 | apply(); | 627 | apply(); | ||
| 628 | + | window.ermite?.flash('theme: ' + mode); | |||
| 625 | } | 629 | } | ||
| 626 | addEventListener('click', (e) => { | 630 | addEventListener('click', (e) => { | ||
| 627 | if (e.target.closest?.('[data-theme-switch]')) cycle(); | 631 | if (e.target.closest?.('[data-theme-switch]')) cycle(); | ||
| 628 | }); | 632 | }); | ||
| 633 | + | addEventListener('pageshow', (e) => { if (e.persisted) apply(); }); | |||
| 629 | T.watch(apply); | 634 | T.watch(apply); | ||
| 630 | apply(); | 635 | apply(); | ||
| 631 | return { cycle, apply }; | 636 | return { cycle, apply }; | ||
M internal/adapters/web/static/js/store.js +7 -7
| @@ -107,16 +107,16 @@ window.ermiteTheme = (() => { | |||
| 107 | 107 | const doc = globalThis.document; | |
| 108 | 108 | const root = doc?.documentElement; | |
| 109 | 109 | if (!root) return mode; | |
| 110 | - | if (mode === 'auto') root.removeAttribute?.('data-theme'); | |
| 111 | - | else root.setAttribute?.('data-theme', mode); | |
| 112 | - | doc.querySelector?.('meta[name="color-scheme"]') | |
| 110 | + | if (mode === 'auto') root.removeAttribute('data-theme'); | |
| 111 | + | else root.setAttribute('data-theme', mode); | |
| 112 | + | doc.querySelector('meta[name="color-scheme"]') | |
| 113 | 113 | ?.setAttribute('content', mode === 'auto' ? 'light dark' : mode); | |
| 114 | 114 | // Each theme-color meta keeps its rendered colour in data-auto. Forced, | |
| 115 | - | // both metas take the colour of the meta of that scheme, whatever the | |
| 116 | - | // system scheme their media matches. | |
| 117 | - | const metas = [...(doc.querySelectorAll?.('meta[name="theme-color"]') ?? [])]; | |
| 115 | + | // both metas take the colour of the meta of that scheme (data-scheme), | |
| 116 | + | // whatever the system scheme their media matches. | |
| 117 | + | const metas = [...doc.querySelectorAll('meta[name="theme-color"]')]; | |
| 118 | 118 | for (const m of metas) if (!m.hasAttribute('data-auto')) m.setAttribute('data-auto', m.getAttribute('content') ?? ''); | |
| 119 | - | const forced = metas.find((m) => (m.getAttribute('media') ?? '').includes('prefers-color-scheme: ' + mode)); | |
| 119 | + | const forced = metas.find((m) => m.getAttribute('data-scheme') === mode); | |
| 120 | 120 | for (const m of metas) { | |
| 121 | 121 | m.setAttribute('content', mode === 'auto' || !forced ? m.getAttribute('data-auto') : forced.getAttribute('data-auto')); | |
| 122 | 122 | } | |
| @@ -107,16 +107,16 @@ window.ermiteTheme = (() => { | |||||
| 107 | const doc = globalThis.document; | 107 | const doc = globalThis.document; | ||
| 108 | const root = doc?.documentElement; | 108 | const root = doc?.documentElement; | ||
| 109 | if (!root) return mode; | 109 | if (!root) return mode; | ||
| 110 | - | if (mode === 'auto') root.removeAttribute?.('data-theme'); | 110 | + | if (mode === 'auto') root.removeAttribute('data-theme'); |
| 111 | - | else root.setAttribute?.('data-theme', mode); | 111 | + | else root.setAttribute('data-theme', mode); |
| 112 | - | doc.querySelector?.('meta[name="color-scheme"]') | 112 | + | doc.querySelector('meta[name="color-scheme"]') |
| 113 | ?.setAttribute('content', mode === 'auto' ? 'light dark' : mode); | 113 | ?.setAttribute('content', mode === 'auto' ? 'light dark' : mode); | ||
| 114 | // Each theme-color meta keeps its rendered colour in data-auto. Forced, | 114 | // Each theme-color meta keeps its rendered colour in data-auto. Forced, | ||
| 115 | - | // both metas take the colour of the meta of that scheme, whatever the | 115 | + | // both metas take the colour of the meta of that scheme (data-scheme), |
| 116 | - | // system scheme their media matches. | 116 | + | // whatever the system scheme their media matches. |
| 117 | - | const metas = [...(doc.querySelectorAll?.('meta[name="theme-color"]') ?? [])]; | 117 | + | const metas = [...doc.querySelectorAll('meta[name="theme-color"]')]; |
| 118 | for (const m of metas) if (!m.hasAttribute('data-auto')) m.setAttribute('data-auto', m.getAttribute('content') ?? ''); | 118 | for (const m of metas) if (!m.hasAttribute('data-auto')) m.setAttribute('data-auto', m.getAttribute('content') ?? ''); | ||
| 119 | - | const forced = metas.find((m) => (m.getAttribute('media') ?? '').includes('prefers-color-scheme: ' + mode)); | 119 | + | const forced = metas.find((m) => m.getAttribute('data-scheme') === mode); |
| 120 | for (const m of metas) { | 120 | for (const m of metas) { | ||
| 121 | m.setAttribute('content', mode === 'auto' || !forced ? m.getAttribute('data-auto') : forced.getAttribute('data-auto')); | 121 | m.setAttribute('content', mode === 'auto' || !forced ? m.getAttribute('data-auto') : forced.getAttribute('data-auto')); | ||
| 122 | } | 122 | } | ||
M internal/app/testdata/web/blob-binary.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>data.bin · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -140,7 +140,7 @@ | |||
| 140 | 140 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 141 | 141 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 142 | 142 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 143 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 143 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 144 | 144 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 145 | 145 | </span> | |
| 146 | 146 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>data.bin · files · example.test</title> | 7 | <title>data.bin · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -140,7 +140,7 @@ | |||||
| 140 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 140 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 141 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 141 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 142 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 142 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 143 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 143 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 144 | <span class="ico i-sun-moon" aria-hidden="true"> | 144 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 145 | </span> | 145 | </span> | ||
| 146 | </button> | 146 | </button> | ||
M internal/app/testdata/web/blob-code.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>main.go · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -210,7 +210,7 @@ | |||
| 210 | 210 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 211 | 211 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 212 | 212 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 213 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 213 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 214 | 214 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 215 | 215 | </span> | |
| 216 | 216 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>main.go · files · example.test</title> | 7 | <title>main.go · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -210,7 +210,7 @@ | |||||
| 210 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 210 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 211 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 211 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 212 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 212 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 213 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 213 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 214 | <span class="ico i-sun-moon" aria-hidden="true"> | 214 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 215 | </span> | 215 | </span> | ||
| 216 | </button> | 216 | </button> | ||
M internal/app/testdata/web/blob-empty.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>empty.txt · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -140,7 +140,7 @@ | |||
| 140 | 140 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 141 | 141 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 142 | 142 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 143 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 143 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 144 | 144 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 145 | 145 | </span> | |
| 146 | 146 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>empty.txt · files · example.test</title> | 7 | <title>empty.txt · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -140,7 +140,7 @@ | |||||
| 140 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 140 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 141 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 141 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 142 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 142 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 143 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 143 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 144 | <span class="ico i-sun-moon" aria-hidden="true"> | 144 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 145 | </span> | 145 | </span> | ||
| 146 | </button> | 146 | </button> | ||
M internal/app/testdata/web/blob-image.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>pic.png · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -142,7 +142,7 @@ | |||
| 142 | 142 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 143 | 143 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 144 | 144 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 145 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 145 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 146 | 146 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 147 | 147 | </span> | |
| 148 | 148 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>pic.png · files · example.test</title> | 7 | <title>pic.png · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -142,7 +142,7 @@ | |||||
| 142 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 142 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 143 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 143 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 144 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 144 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 145 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 145 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 146 | <span class="ico i-sun-moon" aria-hidden="true"> | 146 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 147 | </span> | 147 | </span> | ||
| 148 | </button> | 148 | </button> | ||
M internal/app/testdata/web/blob-markdown.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>docs/guide.md · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -207,7 +207,7 @@ | |||
| 207 | 207 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 208 | 208 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 209 | 209 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 210 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 210 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 211 | 211 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 212 | 212 | </span> | |
| 213 | 213 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>docs/guide.md · files · example.test</title> | 7 | <title>docs/guide.md · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -207,7 +207,7 @@ | |||||
| 207 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 207 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 208 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 208 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 209 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 209 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 210 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 210 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 211 | <span class="ico i-sun-moon" aria-hidden="true"> | 211 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 212 | </span> | 212 | </span> | ||
| 213 | </button> | 213 | </button> | ||
M internal/app/testdata/web/blob-svg.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>logo.svg · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -165,7 +165,7 @@ | |||
| 165 | 165 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 166 | 166 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 167 | 167 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 168 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 168 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 169 | 169 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 170 | 170 | </span> | |
| 171 | 171 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>logo.svg · files · example.test</title> | 7 | <title>logo.svg · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -165,7 +165,7 @@ | |||||
| 165 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 165 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 166 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 166 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 167 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 167 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 168 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 168 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 169 | <span class="ico i-sun-moon" aria-hidden="true"> | 169 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 170 | </span> | 170 | </span> | ||
| 171 | </button> | 171 | </button> | ||
M internal/app/testdata/web/blob-text.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>notes.txt · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -160,7 +160,7 @@ | |||
| 160 | 160 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 161 | 161 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 162 | 162 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 163 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 163 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 164 | 164 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 165 | 165 | </span> | |
| 166 | 166 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>notes.txt · files · example.test</title> | 7 | <title>notes.txt · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -160,7 +160,7 @@ | |||||
| 160 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 160 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 161 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 161 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 162 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 162 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 163 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 163 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 164 | <span class="ico i-sun-moon" aria-hidden="true"> | 164 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 165 | </span> | 165 | </span> | ||
| 166 | </button> | 166 | </button> | ||
M internal/app/testdata/web/blob-too-large.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>big.txt · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -140,7 +140,7 @@ | |||
| 140 | 140 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 141 | 141 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 142 | 142 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 143 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 143 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 144 | 144 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 145 | 145 | </span> | |
| 146 | 146 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>big.txt · files · example.test</title> | 7 | <title>big.txt · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -140,7 +140,7 @@ | |||||
| 140 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 140 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 141 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 141 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 142 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 142 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 143 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 143 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 144 | <span class="ico i-sun-moon" aria-hidden="true"> | 144 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 145 | </span> | 145 | </span> | ||
| 146 | </button> | 146 | </button> | ||
M internal/app/testdata/web/blob-trojan.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>evil.go · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -207,7 +207,7 @@ | |||
| 207 | 207 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 208 | 208 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 209 | 209 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 210 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 210 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 211 | 211 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 212 | 212 | </span> | |
| 213 | 213 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>evil.go · files · example.test</title> | 7 | <title>evil.go · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -207,7 +207,7 @@ | |||||
| 207 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 207 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 208 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 208 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 209 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 209 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 210 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 210 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 211 | <span class="ico i-sun-moon" aria-hidden="true"> | 211 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 212 | </span> | 212 | </span> | ||
| 213 | </button> | 213 | </button> | ||
M internal/app/testdata/web/commit-big.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>SHA7 add a very large file · diffs · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -192,7 +192,7 @@ | |||
| 192 | 192 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 193 | 193 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 194 | 194 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 195 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 195 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 196 | 196 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 197 | 197 | </span> | |
| 198 | 198 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>SHA7 add a very large file · diffs · example.test</title> | 7 | <title>SHA7 add a very large file · diffs · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -192,7 +192,7 @@ | |||||
| 192 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 192 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 193 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 193 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 194 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 194 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 195 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 195 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 196 | <span class="ico i-sun-moon" aria-hidden="true"> | 196 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 197 | </span> | 197 | </span> | ||
| 198 | </button> | 198 | </button> | ||
M internal/app/testdata/web/commit-binary.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>SHA7 change a binary file · diffs · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -183,7 +183,7 @@ | |||
| 183 | 183 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 184 | 184 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 185 | 185 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 186 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 186 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 187 | 187 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 188 | 188 | </span> | |
| 189 | 189 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>SHA7 change a binary file · diffs · example.test</title> | 7 | <title>SHA7 change a binary file · diffs · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -183,7 +183,7 @@ | |||||
| 183 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 183 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 184 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 184 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 185 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 185 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 186 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 186 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 187 | <span class="ico i-sun-moon" aria-hidden="true"> | 187 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 188 | </span> | 188 | </span> | ||
| 189 | </button> | 189 | </button> | ||
M internal/app/testdata/web/commit-merge.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>SHA7 merge the side branch · diffs · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -225,7 +225,7 @@ | |||
| 225 | 225 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 226 | 226 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 227 | 227 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 228 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 228 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 229 | 229 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 230 | 230 | </span> | |
| 231 | 231 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>SHA7 merge the side branch · diffs · example.test</title> | 7 | <title>SHA7 merge the side branch · diffs · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -225,7 +225,7 @@ | |||||
| 225 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 225 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 226 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 226 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 227 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 227 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 228 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 228 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 229 | <span class="ico i-sun-moon" aria-hidden="true"> | 229 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 230 | </span> | 230 | </span> | ||
| 231 | </button> | 231 | </button> | ||
M internal/app/testdata/web/commit-modify-split.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>SHA7 modify a file and make a script executable · diffs · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -348,7 +348,7 @@ And <b>html</b> & "quotes".</pre> | |||
| 348 | 348 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 349 | 349 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 350 | 350 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 351 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 351 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 352 | 352 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 353 | 353 | </span> | |
| 354 | 354 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>SHA7 modify a file and make a script executable · diffs · example.test</title> | 7 | <title>SHA7 modify a file and make a script executable · diffs · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -348,7 +348,7 @@ And <b>html</b> & "quotes".</pre> | |||||
| 348 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 348 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 349 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 349 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 350 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 350 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 351 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 351 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 352 | <span class="ico i-sun-moon" aria-hidden="true"> | 352 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 353 | </span> | 353 | </span> | ||
| 354 | </button> | 354 | </button> | ||
M internal/app/testdata/web/commit-modify.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>SHA7 modify a file and make a script executable · diffs · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -348,7 +348,7 @@ And <b>html</b> & "quotes".</pre> | |||
| 348 | 348 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 349 | 349 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 350 | 350 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 351 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 351 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 352 | 352 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 353 | 353 | </span> | |
| 354 | 354 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>SHA7 modify a file and make a script executable · diffs · example.test</title> | 7 | <title>SHA7 modify a file and make a script executable · diffs · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -348,7 +348,7 @@ And <b>html</b> & "quotes".</pre> | |||||
| 348 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 348 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 349 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 349 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 350 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 350 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 351 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 351 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 352 | <span class="ico i-sun-moon" aria-hidden="true"> | 352 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 353 | </span> | 353 | </span> | ||
| 354 | </button> | 354 | </button> | ||
M internal/app/testdata/web/commit-rename.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>SHA7 rename a file and delete another · diffs · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -252,7 +252,7 @@ | |||
| 252 | 252 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 253 | 253 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 254 | 254 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 255 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 255 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 256 | 256 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 257 | 257 | </span> | |
| 258 | 258 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>SHA7 rename a file and delete another · diffs · example.test</title> | 7 | <title>SHA7 rename a file and delete another · diffs · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -252,7 +252,7 @@ | |||||
| 252 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 252 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 253 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 253 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 254 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 254 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 255 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 255 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 256 | <span class="ico i-sun-moon" aria-hidden="true"> | 256 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 257 | </span> | 257 | </span> | ||
| 258 | </button> | 258 | </button> | ||
M internal/app/testdata/web/commit-root.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>SHA7 root: the first files · diffs · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -571,7 +571,7 @@ | |||
| 571 | 571 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 572 | 572 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 573 | 573 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 574 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 574 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 575 | 575 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 576 | 576 | </span> | |
| 577 | 577 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>SHA7 root: the first files · diffs · example.test</title> | 7 | <title>SHA7 root: the first files · diffs · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -571,7 +571,7 @@ | |||||
| 571 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 571 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 572 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 572 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 573 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 573 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 574 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 574 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 575 | <span class="ico i-sun-moon" aria-hidden="true"> | 575 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 576 | </span> | 576 | </span> | ||
| 577 | </button> | 577 | </button> | ||
M internal/app/testdata/web/commit-trojan.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>SHA7 add evil.go · diffs · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -400,7 +400,7 @@ | |||
| 400 | 400 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 401 | 401 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 402 | 402 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 403 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 403 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 404 | 404 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 405 | 405 | </span> | |
| 406 | 406 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>SHA7 add evil.go · diffs · example.test</title> | 7 | <title>SHA7 add evil.go · diffs · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -400,7 +400,7 @@ | |||||
| 400 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 400 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 401 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 401 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 402 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 402 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 403 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 403 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 404 | <span class="ico i-sun-moon" aria-hidden="true"> | 404 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 405 | </span> | 405 | </span> | ||
| 406 | </button> | 406 | </button> | ||
M internal/app/testdata/web/commits-page2.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>commits · long · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -167,7 +167,7 @@ | |||
| 167 | 167 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 168 | 168 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 169 | 169 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 170 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 170 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 171 | 171 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 172 | 172 | </span> | |
| 173 | 173 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>commits · long · example.test</title> | 7 | <title>commits · long · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -167,7 +167,7 @@ | |||||
| 167 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 167 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 168 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 168 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 169 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 169 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 170 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 170 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 171 | <span class="ico i-sun-moon" aria-hidden="true"> | 171 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 172 | </span> | 172 | </span> | ||
| 173 | </button> | 173 | </button> | ||
M internal/app/testdata/web/commits-path.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>history of a.txt · long · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -182,7 +182,7 @@ | |||
| 182 | 182 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 183 | 183 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 184 | 184 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 185 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 185 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 186 | 186 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 187 | 187 | </span> | |
| 188 | 188 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>history of a.txt · long · example.test</title> | 7 | <title>history of a.txt · long · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -182,7 +182,7 @@ | |||||
| 182 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 182 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 183 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 183 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 184 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 184 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 185 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 185 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 186 | <span class="ico i-sun-moon" aria-hidden="true"> | 186 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 187 | </span> | 187 | </span> | ||
| 188 | </button> | 188 | </button> | ||
M internal/app/testdata/web/commits-root.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>commits · long · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -964,7 +964,7 @@ | |||
| 964 | 964 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 965 | 965 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 966 | 966 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 967 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 967 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 968 | 968 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 969 | 969 | </span> | |
| 970 | 970 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>commits · long · example.test</title> | 7 | <title>commits · long · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -964,7 +964,7 @@ | |||||
| 964 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 964 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 965 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 965 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 966 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 966 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 967 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 967 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 968 | <span class="ico i-sun-moon" aria-hidden="true"> | 968 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 969 | </span> | 969 | </span> | ||
| 970 | </button> | 970 | </button> | ||
M internal/app/testdata/web/commits-small.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>commits · diffs · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -309,7 +309,7 @@ | |||
| 309 | 309 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 310 | 310 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 311 | 311 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 312 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 312 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 313 | 313 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 314 | 314 | </span> | |
| 315 | 315 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>commits · diffs · example.test</title> | 7 | <title>commits · diffs · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -309,7 +309,7 @@ | |||||
| 309 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 309 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 310 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 310 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 311 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 311 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 312 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 312 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 313 | <span class="ico i-sun-moon" aria-hidden="true"> | 313 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 314 | </span> | 314 | </span> | ||
| 315 | </button> | 315 | </button> | ||
M internal/app/testdata/web/empty.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>quiet · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -85,7 +85,7 @@ | |||
| 85 | 85 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 86 | 86 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 87 | 87 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 88 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 88 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 89 | 89 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 90 | 90 | </span> | |
| 91 | 91 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>quiet · example.test</title> | 7 | <title>quiet · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -85,7 +85,7 @@ | |||||
| 85 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 85 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 86 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 86 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 87 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 87 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 88 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 88 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 89 | <span class="ico i-sun-moon" aria-hidden="true"> | 89 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 90 | </span> | 90 | </span> | ||
| 91 | </button> | 91 | </button> | ||
M internal/app/testdata/web/home.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -181,7 +181,7 @@ | |||
| 181 | 181 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 182 | 182 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 183 | 183 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 184 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 184 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 185 | 185 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 186 | 186 | </span> | |
| 187 | 187 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>example.test</title> | 7 | <title>example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -181,7 +181,7 @@ | |||||
| 181 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 181 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 182 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 182 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 183 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 183 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 184 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 184 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 185 | <span class="ico i-sun-moon" aria-hidden="true"> | 185 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 186 | </span> | 186 | </span> | ||
| 187 | </button> | 187 | </button> | ||
M internal/app/testdata/web/not-found-page.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>404 · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -74,7 +74,7 @@ | |||
| 74 | 74 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 75 | 75 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 76 | 76 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 77 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 77 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 78 | 78 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 79 | 79 | </span> | |
| 80 | 80 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>404 · example.test</title> | 7 | <title>404 · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -74,7 +74,7 @@ | |||||
| 74 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 74 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 75 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 75 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 76 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 76 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 77 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 77 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 78 | <span class="ico i-sun-moon" aria-hidden="true"> | 78 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 79 | </span> | 79 | </span> | ||
| 80 | </button> | 80 | </button> | ||
M internal/app/testdata/web/not-found.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>404 · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -74,7 +74,7 @@ | |||
| 74 | 74 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 75 | 75 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 76 | 76 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 77 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 77 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 78 | 78 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 79 | 79 | </span> | |
| 80 | 80 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>404 · example.test</title> | 7 | <title>404 · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -74,7 +74,7 @@ | |||||
| 74 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 74 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 75 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 75 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 76 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 76 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 77 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 77 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 78 | <span class="ico i-sun-moon" aria-hidden="true"> | 78 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 79 | </span> | 79 | </span> | ||
| 80 | </button> | 80 | </button> | ||
M internal/app/testdata/web/refs.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>refs · demo · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -191,7 +191,7 @@ | |||
| 191 | 191 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 192 | 192 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 193 | 193 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 194 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 194 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 195 | 195 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 196 | 196 | </span> | |
| 197 | 197 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>refs · demo · example.test</title> | 7 | <title>refs · demo · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -191,7 +191,7 @@ | |||||
| 191 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 191 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 192 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 192 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 193 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 193 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 194 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 194 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 195 | <span class="ico i-sun-moon" aria-hidden="true"> | 195 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 196 | </span> | 196 | </span> | ||
| 197 | </button> | 197 | </button> | ||
M internal/app/testdata/web/summary.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>demo · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -217,7 +217,7 @@ | |||
| 217 | 217 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 218 | 218 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 219 | 219 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 220 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 220 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 221 | 221 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 222 | 222 | </span> | |
| 223 | 223 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>demo · example.test</title> | 7 | <title>demo · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -217,7 +217,7 @@ | |||||
| 217 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 217 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 218 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 218 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 219 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 219 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 220 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 220 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 221 | <span class="ico i-sun-moon" aria-hidden="true"> | 221 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 222 | </span> | 222 | </span> | ||
| 223 | </button> | 223 | </button> | ||
M internal/app/testdata/web/tree-nested.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>src/lib · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -155,7 +155,7 @@ | |||
| 155 | 155 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 156 | 156 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 157 | 157 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 158 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 158 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 159 | 159 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 160 | 160 | </span> | |
| 161 | 161 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>src/lib · files · example.test</title> | 7 | <title>src/lib · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -155,7 +155,7 @@ | |||||
| 155 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 155 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 156 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 156 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 157 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 157 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 158 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 158 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 159 | <span class="ico i-sun-moon" aria-hidden="true"> | 159 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 160 | </span> | 160 | </span> | ||
| 161 | </button> | 161 | </button> | ||
M internal/app/testdata/web/tree-root.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>tree · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -376,7 +376,7 @@ | |||
| 376 | 376 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 377 | 377 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 378 | 378 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 379 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 379 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 380 | 380 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 381 | 381 | </span> | |
| 382 | 382 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>tree · files · example.test</title> | 7 | <title>tree · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -376,7 +376,7 @@ | |||||
| 376 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 376 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 377 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 377 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 378 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 378 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 379 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 379 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 380 | <span class="ico i-sun-moon" aria-hidden="true"> | 380 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 381 | </span> | 381 | </span> | ||
| 382 | </button> | 382 | </button> | ||
M internal/app/testdata/web/tree-slash-ref.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>x · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -152,7 +152,7 @@ | |||
| 152 | 152 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 153 | 153 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 154 | 154 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 155 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 155 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 156 | 156 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 157 | 157 | </span> | |
| 158 | 158 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>x · files · example.test</title> | 7 | <title>x · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -152,7 +152,7 @@ | |||||
| 152 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 152 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 153 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 153 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 154 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 154 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 155 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 155 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 156 | <span class="ico i-sun-moon" aria-hidden="true"> | 156 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 157 | </span> | 157 | </span> | ||
| 158 | </button> | 158 | </button> | ||
M internal/app/testdata/web/tree-subdir.html +3 -3
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 6 | 6 | <meta name="color-scheme" content="light dark"> | |
| 7 | 7 | <title>docs · files · example.test</title> | |
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> | |
| 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | |
| 10 | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | |
| 11 | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | |
| 12 | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | |
| @@ -168,7 +168,7 @@ | |||
| 168 | 168 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | |
| 169 | 169 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | |
| 170 | 170 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | |
| 171 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | |
| 171 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> | |
| 172 | 172 | <span class="ico i-sun-moon" aria-hidden="true"> | |
| 173 | 173 | </span> | |
| 174 | 174 | </button> | |
| @@ -5,8 +5,8 @@ | |||||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 6 | <meta name="color-scheme" content="light dark"> | 6 | <meta name="color-scheme" content="light dark"> | ||
| 7 | <title>docs · files · example.test</title> | 7 | <title>docs · files · example.test</title> | ||
| 8 | - | <meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"> | 8 | + | <meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff"> |
| 9 | - | <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c"> | 9 | + | <meta name="theme-color" data-scheme="dark" media="(prefers-color-scheme: dark)" content="#0c0c0c"> |
| 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | 10 | <meta name="apple-mobile-web-app-title" content="ermite"> | ||
| 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | 11 | <link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg"> | ||
| 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | 12 | <link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png"> | ||
| @@ -168,7 +168,7 @@ | |||||
| 168 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | 168 | <a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a> | ||
| 169 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | 169 | <button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?"> | ||
| 170 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | 170 | <kbd aria-hidden="true">?</kbd> keyboard shortcuts</button> | ||
| 171 | - | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (click for light)" title="theme: auto (click for light)"> | 171 | + | <button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)"> |
| 172 | <span class="ico i-sun-moon" aria-hidden="true"> | 172 | <span class="ico i-sun-moon" aria-hidden="true"> | ||
| 173 | </span> | 173 | </span> | ||
| 174 | </button> | 174 | </button> | ||