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