diff --git a/Jellyfin.Plugin.Template/Configuration/configPage.html b/Jellyfin.Plugin.Template/Configuration/configPage.html index 02d1d8a..640a863 100644 --- a/Jellyfin.Plugin.Template/Configuration/configPage.html +++ b/Jellyfin.Plugin.Template/Configuration/configPage.html @@ -45,24 +45,26 @@ 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(); ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) { - $('#Options').val(config.Options).change(); - $('#AnInteger').val(config.AnInteger).change(); - document.getElementById('TrueFalseSetting').checked = config.TrueFalseSetting; - $('#AString').val(config.AString).change(); - 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(); + config.Options = document.querySelector('#Options').value; + config.AnInteger = document.querySelector('#AnInteger').value; + config.TrueFalseSetting = document.querySelector('#TrueFalseSetting').checked; + config.AString = document.querySelector('#AString').value; ApiClient.updatePluginConfiguration(TemplateConfig.pluginUniqueId, config).then(function (result) { Dashboard.processPluginConfigurationUpdateResult(result); }); diff --git a/Jellyfin.Plugin.Template/Jellyfin.Plugin.Template.csproj b/Jellyfin.Plugin.Template/Jellyfin.Plugin.Template.csproj index cb721f6..5e75639 100644 --- a/Jellyfin.Plugin.Template/Jellyfin.Plugin.Template.csproj +++ b/Jellyfin.Plugin.Template/Jellyfin.Plugin.Template.csproj @@ -1,7 +1,7 @@ - netstandard2.1 + net5.0 Jellyfin.Plugin.Template 1.0.0.0 1.0.0.0 diff --git a/README.md b/README.md index 1fdff16..734ab14 100644 --- a/README.md +++ b/README.md @@ -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 -- [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: @@ -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 - **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 - **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... diff --git a/build.yaml b/build.yaml index 36cc605..ed3ed03 100644 --- a/build.yaml +++ b/build.yaml @@ -2,7 +2,8 @@ name: "Template" guid: "eb5d7894-8eef-4b36-aa6f-5d124e828ce1" version: "1.0.0.0" -targetAbi: "10.6.0.0" +targetAbi: "10.7.0.0" +framework: "net5.0" overview: "Short description about your plugin" description: > This is a longer description that can span more than one