mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-31 16:05:00 +00:00
chore(p2p): make commands easier to copy-paste (#3273)
chore(p2p): make box easier to copy-paste Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
bb6d06f0d1
commit
73c9b3598d
3 changed files with 54 additions and 21 deletions
|
@ -47,6 +47,16 @@
|
|||
preflight: false,
|
||||
},
|
||||
};
|
||||
function copyClipboard(token) {
|
||||
navigator.clipboard.writeText(token)
|
||||
.then(() => {
|
||||
console.log('Text copied to clipboard:', token);
|
||||
alert('Text copied to clipboard!');
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('Failed to copy token:', err);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<link href="/static/assets/fontawesome/css/fontawesome.css" rel="stylesheet" />
|
||||
<link href="/static/assets/fontawesome/css/brands.css" rel="stylesheet" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue