This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
const isClicked = ref(false)
|
||||
const copyToClipBoard = () => {
|
||||
navigator.clipboard
|
||||
.writeText('curl -sL getdweb.valere.dev | sudo bash')
|
||||
.writeText('curl -sL https://raw.githubusercontent.com/docker-web/docker-web/master/install.sh | sudo bash')
|
||||
.then(() => {
|
||||
isClicked.value = true
|
||||
setTimeout(() => {
|
||||
@@ -15,8 +15,9 @@ const copyToClipBoard = () => {
|
||||
<template>
|
||||
<section class="py-4 sm:flex justify-center items-center">
|
||||
<div
|
||||
class="font-mono bg-neutral-900 text-neutral-50 rounded-xl flex justify-between items-center p-4 border border-transparent text-base shadow-primary-700 relative">
|
||||
<span class="select-all"> curl -L https://raw.githubusercontent.com/docker-web/docker-web/master/install.sh | sudo
|
||||
class="overflow-hidden font-mono bg-neutral-900 text-neutral-50 rounded-xl flex justify-between items-center p-4 border border-transparent text-base shadow-primary-700 relative">
|
||||
<span class="max-w-72 whitespace-nowrap overflow-hidden select-all"> curl -L
|
||||
https://raw.githubusercontent.com/docker-web/docker-web/master/install.sh | sudo
|
||||
bash </span>
|
||||
<SvgClipboard class="bg-red ml-4 cursor-pointer" :class="{ 'animate-ping': isClicked }"
|
||||
@click="copyToClipBoard" />
|
||||
|
||||
Reference in New Issue
Block a user