webpack, eslint

javascript didn't have proper modules until es6 what the fuck

bingo's code scares me so i hope i didn't break it when fixing
the linting errors
This commit is contained in:
louis 2019-05-12 20:20:48 -04:00
parent e3b7233b20
commit 1d469d4f3e
15 changed files with 9790 additions and 1185 deletions

View file

@ -1,5 +1,17 @@
'use strict';
/* global PIXI */
import 'Pixi';
import { Player } from './Player.js';
import { audioController } from './Audio.js';
import { baseDimensions, commonFunctions } from './Common.js';
import { UtageInfo } from './UtageParse.js';
import { TextFunctions } from './TextFunctions.js';
import { Shaders } from './Shaders.js';
import '../Css/generic.min.css';
import '../Css/main.css';
const pixiApp = {
app: new PIXI.Application(baseDimensions),
loader: PIXI.loader
@ -215,9 +227,9 @@ function missionDropDownChanged(event) {
${chapterSelect}
</div>
<div id="modal-buttons">
<button onclick="closeMissionModal(event, false)">Close</button>
<button onclick="XduPlayer.closeMissionModal(event, false)">Close</button>
<span>MstId: ${mis.MstId}</span>
<button onclick="missionChanged(${mis.MstId})">Play</button>
<button onclick="XduPlayer.missionChanged(${mis.MstId})">Play</button>
</div>
</div>`;
document.getElementById("click-catcher").style.cssText = 'display: flex;';
@ -424,7 +436,7 @@ function openHelpModal(event) {
<a style="margin-top: auto; text-align: center; "href="https://discord.gg/fpQZQ8g">YameteTomete Discord</a>
<div style="margin-top: auto; text-align: center;">All Symphogear content belongs to its respective owners</div>
<div id="modal-buttons">
<button onclick="closeModal(event)">Close</button>
<button onclick="XduPlayer.closeModal(event)">Close</button>
<a href="https://git.poweris.moe/xduplayer.git/" target="_blank">Source</a>
</div>
</div>`;
@ -500,3 +512,22 @@ function onWindowResize(event, delay = 400) {
document.getElementById('app-container').style.cssText = `width: ${res.width}px; height: ${res.height}px;`;
}, delay);
}
export {
onBodyLoaded,
onBodyKey,
toggleMute,
onVolumeChange,
missionDropDownChanged,
languageChanged,
toggleFullscreen,
onMainClick,
openHelpModal,
playFromQuery,
skipClicked,
hideUiClicked,
dialogScrollUp,
dialogScrollDown,
closeMissionModal,
missionChanged
};