forked from reisxd/revanced-builder
-
Notifications
You must be signed in to change notification settings - Fork 54
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
8 changed files
with
165 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<title>Version Selector</title> | ||
<link href="../styles/fontawesome.css" rel="stylesheet" type="text/css" /> | ||
<link href="../styles/core.css" rel="stylesheet" type="text/css" /> | ||
<link href="../styles/apps.css" rel="stylesheet" type="text/css" /> | ||
<link href="../styles/dependencies.css" rel="stylesheet" type="text/css" /> | ||
<script src="../index.js"></script> | ||
<script src="../colors.js" defer></script> | ||
</head> | ||
|
||
<body> | ||
<div id="container"> | ||
<main> | ||
<header> | ||
<h1>Select the device you want to install ReVanced to</h1> | ||
<span>ReVanced Builder has detected that you have more than one device plugged in.<br>Please select the device ID that you want to install ReVanced.</span> | ||
</header> | ||
<div id="content--wrapper"> | ||
<div id="content"> | ||
<ul id="devices"></ul> | ||
</div> | ||
</div> | ||
</main> | ||
<footer> | ||
<i | ||
class="social-icon fa-brands fa-xl fa-github" | ||
onclick="openGitHub();" | ||
></i> | ||
<div style="margin-left: 10px"></div> | ||
<i | ||
class="social-icon fa-xl fa-solid fa-question-circle" | ||
onclick="openAbout();" | ||
></i> | ||
<div style="margin-left: 10px"></div> | ||
<i | ||
class="social-icon fa-xl fa-solid fa-palette" | ||
onclick="openColorPicker();" | ||
></i> | ||
<div class="theming"> | ||
<ul id="themecolor-picker"> | ||
<li> | ||
<span style="background: #4873b3 none repeat scroll 0% 0%"></span> | ||
</li> | ||
<li> | ||
<span | ||
style="background: #df0000bf none repeat scroll 0% 0%" | ||
></span> | ||
</li> | ||
<li> | ||
<span | ||
style="background: #605dbbb3 none repeat scroll 0% 0%" | ||
></span> | ||
</li> | ||
<li> | ||
<span | ||
style="background: #00e60069 none repeat scroll 0% 0%" | ||
></span> | ||
</li> | ||
<li> | ||
<span | ||
style="background: #0067fdc7 none repeat scroll 0% 0%" | ||
></span> | ||
</li> | ||
</ul> | ||
</div> | ||
<span class="right"></span> | ||
<button id="back" onclick="history.back()">Back</button> | ||
<button class="highlighted" id="continue" onclick="setDevice()"> | ||
Continue | ||
</button> | ||
</footer> | ||
</div> | ||
</body> | ||
<script> | ||
ws.onopen = () => getDevices(); | ||
</script> | ||
</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
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,11 @@ | ||
const getDeviceID = require('../utils/getDeviceID.js'); | ||
|
||
module.exports = async function (message, ws) { | ||
const deviceIds = await getDeviceID(); | ||
|
||
return ws.send(JSON.stringify({ | ||
event: 'devices', | ||
deviceIds | ||
})); | ||
}; | ||
|
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,4 @@ | ||
module.exports = async function (message, ws) { | ||
global.jarNames.deviceID = message.deviceId; | ||
}; | ||
|
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