improve(webui): keep a local copy of riven tool (#261)
This commit is contained in:
parent
e3f543d9be
commit
e980d34458
6
package-lock.json
generated
6
package-lock.json
generated
@ -13,6 +13,7 @@
|
||||
"express": "^5.0.0-beta.3",
|
||||
"mongoose": "^8.1.1",
|
||||
"warframe-items": "^1.1261.19",
|
||||
"warframe-riven-info": "^0.1.0",
|
||||
"winston": "^3.11.0",
|
||||
"winston-daily-rotate-file": "^4.7.1"
|
||||
},
|
||||
@ -3892,6 +3893,11 @@
|
||||
"warframe-worldstate-data": "^2"
|
||||
}
|
||||
},
|
||||
"node_modules/warframe-riven-info": {
|
||||
"version": "0.1.0",
|
||||
"resolved": "https://registry.npmjs.org/warframe-riven-info/-/warframe-riven-info-0.1.0.tgz",
|
||||
"integrity": "sha512-99e1HsGZomE1vHXat97V/eseccEnnQ1rv9vC0bdV9mig1wPdWiixHqCIpvIOBVUGKSEKuw2DJEErPD5Nxg+EsQ=="
|
||||
},
|
||||
"node_modules/warframe-worldstate-data": {
|
||||
"version": "2.5.14",
|
||||
"resolved": "https://registry.npmjs.org/warframe-worldstate-data/-/warframe-worldstate-data-2.5.14.tgz",
|
||||
|
@ -17,6 +17,7 @@
|
||||
"express": "^5.0.0-beta.3",
|
||||
"mongoose": "^8.1.1",
|
||||
"warframe-items": "^1.1261.19",
|
||||
"warframe-riven-info": "^0.1.0",
|
||||
"winston": "^3.11.0",
|
||||
"winston-daily-rotate-file": "^4.7.1"
|
||||
},
|
||||
|
@ -33,4 +33,12 @@ webuiRouter.get("/favicon.ico", (_req, res) => {
|
||||
res.sendFile(path.join(rootDir, "static/fixed_responses/favicon.ico"));
|
||||
});
|
||||
|
||||
// Serve warframe-riven-info
|
||||
webuiRouter.get("/webui/riven-tool/", (_req, res) => {
|
||||
res.sendFile(path.join(rootDir, "node_modules/warframe-riven-info/index.html"));
|
||||
});
|
||||
webuiRouter.get("/webui/riven-tool/RivenParser.js", (_req, res) => {
|
||||
res.sendFile(path.join(rootDir, "node_modules/warframe-riven-info/RivenParser.js"));
|
||||
});
|
||||
|
||||
export { webuiRouter };
|
||||
|
@ -161,9 +161,7 @@
|
||||
placeholder="Fingerprint"
|
||||
></textarea>
|
||||
<button class="btn btn-primary" style="margin-right: 5px" type="submit">Add</button>
|
||||
<a href="https://riven.builds.wf/" target="_blank">
|
||||
Need help with the fingerprint?
|
||||
</a>
|
||||
<a href="riven-tool/" target="_blank">Need help with the fingerprint?</a>
|
||||
</form>
|
||||
</div>
|
||||
<div class="card mb-4">
|
||||
@ -200,7 +198,7 @@
|
||||
<script src="libs/jquery-3.6.0.min.js"></script>
|
||||
<script src="libs/whirlpool-js.min.js"></script>
|
||||
<script src="libs/single.js"></script>
|
||||
<script src="libs/RivenParser.js"></script>
|
||||
<script src="riven-tool/RivenParser.js"></script>
|
||||
<script src="script.js"></script>
|
||||
<script src="libs/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -227,7 +227,7 @@ function updateInventory() {
|
||||
{
|
||||
const a = document.createElement("a");
|
||||
a.href =
|
||||
"https://riven.builds.wf/#" +
|
||||
"riven-tool/#" +
|
||||
encodeURIComponent(
|
||||
JSON.stringify({
|
||||
rivenType: rivenType,
|
||||
|
Loading…
x
Reference in New Issue
Block a user