Skip to content
New issue

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

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

Already on GitHub? # to your account

域名解析 - hostlist 列表中,online时,能否多一个按钮点击后可直接访问这个穿透地址 #410

Closed
netyuchangfa opened this issue Feb 15, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@netyuchangfa
Copy link

域名解析的主机列表中,在线状态的应用 ,后面增加一个功能按钮,方便直接访问过去。

正确的地址组合是:
协议类型://host:端口/location
http://xxxxxxxx:8080/location

@netyuchangfa netyuchangfa added the enhancement New feature or request label Feb 15, 2020
@netyuchangfa
Copy link
Author

netyuchangfa commented Feb 15, 2020

先判断客户端是否在线,然后给个按钮可以打开穿透URL

web页面这里如何修改增加一个功能按钮,可以实现点击按钮后能打开正确的URL地址

web/views/index/hlist.html文件中这里如何编辑调整?

{
field: '',//域值
title: 'client status',//内容
visible: true,//false表示不显示

            formatter: function (value, row, index) {
                if (row.Client.IsConnect) {
                    return '<span class="badge badge-primary">online</span>'
                } else {
                    return '<span class="badge badge-badge">offline</span>'
                }
            }
        },

@cnlh
Copy link
Collaborator

cnlh commented Feb 15, 2020

可以参考其他存在跳转的按钮,欢迎pr

@netyuchangfa
Copy link
Author

感谢!!!!
继续 支持!!!

kiririx pushed a commit to kiririx/nps that referenced this issue Jul 26, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants