diff --git a/Directory.Packages.props b/Directory.Packages.props index 44f93ab..c13fcff 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -3,8 +3,8 @@ true - + @@ -20,8 +20,7 @@ - - + diff --git a/src/Open5ETools.Core/Open5ETools.Core.csproj b/src/Open5ETools.Core/Open5ETools.Core.csproj index de2641a..8364213 100644 --- a/src/Open5ETools.Core/Open5ETools.Core.csproj +++ b/src/Open5ETools.Core/Open5ETools.Core.csproj @@ -1,16 +1,15 @@  - - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/src/Open5ETools.Infrastructure/Open5ETools.Infrastructure.csproj b/src/Open5ETools.Infrastructure/Open5ETools.Infrastructure.csproj index 9edc9dd..ff046fe 100644 --- a/src/Open5ETools.Infrastructure/Open5ETools.Infrastructure.csproj +++ b/src/Open5ETools.Infrastructure/Open5ETools.Infrastructure.csproj @@ -1,11 +1,11 @@  - - - - - - - - - + + + + + + + + + diff --git a/src/Open5ETools.Resources/Open5ETools.Resources.csproj b/src/Open5ETools.Resources/Open5ETools.Resources.csproj index 3f36994..b1be4ae 100644 --- a/src/Open5ETools.Resources/Open5ETools.Resources.csproj +++ b/src/Open5ETools.Resources/Open5ETools.Resources.csproj @@ -1,119 +1,115 @@  - - - - - - - - - PreserveNewest - true - PreserveNewest - - - PreserveNewest - true - PreserveNewest - - - PreserveNewest - true - PreserveNewest - - - - - - True - True - Common.resx - - - True - True - Dungeon.resx - - - True - True - Encounter.resx - - - True - True - Error.resx - - - True - True - Home.resx - - - True - True - Profile.resx - - - True - True - Spell.resx - - - True - True - User.resx - - - True - True - Enum.resx - - - - - - PublicResXFileCodeGenerator - Common.Designer.cs - - - PublicResXFileCodeGenerator - Dungeon.Designer.cs - - - PublicResXFileCodeGenerator - Encounter.Designer.cs - - - PublicResXFileCodeGenerator - Error.Designer.cs - - - PublicResXFileCodeGenerator - - - PublicResXFileCodeGenerator - Home.Designer.cs - - - PublicResXFileCodeGenerator - Profile.Designer.cs - - - PublicResXFileCodeGenerator - Spell.Designer.cs - - - PublicResXFileCodeGenerator - User.Designer.cs - - - PublicResXFileCodeGenerator - - - PublicResXFileCodeGenerator - Enum.Designer.cs - - + + + + + + + PreserveNewest + true + PreserveNewest + + + PreserveNewest + true + PreserveNewest + + + PreserveNewest + true + PreserveNewest + + + + + True + True + Common.resx + + + True + True + Dungeon.resx + + + True + True + Encounter.resx + + + True + True + Error.resx + + + True + True + Home.resx + + + True + True + Profile.resx + + + True + True + Spell.resx + + + True + True + User.resx + + + True + True + Enum.resx + + + + + PublicResXFileCodeGenerator + Common.Designer.cs + + + PublicResXFileCodeGenerator + Dungeon.Designer.cs + + + PublicResXFileCodeGenerator + Encounter.Designer.cs + + + PublicResXFileCodeGenerator + Error.Designer.cs + + + PublicResXFileCodeGenerator + + + PublicResXFileCodeGenerator + Home.Designer.cs + + + PublicResXFileCodeGenerator + Profile.Designer.cs + + + PublicResXFileCodeGenerator + Spell.Designer.cs + + + PublicResXFileCodeGenerator + User.Designer.cs + + + PublicResXFileCodeGenerator + + + PublicResXFileCodeGenerator + Enum.Designer.cs + + diff --git a/src/Open5ETools.Web/ConfigureServices.cs b/src/Open5ETools.Web/ConfigureServices.cs index 6d9f63b..de055c9 100644 --- a/src/Open5ETools.Web/ConfigureServices.cs +++ b/src/Open5ETools.Web/ConfigureServices.cs @@ -59,7 +59,11 @@ public static IServiceCollection AddWebServices(this IServiceCollection services .AddRazorRuntimeCompilation() #endif ; - + services.AddWebOptimizer(pipeline => + { + pipeline.AddJavaScriptBundle("js/site.min.js", "js/site.js", "js/password.js"); + pipeline.AddCssBundle("css/site.min.css", "css/site.css"); + }); services.AddHealthChecks(); return services; diff --git a/src/Open5ETools.Web/Open5ETools.Web.csproj b/src/Open5ETools.Web/Open5ETools.Web.csproj index 1962d8b..aab67f2 100644 --- a/src/Open5ETools.Web/Open5ETools.Web.csproj +++ b/src/Open5ETools.Web/Open5ETools.Web.csproj @@ -1,14 +1,12 @@ - true true - 1.0.3.1 + 1.0.3.2 - - + @@ -16,11 +14,9 @@ - - diff --git a/src/Open5ETools.Web/Program.cs b/src/Open5ETools.Web/Program.cs index fc0863f..8620408 100644 --- a/src/Open5ETools.Web/Program.cs +++ b/src/Open5ETools.Web/Program.cs @@ -50,6 +50,7 @@ } app.UseHttpsRedirection(); +app.UseWebOptimizer(); app.UseStaticFiles(); app.UseRouting(); app.UseCookiePolicy(); @@ -61,4 +62,4 @@ pattern: "{controller=Home}/{action=Index}/{id?}"); app.MapHealthChecks("/health"); -app.Run(); +app.Run(); \ No newline at end of file diff --git a/src/Open5ETools.Web/Views/Shared/_ValidationScriptsPartial.cshtml b/src/Open5ETools.Web/Views/Shared/_ValidationScriptsPartial.cshtml index 8896959..12864fd 100644 --- a/src/Open5ETools.Web/Views/Shared/_ValidationScriptsPartial.cshtml +++ b/src/Open5ETools.Web/Views/Shared/_ValidationScriptsPartial.cshtml @@ -3,18 +3,19 @@ - diff --git a/src/Open5ETools.Web/bundleconfig.json b/src/Open5ETools.Web/bundleconfig.json deleted file mode 100644 index e424310..0000000 --- a/src/Open5ETools.Web/bundleconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "outputFileName": "wwwroot/css/site.min.css", - "inputFiles": [ - "wwwroot/css/site.css" - ] - }, - { - "outputFileName": "wwwroot/js/site.min.js", - "inputFiles": [ - "wwwroot/js/site.js", - "wwwroot/js/password.js" - ], - "minify": { - "enabled": true, - "renameLocals": true - }, - "sourceMap": false - } -] \ No newline at end of file diff --git a/src/Open5ETools.Web/libman.json b/src/Open5ETools.Web/libman.json index bc8d7b6..0ed6979 100644 --- a/src/Open5ETools.Web/libman.json +++ b/src/Open5ETools.Web/libman.json @@ -7,7 +7,7 @@ "destination": "wwwroot/lib/jquery" }, { - "library": "twitter-bootstrap@5.3.3", + "library": "twitter-bootstrap@5.3.8", "destination": "wwwroot/lib/bootstrap" }, { @@ -27,7 +27,7 @@ "destination": "wwwroot/lib/jquery-validation" }, { - "library": "font-awesome@6.7.2", + "library": "font-awesome@7.0.1", "destination": "wwwroot/lib/font-awesome" } ] diff --git a/src/Open5ETools.Web/wwwroot/css/site.min.css b/src/Open5ETools.Web/wwwroot/css/site.min.css deleted file mode 100644 index c6dc839..0000000 --- a/src/Open5ETools.Web/wwwroot/css/site.min.css +++ /dev/null @@ -1 +0,0 @@ -a.navbar-brand{white-space:normal;text-align:center;word-break:break-all}html{font-size:14px}@media(min-width:768px){html{font-size:16px}}.border-top{border-top:1px solid #e5e5e5}.border-bottom{border-bottom:1px solid #e5e5e5}.box-shadow{box-shadow:0 .25rem .75rem #000;box-shadow:0 .25rem .75rem rgba(0,0,0,.05)}button.accept-policy{font-size:1rem;line-height:inherit}html{position:relative;min-height:100%}body{margin-bottom:60px}.footer{position:absolute;bottom:0;width:100%;white-space:nowrap;height:60px;line-height:59px}.table td th{vertical-align:middle}.root{background-color:#d3d3d3}.toparrow{display:none;position:fixed;bottom:5px;right:5px;z-index:99;border:none;outline:none;color:#000;cursor:pointer;padding:15px;border-radius:10px;font-size:30px}.links{text-decoration:none}.saving-throw{background-color:#8fbc8f;white-space:pre-wrap !important}.ability{background-color:#fff}.text-wrap{white-space:pre-wrap !important}.input-group>.input-group-append{flex:0 0 15%}.input-group .input-group-text{width:100%} \ No newline at end of file diff --git a/src/Open5ETools.Web/wwwroot/js/site.min.js b/src/Open5ETools.Web/wwwroot/js/site.min.js deleted file mode 100644 index f47dc02..0000000 --- a/src/Open5ETools.Web/wwwroot/js/site.min.js +++ /dev/null @@ -1 +0,0 @@ -window.onscroll=function(){scrollFunction()};var scrollFunction=function(){document.body.scrollTop>120||document.documentElement.scrollTop>120?$(".toparrow").show():$(".toparrow").hide()},topFunction=function(){document.body.scrollTop=0;document.documentElement.scrollTop=0},tooltipTriggerList=[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')),tooltipList=tooltipTriggerList.map(function(n){return new bootstrap.Tooltip(n)});(function(n){n(document).on("click",".input-group-password a",function(t){t.preventDefault();var u=n(this).closest(".input-group-password"),i=n("input",u),r=n("i",u);i.attr("type")==="text"?(i.attr("type","password"),r.addClass("fa-eye-slash"),r.removeClass("fa-eye")):i.attr("type")==="password"&&(i.attr("type","text"),r.removeClass("fa-eye-slash"),r.addClass("fa-eye"))})})(jQuery); \ No newline at end of file diff --git a/tests/Open5ETools.Core.Tests/Open5ETools.Core.Tests.csproj b/tests/Open5ETools.Core.Tests/Open5ETools.Core.Tests.csproj index 8098e34..8d94171 100644 --- a/tests/Open5ETools.Core.Tests/Open5ETools.Core.Tests.csproj +++ b/tests/Open5ETools.Core.Tests/Open5ETools.Core.Tests.csproj @@ -1,32 +1,29 @@  - - - Exe - false - true - - - - - - - PreserveNewest - true - PreserveNewest - - - - - - - - - - - - - - - - + + Exe + false + true + + + + + + + PreserveNewest + true + PreserveNewest + + + + + + + + + + + + + +