🚸 add tooltip for secret copy button
This commit is contained in:
parent
7d8fe82aa2
commit
b6a70cf32a
4
resource/l10n/en-US.toml
vendored
4
resource/l10n/en-US.toml
vendored
@ -298,8 +298,8 @@ other = "Version"
|
|||||||
[OneKeyInstall]
|
[OneKeyInstall]
|
||||||
other = "One-click installation"
|
other = "One-click installation"
|
||||||
|
|
||||||
[ClickToCopyTheInstallationCommand]
|
[ClickToCopy]
|
||||||
other = "Click To Copy Install Command"
|
other = "Click To Copy"
|
||||||
|
|
||||||
[DeleteServer]
|
[DeleteServer]
|
||||||
other = "Delete Server"
|
other = "Delete Server"
|
||||||
|
4
resource/l10n/es-ES.toml
vendored
4
resource/l10n/es-ES.toml
vendored
@ -298,8 +298,8 @@ other = "Número de versión"
|
|||||||
[OneKeyInstall]
|
[OneKeyInstall]
|
||||||
other = "Instalación con un solo clic"
|
other = "Instalación con un solo clic"
|
||||||
|
|
||||||
[ClickToCopyTheInstallationCommand]
|
[ClickToCopy]
|
||||||
other = "Haga clic para copiar el comando de instalación"
|
other = "Haga clic para copiar"
|
||||||
|
|
||||||
[DeleteServer]
|
[DeleteServer]
|
||||||
other = "Eliminar el servidor"
|
other = "Eliminar el servidor"
|
||||||
|
4
resource/l10n/zh-CN.toml
vendored
4
resource/l10n/zh-CN.toml
vendored
@ -298,8 +298,8 @@ other = "版本号"
|
|||||||
[OneKeyInstall]
|
[OneKeyInstall]
|
||||||
other = "一键安装"
|
other = "一键安装"
|
||||||
|
|
||||||
[ClickToCopyTheInstallationCommand]
|
[ClickToCopy]
|
||||||
other = "点击复制安装命令"
|
other = "点击复制"
|
||||||
|
|
||||||
[DeleteServer]
|
[DeleteServer]
|
||||||
other = "删除主机"
|
other = "删除主机"
|
||||||
|
@ -43,19 +43,19 @@
|
|||||||
<td>{{$server.Host.Version}}</td>
|
<td>{{$server.Host.Version}}</td>
|
||||||
<td>{{$server.HideForGuest}}</td>
|
<td>{{$server.HideForGuest}}</td>
|
||||||
<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>
|
<i class="copy icon"></i>
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<button class="ui icon green mini button"
|
<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-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>
|
<i class="linux icon"></i>
|
||||||
</button>
|
</button>
|
||||||
<button class="ui icon green mini 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-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>
|
<i class="windows icon"></i>
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user