Fix orientamento centrale QRCode JS

This commit is contained in:
Samuele Locatelli
2024-02-02 09:13:21 +01:00
parent d855a25b0e
commit abd4f94279
8 changed files with 14 additions and 28 deletions
+2 -15
View File
@@ -45,22 +45,9 @@ namespace MagMan.Data.Admin
for (int i = 0; i < users.Count; i++)
{
#if false
// aggiungo ruoli User ed Admin x tutti
userRoles.Add(new IdentityUserRole<string>
{
UserId = users[i].Id,
RoleId = roles.First(q => q.Name == "User").Id
});
userRoles.Add(new IdentityUserRole<string>
{
UserId = users[i].Id,
RoleId = roles.First(q => q.Name == "Admin").Id
});
#endif
// se nei primi 3 aggiungo anche SuperAdmin
if (i < 3)
// nei primi 3 rendo SuperAdmin
if (i < 2)
{
userRoles.Add(new IdentityUserRole<string>
{
+4 -4
View File
@@ -59,9 +59,9 @@
{
<CmpClaimEdit Value="CurrentUserClaims"></CmpClaimEdit>
@* foreach (var cClaim in CurrentUserClaims)
{
<CmpClaimEdit CurrClaim="cClaim" E_Added="AddClaim" E_Removed="RemClaim" ></CmpClaimEdit>
} *@
{
<CmpClaimEdit CurrClaim="cClaim" E_Added="AddClaim" E_Removed="RemClaim" ></CmpClaimEdit>
} *@
}
else
{
@@ -96,7 +96,7 @@
</div>
</div>
</div>
<div class="col-6 text-right">
<div class="col-6">
<!-- Only show Id if not a new user -->
@if (objUser.Id != "")
{
+1 -1
View File
@@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>1.0.2402.0119</Version>
<Version>1.0.2402.0209</Version>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
+4 -4
View File
@@ -362,7 +362,7 @@ var QRCode;
this._elImage.src = this._elCanvas.toDataURL("image/png");
this._elImage.style.display = "block";
this._elCanvas.style.display = "none";
this._elImage.className = "img-fluid";
this._elImage.className = "img-fluid mx-auto d-block";
}
// Android 2.1 bug workaround
@@ -448,9 +448,9 @@ var QRCode;
this._oContext = this._elCanvas.getContext("2d");
this._bIsPainted = false;
this._elImage = document.createElement("img");
this._elImage.alt = "Scan me!";
this._elImage.alt = "Scan me!!!";
this._elImage.style.display = "none";
this._elImage.className = "img-fluid";
this._elImage.className = "img-fluid mx-auto d-block";
this._el.appendChild(this._elImage);
this._bSupportDataURI = null;
};
@@ -472,7 +472,7 @@ var QRCode;
var nRoundedHeight = Math.round(nHeight);
_elImage.style.display = "none";
_elImage.className = "img-fluid";
_elImage.className = "img-fluid mx-auto d-block";
this.clear();
for (var row = 0; row < nCount; row++) {
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>MagMan - Wood Warehouse Management System</i>
<h4>Versione: 1.0.2402.0119</h4>
<h4>Versione: 1.0.2402.0209</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.0.2402.0119
1.0.2402.0209
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.0.2402.0119</version>
<version>1.0.2402.0209</version>
<url>http://nexus.steamware.net/repository/SWS/MagMan/stable/0/MagMan.UI.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MagMan/stable/0/ChangeLog.html</changelog>
<mandatory>false</mandatory>