mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
add models, setup livewire, setup mongodb
This commit is contained in:
parent
c0590a3412
commit
be4c848eee
27 changed files with 2508 additions and 0 deletions
23
resources/views/livewire/pages/upload.blade.php
Normal file
23
resources/views/livewire/pages/upload.blade.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<div class="wa-stack wa-gap-3xl">
|
||||
<h1>Upload</h1>
|
||||
|
||||
<form wire:submit="createPost" class="wa-stack wa-gap-xl">
|
||||
<wa-card>
|
||||
<input wire:model="file" type="file" label="file" placeholder="Select a file to upload." />
|
||||
@error('file')
|
||||
<span class="wa-caption-m">{{ $message }}</span>
|
||||
@enderror
|
||||
</wa-card>
|
||||
|
||||
<wa-select wire:model="rating" label="Rating" value="safe" hint="Select a content rating that matches the file.">
|
||||
<wa-option value="safe">Safe</wa-option>
|
||||
<wa-option value="suggestive">Suggestive</wa-option>
|
||||
<wa-option value="explicit">Explicit</wa-option>
|
||||
</wa-select>
|
||||
|
||||
<wa-button type="submit" variant="brand" wire:loading.attr="disabled">
|
||||
<wa-icon slot="prefix" name="arrow-up-from-bracket"></wa-icon>
|
||||
Upload
|
||||
</wa-button>
|
||||
</form>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue