fix: wrong icons on dashboard
This commit is contained in:
		| @@ -888,6 +888,7 @@ | |||||||
| 		> | 		> | ||||||
| 			{#if filtered.services.length > 0} | 			{#if filtered.services.length > 0} | ||||||
| 				{#each filtered.services as service} | 				{#each filtered.services as service} | ||||||
|  | 					{#key service.id} | ||||||
| 						<a class="no-underline mb-5" href={`/services/${service.id}`}> | 						<a class="no-underline mb-5" href={`/services/${service.id}`}> | ||||||
| 							<div | 							<div | ||||||
| 								class="w-full rounded p-5 bg-coolgray-200 hover:bg-pink-600 indicator duration-150" | 								class="w-full rounded p-5 bg-coolgray-200 hover:bg-pink-600 indicator duration-150" | ||||||
| @@ -951,6 +952,7 @@ | |||||||
| 								</div> | 								</div> | ||||||
| 							</div> | 							</div> | ||||||
| 						</a> | 						</a> | ||||||
|  | 					{/key} | ||||||
| 				{/each} | 				{/each} | ||||||
| 			{:else} | 			{:else} | ||||||
| 				<h1 class="">Nothing here.</h1> | 				<h1 class="">Nothing here.</h1> | ||||||
| @@ -967,8 +969,11 @@ | |||||||
| 			class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4" | 			class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4" | ||||||
| 		> | 		> | ||||||
| 			{#each filtered.otherServices as service} | 			{#each filtered.otherServices as service} | ||||||
|  | 				{#key service.id} | ||||||
| 					<a class="no-underline mb-5" href={`/services/${service.id}`}> | 					<a class="no-underline mb-5" href={`/services/${service.id}`}> | ||||||
| 					<div class="w-full rounded p-5 bg-coolgray-200 hover:bg-pink-600 indicator duration-150"> | 						<div | ||||||
|  | 							class="w-full rounded p-5 bg-coolgray-200 hover:bg-pink-600 indicator duration-150" | ||||||
|  | 						> | ||||||
| 							{#await getStatus(service)} | 							{#await getStatus(service)} | ||||||
| 								<span class="indicator-item badge bg-yellow-300 badge-sm" /> | 								<span class="indicator-item badge bg-yellow-300 badge-sm" /> | ||||||
| 							{:then} | 							{:then} | ||||||
| @@ -1028,6 +1033,7 @@ | |||||||
| 							</div> | 							</div> | ||||||
| 						</div> | 						</div> | ||||||
| 					</a> | 					</a> | ||||||
|  | 				{/key} | ||||||
| 			{/each} | 			{/each} | ||||||
| 		</div> | 		</div> | ||||||
| 	{/if} | 	{/if} | ||||||
| @@ -1054,6 +1060,7 @@ | |||||||
| 		> | 		> | ||||||
| 			{#if filtered.databases.length > 0} | 			{#if filtered.databases.length > 0} | ||||||
| 				{#each filtered.databases as database} | 				{#each filtered.databases as database} | ||||||
|  | 					{#key database.id} | ||||||
| 						<a class="no-underline mb-5" href={`/databases/${database.id}`}> | 						<a class="no-underline mb-5" href={`/databases/${database.id}`}> | ||||||
| 							<div | 							<div | ||||||
| 								class="w-full rounded p-5 bg-coolgray-200 hover:bg-databases indicator duration-150" | 								class="w-full rounded p-5 bg-coolgray-200 hover:bg-databases indicator duration-150" | ||||||
| @@ -1117,6 +1124,7 @@ | |||||||
| 								</div> | 								</div> | ||||||
| 							</div> | 							</div> | ||||||
| 						</a> | 						</a> | ||||||
|  | 					{/key} | ||||||
| 				{/each} | 				{/each} | ||||||
| 			{:else} | 			{:else} | ||||||
| 				<h1 class="">Nothing here.</h1> | 				<h1 class="">Nothing here.</h1> | ||||||
| @@ -1133,8 +1141,11 @@ | |||||||
| 			class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4" | 			class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4" | ||||||
| 		> | 		> | ||||||
| 			{#each filtered.otherDatabases as database} | 			{#each filtered.otherDatabases as database} | ||||||
|  | 				{#key database.id} | ||||||
| 					<a class="no-underline mb-5" href={`/databases/${database.id}`}> | 					<a class="no-underline mb-5" href={`/databases/${database.id}`}> | ||||||
| 					<div class="w-full rounded p-5 bg-coolgray-200 hover:bg-databases indicator duration-150"> | 						<div | ||||||
|  | 							class="w-full rounded p-5 bg-coolgray-200 hover:bg-databases indicator duration-150" | ||||||
|  | 						> | ||||||
| 							{#await getStatus(database)} | 							{#await getStatus(database)} | ||||||
| 								<span class="indicator-item badge bg-yellow-300 badge-sm" /> | 								<span class="indicator-item badge bg-yellow-300 badge-sm" /> | ||||||
| 							{:then} | 							{:then} | ||||||
| @@ -1194,6 +1205,7 @@ | |||||||
| 							</div> | 							</div> | ||||||
| 						</div> | 						</div> | ||||||
| 					</a> | 					</a> | ||||||
|  | 				{/key} | ||||||
| 			{/each} | 			{/each} | ||||||
| 		</div> | 		</div> | ||||||
| 	{/if} | 	{/if} | ||||||
| @@ -1209,8 +1221,11 @@ | |||||||
| 		> | 		> | ||||||
| 			{#if filtered.gitSources.length > 0} | 			{#if filtered.gitSources.length > 0} | ||||||
| 				{#each filtered.gitSources as source} | 				{#each filtered.gitSources as source} | ||||||
|  | 					{#key source.id} | ||||||
| 						<a class="no-underline mb-5" href={`/sources/${source.id}`}> | 						<a class="no-underline mb-5" href={`/sources/${source.id}`}> | ||||||
| 						<div class="w-full rounded p-5 bg-coolgray-200 hover:bg-sources indicator duration-150"> | 							<div | ||||||
|  | 								class="w-full rounded p-5 bg-coolgray-200 hover:bg-sources indicator duration-150" | ||||||
|  | 							> | ||||||
| 								<div class="w-full flex flex-row"> | 								<div class="w-full flex flex-row"> | ||||||
| 									<div class="absolute top-0 left-0 -m-5 flex"> | 									<div class="absolute top-0 left-0 -m-5 flex"> | ||||||
| 										{#if source?.type === 'gitlab'} | 										{#if source?.type === 'gitlab'} | ||||||
| @@ -1218,7 +1233,10 @@ | |||||||
| 												<path | 												<path | ||||||
| 													fill="#FC6D26" | 													fill="#FC6D26" | ||||||
| 													d="M126.615 72.31l-7.034-21.647L105.64 7.76c-.716-2.206-3.84-2.206-4.556 0l-13.94 42.903H40.856L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664 1.385 72.31a4.792 4.792 0 001.74 5.358L64 121.894l60.874-44.227a4.793 4.793 0 001.74-5.357" | 													d="M126.615 72.31l-7.034-21.647L105.64 7.76c-.716-2.206-3.84-2.206-4.556 0l-13.94 42.903H40.856L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664 1.385 72.31a4.792 4.792 0 001.74 5.358L64 121.894l60.874-44.227a4.793 4.793 0 001.74-5.357" | ||||||
| 											/><path fill="#E24329" d="M64 121.894l23.144-71.23H40.856L64 121.893z" /><path | 												/><path | ||||||
|  | 													fill="#E24329" | ||||||
|  | 													d="M64 121.894l23.144-71.23H40.856L64 121.893z" | ||||||
|  | 												/><path | ||||||
| 													fill="#FC6D26" | 													fill="#FC6D26" | ||||||
| 													d="M64 121.894l-23.144-71.23H8.42L64 121.893z" | 													d="M64 121.894l-23.144-71.23H8.42L64 121.893z" | ||||||
| 												/><path | 												/><path | ||||||
| @@ -1227,7 +1245,10 @@ | |||||||
| 												/><path | 												/><path | ||||||
| 													fill="#E24329" | 													fill="#E24329" | ||||||
| 													d="M8.42 50.663h32.436L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664z" | 													d="M8.42 50.663h32.436L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664z" | ||||||
| 											/><path fill="#FC6D26" d="M64 121.894l23.144-71.23h32.437L64 121.893z" /><path | 												/><path | ||||||
|  | 													fill="#FC6D26" | ||||||
|  | 													d="M64 121.894l23.144-71.23h32.437L64 121.893z" | ||||||
|  | 												/><path | ||||||
| 													fill="#FCA326" | 													fill="#FCA326" | ||||||
| 													d="M119.58 50.663l7.035 21.647a4.79 4.79 0 01-1.74 5.357L64 121.894l55.58-71.23z" | 													d="M119.58 50.663l7.035 21.647a4.79 4.79 0 01-1.74 5.357L64 121.894l55.58-71.23z" | ||||||
| 												/><path | 												/><path | ||||||
| @@ -1282,6 +1303,7 @@ | |||||||
| 								</div> | 								</div> | ||||||
| 							</div> | 							</div> | ||||||
| 						</a> | 						</a> | ||||||
|  | 					{/key} | ||||||
| 				{/each} | 				{/each} | ||||||
| 			{:else} | 			{:else} | ||||||
| 				<h1 class="">Nothing here.</h1> | 				<h1 class="">Nothing here.</h1> | ||||||
| @@ -1298,6 +1320,7 @@ | |||||||
| 			class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4" | 			class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4" | ||||||
| 		> | 		> | ||||||
| 			{#each filtered.otherGitSources as source} | 			{#each filtered.otherGitSources as source} | ||||||
|  | 				{#key source.id} | ||||||
| 					<a class="no-underline mb-5" href={`/sources/${source.id}`}> | 					<a class="no-underline mb-5" href={`/sources/${source.id}`}> | ||||||
| 						<div class="w-full rounded p-5 bg-coolgray-200 hover:bg-sources indicator duration-150"> | 						<div class="w-full rounded p-5 bg-coolgray-200 hover:bg-sources indicator duration-150"> | ||||||
| 							<div class="w-full flex flex-row"> | 							<div class="w-full flex flex-row"> | ||||||
| @@ -1370,6 +1393,7 @@ | |||||||
| 							</div> | 							</div> | ||||||
| 						</div> | 						</div> | ||||||
| 					</a> | 					</a> | ||||||
|  | 				{/key} | ||||||
| 			{/each} | 			{/each} | ||||||
| 		</div> | 		</div> | ||||||
| 	{/if} | 	{/if} | ||||||
| @@ -1385,6 +1409,7 @@ | |||||||
| 		> | 		> | ||||||
| 			{#if filtered.destinations.length > 0} | 			{#if filtered.destinations.length > 0} | ||||||
| 				{#each filtered.destinations as destination} | 				{#each filtered.destinations as destination} | ||||||
|  | 					{#key destination.id} | ||||||
| 						<a class="no-underline mb-5" href={`/destinations/${destination.id}`}> | 						<a class="no-underline mb-5" href={`/destinations/${destination.id}`}> | ||||||
| 							<div | 							<div | ||||||
| 								class="w-full rounded p-5 bg-coolgray-200 hover:bg-destinations indicator duration-150" | 								class="w-full rounded p-5 bg-coolgray-200 hover:bg-destinations indicator duration-150" | ||||||
| @@ -1450,6 +1475,7 @@ | |||||||
| 								</div> | 								</div> | ||||||
| 							</div> | 							</div> | ||||||
| 						</a> | 						</a> | ||||||
|  | 					{/key} | ||||||
| 				{/each} | 				{/each} | ||||||
| 			{:else} | 			{:else} | ||||||
| 				<h1 class="">Nothing here.</h1> | 				<h1 class="">Nothing here.</h1> | ||||||
| @@ -1466,6 +1492,7 @@ | |||||||
| 			class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4" | 			class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4" | ||||||
| 		> | 		> | ||||||
| 			{#each filtered.otherDestinations as destination} | 			{#each filtered.otherDestinations as destination} | ||||||
|  | 				{#key destination.id} | ||||||
| 					<a class="no-underline mb-5" href={`/destinations/${destination.id}`}> | 					<a class="no-underline mb-5" href={`/destinations/${destination.id}`}> | ||||||
| 						<div | 						<div | ||||||
| 							class="w-full rounded p-5 bg-coolgray-200 hover:bg-destinations indicator duration-150" | 							class="w-full rounded p-5 bg-coolgray-200 hover:bg-destinations indicator duration-150" | ||||||
| @@ -1531,6 +1558,7 @@ | |||||||
| 							</div> | 							</div> | ||||||
| 						</div> | 						</div> | ||||||
| 					</a> | 					</a> | ||||||
|  | 				{/key} | ||||||
| 			{/each} | 			{/each} | ||||||
| 		</div> | 		</div> | ||||||
| 	{/if} | 	{/if} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Andras Bacsai
					Andras Bacsai