Added main page
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Jellyfin.Controller" Version="10.11.3" >
|
||||
<PackageReference Include="Jellyfin.Controller" Version="10.11.3">
|
||||
<ExcludeAssets>runtime</ExcludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Jellyfin.Model" Version="10.11.3">
|
||||
@@ -20,8 +20,10 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="Configuration\configPage.html" />
|
||||
<EmbeddedResource Include="Configuration\configPage.html" />
|
||||
<None Remove="Configuration\settings.html" />
|
||||
<EmbeddedResource Include="Configuration\settings.html" />
|
||||
<None Remove="Pages\home.html" />
|
||||
<EmbeddedResource Include="Pages\home.html" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
@@ -29,20 +31,6 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="GeneratePluginJson" BeforeTargets="Publish">
|
||||
<WriteLinesToFile
|
||||
File="$(PublishDir)\meta.json"
|
||||
Lines='{
|
||||
"guid": "fef007a8-3e8f-4aa8-a22e-486a387f4192",
|
||||
"name": "Media Cleaner",
|
||||
"category": "Library",
|
||||
"overview": "A cleaner for your stale media.",
|
||||
"description": "Clean out the stale media from your library using scheduled tasks",
|
||||
"timestamp": "$(Timestamp)",
|
||||
"targetAbi": "10.11.0",
|
||||
"owner": "T-Gander",
|
||||
"version": "$(AssemblyVersion)"
|
||||
}'
|
||||
Overwrite="true"
|
||||
Encoding="utf-8" />
|
||||
<WriteLinesToFile File="$(PublishDir)\meta.json" Lines="{
 "guid": "fef007a8-3e8f-4aa8-a22e-486a387f4192",
 "name": "Media Cleaner",
 "category": "Library",
 "overview": "A cleaner for your stale media.",
 "description": "Clean out the stale media from your library using scheduled tasks",
 "timestamp": "$(Timestamp)",
 "targetAbi": "10.11.0",
 "owner": "T-Gander",
 "version": "$(AssemblyVersion)"
 }" Overwrite="true" Encoding="utf-8" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
||||
11
Jellyfin.Plugin.MediaCleaner/Pages/home.html
Normal file
11
Jellyfin.Plugin.MediaCleaner/Pages/home.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<div data-role="page" class="page type-interior pluginConfigurationPage withTabs">
|
||||
<div data-role="content">
|
||||
<div class="content-primary">
|
||||
<div>
|
||||
<a href="#configurationpage?name=Home">Home</a>
|
||||
<a href="#configurationpage?name=Settings">Settings</a>
|
||||
</div>
|
||||
<h2>Media Cleaner</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -44,9 +44,15 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
||||
[
|
||||
new PluginPageInfo
|
||||
{
|
||||
Name = Name,
|
||||
EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.Configuration.configPage.html", GetType().Namespace)
|
||||
}
|
||||
Name = "Settings",
|
||||
EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.Configuration.settings.html", GetType().Namespace),
|
||||
},
|
||||
new PluginPageInfo
|
||||
{
|
||||
Name = "Home",
|
||||
EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.Pages.home.html", GetType().Namespace),
|
||||
EnableInMainMenu = true,
|
||||
},
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user