Use a local apiClient module

This commit is contained in:
Matthew Strasiotto
2022-08-14 13:13:07 +10:00
committed by Matthew Strasitoto
parent a7fb4d4ef0
commit d72e47e7a7
5 changed files with 17 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
*.min.js
+2
View File
@@ -15,6 +15,7 @@
<None Remove="Config\style.css" />
<None Remove="Config\linking.html" />
<None Remove="Views\apiClient.js" />
<None Remove="Views\jellyfin-apiClient.esm.min.js" />
<None Remove="Views\emby-restyle.css" />
<EmbeddedResource Include="Config\configPage.html" />
<EmbeddedResource Include="Config\config.js" />
@@ -22,6 +23,7 @@
<EmbeddedResource Include="Config\linking.html" />
<EmbeddedResource Include="Config\linking.js" />
<EmbeddedResource Include="Views\apiClient.js" />
<EmbeddedResource Include="Views\jellyfin-apiClient.esm.min.js" />
<EmbeddedResource Include="Views\emby-restyle.css" />
</ItemGroup>
+5
View File
@@ -108,6 +108,11 @@ public class SSOPlugin : BasePlugin<PluginConfiguration>, IPlugin, IHasWebPages
Name = "emby-restyle.css",
EmbeddedResourcePath = $"{GetType().Namespace}.Views.emby-restyle.css"
},
new PluginPageInfo
{
Name = "jellyfin-apiClient.esm.min.js",
EmbeddedResourcePath = $"{GetType().Namespace}.Views.jellyfin-apiClient.esm.min.js"
},
};
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
import jellyfinApiclient from "https://esm.run/jellyfin-apiclient";
import jellyfinApiclient from "./jellyfin-apiClient.esm.min.js";
window.jellyfinApiclient = jellyfinApiclient;
console.log(jellyfinApiclient);
File diff suppressed because one or more lines are too long