mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-29 19:18:30 -07:00
!wip demo
This commit is contained in:
parent
3bf07c63f9
commit
d9209642f2
5 changed files with 11727 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
public class DemoLists
|
public class DemoLists
|
||||||
{
|
{
|
||||||
|
public bool Enabled { get; set; }
|
||||||
public int[] Movies { get; set; }
|
public int[] Movies { get; set; }
|
||||||
public int[] TvShows { get; set; }
|
public int[] TvShows { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,6 @@ import {
|
||||||
ICronTestModel,
|
ICronTestModel,
|
||||||
ICronViewModelBody,
|
ICronViewModelBody,
|
||||||
ICustomizationSettings,
|
ICustomizationSettings,
|
||||||
ICustomPage,
|
|
||||||
IDiscordNotifcationSettings,
|
IDiscordNotifcationSettings,
|
||||||
IDogNzbSettings,
|
IDogNzbSettings,
|
||||||
IEmailNotificationSettings,
|
IEmailNotificationSettings,
|
||||||
|
|
|
@ -86,7 +86,7 @@ namespace Ombi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
c.OperationFilter<SwaggerOperationFilter>();
|
c.OperationFilter<SwaggerOperationFilter>();^
|
||||||
c.DescribeAllParametersInCamelCase();
|
c.DescribeAllParametersInCamelCase();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -110,6 +110,8 @@ namespace Ombi
|
||||||
services.Configure<TokenAuthentication>(configuration.GetSection("TokenAuthentication"));
|
services.Configure<TokenAuthentication>(configuration.GetSection("TokenAuthentication"));
|
||||||
services.Configure<LandingPageBackground>(configuration.GetSection("LandingPageBackground"));
|
services.Configure<LandingPageBackground>(configuration.GetSection("LandingPageBackground"));
|
||||||
services.Configure<DemoLists>(configuration.GetSection("Demo"));
|
services.Configure<DemoLists>(configuration.GetSection("Demo"));
|
||||||
|
var enabledDemo = Convert.ToBoolean(configuration.GetSection("Demo:Enabled").Value);
|
||||||
|
DemoSingleton.Instance.Demo = enabledDemo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void AddJwtAuthentication(this IServiceCollection services, IConfigurationRoot configuration)
|
public static void AddJwtAuthentication(this IServiceCollection services, IConfigurationRoot configuration)
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
},
|
},
|
||||||
// Please ignore the below
|
// Please ignore the below
|
||||||
"Demo": {
|
"Demo": {
|
||||||
|
"Enabled": true,
|
||||||
"Movies": [
|
"Movies": [
|
||||||
//https://en.wikipedia.org/wiki/List_of_films_in_the_public_domain_in_the_United_States
|
//https://en.wikipedia.org/wiki/List_of_films_in_the_public_domain_in_the_United_States
|
||||||
130816,
|
130816,
|
||||||
|
@ -108,6 +109,6 @@
|
||||||
2122,
|
2122,
|
||||||
22148,
|
22148,
|
||||||
25941 // Front Row Center
|
25941 // Front Row Center
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
11721
src/Ombi/package-lock.json
generated
Normal file
11721
src/Ombi/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue