Upgrade web assets (#219)
* Update assets * Upgrade linting and other improvments * Correct linting * Correction and type check improvements * Correct type check lib * Fix lint pathing for VSCode * Remove duplicate babel config * Remove editorconfig root attribute from web subdir * Use double quotes around message * Simplify ESLint config * Update web assets * Allow AMD loader in WebPack * Bump web dependencies * Only include FA icons in-use
This commit is contained in:
@ -1,13 +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);
|
||||
import {library, dom} from '@fortawesome/fontawesome-svg-core/index.es.js';
|
||||
import {
|
||||
faTimesCircle, faPlus, faCheck, faUpload, faTimes, faTrash, faPlay, faPause, faFastForward, faPlayCircle, faLightbulb,
|
||||
faTrashAlt, faDownload, faSyncAlt, faEdit, faVolumeUp, faVolumeDown, faRobot, faRedo, faRandom, faTasks
|
||||
} from '@fortawesome/free-solid-svg-icons/index.es.js';
|
||||
import {faFileAlt} from '@fortawesome/free-regular-svg-icons/index.es.js';
|
||||
|
||||
library.add(
|
||||
// Solid
|
||||
faTimesCircle, faPlus, faCheck, faUpload, faTimes, faTrash, faPlay, faPause, faFastForward, faPlayCircle, faLightbulb,
|
||||
faTrashAlt, faDownload, faSyncAlt, faEdit, faVolumeUp, faVolumeDown, faRobot, faRedo, faRandom, faTasks,
|
||||
// Regular
|
||||
faFileAlt
|
||||
);
|
||||
|
||||
// Old application code
|
||||
import './main.mjs';
|
||||
|
||||
// New application code
|
||||
import Theme from './theme.mjs';
|
||||
import Theme from './lib/theme.mjs';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
Theme.init();
|
||||
|
Reference in New Issue
Block a user