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>
|
||||
<archive>
|
||||
<manifest>
|
||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
||||
<mainClass>com.lbry.globe.Main</mainClass>
|
||||
</manifest>
|
||||
<manifestEntries>
|
||||
|
@ -36,11 +38,6 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.13.0</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.lbry.globe.handler;
|
||||
|
||||
import com.lbry.globe.Main;
|
||||
import com.lbry.globe.api.API;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
|
@ -62,6 +63,7 @@ public class HTTPHandler extends ChannelInboundHandlerAdapter{
|
|||
status = 500;
|
||||
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);
|
||||
FullHttpResponse response = new DefaultFullHttpResponse(request.protocolVersion(),HttpResponseStatus.valueOf(status),responseContent);
|
||||
response.headers().add("Content-Length",responseContent.capacity());
|
||||
|
|
|
@ -21,6 +21,13 @@
|
|||
left:0;
|
||||
top:0;
|
||||
}
|
||||
.version{
|
||||
bottom:0;
|
||||
color:white;
|
||||
padding:8px;
|
||||
position:absolute;
|
||||
left:0;
|
||||
}
|
||||
</style>
|
||||
<title>LBRY Globe</title>
|
||||
</head>
|
||||
|
@ -32,6 +39,7 @@
|
|||
<div id="info-nodes-hub"></div>
|
||||
<div id="info-nodes-total"></div>
|
||||
</div>
|
||||
<div class="version"></div>
|
||||
<script>
|
||||
const globe = Globe();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue