Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: allow typing in global search while data loads

Andras Bacsai2ce3052378f1
diff --git a/resources/views/livewire/global-search.blade.php b/resources/views/livewire/global-search.blade.php
index d8cbcf2d8a..3df03ea0dc 100644
--- a/resources/views/livewire/global-search.blade.php
+++ b/resources/views/livewire/global-search.blade.php
@@ -14,6 +14,11 @@
return [];
}
+ // Don't execute search if data is still loading
+ if (this.isLoadingInitialData) {
+ return [];
+ }
+
const query = this.searchQuery.toLowerCase().trim();
const results = this.allSearchableItems.filter(item => {
@@ -28,6 +33,12 @@
if (!this.searchQuery || this.searchQuery.length < 1) {
return [];
}
+
+ // Don't execute search if data is still loading
+ if (this.isLoadingInitialData) {
+ return [];
+ }
+
const query = this.searchQuery.toLowerCase().trim();
if (query === 'new') {
@@ -239,7 +250,8 @@
class="fixed top-0 left-0 z-99 flex items-start justify-center w-screen h-screen pt-[10vh]">
<div @click="closeModal()" class="absolute inset-0 w-full h-full bg-black/50 backdrop-blur-sm">
</div>
- <div x-show="modalOpen" x-trap.inert="modalOpen" x-init="$watch('modalOpen', value => { document.body.style.overflow = value ? 'hidden' : '' })"
+ <div x-show="modalOpen" x-trap.inert="modalOpen"
+ x-init="$watch('modalOpen', value => { document.body.style.overflow = value ? 'hidden' : '' })"
x-transition:enter="ease-out duration-200" x-transition:enter-start="opacity-0 -translate-y-4 scale-95"
x-transition:enter-end="opacity-100 translate-y-0 scale-100" x-transition:leave="ease-in duration-150"
x-transition:leave-start="opacity-100 translate-y-0 scale-100"
@@ -249,24 +261,24 @@
<!-- Search input (always visible) -->
<div class="relative">
<div class="absolute inset-y-0 left-4 flex items-center pointer-events-none">
- <svg x-show="!isLoadingInitialData" class="w-5 h-5 text-neutral-400" xmlns="http://www.w3.org/2000/svg" fill="none"
- viewBox="0 0 24 24" stroke="currentColor">
+ <svg x-show="!isLoadingInitialData" class="w-5 h-5 text-neutral-400"
+ xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
</svg>
<svg x-show="isLoadingInitialData" x-cloak class="animate-spin h-5 w-5 text-warning"
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
- <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor"
- stroke-width="4"></circle>
+ <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4">
+ </circle>
<path class="opacity-75" fill="currentColor"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">
</path>
</svg>
</div>
<input type="text" x-model="searchQuery"
- placeholder="Search resources (type new for create things)..." x-ref="searchInput"
- x-init="$watch('modalOpen', value => { if (value) setTimeout(() => $refs.searchInput.focus(), 100) })" :disabled="isLoadingInitialData"
- class="w-full pl-12 pr-32 py-4 text-base bg-white dark:bg-coolgray-100 border-none rounded-lg shadow-xl ring-1 ring-neutral-200 dark:ring-coolgray-300 dark:text-white placeholder-neutral-400 dark:placeholder-neutral-500 disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-coollabs dark:focus-visible:ring-warning focus-visible:ring-offset-2 dark:focus-visible:ring-offset-base" />
+ placeholder="Search resources, paths, everything (type new for create)..." x-ref="searchInput"
+ x-init="$watch('modalOpen', value => { if (value) setTimeout(() => $refs.searchInput.focus(), 100) })"
+ class="w-full pl-12 pr-32 py-4 text-base bg-white dark:bg-coolgray-100 border-none rounded-lg shadow-xl ring-1 ring-neutral-200 dark:ring-coolgray-300 dark:text-white placeholder-neutral-400 dark:placeholder-neutral-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-coollabs dark:focus-visible:ring-warning focus-visible:ring-offset-2 dark:focus-visible:ring-offset-base" />
<div class="absolute inset-y-0 right-2 flex items-center gap-2 pointer-events-none">
<span class="text-xs font-medium text-neutral-400 dark:text-neutral-500">
/ or ⌘K to focus
@@ -311,8 +323,8 @@
class="text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round"
- stroke-width="2" d="M15 19l-7-7 7-7" />
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M15 19l-7-7 7-7" />
</svg>
</button>
<div>
@@ -327,13 +339,11 @@
</div>
</div>
@if ($loadingServers)
- <div
- class="flex items-center gap-3 p-3 bg-neutral-50 dark:bg-coolgray-200 rounded-lg">
- <svg class="animate-spin h-5 w-5 text-yellow-500"
- xmlns="http://www.w3.org/2000/svg" fill="none"
- viewBox="0 0 24 24">
- <circle class="opacity-25" cx="12" cy="12" r="10"
- stroke="currentColor" stroke-width="4"></circle>
+ <div class="flex items-center gap-3 p-3 bg-neutral-50 dark:bg-coolgray-200 rounded-lg">
+ <svg class="animate-spin h-5 w-5 text-yellow-500" xmlns="http://www.w3.org/2000/svg"
+ fill="none" viewBox="0 0 24 24">
+ <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor"
+ stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">
</path>
@@ -343,8 +353,7 @@
</div>
@elseif (count($availableServers) > 0)
@foreach ($availableServers as $index => $server)
- <button type="button"
- wire:click="selectServer({{ $server['id'] }}, true)"
+ <button type="button" wire:click="selectServer({{ $server['id'] }}, true)"
class="search-result-item w-full text-left block px-4 py-3 min-h-[4rem] hover:bg-yellow-50 dark:hover:bg-yellow-900/20 transition-colors focus:outline-none focus:bg-yellow-100 dark:focus:bg-yellow-900/30 border-b border-neutral-100 dark:border-coolgray-300 last:border-0">
<div class="flex items-center justify-between gap-3 min-h-[2.5rem]">
<div class="flex-1 min-w-0">
@@ -352,8 +361,7 @@
{{ $server['name'] }}
</div>
@if (!empty($server['description']))
- <div
- class="text-xs text-neutral-500 dark:text-neutral-400">
+ <div class="text-xs text-neutral-500 dark:text-neutral-400">
{{ $server['description'] }}
</div>
@else
@@ -363,10 +371,10 @@
@endif
</div>
<svg xmlns="http://www.w3.org/2000/svg"
- class="shrink-0 h-5 w-5 text-yellow-500 dark:text-yellow-400"
- fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round"
- stroke-width="2" d="M9 5l7 7-7 7" />
+ class="shrink-0 h-5 w-5 text-yellow-500 dark:text-yellow-400" fill="none"
+ viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M9 5l7 7-7 7" />
</svg>
</div>
</button>
@@ -388,10 +396,10 @@
<button type="button"
@click="$wire.set('searchQuery', ''); setTimeout(() => $refs.searchInput.focus(), 100)"
class="text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white">
- <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6"
- fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round"
- stroke-width="2" d="M15 19l-7-7 7-7" />
+ <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none"
+ viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M15 19l-7-7 7-7" />
</svg>
</button>
<div>
@@ -406,13 +414,11 @@
</div>
</div>
@if ($loadingDestinations)
- <div
- class="flex items-center gap-3 p-3 bg-neutral-50 dark:bg-coolgray-200 rounded-lg">
- <svg class="animate-spin h-5 w-5 text-yellow-500"
- xmlns="http://www.w3.org/2000/svg" fill="none"
- viewBox="0 0 24 24">
- <circle class="opacity-25" cx="12" cy="12" r="10"
- stroke="currentColor" stroke-width="4"></circle>
+ <div class="flex items-center gap-3 p-3 bg-neutral-50 dark:bg-coolgray-200 rounded-lg">
+ <svg class="animate-spin h-5 w-5 text-yellow-500" xmlns="http://www.w3.org/2000/svg"
+ fill="none" viewBox="0 0 24 24">
+ <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor"
+ stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">
</path>
@@ -422,24 +428,22 @@
</div>
@elseif (count($availableDestinations) > 0)
@foreach ($availableDestinations as $index => $destination)
- <button type="button"
- wire:click="selectDestination('{{ $destination['uuid'] }}', true)"
+ <button type="button" wire:click="selectDestination('{{ $destination['uuid'] }}', true)"
class="search-result-item w-full text-left block px-4 py-3 min-h-[4rem] hover:bg-yellow-50 dark:hover:bg-yellow-900/20 transition-colors focus:outline-none focus:bg-yellow-100 dark:focus:bg-yellow-900/30 border-b border-neutral-100 dark:border-coolgray-300 last:border-0">
<div class="flex items-center justify-between gap-3 min-h-[2.5rem]">
<div class="flex-1 min-w-0">
<div class="font-medium text-neutral-900 dark:text-white">
{{ $destination['name'] }}
</div>
- <div
- class="text-xs text-neutral-500 dark:text-neutral-400">
+ <div class="text-xs text-neutral-500 dark:text-neutral-400">
Network: {{ $destination['network'] }}
</div>
</div>
<svg xmlns="http://www.w3.org/2000/svg"
- class="shrink-0 h-5 w-5 text-yellow-500 dark:text-yellow-400"
- fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round"
- stroke-width="2" d="M9 5l7 7-7 7" />
+ class="shrink-0 h-5 w-5 text-yellow-500 dark:text-yellow-400" fill="none"
+ viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M9 5l7 7-7 7" />
</svg>
</div>
</button>
@@ -461,10 +465,10 @@
<button type="button"
@click="$wire.set('searchQuery', ''); setTimeout(() => $refs.searchInput.focus(), 100)"
class="text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white">
- <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6"
- fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round"
- stroke-width="2" d="M15 19l-7-7 7-7" />
+ <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none"
+ viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M15 19l-7-7 7-7" />
</svg>
</button>
<div>
@@ -479,13 +483,11 @@
</div>
</div>
@if ($loadingProjects)
- <div
- class="flex items-center gap-3 p-3 bg-neutral-50 dark:bg-coolgray-200 rounded-lg">
- <svg class="animate-spin h-5 w-5 text-yellow-500"
- xmlns="http://www.w3.org/2000/svg" fill="none"
- viewBox="0 0 24 24">
- <circle class="opacity-25" cx="12" cy="12" r="10"
- stroke="currentColor" stroke-width="4"></circle>
+ <div class="flex items-center gap-3 p-3 bg-neutral-50 dark:bg-coolgray-200 rounded-lg">
+ <svg class="animate-spin h-5 w-5 text-yellow-500" xmlns="http://www.w3.org/2000/svg"
+ fill="none" viewBox="0 0 24 24">
+ <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor"
+ stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">
</path>
@@ -495,8 +497,7 @@
</div>
@elseif (count($availableProjects) > 0)
@foreach ($availableProjects as $index => $project)
- <button type="button"
- wire:click="selectProject('{{ $project['uuid'] }}', true)"
+ <button type="button" wire:click="selectProject('{{ $project['uuid'] }}', true)"
class="search-result-item w-full text-left block px-4 py-3 min-h-[4rem] hover:bg-yellow-50 dark:hover:bg-yellow-900/20 transition-colors focus:outline-none focus:bg-yellow-100 dark:focus:bg-yellow-900/30 border-b border-neutral-100 dark:border-coolgray-300 last:border-0">
<div class="flex items-center justify-between gap-3 min-h-[2.5rem]">
<div class="flex-1 min-w-0">
@@ -504,8 +505,7 @@
{{ $project['name'] }}
</div>
@if (!empty($project['description']))
- <div
- class="text-xs text-neutral-500 dark:text-neutral-400">
+ <div class="text-xs text-neutral-500 dark:text-neutral-400">
{{ $project['description'] }}
</div>
@else
@@ -515,10 +515,10 @@
@endif
</div>
<svg xmlns="http://www.w3.org/2000/svg"
- class="shrink-0 h-5 w-5 text-yellow-500 dark:text-yellow-400"
- fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round"
- stroke-width="2" d="M9 5l7 7-7 7" />
+ class="shrink-0 h-5 w-5 text-yellow-500 dark:text-yellow-400" fill="none"
+ viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M9 5l7 7-7 7" />
</svg>
</div>
</button>
@@ -540,10 +540,10 @@
<button type="button"
@click="$wire.set('searchQuery', ''); setTimeout(() => $refs.searchInput.focus(), 100)"
class="text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white">
- <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6"
- fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round"
- stroke-width="2" d="M15 19l-7-7 7-7" />
+ <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none"
+ viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M15 19l-7-7 7-7" />
</svg>
</button>
<div>
@@ -558,13 +558,11 @@
</div>
</div>
@if ($loadingEnvironments)
- <div
- class="flex items-center gap-3 p-3 bg-neutral-50 dark:bg-coolgray-200 rounded-lg">
- <svg class="animate-spin h-5 w-5 text-yellow-500"
- xmlns="http://www.w3.org/2000/svg" fill="none"
- viewBox="0 0 24 24">
- <circle class="opacity-25" cx="12" cy="12" r="10"
- stroke="currentColor" stroke-width="4"></circle>
+ <div class="flex items-center gap-3 p-3 bg-neutral-50 dark:bg-coolgray-200 rounded-lg">
+ <svg class="animate-spin h-5 w-5 text-yellow-500" xmlns="http://www.w3.org/2000/svg"
+ fill="none" viewBox="0 0 24 24">
+ <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor"
+ stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">
</path>
@@ -574,8 +572,7 @@
</div>
@elseif (count($availableEnvironments) > 0)
@foreach ($availableEnvironments as $index => $environment)
- <button type="button"
- wire:click="selectEnvironment('{{ $environment['uuid'] }}', true)"
+ <button type="button" wire:click="selectEnvironment('{{ $environment['uuid'] }}', true)"
class="search-result-item w-full text-left block px-4 py-3 min-h-[4rem] hover:bg-yellow-50 dark:hover:bg-yellow-900/20 transition-colors focus:outline-none focus:bg-yellow-100 dark:focus:bg-yellow-900/30 border-b border-neutral-100 dark:border-coolgray-300 last:border-0">
<div class="flex items-center justify-between gap-3 min-h-[2.5rem]">
<div class="flex-1 min-w-0">
@@ -583,8 +580,7 @@
{{ $environment['name'] }}
</div>
@if (!empty($environment['description']))
- <div
- class="text-xs text-neutral-500 dark:text-neutral-400">
+ <div class="text-xs text-neutral-500 dark:text-neutral-400">
{{ $environment['description'] }}
</div>
@else
@@ -594,10 +590,10 @@
@endif
</div>
<svg xmlns="http://www.w3.org/2000/svg"
- class="shrink-0 h-5 w-5 text-yellow-500 dark:text-yellow-400"
- fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round"
- stroke-width="2" d="M9 5l7 7-7 7" />
+ class="shrink-0 h-5 w-5 text-yellow-500 dark:text-yellow-400" fill="none"
+ viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M9 5l7 7-7 7" />
</svg>
</div>
</button>
@@ -636,8 +632,7 @@
<div class="flex items-center justify-between gap-3">
<div class="flex-1 min-w-0">
<div class="flex items-center gap-2 mb-1">
- <span
- class="font-medium text-neutral-900 dark:text-white truncate">
+ <span class="font-medium text-neutral-900 dark:text-white truncate">
{{ $result['name'] }}
</span>
<span
@@ -658,15 +653,13 @@
</span>
</div>
@if (!empty($result['project']) && !empty($result['environment']))
- <div
- class="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ <div class="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
{{ $result['project'] }} /
{{ $result['environment'] }}
</div>
@endif
@if (!empty($result['description']))
- <div
- class="text-sm text-neutral-600 dark:text-neutral-400">
+ <div class="text-sm text-neutral-600 dark:text-neutral-400">
{{ Str::limit($result['description'], 80) }}
</div>
@endif
@@ -674,8 +667,8 @@
<svg xmlns="http://www.w3.org/2000/svg"
class="shrink-0 h-5 w-5 text-neutral-300 dark:text-neutral-600 self-center"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round"
- stroke-width="2" d="M9 5l7 7-7 7" />
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M9 5l7 7-7 7" />
</svg>
</div>
</a>
@@ -705,16 +698,15 @@
<div
class="flex-shrink-0 w-10 h-10 rounded-lg bg-yellow-100 dark:bg-yellow-900/40 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg"
- class="h-5 w-5 text-yellow-600 dark:text-yellow-400"
- fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round"
- stroke-width="2" d="M12 4v16m8-8H4" />
+ class="h-5 w-5 text-yellow-600 dark:text-yellow-400" fill="none"
+ viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M12 4v16m8-8H4" />
</svg>
</div>
<div class="flex-1 min-w-0">
<div class="flex items-center gap-2 mb-1">
- <div
- class="font-medium text-neutral-900 dark:text-white truncate">
+ <div class="font-medium text-neutral-900 dark:text-white truncate">
{{ $item['name'] }}
</div>
@if (isset($item['quickcommand']))
@@ -722,8 +714,7 @@
class="text-xs text-neutral-500 dark:text-neutral-400 shrink-0">{{ $item['quickcommand'] }}</span>
@endif
</div>
- <div
- class="text-sm text-neutral-600 dark:text-neutral-400 truncate">
+ <div class="text-sm text-neutral-600 dark:text-neutral-400 truncate">
{{ $item['description'] }}
</div>
</div>
@@ -731,8 +722,8 @@
<svg xmlns="http://www.w3.org/2000/svg"
class="shrink-0 h-5 w-5 text-yellow-500 dark:text-yellow-400 self-center"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round"
- stroke-width="2" d="M9 5l7 7-7 7" />
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M9 5l7 7-7 7" />
</svg>
</div>
</button>
@@ -817,8 +808,7 @@
class="flex-shrink-0 w-10 h-10 rounded-lg bg-yellow-100 dark:bg-yellow-900/40 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5 text-yellow-600 dark:text-yellow-400"
- fill="none" viewBox="0 0 24 24"
- stroke="currentColor">
+ fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round"
stroke-width="2" d="M12 4v16m8-8H4" />
</svg>
@@ -886,12 +876,10 @@
if (firstInput) firstInput.focus();
}, 200);
}
- })"
- class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
- <div x-show="modalOpen" x-transition:enter="ease-out duration-100"
- x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"
- x-transition:leave="ease-in duration-100" x-transition:leave-start="opacity-100"
- x-transition:leave-end="opacity-0" @click="modalOpen=false"
+ })" class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
+ <div x-show="modalOpen" x-transition:enter="ease-out duration-100" x-transition:enter-start="opacity-0"
+ x-transition:enter-end="opacity-100" x-transition:leave="ease-in duration-100"
+ x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" @click="modalOpen=false"
class="absolute inset-0 w-full h-full bg-black/20 backdrop-blur-xs"></div>
<div x-show="modalOpen" x-trap.inert.noscroll="modalOpen" x-transition:enter="ease-out duration-100"
x-transition:enter-start="opacity-0 -translate-y-2 sm:scale-95"
@@ -904,8 +892,8 @@
<h3 class="text-2xl font-bold">New Project</h3>
<button @click="modalOpen=false"
class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5 rounded-full dark:text-white hover:bg-neutral-100 dark:hover:bg-coolgray-300 outline-0 focus-visible:ring-2 focus-visible:ring-coollabs dark:focus-visible:ring-warning">
- <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none"
- viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
+ <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
+ stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
@@ -928,12 +916,10 @@
if (firstInput) firstInput.focus();
}, 200);
}
- })"
- class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
- <div x-show="modalOpen" x-transition:enter="ease-out duration-100"
- x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"
- x-transition:leave="ease-in duration-100" x-transition:leave-start="opacity-100"
- x-transition:leave-end="opacity-0" @click="modalOpen=false"
+ })" class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
+ <div x-show="modalOpen" x-transition:enter="ease-out duration-100" x-transition:enter-start="opacity-0"
+ x-transition:enter-end="opacity-100" x-transition:leave="ease-in duration-100"
+ x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" @click="modalOpen=false"
class="absolute inset-0 w-full h-full bg-black/20 backdrop-blur-xs"></div>
<div x-show="modalOpen" x-trap.inert.noscroll="modalOpen" x-transition:enter="ease-out duration-100"
x-transition:enter-start="opacity-0 -translate-y-2 sm:scale-95"
@@ -946,8 +932,8 @@
<h3 class="text-2xl font-bold">New Server</h3>
<button @click="modalOpen=false"
class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5 rounded-full dark:text-white hover:bg-neutral-100 dark:hover:bg-coolgray-300 outline-0 focus-visible:ring-2 focus-visible:ring-coollabs dark:focus-visible:ring-warning">
- <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none"
- viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
+ <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
+ stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
@@ -970,12 +956,10 @@
if (firstInput) firstInput.focus();
}, 200);
}
- })"
- class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
- <div x-show="modalOpen" x-transition:enter="ease-out duration-100"
- x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"
- x-transition:leave="ease-in duration-100" x-transition:leave-start="opacity-100"
- x-transition:leave-end="opacity-0" @click="modalOpen=false"
+ })" class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
+ <div x-show="modalOpen" x-transition:enter="ease-out duration-100" x-transition:enter-start="opacity-0"
+ x-transition:enter-end="opacity-100" x-transition:leave="ease-in duration-100"
+ x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" @click="modalOpen=false"
class="absolute inset-0 w-full h-full bg-black/20 backdrop-blur-xs"></div>
<div x-show="modalOpen" x-trap.inert.noscroll="modalOpen" x-transition:enter="ease-out duration-100"
x-transition:enter-start="opacity-0 -translate-y-2 sm:scale-95"
@@ -988,8 +972,8 @@
<h3 class="text-2xl font-bold">New Team</h3>
<button @click="modalOpen=false"
class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5 rounded-full dark:text-white hover:bg-neutral-100 dark:hover:bg-coolgray-300 outline-0 focus-visible:ring-2 focus-visible:ring-coollabs dark:focus-visible:ring-warning">
- <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none"
- viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
+ <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
+ stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
@@ -1012,12 +996,10 @@
if (firstInput) firstInput.focus();
}, 200);
}
- })"
- class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
- <div x-show="modalOpen" x-transition:enter="ease-out duration-100"
- x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"
- x-transition:leave="ease-in duration-100" x-transition:leave-start="opacity-100"
- x-transition:leave-end="opacity-0" @click="modalOpen=false"
+ })" class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
+ <div x-show="modalOpen" x-transition:enter="ease-out duration-100" x-transition:enter-start="opacity-0"
+ x-transition:enter-end="opacity-100" x-transition:leave="ease-in duration-100"
+ x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" @click="modalOpen=false"
class="absolute inset-0 w-full h-full bg-black/20 backdrop-blur-xs"></div>
<div x-show="modalOpen" x-trap.inert.noscroll="modalOpen" x-transition:enter="ease-out duration-100"
x-transition:enter-start="opacity-0 -translate-y-2 sm:scale-95"
@@ -1030,8 +1012,8 @@
<h3 class="text-2xl font-bold">New S3 Storage</h3>
<button @click="modalOpen=false"
class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5 rounded-full dark:text-white hover:bg-neutral-100 dark:hover:bg-coolgray-300 outline-0 focus-visible:ring-2 focus-visible:ring-coollabs dark:focus-visible:ring-warning">
- <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none"
- viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
+ <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
+ stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
@@ -1054,12 +1036,10 @@
if (firstInput) firstInput.focus();
}, 200);
}
- })"
- class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
- <div x-show="modalOpen" x-transition:enter="ease-out duration-100"
- x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"
- x-transition:leave="ease-in duration-100" x-transition:leave-start="opacity-100"
- x-transition:leave-end="opacity-0" @click="modalOpen=false"
+ })" class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
+ <div x-show="modalOpen" x-transition:enter="ease-out duration-100" x-transition:enter-start="opacity-0"
+ x-transition:enter-end="opacity-100" x-transition:leave="ease-in duration-100"
+ x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" @click="modalOpen=false"
class="absolute inset-0 w-full h-full bg-black/20 backdrop-blur-xs"></div>
<div x-show="modalOpen" x-trap.inert.noscroll="modalOpen" x-transition:enter="ease-out duration-100"
x-transition:enter-start="opacity-0 -translate-y-2 sm:scale-95"
@@ -1072,8 +1052,8 @@
<h3 class="text-2xl font-bold">New Private Key</h3>
<button @click="modalOpen=false"
class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5 rounded-full dark:text-white hover:bg-neutral-100 dark:hover:bg-coolgray-300 outline-0 focus-visible:ring-2 focus-visible:ring-coollabs dark:focus-visible:ring-warning">
- <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none"
- viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
+ <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
+ stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
@@ -1096,12 +1076,10 @@
if (firstInput) firstInput.focus();
}, 200);
}
- })"
- class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
- <div x-show="modalOpen" x-transition:enter="ease-out duration-100"
- x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"
- x-transition:leave="ease-in duration-100" x-transition:leave-start="opacity-100"
- x-transition:leave-end="opacity-0" @click="modalOpen=false"
+ })" class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
+ <div x-show="modalOpen" x-transition:enter="ease-out duration-100" x-transition:enter-start="opacity-0"
+ x-transition:enter-end="opacity-100" x-transition:leave="ease-in duration-100"
+ x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" @click="modalOpen=false"
class="absolute inset-0 w-full h-full bg-black/20 backdrop-blur-xs"></div>
<div x-show="modalOpen" x-trap.inert.noscroll="modalOpen" x-transition:enter="ease-out duration-100"
x-transition:enter-start="opacity-0 -translate-y-2 sm:scale-95"
@@ -1114,8 +1092,8 @@
<h3 class="text-2xl font-bold">New GitHub App</h3>
<button @click="modalOpen=false"
class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5 rounded-full dark:text-white hover:bg-neutral-100 dark:hover:bg-coolgray-300 outline-0 focus-visible:ring-2 focus-visible:ring-coollabs dark:focus-visible:ring-warning">
- <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none"
- viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
+ <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
+ stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
@@ -1128,4 +1106,4 @@
</template>
</div>
-</div>
+</div>
\ No newline at end of file