mirror of
https://github.com/OpenFusionProject/Client.git
synced 2024-11-24 06:11:04 +00:00
Compare commits
No commits in common. "323b5a338502b3d011fe7b7925263ffa36762c65" and "1eee35b230a918ae79e616fe78e5d430e928375d" have entirely different histories.
323b5a3385
...
1eee35b230
@ -65,12 +65,6 @@ body {
|
|||||||
right: 8px;
|
right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#of-about-flash-div {
|
|
||||||
position: fixed;
|
|
||||||
bottom: 4px;
|
|
||||||
right: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#of-config-button-div {
|
#of-config-button-div {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 4px;
|
bottom: 4px;
|
||||||
@ -97,18 +91,6 @@ body {
|
|||||||
background-repeat: repeat;
|
background-repeat: repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-check-input {
|
|
||||||
width: 25px;
|
|
||||||
height: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-check-label {
|
|
||||||
height: 25px;
|
|
||||||
margin-top: 5px;
|
|
||||||
margin-left: 10px;
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#of-aboutmodal > .modal-dialog > .modal-content {
|
#of-aboutmodal > .modal-dialog > .modal-content {
|
||||||
background-color: #093363;
|
background-color: #093363;
|
||||||
border-color: #6699ff;
|
border-color: #6699ff;
|
||||||
@ -210,19 +192,3 @@ button > i {
|
|||||||
background: #000;
|
background: #000;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes pulse {
|
|
||||||
0% {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
50% {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.pulsing {
|
|
||||||
animation: pulse 2s infinite;
|
|
||||||
}
|
|
||||||
|
@ -80,36 +80,6 @@ function setAppVersionText() {
|
|||||||
$("#of-aboutversionnumber").text("Version " + getAppVersion());
|
$("#of-aboutversionnumber").text("Version " + getAppVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkForNewAppVersion() {
|
|
||||||
$("#of-about-button").removeClass("pulsing");
|
|
||||||
setAppVersionText();
|
|
||||||
if (config["autoupdate-check"] === true) {
|
|
||||||
$.getJSON(
|
|
||||||
"https://api.github.com/repos/OpenFusionProject/OpenFusionClient/releases/latest",
|
|
||||||
{},
|
|
||||||
function (data) {
|
|
||||||
$.each(data, function (index, element) {
|
|
||||||
if (index === "tag_name" && element > getAppVersion()) {
|
|
||||||
console.log("New version available: " + element);
|
|
||||||
var downloadPage =
|
|
||||||
"https://github.com/OpenFusionProject/OpenFusionClient/releases/latest";
|
|
||||||
$("#of-aboutversionnumber").html(
|
|
||||||
"Version " +
|
|
||||||
getAppVersion() +
|
|
||||||
`<br>A new version is available! ` +
|
|
||||||
`Click <a href="#" onclick='remote.require("shell").openExternal("` +
|
|
||||||
downloadPage +
|
|
||||||
`");'>here</a> to download.`
|
|
||||||
);
|
|
||||||
$("#of-about-button").addClass("pulsing");
|
|
||||||
return false; // break out of loop early
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function validateServerSave(modalName) {
|
function validateServerSave(modalName) {
|
||||||
// works everytime a key is entered into the server save form
|
// works everytime a key is entered into the server save form
|
||||||
var descInput = document.getElementById(modalName + "server-descinput");
|
var descInput = document.getElementById(modalName + "server-descinput");
|
||||||
@ -412,7 +382,6 @@ function loadConfig() {
|
|||||||
offlineRoot = config["offline-cache-location"] || offlineRootDefault;
|
offlineRoot = config["offline-cache-location"] || offlineRootDefault;
|
||||||
$("#editconfig-offlinecachelocation:text").val(offlineRoot);
|
$("#editconfig-offlinecachelocation:text").val(offlineRoot);
|
||||||
|
|
||||||
checkForNewAppVersion();
|
|
||||||
validateCacheLocation();
|
validateCacheLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
defaults/config.json
vendored
2
defaults/config.json
vendored
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"autoupdate-check": true,
|
"autoupdate-check": true,
|
||||||
"cache-swapping": true,
|
"cache-swapping": true,
|
||||||
"enable-offline-cache": true,
|
"enable-offline-cache": false,
|
||||||
"verify-offline-cache": false,
|
"verify-offline-cache": false,
|
||||||
"last-version-initialized": "1.6"
|
"last-version-initialized": "1.6"
|
||||||
}
|
}
|
||||||
|
75
index.html
75
index.html
@ -1,4 +1,4 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
@ -490,63 +490,40 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form
|
<form id="editconfig-form" class="needs-validation">
|
||||||
id="editconfig-form"
|
<label for="editconfig-autoupdate"
|
||||||
class="needs-validation form-group"
|
>Automatically update the client:</label
|
||||||
>
|
><input
|
||||||
<div class="form-check form-row">
|
class="form-control form-row w-75"
|
||||||
<input
|
|
||||||
class="form-check-input"
|
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="editconfig-autoupdate"
|
id="editconfig-autoupdate"
|
||||||
/>
|
/>
|
||||||
<label
|
<label for="editconfig-cacheswapping"
|
||||||
class="form-check-label"
|
>Swap game caches to avoid unnecessary
|
||||||
for="editconfig-autoupdate"
|
downloads:</label
|
||||||
>Automatically check for updates</label
|
><input
|
||||||
>
|
class="form-control form-row w-75"
|
||||||
</div>
|
|
||||||
<div class="form-check form-row">
|
|
||||||
<input
|
|
||||||
class="form-check-input"
|
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="editconfig-cacheswapping"
|
id="editconfig-cacheswapping"
|
||||||
/>
|
/>
|
||||||
<label
|
<label for="editconfig-enableofflinecache"
|
||||||
class="form-check-label"
|
>Use offline caches when they are
|
||||||
for="editconfig-cacheswapping"
|
available:</label
|
||||||
>Swap game caches to avoid unnecessary
|
><input
|
||||||
downloads</label
|
class="form-control form-row w-75"
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div class="form-check form-row">
|
|
||||||
<input
|
|
||||||
class="form-check-input"
|
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="editconfig-enableofflinecache"
|
id="editconfig-enableofflinecache"
|
||||||
/>
|
/>
|
||||||
<label
|
<label for="editconfig-verifyofflinecache"
|
||||||
class="form-check-label"
|
>Verify offline caches every time they are
|
||||||
for="editconfig-enableofflinecache"
|
loaded:</label
|
||||||
>Use offline caches when they are
|
><input
|
||||||
available</label
|
class="form-control form-row w-75"
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div class="form-check form-row mb-3">
|
|
||||||
<input
|
|
||||||
class="form-check-input"
|
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="editconfig-verifyofflinecache"
|
id="editconfig-verifyofflinecache"
|
||||||
/>
|
/>
|
||||||
<label
|
|
||||||
class="form-check-label"
|
|
||||||
for="editconfig-verifyofflinecache"
|
|
||||||
>Verify offline caches every time they
|
|
||||||
are loaded</label
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<label for="editconfig-offlinecachelocation"
|
<label for="editconfig-offlinecachelocation"
|
||||||
><h5>Offline Cache Location:</h5></label
|
>Select Offline Cache Location:</label
|
||||||
>
|
>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<input
|
<input
|
||||||
@ -557,9 +534,8 @@
|
|||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="btn btn-primary ml-1"
|
class="btn btn-primary mb-2 ml-1"
|
||||||
onclick="browseOfflineCache()"
|
onclick="browseOfflineCache()"
|
||||||
title="Browse"
|
|
||||||
>
|
>
|
||||||
<i class="fas fa-folder"></i>
|
<i class="fas fa-folder"></i>
|
||||||
</button>
|
</button>
|
||||||
@ -937,11 +913,6 @@
|
|||||||
<i class="fas fa-info-circle"></i>
|
<i class="fas fa-info-circle"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="of-about-flash-div" style="z-index: -1">
|
|
||||||
<button class="btn btn-warning mr-1" tabindex="-1" type="button">
|
|
||||||
<i class="fas fa-info-circle"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<div id="client"></div>
|
<div id="client"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user