🚸 add tooltip for secret copy button

This commit is contained in:
naiba 2022-10-16 23:30:06 +08:00
parent 7d8fe82aa2
commit b6a70cf32a
4 changed files with 9 additions and 9 deletions

View File

@ -298,8 +298,8 @@ other = "Version"
[OneKeyInstall]
other = "One-click installation"
[ClickToCopyTheInstallationCommand]
other = "Click To Copy Install Command"
[ClickToCopy]
other = "Click To Copy"
[DeleteServer]
other = "Delete Server"

View File

@ -298,8 +298,8 @@ other = "Número de versión"
[OneKeyInstall]
other = "Instalación con un solo clic"
[ClickToCopyTheInstallationCommand]
other = "Haga clic para copiar el comando de instalación"
[ClickToCopy]
other = "Haga clic para copiar"
[DeleteServer]
other = "Eliminar el servidor"

View File

@ -298,8 +298,8 @@ other = "版本号"
[OneKeyInstall]
other = "一键安装"
[ClickToCopyTheInstallationCommand]
other = "点击复制安装命令"
[ClickToCopy]
other = "点击复制"
[DeleteServer]
other = "删除主机"

View File

@ -43,19 +43,19 @@
<td>{{$server.Host.Version}}</td>
<td>{{$server.HideForGuest}}</td>
<td>
<button class="ui icon green mini button" data-clipboard-text="{{$server.Secret}}">
<button class="ui icon green mini button" data-clipboard-text="{{$server.Secret}}" data-tooltip="{{tr "ClickToCopy"}}">
<i class="copy icon"></i>
</button>
</td>
<td>
<button class="ui icon green mini button"
data-clipboard-text="{{if $.Conf.GRPCHost}}{{if eq $.Conf.Language "zh-CN"}}curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh{{else}}curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install_en.sh{{end}} -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh install_agent {{$.Conf.GRPCHost}} {{if $.Conf.ProxyGRPCPort}}{{$.Conf.ProxyGRPCPort}}{{else}}{{$.Conf.GRPCPort}}{{end}} {{$server.Secret}}{{if $.Conf.TLS}} --tls{{end}}{{else}}{{tr "NoDomainAlert"}}{{end}}"
data-tooltip="{{tr "ClickToCopyTheInstallationCommand"}}">
data-tooltip="{{tr "ClickToCopy"}}">
<i class="linux icon"></i>
</button>
<button class="ui icon green mini button"
data-clipboard-text="{{if $.Conf.GRPCHost}}[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Ssl3 -bor [Net.SecurityProtocolType]::Tls -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls12;set-ExecutionPolicy RemoteSigned;Invoke-WebRequest https://raw.githubusercontent.com/naiba/nezha/master/script/install.ps1 -OutFile C:\install.ps1;powershell.exe C:\install.ps1 {{$.Conf.GRPCHost}}:{{if $.Conf.ProxyGRPCPort}}{{$.Conf.ProxyGRPCPort}}{{else}}{{$.Conf.GRPCPort}}{{end}} {{$server.Secret}}{{if $.Conf.TLS}} --tls{{end}}{{else}}{{tr "NoDomainAlert"}}{{end}}"
data-tooltip="{{tr "ClickToCopyTheInstallationCommand"}}">
data-tooltip="{{tr "ClickToCopy"}}">
<i class="windows icon"></i>
</button>
</td>