138 Commits

Author SHA1 Message Date
39c34e7c7d Finish v2.1.5(23) 2025-11-11 14:51:33 +01:00
1f530bc130 -> v2.1.5 (23) 2025-11-11 14:51:25 +01:00
a4c2eee49d Valorizzato tipoAnag 2025-11-11 13:38:53 +01:00
70a34eef06 Finish v2.1.4(22) 2025-11-11 11:59:28 +01:00
c61ebe348c Finish v2.1.4(22) 2025-11-11 11:59:27 +01:00
e586279c6b -> v2.1.4 (22) 2025-11-11 11:59:22 +01:00
85e227a5cb Fix apple 2025-11-11 11:58:51 +01:00
71ce027fb8 Finish v2.1.4(21) 2025-11-11 11:32:26 +01:00
9318d7bd3f Finish v2.1.4(21) 2025-11-11 11:32:25 +01:00
3ae0a7f7d1 -> v2.1.4 (21) 2025-11-11 11:32:14 +01:00
2879008c20 Fix apple 2025-11-11 11:31:48 +01:00
0dfc0baa28 Finish v2.1.3(20) 2025-11-05 15:22:59 +01:00
b423ce8d16 Finish v2.1.3(20) 2025-11-05 15:22:57 +01:00
514f98a8a7 -> v2.1.3 (20) 2025-11-05 15:22:51 +01:00
a26f1a57cc Aggiunto caricamento file 2025-11-05 15:20:27 +01:00
f4b2e70881 Ripristinata cancellazione documenti 2025-11-05 15:06:34 +01:00
bb0bf1e496 Fix 2025-11-05 11:44:47 +01:00
d0f961b052 Aggiunta forzatura della sinc dopo 7 giorni 2025-11-04 12:06:10 +01:00
61ea1776b3 Finish v2.1.1(18) 2025-11-04 07:32:23 +01:00
8dcd61b697 Finish v2.1.1(18) 2025-11-04 07:32:23 +01:00
2480a6a60c -> v2.1.1 (18) 2025-11-04 07:32:12 +01:00
dd5f354b14 Fix caricamento post prima login 2025-11-04 07:31:15 +01:00
6a8414ff6c Finish v2.1.0(17) 2025-11-03 15:03:15 +01:00
b93f2f2d16 Finish v2.1.0(17) 2025-11-03 15:03:14 +01:00
a741d60e01 -> v2.1.0 (17) 2025-11-03 15:03:05 +01:00
5c1c9130ec Fix Apple 2025-11-03 15:02:08 +01:00
8a97506dfd Finish v2.1.0(16) 2025-10-30 13:45:06 +01:00
56c7d80c7c Finish v2.1.0(16) 2025-10-30 13:45:05 +01:00
3d231ac7c7 -> v2.1.0 (16) 2025-10-30 13:44:32 +01:00
5814243c2b Fix Apple 2025-10-30 13:43:24 +01:00
f36741b8de Finish v2.1.0(15) 2025-10-30 12:13:51 +01:00
38eaaa9db2 Finish v2.1.0(15) 2025-10-30 12:13:50 +01:00
bd15ab5106 -> v2.1.0 (15) 2025-10-30 12:13:43 +01:00
42004f82a1 Fix keySensitive commessa 2025-10-30 12:13:08 +01:00
cf6e11193e Finish v2.1.0(14) 2025-10-30 11:35:30 +01:00
4698e43fd7 Finish v2.1.0(14) 2025-10-30 11:35:29 +01:00
5ade3b7a5f -> v2.1.0 (14) 2025-10-30 11:35:22 +01:00
b7522fb116 Aggiunto tasto per il suggerimento della descrizione attvità in base al tipo 2025-10-30 10:12:10 +01:00
a593141185 Aggiunta possibilità che dalla commessa viene selezionato il cliente 2025-10-30 09:33:48 +01:00
3609749a26 Fix build ios 2025-10-29 12:08:56 +01:00
48930550fe Finish v2.0.3(10) 2025-10-15 10:33:11 +02:00
11e7b04a88 Finish v2.0.3(10) 2025-10-15 10:33:10 +02:00
27588097a3 -> v2.0.3 (10) 2025-10-15 10:33:04 +02:00
934258d422 Fix sync 2025-10-15 10:32:24 +02:00
c3e646403b Aggiunta possibilità di rimozione allegati 2025-10-15 09:57:01 +02:00
effdc317c2 Fix date 2025-10-13 15:14:02 +02:00
9f95bb23e6 Fix vari 2025-10-03 16:32:16 +02:00
5016b3ed8d Finish v2.0.2(9) 2025-10-03 00:02:13 +02:00
5981691815 Finish v2.0.2(9) 2025-10-03 00:02:12 +02:00
f4621f48c8 -> 2.0.2 (9) 2025-10-03 00:02:08 +02:00
ff36b1cdab Fix salvataggio posizione 2025-10-02 23:48:14 +02:00
36fe05e3c3 Fix apertura fotocamera e fix codJcom interno 2025-10-01 12:35:34 +02:00
0fe1b90417 Finish v2.0.2(8) 2025-09-23 10:44:31 +02:00
7359310c48 Finish v2.0.2(8) 2025-09-23 10:44:31 +02:00
860a25471e -> v2.0.2 (8) 2025-09-23 10:44:25 +02:00
0fab8058f3 Aggiornate librerie per il supporto Android alle pagina da 16 kB 2025-09-23 10:36:02 +02:00
2e51420b2c Finish V2.0.1(7) 2025-09-22 18:16:59 +02:00
fab2836a0e Finish V2.0.1(7) 2025-09-22 18:16:59 +02:00
4521b2a02d -> v2.0.1 (7) 2025-09-22 18:16:52 +02:00
ec7bedeff6 Fix compilazione in release 2025-09-22 18:16:08 +02:00
ea2f2d47c3 Finish v2.0.0(6) 2025-09-22 15:11:22 +02:00
149eb27628 Finish v2.0.0(6) 2025-09-22 15:11:20 +02:00
8b331d5824 -> v2.0.0 (6) 2025-09-22 15:11:15 +02:00
31db52d0d7 Fix vari 2025-09-22 15:10:24 +02:00
ce56e9e57d Migliorata UI 2025-09-22 12:26:10 +02:00
c61093a942 Sistemati caricamenti 2025-09-18 15:47:20 +02:00
4645b2660e Migliorie grefiche 2025-09-18 12:17:45 +02:00
06bda7c881 Gestita fotocamera per allegare immagini 2025-09-18 10:56:21 +02:00
8a45bffebc Fix e migliorati caricamenti 2025-09-18 09:40:31 +02:00
e9a0ffdb7a Fix ui 2025-09-16 10:46:56 +02:00
83264731f3 Migliorato modal activity 2025-09-15 17:11:17 +02:00
0f3047a2b6 Gestito notificationData nelle notifiche push 2025-09-12 17:37:36 +02:00
223e74c490 Migliorata gestione e visualizzazione notifiche 2025-09-12 15:42:56 +02:00
b798b01da0 Sistemazioni grafiche 2025-09-12 09:32:34 +02:00
85f19acda6 Finish Firebase 2025-09-11 16:08:13 +02:00
7bfe67a97c Gestita pagina notifiche 2025-09-11 16:06:19 +02:00
7319378e75 Creata card notifiche 2025-09-09 16:30:51 +02:00
dfb86e3cd7 Implementate notifiche 2025-09-09 11:43:07 +02:00
54be40518a Merge branch 'develop' into feature/Firebase
# Conflicts:
#	salesbook.Shared/Components/Pages/Home.razor
2025-09-08 12:22:24 +02:00
93b1a94c88 Filtrati tipi attività per utente 2025-09-08 12:19:17 +02:00
82d268d9f8 Implementato controllo conessione dispositivo e servizi. Completata pagination commesse e attività per cliente 2025-09-08 10:24:50 +02:00
014e2ffc41 Aggiunta pagination nella tab Commesse 2025-09-05 09:41:22 +02:00
8508820350 Migliorata sincronizzazione dei dati 2025-09-03 17:26:55 +02:00
374b99501e Prima parte di migliorie per la sincronizzazione dei dati 2025-09-03 15:46:49 +02:00
8be3fa9f9e Completata gestione allegati e riepilogo commessa 2025-09-01 17:38:16 +02:00
588dbe308a Creata pagina step della commessa 2025-08-29 18:20:07 +02:00
833a1e456f Iniziata implementazione notifiche firebase 2025-08-25 10:00:41 +02:00
9957229e70 Vario 2025-08-21 10:51:32 +02:00
cd88c79b32 Finish v1.1.0 2025-08-07 09:28:06 +02:00
c9d7091355 Finish v1.1.0 2025-08-07 09:28:05 +02:00
d90a194a4e v1.1.0 -> 5 2025-08-07 09:28:00 +02:00
de9d415f04 Fix posizione 2025-08-07 09:27:07 +02:00
b561405ddc Fix aggiunta nuova persona di riferimento 2025-08-06 16:00:37 +02:00
c93b0c9bec Fix vari 2025-08-06 12:31:52 +02:00
c003c29d83 Aggiunto agente in fase di creazione/modifica cliente 2025-07-31 16:03:07 +02:00
8dfb163cfa Sistemati filtri 2025-07-31 15:24:45 +02:00
068723f31f Implementata gestione allegati 2025-07-30 18:27:24 +02:00
8ebc6e3b8f Gestito aggiornamento elenco contatti in caso di aggiunta o modifica del prospect / cliente 2025-07-25 14:52:00 +02:00
9c69884cc9 Aggiunta ricerca indirizzo 2025-07-24 15:51:01 +02:00
b34f6cb213 Controllo p.Iva 2025-07-22 09:10:30 +02:00
7bcb0581cc Form persone di riferimento e clienti 2025-07-21 10:08:10 +02:00
b2064ad71e Migliorati form Cliente e PersonaRif 2025-07-16 17:24:41 +02:00
8c521dc81e Gestito elenco clienti e prospect in lista contatti 2025-07-10 12:40:30 +02:00
65e48777e6 Creato form per Clienti/Prospect 2025-07-08 15:33:33 +02:00
bf2e1b65f0 Finish v1.0.1(4) 2025-07-04 15:47:50 +02:00
691c132fb6 Finish v1.0.1(4) 2025-07-04 15:47:49 +02:00
5d292a12ef -> v1.0.1 (4) 2025-07-04 15:47:38 +02:00
60f7d14a72 Vario 2025-07-04 15:43:02 +02:00
5fe41f9445 Aggiornamento librerie 2025-07-03 16:59:44 +02:00
e614c83a5b Aggiunto sentry 2025-07-03 16:50:17 +02:00
c2da42a51b Aggiunto dialog promemoria 2025-07-03 16:50:00 +02:00
ca6be0c0a8 Iniziata implementazione filtri utenti 2025-07-03 11:36:44 +02:00
ddbf9c832e Fix searchBox users 2025-07-02 10:32:01 +02:00
201cfd4bc6 Finish v1.0.0(3) 2025-06-30 15:57:41 +02:00
87264cf3aa -> v1.0.0 (3) 2025-06-30 15:57:32 +02:00
dba3cd0357 Fix 2025-06-30 15:56:46 +02:00
516fcca7cb Finish v1.0.0(2) 2025-06-30 15:50:04 +02:00
453e291827 Finish v1.0.0(2) 2025-06-30 15:50:03 +02:00
443ed95013 -> v1.0.0 (2) 2025-06-30 15:49:58 +02:00
a28b8e2f6c Finish v1.0.0(1) 2025-06-30 15:47:47 +02:00
108fa715f0 Finish v1.0.0(1) 2025-06-30 15:47:45 +02:00
3ad3ec23f0 Fix vari 2025-06-30 15:46:11 +02:00
3f2b7a6bb5 Rename salesbook 2025-06-26 10:08:21 +02:00
a34e673cd2 Cancellazione attività 2025-06-26 09:26:50 +02:00
10c1435dba Vario 2025-06-24 10:56:02 +02:00
a97df74ef4 Migliorie form inserimento 2025-06-20 10:58:58 +02:00
6c789a099e Fix filtri 2025-06-20 09:02:17 +02:00
7f8dae7c7d Non si deve poter inserire un esito su un’attività non assegnata all’utente loggato 2025-06-20 08:59:10 +02:00
51a4c7a971 Iniziata creazione pagina contatti 2025-06-20 08:55:30 +02:00
4608c6764b Aggiunta modifica esito 2025-06-17 14:57:21 +02:00
6600660315 Miglioramenti UI 2025-06-17 12:58:12 +02:00
d6c7742501 Vario 2025-06-16 17:38:48 +02:00
3a374baaba Adeguamento ui per ios 2025-06-16 16:04:55 +02:00
7ca4de628b Completato form attività e filtri 2025-06-16 11:58:49 +02:00
0032648e76 Rivista UI 2025-06-12 12:57:34 +02:00
79fb383961 Migliorato calendario 2025-06-11 16:38:36 +02:00
d8f2588e0e Cambiata visualizzazione calendario e aggiunto formAttività 2025-06-11 10:11:26 +02:00
d462e9faca Aggiornato gitIgnore 2025-05-28 13:11:36 +02:00
326 changed files with 12277 additions and 6555 deletions

2
.gitignore vendored
View File

@@ -17,6 +17,8 @@ _site/
!.vscode/settings.json !.vscode/settings.json
*.userprefs *.userprefs
.idea/
# Build results # Build results
[Dd]ebug/ [Dd]ebug/
[Dd]ebugPublic/ [Dd]ebugPublic/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

File diff suppressed because one or more lines are too long

View File

@@ -1,275 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 28.4.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 522.92 500" style="enable-background:new 0 0 522.92 500;" xml:space="preserve">
<style type="text/css">
.st0{clip-path:url(#SVGID_00000023275264634511008070000003220646107616116611_);fill:#F4D160;}
.st1{fill:none;stroke:#FFFFFF;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
.st2{fill:#F4D160;}
.st3{fill:#808183;}
.st4{fill:#A6A8AA;}
.st5{fill:#929496;}
.st6{fill:#4E67AD;}
.st7{fill:#E6E6E7;}
.st8{fill:#FFFFFF;}
.st9{fill:#FFFFFF;stroke:#F4D160;stroke-width:2.1553;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
.st10{opacity:0.5;fill:#F4D160;}
.st11{fill:#FFFFFF;stroke:#F4D160;stroke-width:1.0776;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
.st12{opacity:0.5;}
.st13{fill:#A53A0A;}
.st14{fill:#D5652C;}
.st15{fill:#BBBCBF;}
.st16{font-family:'Rubik-Bold';}
.st17{font-size:20.8057px;}
.st18{fill:#BC3C15;}
.st19{fill:#6D6E70;}
.st20{fill:#D35B30;}
.st21{fill:#C1451F;}
.st22{fill:#434244;}
.st23{fill:#F1F1F2;}
.st24{fill:#D0D1D3;}
.st25{fill:#512D0D;}
.st26{fill:#603B16;}
.st27{opacity:0.35;fill:#603B16;}
.st28{fill:#845225;}
</style>
<g id="Background">
<g>
<defs>
<path id="SVGID_1_" d="M476.16,235.41c26.1,59.8,17.3,111.85-8.43,147.15c-24.28,33.31-51.72,54.89-106.19,60.71
c-55.72,5.95-72.73-19.05-126.95-28.04c-43.3-7.18-78.36,0.75-113.12,20.74c-36.79,21.16-78.39,42.22-97.98,0.42
c-36.89-78.73-19.46-172.14-7.55-211.57c15.21-50.36,42.12-81.55,88.98-113.83c41.3-28.45,60.32-34.92,106.35-51.85
c16.75-6.16,115.93-27.4,145.63,3.7c36.91,38.65-11.01,52.09,23.15,88.36C416.78,190.2,452.49,181.17,476.16,235.41z"/>
</defs>
<clipPath id="SVGID_00000088812324151204080360000018176712255185552313_">
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
</clipPath>
<rect style="clip-path:url(#SVGID_00000088812324151204080360000018176712255185552313_);fill:#F4D160;" width="522.92" height="500"/>
</g>
</g>
<g id="Design">
<g>
<g>
<path class="st1" d="M152.26,394.1L49.09,413.5c-3.26,0.61-6.39-1.53-7-4.79l-19.4-103.16c-0.61-3.26,1.53-6.39,4.79-7
l103.16-19.4c3.26-0.61,6.39,1.53,7,4.79l19.4,103.16C157.66,390.35,155.51,393.49,152.26,394.1z"/>
<g>
<line class="st1" x1="28.77" y1="309.89" x2="77.83" y2="300.66"/>
<line class="st1" x1="31.16" y1="322.57" x2="80.22" y2="313.35"/>
<line class="st1" x1="33.54" y1="335.25" x2="82.6" y2="326.03"/>
<line class="st1" x1="35.93" y1="347.94" x2="84.99" y2="338.71"/>
<line class="st1" x1="38.31" y1="360.62" x2="87.37" y2="351.4"/>
<line class="st1" x1="40.69" y1="373.31" x2="89.76" y2="364.08"/>
<line class="st1" x1="43.08" y1="385.99" x2="92.14" y2="376.76"/>
<line class="st1" x1="45.46" y1="398.67" x2="94.53" y2="389.45"/>
</g>
</g>
<g>
<path class="st1" d="M383.31,329.59l-86.11-60.04c-2.72-1.89-3.38-5.63-1.49-8.35l60.04-86.11c1.89-2.72,5.63-3.38,8.35-1.49
l86.11,60.04c2.72,1.89,3.38,5.63,1.49,8.35l-60.04,86.11C389.77,330.82,386.03,331.49,383.31,329.59z"/>
<g>
<line class="st1" x1="356.91" y1="182.47" x2="397.86" y2="211.03"/>
<line class="st1" x1="349.53" y1="193.06" x2="390.48" y2="221.61"/>
<line class="st1" x1="342.15" y1="203.65" x2="383.1" y2="232.2"/>
<line class="st1" x1="334.77" y1="214.23" x2="375.72" y2="242.79"/>
<line class="st1" x1="327.39" y1="224.82" x2="368.34" y2="253.37"/>
<line class="st1" x1="320" y1="235.41" x2="360.96" y2="263.96"/>
<line class="st1" x1="312.62" y1="245.99" x2="353.57" y2="274.55"/>
<line class="st1" x1="305.24" y1="256.58" x2="346.19" y2="285.13"/>
</g>
</g>
<ellipse transform="matrix(0.1586 -0.9874 0.9874 0.1586 -5.1546 348.5406)" class="st1" cx="201.91" cy="177.29" rx="64.97" ry="64.97"/>
<g>
<path class="st2" d="M88.19,188.86c0.82-2.05,0.53-3.62-4.15-5.64c-3.81-1.64-5.97-1.19-6.98,0.94c-0.82,0.03-1.6,0.51-1.95,1.32
c-0.3,0.69-0.21,1.45,0.16,2.04c-0.25,0.58-0.54,1.25-0.85,1.98c-1.97-0.38-4.57-0.43-5.45,1.6
c-0.95,2.21-16.29,41.51-14.42,42.31c0,0,15.54-37.63,16.49-38.2c0.25-0.15,0.47,0.14,0.65,0.64
c-4.29,9.98-10.97,25.56-18.07,42.23c-0.76,0.08-1.45,0.55-1.78,1.3c-0.33,0.76-0.19,1.6,0.29,2.21
c-13.97,32.86-28.98,68.71-30.24,73.89c-1.72,7.08-0.81,9.63-0.16,10.52l-0.69,1.59c-0.13,0.31,0.01,0.67,0.32,0.8
c0.31,0.13,0.67-0.01,0.8-0.32l0.69-1.59c1.09-0.13,3.58-1.23,7.55-7.33c2.9-4.46,18.66-39.89,32.99-72.56
c0.88,0.03,1.73-0.46,2.1-1.32c0.37-0.85,0.15-1.8-0.46-2.42c9.78-22.32,18.61-42.73,21.84-50.18c0.8-0.04,1.56-0.52,1.9-1.31
C89.15,190.48,88.89,189.47,88.19,188.86z"/>
<g>
<path class="st3" d="M70.11,184.49c0,0-6.49-2.1-7.77,1.38c-0.83,2.26-13.89,42.37-11.98,43.07c0,0,13.36-38.46,14.28-39.08
c0.92-0.62,1.64,4.98,1.64,4.98L70.11,184.49z"/>
<path d="M22.66,325.66L22.66,325.66c-0.32-0.12-0.48-0.47-0.36-0.78l1.26-3.44c0.12-0.32,0.47-0.48,0.78-0.36l0,0
c0.32,0.12,0.48,0.47,0.36,0.78l-1.26,3.44C23.33,325.61,22.98,325.78,22.66,325.66z"/>
<path class="st4" d="M81.32,182.77c0.81-2.21,0.58-3.81-4.38-5.62c-3.98-1.46-6.13-0.83-6.98,1.47
c-0.07,0.18-0.31,0.24-0.46,0.4c0,0-45.22,123.74-47.05,133.72c-1.83,9.98,0.94,10.92,0.94,10.92s2.73,1.07,7.76-7.74
c5.04-8.81,50.26-132.55,50.26-132.55C81.4,183.16,81.25,182.95,81.32,182.77z"/>
<line class="st1" x1="63.29" y1="203.47" x2="56.77" y2="221.67"/>
<line class="st1" x1="69.23" y1="186.88" x2="67.04" y2="192.98"/>
<path class="st5" d="M81.32,182.77c0.81-2.21,0.58-3.81-4.38-5.62c-2.74-1-4.6-1-5.78-0.16c0.17,0.06,0.32,0.09,0.5,0.16
c4.96,1.81,5.19,3.41,4.38,5.62c-0.07,0.18,0.08,0.39,0.1,0.6c0,0-45.22,123.74-50.26,132.55c-1.46,2.56-2.73,4.28-3.79,5.44
c0.44,2,1.31,2.3,1.31,2.3s2.73,1.07,7.76-7.74c5.04-8.81,50.26-132.55,50.26-132.55C81.4,183.16,81.25,182.95,81.32,182.77z"/>
<path class="st3" d="M59.14,241.47l-9.83-3.59c-1.14-0.42-1.72-1.68-1.31-2.82l0,0c0.42-1.14,1.68-1.73,2.82-1.31l9.83,3.59
c1.14,0.42,1.72,1.68,1.31,2.82v0C61.54,241.3,60.28,241.89,59.14,241.47z"/>
<path class="st3" d="M79.3,186.32l-9.83-3.59c-1.14-0.42-1.72-1.68-1.31-2.82l0,0c0.42-1.14,1.68-1.72,2.82-1.31l9.83,3.59
c1.14,0.42,1.72,1.68,1.31,2.82l0,0C81.7,186.15,80.44,186.74,79.3,186.32z"/>
</g>
</g>
<g>
<path class="st2" d="M92.64,244.48l-1.36,3.21c-0.89,2.11-0.82,4.52,0.2,6.56c8.1,16.25,44.33,90.68,55.15,143.31
c1.02,4.95,6.37,7.54,10.76,5.23c16.78-8.83,56.12-26.58,108.76-31.33c1.32-0.12,2.59-0.58,3.67-1.37
c9.76-7.06,61.57-43.35,105-50.83c4.51-0.78,7.33-5.45,5.94-9.92l-43.3-140.23c-1.26-4.07-5.5-6.31-9.46-5.01l-230.78,76.1
C95.17,240.89,93.5,242.45,92.64,244.48z"/>
<path class="st6" d="M75.39,225.85l-1.48,3.4c-0.97,2.24-0.89,4.79,0.22,6.97c8.82,17.24,48.25,96.21,60.03,152.07
c1.11,5.25,6.93,8,11.71,5.55c18.27-9.37,61.08-28.21,118.37-33.24c1.44-0.13,2.82-0.62,4-1.45c10.62-7.49,67.01-46,114.28-53.93
c4.91-0.82,7.97-5.78,6.47-10.53l-47.13-148.8c-1.37-4.32-5.98-6.7-10.29-5.31L80.38,221.32
C78.14,222.04,76.32,223.69,75.39,225.85z"/>
<path class="st7" d="M329.52,104.75c17.25,43.58,33.21,92.68,45.62,147.04c3.09,13.54,5.83,26.83,8.25,39.86
c0.78,4.18-1.95,8.2-6.13,9.02c-2.55,0.5-5.14,1.05-7.76,1.65c-19.93,4.57-37.22,11.17-51.75,18.14
C321.67,248.55,325.6,176.65,329.52,104.75z"/>
<path class="st7" d="M71.42,223.64c-1.26-2.23-1.32-4.96-0.09-7.21c0.65-1.19,1.39-2.41,2.25-3.64
c5.48-7.9,12.57-12.05,16.89-14.09c17.33,61.42,46.66,121.31,63.99,182.73l-10.29,2.13c-3.8,0.78-7.57-1.47-8.66-5.2
c-13.83-47.62-31.61-95.37-58.41-144.52C75.22,230.41,73.33,227.01,71.42,223.64z"/>
<path class="st8" d="M78.38,210.76l59.71,163.88c2.33,6.39,9.5,9.6,15.79,7.03c13.84-5.65,29.96-11.2,48.18-15.72
c22.68-5.62,43.26-8.3,60.61-9.47c2.46-0.17,4.8-1.08,6.72-2.64c16.96-13.74,38.62-28.91,65.23-42.67
c15.79-8.16,30.87-14.56,44.71-19.6c6.13-2.23,9.38-8.91,7.32-15.1c-19.4-58.3-38.8-116.6-58.2-174.89
c-2.12-6.37-9.05-9.78-15.38-7.55c-13.86,4.87-29.35,11.37-45.65,20.13c-24.75,13.31-44.37,28.05-59.17,40.98
c-1.98,1.73-4.47,2.77-7.1,2.94c-17.32,1.1-40.3,4.37-65.95,13.28c-21.29,7.39-38.66,16.67-51.97,25.13
C78.47,199.52,76.45,205.45,78.38,210.76z"/>
<path class="st9" d="M294.94,297.63c0,0,22.11-19.4,45.78-21.73"/>
<path class="st9" d="M305.93,295.95c0,0,14.74-9.31,24.05-11.9"/>
<path class="st9" d="M248.58,154.13c0,0,22.11-19.4,45.78-21.73"/>
<path class="st9" d="M259.57,152.45c0,0,14.74-9.31,24.05-11.9"/>
<path class="st10" d="M148.69,229.01l-19.37,8.66c-3.26,1.46-7.08,0-8.53-3.26l-9.51-21.26c-1.46-3.26,0-7.08,3.26-8.53
l19.37-8.66c3.26-1.46,7.08,0,8.53,3.26l9.51,21.26C153.4,223.73,151.94,227.55,148.69,229.01z"/>
<circle class="st10" cx="176.22" cy="202.45" r="8.73"/>
<path class="st10" d="M171.12,326.85c-0.82,4.75-5.34,7.94-10.09,7.11c-4.75-0.82-7.94-5.34-7.11-10.09
c0.82-4.75,5.34-7.94,10.09-7.11C168.75,317.59,171.94,322.1,171.12,326.85z"/>
<path class="st10" d="M178.04,332.28c-0.82,4.75-5.34,7.94-10.09,7.11c-4.75-0.82-7.94-5.34-7.11-10.09
c0.82-4.75,5.34-7.94,10.09-7.11C175.67,323.02,178.86,327.53,178.04,332.28z"/>
<ellipse transform="matrix(0.7071 -0.7071 0.7071 0.7071 -81.6645 186.4035)" class="st10" cx="184.18" cy="191.78" rx="12.22" ry="12.22"/>
<path class="st9" d="M204.15,299.31c0,0,17.3-9.31,34.32-7.24"/>
<path class="st9" d="M206.12,308.15c0,0,17.3-9.31,34.32-7.24"/>
<path class="st9" d="M208.09,316.99c0,0,17.3-9.31,34.32-7.24"/>
<path class="st11" d="M205.18,157.86c0,0,50.65,107.44,61.28,198.39"/>
<g>
<path class="st9" d="M141.37,251.05c0,0,28.66-19.61,59.37-20.71"/>
<path class="st9" d="M144.22,260.55c0,0,28.66-19.61,59.37-20.71"/>
<path class="st9" d="M147.06,270.06c0,0,28.66-19.61,59.37-20.71"/>
<path class="st9" d="M149.9,279.56c0,0,28.66-19.61,59.37-20.71"/>
<path class="st9" d="M152.74,289.06c0,0,28.66-19.61,59.37-20.71"/>
<path class="st9" d="M155.59,298.57c0,0,28.66-19.61,59.37-20.71"/>
</g>
<g class="st12">
<g>
<path class="st2" d="M335.06,177.05l4.9,18.39c0.7,2.64-1.06,4.62-3.95,4.41l-35.97-2.57l-44.37-3.16l36.86-24.78l36.03,2.56
c1.95,0.14,3.9,1.23,5.18,2.74C334.37,175.37,334.84,176.2,335.06,177.05z"/>
<path class="st2" d="M339.08,211.36l-29.94-2.14l-36.87,24.8l74.26,5.3c2.89,0.21,4.65-1.77,3.95-4.41l-4.9-18.38
C344.88,213.87,341.97,211.56,339.08,211.36z"/>
<path class="st2" d="M339.42,212.61l-86.04,57.8l21.8,2.32l-3.62,18.48l75.31-50.65c2.4-1.61,3.78-5.07,3.07-7.71l-4.9-18.38
C344.34,211.83,341.82,210.99,339.42,212.61z"/>
</g>
</g>
<g>
<g>
<path class="st13" d="M334.26,173.47l4.9,18.39c0.7,2.64-1.06,4.62-3.95,4.41l-35.97-2.57l-44.37-3.16l36.86-24.78l36.03,2.56
c1.95,0.14,3.9,1.23,5.18,2.74C333.56,171.79,334.03,172.62,334.26,173.47z"/>
<path class="st10" d="M251.14,214.59l86.04-57.8l-21.8-2.32l3.62-18.48l-75.31,50.65c-2.4,1.61-3.78,5.07-3.07,7.71l4.9,18.38
C246.22,215.37,248.74,216.2,251.14,214.59z"/>
<path class="st13" d="M338.28,207.78l-29.94-2.14l-36.87,24.8l70.8,4.47c2.89,0.21,7.57-2.99,6.86-5.63l-4.35-16.34
C344.07,210.29,341.16,207.98,338.28,207.78z"/>
<path class="st10" d="M261.61,253.89l75.31-50.65c2.4-1.61,3.78-5.07,3.07-7.71l-4.9-18.38c-0.7-2.64-3.22-3.48-5.62-1.86
l-75.31,50.65c-2.4,1.61-3.78,5.07-3.07,7.71l4.9,18.38C256.69,254.67,259.21,255.5,261.61,253.89z"/>
<path class="st14" d="M338.61,209.03l-86.04,57.8l21.8,2.32l-3.62,18.48l75.31-50.65c2.4-1.61,3.78-5.07,3.07-7.71l-4.9-18.38
C343.53,208.25,341.01,207.41,338.61,209.03z"/>
<path class="st14" d="M250.33,211.01l86.04-57.8l-21.8-2.32l3.62-18.48l-75.31,50.65c-2.4,1.61-3.78,5.07-3.07,7.71l4.9,18.38
C245.41,211.79,247.93,212.62,250.33,211.01z"/>
<path class="st14" d="M260.8,250.31l75.31-50.65c2.4-1.61,3.78-5.07,3.07-7.71l-4.9-18.38c-0.7-2.64-3.22-3.48-5.62-1.86
l-75.31,50.65c-2.4,1.61-3.78,5.07-3.07,7.71l4.9,18.38C255.88,251.09,258.4,251.92,260.8,250.31z"/>
</g>
<g>
<g>
<text transform="matrix(0.8508 -0.5255 0.5255 0.8508 268.682 189.8981)" class="st15 st16 st17">LOG</text>
<text transform="matrix(0.8508 -0.5255 0.5255 0.8508 269.7597 188.8204)" class="st15 st16 st17">LOG</text>
</g>
<text transform="matrix(0.8508 -0.5255 0.5255 0.8508 269.7597 188.8204)" class="st8 st16 st17">LOG</text>
</g>
<g>
<g>
<text transform="matrix(0.8302 -0.5575 0.5575 0.8302 279.1401 231.4013)" class="st15 st16 st17">BOOK</text>
<text transform="matrix(0.8302 -0.5575 0.5575 0.8302 280.2178 230.3236)" class="st15 st16 st17">BOOK</text>
</g>
<text transform="matrix(0.8302 -0.5575 0.5575 0.8302 280.2178 230.3236)" class="st8 st16 st17">BOOK</text>
</g>
<g>
</g>
</g>
</g>
<g>
<path class="st2" d="M341.09,406.33l-1.31-0.83c0.03-1.01-0.59-3.42-5.43-7.83c-1.09-1-4.65-3.51-9.81-7
c-0.52-0.88-1.26-1.69-2.19-2.33l-28.36-18.92c-1.31-0.9-2.68-1.36-3.93-1.39c-5.01-3.24-10.12-6.54-15.15-9.78
c0.04-0.71-0.28-1.42-0.91-1.81c-0.62-0.39-1.36-0.37-1.96-0.03c-13.61-8.75-26.37-16.9-34.55-22.11
c-0.12-0.47-0.11-0.81,0.15-0.83c0.99-0.08,31.37,19.92,31.37,19.92c0.96-1.6-30.12-22.97-31.93-24.12
c-1.66-1.06-3.54,0.38-4.79,1.72c-0.61-0.39-1.15-0.73-1.63-1.04c-0.03-0.65-0.35-1.26-0.91-1.62c-0.66-0.42-1.47-0.37-2.08,0.05
c-1.25-0.74-2.5-0.58-3.79,0.67l-3.16-2.01c-1.02-0.65-2.37-0.31-3.01,0.77l-0.75,1.27c-0.64,1.07-0.33,2.47,0.69,3.12l3.1,1.97
c-0.67,1.99-0.04,2.92,1.15,3.72c-0.2,0.83,0.11,1.73,0.85,2.2c0.65,0.41,1.44,0.37,2.05-0.03c6.12,3.88,22.89,14.51,41.32,26.07
c-0.14,0.79,0.19,1.62,0.88,2.07c0.7,0.45,1.57,0.36,2.2-0.13c5.1,3.2,10.28,6.44,15.37,9.61c0.59,1.22,1.6,2.34,2.94,3.12
c0,0,0,0,0,0c0,0,0.01,0,0.01,0.01c0,0,0.15,0.08,0.39,0.23l28.85,16.74c0.52,0.3,1.07,0.51,1.61,0.67
c5.95,3.56,10.16,5.97,11.61,6.57c5.99,2.47,8.36,1.96,9.22,1.47l1.31,0.83c0.25,0.16,0.59,0.08,0.75-0.19
C341.42,406.84,341.34,406.49,341.09,406.33z"/>
<g>
<g>
<path class="st18" d="M234.59,327.36c0,0,3.67-5.08,6.37-3.16c1.75,1.24,31.67,24.2,30.64,25.75c0,0-29.3-21.55-30.29-21.52
c-0.99,0.03,1.33,4.61,1.33,4.61L234.59,327.36z"/>
<path d="M340.98,407.33L340.98,407.33c0.17-0.26,0.11-0.61-0.13-0.78l-2.66-1.89c-0.25-0.17-0.58-0.11-0.76,0.15l0,0
c-0.17,0.26-0.11,0.61,0.13,0.78l2.66,1.89C340.47,407.65,340.81,407.59,340.98,407.33z"/>
<path class="st19" d="M230.01,327.63l-0.82,1.23c-0.69,1.04-2.06,1.31-3.04,0.61l-4.74-3.37c-0.99-0.7-1.23-2.11-0.53-3.15
l0.82-1.23c0.69-1.04,2.06-1.31,3.04-0.61l4.74,3.37C230.46,325.19,230.7,326.59,230.01,327.63z"/>
<path class="st20" d="M225.53,332.13c-1.71-1.22-2.36-2.54,0.34-6.58c2.17-3.24,4.06-3.94,5.84-2.67
c0.14,0.1,0.35,0.01,0.54,0.05c0,0,95.91,68.13,102.31,74.61c6.41,6.48,4.86,8.68,4.86,8.68s-1.45,2.27-9.6-1.59
c-8.16-3.87-104.06-72-104.06-72C225.67,332.47,225.67,332.23,225.53,332.13z"/>
<path class="st21" d="M332.26,402.21c-8.16-3.87-104.06-72-104.06-72c-0.1-0.17-0.1-0.4-0.24-0.5
c-1.71-1.22-2.36-2.54,0.34-6.58c0.1-0.15,0.2-0.29,0.3-0.43c-0.86,0.49-1.77,1.42-2.73,2.86c-2.7,4.04-2.06,5.36-0.34,6.58
c0.14,0.1,0.14,0.33,0.24,0.5c0,0,95.91,68.13,104.06,72c8.16,3.87,9.6,1.59,9.6,1.59s0.35-0.52,0.01-1.78
C338,404.39,335.74,403.86,332.26,402.21z"/>
<line class="st1" x1="255.28" y1="342.84" x2="260.61" y2="346.76"/>
<line class="st1" x1="237.93" y1="330.07" x2="251.85" y2="340.32"/>
<path class="st18" d="M271.56,364.06l5.36-8.01c0.62-0.93,0.41-2.19-0.48-2.81l0,0c-0.88-0.63-2.1-0.38-2.72,0.54l-5.36,8.01
c-0.62,0.93-0.41,2.19,0.48,2.81l0,0C269.72,365.23,270.94,364.99,271.56,364.06z"/>
<path class="st18" d="M228.81,333.7l5.36-8.01c0.62-0.93,0.41-2.19-0.48-2.81l0,0c-0.88-0.63-2.1-0.38-2.72,0.54l-5.36,8.01
c-0.62,0.93-0.41,2.19,0.48,2.81l0,0C226.97,334.87,228.19,334.63,228.81,333.7z"/>
</g>
<path class="st22" d="M324.67,395.96l0.46-0.69c1.51-2.25,0.6-5.63-2.06-7.67l-27.35-20.37c-2.83-2.17-6.08-2.23-7.69,0.17
l-1.9,2.84c-1.61,2.41-0.45,6.06,2.54,8.01L317,396.72C319.79,398.54,323.17,398.21,324.67,395.96z"/>
<path class="st19" d="M288.29,376.25l5.38-8.46c0.46-0.73,1.45-0.92,2.15-0.41c4.82,3.54,21.64,16.04,26.14,19.38
c0.63,0.47,0.79,1.34,0.37,2l-4.31,6.78c-0.45,0.7-1.38,0.91-2.08,0.45c-5.53-3.6-27.25-17.75-27.25-17.75
c0,0-0.01-0.01-0.01-0.01C288.01,377.82,287.87,376.92,288.29,376.25z"/>
</g>
</g>
<g>
<circle class="st2" cx="436.14" cy="340.38" r="66.73"/>
<circle class="st8" cx="444.06" cy="327.42" r="66.73"/>
<path class="st7" d="M450.9,390.55c-36.85,0-66.73-29.88-66.73-66.73c0-24.21,12.9-45.41,32.2-57.11
c-23.03,10.52-39.04,33.74-39.04,60.71c0,36.85,29.88,66.73,66.73,66.73c12.64,0,24.46-3.52,34.53-9.62
C470.15,388.38,460.78,390.55,450.9,390.55z"/>
<circle class="st23" cx="444.06" cy="327.42" r="51.99"/>
<path class="st7" d="M509.05,332.78h-38.18c-2.96,0-5.37-2.4-5.37-5.37l0,0c0-2.96,2.4-5.37,5.37-5.37h38.18
c2.96,0,5.37,2.4,5.37,5.37l0,0C514.42,330.38,512.01,332.78,509.05,332.78z"/>
<path class="st24" d="M512.85,331.21c-8.35-0.23-15.07-2.79-20.08-5.72c-3.95-2.31-8.49-3.43-13.07-3.43h-8.6
c-2.8,0-5.31,2.05-5.57,4.84c-0.31,3.2,2.2,5.89,5.34,5.89h38.18C510.54,332.78,511.88,332.18,512.85,331.21z"/>
<circle class="st7" cx="444.06" cy="327.42" r="43.47"/>
<circle class="st25" cx="444.06" cy="327.42" r="37.98"/>
<circle class="st26" cx="444.06" cy="327.42" r="32.1"/>
<circle class="st27" cx="444.06" cy="327.42" r="30.06"/>
<g>
<path class="st28" d="M428.11,303.6c-5.07,2.75-10.72,8.73-11.95,21.24c-1.42,14.45,8.1,20.34,10.08,18.36
c1.98-1.98-6.6-12.75,1.08-26.16c5.76-10.05,13.45-7.29,12.84-12.84C439.62,299.31,430.61,302.24,428.11,303.6z"/>
<path class="st28" d="M428.73,348.45c0.22,0.22,11.52,8.19,12.87,4.59S425.76,345.48,428.73,348.45z"/>
<path class="st28" d="M460.77,314.07c-4.26-4.26-12.69-7.11-23.22-0.54c-11.78,7.35-10.42,31.45,6.03,32.22
c10.1,0.47,12.43-10.27,3.73-6.45c-1.57,0.69-5.34,2.02-7.12,0.24c-5.47-5.47,0.06-11.5,6.54-12.12
c4.29-0.41,10.81,3.17,13.23,1.18C464.4,324.96,463.71,317.01,460.77,314.07z"/>
<path class="st28" d="M470.4,320.82c1.23,1.23,2.25,5.67,0,14.85c-2.88,11.73-13.5,15.48-12.87,12.24s5.6-1.56,9.9-15.75
C469.23,326.22,469.18,319.61,470.4,320.82z"/>
<path class="st28" d="M452.88,301.98c-0.26-0.14-6.89-1.02-6.42,1.02c0.48,2.04,13.08,5.04,12.42,2.58
C458.22,303.12,454.42,302.82,452.88,301.98z"/>
<path class="st28" d="M463.13,308.46c-0.22-0.11-2.48-1.11-0.59,0.78c1.89,1.89,5.58,5.4,5.16,3.42
C467.28,310.68,464.53,309.14,463.13,308.46z"/>
</g>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 18 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -1,221 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 28.4.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 401 267" style="enable-background:new 0 0 401 267;" xml:space="preserve">
<style type="text/css">
.st0{fill:#E6E3FD;}
.st1{fill:#C1BBF2;}
.st2{fill:#F9B1D9;}
.st3{fill:#59CF90;}
.st4{fill:#42976B;}
.st5{fill:#FDCB9A;}
.st6{fill:#4F4E4D;}
.st7{fill:#D67CC0;}
.st8{fill:#E2F4EB;}
.st9{fill:#E5B88D;}
.st10{fill:#333233;}
.st11{fill:#43966C;}
.st12{fill:#BE70AC;}
</style>
<g>
<path class="st0" d="M75.45,258.94c0.61-1.21-58.33-84.42-62.09-91.41c4.02-6.74,5.65-8.75,8.58-12.54
c10.91-14.09,26.76-21.15,44.1-24.71c7.94-1.63,16.13-0.94,24.22-0.96c1.25,0,2.13,0.62,2.9,1.47
c10.29,11.4,23.97,16.05,38.43,18.71c10.85,2,21.82,3.03,32.92,3.23c14.84,0.27,29.44-0.59,43.61-5.3c3.38-1.12,6.95-1.84,9.98-3.9
c1.09,1.08,1.77,2.23,0.68,3.71c-6.9,3.04-14.48,3.4-21.63,5.45c-8.7,0.65-16.61,2.62-20.2,11.92c-0.1,0.23-0.14,0.47-0.11,0.72
c0,0,0,0,0,0c-2.82,3.66-2.06,7.87-0.78,11.54c2.59,7.44,8.93,12.44,13.44,18.65c2.37,3.26,5.53,5.97,7.72,9.44
c2.02,14.08,4.03,28.15,6.05,42.23c-1.47,0.96-3.2,1.03-4.82,1.5c-3.16,0.91-6.36,1.96-7.39,5.71c-0.8,1.46-0.92,3.03-0.73,4.65
C183.23,258.99,86.08,258.88,75.45,258.94z"/>
<path class="st0" d="M263.13,111.31c2.8-0.35,4.55-2.49,6.58-4.05c10.05-7.73,21-13.74,33.4-16.58c8.34-1.91,16.84-2.97,25.49-2.72
c3.3,0.1,5.34,2.05,7.46,3.79c14.91,12.2,27.96,26.12,38.15,42.55c11.52,18.57,19.01,38.67,22.43,60.26
c1.86,11.72,2.49,23.43,0.13,35.19c-1.89,9.41-6.2,17.17-14.43,22.45c-0.11-1.88-1.35-3.09-2.51-4.4
c-3.11-3.5-6.04-7.17-9.25-10.58c-3.53-3.75-6.25-8.25-10.52-11.31c-0.14-0.94-0.68-1.48-1.61-1.63c-0.86-2.37-2.62-4.07-4.26-5.89
c-2.28-2.51-4.77-4.88-6.32-7.97c6.82-4.35,11.18-10.26,11.26-18.63c0.09-8.98,0.18-17.96-0.05-26.93
c-0.23-8.88-4.43-15.37-12.67-19.03c-13.18-7.22-30.38,3.98-30.09,19.04c0.06,2.87-0.04,5.74-0.06,8.62
c-1.14,0.05-1.82-0.73-2.47-1.47c-6.13-6.98-12.26-13.96-18.36-20.96c-6.42-7.37-12.41-15.12-19.51-21.89
C271.65,123.22,267.39,117.26,263.13,111.31z"/>
<path class="st1" d="M275.91,129.17c7.1,6.76,13.09,14.52,19.51,21.89c6.1,7,12.23,13.98,18.36,20.96
c0.65,0.74,1.33,1.52,2.47,1.47c0.09,6.26,0.18,12.53,0.27,18.79c-0.32,2.54,0.26,4.88,1.29,7.23c3.51,8.03,9.65,12.36,18.25,13.36
c0.23,3.84-0.27,7.72,0.59,11.54c-5.69,0.02-11.38,0.01-17.07,0.07c-3.66,0.04-5.4,2.21-4.63,5.76c0.51,2.32,3.01,2.04,4.42,3.2
c0.02,0.26,0.05,0.52,0.07,0.78c0.02,1.85-0.4,3.84,0.14,5.52c2.03,6.27,1.49,12.88,2.83,19.22c0,0-0.02,0.06-0.02,0.06
c-0.26,0.01-0.51,0.01-0.77,0.02c-0.74,0-1.48,0-2.22,0c-19.5,0-39,0-58.5,0c-0.48-0.02-0.96-0.03-1.44-0.05
c-0.04-1.52-0.08-3.03-0.11-4.55c0.04-0.24,0.03-0.48,0-0.72c0.01-3.85,0.11-7.71,0.01-11.56c-0.11-4.07-2.3-6.67-5.8-7.23
c-0.11-0.74-0.01-1.61-0.38-2.19c-3.21-5.14-5.52-10.77-9.07-15.73c-3.54-4.95-6.69-10.18-9.9-15.35
c-3.98-6.42-7.87-12.91-11.76-19.39c-0.74-1.23-0.91-2.46,0.95-2.79c1.37-0.24,2.13-1.82,3.68-1.56c2.46,4.74,6.12,5.67,10.8,3.42
c0.54-0.26,1.22-0.2,1.83-0.34c12.39-2.99,24.57-6.52,34.58-14.95c6.31-5.31,8.74-12.17,7.55-20.32c-0.13-0.87-0.58-1.33-1.41-1.48
c0.49-3.11-0.9-5.65-2.28-8.28C277.03,133.85,275.39,131.84,275.91,129.17z"/>
<path class="st2" d="M275.91,129.17c-0.51,2.66,1.13,4.68,2.22,6.78c1.37,2.63,2.76,5.17,2.28,8.28c-0.02,0.24-0.06,0.48-0.1,0.72
c-1.46-0.06-2.49-1.03-3.68-1.68c-7.59-4.14-15.57-6.59-24.29-4.75c-5.84,1.23-11.53,3.09-17.28,4.66
c-5.36,1.46-10.37,4.43-16.19,4.01c1.09-1.48,0.41-2.63-0.68-3.71c-0.27-0.74-0.54-1.47-0.81-2.21
c-3.64-7.51-9.06-13.68-14.82-19.58c5.45-4.67,11.56-8.94,12.47-16.82c0.2-1.69,1.95-0.82,1.94-2.37
c-7.6-0.82-15.19-1.79-22.8-2.37c-2.97-0.23-6-2.11-9.01-0.09c-2.21-1.91-4.96-2.37-7.69-3.04c-3.04-0.75-6.94-0.17-8.05-4.47
c0.8-0.15,1.34-0.54,1.42-1.44c0.55-6.45,2.44-12.81,1.42-19.38c3.56-1.91,7.66-1.92,11.4-3.18c0.51-0.02,1.01-0.05,1.52-0.07
c9.43-1.54,18.73-5.56,28.43-1.36c0.13,0.1,0.26,0.2,0.39,0.3c-0.1-0.13-0.21-0.25-0.31-0.38c-0.41-0.85-1.17-1.18-2.01-1.52
c-4.3-1.7-8.63-1.94-13.15-0.88c-1.89,0.45-4.16,0.96-3.16-2.77c0.65-2.41,1.56-4.93,1.1-7.57c0.97-0.98,1.93-1.97,2.9-2.95
c5.73,1.1,11.9,0.13,16.86,4.68c4.59,4.2,9.01,8.53,13.15,13.15c8.22,9.18,14.55,19.84,22.77,29.01
c3.44,3.84,5.87,8.56,10.15,11.66c0.28,0.49,0.55,0.98,0.83,1.48C267.39,117.26,271.65,123.22,275.91,129.17z M215.2,68.89
c0.5,0.37,0.84,0.79,1.26,0.89c0.73,0.17,0.83-0.43,0.56-0.87c-0.22-0.36-0.7-0.59-1.12-0.76
C215.81,68.11,215.51,68.56,215.2,68.89z"/>
<path class="st3" d="M83.81,230.47c-2.43,6.17-16.85,31.11-29.75,19.48c-20.03-18.07-45.38-73.65-42.98-78.68
c0.87-1.82,1.37-2.44,2.37-3.8c5.71,0.04,11.39-0.84,17.16-0.11c5.36,0.67,10.46,2.06,15.5,3.85c2.68,0.95,4.52,2.22,2.48,5.88
c5.25-4.27,8.45-0.25,11.7,2.37C76.51,192.57,84.98,209.31,83.81,230.47z"/>
<path class="st4" d="M83.62,230.47c0.15,8.86-2.55,16.99-6.35,24.84c-0.59,1.22-1.21,2.42-1.82,3.63
c-11.47,0.76-21.95-2.7-32.13-7.49c-4.69-3.26-13.13-8.22-19.01-14.36c-4.35-3.87-6.68-7.73-9.52-11.17
c-8.86-15.57-11.01-32.88-5.99-49.22c0.58-1.87,1.29-3.48,2.28-5.44c3.04,0.56,6.08,1.1,9.11,1.68c2.15,0.41,3.89,0.9,3.77,3.91
c-0.08,2.07,1.14,4.15,3.54,4.75c2.05,0.51,3.97,0.12,5.53-1.43c3.05-3.01,6.05-2.27,7.25,1.86c0.64,2.21,2.21,3.34,4.19,2.55
c2.42-0.97,4.21-0.02,5.86,1.2c8.16,6,15.5,12.83,21.46,21.11C77.03,214.14,80.35,222.28,83.62,230.47z M65.04,228.2
c-0.01-3.15-2-5.23-4.98-5.19c-2.89,0.04-4.82,2.03-4.82,4.97c0,3.13,2.05,5.42,4.88,5.46C63.07,233.49,65.05,231.38,65.04,228.2z
M71.78,239.62c-0.06-1.59-0.94-2.91-2.81-3.03c-1.87-0.13-3.1,1.01-3.11,2.9c-0.02,1.9,1.19,2.89,3.07,3
C70.74,242.58,71.72,241.74,71.78,239.62z M63.24,246.18c-0.25-0.97-0.88-1.45-1.85-1.32c-0.78,0.1-1.41,0.59-1.33,1.44
c0.1,1.01,0.83,1.46,1.8,1.32C62.64,247.51,63.19,247.05,63.24,246.18z"/>
<path class="st0" d="M202.56,121.69c5.76,5.91,11.19,12.07,14.82,19.58c-9.63,3.33-19.27,6.57-29.49,7.75
c-9.79,1.12-19.5,1.62-29.37,0.7c-8.66-0.81-17.29-1.69-25.83-3.23c-12.23-2.21-23.94-5.81-33.74-13.93
c-0.82-0.68-2.22-1.37-1.81-2.56c0.45-1.31,1.97-0.63,3.01-0.69c6.59-0.35,13.17,0.39,19.78-0.66c10.56-1.68,16.08-8.46,19.48-17.8
c2.45-6.75,4.16-13.7,6.05-20.61c4.97,0.86,9.98,0.94,15.01,0.79c2.79,1.66,5.91,1.38,8.95,1.5c1.11,4.3,5.01,3.72,8.05,4.47
c2.72,0.67,5.47,1.13,7.69,3.04C189.49,108.44,196.68,114.53,202.56,121.69z"/>
<path class="st0" d="M262.3,109.83c-4.28-3.1-6.7-7.82-10.15-11.66c-8.22-9.16-14.55-19.83-22.77-29.01
c-4.14-4.63-8.57-8.95-13.15-13.15c-4.96-4.54-11.12-3.57-16.86-4.68c-0.02-0.45-0.03-0.9-0.05-1.35
c1.94-4.36,2.32-9.14,3.71-13.65c11.28-0.13,22.17,2.29,33.01,5.08c14.1,3.62,27.64,8.92,40.9,14.75
c13.52,5.94,26.39,13.29,38.88,21.23c3.41,2.16,6.8,4.34,10.67,7.66c-8.71-0.3-16.24,1.06-23.68,2.71
c-12.87,2.87-24.09,9.25-34.45,17.22C266.32,106.55,263.69,107.43,262.3,109.83z"/>
<path class="st5" d="M160.47,91.02c-5.02,0.15-10.04,0.07-15.01-0.79c-5.13-1.21-10.3-2.22-15.41-3.54
c-5.62-1.45-11.15-3.09-16.47-5.34c-6.39-2.7-12.68-5.57-19.8-5.65c0.47-0.27,0.95-0.54,1.97-1.12c-1.86,0-3.14,0-4.42,0
c-0.47-0.03-0.94-0.05-1.42-0.08c-2.45-1.59-5.21-2.69-7.23-4.97c-2.44-2.75-5.66-4.36-9.09-5.54c-3.28-1.12-6.57-2.2-9.85-3.3
c-1.17-0.39-2.48-0.65-2.32-2.35c6-0.24,11.79,1.33,17.6,2.33c16.82,2.9,33.64,5.58,50.71,6.55c7.52,0.43,14.98,1.81,22.47,2.76
c6.09,1.93,12.45,1.36,18.68,1.94C170.54,80,166.86,86.25,160.47,91.02z"/>
<path class="st6" d="M203.04,36.34c-1.39,4.51-1.77,9.29-3.71,13.64c-0.68,0.3-1.34,0.67-2.04,0.89c-2.34,0.75-4.77,1.1-6.67-0.79
c-1.98-1.97-1.46-4.14-0.14-6.44c1.2-2.12,1.03-4.62,0.5-6.94c-0.5-2.18-2.23-3.45-4.41-3.25c-2.06,0.19-2.14,2.15-2.22,3.77
c-0.1,2.11-0.04,4.23-0.1,6.35c-0.02,0.61-0.23,1.32-0.91,1.45c-0.72,0.14-1.26-0.48-1.3-1.07c-0.34-4.34-4.93-6.03-6.07-9.86
c-0.53-2.02-1.71-3.16-3.92-3.21c-2.34-0.05-4.67-0.28-7-0.43c-9.58-2.12-13.03-8.39-9.09-16.46c1.5-3.08,3.86-4.78,7.24-3.6
c4.47,1.56,8.43,0.57,12.63-1.11c10.67-4.27,15.21-2.64,21.31,7.26c0.51,0.83,1.01,0.81,1.76,0.91c3.87,0.53,5.44,2.36,5.25,6.59
C203.92,28.16,203.41,32.25,203.04,36.34z"/>
<path class="st5" d="M175.94,34.1c1.14,3.82,5.73,5.51,6.07,9.86c0.05,0.59,0.58,1.21,1.3,1.07c0.68-0.13,0.9-0.84,0.91-1.45
c0.06-2.11,0-4.23,0.1-6.35c0.08-1.62,0.16-3.58,2.22-3.77c2.18-0.2,3.91,1.06,4.41,3.25c0.53,2.31,0.71,4.82-0.5,6.94
c-1.31,2.31-1.84,4.48,0.14,6.44c1.9,1.89,4.33,1.54,6.67,0.79c0.7-0.23,1.36-0.59,2.04-0.89c0.01,0.45,0.03,0.9,0.05,1.36
c-0.97,0.98-1.93,1.97-2.9,2.95c-3.11,1.64-4.87,4.76-7.54,6.88c-1.26-0.81-1.17-3.58-3.18-2.96c-2.7,0.83-5.63-0.07-8.18,1.37
c-5.43-0.65-12,2.52-15.52-4.6c-0.02-0.44-0.04-0.88-0.06-1.32c0.19-0.28,0.38-0.56,0.57-0.84c0.62-6.27,0.19-12.67,2.23-18.78
C168.5,34.63,172.22,35.19,175.94,34.1z"/>
<path class="st1" d="M360.05,225.92c4.27,3.06,6.99,7.57,10.52,11.31c3.21,3.41,6.14,7.07,9.25,10.58c1.16,1.3,2.4,2.51,2.51,4.4
c-9.35,5.1-19.56,6.39-29.97,6.74c1.26-7.95,2.89-15.86,2.99-23.95c0.27-0.73,0.54-1.47,0.8-2.2c2.88,0.23,4.05-1.1,3.74-3.94
C359.79,227.89,359.99,226.9,360.05,225.92z"/>
<path class="st2" d="M322.39,258.98c-1.34-6.34-0.8-12.95-2.83-19.22c-0.54-1.68-0.12-3.67-0.14-5.52
c7.11,0.01,14.23,0.1,21.34-0.02c2.99-0.05,3.88,0.57,2.37,3.56c-3.54,7-6.86,14.12-10.26,21.2
C329.37,258.97,325.88,258.97,322.39,258.98z"/>
<path class="st7" d="M332.86,258.97c3.41-7.07,6.72-14.19,10.26-21.2c1.52-2.99,0.62-3.61-2.37-3.56
c-7.11,0.12-14.23,0.03-21.34,0.02c-0.02-0.26-0.05-0.52-0.07-0.78c1.12-1.18,2.57-0.68,3.88-0.7c7.2-0.06,14.39-0.05,21.59-0.07
c-0.06,1.7,0.74,2.38,2.46,2.32c2.69-0.09,5.38-0.02,8.07-0.01c-0.1,8.1-1.73,16-2.99,23.95c-0.26,0.08-0.51,0.15-0.77,0.23
c-2.72,0.01-5.45,0.01-8.17,0.02C339.89,259.12,336.38,259.04,332.86,258.97z"/>
<path class="st0" d="M162.05,54.98c3.52,7.12,10.09,3.95,15.52,4.6c1.41,3.41,4.41,5.72,6.09,8.94c-3.74,1.26-7.84,1.28-11.4,3.18
c-0.46,0.07-0.92,0.15-1.38,0.22c-6.23-0.58-12.59-0.01-18.68-1.94C155.61,65.06,157.01,58.83,162.05,54.98z"/>
<path class="st6" d="M259.33,254.45c0.04,1.52,0.08,3.03,0.11,4.55c-20.27-0.06-40.54-0.11-60.81-0.17
c0.01-1.45,0.02-2.9,0.04-4.35C218.89,254.47,239.11,254.46,259.33,254.45z"/>
<path class="st8" d="M24.51,237.09c-0.28-4.38-0.91-7.94-1.03-11.4c-0.07-1.84-0.71-5.08,0.95-5.11c2.16-0.05,1.47,2.52,1.75,4.86
c0.16,1.33,0.05,2.74,1.07,4.45c1.98-4.03,4.65-7.1,3.79-12.07c-0.46-2.65-0.59-4.94-0.79-7.43c-0.09-1.15-0.7-2.91,1.06-3
c1.63-0.08,1.4,1.75,1.55,2.92c0.26,2.08,0.02,4.23,1.08,6.93c1.79-3.44,3.4-6.41,4.87-9.45c0.49-1,0.74-2.51,2.07-1.99
c1.59,0.63,0.65,1.68,0.25,2.63c-2.47,5.86-7.28,13.16-10.15,20.38c3.45-0.92,5.42-1.26,8.48-2.14c1.06-0.31,2.4-0.94,2.79,0.64
c0.3,1.24-1,1.48-1.96,1.76c-3.1,0.93-6.19,1.9-9.3,2.8c-0.95,0.28-1.84,0.45-2.53,1.36c-3.04,4.04-2.23,4.82-1.19,6.47
C25.3,237.87,25.55,238.22,24.51,237.09z"/>
<path class="st9" d="M61.41,58.34c-0.16,1.71,1.15,1.96,2.32,2.35c3.28,1.1,6.57,2.18,9.85,3.3c3.43,1.18,6.65,2.79,9.09,5.54
c2.02,2.28,4.78,3.38,7.23,4.97c-2.66,0.78-4.6-1.29-6.91-1.88c-3.6-0.92-7-2.59-10.81-2.76c-0.91-0.04-2.23-0.38-2.05-1.2
c1.03-4.65-3.21-4.05-5.31-5.51c-1.21-0.84-2.77-1.2-3.92-2.1C59.7,60.11,59.1,58.84,61.41,58.34z"/>
<path class="st0" d="M260.88,259.05c19.5,0,39,0,58.5,0c-0.91,0.94-2.08,0.65-3.17,0.65c-17.39,0.01-34.78,0.01-52.17,0
C262.96,259.71,261.79,260,260.88,259.05z"/>
<path class="st9" d="M175.94,34.1c-3.73,1.1-7.44,0.54-11.16-0.06c0.08-1.19,0.15-2.38,0.23-3.57c2.34,0.15,4.67,0.37,7.01,0.43
C174.23,30.94,175.41,32.08,175.94,34.1z"/>
<path class="st10" d="M198.67,254.48c-0.01,1.45-0.02,2.9-0.04,4.35c-2.74,0.05-5.48,0.1-8.22,0.14c-0.19-1.62-0.06-3.19,0.73-4.65
C193.66,254.38,196.16,254.43,198.67,254.48z"/>
<path class="st0" d="M343.41,259.19c2.72-0.01,5.45-0.01,8.17-0.02C348.86,260.07,346.14,260.04,343.41,259.19z"/>
<path class="st9" d="M91.32,74.58c1.28,0,2.56,0,4.42,0c-1.01,0.58-1.49,0.85-1.97,1.12C92.68,75.94,91.69,75.96,91.32,74.58z"/>
<path class="st0" d="M162.56,52.82c-0.19,0.28-0.38,0.56-0.57,0.84C162.18,53.38,162.37,53.1,162.56,52.82z"/>
<path class="st0" d="M321.6,259.06c0.26-0.01,0.51-0.01,0.77-0.02C322.13,259.44,321.87,259.43,321.6,259.06z"/>
<path class="st5" d="M227.05,177.9c-1.55-0.25-2.31,1.32-3.68,1.56c-1.86,0.33-1.69,1.56-0.95,2.79
c3.9,6.48,7.78,12.97,11.76,19.39c3.21,5.18,6.37,10.4,9.9,15.35c3.55,4.97,5.87,10.6,9.07,15.73c0.36,0.58,0.26,1.46,0.37,2.19
c0.19,2.43-0.96,3.23-3.33,3.11c-3.22-0.16-6.45-0.03-9.67-0.03c-2.39-0.01-4.88,0.51-5.84-2.86c-0.41-1.44-2.15-1.91-3.78-1.65
c-4.36-6.72-10.07-12.32-15.56-18.02c-10.45-10.85-21.12-21.48-31.1-32.78c-4.39-4.97-8.81-9.97-7.33-17.43c0,0,0,0,0,0
c0.1-0.06,0.28-0.13,0.27-0.18c-0.02-0.18-0.1-0.36-0.16-0.54c3.59-9.3,11.5-11.27,20.2-11.92c0.88,2.53,3.64,2.05,5.39,3.32
c7.92,5.76,16.06,11.22,22.33,18.93C225.65,175.89,226.35,176.9,227.05,177.9z"/>
<path class="st7" d="M211.36,159.47c4.67,3.44,8.81,7.47,12.97,11.49c1.43,1.38,1.51,2.44,0.61,3.92
c-6.27-7.7-14.41-13.16-22.33-18.92c-1.74-1.27-4.51-0.79-5.39-3.32c7.15-2.05,14.73-2.4,21.63-5.45
c5.82,0.42,10.84-2.56,16.19-4.01c5.76-1.57,11.44-3.43,17.28-4.66c8.72-1.84,16.7,0.61,24.29,4.75c1.2,0.65,2.22,1.62,3.68,1.68
c0.58,11.03-8.43,19.18-18.09,23.61c-9.25,4.24-19.37,5.91-29.33,7.88c-1.63,0.32-2.74-0.24-3.72-1.73
c-2.45-3.75-5.57-7.06-8.99-9.86"/>
<path class="st1" d="M203.36,247.13c-2.02-14.08-4.03-28.15-6.05-42.23c3.06,2.38,5.54,5.4,7.73,8.45
c5.15,7.17,11.2,13.54,16.9,20.22c-0.11,1.58,0.22,3.23-1.22,4.51C215.68,242.53,210.37,246.45,203.36,247.13z"/>
<path class="st9" d="M221.94,233.57c-5.7-6.68-11.75-13.05-16.9-20.22c-2.19-3.05-4.68-6.08-7.73-8.45
c-2.19-3.47-5.35-6.18-7.72-9.44c-4.51-6.21-10.85-11.22-13.44-18.65c-1.28-3.67-2.05-7.87,0.78-11.54
c-1.48,7.46,2.94,12.46,7.33,17.43c9.97,11.3,20.64,21.93,31.1,32.78c5.49,5.7,11.2,11.3,15.56,18.02
c-0.53,0.99-1.06,1.99-1.6,2.98C227.1,234.91,225.13,232.7,221.94,233.57z"/>
<path class="st7" d="M221.94,233.57c3.19-0.86,5.15,1.35,7.37,2.92c0.11,1.47-1.02,2.21-1.88,3.06
c-5.49,5.36-12.44,7.58-19.73,8.89c-3.34,0.6-6,1.91-8.16,5.3c20.27,0,40.03,0,59.78,0c0.04,0.24,0.04,0.48,0,0.72
c-20.22,0.01-40.44,0.02-60.66,0.03c-2.51-0.05-5.02-0.1-7.52-0.15c1.03-3.75,4.23-4.8,7.39-5.71c1.62-0.47,3.35-0.53,4.82-1.5
c7.01-0.67,12.32-4.59,17.36-9.05C222.16,236.8,221.84,235.15,221.94,233.57z"/>
<path class="st9" d="M177.03,164.55c0.06,0.18,0.14,0.35,0.16,0.54c0.01,0.05-0.17,0.12-0.27,0.18
C176.9,165.02,176.93,164.78,177.03,164.55z"/>
<path class="st11" d="M346.39,145.84c8.25,3.66,12.44,10.15,12.67,19.03c0.23,8.97,0.15,17.95,0.05,26.93
c-0.09,8.37-4.44,14.28-11.26,18.63c-2.89,1.17-5.75,2.52-9.02,2.09c-0.02-3.37,0.05-6.74-0.11-10.11
c-0.14-2.88,0.97-4.73,3.34-6.48c1.72-1.26,3.93-2.35,5.15-4.85c-3.7,0.27-5.23,3.57-8.46,4.55c0-1.83,0.16-3.54-0.03-5.21
c-0.43-3.76,0.48-6.65,3.89-8.87c1.69-1.1,4.02-2.2,4.45-5.21c-3.31,1.18-5.16,3.85-8.31,5.49c0-5.82,0.01-11.14-0.01-16.46
c0-0.85,0.08-2.06-1.01-2.1c-1.12-0.04-1.1,1.15-1.11,2.01c-0.02,3.04-0.01,6.08-0.01,9.82c-2.35-2.01-4.91-2.35-6.06-4.67
c1-1.42,1.82-3.02,3.02-4.22c2.63-2.63,2.52-7.86,7.73-8.11c0.69-0.03,0.76-1.35,0.4-1.97c-1.05-1.83,0.05-2.93,1.03-4.29
C344.12,149.94,345.19,147.85,346.39,145.84z M350.09,163.64c-0.29-2.02-1.32-3.49-3.29-3.46c-1.98,0.04-3.59,1.06-3.41,3.46
c0.15,2.06,1.37,3.11,3.39,3.1C348.83,166.74,349.9,165.58,350.09,163.64z"/>
<path class="st3" d="M346.39,145.84c-1.2,2.01-2.27,4.1-3.63,6c-0.98,1.36-2.08,2.46-1.03,4.29c0.36,0.62,0.29,1.94-0.4,1.97
c-5.21,0.25-5.1,5.48-7.73,8.11c-1.21,1.21-2.03,2.8-3.02,4.22c-0.82-0.37-2.16-1.19-2.46-0.56c-0.67,1.4,1.25,1.79,1.78,2.8
c-1.82,1.72-3.15,3.78-4.43,5.91c-2.82,4.67-5.34,9.54-8.94,13.7c-0.09-6.26-0.18-12.53-0.27-18.79c0.02-2.87,0.12-5.75,0.06-8.62
C316.01,149.82,333.21,138.62,346.39,145.84z"/>
<path class="st1" d="M338.84,212.52c3.27,0.43,6.12-0.92,9.02-2.09c1.55,3.1,4.04,5.46,6.32,7.97c1.65,1.82,3.4,3.52,4.26,5.89
c-3.52,0.08-7.04,0.15-10.56,0.22c-3.01-0.03-6.02-0.07-9.03-0.1C338.84,220.45,338.84,216.49,338.84,212.52z"/>
<path class="st7" d="M347.88,224.52c3.52-0.07,7.04-0.15,10.56-0.22c0.94,0.15,1.47,0.69,1.62,1.63c-0.06,0.98-0.26,1.97-0.16,2.93
c0.3,2.84-0.86,4.18-3.74,3.94c-3.76-0.27-7.57,0.16-11.34-0.11C345.82,230.2,346.87,227,347.88,224.52z"/>
<path class="st2" d="M259.33,253.73c-19.76,0-39.52,0-59.78,0c2.16-3.39,4.82-4.7,8.16-5.3c7.29-1.31,14.24-3.53,19.73-8.89
c0.87-0.85,2-1.58,1.88-3.06c0.53-0.99,1.06-1.99,1.59-2.98c1.63-0.26,3.37,0.21,3.78,1.65c0.96,3.37,3.45,2.85,5.84,2.86
c3.22,0.01,6.46-0.13,9.67,0.03c2.37,0.12,3.52-0.68,3.33-3.11c3.51,0.56,5.69,3.17,5.8,7.23
C259.44,246.02,259.34,249.88,259.33,253.73z"/>
<path class="st11" d="M316.51,192.29c3.6-4.16,6.12-9.03,8.94-13.7c1.29-2.13,2.62-4.19,4.44-5.91c7.14,3.31,7.85,9.15,6.25,16.22
c-1.41-1.11-2.65-2.12-3.93-3.07c-0.87-0.64-2.06-1.85-2.86-0.73c-0.89,1.25,0.97,1.67,1.67,2.39c1.79,1.83,5.01,2.57,5.47,5.28
c0.54,3.19,0.13,6.54,0.13,10.12c-3.41-1.28-5.05-4.81-8.92-4.42c1.57,2.4,3.76,3.74,5.79,5.05c3.82,2.47,3.71,5.7,2.57,9.37
c-8.61-1.01-14.75-5.33-18.26-13.37C316.77,197.17,316.18,194.83,316.51,192.29z M324.63,194.33c-0.01-1-0.14-1.96-1.48-2.02
c-1.3-0.06-2.09,0.57-2.25,1.86c-0.15,1.17,0.48,1.93,1.57,2.07C323.76,196.4,324.52,195.7,324.63,194.33z"/>
<path class="st12" d="M209.51,156.69c4.84,0.94,7.2,5.31,10.67,8.14c3.43,2.8,6.54,6.1,8.99,9.86c0.98,1.5,2.09,2.06,3.72,1.73
c9.96-1.97,20.08-3.64,29.33-7.88c9.66-4.42,18.67-12.58,18.09-23.61c0.04-0.24,0.07-0.48,0.1-0.72c0.83,0.15,1.28,0.61,1.41,1.48
c1.18,8.15-1.24,15.01-7.55,20.32c-10.01,8.43-22.19,11.96-34.58,14.95c-0.6,0.15-1.29,0.09-1.83,0.34
c-4.69,2.25-8.34,1.33-10.8-3.42c-0.7-1.01-1.4-2.02-2.1-3.03c0.9-1.48,0.82-2.54-0.61-3.92c-4.17-4.02-8.3-8.04-12.97-11.49
c-0.87-0.64-1.65-1.36-2.38-2.19L209.51,156.69z"/>
<path class="st2" d="M347.88,224.52c-1,2.49-2.29,6.49-3.06,8.17c-7.2,0.02-14.39,0.01-21.59,0.07c-1.31,0.01-2.76-0.48-3.88,0.7
c-1.41-1.15-3.91-0.88-4.42-3.2c-0.78-3.55,0.96-5.72,4.63-5.76c5.69-0.06,11.38-0.05,17.07-0.07c0.74,0,1.47,0,2.21,0
C341.85,224.45,344.86,224.48,347.88,224.52z"/>
<path class="st8" d="M338.84,224.42c-0.74,0-1.47,0-2.21,0c-0.85-3.81-0.36-7.69-0.59-11.54c0.26-4.76-0.02-7.74-2.57-9.37
c-2.03-1.31-4.22-2.65-5.79-5.05c3.86-0.38,5.51,3.14,8.92,4.42c0-3.58,0.41-6.93-0.13-10.12c-0.46-2.71-3.68-3.45-5.47-5.28
c-0.7-0.72-2.56-1.14-1.67-2.39c0.79-1.12,1.99,0.09,2.86,0.73c1.28,0.95,2.52,1.96,3.93,3.07c0.5-7.63,0.89-12.91-6.25-16.22
c-0.54-1.02-2.46-1.41-1.78-2.8c0.3-0.63,1.65,0.18,2.46,0.56c1.16,2.32,3.71,2.65,6.06,4.66c0-3.74-0.02-6.78,0.01-9.82
c0.01-0.86-0.01-2.05,1.11-2.01c1.09,0.04,1.01,1.25,1.01,2.1c0.02,5.32,0.01,10.64,0.01,16.46c3.15-1.64,5-4.31,8.31-5.49
c-0.43,3.01-2.76,4.11-4.45,5.21c-3.42,2.23-4.32,5.11-3.89,8.87c0.19,1.67,0.03,3.38,0.03,5.21c3.23-0.98,4.76-4.28,8.46-4.55
c-1.22,2.5-3.44,3.59-5.15,4.85c-2.37,1.75-3.47,3.6-3.34,6.48c0.16,3.36,0.08,6.74,0.11,10.11
C338.84,216.49,338.84,220.45,338.84,224.42z"/>
<path class="st7" d="M202.56,121.69c-5.87-7.16-13.07-13.25-17.4-21.66c3.01-2.01,6.04-0.13,9.01,0.09
c7.62,0.58,15.2,1.55,22.8,2.37c0.01,1.55-1.75,0.68-1.94,2.37C214.12,112.75,208.01,117.02,202.56,121.69z"/>
<path class="st7" d="M188.93,61.17c2.68-2.11,4.43-5.24,7.54-6.88c0.46,2.64-0.45,5.16-1.1,7.57c-1.01,3.73,1.27,3.21,3.16,2.77
c4.51-1.07,8.85-0.82,13.15,0.88c0.84,0.33,1.6,0.66,2.01,1.52l-0.07,0.08c-9.7-4.19-19.01-0.18-28.43,1.36
C186.43,66.03,187.68,63.6,188.93,61.17z"/>
<path class="st9" d="M170.88,71.93c0.46-0.07,0.92-0.15,1.38-0.22c1.02,6.57-0.88,12.92-1.42,19.38c-0.08,0.9-0.61,1.29-1.42,1.44
c-3.05-0.12-6.16,0.16-8.95-1.5C166.86,86.25,170.54,80,170.88,71.93z"/>
<path class="st9" d="M188.93,61.17c-1.25,2.43-2.5,4.86-3.75,7.29c-0.51,0.02-1.01,0.04-1.52,0.07c-1.68-3.22-4.69-5.54-6.09-8.94
c2.54-1.44,5.47-0.54,8.18-1.37C187.76,57.59,187.67,60.35,188.93,61.17z"/>
<path class="st7" d="M215.2,68.89c0.31-0.34,0.6-0.79,0.7-0.75c0.42,0.17,0.9,0.4,1.12,0.76c0.27,0.44,0.17,1.04-0.56,0.87
C216.04,69.68,215.7,69.26,215.2,68.89z"/>
<path class="st7" d="M213.69,67.02c0.1,0.13,0.21,0.25,0.31,0.38c-0.13-0.1-0.26-0.2-0.39-0.3
C213.62,67.09,213.69,67.02,213.69,67.02z"/>
<path class="st3" d="M18.92,176.76c0,1.22-0.74,1.92-1.89,1.86c-1.15-0.06-1.69-0.87-1.7-1.99c-0.01-1.04,0.54-1.58,1.58-1.56
C18.05,175.1,18.77,175.56,18.92,176.76z"/>
<path class="st3" d="M26.12,185.41c1.07,0.16,1.81,0.84,1.95,1.84c0.14,1-0.67,1.48-1.6,1.59c-1.19,0.14-1.87-0.39-1.81-1.63
C24.69,186.28,25.09,185.58,26.12,185.41z"/>
<path class="st12" d="M344.82,232.68C344.82,232.45,344.79,232.92,344.82,232.68c3.76,0.27,7.57-0.16,11.34,0.11
c-0.27,0.73-0.54,1.47-0.8,2.2c-2.69,0-5.39-0.08-8.07,0.01C345.55,235.06,344.76,234.39,344.82,232.68z"/>
<path class="st7" d="M123.61,247.1c0.79-0.01,1.58-0.02,2.37-0.03"/>
<path class="st12" d="M211.74,156.99c-0.54-0.1-0.9-0.35-0.84-1.17c0.01-0.09,0.15-0.23,0.23-0.23c0.82-0.05,1.05,0.17,1.14,0.72
C212.28,156.31,211.74,156.99,211.74,156.99z"/>
<path class="st3" d="M350.09,163.64c-0.19,1.93-1.26,3.09-3.31,3.1c-2.02,0.01-3.24-1.04-3.39-3.1c-0.17-2.4,1.44-3.42,3.41-3.46
C348.77,160.15,349.8,161.62,350.09,163.64z"/>
<path class="st3" d="M324.63,194.33c-0.11,1.37-0.87,2.07-2.16,1.91c-1.09-0.14-1.72-0.89-1.57-2.07c0.16-1.3,0.95-1.92,2.25-1.86
C324.5,192.37,324.63,193.33,324.63,194.33z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -1,12 +0,0 @@
namespace Template.Maui
{
public partial class App : Application
{
public App()
{
InitializeComponent();
MainPage = new MainPage();
}
}
}

View File

@@ -1,72 +0,0 @@
using AutoMapper;
using System.Linq.Expressions;
using Template.Shared.Core.Dto;
using Template.Shared.Core.Entity;
using Template.Shared.Core.Helpers.Enum;
using Template.Shared.Core.Interface;
namespace Template.Maui.Core.Services;
public class ManageDataService(LocalDbService localDb, IMapper mapper) : IManageDataService
{
public Task<List<AnagClie>> GetAnagClie(Expression<Func<AnagClie, bool>>? whereCond = null) =>
localDb.Get(whereCond);
public Task<List<JtbComt>> GetJtbComt(Expression<Func<JtbComt, bool>>? whereCond = null) =>
localDb.Get(whereCond);
public Task<List<PtbPros>> GetPtbPros(Expression<Func<PtbPros, bool>>? whereCond = null) =>
localDb.Get(whereCond);
public Task<List<PtbProsRif>> GetPtbProsRif(Expression<Func<PtbProsRif, bool>>? whereCond = null) =>
localDb.Get(whereCond);
public Task<List<StbActivity>> GetStbActivity(Expression<Func<StbActivity, bool>>? whereCond = null) =>
localDb.Get(whereCond);
public Task<List<VtbCliePersRif>> GetVtbCliePersRif(Expression<Func<VtbCliePersRif, bool>>? whereCond = null) =>
localDb.Get(whereCond);
public Task<List<VtbDest>> GetVtbDest(Expression<Func<VtbDest, bool>>? whereCond = null) =>
localDb.Get(whereCond);
public async Task<List<ActivityDTO>> GetActivity(Expression<Func<StbActivity, bool>>? whereCond = null)
{
var activities = await localDb.Get(whereCond);
var codJcomList = activities
.Select(x => x.CodJcom)
.Where(x => !string.IsNullOrEmpty(x))
.Distinct()
.ToList();
var jtbComtList = await localDb.Get<JtbComt>(x => codJcomList.Contains(x.CodJcom));
var commesseDict = jtbComtList.ToDictionary(x => x.CodJcom, x => x.Descrizione);
var returnDto = activities
.Select(activity =>
{
var dto = mapper.Map<ActivityDTO>(activity);
if (activity.CodJcom != null)
{
dto.Category = ActivityCategoryEnum.Commessa;
}
else
{
dto.Category = activity.CodAnag != null ? ActivityCategoryEnum.Interna : ActivityCategoryEnum.Memo;
}
dto.Commessa = activity.CodJcom != null && commesseDict.TryGetValue(activity.CodJcom, out var descr)
? descr
: null;
return dto;
})
.ToList();
return returnDto;
}
public async Task ClearDb() =>
await localDb.ResetDb();
}

View File

@@ -1,12 +0,0 @@
using Template.Shared.Core.Interface;
namespace Template.Maui.Core.Services;
public class NetworkService : INetworkService
{
public bool IsNetworkAvailable()
{
return Connectivity.Current.NetworkAccess == NetworkAccess.Internet;
}
}

View File

@@ -1,69 +0,0 @@
using Template.Shared.Core.Interface;
namespace Template.Maui.Core.Services;
public class SyncDbService(IIntegryApiService integryApiService, LocalDbService localDb) : ISyncDbService
{
public async Task GetAndSaveActivity(string? dateFilter)
{
var allActivity = await integryApiService.GetActivity(dateFilter);
if (allActivity is not null)
if (dateFilter is null)
await localDb.Insert(allActivity);
else
await localDb.InsertOrUpdate(allActivity);
}
public async Task GetAndSaveCommesse(string? dateFilter)
{
var allCommesse = await integryApiService.GetAllCommesse(dateFilter);
if (allCommesse is not null)
if (dateFilter is null)
await localDb.Insert(allCommesse);
else
await localDb.InsertOrUpdate(allCommesse);
}
public async Task GetAndSaveProspect(string? dateFilter)
{
var taskSyncResponseDto = await integryApiService.GetProspect(dateFilter);
if (taskSyncResponseDto.PtbPros is not null)
if (dateFilter is null)
await localDb.Insert(taskSyncResponseDto.PtbPros);
else
await localDb.InsertOrUpdate(taskSyncResponseDto.PtbPros);
if (taskSyncResponseDto.PtbProsRif is not null)
if (dateFilter is null)
await localDb.Insert(taskSyncResponseDto.PtbProsRif);
else
await localDb.InsertOrUpdate(taskSyncResponseDto.PtbProsRif);
}
public async Task GetAndSaveClienti(string? dateFilter)
{
var taskSyncResponseDto = await integryApiService.GetAnagClie(dateFilter);
if (taskSyncResponseDto.AnagClie is not null)
if (dateFilter is null)
await localDb.Insert(taskSyncResponseDto.AnagClie);
else
await localDb.InsertOrUpdate(taskSyncResponseDto.AnagClie);
if (taskSyncResponseDto.VtbDest is not null)
if (dateFilter is null)
await localDb.Insert(taskSyncResponseDto.VtbDest);
else
await localDb.InsertOrUpdate(taskSyncResponseDto.VtbDest);
if (taskSyncResponseDto.VtbCliePersRif is not null)
if (dateFilter is null)
await localDb.Insert(taskSyncResponseDto.VtbCliePersRif);
else
await localDb.InsertOrUpdate(taskSyncResponseDto.VtbCliePersRif);
}
}

View File

@@ -1,20 +0,0 @@
using CommunityToolkit.Mvvm.Messaging;
using Template.Shared.Core.Messages;
namespace Template.Maui
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
protected override bool OnBackButtonPressed()
{
WeakReferenceMessenger.Default.Send(new HardwareBackMessage("back"));
return true;
}
}
}

View File

@@ -1,58 +0,0 @@
using IntegryApiClient.MAUI;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.Extensions.Logging;
using MudBlazor.Services;
using Template.Maui.Core.Services;
using Template.Shared;
using Template.Shared.Core.Helpers;
using Template.Shared.Core.Interface;
using Template.Shared.Core.Messages;
using Template.Shared.Core.Services;
namespace Template.Maui
{
public static class MauiProgram
{
private const string AppToken = "f0484398-1f8b-42f5-ab79-5282c164e1d8";
public static MauiApp CreateMauiApp()
{
InteractiveRenderSettings.ConfigureBlazorHybridRenderModes();
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseLoginAzienda(AppToken)
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
});
builder.Services.AddMauiBlazorWebView();
builder.Services.AddMudServices();
builder.Services.AddAutoMapper(typeof(MappingProfile));
builder.Services.AddAuthorizationCore();
builder.Services.AddScoped<AppAuthenticationStateProvider>();
builder.Services.AddScoped<AuthenticationStateProvider>(provider =>
provider.GetRequiredService<AppAuthenticationStateProvider>());
builder.Services.AddScoped<INetworkService, NetworkService>();
builder.Services.AddScoped<IIntegryApiService, IntegryApiService>();
builder.Services.AddScoped<ISyncDbService, SyncDbService>();
builder.Services.AddScoped<IManageDataService, ManageDataService>();
builder.Services.AddScoped<BackNavigationService>();
#if DEBUG
builder.Services.AddBlazorWebViewDeveloperTools();
builder.Logging.AddDebug();
#endif
builder.Services.AddSingleton<IFormFactor, FormFactor>();
builder.Services.AddSingleton<LocalDbService>();
return builder.Build();
}
}
}

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:usesCleartextTraffic="true" android:supportsRtl="true"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>

View File

@@ -1,13 +0,0 @@
using Android.App;
using Android.Content.PM;
namespace Template.Maui
{
[Activity(Theme = "@style/Maui.SplashTheme",
MainLauncher = true,
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode |
ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
public class MainActivity : MauiAppCompatActivity
{
}
}

View File

@@ -1,16 +0,0 @@
using Android.App;
using Android.Runtime;
namespace Template.Maui
{
[Application]
public class MainApplication : MauiApplication
{
public MainApplication(IntPtr handle, JniHandleOwnership ownership)
: base(handle, ownership)
{
}
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
}
}

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#512BD4</color>
<color name="colorPrimaryDark">#2B0B98</color>
<color name="colorAccent">#2B0B98</color>
</resources>

View File

@@ -1,17 +0,0 @@
using System;
using Microsoft.Maui;
using Microsoft.Maui.Hosting;
namespace Template.Maui
{
internal class Program : MauiApplication
{
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
static void Main(string[] args)
{
var app = new Program();
app.Run(args);
}
}
}

View File

@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="maui-application-id-placeholder" version="0.0.0" api-version="8" xmlns="http://tizen.org/ns/packages">
<profile name="common" />
<ui-application appid="maui-application-id-placeholder" exec="Template.Maui.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single">
<label>maui-application-title-placeholder</label>
<icon>maui-appicon-placeholder</icon>
<metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />
</ui-application>
<shortcut-list />
<privileges>
<privilege>http://tizen.org/privilege/internet</privilege>
</privileges>
<dependencies />
<provides-appdefined-privileges />
</manifest>

View File

@@ -1,8 +0,0 @@
<maui:MauiWinUIApplication
x:Class="Template.Maui.WinUI.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:maui="using:Microsoft.Maui"
xmlns:local="using:Template.Maui.WinUI">
</maui:MauiWinUIApplication>

View File

@@ -1,25 +0,0 @@
using Microsoft.UI.Xaml;
// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
namespace Template.Maui.WinUI
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
public partial class App : MauiWinUIApplication
{
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
this.InitializeComponent();
}
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
}
}

View File

@@ -1,46 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap rescap">
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
<mp:PhoneIdentity PhoneProductId="725421B6-1171-41CC-BE20-94A305E6285E" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties>
<DisplayName>$placeholder$</DisplayName>
<PublisherDisplayName>User Name</PublisherDisplayName>
<Logo>$placeholder$.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
</Dependencies>
<Resources>
<Resource Language="x-generate" />
</Resources>
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$">
<uap:VisualElements
DisplayName="$placeholder$"
Description="$placeholder$"
Square150x150Logo="$placeholder$.png"
Square44x44Logo="$placeholder$.png"
BackgroundColor="transparent">
<uap:DefaultTile Square71x71Logo="$placeholder$.png" Wide310x150Logo="$placeholder$.png" Square310x310Logo="$placeholder$.png" />
<uap:SplashScreen Image="$placeholder$.png" />
</uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>
</Package>

View File

@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="Template.Maui.WinUI.app"/>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<!-- The combination of below two tags have the following effect:
1) Per-Monitor for >= Windows 10 Anniversary Update
2) System < Windows 10 Anniversary Update
-->
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
</windowsSettings>
</application>
</assembly>

View File

@@ -1,10 +0,0 @@
using Foundation;
namespace Template.Maui
{
[Register("AppDelegate")]
public class AppDelegate : MauiUIApplicationDelegate
{
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
}
}

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="456" height="456" viewBox="0 0 456 456" version="1.1" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="0" width="456" height="456" fill="#512BD4" />
</svg>

Before

Width:  |  Height:  |  Size: 229 B

View File

@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="456" height="456" viewBox="0 0 456 456" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<path d="m 105.50037,281.60863 c -2.70293,0 -5.00091,-0.90042 -6.893127,-2.70209 -1.892214,-1.84778 -2.837901,-4.04181 -2.837901,-6.58209 0,-2.58722 0.945687,-4.80389 2.837901,-6.65167 1.892217,-1.84778 4.190197,-2.77167 6.893127,-2.77167 2.74819,0 5.06798,0.92389 6.96019,2.77167 1.93749,1.84778 2.90581,4.06445 2.90581,6.65167 0,2.54028 -0.96832,4.73431 -2.90581,6.58209 -1.89221,1.80167 -4.212,2.70209 -6.96019,2.70209 z" style="fill:#ffffff;fill-rule:nonzero;stroke-width:0.838376" />
<path d="M 213.56111,280.08446 H 195.99044 L 149.69953,207.0544 c -1.17121,-1.84778 -2.14037,-3.76515 -2.90581,-5.75126 h -0.40578 c 0.36051,2.12528 0.54076,6.67515 0.54076,13.6496 v 65.13172 h -15.54349 v -99.36009 h 18.71925 l 44.7374,71.29798 c 1.89222,2.95695 3.1087,4.98917 3.64945,6.09751 h 0.26996 c -0.45021,-2.6325 -0.67573,-7.09015 -0.67573,-13.37293 v -64.02256 h 15.47557 z" style="fill:#ffffff;fill-rule:nonzero;stroke-width:0.838376" />
<path d="m 289.25134,280.08446 h -54.40052 v -99.36009 h 52.23835 v 13.99669 h -36.15411 v 28.13085 h 33.31621 v 13.9271 h -33.31621 v 29.37835 h 38.31628 z" style="fill:#ffffff;fill-rule:nonzero;stroke-width:0.838376" />
<path d="M 366.56466,194.72106 H 338.7222 v 85.3634 h -16.08423 v -85.3634 h -27.77455 v -13.99669 h 71.70124 z" style="fill:#ffffff;fill-rule:nonzero;stroke-width:0.838376" />
</svg>

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="456" height="456" viewBox="0 0 456 456" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<path d="m 105.50037,281.60863 c -2.70293,0 -5.00091,-0.90042 -6.893127,-2.70209 -1.892214,-1.84778 -2.837901,-4.04181 -2.837901,-6.58209 0,-2.58722 0.945687,-4.80389 2.837901,-6.65167 1.892217,-1.84778 4.190197,-2.77167 6.893127,-2.77167 2.74819,0 5.06798,0.92389 6.96019,2.77167 1.93749,1.84778 2.90581,4.06445 2.90581,6.65167 0,2.54028 -0.96832,4.73431 -2.90581,6.58209 -1.89221,1.80167 -4.212,2.70209 -6.96019,2.70209 z" style="fill:#ffffff;fill-rule:nonzero;stroke-width:0.838376" />
<path d="M 213.56111,280.08446 H 195.99044 L 149.69953,207.0544 c -1.17121,-1.84778 -2.14037,-3.76515 -2.90581,-5.75126 h -0.40578 c 0.36051,2.12528 0.54076,6.67515 0.54076,13.6496 v 65.13172 h -15.54349 v -99.36009 h 18.71925 l 44.7374,71.29798 c 1.89222,2.95695 3.1087,4.98917 3.64945,6.09751 h 0.26996 c -0.45021,-2.6325 -0.67573,-7.09015 -0.67573,-13.37293 v -64.02256 h 15.47557 z" style="fill:#ffffff;fill-rule:nonzero;stroke-width:0.838376" />
<path d="m 289.25134,280.08446 h -54.40052 v -99.36009 h 52.23835 v 13.99669 h -36.15411 v 28.13085 h 33.31621 v 13.9271 h -33.31621 v 29.37835 h 38.31628 z" style="fill:#ffffff;fill-rule:nonzero;stroke-width:0.838376" />
<path d="M 366.56466,194.72106 H 338.7222 v 85.3634 h -16.08423 v -85.3634 h -27.77455 v -13.99669 h 71.70124 z" style="fill:#ffffff;fill-rule:nonzero;stroke-width:0.838376" />
</svg>

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -1,49 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title>Template.Maui</title>
<base href="/" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap" rel="stylesheet">
<link href="_content/Template.Shared/css/bootstrap/bootstrap.min.css" rel="stylesheet">
<link href="_content/Template.Shared/css/bootstrap/bootstrap-icons.min.css" rel="stylesheet" />
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
<link rel="stylesheet" href="_content/Template.Shared/css/remixicon/remixicon.css" />
<link rel="stylesheet" href="_content/Template.Shared/css/app.css" />
<link rel="stylesheet" href="_content/Template.Shared/css/default-theme.css" />
<link rel="stylesheet" href="Template.Maui.styles.css" />
<link rel="icon" type="image/png" href="favicon.png" />
</head>
<body>
<div class="status-bar-safe-area"></div>
<div id="app">Loading...</div>
<div id="blazor-error-ui">
An unhandled error has occurred.
<a href="" class="reload">Reload</a>
<a class="dismiss">🗙</a>
</div>
<script src="_framework/blazor.webview.js" autostart="false"></script>
<script src="_content/Template.Shared/js/bootstrap/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- Add chart.js reference if chart components are used in your application. -->
<!--<script src="_content/Template.Shared/js/bootstrap/chart.umd.js" integrity="sha512-gQhCDsnnnUfaRzD8k1L5llCCV6O9HN09zClIzzeJ8OJ9MpGmIlCxm+pdCkqTwqJ4JcjbojFr79rl2F1mzcoLMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>-->
<!-- Add chartjs-plugin-datalabels.min.js reference if chart components with data label feature is used in your application. -->
<!--<script src="_content/Template.Shared/js/bootstrap/chartjs-plugin-datalabels.min.js" integrity="sha512-JPcRR8yFa8mmCsfrw4TNte1ZvF1e3+1SdGMslZvmrzDYxS69J7J49vkFL8u6u8PlPJK+H3voElBtUCzaXj+6ig==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>-->
<!-- Add sortable.js reference if SortableList component is used in your application. -->
<!--<script src="_content/Template.Shared/js/bootstrap/Sortable.min.js"></script>-->
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
<script src="_content/Template.Shared/js/main.js"></script>
</body>
</html>

View File

@@ -1,43 +0,0 @@
@inject IJSRuntime JS
<div class="header">
<div class="header-content @(Back ? "with-back" : "no-back")">
@if (Back)
{
<div class="left-section">
<MudButton StartIcon="@Icons.Material.Outlined.ArrowBackIosNew"
OnClick="GoBack"
Color="Color.Info"
Style="text-transform: none"
Variant="Variant.Text">@BackTo</MudButton>
</div>
}
<h3 class="page-title">@Title</h3>
<div class="right-section">
@if (ShowFilter)
{
<MudIconButton Icon="@Icons.Material.Outlined.FilterAlt" Color="Color.Dark" />
}
@if (ShowNotifications)
{
<MudIconButton Icon="@Icons.Material.Filled.Notifications" Color="Color.Dark" />
}
</div>
</div>
</div>
@code{
[Parameter] public string? Title { get; set; }
[Parameter] public bool ShowFilter { get; set; }
[Parameter] public bool ShowNotifications { get; set; } = true;
[Parameter] public bool Back { get; set; }
[Parameter] public string BackTo { get; set; } = "";
private async Task GoBack()
{
await JS.InvokeVoidAsync("goBack");
}
}

View File

@@ -1,29 +0,0 @@
.header-content {
line-height: normal;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}
.header-content.with-back { margin: .6rem 0 0 0; }
.header-content.with-back .page-title {
position: absolute;
left: 50%;
transform: translateX(-50%);
margin: 0;
font-size: larger;
}
.left-section ::deep button {
font-size: 1rem;
}
.left-section ::deep .mud-button-icon-start {
margin-right: 3px !important;
}
.header-content.no-back .page-title {
margin: 0;
}

View File

@@ -1,41 +0,0 @@
@using Template.Shared.Core.Messages
@inherits LayoutComponentBase
@inject IJSRuntime JS
@inject BackNavigationService BackService
<MudThemeProvider Theme="_currentTheme" />
<MudPopoverProvider />
<MudDialogProvider />
<MudSnackbarProvider />
<div class="page">
<NavMenu />
<main>
<article class="container">
@Body
</article>
</main>
</div>
@code {
private readonly MudTheme _currentTheme = new()
{
PaletteLight = new PaletteLight()
{
Primary = "#ABA9BF",
Secondary = "#BEB7DF",
Tertiary = "#B2FDAD"
}
};
protected override void OnInitialized()
{
BackService.OnHardwareBack += async () =>
{
await JS.InvokeVoidAsync("goBack");
};
}
}

View File

@@ -1,52 +0,0 @@
@if (IsVisible)
{
<nav class="navbar navbar-expand justify-content-center">
<div class="container-fluid">
<ul class="navbar-nav nav-justified w-100 text-center">
<li class="nav-item">
<NavLink class="nav-link" href="Users" Match="NavLinkMatch.All">
<div class="d-flex flex-column">
<i class="ri-group-line"></i>
<span>Contatti</span>
</div>
</NavLink>
</li>
<li class="nav-item">
<NavLink class="nav-link" href="Calendar" Match="NavLinkMatch.All">
<div class="d-flex flex-column">
<i class="ri-calendar-todo-line"></i>
<span>Agenda</span>
</div>
</NavLink>
</li>
<li class="nav-item">
<NavLink class="nav-link" href="PersonalInfo" Match="NavLinkMatch.All">
<div class="d-flex flex-column">
<i class="ri-user-line"></i>
<span>Profilo</span>
</div>
</NavLink>
</li>
</ul>
</div>
</nav>
}
@code
{
private bool IsVisible { get; set; } = true;
protected override Task OnInitializedAsync()
{
NavigationManager.LocationChanged += (_, args) =>
{
var location = args.Location.Remove(0, NavigationManager.BaseUri.Length);
IsVisible = new List<string> { "Calendar", "Users", "PersonalInfo" }
.Contains(location);
StateHasChanged();
};
return Task.CompletedTask;
}
}

View File

@@ -1,49 +0,0 @@
.navbar {
background: var(--mud-palette-surface);
position: fixed;
bottom: 0;
width: 100%;
z-index: 1001;
border-top: 1px solid var(--card-border-color);
}
.navbar-expand { padding: 0 !important; }
.nav-item { font-size: 0.9rem; }
.nav-item ::deep a {
display: flex;
align-items: center;
line-height: 1.2;
justify-content: center;
}
.nav-item ::deep a > div {
-webkit-transition: all .1s ease-out;
transition: all .1s ease-out;
min-width: 60px;
}
.nav-item ::deep a.active > div { color: var(--mud-palette-secondary-darken); }
.nav-item ::deep a.active > div > i {
/*background-color: color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);*/
border-radius: 10px;
}
.nav-item ::deep a.active > div > span { font-weight: 800; }
.nav-item ::deep a:not(.active) > div { color: var(--mud-palette-drawer-icon); }
.nav-item ::deep a i { font-size: 1.5rem; }
.nav-item ::deep a span {
font-size: 0.8rem;
font-weight: 500;
}
@supports (-webkit-touch-callout: none) {
.nav-item { padding-bottom: env(safe-area-inset-bottom) !important; }
.nav-item ::deep > .nav-link { padding-bottom: 0 !important; }
}

View File

@@ -1,180 +0,0 @@
@page "/Calendar"
@attribute [Authorize]
@using Template.Shared.Components.Layout
@using Template.Shared.Components.SingleElements.Calendar
<HeaderLayout Title="Agenda" ShowFilter="true"/>
<div class="content">
<MudButtonGroup Size="Size.Small" Class="custom-mudButtonGroup" Color="Color.Surface" OverrideStyles="true" Variant="Variant.Outlined" DropShadow="true">
<MudButton StartIcon="@Icons.Material.Filled.ViewStream" Class="@(FilterByDay ? "custom-button-active" : "")" OnClick="SelectDay">Giorno</MudButton>
<MudButton StartIcon="@Icons.Material.Filled.CalendarViewDay" Class="@(FilterByWeek ? "custom-button-active" : "")" OnClick="SelectWeek">Settimana</MudButton>
<MudButton StartIcon="@Icons.Material.Filled.CalendarViewMonth" Class="@(FilterByMonth ? "custom-button-active" : "")" OnClick="SelectMonth">Mese</MudButton>
</MudButtonGroup>
<div class="activity-filter">
<div class="date-controller">
<MudIconButton Icon="@Icons.Material.Filled.ChevronLeft" @onclick="() => ChangeDate(-1)" Color="Color.Surface"/>
<MudButton Variant="Variant.Text" Color="Color.Surface" OnClick="OpenCalendar">
@if (FilterByDay)
{
@($"{DateFilter:M}")
}
else if (FilterByWeek)
{
@($"{(DateRangeFilter.Start!.Value.Month == DateRangeFilter.End!.Value.Month ? DateRangeFilter.Start!.Value.Day : DateRangeFilter.Start!.Value.ToString("M"))} - {DateRangeFilter.End!.Value:M}")
}
else if (FilterByMonth)
{
@($"{DateFilter:Y}")
}
</MudButton>
<MudIconButton Icon="@Icons.Material.Filled.ChevronRight" @onclick="() => ChangeDate(1)" Color="Color.Surface"/>
</div>
<MudOverlay @bind-Visible="_isVisible" DarkBackground="true" AutoClose="true">
<MudDatePicker @bind-Date:after="CloseDatePicker" @bind-Date="DateFilter" PickerVariant="PickerVariant.Static">
<PickerActions>
@if (DateFilter != DateTime.Today)
{
<MudButton Class="mr-auto align-self-start" OnClick="() => DateFilter = DateTime.Today">Oggi</MudButton>
}
</PickerActions>
</MudDatePicker>
</MudOverlay>
</div>
<div class="card-container">
@if (FilterByDay)
{
<DayView @bind-Date="DateFilter"/>
}
else if (FilterByWeek)
{
<WeekView @bind-Date="DateRangeFilter" />
}
else if (FilterByMonth)
{
<MonthView @bind-Date="DateTimeForMonthView"/>
}
</div>
<MudMenu PopoverClass="custom_popover" Class="custom-mudfab" AnchorOrigin="Origin.TopLeft" TransformOrigin="Origin.BottomRight">
<ActivatorContent>
<MudFab Color="Color.Primary" Size="Size.Small" StartIcon="@Icons.Material.Filled.Add"/>
</ActivatorContent>
<ChildContent>
<MudMenuItem>Nuovo contatto</MudMenuItem>
<MudMenuItem>Nuova attivit<69></MudMenuItem>
</ChildContent>
</MudMenu>
</div>
@code {
private bool FilterByDay { get; set; } = true;
private bool FilterByWeek { get; set; }
private bool FilterByMonth { get; set; }
private DateTime? DateFilter { get; set; } = DateTime.Today;
private DateRange DateRangeFilter { get; set; } = new();
private DateTime DateTimeForMonthView { get; set; }
private bool _isVisible;
protected override void OnInitialized()
{
CalcDateRange();
}
public void OpenCalendar()
{
_isVisible = true;
StateHasChanged();
}
private void SelectDay()
{
ResetFilterCalendar();
FilterByDay = !FilterByDay;
StateHasChanged();
}
private void SelectWeek()
{
ResetFilterCalendar();
FilterByWeek = !FilterByWeek;
CalcDateRange();
StateHasChanged();
}
private void SelectMonth()
{
ResetFilterCalendar();
FilterByMonth = !FilterByMonth;
DateTimeForMonthView = new DateTime(DateFilter!.Value.Year, DateFilter!.Value.Month, 1);
StateHasChanged();
}
private void ResetFilterCalendar(bool forceSelectDay = false)
{
FilterByDay = false;
FilterByWeek = false;
FilterByMonth = false;
}
private void ChangeDate(int value)
{
var date = DateFilter!.Value;
if (FilterByDay)
{
DateFilter = date.AddDays(value);
}
else if (FilterByWeek)
{
DateFilter = DateRangeFilter.Start!.Value.AddDays(value > 0 ? 7 : -7);
}
else if (FilterByMonth)
{
var year = date.Year;
var month = value > 0 ? date.Month + 1 : date.Month - 1;
switch (month)
{
case > 12:
year++;
month = 1;
break;
case < 1:
year--;
month = 12;
break;
}
DateFilter = new DateTime(year, month, 1);
DateTimeForMonthView = DateFilter.Value;
}
CalcDateRange();
StateHasChanged();
}
private void CalcDateRange()
{
var giornoSettimana = DateFilter!.Value.DayOfWeek;
var diffInizio = (7 + (giornoSettimana - DayOfWeek.Monday)) % 7;
DateRangeFilter.Start = DateFilter!.Value.AddDays(-diffInizio).Date;
DateRangeFilter.End = DateRangeFilter.Start.Value.AddDays(6);
}
private async Task CloseDatePicker()
{
DateTimeForMonthView = new DateTime(DateFilter!.Value.Year, DateFilter!.Value.Month, 1);
CalcDateRange();
await Task.Delay(150);
_isVisible = false;
StateHasChanged();
}
}

View File

@@ -1,32 +0,0 @@
.activity-filter { margin-top: .2rem; }
.card-container {
margin-top: .2rem;
width: 100%;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
gap: 1rem;
overflow: hidden;
}
.date-controller {
display: flex;
align-items: center;
}
.content ::deep > .custom-mudButtonGroup {
width: 100%;
}
.content ::deep > .custom-mudButtonGroup .mud-button-root {
border-radius: 12px;
padding: .2rem 1.5rem;
text-transform: none !important;
font-size: .985rem;
border: 1px solid var(--mud-palette-gray-light);
}
.content ::deep > .custom-mudButtonGroup .custom-button-active {
background-color: hsl(from var(--mud-palette-primary) h s 95%);
}

View File

@@ -1,22 +0,0 @@
@page "/"
@using Template.Shared.Core.Interface
@attribute [Authorize]
@inject IFormFactor FormFactor
@inject INetworkService NetworkService
@code
{
protected override Task OnInitializedAsync()
{
var lastSyncDate = LocalStorage.Get<DateTime>("last-sync");
if (!FormFactor.IsWeb() && NetworkService.IsNetworkAvailable() && lastSyncDate.Equals(DateTime.MinValue))
{
NavigationManager.NavigateTo("/sync");
return base.OnInitializedAsync();
}
NavigationManager.NavigateTo("/Calendar");
return base.OnInitializedAsync();
}
}

View File

@@ -1,65 +0,0 @@
.center-box {
margin-top: -1.1rem !important; /* remove page padding */
}
.box-area {
width: 930px;
}
.right-box {
padding: 15px 30px 0 30px;
}
::placeholder {
font-size: 16px;
}
.rounded-4 {
border-radius: 20px;
}
.rounded-5 {
border-radius: 30px;
}
.bg-white {
background: var(--mud-palette-surface) !important;
}
.appName {
margin-top: 15px;
font-size: large;
font-weight: 900;
color: var(--mud-palette-primary)
}
.button-login {
text-align: center;
background-color: var(--mud-palette-primary);
border-radius: 6px;
padding: .3rem 2rem;
width: 100%;
font-weight: 700;
color: var(--mud-palette-appbar-text);
}
.login-footer {
display: flex;
align-items: center;
justify-content: flex-end;
}
.login-footer span {
font-size: 9px;
color: var(--mud-palette-gray-darker);
}
.login-footer img {
height: 15px;
margin-left: 4px;
}
.container > .bg-white {
box-shadow: var(--card-shadow);
border: 1px solid var(--card-border-color);
}

View File

@@ -1,120 +0,0 @@
@page "/PersonalInfo"
@attribute [Authorize]
@using Template.Shared.Components.Layout
@using Template.Shared.Core.Authorization.Enum
@using Template.Shared.Core.Interface
@using Template.Shared.Core.Services
@using Template.Shared.Core.Utility
@inject AppAuthenticationStateProvider AuthenticationStateProvider
@inject INetworkService NetworkService
@inject IFormFactor FormFactor
<HeaderLayout Title="Profilo" />
<div class="content">
<div class="section-primary-info">
<MudAvatar Style="height:85px; width:85px; font-size:2rem;">
<MudImage Src="@($"https://ui-avatars.com/api/?name={UserSession.User.Username}&size=80&background={UtilityColor.CalcHexColor(UserSession.User.Username)}&bold=true")"></MudImage>
</MudAvatar>
<div class="personal-info">
<span class="info-nome">@UserSession.User.Fullname</span>
@if (UserSession.User.KeyGroup is not null)
{
<span class="info-section">@(((KeyGroupEnum)UserSession.User.KeyGroup).ConvertToHumanReadable())</span>
}
</div>
</div>
<div class="section-info">
<div class="section-personal-info">
<div>
<span class="info-title">Telefono</span>
<span class="info-text">000 0000000</span> @*Todo: to implement*@
</div>
<div>
<span class="info-title">Status</span>
@if (NetworkService.IsNetworkAvailable())
{
<div class="status online">
<i class="ri-wifi-line"></i>
<span>Online</span>
</div>
}
else
{
<div class="status offline">
<i class="ri-wifi-off-line"></i>
<span>Offline</span>
</div>
}
</div>
</div>
<div class="section-personal-info">
<div>
<span class="info-title">E-mail</span>
<span class="info-text">
@if (string.IsNullOrEmpty(UserSession.User.Email))
{
@("Nessuna mail configurata")
}
else
{
@UserSession.User.Email
}
</span>
</div>
<div>
<span class="info-title">Ultima sincronizzazione</span>
<span class="info-text">@LastSync.ToString("g")</span>
</div>
</div>
</div>
<MudButton Class="user-button"
FullWidth="true"
Size="Size.Medium"
StartIcon="@Icons.Material.Outlined.Settings"
OnClick="OpenSettings"
Variant="Variant.Outlined">Impostazioni</MudButton>
<div class="divider"></div>
<MudButton FullWidth="true"
StartIcon="@Icons.Material.Outlined.Logout"
Color="Color.Error"
Size="Size.Medium"
OnClick="Logout"
Variant="Variant.Outlined">Esci</MudButton>
</div>
@code {
private bool Unavailable { get; set; }
private DateTime LastSync { get; set; }
protected override async Task OnInitializedAsync()
{
await LoadData();
}
private async Task LoadData()
{
await Task.Run(() =>
{
Unavailable = FormFactor.IsWeb() || !NetworkService.IsNetworkAvailable();
LastSync = LocalStorage.Get<DateTime>("last-sync");
});
StateHasChanged();
}
private void OpenSettings() =>
NavigationManager.NavigateTo("/settings/Profilo");
private void Logout() =>
AuthenticationStateProvider.SignOut();
}

View File

@@ -1,28 +0,0 @@
@page "/settings"
@page "/settings/{BackTo}"
@using Template.Shared.Components.Layout
<HeaderLayout BackTo="@BackTo" ShowNotifications="false" Back="true" Title="Impostazioni" />
<div class="content">
<MudButton Class="user-button"
FullWidth="true"
Size="Size.Medium"
StartIcon="@Icons.Material.Outlined.Sync"
OnClick="UpdateDb"
Variant="Variant.Outlined">Sincronizza</MudButton>
</div>
@code {
[Parameter] public string BackTo { get; set; } = "";
private void UpdateDb()
{
var absoluteUri = NavigationManager.ToAbsoluteUri(NavigationManager.Uri);
var pathAndQuery = absoluteUri.Segments.Length > 1 ? absoluteUri.PathAndQuery : null;
var path = pathAndQuery == null ? $"/sync/{DateTime.Today:yyyy-MM-dd}" : $"/sync/{DateTime.Today:yyyy-MM-dd}?path=" + System.Web.HttpUtility.UrlEncode(pathAndQuery);
NavigationManager.NavigateTo(path);
}
}

View File

@@ -1,57 +0,0 @@
@page "/sync"
@page "/sync/{DateFilter}"
@using Template.Shared.Components.Layout.Spinner
@using Template.Shared.Core.Interface
@inject ISyncDbService syncDb
<SyncSpinner Elements="@Elements"/>
@code {
[Parameter] public string? DateFilter { get; set; }
private Dictionary<string, bool> Elements { get; set; } = new();
protected override async Task OnInitializedAsync()
{
Elements.Add("Attività", false);
Elements.Add("Clienti", false);
Elements.Add("Commesse", false);
StateHasChanged();
await Task.WhenAll(SetActivity(), SetClienti(), SetCommesse());
LocalStorage.Set("last-sync", DateTime.Now);
var pathQuery = System.Web.HttpUtility.ParseQueryString(new UriBuilder(NavigationManager.Uri).Query);
var originalPath = pathQuery["path"] ?? null;
var path = originalPath ?? "/Calendar";
NavigationManager.NavigateTo(path);
}
private async Task SetActivity()
{
await syncDb.GetAndSaveActivity(DateFilter);
Elements["Attività"] = true;
StateHasChanged();
}
private async Task SetClienti()
{
await syncDb.GetAndSaveClienti(DateFilter);
await syncDb.GetAndSaveProspect(DateFilter);
Elements["Clienti"] = true;
StateHasChanged();
}
private async Task SetCommesse()
{
await syncDb.GetAndSaveCommesse(DateFilter);
Elements["Commesse"] = true;
StateHasChanged();
}
}

View File

@@ -1,9 +0,0 @@
@page "/Users"
@attribute [Authorize]
@using Template.Shared.Components.Layout
<HeaderLayout Title="Contatti" />
@code {
}

View File

@@ -1,61 +0,0 @@
@using ConSegna.Shared.Core.Helpers
@using Template.Shared.Core.Dto
@using Template.Shared.Core.Interface
@inject IManageDataService manageData
<div class="calendar">
@if (!Activities.IsNullOrEmpty())
{
@foreach (var activity in Activities!)
{
<ActivityCard Activity="activity"/>
}
}
else
{
<NoDataAvailable Text="Nessuna attività trovata" ImageSource="_content/Template.Shared/images/undraw_file-search_cbur.svg"/>
}
</div>
@code
{
[Parameter] public required DateTime? Date { get; set; }
[Parameter] public EventCallback<DateTime?> DateChanged { get; set; }
private List<ActivityDTO>? Activities { get; set; } = null;
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
await LoadData();
}
}
protected override async Task OnParametersSetAsync()
{
await LoadData();
}
private async Task LoadData()
{
await Task.Delay(1000);
var refreshActivity = await RefreshActivity();
Activities = refreshActivity;
StateHasChanged();
}
private async Task<List<ActivityDTO>> RefreshActivity()
{
var activityDto = await Task.Run(async () =>
{
return (await manageData.GetActivity(x =>
(x.EffectiveDate == null && x.EstimatedDate.Equals(Date)) || x.EffectiveDate.Equals(Date)))
.OrderBy(x => x.EffectiveDate ?? x.EstimatedDate)
.ToList();
});
return activityDto;
}
}

View File

@@ -1,18 +0,0 @@
.calendar {
width: 100%;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
gap: 1rem;
overflow-y: auto;
overflow-x: hidden;
padding-bottom: 1rem;
}
.calendar::-webkit-scrollbar { display: none; }
.calendar {
-ms-overflow-style: none;
scrollbar-width: none;
}

View File

@@ -1,96 +0,0 @@
<div class="calendar">
@foreach (var nomeGiorno in _giorniSettimana)
{
<div class="calendar-header">@nomeGiorno</div>
}
@for (var i = 0; i < StartDays; i++)
{
<div class="calendar-day disabled @(i == 0 ? "radiusTopLeft" : "")"></div>
}
@for (var day = 1; day <= DaysInMonth; day++)
{
var currentDate = new DateTime(Date.Year, Date.Month, day);
var events = GetEventsForDay(currentDate);
var isToday = currentDate == DateTime.Today;
var topRight = StartDays == 0 ? 7 : 7 - StartDays;
var bottomLeft = DaysInMonth - (6 - EndDays);
<div class="calendar-day @(isToday ? "today" : "")
@(StartDays == 0 && day == 1 ? "radiusTopLeft" : "")
@(EndDays == 0 && day == DaysInMonth ? "radiusBottomRight" : "")
@(bottomLeft == day ? "radiusBottomLeft" : "")
@(topRight == day ? "radiusTopRight" : "")">
<div class="calendar-day-wrapper">
<span class="titleDay">@day</span>
@if (events.Any())
{
<div class="event-dot"></div>
}
</div>
</div>
}
@for (var i = 0; i < EndDays; i++)
{
<div class="calendar-day disabled @(i + 1 == EndDays ? "radiusBottomRight" : "")"></div>
}
</div>
@code
{
[Parameter] public required DateTime Date { get; set; }
[Parameter] public EventCallback<DateTime> DateChanged { get; set; }
private List<CalendarEvent> Events { get; set; }
private int DaysInMonth { get; set; }
private int StartDays { get; set; }
private int EndDays { get; set; }
readonly string[] _giorniSettimana = ["Lu", "Ma", "Me", "Gi", "Ve", "Sa", "Do"];
protected override void OnInitialized()
{
ChangeMonth();
}
protected override void OnParametersSet()
{
ChangeMonth();
}
private void ChangeMonth()
{
var firstDay = Date;
DaysInMonth = DateTime.DaysInMonth(firstDay.Year, firstDay.Month);
var dayOfWeek = (int)firstDay.DayOfWeek;
StartDays = dayOfWeek == 0 ? 6 : dayOfWeek - 1;
var tempTotalCell = (int)Math.Ceiling((double)(DaysInMonth + StartDays) / 7);
var totalCell = tempTotalCell * 7;
EndDays = totalCell - (DaysInMonth + StartDays);
Events =
[
new CalendarEvent { Date = DateTime.Today, Title = "Meeting", Time = "10:00" },
new CalendarEvent { Date = DateTime.Today.AddDays(2), Title = "Dentista", Time = "15:30" },
new CalendarEvent { Date = DateTime.Today.AddDays(5), Title = "Scadenza", Time = "Tutto il giorno" }
];
}
private List<CalendarEvent> GetEventsForDay(DateTime day)
{
return Events.Where(e => e.Date.Date == day.Date).ToList();
}
public class CalendarEvent
{
public DateTime Date { get; set; }
public string Title { get; set; } = "";
public string Time { get; set; } = "";
}
}

View File

@@ -1,64 +0,0 @@
.calendar {
display: grid;
grid-template-columns: repeat(7, 1fr);
/*border: 1px solid #ccc;*/
}
.calendar-header, .calendar-day {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
min-height: 65px;
font-size: 0.85rem;
padding: 4px;
}
.calendar-day { border: 1px solid var(--mud-palette-gray-light); }
.calendar-day.disabled { border: 1px solid hsl(from var(--mud-palette-gray-light) h s 88%); }
.calendar-header {
font-weight: bold;
min-height: 25px;
display: flex;
justify-content: end;
}
.today > .calendar-day-wrapper > .titleDay {
background-color: var(--mud-palette-primary);
color: var(--mud-palette-appbar-text);
font-weight: 700;
}
.calendar-day-wrapper > .titleDay {
padding: 6px;
border-radius: 50%;
position: absolute;
line-height: normal;
}
.event-dot {
width: 100%;
height: 6px;
border-radius: 4px;
background-color: var(--mud-palette-secondary);
position: absolute;
bottom: 0;
}
.calendar-day:hover .event-popup { display: block; }
.calendar-day-wrapper {
position: relative;
width: 100%;
height: 100%;
}
.radiusTopLeft { border-top-left-radius: 12px; }
.radiusTopRight { border-top-right-radius: 12px; }
.radiusBottomLeft { border-bottom-left-radius: 12px; }
.radiusBottomRight { border-bottom-right-radius: 12px; }

View File

@@ -1,76 +0,0 @@
@using ConSegna.Shared.Core.Helpers
@using Template.Shared.Core.Dto
@using Template.Shared.Core.Interface
@inject IManageDataService manageData
<div class="calendar">
@{
DateTime? currentDate = null;
}
@if (!Activities.IsNullOrEmpty())
{
foreach (var activity in Activities!)
{
var dateToShow = activity.EffectiveDate ?? activity.EstimatedDate;
if (currentDate != dateToShow?.Date)
{
currentDate = dateToShow?.Date;
<div class="week-info">
<span>@($"{currentDate:D}")</span>
</div>
}
<ActivityCard Activity="activity"/>
}
}
else
{
<NoDataAvailable Text="Nessuna attività trovata" ImageSource="_content/Template.Shared/images/undraw_file-search_cbur.svg"/>
}
</div>
@code
{
[Parameter] public required DateRange Date { get; set; }
[Parameter] public EventCallback<DateRange> DateChanged { get; set; }
private List<ActivityDTO>? Activities { get; set; }
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
await LoadData();
}
}
protected override async Task OnParametersSetAsync()
{
await LoadData();
}
private async Task LoadData()
{
await Task.Delay(1000);
var refreshActivity = await RefreshActivity();
Activities = refreshActivity;
StateHasChanged();
}
private async Task<List<ActivityDTO>> RefreshActivity()
{
var activityDto = await Task.Run(async () =>
{
return Activities = (await manageData.GetActivity(x =>
(x.EffectiveDate == null && x.EstimatedDate >= Date.Start && x.EstimatedDate <= Date.End) ||
(x.EffectiveDate >= Date.Start && x.EffectiveDate <= Date.End)
))
.OrderBy(x => x.EffectiveDate ?? x.EstimatedDate)
.ToList();
});
return activityDto;
}
}

View File

@@ -1,26 +0,0 @@
.calendar {
width: 100%;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
gap: 1rem;
overflow-y: auto;
overflow-x: hidden;
padding-bottom: 1rem;
}
.calendar::-webkit-scrollbar { display: none; }
.calendar {
-ms-overflow-style: none;
scrollbar-width: none;
}
.week-info {
background: var(--mud-palette-action-disabled-background);
width: 100%;
padding: .3rem .5rem;
border-radius: 8px;
text-transform: capitalize;
font-weight: 700;
}

View File

@@ -1,52 +0,0 @@
@using Template.Shared.Core.Dto
<div class="activity-card @Activity.Category.ConvertToHumanReadable()">
<div class="activity-left-section">
<div class="activity-hours-section">
<span class="activity-hours">
@if (Activity.EffectiveTime is null)
{
@($"{Activity.EstimatedTime:t}")
}
else
{
@($"{Activity.EffectiveTime:t}")
}
</span>
@if (Durata != null)
{
<MudChip T="string" Icon="@IconConstants.Chip.Time" Color="Color.Dark" Size="Size.Small">@($"{Durata.Value.TotalHours:####}h")</MudChip>
}
</div>
<div class="activity-body-section">
<MudText Class="activity-title" Typo="Typo.button" HtmlTag="h3">@Activity.Commessa</MudText>
<MudText Class="activity-subtitle" Typo="Typo.caption">@Activity.ActivityDescription</MudText>
</div>
</div>
<div class="activity-info-section">
@if (Activity.ActivityResultId != null)
{
<MudChip T="string" Icon="@IconConstants.Chip.Stato" Size="Size.Small" Color="Color.Success">@Activity.ActivityResultId</MudChip>
}
<MudChip T="string" Icon="@IconConstants.Chip.User" Size="Size.Small">@Activity.UserName</MudChip>
</div>
</div>
@code {
[Parameter] public ActivityDTO Activity { get; set; } = new();
private TimeSpan? Durata { get; set; }
private Color ColorStatus { get; set; }
protected override void OnInitialized()
{
Durata = Activity switch
{
{ EffectiveTime: not null, EffectiveEndtime: not null } => Activity.EffectiveEndtime.Value - Activity.EffectiveTime.Value,
{ EstimatedTime: not null, EstimatedEndtime: not null } => Activity.EstimatedEndtime.Value - Activity.EstimatedTime.Value,
_ => Durata
};
}
}

View File

@@ -1,13 +0,0 @@
.no-data {
position: fixed;
top: 35%;
width: calc(100vw - (var(--bs-gutter-x) * .5) * 2);
}
.no-data img {
width: 60%;
}
.no-data p {
font-size: 1.2rem;
}

View File

@@ -1,10 +0,0 @@
using Template.Shared.Core.Entity;
using Template.Shared.Core.Helpers.Enum;
namespace Template.Shared.Core.Dto;
public class ActivityDTO : StbActivity
{
public string? Commessa { get; set; }
public ActivityCategoryEnum Category { get; set; }
}

View File

@@ -1,12 +0,0 @@
using Template.Shared.Core.Entity;
namespace Template.Shared.Core.Dto;
public class TaskSyncResponseDTO
{
public List<AnagClie>? AnagClie { get; set; }
public List<VtbDest>? VtbDest { get; set; }
public List<VtbCliePersRif>? VtbCliePersRif { get; set; }
public List<PtbPros>? PtbPros { get; set; }
public List<PtbProsRif>? PtbProsRif { get; set; }
}

View File

@@ -1,32 +0,0 @@
using SQLite;
using System.Text.Json.Serialization;
namespace Template.Shared.Core.Entity;
[Table("ptb_pros_rif")]
public class PtbProsRif
{
[PrimaryKey, Column("cod_ppro"), JsonPropertyName("codPpro")]
public string CodPpro { get; set; }
[PrimaryKey, Column("id_pers_rif"), JsonPropertyName("idPersRif")]
public int IdPersRif { get; set; }
[Column("persona_rif"), JsonPropertyName("personaRif")]
public string PersonaRif { get; set; }
[Column("e_mail"), JsonPropertyName("eMail")]
public string EMail { get; set; }
[Column("fax"), JsonPropertyName("fax")]
public string Fax { get; set; }
[Column("mansione"), JsonPropertyName("mansione")]
public string Mansione { get; set; }
[Column("num_cellulare"), JsonPropertyName("numCellulare")]
public string NumCellulare { get; set; }
[Column("telefono"), JsonPropertyName("telefono")]
public string Telefono { get; set; }
}

View File

@@ -1,41 +0,0 @@
using SQLite;
using System.Text.Json.Serialization;
namespace Template.Shared.Core.Entity;
[Table("vtb_clie_pers_rif")]
public class VtbCliePersRif
{
[PrimaryKey, Column("id_pers_rif"), JsonPropertyName("idPersRif")]
public int IdPersRif { get; set; }
[PrimaryKey, Column("cod_anag"), JsonPropertyName("codAnag")]
public string CodAnag { get; set; }
[Column("persona_rif"), JsonPropertyName("personaRif")]
public string PersonaRif { get; set; }
[Column("mansione"), JsonPropertyName("mansione")]
public string Mansione { get; set; }
[Column("telefono"), JsonPropertyName("telefono")]
public string Telefono { get; set; }
[Column("fax"), JsonPropertyName("fax")]
public string Fax { get; set; }
[Column("e_mail"), JsonPropertyName("eMail")]
public string EMail { get; set; }
[Column("num_cellulare"), JsonPropertyName("numCellulare")]
public string NumCellulare { get; set; }
[Column("tipo_indirizzo"), JsonPropertyName("tipoIndirizzo")]
public string TipoIndirizzo { get; set; }
[Column("cod_vdes"), JsonPropertyName("codVdes")]
public string CodVdes { get; set; }
[Column("data_ult_agg"), JsonPropertyName("dataUltAgg")]
public DateTime? DataUltAgg { get; set; } = DateTime.Now;
}

View File

@@ -1,17 +0,0 @@
using Template.Shared.Core.Helpers.Enum;
namespace Template.Shared.Core.Helpers;
public static class ActivityCategoryHelper
{
public static string ConvertToHumanReadable(this ActivityCategoryEnum activityType)
{
return activityType switch
{
ActivityCategoryEnum.Memo => "memo",
ActivityCategoryEnum.Interna => "inerna",
ActivityCategoryEnum.Commessa => "commessa",
_ => throw new ArgumentOutOfRangeException(nameof(activityType), activityType, null)
};
}
}

View File

@@ -1,6 +0,0 @@
namespace Template.Shared.Core.Helpers.Enum;
public enum ActivityStatusEnum
{
}

View File

@@ -1,13 +0,0 @@
using AutoMapper;
using Template.Shared.Core.Dto;
using Template.Shared.Core.Entity;
namespace Template.Shared.Core.Helpers;
public class MappingProfile : Profile
{
public MappingProfile()
{
CreateMap<StbActivity, ActivityDTO>();
}
}

View File

@@ -1,13 +0,0 @@
using System.Collections;
namespace ConSegna.Shared.Core.Helpers;
public static class ObjectExtensions
{
public static bool IsNullOrEmpty(this IEnumerable? obj) =>
obj == null || obj.GetEnumerator().MoveNext() == false;
public static bool IsNullOrEmpty(this string? obj) =>
string.IsNullOrEmpty(obj);
}

View File

@@ -1,12 +0,0 @@
using Template.Shared.Core.Dto;
using Template.Shared.Core.Entity;
namespace Template.Shared.Core.Interface;
public interface IIntegryApiService
{
Task<List<StbActivity>?> GetActivity(string? dateFilter = null);
Task<List<JtbComt>?> GetAllCommesse(string? dateFilter = null);
Task<TaskSyncResponseDTO> GetAnagClie(string? dateFilter = null);
Task<TaskSyncResponseDTO> GetProspect(string? dateFilter = null);
}

View File

@@ -1,18 +0,0 @@
using System.Linq.Expressions;
using Template.Shared.Core.Dto;
using Template.Shared.Core.Entity;
namespace Template.Shared.Core.Interface;
public interface IManageDataService
{
Task<List<AnagClie>> GetAnagClie(Expression<Func<AnagClie, bool>>? whereCond = null);
Task<List<JtbComt>> GetJtbComt(Expression<Func<JtbComt, bool>>? whereCond = null);
Task<List<PtbPros>> GetPtbPros(Expression<Func<PtbPros, bool>>? whereCond = null);
Task<List<PtbProsRif>> GetPtbProsRif(Expression<Func<PtbProsRif, bool>>? whereCond = null);
Task<List<StbActivity>> GetStbActivity(Expression<Func<StbActivity, bool>>? whereCond = null);
Task<List<VtbCliePersRif>> GetVtbCliePersRif(Expression<Func<VtbCliePersRif, bool>>? whereCond = null);
Task<List<VtbDest>> GetVtbDest(Expression<Func<VtbDest, bool>>? whereCond = null);
Task<List<ActivityDTO>> GetActivity(Expression<Func<StbActivity, bool>>? whereCond = null);
}

View File

@@ -1,6 +0,0 @@
namespace Template.Shared.Core.Interface;
public interface INetworkService
{
public bool IsNetworkAvailable();
}

View File

@@ -1,9 +0,0 @@
namespace Template.Shared.Core.Interface;
public interface ISyncDbService
{
Task GetAndSaveActivity(string? dateFilter = null);
Task GetAndSaveCommesse(string? dateFilter = null);
Task GetAndSaveProspect(string? dateFilter = null);
Task GetAndSaveClienti(string? dateFilter = null);
}

View File

@@ -1,54 +0,0 @@
using IntegryApiClient.Core.Domain.Abstraction.Contracts.Account;
using IntegryApiClient.Core.Domain.RestClient.Contacts;
using Template.Shared.Core.Dto;
using Template.Shared.Core.Entity;
using Template.Shared.Core.Interface;
namespace Template.Shared.Core.Services;
public class IntegryApiService(IIntegryApiRestClient integryApiRestClient, IUserSession userSession)
: IIntegryApiService
{
public Task<List<StbActivity>?> GetActivity(string? dateFilter)
{
var queryParams = new Dictionary<string, object> { { "dateFilter", dateFilter ?? "2020-01-01" } };
return integryApiRestClient.AuthorizedGet<List<StbActivity>?>("task/getActivity", queryParams);
}
public Task<List<JtbComt>?> GetAllCommesse(string? dateFilter)
{
var queryParams = new Dictionary<string, object>();
if (dateFilter != null)
{
queryParams.Add("dateFilter", dateFilter);
}
return integryApiRestClient.AuthorizedGet<List<JtbComt>?>("task/getCommesse", queryParams);
}
public Task<TaskSyncResponseDTO> GetAnagClie(string? dateFilter)
{
var queryParams = new Dictionary<string, object>();
if (dateFilter != null)
{
queryParams.Add("dateFilter", dateFilter);
}
return integryApiRestClient.AuthorizedGet<TaskSyncResponseDTO>("task/getAnagClie", queryParams)!;
}
public Task<TaskSyncResponseDTO> GetProspect(string? dateFilter)
{
var queryParams = new Dictionary<string, object>();
if (dateFilter != null)
{
queryParams.Add("dateFilter", dateFilter);
}
return integryApiRestClient.AuthorizedGet<TaskSyncResponseDTO>("task/getProspect", queryParams)!;
}
}

View File

@@ -1,11 +0,0 @@
namespace Template.Shared.Core.Utility;
public static class UtilityString
{
public static string ExtractInitials(string fullname)
{
return string.Concat(fullname
.Split(' ', StringSplitOptions.RemoveEmptyEntries)
.Select(word => char.ToUpper(word[0])));
}
}

View File

@@ -1,30 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="AutoMapper" Version="14.0.0" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
<PackageReference Include="IntegryApiClient.Core" Version="1.1.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="9.0.4" />
<PackageReference Include="sqlite-net-pcl" Version="1.9.172" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.9.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.4" />
<PackageReference Include="MudBlazor" Version="8.6.0" />
<PackageReference Include="MudBlazor.ThemeManager" Version="3.0.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="wwwroot\css\lineicons\" />
<Folder Include="wwwroot\js\bootstrap\" />
</ItemGroup>
</Project>

View File

@@ -1,7 +0,0 @@
:root {
/*Color*/
--card-border-color: hsl(from var(--mud-palette-gray-light) h s 86%);
--gray-for-shadow: hsl(from var(--mud-palette-gray-light) h s 95%);
/*Utility*/
--card-shadow: 5px 5px 10px 0 var(--gray-for-shadow);
}

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +0,0 @@
window.goBack = function () {
history.back();
};

View File

@@ -1,49 +0,0 @@
using System.Linq.Expressions;
using Template.Shared.Core.Dto;
using Template.Shared.Core.Entity;
using Template.Shared.Core.Interface;
namespace Template.Web.Core.Services;
public class ManageDataService : IManageDataService
{
public Task<List<AnagClie>> GetAnagClie(Expression<Func<AnagClie, bool>>? whereCond = null)
{
throw new NotImplementedException();
}
public Task<List<JtbComt>> GetJtbComt(Expression<Func<JtbComt, bool>>? whereCond = null)
{
throw new NotImplementedException();
}
public Task<List<PtbPros>> GetPtbPros(Expression<Func<PtbPros, bool>>? whereCond = null)
{
throw new NotImplementedException();
}
public Task<List<PtbProsRif>> GetPtbProsRif(Expression<Func<PtbProsRif, bool>>? whereCond = null)
{
throw new NotImplementedException();
}
public Task<List<StbActivity>> GetStbActivity(Expression<Func<StbActivity, bool>>? whereCond = null)
{
throw new NotImplementedException();
}
public Task<List<VtbCliePersRif>> GetVtbCliePersRif(Expression<Func<VtbCliePersRif, bool>>? whereCond = null)
{
throw new NotImplementedException();
}
public Task<List<VtbDest>> GetVtbDest(Expression<Func<VtbDest, bool>>? whereCond = null)
{
throw new NotImplementedException();
}
public Task<List<ActivityDTO>> GetActivity(Expression<Func<StbActivity, bool>>? whereCond = null)
{
throw new NotImplementedException();
}
}

View File

@@ -1,12 +0,0 @@
using Template.Shared.Core.Interface;
namespace Template.Web.Core.Services;
public class NetworkService : INetworkService
{
public bool IsNetworkAvailable()
{
return true;
}
}

View File

@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Template.Maui" xmlns:android="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls"
x:Class="Template.Maui.App"> android:Application.WindowSoftInputModeAdjust="Resize"
x:Class="salesbook.Maui.App">
<Application.Resources> <Application.Resources>
<ResourceDictionary> <ResourceDictionary>
<Color x:Key="PageBackgroundColor">#512bdf</Color> <Color x:Key="PageBackgroundColor">#dff2ff</Color>
<Color x:Key="PrimaryTextColor">White</Color> <Color x:Key="PrimaryTextColor">White</Color>
<Style TargetType="Label"> <Style TargetType="Label">
@@ -17,7 +18,7 @@
<Style TargetType="Button"> <Style TargetType="Button">
<Setter Property="TextColor" Value="{DynamicResource PrimaryTextColor}" /> <Setter Property="TextColor" Value="{DynamicResource PrimaryTextColor}" />
<Setter Property="FontFamily" Value="OpenSansRegular" /> <Setter Property="FontFamily" Value="OpenSansRegular" />
<Setter Property="BackgroundColor" Value="#2b0b98" /> <Setter Property="BackgroundColor" Value="#dff2ff" />
<Setter Property="Padding" Value="14,10" /> <Setter Property="Padding" Value="14,10" />
</Style> </Style>

View File

@@ -0,0 +1,15 @@
namespace salesbook.Maui
{
public partial class App : Application
{
public App()
{
InitializeComponent();
}
protected override Window CreateWindow(IActivationState? activationState)
{
return new Window(new MainPage());
}
}
}

View File

@@ -0,0 +1,10 @@
using System.Text.Json.Serialization;
namespace salesbook.Maui.Core.RestClient.IntegryApi.Dto;
public class RegisterDeviceDTO
{
[JsonPropertyName("userDeviceToken")]
public WtbUserDeviceTokenDTO UserDeviceToken { get; set; }
}

View File

@@ -0,0 +1,22 @@
using System.Text.Json.Serialization;
namespace salesbook.Maui.Core.RestClient.IntegryApi.Dto;
public class WtbUserDeviceTokenDTO
{
[JsonPropertyName("type")]
public string Type => "wtb_user_device_tokens";
[JsonPropertyName("deviceToken")]
public string DeviceToken { get; set; }
[JsonPropertyName("userName")]
public string Username { get; set; }
[JsonPropertyName("appName")]
public int AppName => 7; //salesbook
[JsonPropertyName("platform")]
public string Platform { get; set; }
}

View File

@@ -0,0 +1,38 @@
using IntegryApiClient.Core.Domain.Abstraction.Contracts.Account;
using IntegryApiClient.Core.Domain.RestClient.Contacts;
using Microsoft.Extensions.Logging;
using salesbook.Maui.Core.RestClient.IntegryApi.Dto;
using salesbook.Shared.Core.Interface.IntegryApi;
namespace salesbook.Maui.Core.RestClient.IntegryApi;
public class IntegryRegisterNotificationRestClient(
ILogger<IntegryRegisterNotificationRestClient> logger,
IUserSession userSession,
IIntegryApiRestClient integryApiRestClient
) : IIntegryRegisterNotificationRestClient
{
public async Task Register(string fcmToken, ILogger? logger1 = null)
{
logger1 ??= logger;
var userDeviceToken = new RegisterDeviceDTO()
{
UserDeviceToken = new WtbUserDeviceTokenDTO()
{
DeviceToken = fcmToken,
Platform = OperatingSystem.IsAndroid() ? "Android" : "iOS",
Username = userSession.User.Username
}
};
try
{
await integryApiRestClient.AuthorizedPost<object>($"device_tokens/insert", userDeviceToken,
logger: logger1);
}
catch (Exception ex)
{
SentrySdk.CaptureException(ex);
}
}
}

View File

@@ -0,0 +1,142 @@
using salesbook.Shared.Core.Dto;
using salesbook.Shared.Core.Interface;
namespace salesbook.Maui.Core.Services;
public class AttachedService : IAttachedService
{
public async Task<AttachedDTO?> SelectImageFromCamera()
{
var cameraPerm = await Permissions.RequestAsync<Permissions.Camera>();
var storagePerm = await Permissions.RequestAsync<Permissions.StorageWrite>();
if (cameraPerm != PermissionStatus.Granted || storagePerm != PermissionStatus.Granted)
return null;
FileResult? result = null;
try
{
result = await MediaPicker.Default.CapturePhotoAsync();
}
catch (Exception ex)
{
Console.WriteLine($"Errore cattura foto: {ex.Message}");
SentrySdk.CaptureException(ex);
return null;
}
return result is null ? null : await ConvertToDto(result, AttachedDTO.TypeAttached.Image);
}
public async Task<AttachedDTO?> SelectImageFromGallery()
{
var storagePerm = await Permissions.RequestAsync<Permissions.StorageRead>();
if (storagePerm != PermissionStatus.Granted)
return null;
FileResult? result = null;
try
{
result = await MediaPicker.Default.PickPhotoAsync();
}
catch (Exception ex)
{
Console.WriteLine($"Errore selezione galleria: {ex.Message}");
SentrySdk.CaptureException(ex);
return null;
}
return result is null ? null : await ConvertToDto(result, AttachedDTO.TypeAttached.Image);
}
public async Task<AttachedDTO?> SelectFile()
{
var perm = await Permissions.RequestAsync<Permissions.StorageRead>();
if (perm != PermissionStatus.Granted) return null;
var result = await FilePicker.PickAsync();
return result is null ? null : await ConvertToDto(result, AttachedDTO.TypeAttached.Document);
}
public async Task<AttachedDTO?> SelectPosition()
{
var perm = await Permissions.RequestAsync<Permissions.LocationWhenInUse>();
if (perm != PermissionStatus.Granted) return null;
var loc = await Geolocation.GetLastKnownLocationAsync();
if (loc is null) return null;
return new AttachedDTO
{
Name = "Posizione attuale",
Lat = loc.Latitude,
Lng = loc.Longitude,
Type = AttachedDTO.TypeAttached.Position
};
}
private static async Task<AttachedDTO> ConvertToDto(FileResult file, AttachedDTO.TypeAttached type)
{
var stream = await file.OpenReadAsync();
using var ms = new MemoryStream();
await stream.CopyToAsync(ms);
return new AttachedDTO
{
Name = file.FileName,
Path = file.FullPath,
MimeType = file.ContentType,
DimensionBytes = ms.Length,
FileBytes = ms.ToArray(),
Type = type
};
}
private static async Task<string?> SaveToTempStorage(Stream file, string fileName)
{
var cacheDirectory = FileSystem.CacheDirectory;
var targetDirectory = Path.Combine(cacheDirectory, "file");
if (!Directory.Exists(targetDirectory)) Directory.CreateDirectory(targetDirectory);
var tempFilePath = Path.Combine(targetDirectory, fileName + ".temp");
var filePath = Path.Combine(targetDirectory, fileName);
if (File.Exists(filePath)) return filePath;
try
{
await using var fileStream =
new FileStream(tempFilePath, FileMode.Create, FileAccess.Write, FileShare.None);
await file.CopyToAsync(fileStream);
File.Move(tempFilePath, filePath);
}
catch (Exception e)
{
Console.WriteLine($"Errore durante il salvataggio dello stream: {e.Message}");
SentrySdk.CaptureException(e);
return null;
}
finally
{
if (File.Exists(tempFilePath)) File.Delete(tempFilePath);
}
return filePath;
}
public async Task OpenFile(Stream file, string fileName)
{
var filePath = await SaveToTempStorage(file, fileName);
if (filePath is null) return;
await Launcher.OpenAsync(new OpenFileRequest
{
File = new ReadOnlyFile(filePath)
});
}
}

View File

@@ -1,6 +1,6 @@
using Template.Shared.Core.Interface; using salesbook.Shared.Core.Interface;
namespace Template.Maui.Core.Services; namespace salesbook.Maui.Core.Services;
public class FormFactor : IFormFactor public class FormFactor : IFormFactor
{ {

View File

@@ -1,8 +1,8 @@
using System.Linq.Expressions; using SQLite;
using SQLite; using System.Linq.Expressions;
using Template.Shared.Core.Entity; using salesbook.Shared.Core.Entity;
namespace Template.Maui.Core.Services; namespace salesbook.Maui.Core.Services;
public class LocalDbService public class LocalDbService
{ {
@@ -13,7 +13,6 @@ public class LocalDbService
{ {
_connection = new SQLiteAsyncConnection(Path.Combine(FileSystem.AppDataDirectory, DB_NAME)); _connection = new SQLiteAsyncConnection(Path.Combine(FileSystem.AppDataDirectory, DB_NAME));
//Creazione tabelle database
_connection.CreateTableAsync<AnagClie>(); _connection.CreateTableAsync<AnagClie>();
_connection.CreateTableAsync<JtbComt>(); _connection.CreateTableAsync<JtbComt>();
_connection.CreateTableAsync<PtbPros>(); _connection.CreateTableAsync<PtbPros>();
@@ -21,10 +20,43 @@ public class LocalDbService
_connection.CreateTableAsync<StbActivity>(); _connection.CreateTableAsync<StbActivity>();
_connection.CreateTableAsync<VtbCliePersRif>(); _connection.CreateTableAsync<VtbCliePersRif>();
_connection.CreateTableAsync<VtbDest>(); _connection.CreateTableAsync<VtbDest>();
_connection.CreateTableAsync<StbActivityResult>();
_connection.CreateTableAsync<StbActivityType>();
_connection.CreateTableAsync<SrlActivityTypeUser>();
_connection.CreateTableAsync<StbUser>();
_connection.CreateTableAsync<VtbTipi>();
_connection.CreateTableAsync<Nazioni>();
}
public async Task ResetSettingsDb()
{
try
{
await _connection.ExecuteAsync("DROP TABLE IF EXISTS stb_activity_result;");
await _connection.ExecuteAsync("DROP TABLE IF EXISTS stb_activity_type;");
await _connection.ExecuteAsync("DROP TABLE IF EXISTS srl_activity_type_user;");
await _connection.ExecuteAsync("DROP TABLE IF EXISTS stb_user;");
await _connection.ExecuteAsync("DROP TABLE IF EXISTS vtb_tipi;");
await _connection.ExecuteAsync("DROP TABLE IF EXISTS nazioni;");
await _connection.CreateTableAsync<StbActivityResult>();
await _connection.CreateTableAsync<StbActivityType>();
await _connection.CreateTableAsync<SrlActivityTypeUser>();
await _connection.CreateTableAsync<StbUser>();
await _connection.CreateTableAsync<VtbTipi>();
await _connection.CreateTableAsync<Nazioni>();
}
catch (Exception ex)
{
Console.WriteLine($"Errore durante il reset del database(settings): {ex.Message}");
throw;
}
} }
public async Task ResetDb() public async Task ResetDb()
{ {
await ResetSettingsDb();
try try
{ {
await _connection.ExecuteAsync("DROP TABLE IF EXISTS anag_clie;"); await _connection.ExecuteAsync("DROP TABLE IF EXISTS anag_clie;");
@@ -52,9 +84,24 @@ public class LocalDbService
} }
} }
public Task Insert<T>(List<T> entityList) => public Task InsertAll<T>(List<T> entityList) =>
_connection.InsertAllAsync(entityList, typeof(T)); _connection.InsertAllAsync(entityList, typeof(T));
public async Task Insert<T>(List<T> entityList)
{
foreach (var entity in entityList)
{
try
{
await _connection.InsertAsync(entity, typeof(T));
}
catch (Exception ex)
{
Console.WriteLine($"Errore db su {entity}: {ex.Message}");
}
}
}
public async Task InsertOrUpdate<T>(List<T> entityList) public async Task InsertOrUpdate<T>(List<T> entityList)
{ {
foreach (var entity in entityList) foreach (var entity in entityList)
@@ -73,4 +120,7 @@ public class LocalDbService
: _connection.Table<T>().Where(whereCond).ToListAsync(); : _connection.Table<T>().Where(whereCond).ToListAsync();
public List<T> Get<T>(string sql) where T : new() => _connection.QueryAsync<T>(sql).Result; public List<T> Get<T>(string sql) where T : new() => _connection.QueryAsync<T>(sql).Result;
public async Task Delete<T>(T entity) =>
await _connection.DeleteAsync(entity);
} }

View File

@@ -0,0 +1,375 @@
using AutoMapper;
using salesbook.Shared.Core.Dto;
using salesbook.Shared.Core.Dto.Activity;
using salesbook.Shared.Core.Dto.Contact;
using salesbook.Shared.Core.Dto.PageState;
using salesbook.Shared.Core.Entity;
using salesbook.Shared.Core.Helpers;
using salesbook.Shared.Core.Helpers.Enum;
using salesbook.Shared.Core.Interface;
using salesbook.Shared.Core.Interface.IntegryApi;
using salesbook.Shared.Core.Interface.System.Network;
using System.Linq.Expressions;
using IntegryApiClient.Core.Domain.Abstraction.Contracts.Account;
namespace salesbook.Maui.Core.Services;
public class ManageDataService(
LocalDbService localDb,
IMapper mapper,
UserListState userListState,
IIntegryApiService integryApiService,
INetworkService networkService,
IUserSession userSession
) : IManageDataService
{
public Task<List<T>> GetTable<T>(Expression<Func<T, bool>>? whereCond = null) where T : new() =>
localDb.Get(whereCond);
public async Task<List<AnagClie>> GetClienti(WhereCondContact? whereCond)
{
List<AnagClie> clienti = [];
whereCond ??= new WhereCondContact();
whereCond.OnlyContact = true;
if (networkService.ConnectionAvailable)
{
var response = await integryApiService.RetrieveAnagClie(
new CRMAnagRequestDTO
{
CodAnag = whereCond.CodAnag,
FlagStato = whereCond.FlagStato,
PartIva = whereCond.PartIva,
ReturnPersRif = !whereCond.OnlyContact
}
);
clienti = response.AnagClie ?? [];
}
else
{
clienti = await localDb.Get<AnagClie>(x =>
(whereCond.FlagStato != null && x.FlagStato.Equals(whereCond.FlagStato)) ||
(whereCond.PartIva != null && x.PartIva.Equals(whereCond.PartIva)) ||
(whereCond.PartIva == null && whereCond.FlagStato == null)
);
}
return clienti;
}
public async Task<List<PtbPros>> GetProspect(WhereCondContact? whereCond)
{
List<PtbPros> prospect = [];
whereCond ??= new WhereCondContact();
whereCond.OnlyContact = true;
if (networkService.ConnectionAvailable)
{
var response = await integryApiService.RetrieveProspect(
new CRMProspectRequestDTO
{
CodPpro = whereCond.CodAnag,
PartIva = whereCond.PartIva,
ReturnPersRif = !whereCond.OnlyContact
}
);
prospect = response.PtbPros ?? [];
}
else
{
prospect = await localDb.Get<PtbPros>(x =>
(whereCond.PartIva != null && x.PartIva.Equals(whereCond.PartIva)) ||
(whereCond.PartIva == null)
);
}
return prospect;
}
public async Task<List<ContactDTO>> GetContact(WhereCondContact? whereCond, DateTime? lastSync)
{
List<AnagClie>? contactList;
List<PtbPros>? prospectList;
whereCond ??= new WhereCondContact();
if (networkService.ConnectionAvailable)
{
var response = new UsersSyncResponseDTO();
var clienti = await integryApiService.RetrieveAnagClie(
new CRMAnagRequestDTO
{
CodAnag = whereCond.CodAnag,
FlagStato = whereCond.FlagStato,
PartIva = whereCond.PartIva,
ReturnPersRif = !whereCond.OnlyContact,
FilterDate = lastSync
}
);
response.AnagClie = clienti.AnagClie;
response.VtbDest = clienti.VtbDest;
response.VtbCliePersRif = clienti.VtbCliePersRif;
var prospect = await integryApiService.RetrieveProspect(
new CRMProspectRequestDTO
{
CodPpro = whereCond.CodAnag,
PartIva = whereCond.PartIva,
ReturnPersRif = !whereCond.OnlyContact,
FilterDate = lastSync
}
);
response.PtbPros = prospect.PtbPros;
response.PtbProsRif = prospect.PtbProsRif;
_ = UpdateDbUsers(response);
contactList = clienti.AnagClie;
prospectList = prospect.PtbPros;
}
else
{
contactList = await localDb.Get<AnagClie>(x =>
(whereCond.FlagStato != null && x.FlagStato.Equals(whereCond.FlagStato)) ||
(whereCond.PartIva != null && x.PartIva.Equals(whereCond.PartIva)) ||
(whereCond.PartIva == null && whereCond.FlagStato == null)
);
prospectList = await localDb.Get<PtbPros>(x =>
(whereCond.PartIva != null && x.PartIva.Equals(whereCond.PartIva)) ||
(whereCond.PartIva == null)
);
}
// Mappa i contatti
var contactMapper = mapper.Map<List<ContactDTO>>(contactList);
// Mappa i prospects
var prospectMapper = mapper.Map<List<ContactDTO>>(prospectList);
contactMapper.AddRange(prospectMapper);
return contactMapper;
}
public async Task<ContactDTO?> GetSpecificContact(string codAnag, bool isContact)
{
if (isContact)
{
var contact = (await localDb.Get<AnagClie>(x => x.CodAnag != null && x.CodAnag.Equals(codAnag)))
.LastOrDefault();
return contact == null ? null : mapper.Map<ContactDTO>(contact);
}
else
{
var contact = (await localDb.Get<PtbPros>(x => x.CodPpro != null && x.CodPpro.Equals(codAnag)))
.LastOrDefault();
return contact == null ? null : mapper.Map<ContactDTO>(contact);
}
}
public async Task<List<ActivityDTO>> GetActivityTryLocalDb(WhereCondActivity whereCond)
{
var activities = await localDb.Get<StbActivity>(x =>
(whereCond.ActivityId != null && x.ActivityId != null && whereCond.ActivityId.Equals(x.ActivityId)) ||
(whereCond.Start != null && whereCond.End != null && x.EffectiveTime == null &&
x.EstimatedTime >= whereCond.Start && x.EstimatedTime <= whereCond.End) ||
(x.EffectiveTime >= whereCond.Start && x.EffectiveTime <= whereCond.End) ||
(whereCond.ActivityId == null && (whereCond.Start == null || whereCond.End == null))
);
if (activities.IsNullOrEmpty() && networkService.ConnectionAvailable)
{
activities = await integryApiService.RetrieveActivity(
new CRMRetrieveActivityRequestDTO
{
StarDate = whereCond.Start,
EndDate = whereCond.End,
ActivityId = whereCond.ActivityId
}
);
_ = UpdateDb(activities);
}
else return [];
return await MapActivity(activities);
}
public async Task<List<ActivityDTO>> GetActivity(WhereCondActivity whereCond, bool useLocalDb)
{
List<StbActivity>? activities;
if (networkService.ConnectionAvailable && !useLocalDb)
{
activities = await integryApiService.RetrieveActivity(
new CRMRetrieveActivityRequestDTO
{
StarDate = whereCond.Start,
EndDate = whereCond.End,
ActivityId = whereCond.ActivityId
}
);
_ = UpdateDb(activities);
}
else return await GetActivityTryLocalDb(whereCond);
return await MapActivity(activities);
}
public async Task<List<ActivityDTO>> MapActivity(List<StbActivity>? activities)
{
if (activities == null) return [];
var codJcomList = activities
.Select(x => x.CodJcom)
.Where(x => !string.IsNullOrEmpty(x))
.Distinct().ToList();
var jtbComtList = await localDb.Get<JtbComt>(x => codJcomList.Contains(x.CodJcom));
var codAnagList = activities
.Select(x => x.CodAnag)
.Where(x => !string.IsNullOrEmpty(x))
.Distinct().ToList();
IDictionary<string, string?>? distinctUser = null;
if (userListState.AllUsers != null)
{
distinctUser = userListState.AllUsers
.Where(x => codAnagList.Contains(x.CodContact))
.ToDictionary(x => x.CodContact, x => x.RagSoc);
}
var returnDto = activities
.Select(activity =>
{
if (activity.CodJcom is "0000" && userSession.ProfileDb != null && userSession.ProfileDb.Equals("smetar", StringComparison.OrdinalIgnoreCase))
{
activity.CodJcom = null;
}
var dto = mapper.Map<ActivityDTO>(activity);
if (activity is { AlarmTime: not null, EstimatedTime: not null })
{
var minuteBefore = activity.EstimatedTime.Value - activity.AlarmTime.Value;
dto.MinuteBefore = (int)Math.Abs(minuteBefore.TotalMinutes);
dto.NotificationDate = dto.MinuteBefore == 0 ?
activity.EstimatedTime : activity.AlarmTime;
}
if (activity.CodJcom != null)
{
dto.Category = ActivityCategoryEnum.Commessa;
}
else
{
dto.Category = activity.CodAnag != null ? ActivityCategoryEnum.Interna : ActivityCategoryEnum.Memo;
}
if (dto.Category != ActivityCategoryEnum.Memo && activity.CodAnag != null)
{
string? ragSoc;
if (distinctUser != null && (distinctUser.TryGetValue(activity.CodAnag, out ragSoc) ||
distinctUser.TryGetValue(activity.CodAnag, out ragSoc)))
{
dto.Cliente = ragSoc;
}
}
dto.Commessa = jtbComtList.Find(x => x.CodJcom.Equals(dto.CodJcom));
return dto;
})
.ToList();
return returnDto;
}
private Task UpdateDbUsers(UsersSyncResponseDTO response)
{
return Task.Run(async () =>
{
try
{
if (response.AnagClie != null)
{
await localDb.InsertOrUpdate(response.AnagClie);
if (response.VtbDest != null) await localDb.InsertOrUpdate(response.VtbDest);
if (response.VtbCliePersRif != null) await localDb.InsertOrUpdate(response.VtbCliePersRif);
}
if (response.PtbPros != null)
{
await localDb.InsertOrUpdate(response.PtbPros);
if (response.PtbProsRif != null) await localDb.InsertOrUpdate(response.PtbProsRif);
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
SentrySdk.CaptureException(e);
throw;
}
});
}
private Task UpdateDb<T>(List<T>? entityList)
{
return Task.Run(() =>
{
if (entityList == null) return;
_ = localDb.InsertOrUpdate(entityList);
});
}
public Task InsertOrUpdate<T>(List<T> listToSave) =>
localDb.InsertOrUpdate(listToSave);
public Task InsertOrUpdate<T>(T objectToSave) =>
localDb.InsertOrUpdate<T>([objectToSave]);
public async Task DeleteProspect(string codPpro)
{
var persRifList = await GetTable<PtbProsRif>(x => x.CodPpro!.Equals(codPpro));
if (!persRifList.IsNullOrEmpty())
{
foreach (var persRif in persRifList)
{
await localDb.Delete(persRif);
}
}
var ptbPros = (await GetTable<PtbPros>(x => x.CodPpro!.Equals(codPpro))).FirstOrDefault();
if (ptbPros != null)
{
await localDb.Delete(ptbPros);
}
}
public Task Delete<T>(T objectToDelete) =>
localDb.Delete(objectToDelete);
public async Task DeleteActivity(ActivityDTO activity)
{
await localDb.Delete(
(await GetTable<StbActivity>(x => x.ActivityId.Equals(activity.ActivityId))).Last()
);
}
public Task ClearDb() =>
localDb.ResetDb();
}

View File

@@ -0,0 +1,45 @@
using salesbook.Shared.Core.Helpers;
using salesbook.Shared.Core.Interface;
using salesbook.Shared.Core.Interface.IntegryApi;
namespace salesbook.Maui.Core.Services;
public class SyncDbService(IIntegryApiService integryApiService, LocalDbService localDb) : ISyncDbService
{
public async Task GetAndSaveCommesse(string? dateFilter)
{
var allCommesse = await integryApiService.RetrieveAllCommesse(dateFilter);
if (!allCommesse.IsNullOrEmpty())
if (dateFilter is null)
await localDb.InsertAll(allCommesse!);
else
await localDb.InsertOrUpdate(allCommesse!);
}
public async Task GetAndSaveSettings(string? dateFilter)
{
if (dateFilter is not null)
await localDb.ResetSettingsDb();
var settingsResponse = await integryApiService.RetrieveSettings();
if (!settingsResponse.ActivityResults.IsNullOrEmpty())
await localDb.InsertAll(settingsResponse.ActivityResults!);
if (!settingsResponse.ActivityTypes.IsNullOrEmpty())
await localDb.InsertAll(settingsResponse.ActivityTypes!);
if (!settingsResponse.ActivityTypeUsers.IsNullOrEmpty())
await localDb.InsertAll(settingsResponse.ActivityTypeUsers!);
if (!settingsResponse.StbUsers.IsNullOrEmpty())
await localDb.InsertAll(settingsResponse.StbUsers!);
if (!settingsResponse.VtbTipi.IsNullOrEmpty())
await localDb.InsertAll(settingsResponse.VtbTipi!);
if (!settingsResponse.Nazioni.IsNullOrEmpty())
await localDb.InsertAll(settingsResponse.Nazioni!);
}
}

View File

@@ -0,0 +1,16 @@
using salesbook.Shared.Core.Interface;
using salesbook.Shared.Core.Interface.System.Network;
namespace salesbook.Maui.Core.System.Network;
public class NetworkService : INetworkService
{
public bool ConnectionAvailable { get; set; }
public bool IsNetworkAvailable()
{
//return false;
return Connectivity.Current.NetworkAccess == NetworkAccess.Internet;
}
}

View File

@@ -0,0 +1,37 @@
using salesbook.Shared.Core.Interface;
using salesbook.Shared.Core.Interface.IntegryApi;
using Shiny;
using Shiny.Notifications;
using Shiny.Push;
namespace salesbook.Maui.Core.System.Notification;
public class FirebaseNotificationService(
IPushManager pushManager,
IIntegryRegisterNotificationRestClient integryRegisterNotificationRestClient,
INotificationManager notificationManager
) : IFirebaseNotificationService
{
public async Task InitFirebase()
{
CreateNotificationChannel();
var (accessState, token) = await pushManager.RequestAccess();
if (accessState == AccessState.Denied || token is null) return;
await integryRegisterNotificationRestClient.Register(token);
}
private void CreateNotificationChannel()
{
var channel = new Channel
{
Identifier = "salesbook_push",
Description = "Notifiche push di SalesBook",
Importance = ChannelImportance.High,
Actions = []
};
notificationManager.AddChannel(channel);
}
}

View File

@@ -0,0 +1,63 @@
using CommunityToolkit.Mvvm.Messaging;
using salesbook.Shared.Core.Dto;
using salesbook.Shared.Core.Entity;
using salesbook.Shared.Core.Helpers;
using salesbook.Shared.Core.Interface.IntegryApi;
using salesbook.Shared.Core.Messages.Notification.NewPush;
using Shiny.Push;
using System.Text.Json;
namespace salesbook.Maui.Core.System.Notification.Push;
public class PushNotificationDelegate(
IIntegryRegisterNotificationRestClient integryRegisterNotificationRestClient,
IMessenger messenger
) : IPushDelegate
{
public Task OnEntry(PushNotification notification)
{
// fires when the user taps on a push notification
return Task.CompletedTask;
}
public Task OnReceived(PushNotification notification)
{
if (notification.Notification is null) return Task.CompletedTask;
var data = notification.Data;
NotificationDataDTO? notificationDataDto = null;
if (!data.IsNullOrEmpty())
{
var json = JsonSerializer.Serialize(data);
notificationDataDto = JsonSerializer.Deserialize<NotificationDataDTO>(json);
}
if (notificationDataDto?.NotificationId == null) return Task.CompletedTask;
var notificationId = long.Parse(notificationDataDto.NotificationId);
var pushNotification = new WtbNotification
{
Id = notificationId,
Title = notification.Notification.Title,
Body = notification.Notification.Message,
NotificationData = notificationDataDto
};
messenger.Send(new NewPushNotificationMessage(pushNotification));
return Task.CompletedTask;
}
public Task OnNewToken(string token)
{
integryRegisterNotificationRestClient.Register(token);
return Task.CompletedTask;
}
public Task OnUnRegistered(string token)
{
// fires when a push notification change is set by the operating system or provider
return Task.CompletedTask;
}
}

View File

@@ -0,0 +1,9 @@
using salesbook.Shared.Core.Interface.System.Notification;
using Shiny.Notifications;
namespace salesbook.Maui.Core.System.Notification;
public class ShinyNotificationManager(INotificationManager notificationManager) : IShinyNotificationManager
{
public Task RequestAccess() => notificationManager.RequestAccess();
}

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>API_KEY</key>
<string>AIzaSyC_QtQpsVortjzgl-B7__IQZ-85lOct55E</string>
<key>GCM_SENDER_ID</key>
<string>830771692001</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>it.integry.salesbook</string>
<key>PROJECT_ID</key>
<string>salesbook-smetar</string>
<key>STORAGE_BUCKET</key>
<string>salesbook-smetar.firebasestorage.app</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:830771692001:ios:59d8b1d8570ac81f3752a0</string>
</dict>
</plist>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<linker>
<assembly fullname="salesbook.Shared" preserve="all" />
<assembly fullname="System.Private.CoreLib">
<type fullname="System.Runtime.InteropServices.SafeHandle" preserve="all" />
<type fullname="System.IO.FileStream" preserve="all" />
</assembly>
<assembly fullname="SourceGear.sqlite3" preserve="all"/>
<assembly fullname="sqlite-net-e" preserve="all"/>
<assembly fullname="Sentry.Maui" preserve="all"/>
<assembly fullname="Shiny.Hosting.Maui" preserve="all"/>
<assembly fullname="Shiny.Notifications" preserve="all"/>
<assembly fullname="Shiny.Push" preserve="all"/>
</linker>

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Template.Maui" xmlns:local="clr-namespace:salesbook.Maui"
xmlns:shared="clr-namespace:Template.Shared;assembly=Template.Shared" xmlns:shared="clr-namespace:salesbook.Shared;assembly=salesbook.Shared"
x:Class="Template.Maui.MainPage" x:Class="salesbook.Maui.MainPage"
BackgroundColor="{DynamicResource PageBackgroundColor}"> BackgroundColor="{DynamicResource PageBackgroundColor}">
<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html"> <BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html">

View File

@@ -0,0 +1,10 @@
namespace salesbook.Maui
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
}
}

View File

@@ -0,0 +1,113 @@
using CommunityToolkit.Maui;
using CommunityToolkit.Mvvm.Messaging;
using IntegryApiClient.MAUI;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.Extensions.Logging;
using MudBlazor.Services;
using MudExtensions.Services;
using salesbook.Maui.Core.RestClient.IntegryApi;
using salesbook.Maui.Core.Services;
using salesbook.Maui.Core.System.Network;
using salesbook.Maui.Core.System.Notification;
using salesbook.Maui.Core.System.Notification.Push;
using salesbook.Shared;
using salesbook.Shared.Core.Dto;
using salesbook.Shared.Core.Dto.PageState;
using salesbook.Shared.Core.Helpers;
using salesbook.Shared.Core.Interface;
using salesbook.Shared.Core.Interface.IntegryApi;
using salesbook.Shared.Core.Interface.System.Network;
using salesbook.Shared.Core.Interface.System.Notification;
using salesbook.Shared.Core.Messages.Activity.Copy;
using salesbook.Shared.Core.Messages.Activity.New;
using salesbook.Shared.Core.Messages.Back;
using salesbook.Shared.Core.Messages.Contact;
using salesbook.Shared.Core.Messages.Notification.Loaded;
using salesbook.Shared.Core.Messages.Notification.NewPush;
using salesbook.Shared.Core.Services;
using Shiny;
namespace salesbook.Maui
{
public static class MauiProgram
{
private const string AppToken = "f0484398-1f8b-42f5-ab79-5282c164e1d8";
public static MauiAppBuilder CreateMauiAppBuilder()
{
InteractiveRenderSettings.ConfigureBlazorHybridRenderModes();
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseIntegry(appToken: AppToken, useLoginAzienda: true)
.UseMauiCommunityToolkit()
.UseShiny()
.UseSentry(options =>
{
options.Dsn = "https://453b6b38f94fd67e40e0d5306d6caff8@o4508499810254848.ingest.de.sentry.io/4509605099667536";
#if DEBUG
options.Debug = true;
#endif
options.TracesSampleRate = 1.0;
})
.ConfigureFonts(fonts => { fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); });
builder.Services.AddMauiBlazorWebView();
builder.Services.AddMudServices();
builder.Services.AddMudExtensions();
builder.Services.AddAutoMapper(typeof(MappingProfile));
builder.Services.AddAuthorizationCore();
builder.Services.AddScoped<AppAuthenticationStateProvider>();
builder.Services.AddScoped<AuthenticationStateProvider>(provider =>
provider.GetRequiredService<AppAuthenticationStateProvider>());
builder.Services.AddScoped<IIntegryApiService, IntegryApiService>();
builder.Services.AddScoped<ISyncDbService, SyncDbService>();
builder.Services.AddScoped<IManageDataService, ManageDataService>();
builder.Services.AddScoped<PreloadService>();
//SessionData
builder.Services.AddSingleton<JobSteps>();
builder.Services.AddSingleton<UserPageState>();
builder.Services.AddSingleton<UserListState>();
builder.Services.AddSingleton<NotificationState>();
builder.Services.AddSingleton<FilterUserDTO>();
//Message
builder.Services.AddSingleton<IMessenger, WeakReferenceMessenger>();
builder.Services.AddSingleton<NewActivityService>();
builder.Services.AddSingleton<BackNavigationService>();
builder.Services.AddSingleton<CopyActivityService>();
builder.Services.AddSingleton<NewContactService>();
builder.Services.AddSingleton<NotificationsLoadedService>();
builder.Services.AddSingleton<NewPushNotificationService>();
//Notification
builder.Services.AddNotifications();
builder.Services.AddPush<PushNotificationDelegate>();
builder.Services.AddSingleton<IIntegryRegisterNotificationRestClient, IntegryRegisterNotificationRestClient>();
builder.Services.AddSingleton<IIntegryNotificationRestClient, IntegryNotificationRestClient>();
builder.Services.AddSingleton<IFirebaseNotificationService, FirebaseNotificationService>();
builder.Services.AddSingleton<IShinyNotificationManager, ShinyNotificationManager>();
builder.Services.AddSingleton<INotificationService, NotificationService>();
#if DEBUG
builder.Services.AddBlazorWebViewDeveloperTools();
builder.Logging.AddDebug();
#endif
builder.Services.AddSingleton<IFormFactor, FormFactor>();
builder.Services.AddSingleton<IAttachedService, AttachedService>();
builder.Services.AddSingleton<INetworkService, NetworkService>();
builder.Services.AddSingleton<LocalDbService>();
_ = typeof(System.Runtime.InteropServices.SafeHandle);
_ = typeof(System.IO.FileStream);
return builder;
}
}
}

View File

@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="it.integry.salesbook">
<application
android:allowBackup="true"
android:icon="@mipmap/appicon"
android:usesCleartextTraffic="true"
android:supportsRtl="true">
<!-- Firebase push -->
<receiver android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
android:exported="false" />
<receiver android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="${applicationId}" />
</intent-filter>
</receiver>
</application>
<!-- Rete -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<!-- Geolocalizzazione -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- Fotocamera -->
<uses-permission android:name="android.permission.CAMERA" />
<!-- Storage / Media -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- Android 10+ -->
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
<!-- Android 13+ -->
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<!-- Background / Notifiche -->
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
</manifest>

View File

@@ -0,0 +1,13 @@
using salesbook.Maui.Core;
using salesbook.Shared.Core.Interface.System.Battery;
namespace salesbook.Maui;
public static class AndroidModule
{
public static MauiAppBuilder RegisterAndroidAppServices(this MauiAppBuilder mauiAppBuilder)
{
mauiAppBuilder.Services.AddSingleton<IBatteryOptimizationManagerService, BatteryOptimizationManagerService>();
return mauiAppBuilder;
}
}

View File

@@ -0,0 +1,28 @@
using Android.App;
using Android.Content;
using Android.OS;
using Android.Provider;
using salesbook.Shared.Core.Interface.System.Battery;
using Application = Android.App.Application;
namespace salesbook.Maui.Core;
public class BatteryOptimizationManagerService : IBatteryOptimizationManagerService
{
public bool IsBatteryOptimizationEnabled()
{
var packageName = AppInfo.PackageName;
var pm = (PowerManager)Application.Context.GetSystemService(Context.PowerService)!;
return !pm.IsIgnoringBatteryOptimizations(packageName);
}
public void OpenBatteryOptimizationSettings(Action<bool> onCompleted)
{
var packageName = AppInfo.PackageName;
var intent = new Intent(Settings.ActionRequestIgnoreBatteryOptimizations);
intent.SetData(Android.Net.Uri.Parse("package:" + packageName));
((MainActivity)Platform.CurrentActivity!).StartActivityForResult(intent, (result, _) => { onCompleted(result == Result.Ok); });
}
}

View File

@@ -0,0 +1,42 @@
using Android.App;
using Android.Content;
using Android.Content.PM;
namespace salesbook.Maui
{
[Activity(
Theme = "@style/Maui.SplashTheme",
MainLauncher = true,
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode |
ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
[IntentFilter(
[
Shiny.ShinyPushIntents.NotificationClickAction
],
Categories =
[
"android.intent.category.DEFAULT"
]
)]
public class MainActivity : MauiAppCompatActivity
{
private readonly IDictionary<int, Action<Result, Intent>> _onActivityResultSubscriber =
new Dictionary<int, Action<Result, Intent>>();
public void StartActivityForResult(Intent intent, Action<Result, Intent> onResultAction)
{
var requestCode = new Random(DateTime.Now.Millisecond).Next();
_onActivityResultSubscriber.Add(requestCode, onResultAction);
StartActivityForResult(intent, requestCode);
}
protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
{
if (_onActivityResultSubscriber.TryGetValue(requestCode, out var value))
value(resultCode, data);
base.OnActivityResult(requestCode, resultCode, data);
}
}
}

View File

@@ -0,0 +1,16 @@
using Android.App;
using Android.Runtime;
namespace salesbook.Maui;
[Application(HardwareAccelerated = true)]
public class MainApplication : MauiApplication
{
public MainApplication(IntPtr handle, JniHandleOwnership ownership)
: base(handle, ownership)
{
}
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiAppBuilder()
.RegisterAndroidAppServices().Build();
}

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#dff2ff</color>
<color name="colorPrimaryDark">#00a0de</color>
<color name="colorAccent">#00a0de</color>
</resources>

View File

@@ -1,7 +1,7 @@
using Foundation; using Foundation;
using Template.Maui; using salesbook.Maui;
namespace Template.Maui namespace salesbook.Maui
{ {
[Register("AppDelegate")] [Register("AppDelegate")]
public class AppDelegate : MauiUIApplicationDelegate public class AppDelegate : MauiUIApplicationDelegate

Some files were not shown because too many files have changed in this diff Show More