style: reorder v-model and v-bind directives
Changes: - Move v-model directives before other attributes - Move v-bind directives before event handlers - Reorder attributes for better readability - Fix template attribute ordering across components - Improve eslint rules - add default vite config for testing (handles nostr error too) This follows Vue.js style guide recommendations for attribute ordering and improves template consistency.
This commit is contained in:
@@ -72,16 +72,18 @@
|
||||
!invite.redeemedAt &&
|
||||
invite.expiresAt > new Date().toISOString()
|
||||
"
|
||||
class="text-center text-blue-500 cursor-pointer"
|
||||
:title="inviteLink(invite.jwt)"
|
||||
@click="
|
||||
copyInviteAndNotify(invite.inviteIdentifier, invite.jwt)
|
||||
"
|
||||
class="text-center text-blue-500 cursor-pointer"
|
||||
:title="inviteLink(invite.jwt)"
|
||||
>
|
||||
{{ getTruncatedInviteId(invite.inviteIdentifier) }}
|
||||
</span>
|
||||
<span
|
||||
v-else
|
||||
class="text-center text-slate-500 cursor-pointer"
|
||||
:title="inviteLink(invite.jwt)"
|
||||
@click="
|
||||
showInvite(
|
||||
invite.inviteIdentifier,
|
||||
@@ -89,8 +91,6 @@
|
||||
invite.expiresAt < new Date().toISOString(),
|
||||
)
|
||||
"
|
||||
class="text-center text-slate-500 cursor-pointer"
|
||||
:title="inviteLink(invite.jwt)"
|
||||
>
|
||||
{{ getTruncatedInviteId(invite.inviteIdentifier) }}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user