chore: migrate all FA icons to Lucide (@lucide/svelte)
- Replaced all active FontAwesome <span class="fas fa-*"> icons with
Lucide components across 145 files (excluding /idaa/ which is intentional)
- Fixed merge script bug: consolidated lucide-svelte imports into @lucide/svelte
- Replaced dynamic toggle patterns (fa-toggle-on/off) with ToggleRight/ToggleLeft
- Replaced fa-eye/fa-eye-slash with Eye/EyeOff
- Replaced fa-bug/fa-bug-slash with Bug/BugOff
- Replaced fa-sync fa-spin with RefreshCw + animate-spin
- Replaced fa-microchip with Cpu
- Fixed {@const} placement in element_manage_event_file_li.svelte
- Removed obsolete CSS hover rules for .unlock_icon/.lock_icon
- svelte-check: 0 errors, 0 warnings
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/stores/ae_stores';
|
||||
import { db_core } from '$lib/ae_core/db_core';
|
||||
import { core_func } from '$lib/ae_core/ae_core_functions';
|
||||
|
||||
import { CalendarDays, Download, FolderOpen, MinusCircle, Pencil, PlusCircle, RefreshCw, Trash2 } from '@lucide/svelte';
|
||||
// export let allow_basic: boolean = false;
|
||||
|
||||
interface Props {
|
||||
@@ -60,7 +60,7 @@
|
||||
title="Files for {link_to_type ?? '-- not set --'}: {link_to_id ??
|
||||
'-- not set --'} (files: {$lq__hosted_file_obj_li?.length ?? 'None'})"
|
||||
>
|
||||
<span class="fas fa-folder-open mx-1"></span>
|
||||
<FolderOpen size="1em" class="mx-1" />
|
||||
{@html $lq__hosted_file_obj_li
|
||||
? `${$lq__hosted_file_obj_li.length}×`
|
||||
: '-- none --'}
|
||||
@@ -101,7 +101,7 @@
|
||||
class:hidden={!$ae_loc.edit_mode || !$ae_loc.authenticated_access}
|
||||
title="Refresh the list of files"
|
||||
>
|
||||
<span class="fas fa-sync-alt m-1"></span>
|
||||
<RefreshCw size="1em" class="m-1" />
|
||||
<div class="hidden">Files</div>
|
||||
</button>
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
class:hidden={!$ae_loc.edit_mode || !$ae_loc.trusted_access}
|
||||
title="Toggle direct download link and copy link button"
|
||||
>
|
||||
<span class="fas fa-download m-1"></span>
|
||||
<Download size="1em" class="m-1" />
|
||||
<div class="hidden">
|
||||
{ae_tmp.show__direct_download ? 'Alt On' : 'Alt Download Off'}
|
||||
</div>
|
||||
@@ -163,10 +163,10 @@
|
||||
title="Add/Remove file to/from the locally stored uploaded file list. This is referenced by other AE components."
|
||||
>
|
||||
{#if $ae_loc.files.uploaded_file_kv[hosted_file_obj.hosted_file_id]}
|
||||
<span class="fas fa-minus-circle m-1"></span>
|
||||
<MinusCircle size="1em" class="m-1" />
|
||||
<span class="hidden">Remove</span>
|
||||
{:else}
|
||||
<span class="fas fa-plus-circle m-1"></span>
|
||||
<PlusCircle size="1em" class="m-1" />
|
||||
<span class="hidden">Add</span>
|
||||
{/if}
|
||||
</button>
|
||||
@@ -198,7 +198,7 @@
|
||||
class="btn btn-sm preset-tonal-secondary hover:preset-filled-secondary-500"
|
||||
title="Delete a file from the host server."
|
||||
>
|
||||
<span class="fas fa-trash-alt m-1"></span>
|
||||
<Trash2 size="1em" class="m-1" />
|
||||
<span class="hidden">Delete</span>
|
||||
</button>
|
||||
|
||||
@@ -212,19 +212,19 @@
|
||||
class="btn btn-sm preset-tonal-primary hover:preset-filled-primary-500"
|
||||
title="Edit file details"
|
||||
>
|
||||
<span class="fas fa-edit m-1"></span>
|
||||
<Pencil size="1em" class="m-1" />
|
||||
<span class="hidden">Edit</span>
|
||||
</button>
|
||||
|
||||
<span class="text-xs text-gray-500">
|
||||
<span class="fas fa-calendar-day mx-1"></span>
|
||||
<CalendarDays size="1em" class="mx-1" />
|
||||
<span class="hidden">Created on:</span>
|
||||
{ae_util.iso_datetime_formatter(
|
||||
hosted_file_obj.created_on,
|
||||
'datetime_medium_sec'
|
||||
)}
|
||||
{#if hosted_file_obj.updated_on}
|
||||
<span class="fas fa-sync-alt mx-1"></span>
|
||||
<RefreshCw size="1em" class="mx-1" />
|
||||
Updated on
|
||||
{ae_util.iso_datetime_formatter(
|
||||
hosted_file_obj.updated_on,
|
||||
|
||||
Reference in New Issue
Block a user