diff --git a/example-plugin/.editorconfig b/Jellyfin.Plugin.Template/.editorconfig similarity index 100% rename from example-plugin/.editorconfig rename to Jellyfin.Plugin.Template/.editorconfig diff --git a/example-plugin/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.Template/Configuration/PluginConfiguration.cs similarity index 67% rename from example-plugin/Configuration/PluginConfiguration.cs rename to Jellyfin.Plugin.Template/Configuration/PluginConfiguration.cs index 04175e5..3c38058 100644 --- a/example-plugin/Configuration/PluginConfiguration.cs +++ b/Jellyfin.Plugin.Template/Configuration/PluginConfiguration.cs @@ -1,5 +1,6 @@ using MediaBrowser.Model.Plugins; -namespace Jellyfin.Plugin.ExamplePlugin.Configuration + +namespace Jellyfin.Plugin.Template.Configuration { public enum SomeOptions { @@ -9,10 +10,10 @@ namespace Jellyfin.Plugin.ExamplePlugin.Configuration 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 bool TrueFalseSetting { get; set; } + public int AnInteger { get; set; } + public string AString { get; set; } + public SomeOptions Options { get; set; } public PluginConfiguration() { Options = SomeOptions.AnotherOption; @@ -21,4 +22,4 @@ namespace Jellyfin.Plugin.ExamplePlugin.Configuration AString = "This is a string setting"; } } -} \ No newline at end of file +} diff --git a/Jellyfin.Plugin.Template/Configuration/configPage.html b/Jellyfin.Plugin.Template/Configuration/configPage.html new file mode 100644 index 0000000..e6166b1 --- /dev/null +++ b/Jellyfin.Plugin.Template/Configuration/configPage.html @@ -0,0 +1,75 @@ + + + + + Template + + +
+
+
+
+
+ + +
+
+ + +
A Description
+
+
+ +
+
+ + +
Another Description
+
+
+ +
+
+
+
+ +
+ + diff --git a/example-plugin/example-jellyfin-plugin.csproj b/Jellyfin.Plugin.Template/Jellyfin.Plugin.Template.csproj similarity index 85% rename from example-plugin/example-jellyfin-plugin.csproj rename to Jellyfin.Plugin.Template/Jellyfin.Plugin.Template.csproj index 75156a9..3deeace 100644 --- a/example-plugin/example-jellyfin-plugin.csproj +++ b/Jellyfin.Plugin.Template/Jellyfin.Plugin.Template.csproj @@ -2,7 +2,7 @@ netstandard2.0 - Jellyfin.Plugin.ExamplePlugin + Jellyfin.Plugin.Template diff --git a/example-plugin/Plugin.cs b/Jellyfin.Plugin.Template/Plugin.cs similarity index 75% rename from example-plugin/Plugin.cs rename to Jellyfin.Plugin.Template/Plugin.cs index b2e1010..a50da7f 100644 --- a/example-plugin/Plugin.cs +++ b/Jellyfin.Plugin.Template/Plugin.cs @@ -1,17 +1,16 @@ using System; using System.Collections.Generic; -using Jellyfin.Plugin.ExamplePlugin.Configuration; +using Jellyfin.Plugin.Template.Configuration; using MediaBrowser.Common.Configuration; using MediaBrowser.Common.Plugins; using MediaBrowser.Model.Plugins; using MediaBrowser.Model.Serialization; -namespace Jellyfin.Plugin.ExamplePlugin +namespace Jellyfin.Plugin.Template { - public class Plugin : BasePlugin, - IHasWebPages + public class Plugin : BasePlugin, IHasWebPages { - public override string Name => "ExamplePlugin"; + public override string Name => "Template"; public override Guid Id => Guid.Parse("eb5d7894-8eef-4b36-aa6f-5d124e828ce1"); public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer) : base(applicationPaths, xmlSerializer) { @@ -27,9 +26,9 @@ namespace Jellyfin.Plugin.ExamplePlugin new PluginPageInfo { Name = this.Name, - EmbeddedResourcePath = string.Format("Jellyfin.Plugin.{0}.Configuration.configPage.html",this.Name) + EmbeddedResourcePath = string.Format("Jellyfin.Plugin.{0}.Configuration.configPage.html", this.Name) } }; } } -} \ No newline at end of file +} diff --git a/example-plugin/Configuration/configPage.html b/example-plugin/Configuration/configPage.html deleted file mode 100644 index c94a318..0000000 --- a/example-plugin/Configuration/configPage.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - ExamplePlugin Configuration - - -
-
-
- -
-
- - -
-
- - -
Numbers go here
-
-
- -
-
- - -
Words go here
-
-
- -
-
-
-
- - -
- - \ No newline at end of file