pulizia files

This commit is contained in:
zaccaria.majid
2023-01-19 09:46:59 +01:00
parent e48481bdc0
commit 5e45bd2a69
12 changed files with 0 additions and 497 deletions
@@ -1,70 +0,0 @@
<div class="container">
<div class="timbMancCard">
<div class="header">
Richiesta mancata timbratura
</div>
<div class="timbMancContainer">
<div class="timbManc small">
<div class="text-center">
<input type="time" />
</div>
<div class="d-flex justify-content-between p-2">
<button class="btnEntr">Entrata</button>
<button class="btnEsc">Uscita</button>
</div>
</div>
</div>
</div>
<div class="timbAppCard">
<div class="header">
Richiesta mancata timbratura
</div>
<div class="timbApp small">
<table>
<thead class="border-1">
<tr>
<th class="p-1 text-center">
<i class="fa-regular fa-clock"></i>
</th>
<th class="p-1 text-center">
<i class="fa-solid fa-right-to-bracket"></i>
</th>
<th class="p-1 text-center">
Scambio
</th>
<th class="p-1 text-center">
<i class="fa-solid fa-right-from-bracket"></i>
</th>
<th class="p-1 text-center">
</th>
</tr>
</thead>
<tbody>
<tr class="text-center">
<td class="p-1 text-center">
18:36
</td>
<td class="p-1 text-center">
<i class="fa-regular fa-square"></i>
</td>
<td class="p-1 text-center">
<button>
<i class="fa-solid fa-arrow-right-arrow-left"></i>
</button>
</td>
<td class="p-1 text-center">
<i class="fa-regular fa-square-check text-success"></i>
</td>
<td class="p-1 text-center">
<button class="btn btn-sm btn-danger"><i class="fa-solid fa-trash-can"></i></button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
@@ -1,24 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using System.Net.Http;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Components.Forms;
using Microsoft.AspNetCore.Components.Routing;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.Web.Virtualization;
using Microsoft.JSInterop;
using GPW.CORE.Comp;
using GPW.CORE.Smart;
using GPW.CORE.Smart.Components;
using GPW.CORE.Smart.Shared;
namespace GPW.CORE.Smart.Components
{
public partial class TimbHandler
{
}
}
@@ -1,63 +0,0 @@
.container {
width: 100%;
height: 100%;
padding-left: 0.5rem;
padding-right: 0.5rem;
margin: 0;
}
.timbApp {
border-radius: 0.8rem;
background-color: transparent;
width: 100%;
height: 100%;
}
.timbApp table {
width: 100%;
height: 100%;
}
/*.timbApp table thead{
border-bottom: 1px solid black;
}*/
.timbManc {
border-radius: 0.8rem;
background-color: transparent;
padding: 0.5rem;
width: 70%;
height: 100%;
margin-bottom: 0.8rem;
}
.timbMancContainer {
margin-top: 0.5rem;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
}
.timbManc input {
border-radius: 0.5rem;
border: none;
padding: 0.25rem;
}
.timbMancCard .header {
text-align: center;
border-bottom: 1px solid black;
padding-top: 0.3rem;
padding-bottom: 0.3rem;
color: #fff;
}
.timbMancCard {
border-radius: 0.8rem;
background-color: #0d8b23;
}
.timbAppCard .header {
text-align: center;
border-bottom: 1px solid black;
padding-top: 0.3rem;
padding-bottom: 0.3rem;
color: #fff;
}
.timbAppCard {
margin-top: 2rem;
border-radius: 0.8rem;
background-color: #ff8b23;
}
@@ -1,72 +0,0 @@
.container{
width: 100%;
height: 100%;
padding-left: 0.5rem;
padding-right: 0.5rem;
margin: 0;
}
.timbApp {
border-radius: 0.8rem;
background-color: transparent;
width: 100%;
height: 100%;
}
.timbApp table {
width: 100%;
height: 100%;
}
/*.timbApp table thead{
border-bottom: 1px solid black;
}*/
.timbManc {
border-radius: 0.8rem;
background-color: transparent;
padding: 0.5rem;
width: 70%;
height: 100%;
margin-bottom: 0.8rem;
}
.timbMancContainer {
margin-top: 0.5rem;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
}
.timbManc input {
border-radius: 0.5rem;
border: none;
padding: 0.25rem;
}
.timbMancCard .header{
text-align: center;
border-bottom: 1px solid black;
padding-top: 0.3rem;
padding-bottom: 0.3rem;
color: #fff;
}
.timbMancCard{
border-radius: 0.8rem;
background-color: #0d8b23
}
.timbAppCard .header {
text-align: center;
border-bottom: 1px solid black;
padding-top: 0.3rem;
padding-bottom: 0.3rem;
color: #fff;
}
.timbAppCard {
margin-top: 2rem;
border-radius: 0.8rem;
background-color: #ff8b23
}
-1
View File
@@ -1 +0,0 @@
.container{width:100%;height:100%;padding-left:.5rem;padding-right:.5rem;margin:0;}.timbApp{border-radius:.8rem;background-color:transparent;width:100%;height:100%;}.timbApp table{width:100%;height:100%;}.timbManc{border-radius:.8rem;background-color:transparent;padding:.5rem;width:70%;height:100%;margin-bottom:.8rem;}.timbMancContainer{margin-top:.5rem;width:100%;height:100%;display:flex;justify-content:center;}.timbManc input{border-radius:.5rem;border:0;padding:.25rem;}.timbMancCard .header{text-align:center;border-bottom:1px solid #000;padding-top:.3rem;padding-bottom:.3rem;color:#fff;}.timbMancCard{border-radius:.8rem;background-color:#0d8b23;}.timbAppCard .header{text-align:center;border-bottom:1px solid #000;padding-top:.3rem;padding-bottom:.3rem;color:#fff;}.timbAppCard{margin-top:2rem;border-radius:.8rem;background-color:#ff8b23;}
-16
View File
@@ -1,16 +0,0 @@
@page "/provacalendar"
<PageTitle>Index</PageTitle>
<div>
<div class="containerCard">
<DtCard cardBg="background-color: #E74C3C"></DtCard>
</div>
<div class="containerBtnEntrEsc">
<BottoniEntrEsc></BottoniEntrEsc>
</div>
<div class="row mt-2">
</div>
</div>
@@ -1,60 +0,0 @@
namespace GPW.CORE.Smart.Pages
{
public partial class ProvaCalendar
{
#region Protected Methods
protected override async Task OnInitializedAsync()
{
dtCurr = DateTime.Today;
await Task.Delay(1);
DateCheck = new Dictionary<DateTime, string>();
Random rnd = new Random();
// random colorate...
for (int i = 0; i < 10; i++)
{
DateTime newDate = dtCurr.AddDays(rnd.Next(-5, 10)).Date;
if (!DateCheck.ContainsKey(newDate))
{
DateCheck.Add(newDate, "bg-success text-light rounded-circle p-2");
}
else
{
DateCheck[newDate] = "bg-warning text-light rounded-circle p-2";
}
}
}
#endregion Protected Methods
#region Private Fields
private Dictionary<DateTime, string> DateCheck = new Dictionary<DateTime, string>();
#endregion Private Fields
#region Private Properties
private DateTime dtCurr { get; set; } = DateTime.Today;
private bool singleWeek = false;
#endregion Private Properties
#region Private Methods
private void DisplayDate(DateTime dtSel)
{
dtCurr = dtSel;
singleWeek = true;
}
private async Task resetCal()
{
singleWeek = false;
await Task.Delay(1);
}
#endregion Private Methods
}
}
@@ -1,43 +0,0 @@
.containerCalendario {
margin-top: 20px;
position: relative;
min-width: 20rem;
align-items: center;
display: flex;
justify-content: center;
}
.containerGauge {
position: fixed;
bottom: 5rem;
width: 100%;
align-items: center;
right: 5.2rem;
display: flex;
justify-content: center;
gap: 8.3rem;
}
.containerCard {
position: relative;
width: 100%;
align-items: center;
display: flex;
justify-content: center;
flex-direction: row;
}
.containerBtnEntrEsc {
margin-top: 20px;
position: relative;
width: 95%;
height: 2.5rem;
display: flex;
justify-content: center;
}
.containerBtnTemp {
position: fixed;
height: 39px;
width: 59px;
bottom: 4rem;
align-items: center;
display: flex;
justify-content: center;
}
@@ -1,49 +0,0 @@
.containerCalendario {
margin-top: 20px;
position: relative;
min-width: 20rem;
align-items: center;
display: flex;
justify-content: center;
}
.containerGauge {
position: fixed;
bottom: 5rem;
width: 100%;
align-items: center;
right: 5.2rem;
display: flex;
justify-content: center;
gap: 8.3rem;
}
.containerCard {
position: relative;
width: 100%;
align-items: center;
display: flex;
justify-content: center;
flex-direction: row;
}
.containerBtnEntrEsc {
margin-top: 20px;
position: relative;
width: 95%;
height: 2.5rem;
display: flex;
justify-content: center;
}
.containerBtnTemp {
position: fixed;
height: 39px;
width: 59px;
bottom: 4rem;
align-items: center;
display: flex;
justify-content: center;
}
-1
View File
@@ -1 +0,0 @@
.containerCalendario{margin-top:20px;position:relative;min-width:20rem;align-items:center;display:flex;justify-content:center;}.containerGauge{position:fixed;bottom:5rem;width:100%;align-items:center;right:5.2rem;display:flex;justify-content:center;gap:8.3rem;}.containerCard{position:relative;width:100%;align-items:center;display:flex;justify-content:center;flex-direction:row;}.containerBtnEntrEsc{margin-top:20px;position:relative;width:95%;height:2.5rem;display:flex;justify-content:center;}.containerBtnTemp{position:fixed;height:39px;width:59px;bottom:4rem;align-items:center;display:flex;justify-content:center;}
-50
View File
@@ -1,50 +0,0 @@
@page "/TestCal"
<div class="row bg-dark text-light">
<div class="col text-center">
<h3>Test Page</h3>
</div>
</div>
<div class="row bg-dark">
<div class="col">
<CircleGauge maxVal="480" currVal="120" Titolo="2:00" Testo="Lavorate"></CircleGauge>
</div>
<div class="col">
<CircleGauge maxVal="480" currVal="240" Titolo="4:00" Testo="Lavorate"></CircleGauge>
</div>
<div class="col">
<CircleGauge maxVal="480" currVal="360" Titolo="6:00" Testo="Lavorate"></CircleGauge>
</div>
</div>
<div class="row bg-dark">
<div class="col">
<CircleGauge maxVal="480" currVal="480" Titolo="8:00" Testo="Lavorate"></CircleGauge>
</div>
<div class="col">
<CircleGauge maxVal="480" currVal="600" Titolo="10:00" Testo="Lavorate"></CircleGauge>
</div>
<div class="col">
<CircleGauge maxVal="480" currVal="720" Titolo="12:00" Testo="Lavorate"></CircleGauge>
</div>
</div>
<div class="row bg-dark">
<div class="col text-center">
<button id="ToastBtn2" class="btn btn-success" @onclick="toggleShow">Mostra toast</button>
</div>
</div>
<div class="toast-container p-3 bottom-0 start-50 translate-middle-x">
<div class="toast bg-light fade @toastCss" id="LiveToast2" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<span class="bg-primary px-2 text-light rounded me-2"><i class="fa-solid fa-clock"></i></span>
<strong class="me-auto">Timbratura</strong>
<small>@dtAction</small>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
@messaggio
</div>
</div>
</div>
-48
View File
@@ -1,48 +0,0 @@
namespace GPW.CORE.Smart.Pages
{
public partial class TestCal
{
#region Protected Methods
protected override async Task OnInitializedAsync()
{
dtCurr = DateTime.Today;
await Task.Delay(1);
}
#endregion Protected Methods
#region Private Fields
private bool showToast = false;
#endregion Private Fields
#region Private Properties
private DateTime dtCurr { get; set; } = DateTime.Today;
private string toastCss
{
get => showToast ? "show" : "";
}
protected string dtAction = "";
protected string messaggio = "";
#endregion Private Properties
#region Private Methods
private void toggleShow()
{
DateTime adesso = DateTime.Now;
dtAction = $"{adesso:dddd dd.MM.yyyy}";
string tipo = adesso.Second % 2 == 0 ? "INGRESSO" : "USCITA";
messaggio = $"Registrato evento {tipo} alle {adesso:HH:mm}";
showToast = !showToast;
}
#endregion Private Methods
}
}