1 Commits

Author SHA1 Message Date
Mister Rajoy
f095e19441 Move code to the top 2021-04-23 01:31:35 +02:00
14 changed files with 1813 additions and 11459 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<IsPackable>true</IsPackable>
<AssemblyVersion>2.0.1</AssemblyVersion>
<FileVersion>2.0.1</FileVersion>
<AssemblyVersion>1.5.0</AssemblyVersion>
<FileVersion>1.5.0</FileVersion>
<Authors />
<Company />
</PropertyGroup>
@@ -16,9 +16,6 @@
<ItemGroup>
<None Remove="Configuration\configurationpage.html" />
<EmbeddedResource Include="Configuration\configurationpage.html" />
<None Remove="Configuration\fontpicker.js" />
<EmbeddedResource Include="Configuration\fontpicker.js" />
</ItemGroup>
<ItemGroup>

View File

@@ -34,16 +34,6 @@ namespace Jellyfin.Plugin.SkinManager
{
Name = "SkinManager",
EmbeddedResourcePath = GetType().Namespace + ".Configuration.configurationpage.html"
},
new PluginPageInfo
{
Name = "fontpicker.js",
EmbeddedResourcePath = GetType().Namespace + ".Configuration.fontpicker.js"
},
new PluginPageInfo
{
Name = "fontpicker.css",
EmbeddedResourcePath = GetType().Namespace + ".Configuration.jquery.fontpicker.min.css"
}
};
}

View File

@@ -1,5 +1,5 @@
<h1 align="center">Jellyfin Skin Manager Plugin</h1>
<h3 align="center">Part of the <a href="https://jellyfin.org">Jellyfin Project</a></h3>
<h3 align="center">Part of the <a href="https://jellyfin.media">Jellyfin Project</a></h3>
<p align="center">
Jellyfin Skin Manager is a plugin that helps you to download and install skins;

View File

@@ -1,10 +1,3 @@
@ECHO OFF
@echo This will not work if you have installed jellyfin to a custom location
set /p ask = Enter 'X' to continue or 'C' to cancel:
if "%ask%" neq "x" goto:eof
@echo starting install...
dotnet publish --configuration Release --output bin
move bin\Jellyfin.Plugin.SkinManager.dll C:\ProgramData\Jellyfin\Server\plugins\SkinManager
This will not work if you have installed jellyfin to a custom location
dotnet publish --configuration Release --output bin
move bin\Jellyfin.Plugin.SkinManager.dll C:\ProgramData\Jellyfin\Server\plugins\SkinManager

File diff suppressed because it is too large Load Diff

View File

@@ -1,30 +0,0 @@
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.js" integrity="sha512-n/4gHW3atM3QqRcbCn6ewmpxcLAHGaDjpEBu4xZd47N0W2oQ+6q7oc3PXstrJYXcbNU1OHdQ1T7pAP+gi5Yu8g==" crossorigin="anonymous"></script>
<script src="../js/json__compile.js"></script>
</head>
<body>
<div>
<form>
<input type="text" id="name" name="name">
<input type="text" id="author" name="author">
<input type=" text " id="desc" name="desc">
<input type=" text " id="css" name="css">
<h2>Images</h2>
<input type=" text " id="login" name="login">
<input type=" text " id="home" name="home">
<input type=" text " id="lib" name="lib">
<input type=" text " id="title" name="title">
<h2>Categories</h2>
<input type="button" id="add" value="Add a foryour options categorie" onclick="add__option()">
<input type="button" id="no_op" value="Don't have any options/addons?" onclick="no__option()">
<div id="cat"></div>
<input type="hidden" value="1" id="total_chq">
<input type="button" onclick="createJSON()" value="save" />
</form>
</div>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

View File

@@ -1,88 +0,0 @@
function add__option() {
window.new_chq_no = parseInt($('#total_chq').val()) + 1;
window.new_input = "<h3>Categorie Name</h3><input type='text' id='cat_name'><div id='op_cont'><div class='inner'><h4>option name</h4><input type='text' id='op_name'><h4>option type</h4><input type='text' id='op_type'><h4>option description</h4><input type='text' id='op_desc'><h4>option css</h4><input type='text' id='op_css'></div><input type='button' value='Add a new option'></div>";
$('#cat').append(new_input);
$('#total_chq').val(new_chq_no);
}
function create_option_json() {
var option__name = document.querySelectorAll('#op_name');
option__name.forEach(option__name => function() {
var json__options = {
"categories": [{
"name": "Default",
"options": [{
"name": name
}]
}]
}
})
var categories = {}
}
function no__option() {
$('#no_op').on('click', function() {
var json__options = {
"categories": [{
"name": "Default",
"options": []
}]
}
})
}
function createJSON() {
var name = document.getElementById("name").value;
var author = document.getElementById("author").value;
var desc = document.getElementById("desc").value;
var CSS = document.getElementById("css").value;
var login = document.getElementById("login").value;
var home = document.getElementById("home").value;
var lib = document.getElementById("lib").value;
var title = document.getElementById("title").value;
var json__compiled = {
"name ": name,
"author ": author,
"description ": desc,
"defaultCss ": CSS,
"previews ": [{
"name ": "Login Page ",
"url ": login
},
{
"name ": "Home/Index Page ",
"url ": home
},
{
"name ": "Library Page ",
"url ": lib
},
{
"name ": "Title page ",
"url ": title
}
]
}
var json = JSON.stringify(json__compiled, null, 4);
json = [json];
var json__blob = new Blob(json, { type: "text/plain;charset=utf-8" });
var isIE = false || !!document.documentMode;
if (isIE) {
window.navigator.msSaveBlob(json__blob, name + ".json");
} else {
var url = window.URL || window.webkitURL;
link = url.createObjectURL(json__blob);
var a = document.createElement("a");
a.download = name + ".json";
a.href = link;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
}
}