Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 23s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Laravel Pint / pint (pull_request) Successful in 3m10s
Laravel Larastan / larastan (pull_request) Failing after 3m46s
103 lines
3.1 KiB
PHP
103 lines
3.1 KiB
PHP
{{--
|
|
<x-filament-panels::page>
|
|
<div
|
|
wire:poll.2s="refreshSharedContent"
|
|
class="space-y-4"
|
|
>
|
|
<div>
|
|
<p class="text-sm text-gray-500">
|
|
Paste or type your text below.
|
|
Changes are shared with users on this page.
|
|
</p>
|
|
</div>
|
|
|
|
<textarea
|
|
wire:model.live.debounce.500ms="content"
|
|
rows="18"
|
|
placeholder="Paste your text here..."
|
|
class="w-full rounded-xl border-gray-300
|
|
shadow-sm focus:border-primary-500
|
|
focus:ring-primary-500
|
|
dark:border-gray-700
|
|
dark:bg-gray-900 dark:text-white"
|
|
></textarea>
|
|
|
|
<div class="flex items-center justify-between gap-4">
|
|
<span class="text-sm text-gray-500">
|
|
Automatically saved to temporary file cache.
|
|
</span>
|
|
|
|
<x-filament::button
|
|
color="danger"
|
|
wire:click="clearContent"
|
|
wire:confirm="Clear the shared text for everyone?"
|
|
>
|
|
Clear text
|
|
</x-filament::button>
|
|
</div>
|
|
</div>
|
|
</x-filament-panels::page> --}}
|
|
|
|
|
|
<x-filament-panels::page>
|
|
|
|
<div wire:poll.1s="refreshSharedContent" class="space-y-4">
|
|
|
|
{{-- Header --}}
|
|
<div class="flex items-center justify-between gap-4">
|
|
|
|
<div>
|
|
<h2 class="text-lg font-semibold text-gray-900 dark:text-white">
|
|
Shared Clipboard
|
|
</h2>
|
|
|
|
<p class="text-sm text-gray-500 dark:text-gray-400">
|
|
Type here to share content with other users.
|
|
</p>
|
|
</div>
|
|
|
|
{{-- Clear Button --}}
|
|
<x-filament::button
|
|
color="danger"
|
|
icon="heroicon-o-trash"
|
|
wire:click="clearContent"
|
|
wire:confirm="Are you sure you want to clear the shared clipboard?"
|
|
>
|
|
Clear Content
|
|
</x-filament::button>
|
|
|
|
</div>
|
|
|
|
{{-- Shared Textarea --}}
|
|
<div>
|
|
<textarea
|
|
wire:model.live.debounce.500ms="content"
|
|
rows="20"
|
|
class="w-full rounded-lg border border-gray-300 bg-white p-4 text-sm text-gray-900 shadow-sm focus:border-primary-500 focus:ring-primary-500 dark:border-gray-700 dark:bg-gray-900 dark:text-white"
|
|
placeholder="Start typing here..."
|
|
spellcheck="false"
|
|
></textarea>
|
|
</div>
|
|
|
|
{{-- Footer --}}
|
|
<div class="flex items-center justify-between text-xs text-gray-500 dark:text-gray-400">
|
|
|
|
<span>
|
|
<x-filament::loading-indicator
|
|
wire:loading
|
|
wire:target="updatedContent"
|
|
class="h-3 w-3"
|
|
/>
|
|
Changes are automatically synchronized.
|
|
</span>
|
|
|
|
<span>
|
|
Characters: <span x-data x-text="$wire.content.length"></span>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</x-filament-panels::page>
|