-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
263 additions
and
35 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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.
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,124 @@ | ||
<html> | ||
<head> | ||
<title>app - The Cross-Platform Package Management Assistant with Super Powers!</title> | ||
<link rel="icon" type="image/icon" href="./icon.png" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@200&display=swap" rel="stylesheet"> | ||
<script> | ||
// Get the <pre> element | ||
const preTag = document.getElementById("icmd"); | ||
|
||
// Create a copy button element | ||
const copyButton = document.createElement("span"); | ||
copyButton.innerText = "Copy"; | ||
copyButton.classList.add("copy-button"); | ||
|
||
// Append the copy button to the <pre> tag | ||
preTag.appendChild(copyButton); | ||
|
||
// Add click event listener to the copy button | ||
copyButton.addEventListener("click", () => { | ||
// Hide the copy button temporarily | ||
copyButton.style.display = "none"; | ||
|
||
// Create a range and select the text inside the <pre> tag | ||
const range = document.createRange(); | ||
range.selectNode(preTag); | ||
window.getSelection().removeAllRanges(); | ||
window.getSelection().addRange(range); | ||
|
||
try { | ||
// Copy the selected text to the clipboard | ||
document.execCommand("copy"); | ||
|
||
// Alert the user that the text has been copied | ||
copyButton.innerText = "Copied!"; | ||
setTimeout(function(){ | ||
copyButton.innerText = "Copy"; | ||
}, 2000); | ||
} catch (err) { | ||
console.error("Unable to copy text:", err); | ||
} finally { | ||
// Show the copy button again | ||
copyButton.style.display = "inline"; | ||
|
||
// Deselect the text | ||
window.getSelection().removeAllRanges(); | ||
} | ||
}); | ||
</script> | ||
</head> | ||
<style> | ||
html, body { | ||
margin: 0px; | ||
padding: 0px; | ||
background-color: #262833; | ||
color: #f5f5f5; | ||
height: 100%; | ||
width: 100vw; | ||
} | ||
div { | ||
margin: 0; | ||
text-align: center; | ||
} | ||
p { | ||
font-family: 'Nunito', sans-serif; | ||
font-size: 14pt; | ||
} | ||
.banner { | ||
margin: 0; | ||
margin-top: 15%; | ||
max-width: 90vw; | ||
} | ||
.codeblock{ | ||
position: relative; | ||
text-align: center; | ||
align-content: center; | ||
} | ||
.logo { | ||
margin: 0; | ||
width: 50px; | ||
} | ||
pre { | ||
display: inline-block; | ||
background: #4d4d4d; | ||
color: #f5f5f5; | ||
padding: 20px; | ||
font-size: 15px; | ||
word-wrap: break-word; | ||
white-space: pre-wrap; | ||
border: 1px solid #e6e7e9; | ||
border-radius: 15px; | ||
max-width: 800px; | ||
text-align: center; | ||
} | ||
.copy-button { | ||
position: absolute; | ||
top: 2px; | ||
right: 10px; | ||
cursor: pointer; | ||
color: #fff; | ||
background: gray; | ||
border-radius: 0.5em; | ||
padding: 2px 7px; | ||
} | ||
|
||
.copy-button:hover { | ||
color: #000; | ||
} | ||
</style> | ||
<body> | ||
<div> | ||
<img class="banner" src="banner.jpg"> | ||
</div> | ||
<div class="codeblock"> | ||
<p>copy and paste the below command into your terminal to install:</p> | ||
<pre id="icmd">bash <(curl -sL https://hkdb.github.io/app/getapp.sh)</pre> | ||
</div> | ||
<div> | ||
<p>learn more about app at:</p> | ||
<a target="_blank" href="https://github.com/hkdb/app"><img class="logo" src="github.png"></a> | ||
</div> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,8 +1,18 @@ | ||
## INSTALL | ||
|
||
1. Make sure all the package managers you want app to manage are installed and configured properly | ||
Run the below command in the terminal: | ||
|
||
``` | ||
bash <(curl -sL https://hkdb.github.io/app/getapp.sh) | ||
``` | ||
|
||
You can also install app by compiling yourself: | ||
|
||
1. Make sure all the package managers you want app to manage and are installed and configured properly | ||
2. Install `git` manually if it's not already installed | ||
3. cd into a directory of choice where you want to keep the app repo. If you are an end user and can't decide, I suggest `~/.config` (`mkdir ~/.config` if it doesn't already exist) | ||
4. `git clone https://github.com/hkdb/app.git` | ||
4. git clone https://github.com/hkdb/app.git` | ||
5. `cd app` | ||
6. `./install.sh` # FreeBSD requires bash to be installed | ||
6. Optionally `git checkout <version>` | ||
7. `./install.sh` # Note, for FreeBSD, bash must first be installed. | ||
|
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
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
Oops, something went wrong.