mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-24 10:41:23 +00:00
FATJAR packaging + block explorer changes
Switched from maven-assembly-plugin to maven-shade-plugin for building FATJAR. When running from FATJAR, class-path is ". .." to help find log4j2.properties file. Swagger-UI can now be served direct from inside FATJAR instead of requiring resources in filesystem. Default package Start now controller/Controller block-explorer.html now served via Jetty and modified to use relative URLs instead of absolute http://localhost:9085/... style Improved shutdown code in controller /admin/stop API call disabled for now Highly permissive settings.json added
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
document.body.innerHTML = html;
|
||||
|
||||
XHR({
|
||||
url: "http://localhost:9085/transactions/address/" + address,
|
||||
url: "/transactions/address/" + address,
|
||||
onload: renderAddressTransactions,
|
||||
responseType: "json"
|
||||
});
|
||||
@@ -96,7 +96,7 @@
|
||||
|
||||
function fetchAddressInfo(address) {
|
||||
XHR({
|
||||
url: "http://localhost:9085/addresses/assets/" + address,
|
||||
url: "/addresses/assets/" + address,
|
||||
onload: renderAddressInfo,
|
||||
responseType: "json"
|
||||
});
|
||||
@@ -181,7 +181,7 @@
|
||||
|
||||
// Fetch block's transactions
|
||||
XHR({
|
||||
url: "http://localhost:9085/transactions/block/" + blockData.signature,
|
||||
url: "/transactions/block/" + blockData.signature,
|
||||
onload: renderBlockTransactions,
|
||||
responseType: "json"
|
||||
});
|
||||
@@ -189,7 +189,7 @@
|
||||
|
||||
function fetchBlockInfo(height) {
|
||||
XHR({
|
||||
url: "http://localhost:9085/blocks/byheight/" + height,
|
||||
url: "/blocks/byheight/" + height,
|
||||
onload: renderBlockInfo,
|
||||
responseType: "json"
|
||||
});
|
||||
@@ -227,7 +227,7 @@
|
||||
|
||||
function shutdownAPI() {
|
||||
XHR({
|
||||
url: "http://localhost:9085/admin/stop",
|
||||
url: "/admin/stop",
|
||||
onload: showShutdown,
|
||||
responseType: "json"
|
||||
});
|
||||
@@ -247,7 +247,7 @@
|
||||
|
||||
for (var h = height; h > 0 && h >= height - 20; --h)
|
||||
XHR({
|
||||
url: "http://localhost:9085/blocks/byheight/" + h,
|
||||
url: "/blocks/byheight/" + h,
|
||||
onload: listBlock,
|
||||
responseType: "json"
|
||||
});
|
||||
@@ -264,7 +264,7 @@
|
||||
|
||||
function windowOnLoad() {
|
||||
XHR({
|
||||
url: "http://localhost:9085/blocks/height",
|
||||
url: "/blocks/height",
|
||||
onload: initialBlocks,
|
||||
responseType: "json"
|
||||
});
|
||||
|
Reference in New Issue
Block a user