node config eslint enable
This commit is contained in:
parent
d8ba9fc7bb
commit
552a0d9820
9 changed files with 21 additions and 19 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
// eslint-disable-next-line no-undef
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"es2021": true
|
"es2021": true,
|
||||||
|
"node" : true,
|
||||||
},
|
},
|
||||||
"extends": "eslint:recommended",
|
"extends": "eslint:recommended",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -194,6 +194,7 @@
|
||||||
<div class="input-buttons">
|
<div class="input-buttons">
|
||||||
<!-- <button id="save-area-file" class="button" onclick="">Load Save</button> -->
|
<!-- <button id="save-area-file" class="button" onclick="">Load Save</button> -->
|
||||||
<!-- <input id="save-area-file" class="" type="file" name="file" accept=".dat,.bak*" onchange="LoadSaveFile(this)"> -->
|
<!-- <input id="save-area-file" class="" type="file" name="file" accept=".dat,.bak*" onchange="LoadSaveFile(this)"> -->
|
||||||
|
<!-- <button id="save-area-read" class="button" onclick="HKReadTextArea('save-area');">Analyze Text</button> -->
|
||||||
<button id="save-area-read" class="button" onclick="HKReadTextArea('save-area');">Analyze Text</button>
|
<button id="save-area-read" class="button" onclick="HKReadTextArea('save-area');">Analyze Text</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@
|
||||||
<div class="input-buttons">
|
<div class="input-buttons">
|
||||||
<!-- <button id="save-area-file" class="button" onclick="">Load Save</button> -->
|
<!-- <button id="save-area-file" class="button" onclick="">Load Save</button> -->
|
||||||
<!-- <input id="save-area-file" class="" type="file" name="file" accept=".dat,.bak*" onchange="LoadSaveFile(this)"> -->
|
<!-- <input id="save-area-file" class="" type="file" name="file" accept=".dat,.bak*" onchange="LoadSaveFile(this)"> -->
|
||||||
|
<!-- <button id="save-area-read" class="button" onclick="HKReadTextArea('save-area');">Analyze Text</button> -->
|
||||||
<button id="save-area-read" class="button" onclick="HKReadTextArea('save-area');">Analyze Text</button>
|
<button id="save-area-read" class="button" onclick="HKReadTextArea('save-area');">Analyze Text</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1173,7 +1173,7 @@ function CheckHintsTrue(divId, dataObject, playerData, worldData) {
|
||||||
/**
|
/**
|
||||||
* Pre-Cleans HTML. Reads contents inside text area and parses it to a JavaScript object. If not empty, runs HKCheckCompletion() to check data.
|
* Pre-Cleans HTML. Reads contents inside text area and parses it to a JavaScript object. If not empty, runs HKCheckCompletion() to check data.
|
||||||
*/
|
*/
|
||||||
function HKReadTextArea(textAreaId = "") {
|
export function HKReadTextArea(textAreaId = "") {
|
||||||
|
|
||||||
// refresh and prepare document for filling with data from the save
|
// refresh and prepare document for filling with data from the save
|
||||||
InitialHTMLPopulate(HK.DIV_ID);
|
InitialHTMLPopulate(HK.DIV_ID);
|
||||||
|
|
@ -1454,6 +1454,9 @@ function TranslateMapName(mapCode, dictionary = MAP) {
|
||||||
return translation;
|
return translation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make functions global so they can be used on click and change events (for Webpack)
|
||||||
|
// window.InitialHTMLPopulate = InitialHTMLPopulate;
|
||||||
|
|
||||||
// Populate HTML at load (before img and css)
|
// Populate HTML at load (before img and css)
|
||||||
document.addEventListener("DOMContentLoaded", InitialHTMLPopulate(HK.DIV_ID));
|
document.addEventListener("DOMContentLoaded", InitialHTMLPopulate(HK.DIV_ID));
|
||||||
|
|
||||||
|
|
@ -1467,7 +1470,8 @@ document.getElementById("save-location-input").addEventListener("mouseout", () =
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
// Make functions global so they can be used on click and change events (for Webpack)
|
// Make functions global so they can be used on click and change events (for Webpack)
|
||||||
window.HKReadTextArea = HKReadTextArea;
|
// window.HKReadTextArea = HKReadTextArea;
|
||||||
window.InitialHTMLPopulate = InitialHTMLPopulate;
|
|
||||||
window.CheckboxSpoilersToggle = CheckboxSpoilersToggle;
|
window.CheckboxSpoilersToggle = CheckboxSpoilersToggle;
|
||||||
window.CheckboxHintsToggle = CheckboxHintsToggle;
|
window.CheckboxHintsToggle = CheckboxHintsToggle;
|
||||||
|
|
||||||
|
document.getElementById("save-area-read").addEventListener("click", HKReadTextArea("save-area"));
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* global require HKReadTextArea */
|
|
||||||
/*
|
/*
|
||||||
Parts of the code thanks to bloodorca https://github.com/bloodorca/hollow (base64.js, functions.js) with slight modifications.
|
Parts of the code thanks to bloodorca https://github.com/bloodorca/hollow (base64.js, functions.js) with slight modifications.
|
||||||
The steps used there for decryption were taken from KayDeeTee https://github.com/KayDeeTee/Hollow-Knight-SaveManager
|
The steps used there for decryption were taken from KayDeeTee https://github.com/KayDeeTee/Hollow-Knight-SaveManager
|
||||||
|
|
@ -190,6 +189,7 @@ function AESDecryption(buffer, cipherObject = ECB_STREAM_CIPHER) {
|
||||||
// Make functions global so they can be used on click and change events (for Webpack)
|
// Make functions global so they can be used on click and change events (for Webpack)
|
||||||
// window.LoadSaveFile = LoadSaveFile;
|
// window.LoadSaveFile = LoadSaveFile;
|
||||||
|
|
||||||
|
// Assign actions (functions) to launch when a specific element is used
|
||||||
document.getElementById("save-area-file").addEventListener("change", LoadSaveFile);
|
document.getElementById("save-area-file").addEventListener("change", LoadSaveFile);
|
||||||
document.getElementById("save-area-file").addEventListener("click", (mouseEvent) => {
|
document.getElementById("save-area-file").addEventListener("click", (mouseEvent) => {
|
||||||
mouseEvent.target.value = "";
|
mouseEvent.target.value = "";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
/* global require */
|
|
||||||
|
|
||||||
// Handle cookies
|
// Handle cookies
|
||||||
// require("./cookies.js");
|
// require("./cookies.js");
|
||||||
|
|
||||||
|
|
@ -15,9 +13,9 @@ require("../img/thumbnail1200x628.jpg");
|
||||||
// Instantly load test save file from .json (fast Debugging script)
|
// Instantly load test save file from .json (fast Debugging script)
|
||||||
// require("./LoadJson.js");
|
// require("./LoadJson.js");
|
||||||
|
|
||||||
// Load Save File for opening files, decoding, decryption
|
|
||||||
require("./LoadSaveFile.js");
|
|
||||||
|
|
||||||
// Main script for analyzing the decoded save file and generating the page on the fly
|
// Main script for analyzing the decoded save file and generating the page on the fly
|
||||||
// require("./HKCheckCompletion.js");
|
// require("./HKCheckCompletion.js");
|
||||||
require("./HKCheckCompletion.js");
|
require("./HKCheckCompletion.js");
|
||||||
|
|
||||||
|
// Load Save File for opening files, decoding, decryption
|
||||||
|
require("./LoadSaveFile.js");
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* global require module __dirname */
|
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
const HtmlWebpackPartialsPlugin = require('html-webpack-partials-plugin');
|
const HtmlWebpackPartialsPlugin = require('html-webpack-partials-plugin');
|
||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/* global require module __dirname */
|
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
const HtmlWebpackPartialsPlugin = require('html-webpack-partials-plugin');
|
const HtmlWebpackPartialsPlugin = require('html-webpack-partials-plugin');
|
||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue