diff --git a/dotnet-template/content/.template.config/template.json b/dotnet-template/content/.template.config/template.json new file mode 100644 index 0000000..5f8778c --- /dev/null +++ b/dotnet-template/content/.template.config/template.json @@ -0,0 +1,23 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Jellyfin Team", + "classifications": [ "NetStandard", "Plugin", "Jellyfin" ], + "tags": { + "language": "C#", + "type":"project" + }, + "identity": "Jellyfin.Plugin", + "name": "Jellyfin Plugin template", + "shortName": "jellyfin-plugin", + "sourceName": "dotnet_template", + "symbols":{ + "pluginGuid":{ + "type": "generated", + "generator": "guid", + "replaces": "pluginguid", + "parameters": { + "format":"D" + } + } + } +} \ No newline at end of file diff --git a/dotnet-template/content/Configuration/PluginConfiguration.cs b/dotnet-template/content/Configuration/PluginConfiguration.cs new file mode 100644 index 0000000..de6c2fe --- /dev/null +++ b/dotnet-template/content/Configuration/PluginConfiguration.cs @@ -0,0 +1,24 @@ +using MediaBrowser.Model.Plugins; +namespace Jellyfin.Plugin.dotnet_template.Configuration +{ + public enum SomeOptions + { + OneOption, + AnotherOption + } + public class PluginConfiguration : BasePluginConfiguration + { + //This is where you should store configurable settings your plugin might need. + public bool TrueFalseSetting {get; set;} + public int AnInteger {get; set;} + public string AString {get; set;} + public SomeOptions Options {get; set;} + public PluginConfiguration() + { + Options = SomeOptions.AnotherOption; + TrueFalseSetting = true; + AnInteger = 5; + AString = "This is a string setting"; + } + } +} \ No newline at end of file diff --git a/dotnet-template/content/Configuration/configPage.html b/dotnet-template/content/Configuration/configPage.html new file mode 100644 index 0000000..ec3beeb --- /dev/null +++ b/dotnet-template/content/Configuration/configPage.html @@ -0,0 +1,98 @@ + + + +
+ +