coolify/apps/ui/src/lib/components/Services/MinIO.svelte

50 lines
1.2 KiB
Svelte
Raw Normal View History

2022-02-10 14:47:44 +00:00
<script lang="ts">
import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';
2022-04-02 22:18:48 +00:00
import { t } from '$lib/translations';
2022-02-10 14:47:44 +00:00
2022-07-06 09:02:36 +00:00
export let service: any;
2022-02-10 14:47:44 +00:00
</script>
2022-10-14 13:48:37 +00:00
<div class="flex flex-row border-b border-coolgray-500 my-6 space-x-2">
<div class="title font-bold pb-3">MinIO</div>
2022-02-10 14:47:44 +00:00
</div>
2022-10-14 13:48:37 +00:00
<div class="space-y-2 px-4">
<div class="grid grid-cols-2 items-center">
2022-09-19 10:05:47 +00:00
<label for="rootUser">{$t('forms.root_user')}</label>
2022-05-19 11:45:17 +00:00
<input
2022-09-19 10:05:47 +00:00
class="w-full"
name="rootUser"
id="rootUser"
placeholder={$t('forms.username')}
value={service.minio.rootUser}
2022-05-19 11:45:17 +00:00
disabled
readonly
/>
</div>
2022-10-14 13:48:37 +00:00
<div class="grid grid-cols-2 items-center">
2022-09-19 10:05:47 +00:00
<label for="rootUserPassword">{$t('forms.roots_password')}</label>
<CopyPasswordField
id="rootUserPassword"
isPasswordField
readonly
disabled
name="rootUserPassword"
value={service.minio.rootUserPassword}
/>
</div>
{#if !service.minio.apiFqdn}
2022-10-14 13:48:37 +00:00
<div class="grid grid-cols-2 items-center">
2022-09-19 10:05:47 +00:00
<label for="publicPort">{$t('forms.api_port')}</label>
<input
class="w-full"
name="publicPort"
id="publicPort"
value={service.minio.publicPort}
disabled
readonly
placeholder={$t('forms.generated_automatically_after_start')}
/>
</div>
{/if}
</div>