Merge pull request #22 from jellyfin/10.7

Target 10.7
This commit is contained in:
Anthony Lavado 2020-12-03 17:05:20 -05:00 committed by GitHub
commit 4c759e0441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 20 deletions

View File

@ -45,24 +45,26 @@
pluginUniqueId: 'eb5d7894-8eef-4b36-aa6f-5d124e828ce1' pluginUniqueId: 'eb5d7894-8eef-4b36-aa6f-5d124e828ce1'
}; };
$('#TemplateConfigPage').on('pageshow', function () { document.querySelector('#TemplateConfigPage')
.addEventListener('pageshow', function(){
Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) {
document.querySelector('#Options').value = config.Options;
document.querySelector('#AnInteger').value = config.AnInteger;
document.querySelector('#TrueFalseSetting').checked = config.TrueFalseSetting;
document.querySelector('#AString').value = config.AString;
Dashboard.hideLoadingMsg();
});
})
document.querySelector('#TemplateConfigForm')
.addEventListener('submit', function() {
Dashboard.showLoadingMsg(); Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) { ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) {
$('#Options').val(config.Options).change(); config.Options = document.querySelector('#Options').value;
$('#AnInteger').val(config.AnInteger).change(); config.AnInteger = document.querySelector('#AnInteger').value;
document.getElementById('TrueFalseSetting').checked = config.TrueFalseSetting; config.TrueFalseSetting = document.querySelector('#TrueFalseSetting').checked;
$('#AString').val(config.AString).change(); config.AString = document.querySelector('#AString').value;
Dashboard.hideLoadingMsg();
});
});
$('#TemplateConfigForm').on('submit', function () {
Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) {
config.Options = $('#Options').val();
config.AnInteger = $('#AnInteger').val();
config.TrueFalseSetting = document.getElementById('TrueFalseSetting').checked;
config.AString = $('#AString').val();
ApiClient.updatePluginConfiguration(TemplateConfig.pluginUniqueId, config).then(function (result) { ApiClient.updatePluginConfiguration(TemplateConfig.pluginUniqueId, config).then(function (result) {
Dashboard.processPluginConfigurationUpdateResult(result); Dashboard.processPluginConfigurationUpdateResult(result);
}); });

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<RootNamespace>Jellyfin.Plugin.Template</RootNamespace> <RootNamespace>Jellyfin.Plugin.Template</RootNamespace>
<AssemblyVersion>1.0.0.0</AssemblyVersion> <AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion> <FileVersion>1.0.0.0</FileVersion>

View File

@ -4,7 +4,7 @@ Awesome! This guide is for you. Jellyfin plugins are written using the dotnet st
## 0. Things you need to get started ## 0. Things you need to get started
- [Dotnet Core SDK 2.2](https://dotnet.microsoft.com/download) - [Dotnet SDK 5.0](https://dotnet.microsoft.com/download)
- An editor of your choice. Some free choices are: - An editor of your choice. Some free choices are:
@ -133,7 +133,6 @@ Likewise you might need to get data and services from the Jellyfin core, Jellyfi
- **IBlurayExaminer** - Allows you to examine blu-ray folders - **IBlurayExaminer** - Allows you to examine blu-ray folders
- **IDtoService** - Allows you to create data transport objects, presumably to send to other plugins or to the core - **IDtoService** - Allows you to create data transport objects, presumably to send to other plugins or to the core
- **IIsoManager** - Allows the mounting and unmounting of ISO files
- **IJsonSerializer** - Allows you to use the main json serializer - **IJsonSerializer** - Allows you to use the main json serializer
- **ILibraryManager** - Allows you to directly access the media libraries without hopping through the API - **ILibraryManager** - Allows you to directly access the media libraries without hopping through the API
- **ILocalizationManager** - Allows you tap into the main localization engine which governs translations, rating systems, units etc... - **ILocalizationManager** - Allows you tap into the main localization engine which governs translations, rating systems, units etc...

View File

@ -2,7 +2,8 @@
name: "Template" name: "Template"
guid: "eb5d7894-8eef-4b36-aa6f-5d124e828ce1" guid: "eb5d7894-8eef-4b36-aa6f-5d124e828ce1"
version: "1.0.0.0" version: "1.0.0.0"
targetAbi: "10.6.0.0" targetAbi: "10.7.0.0"
framework: "net5.0"
overview: "Short description about your plugin" overview: "Short description about your plugin"
description: > description: >
This is a longer description that can span more than one This is a longer description that can span more than one