Clean POM file
This commit is contained in:
parent
dc0e56ea2a
commit
cd2280d4f6
3 changed files with 12 additions and 5 deletions
7
pom.xml
7
pom.xml
|
@ -17,6 +17,8 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
|
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||||
|
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
||||||
<mainClass>com.lbry.globe.Main</mainClass>
|
<mainClass>com.lbry.globe.Main</mainClass>
|
||||||
</manifest>
|
</manifest>
|
||||||
<manifestEntries>
|
<manifestEntries>
|
||||||
|
@ -36,11 +38,6 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<version>3.13.0</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.lbry.globe.handler;
|
package com.lbry.globe.handler;
|
||||||
|
|
||||||
|
import com.lbry.globe.Main;
|
||||||
import com.lbry.globe.api.API;
|
import com.lbry.globe.api.API;
|
||||||
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
|
@ -62,6 +63,7 @@ public class HTTPHandler extends ChannelInboundHandlerAdapter{
|
||||||
status = 500;
|
status = 500;
|
||||||
indexData = "Some error occured.".getBytes();
|
indexData = "Some error occured.".getBytes();
|
||||||
}
|
}
|
||||||
|
indexData = new String(indexData).replace("<div class=\"version\"></div>","<div class=\"version\">"+Main.class.getPackage().getImplementationVersion()+"</div>").getBytes();
|
||||||
ByteBuf responseContent = Unpooled.copiedBuffer(indexData);
|
ByteBuf responseContent = Unpooled.copiedBuffer(indexData);
|
||||||
FullHttpResponse response = new DefaultFullHttpResponse(request.protocolVersion(),HttpResponseStatus.valueOf(status),responseContent);
|
FullHttpResponse response = new DefaultFullHttpResponse(request.protocolVersion(),HttpResponseStatus.valueOf(status),responseContent);
|
||||||
response.headers().add("Content-Length",responseContent.capacity());
|
response.headers().add("Content-Length",responseContent.capacity());
|
||||||
|
|
|
@ -21,6 +21,13 @@
|
||||||
left:0;
|
left:0;
|
||||||
top:0;
|
top:0;
|
||||||
}
|
}
|
||||||
|
.version{
|
||||||
|
bottom:0;
|
||||||
|
color:white;
|
||||||
|
padding:8px;
|
||||||
|
position:absolute;
|
||||||
|
left:0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<title>LBRY Globe</title>
|
<title>LBRY Globe</title>
|
||||||
</head>
|
</head>
|
||||||
|
@ -32,6 +39,7 @@
|
||||||
<div id="info-nodes-hub"></div>
|
<div id="info-nodes-hub"></div>
|
||||||
<div id="info-nodes-total"></div>
|
<div id="info-nodes-total"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="version"></div>
|
||||||
<script>
|
<script>
|
||||||
const globe = Globe();
|
const globe = Globe();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue