Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions assets/web/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h1 class="my-4">Configuration</h1>
<option value="ds4">DS4 (PS4)</option>
<option value="x360">X360 (Xbox 360)</option>
</select>
<div class="form-text">Automatically configure port forwarding</div>
<div class="form-text">Choose which type of gamepad to Emulate on the host</div>
</div>
<!--Ping Timeout-->
<div class="mb-3">
Expand Down Expand Up @@ -186,7 +186,8 @@ <h1 class="my-4">Configuration</h1>
The display modes advertised by Sunshine<br />
Some versions of Moonlight, such as Moonlight-nx (Switch), rely on
this list to ensure that the requested resolutions and fps are
supported.
supported.<br>
This setting does <b>not</b> change how the screen stream is sent to Moonlight
</div>
</div>
<!-- Mapping Key AltRight to Key Windows -->
Expand Down Expand Up @@ -628,6 +629,9 @@ <h1 class="my-4">Configuration</h1>
placeholder="superfast"
v-model="config.sw_preset"
/>
<div class="form-text">
Available Values: ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow
</div>
</div>
<div class="mb-3">
<label for="sw_tune" class="form-label">SW Tune</label>
Expand All @@ -637,6 +641,15 @@ <h1 class="my-4">Configuration</h1>
placeholder="zerolatency"
v-model="config.sw_tune"
/>
<div class="form-text">
Available Tune settings: <br>
film - use for high quality movie content; lowers deblocking<br>
animation - good for cartoons; uses higher deblocking and more reference frames<br>
grain - preserves the grain structure in old, grainy film material<br>
stillimage - good for slideshow-like content<br>
fastdecode - allows faster decoding by disabling certain filters<br>
zerolatency - good for fast encoding and low-latency streaming<br>
</div>
</div>
</div>
<!--Nvidia Encoder Settings-->
Expand Down
11 changes: 11 additions & 0 deletions assets/web/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,14 @@
</nav>
</body>
</html>

<script>
let el = document.querySelector("a[href='"+document.location.pathname+"']");
if(el)el.classList.add("active")
</script>

<style>
.nav-link.active {
font-weight: 500;
}
</style>
4 changes: 2 additions & 2 deletions assets/web/pin.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ <h1 class="my-4">PIN Pairing</h1>
fetch("/api/pin", { method: "POST", body: b })
.then((response) => response.json())
.then((response) => {
if (response.status) {
if (response.status.toString().toLowerCase() === "true") {
document.querySelector(
"#status"
).innerHTML = `<div class="alert alert-success" role="alert">Success! Please check Moonlight to continue</div>`;
} else {
document.querySelector(
"#status"
).innerHTML = `<div class="alert alert-danger" role="alert">PIN does not match, please check if it's typed correctly</div>`;
).innerHTML = `<div class="alert alert-danger" role="alert">Pairing Failed: Check if the PIN is typed correctly</div>`;
}
});
});
Expand Down
5 changes: 2 additions & 3 deletions assets/web/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
<header>
<h1 class="mb-0">Welcome to Sunshine!</h1>
<p class="mb-0 align-self-start">
Before Getting Started, write down below these credentials
Before Getting Started, we need you to make a new username and password for accessing the Web UI.
</p>
</header>
<div class="alert alert-warning">
These Credentials down below are needed to access the rest of the
application.<br />
The credentials below are needed to access Sunshine's Web UI.<br />
Keep them safe, since <b>you will never see them again!</b>
</div>
<form @submit.prevent="save">
Expand Down