Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServerStatus主题首页增加服务器世界分布图功能 #344

Merged
merged 8 commits into from
Apr 8, 2024

Conversation

nap0o
Copy link
Contributor

@nap0o nap0o commented Apr 7, 2024

No description provided.

@naiba
Copy link
Owner

naiba commented Apr 7, 2024

这个 echartmaps 库7年没更新了,害怕突然诈尸,辛苦到jsd复制他的html+sri的标签吧,带 integrity md5检验那个

@jdoe51
Copy link

jdoe51 commented Apr 7, 2024

+1
最好能添加个开关,感觉此功能有点花哨,不知是否会使默认ServerStatus主题变成不喜欢的样子。。。
给不需要的人一个选择

@nap0o
Copy link
Contributor Author

nap0o commented Apr 7, 2024

这个 echartmaps 库7年没更新了,害怕突然诈尸,辛苦到jsd复制他的html+sri的标签吧,带 integrity md5检验那个

感谢奶爸,代码已经更新,找到了echarts官方的world.js,并加入 integrity md5检验

<script src="https://cdn.jsdelivr.net/npm/echarts/map/js/world.js" integrity="md5-ZmUzMzZlOGQyYzk2NTgwNGRlMzRlNTliZDgyYTY1OGUgIC0=" crossorigin="anonymous"></script>

#!/bin/bash
md5=$(curl -s https://cdn.jsdelivr.net/npm/echarts/map/js/world.js | md5sum)
base64=$(echo -n "$md5" | base64)
echo $base64

@nap0o
Copy link
Contributor Author

nap0o commented Apr 7, 2024

+1 最好能添加个开关,感觉此功能有点花哨,不知是否会使默认ServerStatus主题变成不喜欢的样子。。。 给不需要的人一个选择

多谢您的建议,现在的设计是,右下角有个按钮控制地图的显示,地图是弹窗显示,您看是否合理
image
image

@jdoe51
Copy link

jdoe51 commented Apr 7, 2024

+1 最好能添加个开关,感觉此功能有点花哨,不知是否会使默认ServerStatus主题变成不喜欢的样子。。。 给不需要的人一个选择

多谢您的建议,现在的设计是,右下角有个按钮控制地图的显示,地图是弹窗显示,您看是否合理 image image

赞!!

@naiba naiba merged commit 8ef5dfb into naiba:master Apr 8, 2024
4 checks passed
@HsukqiLee
Copy link
Contributor

有没有带南极洲的版本,好多人有南极warp小鸡的

@nap0o
Copy link
Contributor Author

nap0o commented Apr 9, 2024

有没有带南极洲的版本,好多人有南极warp小鸡的

找了好久,一直没有找到echarts的word.js有带南极洲地图的,辛苦大佬也帮忙找找~

@ypq123456789
Copy link

+1 最好能添加个开关,感觉此功能有点花哨,不知是否会使默认ServerStatus主题变成不喜欢的样子。。。 给不需要的人一个选择

多谢您的建议,现在的设计是,右下角有个按钮控制地图的显示,地图是弹窗显示,您看是否合理 image image

大佬好,请问能否调整为开关的这个地图是模块化的(也就说和上面的服务器显示是一样的模块),而非新窗口?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants