Browse Source

Security fixes

master
Leonie 1 week ago
parent
commit
879cdedc82
9 changed files with 31 additions and 18726 deletions
  1. +1
    -1
      .vscode/settings.json
  2. +1
    -1
      config.xml
  3. +14
    -14
      www/app.js
  4. +8
    -18701
      www/jquery-ui.js
  5. +2
    -4
      www/jquery.js
  6. +1
    -1
      www/player.js
  7. +1
    -1
      www/register.js
  8. +1
    -1
      www/views/settingsview.html
  9. +2
    -2
      www/welcome.js

+ 1
- 1
.vscode/settings.json View File

@@ -1,3 +1,3 @@
{
"python.pythonPath": "C:\\Users\\koyu\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe"
"python.pythonPath": "/usr/bin/python3"
}

+ 1
- 1
config.xml View File

@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.Sommerlichter.nordcast" version="1.9.3" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<widget id="com.Sommerlichter.nordcast" version="1.9.4" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<name>Nordcast</name>
<description>
A new podcast app

+ 14
- 14
www/app.js View File

@@ -203,7 +203,7 @@ function drr2() {
loadview();
}
reloaded = false;
}).error(function() {
}).fail(function() {
if (localStorage.getItem("uuid") === "dummy") {
location.href = "index.html#mode=offline";
}
@@ -390,7 +390,7 @@ function drr2() {
$("#button__follow").show();
}
}
}).error(function() {
}).fail(function() {
$("#button__follow").hide();
$("#button__unfollow").hide();
});
@@ -700,7 +700,7 @@ function drr2() {
$("#button__follow").show();
}
}
}).error(function() {
}).fail(function() {
$("#button__follow").hide();
$("#button__unfollow").hide();
});
@@ -744,12 +744,12 @@ function drr2() {
$("#button__follow").show();
}
}
}).error(function() {
}).fail(function() {
$("#button__follow").hide();
$("#button__unfollow").hide();
});
});
}).error(function() {
}).fail(function() {
$("#view__cast").html("<br /><br /><h1 style=\"text-align:center;\" id=\"error__nocast\">This podcast is unavailable</h1>");
$("#view__cast").show();
});
@@ -1101,7 +1101,7 @@ function drr2() {
alert("Failed to send report. Now returning to main app.");
location.href = "app.html#view=main";
}
}).error(function() {
}).fail(function() {
alert("Failed to send report. Now returning to main app.");
location.href = "app.html#view=main";
});
@@ -1173,7 +1173,7 @@ function drr2() {
} else {
$("#profile__picture").hide();
}
}).error(function() {
}).fail(function() {
$("#profile__picture").hide();
});
$.get("views/mainview.html", function(data) {
@@ -1442,7 +1442,7 @@ function drr2() {
});
}
}
}).error(function() {
}).fail(function() {
$.get("views/mainview.html", function(data) {
$("#view__main").html(data);
$("#text__username").hide();
@@ -1510,7 +1510,7 @@ function drr2() {
$("#section__originals").hide();
$("#text__originals").hide();
}
}).error(function() {
}).fail(function() {
$("#section__originals").hide();
$("#text__originals").hide();
});
@@ -1575,7 +1575,7 @@ function drr2() {
$("#section__originals").hide();
$("#text__originals").hide();
}
}).error(function() {
}).fail(function() {
$("#section__featured").hide();
$("#text__featured").hide();
});
@@ -1634,7 +1634,7 @@ function drr2() {
$("#section__originals").hide();
$("#text__originals").hide();
}
}).error(function() {
}).fail(function() {
$("#section__featured").hide();
$("#text__featured").hide();
});
@@ -1652,7 +1652,7 @@ function drr2() {
$("#section__originals").hide();
$("#text__originals").hide();
}
}).error(function() {
}).fail(function() {
$("#section__originals").hide();
$("#text__originals").hide();
});
@@ -1717,7 +1717,7 @@ function drr2() {
$("#section__originals").hide();
$("#text__originals").hide();
}
}).error(function() {
}).fail(function() {
$("#section__featured").hide();
$("#text__featured").hide();
});
@@ -1737,7 +1737,7 @@ function drr2() {
} else {
$("#profile__picture").hide();
}
}).error(function() {
}).fail(function() {
$("#profile__picture").hide();
});


+ 8
- 18701
www/jquery-ui.js
File diff suppressed because it is too large
View File


+ 2
- 4
www/jquery.js
File diff suppressed because it is too large
View File


+ 1
- 1
www/player.js View File

@@ -576,7 +576,7 @@ function playcast(file, secret, title, author, podcover, feed, feedtitle) {
}
}
}
}).error(function() {
}).fail(function() {
if (localStorage.getItem("uuid") !== "dummy") {
if (findGetParameter("time") !== null) {
player.currentTime = Number(findGetParameter("time"));

+ 1
- 1
www/register.js View File

@@ -32,7 +32,7 @@ $(document).ready(function() {
$("#submit__register").removeAttr("disabled");
$("#error__register").show();
}
}).error(function() {
}).fail(function() {
$("#submit__register").html($("#submit__register").html().replace("<img src=\"loading.svg\" height=\"16\" style=\"margin-top:-3px;\">", ""));
$("#submit__register").removeAttr("disabled");
$("#error__register").show();

+ 1
- 1
www/views/settingsview.html View File

@@ -6,6 +6,6 @@
<p><span id="text__darkmode">Enable dark mode</span> <img src="darth.png" id="starwars" class="emoji"> <input id="cdark__mode" type="checkbox"></p>
<br />
<h2 id="text__about">About</h2>
<p>Nordcast <span id="version">1.9.3</span></p>
<p>Nordcast <span id="version">1.9.4</span></p>
<p><a href="#" onclick="window.open('https://nordcast.app', '_system'); return false;" id="text__website">Website</a> | <a href="#" onclick="window.open('https://git.koyu.space/koyu/nordcast', '_system'); return false;" id="text__sourcecode">Source code</a></p>
<p>&copy; koyu.space 2020</p>

+ 2
- 2
www/welcome.js View File

@@ -26,7 +26,7 @@ $(document).ready(function() {
if (localStorage.getItem("uuid") === "dummy") {
location.href = "app.html#view=main";
}
}).error(function() {
}).fail(function() {
if (localStorage.getItem("uuid") === "dummy") {
location.href = "index.html#mode=offline";
} else {
@@ -95,7 +95,7 @@ $(document).ready(function() {
$("#kslogin").html(oldHTML);
$("#welcome__error").show();
}
}).error(function() {
}).fail(function() {
$("#kslogin").removeAttr("disabled");
$("#kslogin").html(oldHTML);
$("#welcome__error").show();

Loading…
Cancel
Save