refactor: address Svelte compiler warnings and improve a11y/security
- Convert decorative labels to spans to fix a11y warnings in Accounts and Sites pages - Add rel="noopener noreferrer" to external links for security - Use untrack for Svelte 5 state initialization from props in e_app_sign_in_out.svelte - Make TipTap editor styles global to fix scoping warnings for dynamic content
This commit is contained in:
@@ -37,10 +37,10 @@
|
||||
|
||||
let { log_lvl = $bindable(0), data = null, hidden = $bindable(true) }: Props = $props();
|
||||
|
||||
let url_user_id = $state(data?.url?.searchParams?.get('user_id'));
|
||||
let url_user_key = $state(data?.url?.searchParams?.get('user_key')); // Reminder that "key" is the site's auth key.
|
||||
let url_user_username = $state(data?.url?.searchParams?.get('username'));
|
||||
let url_user_email = $state(data?.url?.searchParams?.get('user_email'));
|
||||
let url_user_id = $state(untrack(() => data?.url?.searchParams?.get('user_id')));
|
||||
let url_user_key = $state(untrack(() => data?.url?.searchParams?.get('user_key'))); // Reminder that "key" is the site's auth key.
|
||||
let url_user_username = $state(untrack(() => data?.url?.searchParams?.get('username')));
|
||||
let url_user_email = $state(untrack(() => data?.url?.searchParams?.get('user_email')));
|
||||
|
||||
$effect(() => {
|
||||
// NOTE: Sync URL params to state.
|
||||
|
||||
Reference in New Issue
Block a user