fix: remove prefetches

This commit is contained in:
Andras Bacsai
2023-01-10 11:31:44 +01:00
parent d09b4885fe
commit 55a35c6bec
6 changed files with 3 additions and 18 deletions

View File

@@ -183,7 +183,6 @@
<div class="flex flex-col space-y-2 py-2" class:mt-2={$appSession.whiteLabeled}> <div class="flex flex-col space-y-2 py-2" class:mt-2={$appSession.whiteLabeled}>
<a <a
id="dashboard" id="dashboard"
sveltekit:prefetch
href="/" href="/"
class="icons hover:text-pink-500" class="icons hover:text-pink-500"
class:text-pink-500={$page.url.pathname === '/'} class:text-pink-500={$page.url.pathname === '/'}
@@ -210,7 +209,6 @@
{#if $appSession.teamId === '0'} {#if $appSession.teamId === '0'}
<a <a
id="servers" id="servers"
sveltekit:prefetch
href="/servers" href="/servers"
class="icons hover:text-sky-500" class="icons hover:text-sky-500"
class:text-sky-500={$page.url.pathname === '/servers'} class:text-sky-500={$page.url.pathname === '/servers'}
@@ -243,7 +241,6 @@
<div class="flex flex-col space-y-2 py-2"> <div class="flex flex-col space-y-2 py-2">
<a <a
id="iam" id="iam"
sveltekit:prefetch
href={$appSession.pendingInvitations.length > 0 ? '/iam/pending' : '/iam'} href={$appSession.pendingInvitations.length > 0 ? '/iam/pending' : '/iam'}
class="icons hover:text-iam indicator" class="icons hover:text-iam indicator"
class:text-iam={$page.url.pathname.startsWith('/iam')} class:text-iam={$page.url.pathname.startsWith('/iam')}
@@ -272,7 +269,6 @@
</a> </a>
<a <a
id="settings" id="settings"
sveltekit:prefetch
href={$appSession.teamId === '0' ? '/settings/coolify' : '/settings/docker'} href={$appSession.teamId === '0' ? '/settings/coolify' : '/settings/docker'}
class="icons hover:text-settings" class="icons hover:text-settings"
class:text-settings={$page.url.pathname.startsWith('/settings')} class:text-settings={$page.url.pathname.startsWith('/settings')}
@@ -297,7 +293,6 @@
</a> </a>
<a <a
id="documentation" id="documentation"
sveltekit:prefetch
href="https://docs.coollabs.io/coolify/" href="https://docs.coollabs.io/coolify/"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
@@ -393,7 +388,6 @@
<li> <li>
<a <a
class="no-underline icons hover:text-white hover:bg-pink-500" class="no-underline icons hover:text-white hover:bg-pink-500"
sveltekit:prefetch
href="/" href="/"
class:bg-pink-500={$page.url.pathname === '/'} class:bg-pink-500={$page.url.pathname === '/'}
on:click={closeDrawer} on:click={closeDrawer}
@@ -422,7 +416,6 @@
<a <a
id="servers" id="servers"
class="no-underline icons hover:text-white hover:bg-sky-500" class="no-underline icons hover:text-white hover:bg-sky-500"
sveltekit:prefetch
href="/servers" href="/servers"
class:bg-sky-500={$page.url.pathname.startsWith('/servers')} class:bg-sky-500={$page.url.pathname.startsWith('/servers')}
on:click={closeDrawer} on:click={closeDrawer}

View File

@@ -72,7 +72,6 @@
<div class="flex justify-center"> <div class="flex justify-center">
<a <a
href={`/destinations/new?from=/applications/${id}/configuration/destination`} href={`/destinations/new?from=/applications/${id}/configuration/destination`}
sveltekit:prefetch
class="add-icon bg-sky-600 hover:bg-sky-500" class="add-icon bg-sky-600 hover:bg-sky-500"
> >
<svg <svg

View File

@@ -176,7 +176,6 @@
id="exited" id="exited"
href={!$status.database.isRunning ? `/databases/${id}/logs` : null} href={!$status.database.isRunning ? `/databases/${id}/logs` : null}
class="icons bg-transparent text-red-500 tooltip-error" class="icons bg-transparent text-red-500 tooltip-error"
sveltekit:prefetch
> >
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
@@ -271,7 +270,6 @@
<a <a
id="configuration" id="configuration"
href="/databases/{id}" href="/databases/{id}"
sveltekit:prefetch
class="hover:text-yellow-500 rounded" class="hover:text-yellow-500 rounded"
class:text-yellow-500={$page.url.pathname === `/databases/${id}`} class:text-yellow-500={$page.url.pathname === `/databases/${id}`}
class:bg-coolgray-500={$page.url.pathname === `/databases/${id}`} class:bg-coolgray-500={$page.url.pathname === `/databases/${id}`}
@@ -305,7 +303,6 @@
<a <a
id="databaselogs" id="databaselogs"
href={$status.database.isRunning ? `/databases/${id}/logs` : null} href={$status.database.isRunning ? `/databases/${id}/logs` : null}
sveltekit:prefetch
class="hover:text-pink-500 rounded" class="hover:text-pink-500 rounded"
class:text-pink-500={$page.url.pathname === `/databases/${id}/logs`} class:text-pink-500={$page.url.pathname === `/databases/${id}/logs`}
class:bg-coolgray-500={$page.url.pathname === `/databases/${id}/logs`} class:bg-coolgray-500={$page.url.pathname === `/databases/${id}/logs`}

View File

@@ -60,7 +60,7 @@
{$t('application.configuration.no_configurable_destination')} {$t('application.configuration.no_configurable_destination')}
</div> </div>
<div class="flex justify-center"> <div class="flex justify-center">
<a href="/destinations/new" sveltekit:prefetch class="add-icon bg-sky-600 hover:bg-sky-500"> <a href="/destinations/new" class="add-icon bg-sky-600 hover:bg-sky-500">
<svg <svg
class="w-6" class="w-6"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"

View File

@@ -57,11 +57,7 @@
<div class="flex-col"> <div class="flex-col">
<div class="pb-2 text-center font-bold">No SSH key found</div> <div class="pb-2 text-center font-bold">No SSH key found</div>
<div class="flex justify-center"> <div class="flex justify-center">
<a <a href="/settings/ssh" class="add-icon bg-sky-600 hover:bg-sky-500">
href="/settings/ssh"
sveltekit:prefetch
class="add-icon bg-sky-600 hover:bg-sky-500"
>
<svg <svg
class="w-6" class="w-6"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"

View File

@@ -59,7 +59,7 @@
{$t('application.configuration.no_configurable_destination')} {$t('application.configuration.no_configurable_destination')}
</div> </div>
<div class="flex justify-center"> <div class="flex justify-center">
<a href="/new/destination" sveltekit:prefetch class="add-icon bg-sky-600 hover:bg-sky-500"> <a href="/new/destination" class="add-icon bg-sky-600 hover:bg-sky-500">
<svg <svg
class="w-6" class="w-6"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"