diff --git a/.github/renovate.json b/.github/renovate.json deleted file mode 100644 index 7d2da0a..0000000 --- a/.github/renovate.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "github>jellyfin/.github//renovate-presets/plugin" - ] -} diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml deleted file mode 100644 index 5b3c3be..0000000 --- a/.github/workflows/changelog.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: '๐Ÿ“ Create/Update Release Draft & Release Bump PR' - -on: - push: - branches: - - master - paths-ignore: - - build.yaml - workflow_dispatch: - repository_dispatch: - types: - - update-prep-command - -jobs: - call: - uses: jellyfin/jellyfin-meta-plugins/.github/workflows/changelog.yaml@master - with: - repository-name: jellyfin/jellyfin-plugin-template - secrets: - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/command-dispatch.yaml b/.github/workflows/command-dispatch.yaml deleted file mode 100644 index 1b5e4ee..0000000 --- a/.github/workflows/command-dispatch.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# Allows for the definition of PR and Issue /commands -name: '๐Ÿ“Ÿ Slash Command Dispatcher' - -on: - issue_comment: - types: - - created - -jobs: - call: - uses: jellyfin/jellyfin-meta-plugins/.github/workflows/command-dispatch.yaml@master - secrets: - token: . diff --git a/.github/workflows/command-rebase.yaml b/.github/workflows/command-rebase.yaml deleted file mode 100644 index 7847e20..0000000 --- a/.github/workflows/command-rebase.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: '๐Ÿ”€ PR Rebase Command' - -on: - repository_dispatch: - types: - - rebase-command - -jobs: - call: - uses: jellyfin/jellyfin-meta-plugins/.github/workflows/command-rebase.yaml@master - with: - rebase-head: ${{ github.event.client_payload.pull_request.head.label }} - repository-full-name: ${{ github.event.client_payload.github.payload.repository.full_name }} - comment-id: ${{ github.event.client_payload.github.payload.comment.id }} - secrets: - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml deleted file mode 100644 index 80483cf..0000000 --- a/.github/workflows/publish.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: '๐Ÿš€ Publish Plugin' - -on: - release: - types: - - released - workflow_dispatch: - -jobs: - call: - uses: jellyfin/jellyfin-meta-plugins/.github/workflows/publish.yaml@master - with: - version: ${{ github.event.release.tag_name }} - is-unstable: ${{ github.event.release.prerelease }} - secrets: - deploy-host: ${{ secrets.DEPLOY_HOST }} - deploy-user: ${{ secrets.DEPLOY_USER }} - deploy-key: ${{ secrets.DEPLOY_KEY }} diff --git a/.github/workflows/scan-codeql.yaml b/.github/workflows/scan-codeql.yaml deleted file mode 100644 index ca8b0b0..0000000 --- a/.github/workflows/scan-codeql.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: '๐Ÿ”ฌ Run CodeQL' - -on: - push: - branches: [ master ] - paths-ignore: - - '**/*.md' - pull_request: - branches: [ master ] - paths-ignore: - - '**/*.md' - schedule: - - cron: '24 2 * * 4' - workflow_dispatch: - -jobs: - call: - uses: jellyfin/jellyfin-meta-plugins/.github/workflows/scan-codeql.yaml@master - with: - repository-name: jellyfin/jellyfin-plugin-template diff --git a/.github/workflows/sync-labels.yaml b/.github/workflows/sync-labels.yaml deleted file mode 100644 index 5e06ae4..0000000 --- a/.github/workflows/sync-labels.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: '๐Ÿท๏ธ Sync labels' - -on: - schedule: - - cron: '0 0 1 * *' - workflow_dispatch: - -jobs: - call: - uses: jellyfin/jellyfin-meta-plugins/.github/workflows/sync-labels.yaml@master - secrets: - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml deleted file mode 100644 index d90b14d..0000000 --- a/.github/workflows/test.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: '๐Ÿงช Test Plugin' - -on: - push: - branches: - - master - paths-ignore: - - '**/*.md' - pull_request: - branches: - - master - paths-ignore: - - '**/*.md' - workflow_dispatch: - -jobs: - call: - uses: jellyfin/jellyfin-meta-plugins/.github/workflows/test.yaml@master diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index 698bc34..0000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. - // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp - // List of extensions which should be recommended for users of this workspace. - "recommendations": [ - "ms-dotnettools.csharp", - "editorconfig.editorconfig" - ], - // List of extensions recommended by VS Code that should not be recommended for users of this workspace. - "unwantedRecommendations": [] -} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 9f17676..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - // Paths and plugin names are configured in settings.json - "version": "0.2.0", - "configurations": [ - { - "type": "coreclr", - "name": "Launch", - "request": "launch", - "preLaunchTask": "build-and-copy", - "program": "${config:jellyfinDir}/bin/Debug/net9.0/jellyfin.dll", - "args": [ - //"--nowebclient" - "--webdir", - "${config:jellyfinWebDir}/dist/" - ], - "cwd": "${config:jellyfinDir}", - } - ] -} diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 7fa6075..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - // jellyfinDir : The directory of the cloned jellyfin server project - // This needs to be built once before it can be used - "jellyfinDir": "${workspaceFolder}/../jellyfin/Jellyfin.Server", - // jellyfinWebDir : The directory of the cloned jellyfin-web project - // This needs to be built once before it can be used - "jellyfinWebDir": "${workspaceFolder}/../jellyfin-web", - // jellyfinDataDir : the root data directory for a running jellyfin instance - // This is where jellyfin stores its configs, plugins, metadata etc - // This is platform specific by default, but on Windows defaults to - // ${env:LOCALAPPDATA}/jellyfin - // and on Linux, it defaults to - // ${env:XDG_DATA_HOME}/jellyfin - // However ${env:XDG_DATA_HOME} does not work in Visual Studio Code's development container! - "jellyfinWindowsDataDir": "${env:LOCALAPPDATA}/jellyfin", - "jellyfinLinuxDataDir": "$HOME/.local/share/jellyfin", - // The name of the plugin - "pluginName": "Jellyfin.Plugin.Template", -} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index 01343a5..0000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - // Paths and plugin name are configured in settings.json - "version": "2.0.0", - "tasks": [ - { - // A chain task - build the plugin, then copy it to your - // jellyfin server's plugin directory - "label": "build-and-copy", - "dependsOrder": "sequence", - "dependsOn": [ - "build", - "make-plugin-dir", - "copy-dll" - ] - }, - { - // Build the plugin - "label": "build", - "command": "dotnet", - "type": "shell", - "args": [ - "publish", - "--configuration=Debug", - "${workspaceFolder}/${config:pluginName}.sln", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary" - ], - "group": "build", - "presentation": { - "reveal": "silent" - }, - "problemMatcher": "$msCompile" - }, - { - // Ensure the plugin directory exists before trying to use it - "label": "make-plugin-dir", - "type": "shell", - "command": "mkdir", - "windows": { - "args": [ - "-Force", - "-Path", - "${config:jellyfinWindowsDataDir}/plugins/${config:pluginName}/" - ] - }, - "linux": { - "args": [ - "-p", - "${config:jellyfinLinuxDataDir}/plugins/${config:pluginName}/" - ] - } - }, - { - // Copy the plugin dll to the jellyfin plugin install path - // This command copies every .dll from the build directory to the plugin dir - // Usually, you probablly only need ${config:pluginName}.dll - // But some plugins may bundle extra requirements - "label": "copy-dll", - "type": "shell", - "command": "cp", - "windows": { - "args": [ - "./${config:pluginName}/bin/Debug/net9.0/publish/*", - "${config:jellyfinWindowsDataDir}/plugins/${config:pluginName}/" - ] - }, - "linux": { - "args": [ - "-r", - "./${config:pluginName}/bin/Debug/net9.0/publish/*", - "${config:jellyfinLinuxDataDir}/plugins/${config:pluginName}/" - ] - } - }, - ] -} diff --git a/Directory.Build.props b/Directory.Build.props index c702921..87f87a1 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,14 @@ - - 0.0.0.0 - 0.0.0.0 - 0.0.0.0 - + + + 10.11.11 + + net9.0 + + 9.0.11 + + 1.0.0.0 + 1.0.0.0 + 1.0.0.0 + diff --git a/Jellyfin.Plugin.Herald.slnx b/Jellyfin.Plugin.Herald.slnx new file mode 100644 index 0000000..7f3d046 --- /dev/null +++ b/Jellyfin.Plugin.Herald.slnx @@ -0,0 +1,3 @@ + + + diff --git a/Jellyfin.Plugin.Herald/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.Herald/Configuration/PluginConfiguration.cs new file mode 100644 index 0000000..dbf2643 --- /dev/null +++ b/Jellyfin.Plugin.Herald/Configuration/PluginConfiguration.cs @@ -0,0 +1,10 @@ +using MediaBrowser.Model.Plugins; + +namespace Jellyfin.Plugin.Herald.Configuration; + +/// +/// Plugin configuration. Notices and stats live in the plugin database, not here. +/// +public class PluginConfiguration : BasePluginConfiguration +{ +} diff --git a/Jellyfin.Plugin.Template/Jellyfin.Plugin.Template.csproj b/Jellyfin.Plugin.Herald/Jellyfin.Plugin.Herald.csproj similarity index 52% rename from Jellyfin.Plugin.Template/Jellyfin.Plugin.Template.csproj rename to Jellyfin.Plugin.Herald/Jellyfin.Plugin.Herald.csproj index fe008dc..17755d2 100644 --- a/Jellyfin.Plugin.Template/Jellyfin.Plugin.Template.csproj +++ b/Jellyfin.Plugin.Herald/Jellyfin.Plugin.Herald.csproj @@ -1,8 +1,8 @@ - net9.0 - Jellyfin.Plugin.Template + $(JellyfinTargetFramework) + Jellyfin.Plugin.Herald true true enable @@ -10,12 +10,20 @@ - + + + + + + runtime - + runtime + + runtime;native + @@ -26,7 +34,13 @@ + + + + + + diff --git a/Jellyfin.Plugin.Template/Plugin.cs b/Jellyfin.Plugin.Herald/Plugin.cs similarity index 80% rename from Jellyfin.Plugin.Template/Plugin.cs rename to Jellyfin.Plugin.Herald/Plugin.cs index 445c2bc..ae50861 100644 --- a/Jellyfin.Plugin.Template/Plugin.cs +++ b/Jellyfin.Plugin.Herald/Plugin.cs @@ -1,13 +1,13 @@ using System; using System.Collections.Generic; using System.Globalization; -using Jellyfin.Plugin.Template.Configuration; +using Jellyfin.Plugin.Herald.Configuration; using MediaBrowser.Common.Configuration; using MediaBrowser.Common.Plugins; using MediaBrowser.Model.Plugins; using MediaBrowser.Model.Serialization; -namespace Jellyfin.Plugin.Template; +namespace Jellyfin.Plugin.Herald; /// /// The main plugin. @@ -26,10 +26,13 @@ public class Plugin : BasePlugin, IHasWebPages } /// - public override string Name => "Template"; + public override string Name => "Herald"; /// - public override Guid Id => Guid.Parse("eb5d7894-8eef-4b36-aa6f-5d124e828ce1"); + public override Guid Id => Guid.Parse("006114bd-2c46-407b-8b31-57199a10fb1c"); + + /// + public override string Description => "One-time notices for your users and simple watch-time stats."; /// /// Gets the current plugin instance. diff --git a/Jellyfin.Plugin.Template.slnx b/Jellyfin.Plugin.Template.slnx deleted file mode 100644 index 2d689ca..0000000 --- a/Jellyfin.Plugin.Template.slnx +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/Jellyfin.Plugin.Template/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.Template/Configuration/PluginConfiguration.cs deleted file mode 100644 index 564e6bf..0000000 --- a/Jellyfin.Plugin.Template/Configuration/PluginConfiguration.cs +++ /dev/null @@ -1,57 +0,0 @@ -using MediaBrowser.Model.Plugins; - -namespace Jellyfin.Plugin.Template.Configuration; - -/// -/// The configuration options. -/// -public enum SomeOptions -{ - /// - /// Option one. - /// - OneOption, - - /// - /// Second option. - /// - AnotherOption -} - -/// -/// Plugin configuration. -/// -public class PluginConfiguration : BasePluginConfiguration -{ - /// - /// Initializes a new instance of the class. - /// - public PluginConfiguration() - { - // set default options here - Options = SomeOptions.AnotherOption; - TrueFalseSetting = true; - AnInteger = 2; - AString = "string"; - } - - /// - /// Gets or sets a value indicating whether some true or false setting is enabled.. - /// - public bool TrueFalseSetting { get; set; } - - /// - /// Gets or sets an integer setting. - /// - public int AnInteger { get; set; } - - /// - /// Gets or sets a string setting. - /// - public string AString { get; set; } - - /// - /// Gets or sets an enum option. - /// - public SomeOptions Options { get; set; } -} diff --git a/Jellyfin.Plugin.Template/Configuration/configPage.html b/Jellyfin.Plugin.Template/Configuration/configPage.html deleted file mode 100644 index 23f024e..0000000 --- a/Jellyfin.Plugin.Template/Configuration/configPage.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - Template - - -
-
-
-
-
- - -
-
- - -
A Description
-
-
- -
-
- - -
Another Description
-
-
- -
-
-
-
- -
- -