Merge branch 'benphelps:main' into main
This commit is contained in:
commit
7e51a09384
@ -3,10 +3,10 @@
|
|||||||
"missing_type": "Falta el tipus de widget: {{type}}",
|
"missing_type": "Falta el tipus de widget: {{type}}",
|
||||||
"api_error": "Error d'API",
|
"api_error": "Error d'API",
|
||||||
"status": "Estat",
|
"status": "Estat",
|
||||||
"information": "Information",
|
"information": "Informació",
|
||||||
"url": "URL",
|
"url": "URL",
|
||||||
"raw_error": "Raw Error",
|
"raw_error": "Error sense processar",
|
||||||
"response_data": "Response Data"
|
"response_data": "Dades de resposta"
|
||||||
},
|
},
|
||||||
"weather": {
|
"weather": {
|
||||||
"allow": "Feu clic per permetre",
|
"allow": "Feu clic per permetre",
|
||||||
@ -20,8 +20,8 @@
|
|||||||
"transmission": {
|
"transmission": {
|
||||||
"seed": "Llavors",
|
"seed": "Llavors",
|
||||||
"download": "Descàrrega",
|
"download": "Descàrrega",
|
||||||
"upload": "Càrrega",
|
"upload": "Pujada",
|
||||||
"leech": "Companys"
|
"leech": "Company"
|
||||||
},
|
},
|
||||||
"sonarr": {
|
"sonarr": {
|
||||||
"wanted": "Volgut",
|
"wanted": "Volgut",
|
||||||
@ -30,13 +30,13 @@
|
|||||||
},
|
},
|
||||||
"speedtest": {
|
"speedtest": {
|
||||||
"ping": "Ping",
|
"ping": "Ping",
|
||||||
"upload": "Càrrega",
|
"upload": "Pujada",
|
||||||
"download": "Descàrrega"
|
"download": "Descàrrega"
|
||||||
},
|
},
|
||||||
"resources": {
|
"resources": {
|
||||||
"total": "Total",
|
"total": "Total",
|
||||||
"free": "Lliure",
|
"free": "Lliure",
|
||||||
"used": "Usat",
|
"used": "Utilitzat",
|
||||||
"load": "Càrrega",
|
"load": "Càrrega",
|
||||||
"cpu": "CPU"
|
"cpu": "CPU"
|
||||||
},
|
},
|
||||||
@ -47,13 +47,13 @@
|
|||||||
"cpu": "Processador",
|
"cpu": "Processador",
|
||||||
"offline": "Fora de línia",
|
"offline": "Fora de línia",
|
||||||
"error": "Error",
|
"error": "Error",
|
||||||
"unknown": "Unknown"
|
"unknown": "Desconegut"
|
||||||
},
|
},
|
||||||
"emby": {
|
"emby": {
|
||||||
"playing": "Reproduint",
|
"playing": "Reproduint",
|
||||||
"transcoding": "Transcodificant",
|
"transcoding": "Transcodificant",
|
||||||
"bitrate": "Taxa de bits",
|
"bitrate": "Taxa de bits",
|
||||||
"no_active": "Sense transmissions actives"
|
"no_active": "Sense reproduccions actives"
|
||||||
},
|
},
|
||||||
"tautulli": {
|
"tautulli": {
|
||||||
"playing": "Reproduint",
|
"playing": "Reproduint",
|
||||||
@ -73,14 +73,14 @@
|
|||||||
},
|
},
|
||||||
"rutorrent": {
|
"rutorrent": {
|
||||||
"active": "Actiu",
|
"active": "Actiu",
|
||||||
"upload": "Càrrega",
|
"upload": "Pujada",
|
||||||
"download": "Descàrrega"
|
"download": "Descàrrega"
|
||||||
},
|
},
|
||||||
"radarr": {
|
"radarr": {
|
||||||
"wanted": "Volgut",
|
"wanted": "Volgut",
|
||||||
"queued": "En cua",
|
"queued": "En cua",
|
||||||
"movies": "Pel·lícules",
|
"movies": "Pel·lícules",
|
||||||
"missing": "Missing"
|
"missing": "Faltant"
|
||||||
},
|
},
|
||||||
"readarr": {
|
"readarr": {
|
||||||
"wanted": "Volgut",
|
"wanted": "Volgut",
|
||||||
@ -101,7 +101,7 @@
|
|||||||
"pending": "Pendent",
|
"pending": "Pendent",
|
||||||
"approved": "Aprovat",
|
"approved": "Aprovat",
|
||||||
"available": "Disponible",
|
"available": "Disponible",
|
||||||
"processing": "Processing"
|
"processing": "Processant"
|
||||||
},
|
},
|
||||||
"pihole": {
|
"pihole": {
|
||||||
"queries": "Consultes",
|
"queries": "Consultes",
|
||||||
@ -163,8 +163,8 @@
|
|||||||
},
|
},
|
||||||
"qbittorrent": {
|
"qbittorrent": {
|
||||||
"download": "Descàrrega",
|
"download": "Descàrrega",
|
||||||
"upload": "Càrrega",
|
"upload": "Pujada",
|
||||||
"leech": "Companys",
|
"leech": "Company",
|
||||||
"seed": "Llavors"
|
"seed": "Llavors"
|
||||||
},
|
},
|
||||||
"mastodon": {
|
"mastodon": {
|
||||||
@ -184,26 +184,26 @@
|
|||||||
"failedLoginsLast24H": "Errors d'inici de sessió (24h)"
|
"failedLoginsLast24H": "Errors d'inici de sessió (24h)"
|
||||||
},
|
},
|
||||||
"proxmox": {
|
"proxmox": {
|
||||||
"vms": "VMs",
|
"vms": "Màquines Virtuals",
|
||||||
"mem": "Memòria",
|
"mem": "Memòria",
|
||||||
"cpu": "Processador",
|
"cpu": "Processador",
|
||||||
"lxc": "LXC"
|
"lxc": "LXC"
|
||||||
},
|
},
|
||||||
"unifi": {
|
"unifi": {
|
||||||
"users": "Usuaris",
|
"users": "Usuaris",
|
||||||
"uptime": "System Uptime",
|
"uptime": "Temps actiu",
|
||||||
"days": "Días",
|
"days": "Dies",
|
||||||
"wan": "WAN",
|
"wan": "WAN",
|
||||||
"lan_users": "LAN Users",
|
"lan_users": "Usuaris LAN",
|
||||||
"wlan_users": "WLAN Users",
|
"wlan_users": "Usuaris WLAN",
|
||||||
"up": "UP",
|
"up": "ACTIU",
|
||||||
"down": "DOWN",
|
"down": "INACTIU",
|
||||||
"wait": "Si us plau, espereu",
|
"wait": "Si us plau, espereu",
|
||||||
"lan": "LAN",
|
"lan": "LAN",
|
||||||
"wlan": "WLAN",
|
"wlan": "WLAN",
|
||||||
"devices": "Devices",
|
"devices": "Dispositius",
|
||||||
"lan_devices": "LAN Devices",
|
"lan_devices": "Dispositius LAN",
|
||||||
"wlan_devices": "WLAN Devices"
|
"wlan_devices": "Dispositius WLAN"
|
||||||
},
|
},
|
||||||
"plex": {
|
"plex": {
|
||||||
"streams": "Transmissions actives",
|
"streams": "Transmissions actives",
|
||||||
@ -216,119 +216,119 @@
|
|||||||
"wait": "Si us plau, espereu"
|
"wait": "Si us plau, espereu"
|
||||||
},
|
},
|
||||||
"changedetectionio": {
|
"changedetectionio": {
|
||||||
"totalObserved": "Total Observed",
|
"totalObserved": "Total d'observats",
|
||||||
"diffsDetected": "Diffs Detected"
|
"diffsDetected": "Diferències detectades"
|
||||||
},
|
},
|
||||||
"wmo": {
|
"wmo": {
|
||||||
"66-day": "Freezing Rain",
|
"66-day": "Pluja gelada",
|
||||||
"95-day": "Thunderstorm",
|
"95-day": "Tempesta",
|
||||||
"95-night": "Thunderstorm",
|
"95-night": "Tempesta",
|
||||||
"96-day": "Thunderstorm With Hail",
|
"96-day": "Tempesta amb calamarsa",
|
||||||
"0-day": "Sunny",
|
"0-day": "Assolellat",
|
||||||
"0-night": "Clear",
|
"0-night": "Cel clar",
|
||||||
"1-day": "Mainly Sunny",
|
"1-day": "Majorment assolellat",
|
||||||
"1-night": "Mainly Clear",
|
"1-night": "Majorment clar",
|
||||||
"2-day": "Partly Cloudy",
|
"2-day": "Parcialment ennuvolat",
|
||||||
"2-night": "Partly Cloudy",
|
"2-night": "Parcialment ennuvolat",
|
||||||
"3-day": "Cloudy",
|
"3-day": "Ennuvolat",
|
||||||
"3-night": "Cloudy",
|
"3-night": "Ennuvolat",
|
||||||
"45-day": "Foggy",
|
"45-day": "Boirós",
|
||||||
"45-night": "Foggy",
|
"45-night": "Boirós",
|
||||||
"48-day": "Foggy",
|
"48-day": "Boirós",
|
||||||
"48-night": "Foggy",
|
"48-night": "Boirós",
|
||||||
"51-day": "Light Drizzle",
|
"51-day": "Ruixats lleugers",
|
||||||
"51-night": "Light Drizzle",
|
"51-night": "Ruixats lleugers",
|
||||||
"53-day": "Drizzle",
|
"53-day": "Ruixat",
|
||||||
"53-night": "Drizzle",
|
"53-night": "Ruxiat",
|
||||||
"55-day": "Heavy Drizzle",
|
"55-day": "Ruixat intens",
|
||||||
"55-night": "Heavy Drizzle",
|
"55-night": "Ruixat intens",
|
||||||
"56-day": "Light Freezing Drizzle",
|
"56-day": "Lleuger ruixat gelat",
|
||||||
"56-night": "Light Freezing Drizzle",
|
"56-night": "Lleuger ruixat gelat",
|
||||||
"65-night": "Heavy Rain",
|
"65-night": "Pluja intensa",
|
||||||
"57-day": "Freezing Drizzle",
|
"57-day": "Ruixat gelat",
|
||||||
"57-night": "Freezing Drizzle",
|
"57-night": "Ruixat gelat",
|
||||||
"61-day": "Light Rain",
|
"61-day": "Pluja lleugera",
|
||||||
"61-night": "Light Rain",
|
"61-night": "Pluja lleugera",
|
||||||
"63-day": "Rain",
|
"63-day": "Pluja",
|
||||||
"63-night": "Rain",
|
"63-night": "Pluja",
|
||||||
"65-day": "Heavy Rain",
|
"65-day": "Pluja intensa",
|
||||||
"66-night": "Freezing Rain",
|
"66-night": "Pluja gelada",
|
||||||
"67-day": "Freezing Rain",
|
"67-day": "Pluja gelada",
|
||||||
"67-night": "Freezing Rain",
|
"67-night": "Pluja gelada",
|
||||||
"71-day": "Light Snow",
|
"71-day": "Neu lleugera",
|
||||||
"71-night": "Light Snow",
|
"71-night": "Neu lleugera",
|
||||||
"73-day": "Snow",
|
"73-day": "Neu",
|
||||||
"73-night": "Snow",
|
"73-night": "Neu",
|
||||||
"75-day": "Heavy Snow",
|
"75-day": "Neu intensa",
|
||||||
"75-night": "Heavy Snow",
|
"75-night": "Neu intensa",
|
||||||
"77-day": "Snow Grains",
|
"77-day": "Neu lleugera",
|
||||||
"77-night": "Snow Grains",
|
"77-night": "Neu lleugera",
|
||||||
"80-day": "Light Showers",
|
"80-day": "Plovisqueig",
|
||||||
"80-night": "Light Showers",
|
"80-night": "Plovisqueig",
|
||||||
"81-day": "Showers",
|
"81-day": "Xàfecs",
|
||||||
"81-night": "Showers",
|
"81-night": "Xàfecs",
|
||||||
"82-day": "Heavy Showers",
|
"82-day": "Xàfecs intensos",
|
||||||
"82-night": "Heavy Showers",
|
"82-night": "Xàfecs intensos",
|
||||||
"85-day": "Snow Showers",
|
"85-day": "Xàfecs de neu",
|
||||||
"85-night": "Snow Showers",
|
"85-night": "Xàfecs de neu",
|
||||||
"86-day": "Snow Showers",
|
"86-day": "Xàfecs de neu",
|
||||||
"86-night": "Snow Showers",
|
"86-night": "Xàfecs de neu",
|
||||||
"96-night": "Thunderstorm With Hail",
|
"96-night": "Tempesta amb calamarsa",
|
||||||
"99-day": "Thunderstorm With Hail",
|
"99-day": "Tempesta amb calamarsa",
|
||||||
"99-night": "Thunderstorm With Hail"
|
"99-night": "Tempesta amb calamarsa"
|
||||||
},
|
},
|
||||||
"quicklaunch": {
|
"quicklaunch": {
|
||||||
"bookmark": "Bookmark",
|
"bookmark": "Marcador",
|
||||||
"service": "Service"
|
"service": "Servei"
|
||||||
},
|
},
|
||||||
"homebridge": {
|
"homebridge": {
|
||||||
"available_update": "System",
|
"available_update": "Sistema",
|
||||||
"updates": "Updates",
|
"updates": "Actualitzacions",
|
||||||
"update_available": "Update Available",
|
"update_available": "Actualització disponible",
|
||||||
"up_to_date": "Up to Date",
|
"up_to_date": "Actualitzat",
|
||||||
"child_bridges": "Child Bridges",
|
"child_bridges": "Child Bridges",
|
||||||
"child_bridges_status": "{{ok}}/{{total}}"
|
"child_bridges_status": "{{ok}}/{{total}}"
|
||||||
},
|
},
|
||||||
"autobrr": {
|
"autobrr": {
|
||||||
"approvedPushes": "Approved",
|
"approvedPushes": "Aprovat",
|
||||||
"rejectedPushes": "Rejected",
|
"rejectedPushes": "Rebutjat",
|
||||||
"filters": "Filters",
|
"filters": "Filtres",
|
||||||
"indexers": "Indexers"
|
"indexers": "Indexadors"
|
||||||
},
|
},
|
||||||
"watchtower": {
|
"watchtower": {
|
||||||
"containers_scanned": "Scanned",
|
"containers_scanned": "Escanejat",
|
||||||
"containers_updated": "Updated",
|
"containers_updated": "Actualitzat",
|
||||||
"containers_failed": "Failed"
|
"containers_failed": "Error"
|
||||||
},
|
},
|
||||||
"tubearchivist": {
|
"tubearchivist": {
|
||||||
"downloads": "Queue",
|
"downloads": "Cua",
|
||||||
"videos": "Videos",
|
"videos": "Vídeos",
|
||||||
"channels": "Channels",
|
"channels": "Canals",
|
||||||
"playlists": "Playlists"
|
"playlists": "Llistes de reproducció"
|
||||||
},
|
},
|
||||||
"truenas": {
|
"truenas": {
|
||||||
"load": "System Load",
|
"load": "Càrrega del sistema",
|
||||||
"uptime": "Uptime",
|
"uptime": "Temps actiu",
|
||||||
"alerts": "Alerts",
|
"alerts": "Alertes",
|
||||||
"time": "{{value, number(style: unit; unitDisplay: long;)}}"
|
"time": "{{value, number(style: unit; unitDisplay: long;)}}"
|
||||||
},
|
},
|
||||||
"navidrome": {
|
"navidrome": {
|
||||||
"nothing_streaming": "No Active Streams",
|
"nothing_streaming": "Cap reproducció activa",
|
||||||
"please_wait": "Please Wait"
|
"please_wait": "Espereu si us plau"
|
||||||
},
|
},
|
||||||
"pyload": {
|
"pyload": {
|
||||||
"speed": "Speed",
|
"speed": "Velocitat",
|
||||||
"active": "Active",
|
"active": "Actiu",
|
||||||
"queue": "Queue",
|
"queue": "Cua",
|
||||||
"total": "Total"
|
"total": "Total"
|
||||||
},
|
},
|
||||||
"gluetun": {
|
"gluetun": {
|
||||||
"public_ip": "Public IP",
|
"public_ip": "IP Pública",
|
||||||
"region": "Region",
|
"region": "Regió",
|
||||||
"country": "Country"
|
"country": "País"
|
||||||
},
|
},
|
||||||
"hdhomerun": {
|
"hdhomerun": {
|
||||||
"channels": "Channels",
|
"channels": "Canals",
|
||||||
"hd": "HD"
|
"hd": "HD"
|
||||||
},
|
},
|
||||||
"ping": {
|
"ping": {
|
||||||
@ -336,30 +336,30 @@
|
|||||||
"ping": "Ping"
|
"ping": "Ping"
|
||||||
},
|
},
|
||||||
"scrutiny": {
|
"scrutiny": {
|
||||||
"passed": "Passed",
|
"passed": "Aprobat",
|
||||||
"failed": "Failed",
|
"failed": "Error",
|
||||||
"unknown": "Unknown"
|
"unknown": "Desconegut"
|
||||||
},
|
},
|
||||||
"paperlessngx": {
|
"paperlessngx": {
|
||||||
"inbox": "Inbox",
|
"inbox": "Safata d'entrada",
|
||||||
"total": "Total"
|
"total": "Total"
|
||||||
},
|
},
|
||||||
"deluge": {
|
"deluge": {
|
||||||
"seed": "Seed",
|
"seed": "Llavor",
|
||||||
"download": "Download",
|
"download": "Descàrrega",
|
||||||
"upload": "Upload",
|
"upload": "Pujada",
|
||||||
"leech": "Leech"
|
"leech": "Company"
|
||||||
},
|
},
|
||||||
"diskstation": {
|
"diskstation": {
|
||||||
"download": "Download",
|
"download": "Descàrrega",
|
||||||
"upload": "Upload",
|
"upload": "Pujada",
|
||||||
"leech": "Leech",
|
"leech": "Company",
|
||||||
"seed": "Seed"
|
"seed": "Llavor"
|
||||||
},
|
},
|
||||||
"flood": {
|
"flood": {
|
||||||
"download": "Download",
|
"download": "Descarregar",
|
||||||
"upload": "Upload",
|
"upload": "Pujada",
|
||||||
"leech": "Leech",
|
"leech": "Company",
|
||||||
"seed": "Seed"
|
"seed": "Llavor"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
"widget": {
|
"widget": {
|
||||||
"missing_type": "Widget ausente: {{type}}",
|
"missing_type": "Widget ausente: {{type}}",
|
||||||
"api_error": "Erro da API",
|
"api_error": "Erro da API",
|
||||||
"status": "Status",
|
"status": "Estado",
|
||||||
"information": "Informação",
|
"information": "Informação",
|
||||||
"url": "Endereço URL",
|
"url": "Endereço URL",
|
||||||
"raw_error": "Raw Error",
|
"raw_error": "Erro",
|
||||||
"response_data": "Dados da Resposta"
|
"response_data": "Dados da Resposta"
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
@ -207,9 +207,9 @@
|
|||||||
"wan": "WAN",
|
"wan": "WAN",
|
||||||
"lan_users": "Utilizadores LAN",
|
"lan_users": "Utilizadores LAN",
|
||||||
"wlan_users": "Utilizadores WLAN",
|
"wlan_users": "Utilizadores WLAN",
|
||||||
"up": "UP",
|
"up": "Ligados",
|
||||||
"down": "DOWN",
|
"down": "Desligados",
|
||||||
"wait": "Por favor aguarde",
|
"wait": "Por favor, aguarde",
|
||||||
"lan": "LAN",
|
"lan": "LAN",
|
||||||
"wlan": "WLAN",
|
"wlan": "WLAN",
|
||||||
"devices": "Dispositivos",
|
"devices": "Dispositivos",
|
||||||
@ -224,32 +224,32 @@
|
|||||||
"glances": {
|
"glances": {
|
||||||
"cpu": "CPU",
|
"cpu": "CPU",
|
||||||
"mem": "MEM",
|
"mem": "MEM",
|
||||||
"wait": "Please wait"
|
"wait": "Por favor, aguarde"
|
||||||
},
|
},
|
||||||
"changedetectionio": {
|
"changedetectionio": {
|
||||||
"totalObserved": "Total Observado",
|
"totalObserved": "Total Observado",
|
||||||
"diffsDetected": "Diferenças Detetadas"
|
"diffsDetected": "Diferenças Detetadas"
|
||||||
},
|
},
|
||||||
"wmo": {
|
"wmo": {
|
||||||
"0-day": "Sunny",
|
"0-day": "Solarengo",
|
||||||
"0-night": "Clear",
|
"0-night": "Limpo",
|
||||||
"1-day": "Mainly Sunny",
|
"1-day": "Maioritariamente ensolarado",
|
||||||
"1-night": "Mainly Clear",
|
"1-night": "Maioritariamente Limpo",
|
||||||
"2-day": "Partly Cloudy",
|
"2-day": "Parcialmente Nublado",
|
||||||
"2-night": "Partly Cloudy",
|
"2-night": "Parcialmente nublado",
|
||||||
"3-day": "Cloudy",
|
"3-day": "Nublado",
|
||||||
"3-night": "Cloudy",
|
"3-night": "Nublado",
|
||||||
"99-night": "Thunderstorm With Hail",
|
"99-night": "Thunderstorm With Hail",
|
||||||
"45-day": "Foggy",
|
"45-day": "Nevoeiro",
|
||||||
"45-night": "Foggy",
|
"45-night": "Nevoeiro",
|
||||||
"48-day": "Foggy",
|
"48-day": "Nevoeiro",
|
||||||
"48-night": "Foggy",
|
"48-night": "Nevoeiro",
|
||||||
"51-day": "Light Drizzle",
|
"51-day": "Aguaceiros",
|
||||||
"51-night": "Light Drizzle",
|
"51-night": "Aguaceiros",
|
||||||
"53-day": "Drizzle",
|
"53-day": "Chuvisco",
|
||||||
"53-night": "Drizzle",
|
"53-night": "Chuvisco",
|
||||||
"55-day": "Heavy Drizzle",
|
"55-day": "Aguaceiro Forte",
|
||||||
"55-night": "Heavy Drizzle",
|
"55-night": "Aguaceiro Forte",
|
||||||
"56-day": "Light Freezing Drizzle",
|
"56-day": "Light Freezing Drizzle",
|
||||||
"56-night": "Light Freezing Drizzle",
|
"56-night": "Light Freezing Drizzle",
|
||||||
"57-day": "Freezing Drizzle",
|
"57-day": "Freezing Drizzle",
|
||||||
@ -289,8 +289,8 @@
|
|||||||
"99-day": "Thunderstorm With Hail"
|
"99-day": "Thunderstorm With Hail"
|
||||||
},
|
},
|
||||||
"quicklaunch": {
|
"quicklaunch": {
|
||||||
"bookmark": "Bookmark",
|
"bookmark": "Marcador",
|
||||||
"service": "Service"
|
"service": "Serviço"
|
||||||
},
|
},
|
||||||
"homebridge": {
|
"homebridge": {
|
||||||
"available_update": "System",
|
"available_update": "System",
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
import Image from "next/future/image";
|
import Image from "next/future/image";
|
||||||
|
|
||||||
export default function ResolvedIcon({ icon }) {
|
export default function ResolvedIcon({ icon, width = 32, height = 32 }) {
|
||||||
// direct or relative URLs
|
// direct or relative URLs
|
||||||
if (icon.startsWith("http") || icon.startsWith("/")) {
|
if (icon.startsWith("http") || icon.startsWith("/")) {
|
||||||
return <Image src={`${icon}`} width={32} height={32} alt="logo" />;
|
return <Image src={`${icon}`} width={width} height={height} alt="logo" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
// mdi- prefixed, material design icons
|
// mdi- prefixed, material design icons
|
||||||
@ -12,8 +12,8 @@ export default function ResolvedIcon({ icon }) {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
width: 32,
|
width,
|
||||||
height: 32,
|
height,
|
||||||
maxWidth: '100%',
|
maxWidth: '100%',
|
||||||
maxHeight: '100%',
|
maxHeight: '100%',
|
||||||
background: "linear-gradient(180deg, rgb(var(--color-logo-start)), rgb(var(--color-logo-stop)))",
|
background: "linear-gradient(180deg, rgb(var(--color-logo-start)), rgb(var(--color-logo-stop)))",
|
||||||
@ -29,8 +29,8 @@ export default function ResolvedIcon({ icon }) {
|
|||||||
return (
|
return (
|
||||||
<Image
|
<Image
|
||||||
src={`https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/${iconName}.png`}
|
src={`https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/${iconName}.png`}
|
||||||
width={32}
|
width={width}
|
||||||
height={32}
|
height={height}
|
||||||
alt="logo"
|
alt="logo"
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,56 +1,62 @@
|
|||||||
export default function Logo() {
|
import ResolvedIcon from "components/resolvedicon"
|
||||||
|
|
||||||
|
export default function Logo({ options }) {
|
||||||
return (
|
return (
|
||||||
<div className="w-12 h-12 flex flex-row items-center align-middle mr-3 self-center">
|
<div className="w-12 h-12 flex flex-row items-center align-middle mr-3 self-center">
|
||||||
<svg
|
{options.icon ?
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
<ResolvedIcon icon={options.icon} width={48} height={48} /> :
|
||||||
viewBox="0 0 1024 1024"
|
// fallback to homepage logo
|
||||||
style={{
|
<svg
|
||||||
enableBackground: "new 0 0 1024 1024",
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
}}
|
viewBox="0 0 1024 1024"
|
||||||
xmlSpace="preserve"
|
style={{
|
||||||
className="w-full h-full"
|
enableBackground: "new 0 0 1024 1024",
|
||||||
>
|
}}
|
||||||
<style>
|
xmlSpace="preserve"
|
||||||
{
|
className="w-full h-full"
|
||||||
".st0{display:none}.st3{stroke-linecap:square}.st3,.st4{fill:none;stroke:#fff;stroke-miterlimit:10}.st6{display:inline;fill:#333}.st7{fill:#fff}"
|
>
|
||||||
}
|
<style>
|
||||||
</style>
|
{
|
||||||
<g id="Icon">
|
".st0{display:none}.st3{stroke-linecap:square}.st3,.st4{fill:none;stroke:#fff;stroke-miterlimit:10}.st6{display:inline;fill:#333}.st7{fill:#fff}"
|
||||||
<path
|
}
|
||||||
d="M771.9 191c27.7 0 50.1 26.5 50.1 59.3v186.4l-100.2.3V250.3c0-32.8 22.4-59.3 50.1-59.3z"
|
</style>
|
||||||
style={{
|
<g id="Icon">
|
||||||
fill: "rgba(var(--color-logo-start))",
|
<path
|
||||||
}}
|
d="M771.9 191c27.7 0 50.1 26.5 50.1 59.3v186.4l-100.2.3V250.3c0-32.8 22.4-59.3 50.1-59.3z"
|
||||||
/>
|
|
||||||
<linearGradient
|
|
||||||
id="homepage_logo_gradient"
|
|
||||||
gradientUnits="userSpaceOnUse"
|
|
||||||
x1={200.746}
|
|
||||||
y1={225.015}
|
|
||||||
x2={764.986}
|
|
||||||
y2={789.255}
|
|
||||||
>
|
|
||||||
<stop
|
|
||||||
offset={0}
|
|
||||||
style={{
|
style={{
|
||||||
stopColor: "rgba(var(--color-logo-start))",
|
fill: "rgba(var(--color-logo-start))",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<stop
|
<linearGradient
|
||||||
offset={1}
|
id="homepage_logo_gradient"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1={200.746}
|
||||||
|
y1={225.015}
|
||||||
|
x2={764.986}
|
||||||
|
y2={789.255}
|
||||||
|
>
|
||||||
|
<stop
|
||||||
|
offset={0}
|
||||||
|
style={{
|
||||||
|
stopColor: "rgba(var(--color-logo-start))",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<stop
|
||||||
|
offset={1}
|
||||||
|
style={{
|
||||||
|
stopColor: "rgba(var(--color-logo-stop))",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</linearGradient>
|
||||||
|
<path
|
||||||
|
d="M721.8 250.3c0-32.7 22.4-59.3 50.1-59.3H253.1c-27.7 0-50.1 26.5-50.1 59.3v582.2l90.2-75.7-.1-130.3H375v61.8l88-73.8 258.8 217.9V250.6"
|
||||||
style={{
|
style={{
|
||||||
stopColor: "rgba(var(--color-logo-stop))",
|
fill: "url(#homepage_logo_gradient)",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</linearGradient>
|
</g>
|
||||||
<path
|
</svg>
|
||||||
d="M721.8 250.3c0-32.7 22.4-59.3 50.1-59.3H253.1c-27.7 0-50.1 26.5-50.1 59.3v582.2l90.2-75.7-.1-130.3H375v61.8l88-73.8 258.8 217.9V250.6"
|
}
|
||||||
style={{
|
|
||||||
fill: "url(#homepage_logo_gradient)",
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user