A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
fix: disable search input in /settings, reorder scripts
Christian Fei4ee1aa01bb54
diff --git a/client/index.html b/client/index.htmlindex 6b43cec..5ed5ad6 100644--- a/client/index.html+++ b/client/index.html@@ -91,13 +91,13 @@<h1>404 Not Found</h1></template>- <script type="module" src="/main.js"></script>- <script type="module" src="/lib/router.js"></script><script type="module" src="/components/empty-state.js"></script><script type="module" src="/components/video-filters.js"></script><script type="module" src="/components/search-videos.js"></script><script type="module" src="/components/channels-list.js"></script><script type="module" src="/components/video-element.js"></script><script type="module" src="/components/add-channel-form.js"></script>+ <script type="module" src="/main.js"></script>+ <script type="module" src="/lib/router.js"></script></body></html>diff --git a/client/lib/router.js b/client/lib/router.jsindex 0b2ae68..8caf4d8 100644--- a/client/lib/router.js+++ b/client/lib/router.js@@ -52,6 +52,8 @@ const routes = {} },'/settings': { template: document.getElementById('settings-template'), async initialize () {console.log('initalize /settings')++ document.getElementById('search').setAttribute('disabled', 'disabled')const $showThumbnails = document.getElementById('show-thumbnails')store.get(store.showThumbnailsKey) ? $showThumbnails.setAttribute('checked', 'true') : $showThumbnails.removeAttribute('checked')@@ -97,8 +99,7 @@ const routes = {.catch((error) => {$diskUsage.innerHTML = `Failed to reclaim disk space: <br><pre>${error.message}</pre>`})- })-+ })} },'/404': { template: document.getElementById('not-found-template'), async initialize () {document.getElementById('search').setAttribute('disabled', 'disabled')