@fluxhub/fluxhub-lib 19.0.200 → 19.0.202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -35482,7 +35482,7 @@ class FHHomeLauncherComponent {
|
|
|
35482
35482
|
}
|
|
35483
35483
|
if (r.invisible)
|
|
35484
35484
|
continue;
|
|
35485
|
-
current.apps.push({ id: r.id, title: r.name, link: r.url });
|
|
35485
|
+
current.apps.push({ id: r.id, title: r.name, link: r.url, appIcon: r.app_icon || "" });
|
|
35486
35486
|
}
|
|
35487
35487
|
const cats = grouped.filter((c) => c.apps.length > 0);
|
|
35488
35488
|
for (const c of cats)
|
|
@@ -35491,6 +35491,23 @@ class FHHomeLauncherComponent {
|
|
|
35491
35491
|
this.is_loaded = true;
|
|
35492
35492
|
});
|
|
35493
35493
|
}
|
|
35494
|
+
/**
|
|
35495
|
+
* Classe CSS FontAwesome per l'icona dell'app. Il valore (applications.app_icon,
|
|
35496
|
+
* scelto con FHIconPicker) puo` essere: classe completa ("fa-solid fa-clipboard",
|
|
35497
|
+
* "fa-brands fa-github"), nome con prefisso ("fa-clipboard") o nome semplice
|
|
35498
|
+
* ("clipboard"). Se manca lo stile assume "fa-solid".
|
|
35499
|
+
*/
|
|
35500
|
+
appIconClass(v) {
|
|
35501
|
+
const raw = (v || "").trim();
|
|
35502
|
+
if (!raw)
|
|
35503
|
+
return "";
|
|
35504
|
+
// gia` una classe completa con lo stile (solid/brands/regular/light/thin/duotone/sharp)
|
|
35505
|
+
if (/\bfa-(solid|brands|regular|light|thin|duotone|sharp)\b/.test(raw))
|
|
35506
|
+
return raw;
|
|
35507
|
+
// nome icona, con o senza prefisso "fa-" -> assume lo stile solid
|
|
35508
|
+
const name = raw.startsWith("fa-") ? raw : "fa-" + raw;
|
|
35509
|
+
return "fa-solid " + name;
|
|
35510
|
+
}
|
|
35494
35511
|
/**
|
|
35495
35512
|
* True se la categoria va renderizzata "a box". Con i preferiti abilitati
|
|
35496
35513
|
* dipende dai preferiti dell'utente (favoriteIds); altrimenti da [boxCategoryIds].
|
|
@@ -35584,8 +35601,10 @@ class FHHomeLauncherComponent {
|
|
|
35584
35601
|
>
|
|
35585
35602
|
<span class="app-box-top">
|
|
35586
35603
|
<span class="app-box-icon">
|
|
35587
|
-
|
|
35588
|
-
<
|
|
35604
|
+
<!-- priorità: icona FontAwesome specifica dell'app (applications.app_icon) > logo categoria > boxIcon default -->
|
|
35605
|
+
<i *ngIf="app.appIcon" [class]="appIconClass(app.appIcon)"></i>
|
|
35606
|
+
<img *ngIf="!app.appIcon && cat.logoUrl" [src]="cat.logoUrl" [alt]="cat.title" />
|
|
35607
|
+
<i *ngIf="!app.appIcon && !cat.logoUrl" class="material-symbols-outlined">{{ boxIcon }}</i>
|
|
35589
35608
|
</span>
|
|
35590
35609
|
<span class="app-box-arrow"><i class="material-symbols-outlined">arrow_forward</i></span>
|
|
35591
35610
|
</span>
|
|
@@ -35650,8 +35669,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
35650
35669
|
>
|
|
35651
35670
|
<span class="app-box-top">
|
|
35652
35671
|
<span class="app-box-icon">
|
|
35653
|
-
|
|
35654
|
-
<
|
|
35672
|
+
<!-- priorità: icona FontAwesome specifica dell'app (applications.app_icon) > logo categoria > boxIcon default -->
|
|
35673
|
+
<i *ngIf="app.appIcon" [class]="appIconClass(app.appIcon)"></i>
|
|
35674
|
+
<img *ngIf="!app.appIcon && cat.logoUrl" [src]="cat.logoUrl" [alt]="cat.title" />
|
|
35675
|
+
<i *ngIf="!app.appIcon && !cat.logoUrl" class="material-symbols-outlined">{{ boxIcon }}</i>
|
|
35655
35676
|
</span>
|
|
35656
35677
|
<span class="app-box-arrow"><i class="material-symbols-outlined">arrow_forward</i></span>
|
|
35657
35678
|
</span>
|