forked from xiaoyi510/rustdesk-api-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
due to cgo goreleaser cannot build mutliplatform
- Loading branch information
Showing
7 changed files
with
158 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
Copyright (c) 2024, Ronan Le Meillat | ||
All rights reserved. | ||
--> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<title>Client download</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<style> | ||
body { | ||
background-color: black; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.logo-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.logo-main { | ||
width: 90%; | ||
max-width: 140px; | ||
} | ||
|
||
.logo-sub { | ||
width: 60%; | ||
max-width: 84px; | ||
/* 60% de 140px */ | ||
padding: 10px; | ||
} | ||
|
||
@media (min-width: 600px) { | ||
.logo-main { | ||
width: 140px; | ||
} | ||
|
||
.logo-sub { | ||
width: 84px; | ||
} | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class="logo-container"> | ||
<img class="logo-main" src="images/logo.svg" alt="Logo principal"> | ||
<div> | ||
<a id="windows64"><img class="logo-sub" src="images/windows.svg" alt="Logo Windows"></a> | ||
<a id="osx"><img class="logo-sub" src="images/apple.svg" alt="Logo Apple"></a> | ||
</div> | ||
</div> | ||
</body> | ||
<script> | ||
window.onload = function () { | ||
fetch('/api/software/client-download-link/w64') | ||
.then(response => response.json()) | ||
.then(data => { | ||
document.getElementById('windows64').href = data.url; | ||
}); | ||
|
||
fetch('/api/software/client-download-link/osx') | ||
.then(response => response.json()) | ||
.then(data => { | ||
document.getElementById('osx').href = data.url; | ||
}); | ||
}; | ||
</script> | ||
|
||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.