Skip to content

Commit

Permalink
Added type="search" to properly classify the input field and autocomp…
Browse files Browse the repository at this point in the history
…lete="off" to prevent browsers from saving search history and reduce interference from password managers.

Also added correct input type for minutesLeakedWithin to prevent server error when entering non numeric values.
  • Loading branch information
EkoNesLeg authored and EkoNesLeg committed Aug 29, 2024
1 parent 3efbc03 commit be3b99e
Show file tree
Hide file tree
Showing 34 changed files with 140 additions and 42 deletions.
4 changes: 4 additions & 0 deletions resources/views/livewire/announce-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<div class="form__group">
<input
id="torrent"
type="search"
autocomplete="off"
wire:model.live="torrentId"
class="form__text"
placeholder=" "
Expand All @@ -20,6 +22,8 @@ class="form__text"
<div class="form__group">
<input
id="user"
type="search"
autocomplete="off"
wire:model.live="userId"
class="form__text"
placeholder=" "
Expand Down
4 changes: 4 additions & 0 deletions resources/views/livewire/apikey-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<div class="form__group">
<input
id="apikey"
type="search"
autocomplete="off"
class="form__text"
type="text"
wire:model.live="apikey"
Expand All @@ -20,6 +22,8 @@ class="form__text"
<div class="form__group">
<input
id="username"
type="search"
autocomplete="off"
class="form__text"
type="text"
wire:model.live="username"
Expand Down
3 changes: 2 additions & 1 deletion resources/views/livewire/application-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
<input
id="receiver"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="email"
placeholder=" "
/>
Expand Down
9 changes: 6 additions & 3 deletions resources/views/livewire/audit-log-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<input
id="username"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="username"
placeholder=" "
/>
Expand Down Expand Up @@ -38,7 +39,8 @@ class="form__select"
<input
id="modelId"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="modelId"
placeholder=" "
/>
Expand All @@ -61,7 +63,8 @@ class="form__text"
<input
id="record"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="record"
placeholder=" "
/>
Expand Down
8 changes: 6 additions & 2 deletions resources/views/livewire/block-ip-address.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<input
id="ipAddress"
class="form__text"
type="text"
autocomplete="off"
name="ipAddress"
placeholder=" "
wire:model="ipAddress"
Expand Down Expand Up @@ -57,7 +59,8 @@ class="form__button form__button--outlined"
<input
id="ipSearch"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="ipSearch"
placeholder=" "
/>
Expand All @@ -71,7 +74,8 @@ class="form__text"
<input
id="reasonSearch"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="reasonSearch"
placeholder=" "
/>
Expand Down
3 changes: 2 additions & 1 deletion resources/views/livewire/collection-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
id="name"
class="form__text"
placeholder=" "
type="text"
type="search"
autocomplete="off"
wire:model.live.debounce.250ms="search"
/>
<label class="form__label form__label--floating" for="name">
Expand Down
3 changes: 2 additions & 1 deletion resources/views/livewire/company-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
id="name"
class="form__text"
placeholder=" "
type="text"
type="search"
autocomplete="off"
wire:model.live.debounce.250ms="search"
/>
<label class="form__label form__label--floating" for="name">
Expand Down
4 changes: 4 additions & 0 deletions resources/views/livewire/conversation-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<input
id="subject"
class="form__text"
type="search"
autocomplete="off"
name="subject"
placeholder=" "
wire:model.live="subject"
Expand Down Expand Up @@ -35,6 +37,8 @@ class="form__text"
<input
id="message"
class="form__text"
type="search"
autocomplete="off"
name="message"
placeholder=" "
wire:model.live="message"
Expand Down
3 changes: 2 additions & 1 deletion resources/views/livewire/email-update-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<input
id="username"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="username"
placeholder=" "
/>
Expand Down
9 changes: 6 additions & 3 deletions resources/views/livewire/failed-login-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<input
id="username"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="username"
placeholder=" "
/>
Expand All @@ -21,7 +22,8 @@ class="form__text"
<input
id="userId"
class="form__text"
type="text"
type="search"
autocomplete="off"
inputmode="numeric"
pattern="[0-9]*"
wire:model.live="userId"
Expand All @@ -37,7 +39,8 @@ class="form__text"
<input
id="ipAddress"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="ipAddress"
placeholder=" "
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ class="form__button form__button--filled form__button--centered"
<input
id="search"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="search"
placeholder=" "
/>
Expand Down
3 changes: 2 additions & 1 deletion resources/views/livewire/forum-topic-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ class="form__button form__button--filled form__button--centered"
<input
id="search"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="search"
placeholder=" "
/>
Expand Down
9 changes: 6 additions & 3 deletions resources/views/livewire/gift-log-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<input
id="sender"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="sender"
placeholder=" "
/>
Expand All @@ -21,7 +22,8 @@ class="form__text"
<input
id="receiver"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="receiver"
placeholder=" "
/>
Expand All @@ -35,7 +37,8 @@ class="form__text"
<input
id="comment"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="comment"
placeholder=" "
/>
Expand Down
6 changes: 6 additions & 0 deletions resources/views/livewire/history-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
id="torrent"
wire:model.live="torrent"
class="form__text"
type="search"
autocomplete="off"
placeholder=" "
/>
<label class="form__label form__label--floating" for="torrent">
Expand All @@ -22,6 +24,8 @@ class="form__text"
id="user"
wire:model.live="user"
class="form__text"
type="search"
autocomplete="off"
placeholder=" "
/>
<label class="form__label form__label--floating" for="user">Username</label>
Expand All @@ -31,6 +35,8 @@ class="form__text"
id="agent"
wire:model.live="agent"
class="form__text"
type="search"
autocomplete="off"
placeholder=" "
/>
<label class="form__label form__label--floating" for="agent">Agent</label>
Expand Down
24 changes: 16 additions & 8 deletions resources/views/livewire/invite-log-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<input
id="sender"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="sender"
placeholder=" "
/>
Expand All @@ -22,7 +23,8 @@ class="form__text"
<input
id="soundexSender"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="soundexSender"
placeholder=" "
/>
Expand All @@ -34,7 +36,8 @@ class="form__text"
<input
id="receiver"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="receiver"
placeholder=" "
/>
Expand All @@ -46,7 +49,8 @@ class="form__text"
<input
id="soundexReceiver"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="soundexReceiver"
placeholder=" "
/>
Expand All @@ -58,7 +62,8 @@ class="form__text"
<input
id="email"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="email"
placeholder=" "
/>
Expand All @@ -70,7 +75,8 @@ class="form__text"
<input
id="email"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="soundexEmail"
placeholder=" "
/>
Expand Down Expand Up @@ -116,7 +122,8 @@ class="form__select"
<input
id="code"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="code"
placeholder=" "
/>
Expand All @@ -128,7 +135,8 @@ class="form__text"
<input
id="custom"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="custom"
placeholder=" "
/>
Expand Down
5 changes: 5 additions & 0 deletions resources/views/livewire/leaker-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
id="torrent"
wire:model.live.debounce.1500ms="torrentIds"
class="form__text"
type="search"
autocomplete="off"
placeholder=" "
/>
<label class="form__label form__label--floating" for="torrent">
Expand All @@ -22,6 +24,9 @@ class="form__text"
id="torrent"
wire:model.live.debounce.500ms="minutesLeakedWithin"
class="form__text"
type="number"
pattern="[0-9]*"
autocomplete="off"
placeholder=" "
/>
<label class="form__label form__label--floating" for="torrent">
Expand Down
3 changes: 2 additions & 1 deletion resources/views/livewire/missing-media-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<input
id="name"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="name"
placeholder=" "
/>
Expand Down
3 changes: 2 additions & 1 deletion resources/views/livewire/network-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
id="name"
class="form__text"
placeholder=" "
type="text"
type="search"
autocomplete="off"
wire:model.live.debounce.250ms="search"
/>
<label class="form__label form__label--floating" for="name">
Expand Down
3 changes: 2 additions & 1 deletion resources/views/livewire/note-search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
<input
id="search"
class="form__text"
type="text"
type="search"
autocomplete="off"
wire:model.live="search"
placeholder=" "
/>
Expand Down
Loading

0 comments on commit be3b99e

Please sign in to comment.