2024-01-07 15:23:41 +00:00
|
|
|
<div>
|
|
|
|
<div class="flex flex-col">
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
<h1>Resources</h1>
|
|
|
|
@if ($environment->isEmpty())
|
2024-03-20 11:54:06 +00:00
|
|
|
<a class="button"
|
2024-01-07 15:23:41 +00:00
|
|
|
href="{{ route('project.clone-me', ['project_uuid' => data_get($project, 'uuid'), 'environment_name' => request()->route('environment_name')]) }}">
|
|
|
|
Clone
|
|
|
|
</a>
|
|
|
|
@else
|
|
|
|
<a href="{{ route('project.resource.create', ['project_uuid' => request()->route('project_uuid'), 'environment_name' => request()->route('environment_name')]) }} "
|
2024-03-20 11:54:06 +00:00
|
|
|
class="button">+
|
2024-01-07 15:23:41 +00:00
|
|
|
New</a>
|
2024-03-20 11:54:06 +00:00
|
|
|
<a class="button"
|
2024-01-07 15:23:41 +00:00
|
|
|
href="{{ route('project.clone-me', ['project_uuid' => data_get($project, 'uuid'), 'environment_name' => request()->route('environment_name')]) }}">
|
|
|
|
Clone
|
|
|
|
</a>
|
|
|
|
@endif
|
2024-01-31 13:18:59 +00:00
|
|
|
<livewire:project.delete-environment :disabled="!$environment->isEmpty()" :environment_id="$environment->id" />
|
2024-01-07 15:23:41 +00:00
|
|
|
</div>
|
|
|
|
<nav class="flex pt-2 pb-10">
|
|
|
|
<ol class="flex items-center">
|
|
|
|
<li class="inline-flex items-center">
|
|
|
|
<a class="text-xs truncate lg:text-sm"
|
|
|
|
href="{{ route('project.show', ['project_uuid' => request()->route('project_uuid')]) }}">
|
|
|
|
{{ $project->name }}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div class="flex items-center">
|
2024-03-25 09:41:44 +00:00
|
|
|
<svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold dark:text-warning" fill="currentColor"
|
2024-01-07 15:23:41 +00:00
|
|
|
viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<path fill-rule="evenodd"
|
|
|
|
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
|
|
|
clip-rule="evenodd"></path>
|
|
|
|
</svg>
|
|
|
|
<a class="text-xs truncate lg:text-sm"
|
|
|
|
href="{{ route('project.resource.index', ['environment_name' => request()->route('environment_name'), 'project_uuid' => request()->route('project_uuid')]) }}">{{ request()->route('environment_name') }}</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
@if ($environment->isEmpty())
|
|
|
|
<a href="{{ route('project.resource.create', ['project_uuid' => request()->route('project_uuid'), 'environment_name' => request()->route('environment_name')]) }} "
|
|
|
|
class="items-center justify-center box">+ Add New Resource</a>
|
2024-01-22 14:12:38 +00:00
|
|
|
@else
|
|
|
|
<div x-data="searchComponent()">
|
2024-05-03 09:37:45 +00:00
|
|
|
<x-forms.input autofocus placeholder="Search for name, fqdn..." x-model="search" id="null" />
|
2024-02-03 11:39:07 +00:00
|
|
|
<div class="grid grid-cols-1 gap-4 pt-4 lg:grid-cols-2 xl:grid-cols-3">
|
2024-05-03 09:37:45 +00:00
|
|
|
<template x-for="item in filteredApplications" :key="item.uuid">
|
2024-02-09 12:57:37 +00:00
|
|
|
<span>
|
2024-02-01 14:38:12 +00:00
|
|
|
<a class="h-24 box group" :href="item.hrefLink">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="flex flex-col w-full">
|
|
|
|
<div class="flex gap-2 px-4">
|
|
|
|
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
|
|
<div class="flex-1"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
<template x-if="item.status.startsWith('running')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="running" class="bg-success badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('exited')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="exited" class="bg-error badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('restarting')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('degraded')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
</div>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="max-w-full px-4 truncate box-description" x-text="item.description"></div>
|
|
|
|
<div class="max-w-full px-4 truncate box-description" x-text="item.fqdn"></div>
|
2024-02-01 14:38:12 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
2024-05-05 15:55:58 +00:00
|
|
|
<div
|
|
|
|
class="flex flex-wrap gap-1 pt-1 group-hover:dark:text-white group-hover:text-black group min-h-6">
|
2024-02-01 14:38:12 +00:00
|
|
|
<template x-for="tag in item.tags">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
2024-02-01 14:38:12 +00:00
|
|
|
</template>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
2024-01-22 14:12:38 +00:00
|
|
|
</div>
|
2024-02-01 14:38:12 +00:00
|
|
|
</span>
|
2024-01-22 14:12:38 +00:00
|
|
|
</template>
|
2024-05-03 09:37:45 +00:00
|
|
|
<template x-for="item in filteredPostgresqls" :key="item.uuid">
|
2024-02-09 12:57:37 +00:00
|
|
|
<span>
|
2024-02-02 10:50:28 +00:00
|
|
|
<a class="h-24 box group" :href="item.hrefLink">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="flex flex-col w-full">
|
|
|
|
<div class="flex gap-2 px-4">
|
|
|
|
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
|
|
<div class="flex-1"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
<template x-if="item.status.startsWith('running')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="running" class="bg-success badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('exited')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="exited" class="bg-error badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('restarting')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('degraded')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
</div>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="max-w-full px-4 truncate box-description" x-text="item.description"></div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
2024-03-20 14:46:59 +00:00
|
|
|
<div class="flex gap-1 pt-1 group-hover:dark:text-white group-hover:text-black group min-h-6">
|
2024-02-02 10:50:28 +00:00
|
|
|
<template x-for="tag in item.tags">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</template>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
2024-01-22 14:12:38 +00:00
|
|
|
</div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</span>
|
2024-01-22 14:12:38 +00:00
|
|
|
</template>
|
2024-05-03 09:37:45 +00:00
|
|
|
<template x-for="item in filteredRedis" :key="item.uuid">
|
2024-02-09 12:57:37 +00:00
|
|
|
<span>
|
2024-02-02 10:50:28 +00:00
|
|
|
<a class="h-24 box group" :href="item.hrefLink">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="flex flex-col w-full">
|
|
|
|
<div class="flex gap-2 px-4">
|
|
|
|
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
|
|
<div class="flex-1"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
<template x-if="item.status.startsWith('running')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="running" class="bg-success badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('exited')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="exited" class="bg-error badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('restarting')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('degraded')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
</div>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
2024-03-24 15:00:25 +00:00
|
|
|
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
2024-02-02 10:50:28 +00:00
|
|
|
<template x-for="tag in item.tags">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</template>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
2024-01-22 14:12:38 +00:00
|
|
|
</div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</span>
|
2024-01-22 14:12:38 +00:00
|
|
|
</template>
|
2024-05-03 09:37:45 +00:00
|
|
|
<template x-for="item in filteredMongodbs" :key="item.uuid">
|
2024-02-09 12:57:37 +00:00
|
|
|
<span>
|
2024-02-02 10:50:28 +00:00
|
|
|
<a class="h-24 box group" :href="item.hrefLink">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="flex flex-col w-full">
|
|
|
|
<div class="flex gap-2 px-4">
|
|
|
|
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
|
|
<div class="flex-1"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
<template x-if="item.status.startsWith('running')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="running" class="bg-success badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('exited')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="exited" class="bg-error badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('restarting')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('degraded')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
</div>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
2024-03-24 15:00:25 +00:00
|
|
|
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
2024-02-02 10:50:28 +00:00
|
|
|
<template x-for="tag in item.tags">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</template>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
2024-01-22 14:12:38 +00:00
|
|
|
</div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</span>
|
2024-01-22 14:12:38 +00:00
|
|
|
</template>
|
2024-05-03 09:37:45 +00:00
|
|
|
<template x-for="item in filteredMysqls" :key="item.uuid">
|
2024-02-09 12:57:37 +00:00
|
|
|
<span>
|
2024-02-02 10:50:28 +00:00
|
|
|
<a class="h-24 box group" :href="item.hrefLink">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="flex flex-col w-full">
|
|
|
|
<div class="flex gap-2 px-4">
|
|
|
|
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
|
|
<div class="flex-1"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
<template x-if="item.status.startsWith('running')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="running" class="bg-success badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('exited')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="exited" class="bg-error badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('restarting')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('degraded')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
</div>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
2024-03-24 15:00:25 +00:00
|
|
|
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
2024-02-02 10:50:28 +00:00
|
|
|
<template x-for="tag in item.tags">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</template>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
2024-01-22 14:12:38 +00:00
|
|
|
</div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</span>
|
2024-01-22 14:12:38 +00:00
|
|
|
</template>
|
2024-05-03 09:37:45 +00:00
|
|
|
<template x-for="item in filteredMariadbs" :key="item.uuid">
|
2024-02-09 12:57:37 +00:00
|
|
|
<span>
|
2024-02-02 10:50:28 +00:00
|
|
|
<a class="h-24 box group" :href="item.hrefLink">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="flex flex-col w-full">
|
|
|
|
<div class="flex gap-2 px-4">
|
|
|
|
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
|
|
<div class="flex-1"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
<template x-if="item.status.startsWith('running')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="running" class="bg-success badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('exited')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="exited" class="bg-error badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('restarting')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('degraded')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
</div>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
2024-03-24 15:00:25 +00:00
|
|
|
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
2024-02-02 10:50:28 +00:00
|
|
|
<template x-for="tag in item.tags">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</template>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
2024-01-22 14:12:38 +00:00
|
|
|
</div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</span>
|
2024-01-22 14:12:38 +00:00
|
|
|
</template>
|
2024-05-03 09:37:45 +00:00
|
|
|
<template x-for="item in filteredKeydbs" :key="item.uuid">
|
2024-04-10 13:00:46 +00:00
|
|
|
<span>
|
|
|
|
<a class="h-24 box group" :href="item.hrefLink">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="flex flex-col w-full">
|
|
|
|
<div class="flex gap-2 px-4">
|
|
|
|
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
|
|
<div class="flex-1"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
<template x-if="item.status.startsWith('running')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="running" class="bg-success badge badge-absolute"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('exited')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="exited" class="bg-error badge badge-absolute"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('restarting')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('degraded')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
|
|
|
</div>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
|
|
|
<template x-for="tag in item.tags">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</template>
|
2024-05-03 09:37:45 +00:00
|
|
|
<template x-for="item in filteredDragonflies" :key="item.uuid">
|
2024-04-10 13:00:46 +00:00
|
|
|
<span>
|
|
|
|
<a class="h-24 box group" :href="item.hrefLink">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="flex flex-col w-full">
|
|
|
|
<div class="flex gap-2 px-4">
|
|
|
|
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
|
|
<div class="flex-1"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
<template x-if="item.status.startsWith('running')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="running" class="bg-success badge badge-absolute"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('exited')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="exited" class="bg-error badge badge-absolute"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('restarting')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('degraded')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
|
|
|
</div>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
|
|
|
<template x-for="tag in item.tags">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</template>
|
2024-05-03 09:37:45 +00:00
|
|
|
<template x-for="item in filteredClickhouses" :key="item.uuid">
|
2024-04-10 13:00:46 +00:00
|
|
|
<span>
|
|
|
|
<a class="h-24 box group" :href="item.hrefLink">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="flex flex-col w-full">
|
|
|
|
<div class="flex gap-2 px-4">
|
|
|
|
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
|
|
<div class="flex-1"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
<template x-if="item.status.startsWith('running')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="running" class="bg-success badge badge-absolute"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('exited')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="exited" class="bg-error badge badge-absolute"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('restarting')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('degraded')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
|
|
|
</div>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
|
|
|
<template x-for="tag in item.tags">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</template>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
2024-04-10 13:00:46 +00:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</template>
|
2024-05-03 09:37:45 +00:00
|
|
|
<template x-for="item in filteredServices" :key="item.uuid">
|
2024-02-09 12:57:37 +00:00
|
|
|
<span>
|
2024-02-02 10:50:28 +00:00
|
|
|
<a class="h-24 box group" :href="item.hrefLink">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="flex flex-col w-full">
|
|
|
|
<div class="flex gap-2 px-4">
|
|
|
|
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
|
|
<div class="flex-1"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
<template x-if="item.status.startsWith('running')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="running" class="bg-success badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('exited')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="exited" class="bg-error badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('restarting')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
<template x-if="item.status.startsWith('degraded')">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
2024-02-12 09:05:45 +00:00
|
|
|
</template>
|
|
|
|
</div>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
2024-03-24 15:00:25 +00:00
|
|
|
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
2024-02-02 10:50:28 +00:00
|
|
|
<template x-for="tag in item.tags">
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</template>
|
2024-04-25 12:51:25 +00:00
|
|
|
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
2024-01-22 14:12:38 +00:00
|
|
|
</div>
|
2024-02-02 10:50:28 +00:00
|
|
|
</span>
|
2024-01-22 14:12:38 +00:00
|
|
|
</template>
|
|
|
|
</div>
|
2024-01-12 10:25:20 +00:00
|
|
|
</div>
|
2024-01-22 14:12:38 +00:00
|
|
|
@endif
|
|
|
|
|
2024-01-07 15:23:41 +00:00
|
|
|
</div>
|
2024-01-12 10:25:20 +00:00
|
|
|
|
|
|
|
<script>
|
2024-02-02 10:50:28 +00:00
|
|
|
function sortFn(a, b) {
|
|
|
|
return a.name.localeCompare(b.name)
|
|
|
|
}
|
|
|
|
|
2024-01-12 10:25:20 +00:00
|
|
|
function searchComponent() {
|
|
|
|
return {
|
|
|
|
search: '',
|
|
|
|
applications: @js($applications),
|
|
|
|
postgresqls: @js($postgresqls),
|
|
|
|
redis: @js($redis),
|
|
|
|
mongodbs: @js($mongodbs),
|
|
|
|
mysqls: @js($mysqls),
|
|
|
|
mariadbs: @js($mariadbs),
|
2024-04-10 13:00:46 +00:00
|
|
|
keydbs: @js($keydbs),
|
|
|
|
dragonflies: @js($dragonflies),
|
|
|
|
clickhouses: @js($clickhouses),
|
2024-01-12 10:31:51 +00:00
|
|
|
services: @js($services),
|
2024-02-01 14:38:12 +00:00
|
|
|
gotoTag(tag) {
|
|
|
|
window.location.href = '/tags/' + tag;
|
|
|
|
},
|
|
|
|
goto(item) {
|
|
|
|
const hrefLink = item.hrefLink;
|
|
|
|
window.location.href = `${hrefLink}#tags`;
|
|
|
|
},
|
2024-01-12 10:25:20 +00:00
|
|
|
get filteredApplications() {
|
|
|
|
if (this.search === '') {
|
2024-02-02 10:50:28 +00:00
|
|
|
return Object.values(this.applications).sort(sortFn);
|
2024-01-12 10:25:20 +00:00
|
|
|
}
|
|
|
|
this.applications = Object.values(this.applications);
|
|
|
|
return this.applications.filter(item => {
|
2024-05-03 09:34:45 +00:00
|
|
|
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
2024-01-12 10:25:20 +00:00
|
|
|
item.fqdn?.toLowerCase().includes(this.search.toLowerCase()) ||
|
2024-02-02 10:50:28 +00:00
|
|
|
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
|
|
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
|
|
}).sort(sortFn);
|
2024-01-12 10:25:20 +00:00
|
|
|
},
|
|
|
|
get filteredPostgresqls() {
|
|
|
|
if (this.search === '') {
|
2024-02-02 10:50:28 +00:00
|
|
|
return Object.values(this.postgresqls).sort(sortFn);
|
2024-01-12 10:25:20 +00:00
|
|
|
}
|
|
|
|
this.postgresqls = Object.values(this.postgresqls);
|
|
|
|
return this.postgresqls.filter(item => {
|
2024-05-03 09:34:45 +00:00
|
|
|
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
2024-02-02 10:50:28 +00:00
|
|
|
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
|
|
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
|
|
}).sort(sortFn);
|
2024-01-12 10:25:20 +00:00
|
|
|
},
|
|
|
|
get filteredRedis() {
|
|
|
|
if (this.search === '') {
|
2024-02-02 10:50:28 +00:00
|
|
|
return Object.values(this.redis).sort(sortFn);
|
2024-01-12 10:25:20 +00:00
|
|
|
}
|
|
|
|
this.redis = Object.values(this.redis);
|
|
|
|
return this.redis.filter(item => {
|
2024-05-03 09:34:45 +00:00
|
|
|
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
2024-02-02 10:50:28 +00:00
|
|
|
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
|
|
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
|
|
}).sort(sortFn);
|
2024-01-12 10:25:20 +00:00
|
|
|
},
|
|
|
|
get filteredMongodbs() {
|
|
|
|
if (this.search === '') {
|
2024-02-02 10:50:28 +00:00
|
|
|
return Object.values(this.mongodbs).sort(sortFn);
|
2024-01-12 10:25:20 +00:00
|
|
|
}
|
|
|
|
this.mongodbs = Object.values(this.mongodbs);
|
|
|
|
return this.mongodbs.filter(item => {
|
2024-05-03 09:34:45 +00:00
|
|
|
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
2024-02-02 10:50:28 +00:00
|
|
|
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
|
|
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
|
|
}).sort(sortFn);
|
2024-01-12 10:25:20 +00:00
|
|
|
},
|
|
|
|
get filteredMysqls() {
|
|
|
|
if (this.search === '') {
|
2024-02-02 10:50:28 +00:00
|
|
|
return Object.values(this.mysqls).sort(sortFn);
|
2024-01-12 10:25:20 +00:00
|
|
|
}
|
|
|
|
this.mysqls = Object.values(this.mysqls);
|
|
|
|
return this.mysqls.filter(item => {
|
2024-05-03 09:34:45 +00:00
|
|
|
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
2024-02-02 10:50:28 +00:00
|
|
|
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
|
|
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
|
|
}).sort(sortFn);
|
2024-01-12 10:25:20 +00:00
|
|
|
},
|
|
|
|
get filteredMariadbs() {
|
|
|
|
if (this.search === '') {
|
2024-02-02 10:50:28 +00:00
|
|
|
return Object.values(this.mariadbs).sort(sortFn);
|
2024-01-12 10:25:20 +00:00
|
|
|
}
|
|
|
|
this.mariadbs = Object.values(this.mariadbs);
|
|
|
|
return this.mariadbs.filter(item => {
|
2024-05-03 09:34:45 +00:00
|
|
|
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
2024-02-02 10:50:28 +00:00
|
|
|
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
|
|
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
|
|
}).sort(sortFn);
|
2024-01-12 10:25:20 +00:00
|
|
|
},
|
2024-04-10 13:00:46 +00:00
|
|
|
get filteredKeydbs() {
|
|
|
|
if (this.search === '') {
|
|
|
|
return Object.values(this.keydbs).sort(sortFn);
|
|
|
|
}
|
|
|
|
this.keydbs = Object.values(this.keydbs);
|
|
|
|
return this.keydbs.filter(item => {
|
2024-05-03 09:34:45 +00:00
|
|
|
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
2024-04-10 13:00:46 +00:00
|
|
|
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
|
|
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
|
|
}).sort(sortFn);
|
|
|
|
},
|
|
|
|
get filteredDragonflies() {
|
|
|
|
if (this.search === '') {
|
|
|
|
return Object.values(this.dragonflies).sort(sortFn);
|
|
|
|
}
|
|
|
|
this.dragonflies = Object.values(this.dragonflies);
|
|
|
|
return this.dragonflies.filter(item => {
|
2024-05-03 09:34:45 +00:00
|
|
|
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
2024-04-10 13:00:46 +00:00
|
|
|
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
|
|
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
|
|
}).sort(sortFn);
|
|
|
|
},
|
|
|
|
get filteredClickhouses() {
|
|
|
|
if (this.search === '') {
|
|
|
|
return Object.values(this.clickhouses).sort(sortFn);
|
|
|
|
}
|
|
|
|
this.clickhouses = Object.values(this.clickhouses);
|
|
|
|
return this.clickhouses.filter(item => {
|
2024-05-03 09:34:45 +00:00
|
|
|
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
2024-04-10 13:00:46 +00:00
|
|
|
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
|
|
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
|
|
}).sort(sortFn);
|
|
|
|
},
|
2024-01-12 10:31:51 +00:00
|
|
|
get filteredServices() {
|
|
|
|
if (this.search === '') {
|
2024-02-02 10:50:28 +00:00
|
|
|
return Object.values(this.services).sort(sortFn);
|
2024-01-12 10:31:51 +00:00
|
|
|
}
|
|
|
|
this.services = Object.values(this.services);
|
|
|
|
return this.services.filter(item => {
|
2024-05-03 09:34:45 +00:00
|
|
|
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
2024-02-02 10:50:28 +00:00
|
|
|
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
|
|
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
|
|
}).sort(sortFn);
|
2024-01-12 10:31:51 +00:00
|
|
|
},
|
2024-01-12 10:25:20 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
</script>
|