forked from MTSR/mapserver
remove stats fragment
This commit is contained in:
parent
4c0bd29d9f
commit
9789c4c467
@ -1,11 +0,0 @@
|
||||
|
||||
# Stats webfragment
|
||||
|
||||
<img src="./pics/stats_webfragment.png"></img>
|
||||
|
||||
The "world stats" info from the bottom right corner of the mapserver
|
||||
can be embedded as an iframe into any existing web-page:
|
||||
|
||||
```html
|
||||
<iframe src="http://127.0.0.1:8080/stats.html"></iframe>
|
||||
```
|
@ -1,18 +1,10 @@
|
||||
|
||||
export default [{
|
||||
export default {
|
||||
input: 'main.js',
|
||||
output: {
|
||||
file :'bundle.js',
|
||||
format: 'umd',
|
||||
format: 'iife',
|
||||
sourcemap: true,
|
||||
compact: true
|
||||
}
|
||||
},{
|
||||
input: 'stats.js',
|
||||
output: {
|
||||
file :'bundle-stats.js',
|
||||
format: 'umd',
|
||||
sourcemap: true,
|
||||
compact: true
|
||||
}
|
||||
}];
|
||||
};
|
||||
|
@ -1,9 +0,0 @@
|
||||
|
||||
import WorldStats from './components/WorldStats.js';
|
||||
import wsChannel from './WebSocketChannel.js';
|
||||
|
||||
wsChannel.connect();
|
||||
|
||||
wsChannel.addListener("minetest-info", function(info){
|
||||
m.render(document.getElementById("app"), WorldStats(info));
|
||||
});
|
@ -1,22 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<!-- styles -->
|
||||
<link rel="stylesheet" href="css/fontawesome.min.css"/>
|
||||
<title>Minetest Mapserver stats</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
<!-- libraries -->
|
||||
<script src="js/lib/mithril.min.js"></script>
|
||||
|
||||
<!-- main module -->
|
||||
<script src="js/stats.js" type="module"></script>
|
||||
|
||||
<!-- no modules -->
|
||||
<script src="js/bundle-stats.js" nomodule></script>
|
||||
</body>
|
||||
</html>
|
@ -35,7 +35,6 @@ Demo: [Pandorabox Server map](https://pandorabox.io/map/#-1782.25/493.5/10)
|
||||
* [Search](doc/search.md)
|
||||
* [Configuration](doc/config.md)
|
||||
* [Recommended specs](doc/recommended_specs.md)
|
||||
* [Stats webfragment](doc/stats_webfragment.md)
|
||||
* [Web API](doc/api.md)
|
||||
* [Contribution](doc/contrib.md)
|
||||
* [Development](doc/dev.md)
|
||||
|
Loading…
Reference in New Issue
Block a user