Add SSH Key Management
This commit is contained in:
parent
ef76844922
commit
bcd1805001
62 changed files with 1004 additions and 188 deletions
|
|
@ -1 +1,6 @@
|
|||
/* nothing for now */
|
||||
/* textarea on the /user/ssh/add form */
|
||||
textarea#key {
|
||||
width: 50%;
|
||||
height: 10em;
|
||||
resize: both;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
// nothing for now
|
||||
import "~/src/lib/copy"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
.copy {
|
||||
user-select: all;
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import "./index.css"
|
||||
|
||||
document.querySelectorAll('.copy').forEach((elem: Element) => {
|
||||
elem.addEventListener('click', () => {
|
||||
if (!navigator.clipboard) return;
|
||||
navigator.clipboard.writeText((elem as HTMLElement).innerText);
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue