Backport black catalyst
This commit is contained in:
parent
1b468abb70
commit
57e6a52f9c
7 changed files with 80 additions and 4 deletions
|
@ -270797,7 +270797,7 @@
|
||||||
"sdPct": 8,
|
"sdPct": 8,
|
||||||
"spPct1": -12,
|
"spPct1": -12,
|
||||||
"spPct3": -12,
|
"spPct3": -12,
|
||||||
"id": 3574
|
"id": 10249
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tier": "Rare",
|
"tier": "Rare",
|
||||||
|
|
File diff suppressed because one or more lines are too long
39
items.html
Normal file
39
items.html
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html scroll-behavior="smooth">
|
||||||
|
<head>
|
||||||
|
<!-- nunito font, copying wynndata -->
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Nunito&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="styles.css">
|
||||||
|
<link rel="icon" href="favicon.png">
|
||||||
|
<link rel="manifest" href="manifest.json">
|
||||||
|
<title>Wynn Clientside</title>
|
||||||
|
</head>
|
||||||
|
<body class="all">
|
||||||
|
<div class="header" id="header">
|
||||||
|
WynnAtlas
|
||||||
|
</div>
|
||||||
|
<div class="center" id="header2">
|
||||||
|
Made by: hppeng and ferricles
|
||||||
|
</div>
|
||||||
|
<div class="center" id="credits">
|
||||||
|
<a href="credits.txt">Additional credits</a>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<div class="center" id="main">
|
||||||
|
<div class="box" id="test" style="width: 25vw; margin: auto">
|
||||||
|
<div class="center" id="test-inner">item</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript" src="/utils.js"></script>
|
||||||
|
<script type="text/javascript" src="/damage_calc.js"></script>
|
||||||
|
<script type="text/javascript" src="/display.js"></script>
|
||||||
|
<script type="text/javascript" src="/query.js"></script>
|
||||||
|
<script type="text/javascript" src="/load.js"></script>
|
||||||
|
<script type="text/javascript" src="/items.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
11
items.js
Normal file
11
items.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
let items_copy = items.slice();
|
||||||
|
let query = new NameQuery("Bob's");
|
||||||
|
items_copy = items_copy.filter(query.filter, query).sort(query.compare);
|
||||||
|
let item = items_copy[0];
|
||||||
|
console.log(item);
|
||||||
|
displayExpandedItem(expandItem(item, []), "test");
|
||||||
|
}
|
||||||
|
|
||||||
|
load_init(init);
|
4
load.js
4
load.js
|
@ -1,4 +1,4 @@
|
||||||
const DB_VERSION = 26;
|
const DB_VERSION = 27;
|
||||||
// @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.js
|
// @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.js
|
||||||
|
|
||||||
let db;
|
let db;
|
||||||
|
@ -35,7 +35,7 @@ async function load_local(init_func) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log("Successfully read local set db.");
|
console.log("Successfully read local set db.");
|
||||||
console.log(sets);
|
//console.log(sets);
|
||||||
init_func();
|
init_func();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
21
query.js
Normal file
21
query.js
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description A query into the item
|
||||||
|
* @module ItemNotFound
|
||||||
|
*/
|
||||||
|
class NameQuery {
|
||||||
|
constructor(string) {
|
||||||
|
this.queryString = string;
|
||||||
|
}
|
||||||
|
|
||||||
|
filter(item) {
|
||||||
|
if (item.remapID === undefined) {
|
||||||
|
return (item.displayName.includes(this.queryString));
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
compare(a, b) {
|
||||||
|
return a < b;
|
||||||
|
}
|
||||||
|
}
|
|
@ -259102,6 +259102,11 @@
|
||||||
"name": "10248",
|
"name": "10248",
|
||||||
"remapID": 3602
|
"remapID": 3602
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": 10249,
|
||||||
|
"name": "10249",
|
||||||
|
"remapID": 3574
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": 10250,
|
"id": 10250,
|
||||||
"name": "10250",
|
"name": "10250",
|
||||||
|
|
Loading…
Add table
Reference in a new issue