Cleanup artifacts from node build flow

This commit is contained in:
Tyler Vigario
2020-06-21 20:12:03 -07:00
parent 60c139020b
commit a81008e6be
14 changed files with 29 additions and 47 deletions

23
web/js/app.mjs Normal file
View File

@ -0,0 +1,23 @@
import {library, dom} from '@fortawesome/fontawesome-svg-core/index.es';
import {fas} from '@fortawesome/free-solid-svg-icons/index.es';
import {far} from '@fortawesome/free-regular-svg-icons/index.es';
library.add(fas, far);
// Old application code
import './main.mjs';
// New application code
import Theme from './theme.mjs';
document.addEventListener('DOMContentLoaded', () => {
Theme.init();
// Replace any existing <i> tags with <svg> and set up a MutationObserver to
// continue doing this as the DOM changes.
dom.watch();
document.getElementById('theme-switch-btn').addEventListener('click', () => {
Theme.swap();
});
});