From 9789c4c467897813dcfc10110b74dccef1f6fb06 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Sat, 19 Mar 2022 17:17:51 +0100 Subject: [PATCH] remove stats fragment --- doc/stats_webfragment.md | 11 ----------- public/js/rollup.config.js | 14 +++----------- public/js/stats.js | 9 --------- public/stats.html | 22 ---------------------- readme.md | 1 - 5 files changed, 3 insertions(+), 54 deletions(-) delete mode 100644 doc/stats_webfragment.md delete mode 100644 public/js/stats.js delete mode 100644 public/stats.html 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 @@ - - - - - - - - Minetest Mapserver stats - - -
- - - - - - - - - - - diff --git a/readme.md b/readme.md index 4b63164..b2e66e1 100644 --- a/readme.md +++ b/readme.md @@ -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)