2023-08-27 13:26:06 +00:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2021-10-26 15:54:56 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Settings.title') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Settings.title') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
2021-11-23 11:54:34 +00:00
|
|
|
<div class="flex flex-col gap-y-4">
|
2021-10-26 15:54:56 +00:00
|
|
|
|
2022-01-02 14:11:05 +00:00
|
|
|
<form action="<?= route_to('settings-instance') ?>" method="POST" enctype="multipart/form-data" class="max-w-xl">
|
2021-10-26 15:54:56 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section
|
2021-11-23 11:54:34 +00:00
|
|
|
title="<?= lang('Settings.instance.title') ?>">
|
2021-10-26 15:54:56 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-10-26 15:54:56 +00:00
|
|
|
name="site_name"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Settings.instance.site_name')) ?>"
|
2022-03-04 14:33:48 +00:00
|
|
|
value="<?= esc(service('settings')
|
|
|
|
->get('App.siteName')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true" />
|
2021-10-26 15:54:56 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-10-26 15:54:56 +00:00
|
|
|
as="Textarea"
|
|
|
|
name="site_description"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Settings.instance.site_description')) ?>"
|
2022-03-04 14:33:48 +00:00
|
|
|
value="<?= esc(service('settings')
|
|
|
|
->get('App.siteDescription')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2021-10-26 15:54:56 +00:00
|
|
|
rows="4" />
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-10-26 15:54:56 +00:00
|
|
|
name="site_icon"
|
|
|
|
type="file"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Settings.instance.site_icon')) ?>"
|
|
|
|
hint="<?= esc(lang('Settings.instance.site_icon_hint')) ?>"
|
|
|
|
helper="<?= esc(lang('Settings.instance.site_icon_helper')) ?>"
|
2021-11-02 11:58:06 +00:00
|
|
|
accept=".png,.jpeg,.jpg"
|
2021-10-26 15:54:56 +00:00
|
|
|
class="flex-1"
|
|
|
|
/>
|
2024-04-28 16:39:01 +00:00
|
|
|
<?php if (config('App')->siteIcon['ico'] !== service('settings')->get('App.siteIcon')['ico']): ?>
|
2021-10-26 15:54:56 +00:00
|
|
|
<div class="relative ml-2">
|
2024-05-09 17:55:41 +00:00
|
|
|
<a href="<?= route_to('settings-instance-delete-icon') ?>" class="absolute p-1 text-red-700 bg-red-100 border-2 rounded-full hover:text-red-900 border-contrast -top-3 -right-3" title="<?= lang('Settings.instance.site_icon_delete') ?>" data-tooltip="top"><?= icon('delete-bin-fill') ?></a>
|
2023-04-13 11:45:03 +00:00
|
|
|
<img src="<?= get_site_icon_url('64') ?>" alt="<?= esc(service('settings')->get('App.siteName')) ?> Favicon" class="w-10 h-10 aspect-square" loading="lazy" />
|
2021-10-26 15:54:56 +00:00
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button variant="primary" type="submit" class="self-end"><?= lang('Settings.instance.submit') ?></x-Button>
|
2021-10-26 15:54:56 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Section>
|
2021-10-26 15:54:56 +00:00
|
|
|
|
|
|
|
</form>
|
|
|
|
|
2022-01-23 16:53:23 +00:00
|
|
|
<form action="<?= route_to('settings-images-regenerate') ?>" method="POST" class="flex flex-col w-full max-w-xl gap-y-4">
|
2021-11-23 11:54:34 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section
|
2021-11-23 11:54:34 +00:00
|
|
|
title="<?= lang('Settings.images.title') ?>"
|
2023-04-13 11:45:03 +00:00
|
|
|
subtitle="<?= lang('Settings.images.subtitle') ?>">
|
2024-04-26 17:57:25 +00:00
|
|
|
<?php // @icon('refresh-fill')?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button variant="primary" type="submit" iconLeft="refresh-fill"><?= lang('Settings.images.regenerate') ?></x-Button>
|
2021-11-23 11:54:34 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Section>
|
2021-11-23 11:54:34 +00:00
|
|
|
|
|
|
|
</form>
|
2022-01-13 16:02:14 +00:00
|
|
|
|
2022-01-23 16:53:23 +00:00
|
|
|
<form action="<?= route_to('settings-housekeeping-run') ?>" method="POST" class="flex flex-col w-full max-w-xl gap-y-4">
|
2022-01-13 16:02:14 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section
|
2022-01-13 16:02:14 +00:00
|
|
|
title="<?= lang('Settings.housekeeping.title') ?>"
|
|
|
|
subtitle="<?= lang('Settings.housekeeping.subtitle') ?>" >
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Toggler name="reset_counts" size="small" isChecked="false" hint="<?= esc(lang('Settings.housekeeping.reset_counts_helper')) ?>"><?= lang('Settings.housekeeping.reset_counts') ?></x-Forms.Toggler>
|
|
|
|
<x-Forms.Toggler name="rename_episodes_files" size="small" isChecked="false" hint="<?= esc(lang('Settings.housekeeping.rename_episodes_files_hint')) ?>"><?= lang('Settings.housekeeping.rename_episodes_files') ?></x-Forms.Toggler>
|
|
|
|
<x-Forms.Toggler name="clear_cache" size="small" isChecked="false" hint="<?= esc(lang('Settings.housekeeping.clear_cache_helper')) ?>"><?= lang('Settings.housekeeping.clear_cache') ?></x-Forms.Toggler>
|
2024-04-26 17:57:25 +00:00
|
|
|
<?php // @icon('home-gear-fill')?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button variant="primary" type="submit" iconLeft="home-gear-fill"><?= lang('Settings.housekeeping.run') ?></x-Button>
|
2022-01-13 16:02:14 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Section>
|
2022-01-13 16:02:14 +00:00
|
|
|
|
|
|
|
</form>
|
|
|
|
|
2021-11-23 11:54:34 +00:00
|
|
|
</div>
|
|
|
|
|
2021-10-26 15:54:56 +00:00
|
|
|
<?= $this->endSection() ?>
|