From 009aba0cec1996014e6acff15fff2c9b5329a33d Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 28 Dec 2023 12:19:09 +0100 Subject: [PATCH] update componenti layout pagina (da fixare) --- MagMan.Data/DbAdmin.cs | 11 -- MagMan.UI.sln | 4 +- MagMan.UI/Components/CmpFooter.razor | 16 +++ MagMan.UI/Components/CmpTop.razor | 21 ++++ MagMan.UI/Components/CmpTop.razor.cs | 53 ++++++++ MagMan.UI/Components/LoginDisplay.razor | 33 +++++ MagMan.UI/Components/LoginDisplay.razor.cs | 48 ++++++++ MagMan.UI/Components/SearchMod.razor | 11 ++ MagMan.UI/Components/SearchMod.razor.cs | 45 +++++++ MagMan.UI/MagMan.UI.csproj | 14 +++ MagMan.UI/Shared/MainLayout.razor | 72 ++++++++++- MagMan.UI/Shared/MainLayout.razor.css | 137 ++++++++++++--------- MagMan.UI/Shared/MainLayout.razor.less | 97 +++++++++++++++ MagMan.UI/Shared/MainLayout.razor.min.css | 1 + MagMan.UI/Shared/NavMenu.razor.css | 85 ++++++------- MagMan.UI/Shared/NavMenu.razor.less | 62 ++++++++++ MagMan.UI/Shared/NavMenu.razor.min.css | 1 + MagMan.UI/compilerconfig.json | 18 +++ MagMan.UI/compilerconfig.json.defaults | 71 +++++++++++ 19 files changed, 677 insertions(+), 123 deletions(-) create mode 100644 MagMan.UI/Components/CmpFooter.razor create mode 100644 MagMan.UI/Components/CmpTop.razor create mode 100644 MagMan.UI/Components/CmpTop.razor.cs create mode 100644 MagMan.UI/Components/LoginDisplay.razor create mode 100644 MagMan.UI/Components/LoginDisplay.razor.cs create mode 100644 MagMan.UI/Components/SearchMod.razor create mode 100644 MagMan.UI/Components/SearchMod.razor.cs create mode 100644 MagMan.UI/Shared/MainLayout.razor.less create mode 100644 MagMan.UI/Shared/MainLayout.razor.min.css create mode 100644 MagMan.UI/Shared/NavMenu.razor.less create mode 100644 MagMan.UI/Shared/NavMenu.razor.min.css create mode 100644 MagMan.UI/compilerconfig.json create mode 100644 MagMan.UI/compilerconfig.json.defaults diff --git a/MagMan.Data/DbAdmin.cs b/MagMan.Data/DbAdmin.cs index 8ce0d56..f5d3d81 100644 --- a/MagMan.Data/DbAdmin.cs +++ b/MagMan.Data/DbAdmin.cs @@ -46,17 +46,6 @@ namespace MagMan.Data adbCtx.Database.ExecuteSqlRaw(sqlCommand); sqlCommand = $"CREATE USER '{username}'@'localhost' IDENTIFIED BY '{pwd}';"; adbCtx.Database.ExecuteSqlRaw(sqlCommand); -#if false - // se samuele --> admin! - if (username.StartsWith("samuele")) - { - sqlCommand = $"GRANT ALL ON *.* TO '{username}'@'localhost';"; - } - else - { - sqlCommand = $"GRANT ALL ON {dbName}.* TO '{username}'@'localhost';"; - } -#endif sqlCommand = $"GRANT ALL ON *.* TO '{username}'@'localhost';"; adbCtx.Database.ExecuteSqlRaw(sqlCommand); sqlCommand = "FLUSH PRIVILEGES;"; diff --git a/MagMan.UI.sln b/MagMan.UI.sln index 35b9f9f..ebda118 100644 --- a/MagMan.UI.sln +++ b/MagMan.UI.sln @@ -5,9 +5,9 @@ VisualStudioVersion = 17.8.34330.188 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MagMan.UI", "MagMan.UI\MagMan.UI.csproj", "{F10B1580-27FE-4F0D-BA47-7DC9D7B63F73}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MagMan.Core", "MagMan.Core\MagMan.Core.csproj", "{328950E0-CCFB-40EF-AC68-A26912135588}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MagMan.Core", "MagMan.Core\MagMan.Core.csproj", "{328950E0-CCFB-40EF-AC68-A26912135588}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MagMan.Data", "MagMan.Data\MagMan.Data.csproj", "{4F26EF07-74E7-4A8F-B24B-19AACDD718B3}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MagMan.Data", "MagMan.Data\MagMan.Data.csproj", "{4F26EF07-74E7-4A8F-B24B-19AACDD718B3}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/MagMan.UI/Components/CmpFooter.razor b/MagMan.UI/Components/CmpFooter.razor new file mode 100644 index 0000000..f8af631 --- /dev/null +++ b/MagMan.UI/Components/CmpFooter.razor @@ -0,0 +1,16 @@ +
+
+ MagMan v.@version +
+
+ @adesso + Egalware +
+
+ +@code { + protected DateTime adesso = DateTime.Now; + + Version version = typeof(Program).Assembly.GetName().Version; + +} \ No newline at end of file diff --git a/MagMan.UI/Components/CmpTop.razor b/MagMan.UI/Components/CmpTop.razor new file mode 100644 index 0000000..d2202d5 --- /dev/null +++ b/MagMan.UI/Components/CmpTop.razor @@ -0,0 +1,21 @@ +@using MagMan.UI.Components +@using MagMan.UI.Data +@using System.Security.Claims +@using Microsoft.AspNetCore.Components.Authorization + +@inject MessageService AppMessages + +
+
+ +
+
+ @PageName +
+
+ @if (ShowSearch) + { + + } +
+
diff --git a/MagMan.UI/Components/CmpTop.razor.cs b/MagMan.UI/Components/CmpTop.razor.cs new file mode 100644 index 0000000..7e309de --- /dev/null +++ b/MagMan.UI/Components/CmpTop.razor.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using Microsoft.AspNetCore.Components; + +namespace MagMan.UI.Components +{ + public partial class CmpTop + { + #region Private Properties + + private string PageIcon { get; set; } = ""; + + private string PageName { get; set; } = ""; + + [CascadingParameter(Name = "ShowSearch")] + private bool ShowSearch { get; set; } = false; + + #endregion Private Properties + + #region Public Methods + + public void Dispose() + { + AppMessages.EA_PageUpdated -= OnPageUpdate; + } + + public void OnPageUpdate() + { + PageName = AppMessages.PageName; + PageIcon = AppMessages.PageIcon; + InvokeAsync(() => + { + StateHasChanged(); + }); + } + + #endregion Public Methods + + #region Protected Methods + + protected override void OnInitialized() + { + AppMessages.EA_PageUpdated += OnPageUpdate; + } + + protected override async Task OnInitializedAsync() + { + await Task.Delay(0); + } + + #endregion Protected Methods + } +} \ No newline at end of file diff --git a/MagMan.UI/Components/LoginDisplay.razor b/MagMan.UI/Components/LoginDisplay.razor new file mode 100644 index 0000000..ec096af --- /dev/null +++ b/MagMan.UI/Components/LoginDisplay.razor @@ -0,0 +1,33 @@ +@using Microsoft.AspNetCore.Components.Authorization + +@inject AuthenticationStateProvider AuthenticationStateProvider + + + + + + + +
+
+ +
+
+  @userName +
+
+
+
+
diff --git a/MagMan.UI/Components/LoginDisplay.razor.cs b/MagMan.UI/Components/LoginDisplay.razor.cs new file mode 100644 index 0000000..688b909 --- /dev/null +++ b/MagMan.UI/Components/LoginDisplay.razor.cs @@ -0,0 +1,48 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using Microsoft.AspNetCore.Components.Authorization; + +namespace MagMan.UI.Components +{ + public partial class LoginDisplay + { + #region Private Fields + + private string userName = ""; + + #endregion Private Fields + + #region Protected Methods + + protected override async Task OnInitializedAsync() + { + await forceReload(); + } + + protected string StringLim(string original, int maxLen) + { + return original.Length <= maxLen ? original : $"{original.Substring(0, maxLen - 3)}..."; + } + + #endregion Protected Methods + + #region Private Methods + + private async Task forceReload() + { + var authState = await AuthenticationStateProvider.GetAuthenticationStateAsync(); + var user = authState.User; + + if (user.Identity != null && user.Identity.IsAuthenticated) + { + userName = $"{user.Identity.Name}"; + } + else + { + userName = "Non Autenticato"; + } + } + + #endregion Private Methods + } +} \ No newline at end of file diff --git a/MagMan.UI/Components/SearchMod.razor b/MagMan.UI/Components/SearchMod.razor new file mode 100644 index 0000000..f426093 --- /dev/null +++ b/MagMan.UI/Components/SearchMod.razor @@ -0,0 +1,11 @@ +@using MagMan.UI.Components +@using MagMan.UI.Data +@inject MessageService MessageService + +
+ +
+ +
+
+ diff --git a/MagMan.UI/Components/SearchMod.razor.cs b/MagMan.UI/Components/SearchMod.razor.cs new file mode 100644 index 0000000..8f49591 --- /dev/null +++ b/MagMan.UI/Components/SearchMod.razor.cs @@ -0,0 +1,45 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using MagMan.Data.Services; +using Microsoft.AspNetCore.Components; + +namespace MagMan.UI.Components +{ + public partial class SearchMod + { + #region Public Properties + + [Parameter] + public EventCallback searchUpdated { get; set; } + + [Parameter] + public string searchVal + { + get + { + return MessageService.SearchVal; + } + set + { + MessageService.SearchVal = value; + reportChange(); + } + } + + #endregion Public Properties + + #region Private Methods + + private void reportChange() + { + searchUpdated.InvokeAsync(searchVal); + } + + private void reset() + { + searchVal = ""; + } + + #endregion Private Methods + } +} \ No newline at end of file diff --git a/MagMan.UI/MagMan.UI.csproj b/MagMan.UI/MagMan.UI.csproj index 153545e..3ab7211 100644 --- a/MagMan.UI/MagMan.UI.csproj +++ b/MagMan.UI/MagMan.UI.csproj @@ -6,11 +6,25 @@ enable + + + + + + + + + + + + + + diff --git a/MagMan.UI/Shared/MainLayout.razor b/MagMan.UI/Shared/MainLayout.razor index 9c6c744..8180f94 100644 --- a/MagMan.UI/Shared/MainLayout.razor +++ b/MagMan.UI/Shared/MainLayout.razor @@ -1,8 +1,14 @@ @inherits LayoutComponentBase +@using MagMan.UI.Data +@using MagMan.UI.Components +@inject MessageService MessageService +@implements IDisposable + + MagMan.UI -
+@*
@@ -16,4 +22,68 @@ @Body +
*@ + +
+
+ @* *@ + +
+ + +
+
+ +
+
+ @Body +
+
+ +
+
+
+ +@code { + bool ShowSearch { get; set; } = false; + + protected override void OnInitialized() + { + MessageService.EA_ShowSearch += OnShowSearch; + MessageService.EA_HideSearch += OnHideSearch; + } + public void OnShowSearch() + { + ShowSearch = true; + InvokeAsync(() => + { + StateHasChanged(); + }); + } + public void OnHideSearch() + { + ShowSearch = false; + InvokeAsync(() => + { + StateHasChanged(); + }); + } + + public void Dispose() + { + MessageService.EA_ShowSearch -= OnShowSearch; + MessageService.EA_ShowSearch -= OnHideSearch; + } + + protected bool navLarge { get; set; } = true; + + protected string sideClass { get; set; } = "sidebar"; + + protected void UpdateNavDisplay() + { + navLarge = !navLarge; + sideClass = navLarge ? "sidebar" : "sidebarSmall"; + } + +} diff --git a/MagMan.UI/Shared/MainLayout.razor.css b/MagMan.UI/Shared/MainLayout.razor.css index 551e4b2..adba2e2 100644 --- a/MagMan.UI/Shared/MainLayout.razor.css +++ b/MagMan.UI/Shared/MainLayout.razor.css @@ -1,70 +1,85 @@ -.page { - position: relative; - display: flex; - flex-direction: column; +.page { + position: relative; + display: flex; + flex-direction: column; } - main { - flex: 1; + flex: 1; } - -.sidebar { - background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%); +.sidebar, +.sidebarSmall { + background-image: linear-gradient(180deg, #052767 20%, #3aa6ff 90%); } - .top-row { - background-color: #f7f7f7; - border-bottom: 1px solid #d6d5d5; - justify-content: flex-end; - height: 3.5rem; - display: flex; - align-items: center; + background-color: #f7f7f7; + border-bottom: 1px solid #d6d5d5; + height: 3.5rem; + align-items: center; + /*justify-content: space-evenly; + display: flex;*/ +} +.top-row ::deep a, +.top-row .btn-link { + white-space: nowrap; + margin-left: 1.5rem; +} +.top-row a:first-child { + overflow: hidden; + text-overflow: ellipsis; } - - .top-row ::deep a, .top-row .btn-link { - white-space: nowrap; - margin-left: 1.5rem; - } - - .top-row a:first-child { - overflow: hidden; - text-overflow: ellipsis; - } - @media (max-width: 640.98px) { - .top-row:not(.auth) { - display: none; - } - - .top-row.auth { - justify-content: space-between; - } - - .top-row a, .top-row .btn-link { - margin-left: 0; - } + .top-row:not(.auth) { + display: none; + } + .top-row.auth { + justify-content: space-between; + } + .top-row a, + .top-row .btn-link { + margin-left: 0; + } +} +.bottom-row { + color: #dedede; + background-color: #000000; + height: 2rem; + align-items: center; } - @media (min-width: 641px) { - .page { - flex-direction: row; - } - - .sidebar { - width: 250px; - height: 100vh; - position: sticky; - top: 0; - } - - .top-row { - position: sticky; - top: 0; - z-index: 1; - } - - .top-row, article { - padding-left: 2rem !important; - padding-right: 1.5rem !important; - } -} + .page { + flex-direction: row; + } + .sidebar { + width: 230px; + height: 100vh; + position: sticky; + top: 0; + } + .sidebarSmall { + width: 80px; + height: 100vh; + position: sticky; + top: 0; + } + .top-row { + position: sticky; + top: 0; + z-index: 1; + } + .top-row, + article { + padding-left: 2rem !important; + padding-right: 1.5rem !important; + } + .bottom-row { + position: fixed; + bottom: 0; + z-index: 1; + } + .main > div { + padding-left: 0.5rem !important; + padding-right: 0.5rem !important; + /*padding-left: 2rem !important; + padding-right: 1.5rem !important;*/ + } +} \ No newline at end of file diff --git a/MagMan.UI/Shared/MainLayout.razor.less b/MagMan.UI/Shared/MainLayout.razor.less new file mode 100644 index 0000000..7d8c29b --- /dev/null +++ b/MagMan.UI/Shared/MainLayout.razor.less @@ -0,0 +1,97 @@ +.page { + position: relative; + display: flex; + flex-direction: column; +} + +main { + flex: 1; +} + +.sidebar, .sidebarSmall { + background-image: linear-gradient(180deg, rgb(5, 39, 103) 20%, #3aa6ff 90%); +} + +.top-row { + background-color: #f7f7f7; + border-bottom: 1px solid #d6d5d5; + height: 3.5rem; + align-items: center; + /*justify-content: space-evenly; + display: flex;*/ +} + + .top-row ::deep a, .top-row .btn-link { + white-space: nowrap; + margin-left: 1.5rem; + } + + .top-row a:first-child { + overflow: hidden; + text-overflow: ellipsis; + } + +@media (max-width: 640.98px) { + .top-row:not(.auth) { + display: none; + } + + .top-row.auth { + justify-content: space-between; + } + + .top-row a, .top-row .btn-link { + margin-left: 0; + } +} + +.bottom-row { + color: #dedede; + background-color: #000000; + height: 2rem; + align-items: center; +} + +@media (min-width: 641px) { + .page { + flex-direction: row; + } + + .sidebar { + width: 230px; + height: 100vh; + position: sticky; + top: 0; + } + + .sidebarSmall { + width: 80px; + height: 100vh; + position: sticky; + top: 0; + } + + .top-row { + position: sticky; + top: 0; + z-index: 1; + } + + .top-row, article { + padding-left: 2rem !important; + padding-right: 1.5rem !important; + } + + .bottom-row { + position: fixed; + bottom: 0; + z-index: 1; + } + + .main > div { + padding-left: 0.5rem !important; + padding-right: 0.5rem !important; + /*padding-left: 2rem !important; + padding-right: 1.5rem !important;*/ + } +} \ No newline at end of file diff --git a/MagMan.UI/Shared/MainLayout.razor.min.css b/MagMan.UI/Shared/MainLayout.razor.min.css new file mode 100644 index 0000000..bab86ef --- /dev/null +++ b/MagMan.UI/Shared/MainLayout.razor.min.css @@ -0,0 +1 @@ +.page{position:relative;display:flex;flex-direction:column;}main{flex:1;}.sidebar,.sidebarSmall{background-image:linear-gradient(180deg,#052767 20%,#3aa6ff 90%);}.top-row{background-color:#f7f7f7;border-bottom:1px solid #d6d5d5;height:3.5rem;align-items:center;}.top-row ::deep a,.top-row .btn-link{white-space:nowrap;margin-left:1.5rem;}.top-row a:first-child{overflow:hidden;text-overflow:ellipsis;}@media(max-width:640.98px){.top-row:not(.auth){display:none;}.top-row.auth{justify-content:space-between;}.top-row a,.top-row .btn-link{margin-left:0;}}.bottom-row{color:#dedede;background-color:#000;height:2rem;align-items:center;}@media(min-width:641px){.page{flex-direction:row;}.sidebar{width:230px;height:100vh;position:sticky;top:0;}.sidebarSmall{width:80px;height:100vh;position:sticky;top:0;}.top-row{position:sticky;top:0;z-index:1;}.top-row,article{padding-left:2rem!important;padding-right:1.5rem!important;}.bottom-row{position:fixed;bottom:0;z-index:1;}.main>div{padding-left:.5rem!important;padding-right:.5rem!important;}} \ No newline at end of file diff --git a/MagMan.UI/Shared/NavMenu.razor.css b/MagMan.UI/Shared/NavMenu.razor.css index acc5f9f..a4874b0 100644 --- a/MagMan.UI/Shared/NavMenu.razor.css +++ b/MagMan.UI/Shared/NavMenu.razor.css @@ -1,62 +1,51 @@ -.navbar-toggler { - background-color: rgba(255, 255, 255, 0.1); +.navbar-toggler { + background-color: rgba(255, 255, 255, 0.1); } - .top-row { - height: 3.5rem; - background-color: rgba(0,0,0,0.4); + height: 3.5rem; + background-color: rgba(0, 0, 0, 0.4); } - .navbar-brand { - font-size: 1.1rem; + font-size: 1.1rem; } - .oi { - width: 2rem; - font-size: 1.1rem; - vertical-align: text-top; - top: -2px; + width: 2rem; + font-size: 1.1rem; + vertical-align: text-top; + top: -2px; } - .nav-item { - font-size: 0.9rem; - padding-bottom: 0.5rem; + font-size: 0.9rem; + padding-bottom: 0.5rem; +} +.nav-item:first-of-type { + padding-top: 1rem; +} +.nav-item:last-of-type { + padding-bottom: 1rem; +} +.nav-item ::deep a { + color: #d7d7d7; + border-radius: 4px; + height: 3rem; + display: flex; + align-items: center; + line-height: 3rem; } - - .nav-item:first-of-type { - padding-top: 1rem; - } - - .nav-item:last-of-type { - padding-bottom: 1rem; - } - - .nav-item ::deep a { - color: #d7d7d7; - border-radius: 4px; - height: 3rem; - display: flex; - align-items: center; - line-height: 3rem; - } - .nav-item ::deep a.active { - background-color: rgba(255,255,255,0.25); - color: white; + background-color: rgba(255, 255, 255, 0.25); + color: white; } - .nav-item ::deep a:hover { - background-color: rgba(255,255,255,0.1); - color: white; + background-color: rgba(255, 255, 255, 0.1); + color: white; } - @media (min-width: 641px) { - .navbar-toggler { - display: none; - } - - .collapse { - /* Never collapse the sidebar for wide screens */ - display: block; - } -} + .navbar-toggler { + display: none; + } + .collapse { + /* Never collapse the sidebar for wide screens */ + display: block; + } +} \ No newline at end of file diff --git a/MagMan.UI/Shared/NavMenu.razor.less b/MagMan.UI/Shared/NavMenu.razor.less new file mode 100644 index 0000000..e132378 --- /dev/null +++ b/MagMan.UI/Shared/NavMenu.razor.less @@ -0,0 +1,62 @@ +.navbar-toggler { + background-color: rgba(255, 255, 255, 0.1); +} + +.top-row { + height: 3.5rem; + background-color: rgba(0,0,0,0.4); +} + +.navbar-brand { + font-size: 1.1rem; +} + +.oi { + width: 2rem; + font-size: 1.1rem; + vertical-align: text-top; + top: -2px; +} + +.nav-item { + font-size: 0.9rem; + padding-bottom: 0.5rem; +} + + .nav-item:first-of-type { + padding-top: 1rem; + } + + .nav-item:last-of-type { + padding-bottom: 1rem; + } + + .nav-item ::deep a { + color: #d7d7d7; + border-radius: 4px; + height: 3rem; + display: flex; + align-items: center; + line-height: 3rem; + } + + .nav-item ::deep a.active { + background-color: rgba(255,255,255,0.25); + color: white; + } + + .nav-item ::deep a:hover { + background-color: rgba(255,255,255,0.1); + color: white; + } + +@media (min-width: 641px) { + .navbar-toggler { + display: none; + } + + .collapse { + /* Never collapse the sidebar for wide screens */ + display: block; + } +} \ No newline at end of file diff --git a/MagMan.UI/Shared/NavMenu.razor.min.css b/MagMan.UI/Shared/NavMenu.razor.min.css new file mode 100644 index 0000000..0578d67 --- /dev/null +++ b/MagMan.UI/Shared/NavMenu.razor.min.css @@ -0,0 +1 @@ +.navbar-toggler{background-color:rgba(255,255,255,.1);}.top-row{height:3.5rem;background-color:rgba(0,0,0,.4);}.navbar-brand{font-size:1.1rem;}.oi{width:2rem;font-size:1.1rem;vertical-align:text-top;top:-2px;}.nav-item{font-size:.9rem;padding-bottom:.5rem;}.nav-item:first-of-type{padding-top:1rem;}.nav-item:last-of-type{padding-bottom:1rem;}.nav-item ::deep a{color:#d7d7d7;border-radius:4px;height:3rem;display:flex;align-items:center;line-height:3rem;}.nav-item ::deep a.active{background-color:rgba(255,255,255,.25);color:#fff;}.nav-item ::deep a:hover{background-color:rgba(255,255,255,.1);color:#fff;}@media(min-width:641px){.navbar-toggler{display:none;}.collapse{display:block;}} \ No newline at end of file diff --git a/MagMan.UI/compilerconfig.json b/MagMan.UI/compilerconfig.json new file mode 100644 index 0000000..6c616ed --- /dev/null +++ b/MagMan.UI/compilerconfig.json @@ -0,0 +1,18 @@ +[ + { + "outputFile": "Shared/MainLayout.razor.css", + "inputFile": "Shared/MainLayout.razor.less" + }, + { + "outputFile": "Shared/NavMenu.razor.css", + "inputFile": "Shared/NavMenu.razor.less" + }, + { + "outputFile": "wwwroot/css/site.css", + "inputFile": "wwwroot/css/site.less" + }, + { + "outputFile": "wwwroot/css/font.css", + "inputFile": "wwwroot/css/font.less" + } +] \ No newline at end of file diff --git a/MagMan.UI/compilerconfig.json.defaults b/MagMan.UI/compilerconfig.json.defaults new file mode 100644 index 0000000..41870cc --- /dev/null +++ b/MagMan.UI/compilerconfig.json.defaults @@ -0,0 +1,71 @@ +{ + "compilers": { + "less": { + "autoPrefix": "", + "cssComb": "none", + "ieCompat": true, + "math": null, + "strictMath": false, + "strictUnits": false, + "relativeUrls": true, + "rootPath": "", + "sourceMapRoot": "", + "sourceMapBasePath": "", + "sourceMap": false + }, + "sass": { + "autoPrefix": "", + "loadPaths": "", + "style": "expanded", + "relativeUrls": true, + "sourceMap": false + }, + "nodesass": { + "autoPrefix": "", + "includePath": "", + "indentType": "space", + "indentWidth": 2, + "outputStyle": "nested", + "precision": 5, + "relativeUrls": true, + "sourceMapRoot": "", + "lineFeed": "", + "sourceMap": false + }, + "stylus": { + "sourceMap": false + }, + "babel": { + "sourceMap": false + }, + "coffeescript": { + "bare": false, + "runtimeMode": "node", + "sourceMap": false + }, + "handlebars": { + "root": "", + "noBOM": false, + "name": "", + "namespace": "", + "knownHelpersOnly": false, + "forcePartial": false, + "knownHelpers": [], + "commonjs": "", + "amd": false, + "sourceMap": false + } + }, + "minifiers": { + "css": { + "enabled": true, + "termSemicolons": true, + "gzip": false + }, + "javascript": { + "enabled": true, + "termSemicolons": true, + "gzip": false + } + } +} \ No newline at end of file