diff --git a/doc/stats_webfragment.md b/doc/stats_webfragment.md deleted file mode 100644 index d6f015e..0000000 --- a/doc/stats_webfragment.md +++ /dev/null @@ -1,11 +0,0 @@ - -# Stats webfragment - - - -The "world stats" info from the bottom right corner of the mapserver -can be embedded as an iframe into any existing web-page: - -```html - -``` diff --git a/public/js/rollup.config.js b/public/js/rollup.config.js index 47ad1ea..d1a98d1 100644 --- a/public/js/rollup.config.js +++ b/public/js/rollup.config.js @@ -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 - } -}]; +}; diff --git a/public/js/stats.js b/public/js/stats.js deleted file mode 100644 index c9643d5..0000000 --- a/public/js/stats.js +++ /dev/null @@ -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)); -}); diff --git a/public/stats.html b/public/stats.html deleted file mode 100644 index 3842994..0000000 --- a/public/stats.html +++ /dev/null @@ -1,22 +0,0 @@ - - -
- - - - -