mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-19 10:45:22 +01:00
18061af490
Rearrange the clone panel to use less horizontal space. The following changes have been made to achieve this: - Moved everything into the dropdown menu - Moved the HTTPS/SSH Switch to a separate line - Moved the "Clone in VS Code"-Button up and added a divider - Named the dropdown button "Code", added appropriate icon --------- Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
8 lines
216 B
TypeScript
8 lines
216 B
TypeScript
import {toOriginUrl} from '../utils/url.ts';
|
|
|
|
window.customElements.define('origin-url', class extends HTMLElement {
|
|
connectedCallback() {
|
|
this.textContent = toOriginUrl(this.getAttribute('data-url'));
|
|
}
|
|
});
|