Compare commits
1 Commits
381a7f9023
...
29d4752749
Author | SHA1 | Date |
---|---|---|
|
29d4752749 |
|
@ -10,15 +10,16 @@ class Editor extends Component
|
|||
|
||||
use HasFormDimensions;
|
||||
|
||||
public string $id;
|
||||
|
||||
public function __construct(
|
||||
public string $name,
|
||||
public string $size = 'default',
|
||||
public ?string $hint = null,
|
||||
public bool $required = false,
|
||||
public string $label = '',
|
||||
public string $id = ''
|
||||
) {
|
||||
$this->id = $this->id ? $this->id : $this->name;
|
||||
$this->id = str()->uuid()->toString();
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
|
|
@ -10,6 +10,8 @@ class Lever extends Component
|
|||
|
||||
use HasFormDimensions;
|
||||
|
||||
public string $id;
|
||||
|
||||
public function __construct(
|
||||
public string $name,
|
||||
public string $size = 'default',
|
||||
|
@ -18,9 +20,8 @@ class Lever extends Component
|
|||
public bool $disabled = false,
|
||||
public bool $required = false,
|
||||
public string $label = '',
|
||||
public string $id = ''
|
||||
) {
|
||||
$this->id = $this->id ? $this->id : $this->name;
|
||||
$this->id = str()->uuid()->toString();
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
|
|
@ -10,6 +10,8 @@ class Select extends Component
|
|||
|
||||
use HasFormDimensions;
|
||||
|
||||
public string $id;
|
||||
|
||||
public function __construct(
|
||||
public string $name,
|
||||
public string $size = 'default',
|
||||
|
@ -18,9 +20,8 @@ class Select extends Component
|
|||
public string $label = '',
|
||||
public $options = [],
|
||||
public bool $disabled = false,
|
||||
public string $id = ''
|
||||
) {
|
||||
$this->id = $this->id ? $this->id : $this->name;
|
||||
$this->id = str()->uuid()->toString();
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
|
|
@ -19,7 +19,9 @@ class Action extends Component
|
|||
public function render()
|
||||
{
|
||||
return <<<'HTML'
|
||||
<a x-tooltip.raw="{{$slot}}" href="#" {{ $attributes->merge(['class' => 'inline-flex w-6 h-5 flex items-center justify-center rounded '.$allColors($variant)]) }}>
|
||||
<a x-tooltip.raw="{{$slot}}" href="#" {{ $attributes }} class="inline-flex
|
||||
w-6 h-5 flex items-center justify-center rounded {{ $allColors($variant) }}
|
||||
">
|
||||
<x-ui::sprite class="w-3 h-3 flex-none" :src="$icon"></x-ui::sprite>
|
||||
</a>
|
||||
HTML;
|
||||
|
|
|
@ -19,7 +19,7 @@ class Badge extends Component
|
|||
public function render()
|
||||
{
|
||||
return <<<'HTML'
|
||||
<button type="button" href="#" {{ $attributes->merge(['class' => 'h-6 px-3 space-x-2 items-center rounded-full hidden lg:flex '.$allColors($variant)]) }}>
|
||||
<button type="button" href="#" {{ $attributes }} class="h-6 px-3 space-x-2 items-center rounded-full {{ $allColors($variant) }} hidden lg:flex">
|
||||
<x-ui::sprite class="w-3 h-3 flex-none" :src="$icon"></x-ui::sprite>
|
||||
<span class="text-sm">
|
||||
{{$slot}}
|
||||
|
|
|
@ -24,7 +24,7 @@ class BooleanDisplay extends Component
|
|||
public function render()
|
||||
{
|
||||
return <<<'HTML'
|
||||
<div x-tooltip.raw="{{$hint}}" {{ $attributes->merge(['class' => 'flex space-x-2 items-center group '.($dark ? 'dark' : '')]) }}">
|
||||
<div x-tooltip.raw="{{$hint}}" class="flex space-x-2 items-center group @if($dark) dark @endif">
|
||||
<div class="border-2 rounded-full w-5 h-5 flex items-center justify-center
|
||||
@if ($value) border-green-700 group-[.dark]:border-green-500
|
||||
@else border-red-700 group-[.dark]:border-red-500
|
||||
|
|
|
@ -19,7 +19,7 @@ class Menulist extends Component
|
|||
public function render()
|
||||
{
|
||||
return <<<'HTML'
|
||||
<div {{$attributes->merge(['class' => 'p-6 bg-gray-700 border-r border-gray-600 flex-none w-maxc flex flex-col justify-between']) }}">
|
||||
<div class="p-6 bg-gray-700 border-r border-gray-600 flex-none w-maxc flex flex-col justify-between">
|
||||
<div class="grid gap-1">
|
||||
@foreach($entries as $entry)
|
||||
<a href="{{$entry['url']}}" class="rounded py-1 px-3 text-gray-400 duration-200 hover:bg-gray-600 {{$activeClass($entry)}}" @if($entry['is_active']) data-active @endif>
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
echo "drop database scoutrobot;" | sudo mysql
|
||||
echo "create database scoutrobot;" | sudo mysql
|
||||
|
||||
ssh -l stamm-silva zoomyboy.de "cd /usr/share/webapps/adrema_silva && docker compose exec db mysqldump -udb -p$SCOUTROBOT_DB_PASSWORD db" > db.tmp
|
||||
sudo mysql adrema < db.tmp
|
||||
ssh -l stammsilva zoomyboy.de "cd /usr/share/webapps/nami_silva && docker compose exec db mysqldump -udb -p$SCOUTROBOT_DB_PASSWORD db" > db.tmp
|
||||
sudo mysql scoutrobot < db.tmp
|
||||
rm db.tmp
|
||||
|
||||
echo 'app(\App\Form\FormSettings::class)->fill(["registerUrl" => "http://stammsilva.test/anmeldung/{slug}/register", "clearCacheUrl" => "http://stammsilva.test/adrema/clear-cache"])->save();' | php artisan tinker
|
||||
|
|
|
@ -19,8 +19,7 @@ class UserSeeder extends Seeder
|
|||
'email' => env('USER_EMAIL', 'admin@example.com'),
|
||||
'email_verified_at' => now(),
|
||||
'password' => Hash::make(env('USER_PASSWORD', 'admin')),
|
||||
'firstname' => 'Adrema',
|
||||
'lastname' => 'Benutzer',
|
||||
'name' => 'Adrema Benutzer',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,17 +28,13 @@ class FillList extends Component
|
|||
$this->clearSearch();
|
||||
}
|
||||
|
||||
/** @todo implement compilation of document */
|
||||
public function submit(): void
|
||||
public function submit(string $compiler): void
|
||||
{
|
||||
}
|
||||
|
||||
public function updatedSearch(): void
|
||||
{
|
||||
$this->memberResults = Member::search($this->search, fn ($engine, $query, $options) => $engine->search($query, [
|
||||
...$options,
|
||||
'filter' => ['birthday IS NOT NULL', 'address IS NOT EMPTY']
|
||||
]))->get()->toBase();
|
||||
$this->memberResults = Member::search($this->search, fn ($engine, $query, $options) => $engine->search($query, [...$options, 'filter' => ['birthday IS NOT NULL', 'address IS NOT EMPTY']]))->get()->toBase();
|
||||
}
|
||||
|
||||
public function onSubmitFirstMemberResult(): void
|
||||
|
|
Loading…
Reference in New Issue