Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

refactor(frontend): update icon library

johaven3211a77ba37b
diff --git a/frontend/package.json b/frontend/package.json
index a208503b..a2a5fa15 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -34,11 +34,7 @@
"@angular/router": "^21.2.16",
"@codemirror/language-data": "^6.5.2",
"@fontsource-variable/inter": "^5.2.8",
- "@fortawesome/angular-fontawesome": "^4.0.0",
- "@fortawesome/fontawesome-svg-core": "^7.2.0",
- "@fortawesome/free-brands-svg-icons": "^7.2.0",
- "@fortawesome/free-regular-svg-icons": "^7.2.0",
- "@fortawesome/free-solid-svg-icons": "^7.2.0",
+ "@lucide/angular": "^1.34.0",
"@perfectmemory/ngx-contextmenu": "^21.0.1",
"@tiptap/core": "^3.25.0",
"@tiptap/extension-image": "^3.25.0",
diff --git a/frontend/src/app/app.config.ts b/frontend/src/app/app.config.ts
index 2985e443..a4241a99 100644
--- a/frontend/src/app/app.config.ts
+++ b/frontend/src/app/app.config.ts
@@ -3,6 +3,7 @@ import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi, withXsrfC
import { ApplicationConfig, importProvidersFrom, isDevMode, provideZoneChangeDetection } from '@angular/core'
import { provideAnimations } from '@angular/platform-browser/animations'
import { provideRouter } from '@angular/router'
+import { provideLucideConfig } from '@lucide/angular'
import { CSRF_KEY } from '@sync-in-server/backend/src/authentication/constants/auth'
import { provideL10nIntl, provideL10nTranslation } from 'angular-l10n'
import { BsModalService } from 'ngx-bootstrap/modal'
@@ -18,6 +19,7 @@ import { webSocketOptions } from './websocket/websocket.constants'
export const appConfig: ApplicationConfig = {
providers: [
provideZoneChangeDetection({ eventCoalescing: true }),
+ provideLucideConfig({ size: '1em', strokeWidth: 2.25 }),
{ provide: LocationStrategy, useClass: HashLocationStrategy },
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
provideRouter(routes),
diff --git a/frontend/src/app/app.constants.ts b/frontend/src/app/app.constants.ts
index 7ed724ae..07da5351 100644
--- a/frontend/src/app/app.constants.ts
+++ b/frontend/src/app/app.constants.ts
@@ -1,4 +1,4 @@
-import { faCircleHalfStroke } from '@fortawesome/free-solid-svg-icons'
+import { LucideContrast } from '@lucide/angular'
import { productName, version } from '../../../package.json'
import { AppMenu } from './layout/layout.interfaces'
@@ -12,7 +12,7 @@ export const APP_PATH = {
export const APP_MENU: AppMenu = {
title: 'NAVIGATION',
- icon: faCircleHalfStroke,
+ icon: LucideContrast,
link: '',
submenus: []
} as const
diff --git a/frontend/src/app/applications/admin/admin.constants.ts b/frontend/src/app/applications/admin/admin.constants.ts
index 80bb1663..bbb18bdc 100644
--- a/frontend/src/app/applications/admin/admin.constants.ts
+++ b/frontend/src/app/applications/admin/admin.constants.ts
@@ -1,4 +1,4 @@
-import { faGear, faLayerGroup, faScrewdriverWrench, faUserGear, faUsersGear } from '@fortawesome/free-solid-svg-icons'
+import { LucideLayers, LucideSettings, LucideUserRoundCog, LucideUsersRound, LucideWrench } from '@lucide/angular'
import { AppMenu } from '../../layout/layout.interfaces'
export const ADMIN_PATH = {
@@ -22,11 +22,11 @@ export const ADMIN_TITLE = {
} as const
export const ADMIN_ICON = {
- BASE: faGear,
- USERS: faUserGear,
- GROUPS: faUsersGear,
- SPACES: faLayerGroup,
- TOOLS: faScrewdriverWrench
+ BASE: LucideSettings,
+ USERS: LucideUserRoundCog,
+ GROUPS: LucideUsersRound,
+ SPACES: LucideLayers,
+ TOOLS: LucideWrench
} as const
export const ADMIN_MENU: AppMenu = {
diff --git a/frontend/src/app/applications/admin/components/admin-groups.component.html b/frontend/src/app/applications/admin/components/admin-groups.component.html
index 98606ebe..11c13dd5 100644
--- a/frontend/src/app/applications/admin/components/admin-groups.component.html
+++ b/frontend/src/app/applications/admin/components/admin-groups.component.html
@@ -4,25 +4,25 @@
class="d-none d-sm-block btn btn-default me-1"
[tooltip]="'Refresh' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faRotate" [animation]="loading ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw" [class.icon-spin]="loading"></svg>
</button>
<div class="btn-group me-1" dropdown>
<button class="btn btn-default dropdown-toggle"
dropdownToggle
[tooltip]="'New' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu" role="menu">
<li role="menuitem">
<a (click)="openDialog(true)" class="dropdown-item" [class.disabled]="!!currentGroup && personalGroupsView">
- <span l10nTranslate><fa-icon [icon]="icons.GROUPS"></fa-icon>
+ <span l10nTranslate><svg [lucideIcon]="icons.GROUPS"></svg>
{{ personalGroupsView ? 'Personal group' : 'Group' }}</span>
</a>
</li>
<li role="menuitem">
<a (click)="addUserToGroupDialog()" class="dropdown-item" [class.disabled]="!currentGroup">
- <span l10nTranslate><fa-icon [icon]="icons.faUserPlus"></fa-icon>Add members</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideUserRoundPlus"></svg>Add members</span>
</a>
</li>
</ul>
@@ -32,14 +32,14 @@
[disabled]="!selected"
[tooltip]="(selected?.isUser ? 'Remove from group' : 'Delete group') | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faMinus"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMinus"></svg>
</button>
<button (click)="openDialog()"
[disabled]="!selected"
class="btn btn-default me-1"
[tooltip]="(selected?.isGroup ? 'Edit group' : 'Edit user') | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencil"></svg>
</button>
<div class="ms-auto">
<button btnCheckbox
@@ -48,7 +48,7 @@
type="button"
class="btn btn-custom me-1">
<div class="d-flex align-items-center">
- <fa-icon [icon]="personalGroupsView ? icons.faToggleOn : icons.faToggleOff" class="me-2"></fa-icon>
+ <svg [lucideIcon]="personalGroupsView ? icons.LucideToggleRight : icons.LucideToggleLeft" class="me-2"></svg>
<span l10nTranslate>Personal groups</span>
</div>
</button>
@@ -74,7 +74,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -103,13 +103,15 @@
@if (m.isUser) {
<img class="avatar-img" [src]="m.avatarUrl" alt="">
} @else {
- <fa-icon [icon]="icons.GROUPS" class="{{m.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}"></fa-icon>
+ <span class="{{m.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}">
+ <svg [lucideIcon]="icons.GROUPS"></svg>
+ </span>
}
<div class="d-flex flex-column text-truncate">
<span class="no-pointer-events" draggable="false">
{{ m.name }}
@if (m.isUser && m.isGroupManager) {
- <fa-icon class="m-0" [icon]="icons.faKey"></fa-icon>
+ <svg class="m-0" [lucideIcon]="icons.LucideKeyRound"></svg>
}
</span>
<span class="no-pointer-events text-muted fs-xs" draggable="false">{{ m.description }}</span>
@@ -157,33 +159,33 @@
<context-menu #MainContextMenu>
@if (!!currentGroup && !personalGroupsView || !currentGroup && personalGroupsView) {
<ng-template (execute)="openDialog(true)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPlus"></fa-icon>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePlus"></svg>
{{ personalGroupsView ? 'Personal group' : 'Group' }}</span>
</ng-template>
}
@if (!!currentGroup) {
<ng-template (execute)="addUserToGroupDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faUserPlus"></fa-icon>Add members</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideUserRoundPlus"></svg>Add members</span>
</ng-template>
}
<ng-template [divider]="true" contextMenuItem></ng-template>
<ng-template (execute)="refresh()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>Refresh</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
</context-menu>
<context-menu #TargetContextMenu>
@if (selected) {
<ng-template (execute)="openDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPen"></fa-icon>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePencil"></svg>
{{ selected.isGroup ? 'Edit group' : 'Edit user' }}</span>
</ng-template>
@if (selected.isGroup) {
<ng-template (execute)="openDialog(false, true)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faMinus"></fa-icon>Delete group</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideMinus"></svg>Delete group</span>
</ng-template>
} @else {
<ng-template (execute)="openDialog(false, true)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faUserMinus"></fa-icon>Remove from group</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideUserMinus"></svg>Remove from group</span>
</ng-template>
}
}
diff --git a/frontend/src/app/applications/admin/components/admin-groups.component.ts b/frontend/src/app/applications/admin/components/admin-groups.component.ts
index 926fbdc2..28808229 100644
--- a/frontend/src/app/applications/admin/components/admin-groups.component.ts
+++ b/frontend/src/app/applications/admin/components/admin-groups.component.ts
@@ -3,21 +3,20 @@ import { HttpErrorResponse } from '@angular/common/http'
import { Component, ElementRef, inject, ViewChild } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { ActivatedRoute, Data, Router, UrlSegment } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import {
- faArrowDown,
- faArrowRotateRight,
- faArrowUp,
- faKey,
- faMinus,
- faPen,
- faPlus,
- faRotate,
- faToggleOff,
- faToggleOn,
- faUserMinus,
- faUserPlus
-} from '@fortawesome/free-solid-svg-icons'
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideDynamicIcon,
+ LucideKeyRound,
+ LucideMinus,
+ LucidePencil,
+ LucidePlus,
+ LucideRotateCw,
+ LucideToggleLeft,
+ LucideToggleRight,
+ LucideUserMinus,
+ LucideUserRoundPlus
+} from '@lucide/angular'
import { ContextMenuComponent, ContextMenuModule } from '@perfectmemory/ngx-contextmenu'
import { GROUP_TYPE } from '@sync-in-server/backend/src/applications/users/constants/group'
import { MEMBER_TYPE } from '@sync-in-server/backend/src/applications/users/constants/member'
@@ -54,7 +53,7 @@ import { AdminGroupEditUserDialogComponent } from './dialogs/admin-group-edit-us
selector: 'app-admin-groups',
imports: [
ContextMenuModule,
- FaIconComponent,
+ LucideDynamicIcon,
KeyValuePipe,
L10nTranslateDirective,
L10nTranslatePipe,
@@ -86,18 +85,17 @@ export class AdminGroupsComponent {
protected readonly originalOrderKeyValue = originalOrderKeyValue
protected readonly icons = {
GROUPS: USER_ICON.GROUPS,
- faRotate,
- faPlus,
- faMinus,
- faPen,
- faArrowDown,
- faArrowUp,
- faKey,
- faUserPlus,
- faUserMinus,
- faArrowRotateRight,
- faToggleOn,
- faToggleOff
+ LucideRotateCw,
+ LucidePlus,
+ LucideMinus,
+ LucidePencil,
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideKeyRound,
+ LucideUserRoundPlus,
+ LucideUserMinus,
+ LucideToggleRight,
+ LucideToggleLeft
}
// Sort
protected tableHeaders: Record<'name' | 'type' | 'members' | 'createdAndModified', TableHeaderConfig> = {
diff --git a/frontend/src/app/applications/admin/components/admin-spaces.component.html b/frontend/src/app/applications/admin/components/admin-spaces.component.html
index 6bd647ea..539d7593 100644
--- a/frontend/src/app/applications/admin/components/admin-spaces.component.html
+++ b/frontend/src/app/applications/admin/components/admin-spaces.component.html
@@ -4,27 +4,27 @@
class="d-none d-sm-block btn btn-default me-1"
[tooltip]="'Refresh' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faArrowRotateRight" [animation]="loading ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw" [class.icon-spin]="loading"></svg>
</button>
<button (click)="openSpaceDialog(true)"
class="btn btn-default me-1"
[tooltip]="'New space' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
</button>
<button (click)="openSpaceDialog()"
[disabled]="!selected"
class="btn btn-default me-1"
[tooltip]="'Edit space' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencil"></svg>
</button>
<button (click)="openChildShareDialog()"
[disabled]="!selected?.counts.shares"
class="btn btn-default me-1"
[tooltip]="'Edit children shares' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.SHARES"></fa-icon>
+ <svg [lucideIcon]="icons.SHARES"></svg>
</button>
<div class="ms-auto">
<!--Start Filter Button-->
@@ -48,7 +48,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -75,7 +75,9 @@
@switch (th.key) {
@case ('name') {
<div class="d-flex align-items-center">
- <fa-icon [icon]="icons.SPACES" class="circle-primary-icon" [fixedWidth]="false"></fa-icon>
+ <span class="circle-primary-icon">
+ <svg [lucideIcon]="icons.SPACES"></svg>
+ </span>
<div class="d-flex flex-column text-truncate">
<span class="no-pointer-events text-file-name-preserve" draggable="false">{{ s.name }}</span>
<span class="no-pointer-events text-muted fs-xs" draggable="false">{{ s.description }}</span>
@@ -96,7 +98,7 @@
@case ('info') {
@if (s.counts.shares) {
<span (click)="openChildShareDialog(s)" class="badge bg-purple cursor-pointer me-1">
- <fa-icon [icon]="icons.SHARES"></fa-icon>
+ <svg [lucideIcon]="icons.SHARES"></svg>
{{ s.counts.shares }}
</span>
}
@@ -126,20 +128,20 @@
<context-menu #MainContextMenu>
<ng-template
(execute)="openSpaceDialog(true)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPlus"></fa-icon>New space</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePlus"></svg>New space</span>
</ng-template>
<ng-template [divider]="true" contextMenuItem></ng-template>
<ng-template (execute)="loadSpaces()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>Refresh</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
</context-menu>
<context-menu #TargetContextMenu>
<ng-template (execute)="openSpaceDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPen"></fa-icon>Edit space</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePencil"></svg>Edit space</span>
</ng-template>
@if (!!selected?.counts.shares) {
<ng-template (execute)="openChildShareDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.SHARES"></fa-icon>Edit children shares</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.SHARES"></svg>Edit children shares</span>
</ng-template>
}
</context-menu>
diff --git a/frontend/src/app/applications/admin/components/admin-spaces.component.ts b/frontend/src/app/applications/admin/components/admin-spaces.component.ts
index f139b91b..7d998e9e 100644
--- a/frontend/src/app/applications/admin/components/admin-spaces.component.ts
+++ b/frontend/src/app/applications/admin/components/admin-spaces.component.ts
@@ -2,8 +2,7 @@ import { KeyValuePipe } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, ElementRef, inject, ViewChild } from '@angular/core'
import { ActivatedRoute } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faArrowDown, faArrowRotateRight, faArrowUp, faPen, faPlus, faRotate, faUpload } from '@fortawesome/free-solid-svg-icons'
+import { LucideArrowDown, LucideArrowUp, LucideDynamicIcon, LucideHardDriveUpload, LucidePencil, LucidePlus, LucideRotateCw } from '@lucide/angular'
import { ContextMenuComponent, ContextMenuModule } from '@perfectmemory/ngx-contextmenu'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { BsModalRef } from 'ngx-bootstrap/modal'
@@ -34,7 +33,7 @@ import { ToBytesPipe } from '../../../common/pipes/to-bytes.pipe'
imports: [
KeyValuePipe,
L10nTranslateDirective,
- FaIconComponent,
+ LucideDynamicIcon,
UserAvatarStackComponent,
VirtualScrollComponent,
TooltipModule,
@@ -60,13 +59,12 @@ export class AdminSpacesComponent {
protected readonly icons = {
SPACES: ADMIN_ICON.SPACES,
SHARES: SPACES_ICON.SHARES,
- faArrowDown,
- faArrowUp,
- faRotate,
- faArrowRotateRight,
- faUpload,
- faPlus,
- faPen
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideRotateCw,
+ LucideHardDriveUpload,
+ LucidePlus,
+ LucidePencil
}
// Sort
protected tableHeaders: Record<'name' | 'managers' | 'storage' | 'members' | 'info' | 'modified', TableHeaderConfig> = {
diff --git a/frontend/src/app/applications/admin/components/admin-tools.component.html b/frontend/src/app/applications/admin/components/admin-tools.component.html
index 306b1ee7..a5cc334a 100644
--- a/frontend/src/app/applications/admin/components/admin-tools.component.html
+++ b/frontend/src/app/applications/admin/components/admin-tools.component.html
@@ -64,7 +64,7 @@
(click)="stopIndexing()"
class="btn btn-sm btn-warning btn-sm text-nowrap"
type="button">
- <fa-icon [icon]="icons.faStop"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSquareStop"></svg>
<span class="ms-1" l10nTranslate>Stop</span>
</button>
} @else {
@@ -73,7 +73,7 @@
[disabled]="indexingStatus.state === IndexingState.STOPPING || indexingStatus.state === IndexingState.DISABLED"
class="btn btn-sm btn-success btn-sm text-nowrap"
type="button">
- <fa-icon [icon]="icons.faPlay"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlay"></svg>
<span class="ms-1" l10nTranslate>Start</span>
</button>
}
@@ -97,7 +97,7 @@
type="button"
[disabled]="(indexingStatus.state !== IndexingState.IDLE && indexingStatus.state !== IndexingState.DISABLED) ||
indexingStatus.indexesCount === 0">
- <fa-icon [icon]="icons.faTrash"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTrash2"></svg>
<span class="ms-1" l10nTranslate>Remove</span>
</button>
</div>
diff --git a/frontend/src/app/applications/admin/components/admin-tools.component.ts b/frontend/src/app/applications/admin/components/admin-tools.component.ts
index 63b91955..d3be04a1 100644
--- a/frontend/src/app/applications/admin/components/admin-tools.component.ts
+++ b/frontend/src/app/applications/admin/components/admin-tools.component.ts
@@ -1,7 +1,6 @@
import { Component, DestroyRef, inject } from '@angular/core'
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faPlay, faStop, faTrash } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucidePlay, LucideSquareStop, LucideTrash2 } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { AutoResizeDirective } from '../../../common/directives/auto-resize.directive'
import { ADMIN_ICON, ADMIN_PATH, ADMIN_TITLE } from '../admin.constants'
@@ -13,11 +12,11 @@ import { TimeDateFormatPipe } from '../../../common/pipes/time-date-format.pipe'
@Component({
selector: 'app-admin-tools',
- imports: [AutoResizeDirective, L10nTranslateDirective, FaIconComponent, TimeDateFormatPipe],
+ imports: [AutoResizeDirective, L10nTranslateDirective, LucideDynamicIcon, TimeDateFormatPipe],
templateUrl: 'admin-tools.component.html'
})
export class AdminToolsComponent {
- protected readonly icons = { faTrash, faPlay, faStop }
+ protected readonly icons = { LucideTrash2, LucidePlay, LucideSquareStop }
protected readonly IndexingState = IndexingState
protected confirmResetIndexing = false
protected indexingStatus: IndexingStatus = { indexesCount: 0, state: this.IndexingState.IDLE, lastFullRunAt: null, lastPartialRunAt: null }
diff --git a/frontend/src/app/applications/admin/components/admin-users.component.html b/frontend/src/app/applications/admin/components/admin-users.component.html
index 058bd299..224bb1f4 100644
--- a/frontend/src/app/applications/admin/components/admin-users.component.html
+++ b/frontend/src/app/applications/admin/components/admin-users.component.html
@@ -4,27 +4,27 @@
class="d-none d-sm-block btn btn-default me-1"
[tooltip]="'Refresh' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faRotate" [animation]="loading ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw" [class.icon-spin]="loading"></svg>
</button>
<button (click)="openDialog(true)"
class="btn btn-default me-1"
[tooltip]="(guestsView ? 'New guest' : 'New user') | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faUserPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRoundPlus"></svg>
</button>
<button (click)="openDialog()"
[disabled]="!selected"
class="btn btn-default me-1"
[tooltip]="(guestsView ? 'Edit guest' : 'Edit user') | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faUserPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRoundPen"></svg>
</button>
<button (click)="impersonateIdentity()"
[disabled]="!selected"
class="d-none d-sm-block btn btn-default me-1"
[tooltip]="'Impersonate identity' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faUserSecret"></fa-icon>
+ <svg [lucideIcon]="icons.LucideVenetianMask"></svg>
</button>
<div class="ms-auto">
<!--Start Filter Button-->
@@ -34,7 +34,7 @@
type="button"
class="btn btn-custom me-1">
<div class="d-flex align-items-center">
- <fa-icon [icon]="guestsView ? icons.faToggleOn : icons.faToggleOff" class="me-2"></fa-icon>
+ <svg [lucideIcon]="guestsView ? icons.LucideToggleRight : icons.LucideToggleLeft" class="me-2"></svg>
<span l10nTranslate>Guests</span>
</div>
</button>
@@ -59,7 +59,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -91,7 +91,7 @@
<span class="no-pointer-events" draggable="false">
{{ u.login }}
@if (u.isAdmin) {
- <fa-icon class="m-0" [icon]="icons.faKey"></fa-icon>
+ <svg class="m-0" [lucideIcon]="icons.LucideKeyRound"></svg>
}
</span>
<span class="no-pointer-events text-muted fs-xs" draggable="false">{{ u.email }}</span>
@@ -167,20 +167,20 @@
<!--Start Context Menu -->
<context-menu #MainContextMenu>
<ng-template (execute)="openDialog(true)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faUserPlus"></fa-icon>New {{ guestsView ? 'guest' : 'user' }}</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideUserRoundPlus"></svg>New {{ guestsView ? 'guest' : 'user' }}</span>
</ng-template>
<ng-template [divider]="true" contextMenuItem></ng-template>
<ng-template (execute)="loadUsersOrGuests()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>Refresh</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
</context-menu>
<context-menu #TargetContextMenu>
<ng-template (execute)="openDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faUserPen"></fa-icon>Edit {{ guestsView ? 'guest' : 'user' }}</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideUserRoundPen"></svg>Edit {{ guestsView ? 'guest' : 'user' }}</span>
</ng-template>
<ng-template [divider]="true" contextMenuItem></ng-template>
<ng-template (execute)="impersonateIdentity()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faUserSecret"></fa-icon>Impersonate identity</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideVenetianMask"></svg>Impersonate identity</span>
</ng-template>
</context-menu>
<!--End Context Menu-->
diff --git a/frontend/src/app/applications/admin/components/admin-users.component.ts b/frontend/src/app/applications/admin/components/admin-users.component.ts
index d58a43f7..cb0efbce 100644
--- a/frontend/src/app/applications/admin/components/admin-users.component.ts
+++ b/frontend/src/app/applications/admin/components/admin-users.component.ts
@@ -3,19 +3,18 @@ import { HttpErrorResponse } from '@angular/common/http'
import { Component, ElementRef, inject, ViewChild } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { ActivatedRoute, Data, Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import {
- faArrowDown,
- faArrowRotateRight,
- faArrowUp,
- faKey,
- faRotate,
- faToggleOff,
- faToggleOn,
- faUserPen,
- faUserPlus,
- faUserSecret
-} from '@fortawesome/free-solid-svg-icons'
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideDynamicIcon,
+ LucideKeyRound,
+ LucideRotateCw,
+ LucideToggleLeft,
+ LucideToggleRight,
+ LucideUserRoundPen,
+ LucideUserRoundPlus,
+ LucideVenetianMask
+} from '@lucide/angular'
import { ContextMenuComponent, ContextMenuModule } from '@perfectmemory/ngx-contextmenu'
import { USER_ROLE } from '@sync-in-server/backend/src/applications/users/constants/user'
import type { LoginResponseDto } from '@sync-in-server/backend/src/authentication/dto/login-response.dto'
@@ -47,7 +46,7 @@ import { ToBytesPipe } from '../../../common/pipes/to-bytes.pipe'
@Component({
selector: 'app-admin-users',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslatePipe,
FilterComponent,
TooltipDirective,
@@ -78,16 +77,15 @@ export class AdminUsersComponent {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly originalOrderKeyValue = originalOrderKeyValue
protected readonly icons = {
- faRotate,
- faUserPlus,
- faUserPen,
- faArrowDown,
- faArrowUp,
- faKey,
- faUserSecret,
- faArrowRotateRight,
- faToggleOn,
- faToggleOff
+ LucideRotateCw,
+ LucideUserRoundPlus,
+ LucideUserRoundPen,
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideKeyRound,
+ LucideVenetianMask,
+ LucideToggleRight,
+ LucideToggleLeft
}
// Sort
protected tableHeaders: Record<'login' | 'fullName' | 'managers' | 'storage' | 'currentAccess' | 'currentIp' | 'isActive', TableHeaderConfig> = {
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-group-add-users-dialog.component.html b/frontend/src/app/applications/admin/components/dialogs/admin-group-add-users-dialog.component.html
index 697a5561..05d09342 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-group-add-users-dialog.component.html
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-group-add-users-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faUserPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRoundPlus"></svg>
<span>{{ parentGroup.name }}</span>
</h4>
<h4 class="modal-title ms-auto">
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-group-add-users-dialog.component.ts b/frontend/src/app/applications/admin/components/dialogs/admin-group-add-users-dialog.component.ts
index e88cf06a..ff8b9439 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-group-add-users-dialog.component.ts
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-group-add-users-dialog.component.ts
@@ -1,7 +1,6 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, Output } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faUserPlus } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideUserRoundPlus } from '@lucide/angular'
import { GROUP_TYPE } from '@sync-in-server/backend/src/applications/users/constants/group'
import { USER_ROLE } from '@sync-in-server/backend/src/applications/users/constants/user'
import type { SearchMembersDto } from '@sync-in-server/backend/src/applications/users/dto/search-members.dto'
@@ -15,7 +14,7 @@ import { AdminService } from '../../admin.service'
@Component({
selector: 'app-admin-group-add-users-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, UserSearchComponent],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, UserSearchComponent],
templateUrl: 'admin-group-add-users-dialog.component.html'
})
export class AdminGroupAddUsersDialogComponent {
@@ -25,7 +24,7 @@ export class AdminGroupAddUsersDialogComponent {
protected readonly layout = inject(LayoutService)
protected newMembers: MemberModel[] = []
protected submitted = false
- protected readonly icons = { faUserPlus }
+ protected readonly icons = { LucideUserRoundPlus }
private readonly adminService = inject(AdminService)
searchMembers(query: string): Observable<MemberModel[]> {
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-group-delete-dialog.component.html b/frontend/src/app/applications/admin/components/dialogs/admin-group-delete-dialog.component.html
index 69e296be..b8755b0a 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-group-delete-dialog.component.html
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-group-delete-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="member.isUser ? icons.faUserMinus : icons.faMinus"></fa-icon>
+ <svg [lucideIcon]="member.isUser ? icons.LucideUserMinus : icons.LucideMinus"></svg>
<span>{{ member.name }}</span>
</h4>
<h4 class="modal-title ms-auto">
@@ -14,7 +14,9 @@
@if (member.isUser) {
<img class="avatar-img" [src]="member.avatarUrl" alt="">
} @else {
- <fa-icon [icon]="icons.GROUPS" class="{{member.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}"></fa-icon>
+ <span class="{{member.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}">
+ <svg [lucideIcon]="icons.GROUPS"></svg>
+ </span>
}
</div>
<span class="text-bold me-1">{{ member.name | capitalize }}</span>
@@ -40,4 +42,3 @@
</button>
</div>
-
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-group-delete-dialog.component.ts b/frontend/src/app/applications/admin/components/dialogs/admin-group-delete-dialog.component.ts
index 0caa08a7..d24acd3d 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-group-delete-dialog.component.ts
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-group-delete-dialog.component.ts
@@ -1,7 +1,6 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, Output } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faMinus, faUserMinus } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideMinus, LucideUserMinus } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { CapitalizePipe } from '../../../../common/pipes/capitalize.pipe'
import { LayoutService } from '../../../../layout/layout.service'
@@ -12,7 +11,7 @@ import { AdminService } from '../../admin.service'
@Component({
selector: 'app-admin-group-delete-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, CapitalizePipe],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, CapitalizePipe],
templateUrl: 'admin-group-delete-dialog.component.html'
})
export class AdminGroupDeleteDialogComponent {
@@ -20,7 +19,7 @@ export class AdminGroupDeleteDialogComponent {
@Input({ required: true }) member: MemberModel
@Output() wasDeleted = new EventEmitter<boolean>()
protected submitted = false
- protected readonly icons = { GROUPS: USER_ICON.GROUPS, faMinus, faUserMinus }
+ protected readonly icons = { GROUPS: USER_ICON.GROUPS, LucideMinus, LucideUserMinus }
private readonly layout = inject(LayoutService)
private readonly adminService = inject(AdminService)
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-group-dialog.component.html b/frontend/src/app/applications/admin/components/dialogs/admin-group-dialog.component.html
index eb1b7694..d26a6ea9 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-group-dialog.component.html
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-group-dialog.component.html
@@ -1,10 +1,10 @@
<div class="modal-header">
<h4 class="modal-title">
@if (group) {
- <fa-icon [icon]="icons.faPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencil"></svg>
<span>{{ group.name }}</span>
} @else {
- <fa-icon [icon]="icons.faPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
<span l10nTranslate>New group</span>
}
</h4>
@@ -20,7 +20,7 @@
<tab (selectTab)="tabView=null" customClass="tab-dialog form-validation">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faCog"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSettings"></svg>
<span class="app-tab-label" l10nTranslate>Settings</span>
</span>
</ng-template>
@@ -119,7 +119,7 @@
<tab (selectTab)="tabView='permissions'" customClass="tab-dialog form-validation">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faShieldHalved"></fa-icon>
+ <svg [lucideIcon]="icons.LucideShieldCheck"></svg>
<span class="app-tab-label" l10nTranslate>Permissions</span>
</span>
</ng-template>
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-group-dialog.component.ts b/frontend/src/app/applications/admin/components/dialogs/admin-group-dialog.component.ts
index d782bbed..29735842 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-group-dialog.component.ts
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-group-dialog.component.ts
@@ -2,8 +2,7 @@ import { KeyValuePipe } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, OnInit, Output } from '@angular/core'
import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faCog, faPen, faPlus, faShieldHalved } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucidePencil, LucidePlus, LucideSettings, LucideShieldCheck } from '@lucide/angular'
import { GROUP_VISIBILITY } from '@sync-in-server/backend/src/applications/users/constants/group'
import { USER_PERMISSION, USER_PERMS_SEP } from '@sync-in-server/backend/src/applications/users/constants/user'
import type { CreateOrUpdateGroupDto } from '@sync-in-server/backend/src/applications/users/dto/create-or-update-group.dto'
@@ -24,7 +23,7 @@ import { AdminPermissionsComponent } from '../utils/admin-permissions.component'
@Component({
selector: 'app-admin-group-dialog',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslateDirective,
ReactiveFormsModule,
AutofocusDirective,
@@ -45,7 +44,7 @@ export class AdminGroupDialogComponent implements OnInit {
@Output() groupChange = new EventEmitter<['add' | 'update', AdminGroupModel]>()
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly layout = inject(LayoutService)
- protected readonly icons = { GROUPS: USER_ICON.GROUPS, faPen, faPlus, faCog, faShieldHalved }
+ protected readonly icons = { GROUPS: USER_ICON.GROUPS, LucidePencil, LucidePlus, LucideSettings, LucideShieldCheck }
protected tabView: undefined | 'permissions'
protected submitted = false
protected readonly originalOrderKeyValue = originalOrderKeyValue
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-group-edit-user-dialog.component.html b/frontend/src/app/applications/admin/components/dialogs/admin-group-edit-user-dialog.component.html
index 3b4ce55d..fc7fb524 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-group-edit-user-dialog.component.html
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-group-edit-user-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faUserPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRoundPen"></svg>
<span>{{ user.name }}</span>
</h4>
<h4 class="modal-title ms-auto">
@@ -19,7 +19,7 @@
type="checkbox"
/>
<span l10nTranslate>Set as group manager</span>
- <fa-icon class="ms-1" [icon]="icons.faKey"></fa-icon>
+ <svg class="ms-1" [lucideIcon]="icons.LucideKeyRound"></svg>
</label>
</div>
</div>
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-group-edit-user-dialog.component.ts b/frontend/src/app/applications/admin/components/dialogs/admin-group-edit-user-dialog.component.ts
index 2a28fe72..43e00ac1 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-group-edit-user-dialog.component.ts
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-group-edit-user-dialog.component.ts
@@ -1,8 +1,7 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, inject, Input, OnInit } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faKey, faUserPen } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideKeyRound, LucideUserRoundPen } from '@lucide/angular'
import { USER_GROUP_ROLE } from '@sync-in-server/backend/src/applications/users/constants/user'
import { L10nTranslateDirective } from 'angular-l10n'
import { LayoutService } from '../../../../layout/layout.service'
@@ -12,7 +11,7 @@ import { AdminGroupModel } from '../../models/admin-group.model'
@Component({
selector: 'app-admin-group-edit-user-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, FormsModule],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, FormsModule],
templateUrl: 'admin-group-edit-user-dialog.component.html'
})
export class AdminGroupEditUserDialogComponent implements OnInit {
@@ -22,7 +21,7 @@ export class AdminGroupEditUserDialogComponent implements OnInit {
protected submitted = false
protected isManager = false
protected readonly USER_GROUP_ROLE = USER_GROUP_ROLE
- protected readonly icons = { faUserPen, faKey }
+ protected readonly icons = { LucideUserRoundPen, LucideKeyRound }
private readonly adminService = inject(AdminService)
ngOnInit() {
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-guest-dialog.component.ts b/frontend/src/app/applications/admin/components/dialogs/admin-guest-dialog.component.ts
index ec7cf8a1..c6d9c3a9 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-guest-dialog.component.ts
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-guest-dialog.component.ts
@@ -2,7 +2,7 @@ import { TitleCasePipe } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, inject } from '@angular/core'
import { ReactiveFormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
+import { LucideDynamicIcon } from '@lucide/angular'
import { USER_ROLE } from '@sync-in-server/backend/src/applications/users/constants/user'
import type { SearchMembersDto } from '@sync-in-server/backend/src/applications/users/dto/search-members.dto'
import { L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -21,7 +21,7 @@ import { AdminService } from '../../admin.service'
@Component({
selector: 'app-admin-guest-dialog',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslateDirective,
TimeDateFormatPipe,
ReactiveFormsModule,
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-user-delete-dialog.component.html b/frontend/src/app/applications/admin/components/dialogs/admin-user-delete-dialog.component.html
index b1660c57..847dde1d 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-user-delete-dialog.component.html
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-user-delete-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faUserMinus"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserMinus"></svg>
<span>{{ user.fullName }}</span>
</h4>
@if (user) {
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-user-delete-dialog.component.ts b/frontend/src/app/applications/admin/components/dialogs/admin-user-delete-dialog.component.ts
index 1aed426f..403181ec 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-user-delete-dialog.component.ts
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-user-delete-dialog.component.ts
@@ -1,8 +1,7 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, Output } from '@angular/core'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faUserMinus } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideUserMinus } from '@lucide/angular'
import type { DeleteUserDto } from '@sync-in-server/backend/src/applications/users/dto/delete-user.dto'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective } from 'angular-l10n'
import { CapitalizePipe } from '../../../../common/pipes/capitalize.pipe'
@@ -13,7 +12,7 @@ import { AdminUserModel } from '../../models/admin-user.model'
@Component({
selector: 'app-admin-user-delete-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, ReactiveFormsModule, CapitalizePipe, FormsModule],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, ReactiveFormsModule, CapitalizePipe, FormsModule],
templateUrl: 'admin-user-delete-dialog.component.html'
})
export class AdminUserDeleteDialogComponent {
@@ -21,7 +20,7 @@ export class AdminUserDeleteDialogComponent {
@Output() wasDeleted = new EventEmitter<boolean>()
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected submitted = false
- protected readonly icons = { faUserMinus }
+ protected readonly icons = { LucideUserMinus }
protected deleteSpace = false
private readonly layout = inject(LayoutService)
private readonly adminService = inject(AdminService)
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-user-dialog.component.html b/frontend/src/app/applications/admin/components/dialogs/admin-user-dialog.component.html
index 6c83d236..678967e2 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-user-dialog.component.html
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-user-dialog.component.html
@@ -1,14 +1,14 @@
<div class="modal-header">
<h4 class="modal-title">
@if (user) {
- <fa-icon [icon]="icons.faUserPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRoundPen"></svg>
<span>{{ user.fullName }}</span>
} @else {
- <fa-icon [icon]="icons.faUserPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRoundPlus"></svg>
<span l10nTranslate>New user</span>
}
@if (loading) {
- <fa-icon [icon]="icons.faSpinner" animation="spin" class="ms-2" size="sm"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true" class="ms-2"></svg>
}
</h4>
@if (user) {
@@ -23,7 +23,7 @@
<tab (selectTab)="tabView=null" customClass="tab-dialog form-validation">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faAddressCard"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRoundCog"></svg>
<span class="app-tab-label" l10nTranslate>Account</span>
</span>
</ng-template>
@@ -99,13 +99,13 @@
<div>
<label class="form-label" for="twoFa" l10nTranslate>Two-Factor Authentication</label>
<div id="twoFa" class="pt-1 d-flex align-items-center flex-wrap gap-2">
- <span>
- <fa-icon [icon]="user.twoFaEnabled ? icons.faLock : icons.faLockOpen"></fa-icon>
+ <span class="d-inline-flex align-items-center gap-2">
+ <svg class="two-fa-status-icon" [lucideIcon]="user.twoFaEnabled ? icons.LucideLock : icons.LucideLockOpen"></svg>
{{ (user.twoFaEnabled ? 'enabled' : 'disabled') | translate:locale.language | titlecase }}
</span>
@if (user.twoFaEnabled) {
<span (click)="reset2Fa()" class="link-danger" role="button">
- <fa-icon [icon]="icons.faTrash"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTrash2"></svg>
<span class="ms-1" l10nTranslate>Reset</span>
</span>
}
@@ -197,7 +197,7 @@
<tab (selectTab)="tabView='permissions'" customClass="tab-dialog">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faShieldHalved"></fa-icon>
+ <svg [lucideIcon]="icons.LucideShieldCheck"></svg>
<span class="app-tab-label" l10nTranslate>Permissions</span>
</span>
</ng-template>
@@ -249,7 +249,9 @@
@if (g.permissions) {
<div class="d-flex align-items-center mb-1 gap-2">
<div class="d-flex align-items-center me-4">
- <fa-icon [icon]="icons.GROUPS" class="circle-primary-icon me-2"></fa-icon>
+ <span class="circle-primary-icon me-2">
+ <svg [lucideIcon]="icons.GROUPS"></svg>
+ </span>
<span>{{ g.name }}</span>
</div>
<div class="d-flex fs-xs ms-auto">{{ g.permissions | split | join:true }}</div>
@@ -267,7 +269,7 @@
<tab (selectTab)="tabView='groups'" customClass="tab-dialog">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faUsers"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUsersRound"></svg>
<span class="app-tab-label" l10nTranslate>Groups</span>
<span class="app-tab-count">{{ userForm.value.groups.length || 0 }}</span>
</span>
diff --git a/frontend/src/app/applications/admin/components/dialogs/admin-user-dialog.component.ts b/frontend/src/app/applications/admin/components/dialogs/admin-user-dialog.component.ts
index 41731ceb..b9ea0d1e 100644
--- a/frontend/src/app/applications/admin/components/dialogs/admin-user-dialog.component.ts
+++ b/frontend/src/app/applications/admin/components/dialogs/admin-user-dialog.component.ts
@@ -2,18 +2,18 @@ import { TitleCasePipe } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, OnInit, Output } from '@angular/core'
import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import {
- faAddressCard,
- faLock,
- faLockOpen,
- faShieldHalved,
- faSpinner,
- faTrash,
- faUserPen,
- faUserPlus,
- faUsers
-} from '@fortawesome/free-solid-svg-icons'
+ LucideDynamicIcon,
+ LucideLoader,
+ LucideLock,
+ LucideLockOpen,
+ LucideShieldCheck,
+ LucideTrash2,
+ LucideUserRoundCog,
+ LucideUserRoundPen,
+ LucideUserRoundPlus,
+ LucideUsersRound
+} from '@lucide/angular'
import { USER_LOGIN_VALIDATION, USER_PERMISSION, USER_PERMS_SEP, USER_ROLE } from '@sync-in-server/backend/src/applications/users/constants/user'
import type { CreateUserDto, UpdateUserDto } from '@sync-in-server/backend/src/applications/users/dto/create-or-update-user.dto'
import type { SearchMembersDto } from '@sync-in-server/backend/src/applications/users/dto/search-members.dto'
@@ -45,7 +45,7 @@ import { AdminUserDeleteDialogComponent } from './admin-user-delete-dialog.compo
@Component({
selector: 'app-admin-user-dialog',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslateDirective,
TabDirective,
TabHeadingDirective,
@@ -64,7 +64,12 @@ import { AdminUserDeleteDialogComponent } from './admin-user-delete-dialog.compo
AdminPermissionsComponent,
TimeDateFormatPipe
],
- templateUrl: 'admin-user-dialog.component.html'
+ templateUrl: 'admin-user-dialog.component.html',
+ styles: `
+ .two-fa-status-icon {
+ font-size: var(--font-size-lg);
+ }
+ `
})
export class AdminUserDialogComponent implements OnInit {
@Input() user: AdminUserModel = null
@@ -77,15 +82,15 @@ export class AdminUserDialogComponent implements OnInit {
protected tabView: undefined | 'permissions' | 'groups'
protected readonly icons = {
GROUPS: USER_ICON.GROUPS,
- faUserPlus,
- faUserPen,
- faSpinner,
- faAddressCard,
- faUsers,
- faShieldHalved,
- faTrash,
- faLock,
- faLockOpen
+ LucideUserRoundPlus,
+ LucideUserRoundPen,
+ LucideLoader,
+ LucideUserRoundCog,
+ LucideUsersRound,
+ LucideShieldCheck,
+ LucideTrash2,
+ LucideLock,
+ LucideLockOpen
}
protected readonly allNotifications = Object.values(USER_NOTIFICATION_TEXT)
protected readonly defaultPassword: string = this.layout.translateString(USER_PASSWORD_CHANGE_TEXT)
diff --git a/frontend/src/app/applications/comments/comments.constants.ts b/frontend/src/app/applications/comments/comments.constants.ts
index cb387c7f..c3120a5f 100644
--- a/frontend/src/app/applications/comments/comments.constants.ts
+++ b/frontend/src/app/applications/comments/comments.constants.ts
@@ -1,4 +1,4 @@
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
-import { faComments } from '@fortawesome/free-solid-svg-icons'
+import type { LucideIcon } from '@lucide/angular'
+import { LucideMessagesSquare } from '@lucide/angular'
-export const COMMENTS_ICON: IconDefinition = faComments
+export const COMMENTS_ICON: LucideIcon = LucideMessagesSquare
diff --git a/frontend/src/app/applications/comments/components/sidebar/comments-selection.component.html b/frontend/src/app/applications/comments/components/sidebar/comments-selection.component.html
index e5d9f7ce..5a110615 100644
--- a/frontend/src/app/applications/comments/components/sidebar/comments-selection.component.html
+++ b/frontend/src/app/applications/comments/components/sidebar/comments-selection.component.html
@@ -28,7 +28,7 @@
<div class="ms-auto align-self-center">
@if (comment.author.isAuthor || comment.isFileOwner) {
<i (click)="onEditComment(comment)" role="button" class="fs-md">
- <fa-icon [icon]="icons.faEdit"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSquarePen"></svg>
</i>
}
</div>
diff --git a/frontend/src/app/applications/comments/components/sidebar/comments-selection.component.ts b/frontend/src/app/applications/comments/components/sidebar/comments-selection.component.ts
index 1b6fe177..40964ff4 100644
--- a/frontend/src/app/applications/comments/components/sidebar/comments-selection.component.ts
+++ b/frontend/src/app/applications/comments/components/sidebar/comments-selection.component.ts
@@ -2,8 +2,7 @@ import { HttpErrorResponse } from '@angular/common/http'
import { Component, computed, ElementRef, inject, OnDestroy, Signal, ViewChild } from '@angular/core'
import { toObservable } from '@angular/core/rxjs-interop'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faEdit } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideSquarePen } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { Subscription } from 'rxjs'
import { AutofocusDirective } from '../../../../common/directives/auto-focus.directive'
@@ -24,7 +23,7 @@ import { CommentsService } from '../../services/comments.service'
L10nTranslateDirective,
AutoResizeDirective,
L10nTranslatePipe,
- FaIconComponent,
+ LucideDynamicIcon,
TimeDateFormatPipe,
TimeAgoPipe,
FormsModule,
@@ -36,7 +35,7 @@ export class CommentsSelectionComponent implements OnDestroy {
@ViewChild('CommentCreate', { static: true }) commentInput: ElementRef<HTMLInputElement>
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected comments: CommentModel[] = []
- protected readonly icons = { faEdit }
+ protected readonly icons = { LucideSquarePen }
private readonly store = inject(StoreService)
protected file: Signal<FileModel> = computed(() => (this.store.filesSelection().length ? this.store.filesSelection()[0] : null))
private readonly layout = inject(LayoutService)
diff --git a/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.html b/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.html
index c98900c1..c0eac0b2 100644
--- a/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.html
+++ b/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.html
@@ -2,12 +2,12 @@
<div class="recents-widget-card__header">
<div class="recents-widget-card__title-wrap">
<span class="recents-widget-card__title-icon">
- <fa-icon [icon]="icons.faCommentDots"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMessageSquareMore"></svg>
</span>
<span class="recents-widget-card__title" l10nTranslate>Comments</span>
</div>
<button type="button" class="recents-widget-card__toggle" (click)="switchMore()">
- <fa-icon [icon]="moreElements ? icons.faMagnifyingGlassMinus : icons.faMagnifyingGlassPlus"></fa-icon>
+ <svg [lucideIcon]="moreElements ? icons.LucideZoomOut : icons.LucideZoomIn"></svg>
</button>
</div>
<div class="recents-widget-card__body">
@@ -24,7 +24,7 @@
</button>
} @empty {
<div class="recent-empty-state">
- <fa-icon [icon]="icons.faCommentDots" size="2x"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMessageSquareMore"></svg>
<div class="mt-3" l10nTranslate>No recent comments</div>
</div>
}
diff --git a/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.ts b/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.ts
index 46feed93..ca14ec66 100644
--- a/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.ts
+++ b/frontend/src/app/applications/comments/components/widgets/comments-recents-widget.component.ts
@@ -1,8 +1,6 @@
import { Component, computed, inject, Signal } from '@angular/core'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faCommentDots } from '@fortawesome/free-regular-svg-icons'
-import { faMagnifyingGlassMinus, faMagnifyingGlassPlus } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideMessageSquareMore, LucideZoomIn, LucideZoomOut } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { LiveTimeAgoPipe } from '../../../../common/pipes/time-ago-live.pipe'
import { TAB_MENU } from '../../../../layout/layout.interfaces'
@@ -16,13 +14,13 @@ import { CommentsService } from '../../services/comments.service'
@Component({
selector: 'app-comments-recents-widget',
- imports: [L10nTranslateDirective, FaIconComponent, UserAvatarComponent, LiveTimeAgoPipe, FileLocationComponent],
+ imports: [L10nTranslateDirective, LucideDynamicIcon, UserAvatarComponent, LiveTimeAgoPipe, FileLocationComponent],
templateUrl: './comments-recents-widget.component.html',
styleUrl: './comments-recents-widget.component.scss'
})
export class CommentsRecentsWidgetComponent {
protected moreElements = false
- protected readonly icons = { faCommentDots, faMagnifyingGlassPlus, faMagnifyingGlassMinus }
+ protected readonly icons = { LucideMessageSquareMore, LucideZoomIn, LucideZoomOut }
private readonly router = inject(Router)
private readonly layout = inject(LayoutService)
private readonly store = inject(StoreService)
diff --git a/frontend/src/app/applications/comments/models/comment-recent.model.ts b/frontend/src/app/applications/comments/models/comment-recent.model.ts
index b2e35342..d00887ba 100644
--- a/frontend/src/app/applications/comments/models/comment-recent.model.ts
+++ b/frontend/src/app/applications/comments/models/comment-recent.model.ts
@@ -1,4 +1,4 @@
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
+import type { LucideIcon } from '@lucide/angular'
import type { CommentRecent } from '@sync-in-server/backend/src/applications/comments/interfaces/comment-recent.interface'
import { FILE_REPOSITORY } from '@sync-in-server/backend/src/applications/files/constants/operations'
import { SPACE_ALIAS } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
@@ -17,7 +17,7 @@ export class CommentRecentModel implements CommentRecent {
// Computed
mimeUrl: string
avatarUrl: string
- icon: IconDefinition
+ icon: LucideIcon
iconClass: 'primary' | 'purple'
showedPath: string
repositoryTitle: string
diff --git a/frontend/src/app/applications/favorites/components/favorites.component.html b/frontend/src/app/applications/favorites/components/favorites.component.html
index 9123833e..194b7616 100644
--- a/frontend/src/app/applications/favorites/components/favorites.component.html
+++ b/frontend/src/app/applications/favorites/components/favorites.component.html
@@ -4,21 +4,21 @@
class="d-none d-sm-block btn btn-default me-1"
[tooltip]="'Refresh' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faArrowRotateRight" [animation]="loading ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw" [class.icon-spin]="loading"></svg>
</button>
<button (click)="goTo()"
[disabled]="!selected || selected.isDisabled"
class="btn btn-default me-1"
[tooltip]="'Go to' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faMapMarkerAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMapPin"></svg>
</button>
<button (click)="removeFavorite()"
[disabled]="!selected"
class="btn btn-default me-1"
[tooltip]="'Remove from favorites' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.REMOVE_FAVORITE"></fa-icon>
+ <svg [lucideIcon]="icons.REMOVE_FAVORITE"></svg>
</button>
<div class="ms-auto">
<div class="btn-group me-1">
@@ -63,7 +63,7 @@
@if (f.isDisabled) {
<span class="label-bottom-left">
<span class="badge bg-warning text-dark" l10nTranslate>
- <fa-icon [icon]="icons.faTriangleExclamation"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTriangleAlert"></svg>
No longer accessible
</span>
</span>
@@ -93,7 +93,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -133,7 +133,7 @@
@case ('location') {
@if (f.isDisabled) {
<span class="text-warning" l10nTranslate>
- <fa-icon [icon]="icons.faTriangleExclamation"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTriangleAlert"></svg>
No longer accessible
</span>
} @else {
@@ -177,18 +177,18 @@
<!--Start Context Menu -->
<context-menu #MainContextMenu>
<ng-template (execute)="loadFavorites()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>Refresh</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
</context-menu>
<context-menu #TargetContextMenu>
@if (!selected?.isDisabled) {
<ng-template (execute)="goTo()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faMapMarkerAlt"></fa-icon>Go to</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideMapPin"></svg>Go to</span>
</ng-template>
<ng-template [divider]="true" contextMenuItem></ng-template>
}
<ng-template (execute)="removeFavorite()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.REMOVE_FAVORITE"></fa-icon>Remove from favorites</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.REMOVE_FAVORITE"></svg>Remove from favorites</span>
</ng-template>
</context-menu>
<!--End Context Menu-->
diff --git a/frontend/src/app/applications/favorites/components/favorites.component.ts b/frontend/src/app/applications/favorites/components/favorites.component.ts
index f0206b2f..8f4f4f99 100644
--- a/frontend/src/app/applications/favorites/components/favorites.component.ts
+++ b/frontend/src/app/applications/favorites/components/favorites.component.ts
@@ -2,9 +2,7 @@ import { KeyValuePipe, NgTemplateOutlet } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, ElementRef, inject, OnInit, ViewChild } from '@angular/core'
import { ActivatedRoute, Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faStar as faStarRegular } from '@fortawesome/free-regular-svg-icons'
-import { faArrowDown, faArrowRotateRight, faArrowUp, faMapMarkerAlt, faTriangleExclamation } from '@fortawesome/free-solid-svg-icons'
+import { LucideArrowDown, LucideArrowUp, LucideDynamicIcon, LucideMapPin, LucideRotateCw, LucideStarOff, LucideTriangleAlert } from '@lucide/angular'
import { ContextMenuComponent, ContextMenuModule } from '@perfectmemory/ngx-contextmenu'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { TooltipModule } from 'ngx-bootstrap/tooltip'
@@ -29,7 +27,7 @@ import { FAVORITES_ICON, FAVORITES_PATH, FAVORITES_TITLE } from '../favorites.co
@Component({
selector: 'app-favorites',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
KeyValuePipe,
NgTemplateOutlet,
L10nTranslateDirective,
@@ -61,12 +59,12 @@ export class FavoritesComponent implements OnInit {
protected readonly layout = inject(LayoutService)
protected readonly icons = {
FAVORITES: FAVORITES_ICON,
- faArrowRotateRight,
- faArrowDown,
- faArrowUp,
- faMapMarkerAlt,
- faTriangleExclamation,
- REMOVE_FAVORITE: faStarRegular
+ LucideRotateCw,
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideMapPin,
+ LucideTriangleAlert,
+ REMOVE_FAVORITE: LucideStarOff
}
protected readonly originalOrderKeyValue = originalOrderKeyValue
protected loading = false
diff --git a/frontend/src/app/applications/favorites/favorites.constants.ts b/frontend/src/app/applications/favorites/favorites.constants.ts
index a45a8937..8ae4ce75 100644
--- a/frontend/src/app/applications/favorites/favorites.constants.ts
+++ b/frontend/src/app/applications/favorites/favorites.constants.ts
@@ -1,5 +1,5 @@
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
-import { faStar } from '@fortawesome/free-solid-svg-icons'
+import type { LucideIcon } from '@lucide/angular'
+import { LucideStar } from '@lucide/angular'
export const FAVORITES_PATH = {
BASE: 'favorites'
@@ -7,4 +7,4 @@ export const FAVORITES_PATH = {
export const FAVORITES_TITLE = 'Favorites'
-export const FAVORITES_ICON: IconDefinition = faStar
+export const FAVORITES_ICON: LucideIcon = LucideStar
diff --git a/frontend/src/app/applications/files/components/dialogs/files-compression-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-compression-dialog.component.html
index f43a221d..cbaab15c 100755
--- a/frontend/src/app/applications/files/components/dialogs/files-compression-dialog.component.html
+++ b/frontend/src/app/applications/files/components/dialogs/files-compression-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faFileArchive"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFileArchive"></svg>
@if (archiveProps.compressInDirectory) {
<span l10nTranslate>Compress and Save</span>
} @else {
diff --git a/frontend/src/app/applications/files/components/dialogs/files-compression-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-compression-dialog.component.ts
index 2ce35966..275ae818 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-compression-dialog.component.ts
+++ b/frontend/src/app/applications/files/components/dialogs/files-compression-dialog.component.ts
@@ -1,7 +1,6 @@
import { ChangeDetectionStrategy, Component, EventEmitter, HostListener, inject, Input, OnInit, Output } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faFileArchive } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideFileArchive } from '@lucide/angular'
import { TAR_EXTENSION, TAR_GZ_EXTENSION, ZIP_EXTENSION } from '@sync-in-server/backend/src/applications/files/constants/compress'
import type { CompressFileDto } from '@sync-in-server/backend/src/applications/files/dto/file-operations.dto'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -12,7 +11,7 @@ import { FilesService } from '../../services/files.service'
@Component({
selector: 'app-files-compression-dialog',
templateUrl: 'files-compression-dialog.component.html',
- imports: [FaIconComponent, FormsModule, AutofocusDirective, L10nTranslateDirective, L10nTranslatePipe],
+ imports: [LucideDynamicIcon, FormsModule, AutofocusDirective, L10nTranslateDirective, L10nTranslatePipe],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class FilesCompressionDialogComponent implements OnInit {
@@ -28,7 +27,7 @@ export class FilesCompressionDialogComponent implements OnInit {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly layout = inject(LayoutService)
protected readonly archiveExtensions: CompressFileDto['extension'][] = [TAR_EXTENSION, ZIP_EXTENSION]
- protected readonly icons = { faFileArchive }
+ protected readonly icons = { LucideFileArchive }
protected submitted = false
private readonly filesService = inject(FilesService)
diff --git a/frontend/src/app/applications/files/components/dialogs/files-lock-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-lock-dialog.component.html
index e1a2702b..cfbfcd38 100755
--- a/frontend/src/app/applications/files/components/dialogs/files-lock-dialog.component.html
+++ b/frontend/src/app/applications/files/components/dialogs/files-lock-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="hasExclusiveLock ? icons.faLock : icons.faUnlock"></fa-icon>
+ <svg [lucideIcon]="hasExclusiveLock ? icons.LucideLock : icons.LucideUnlock"></svg>
<span>{{ file.name }}</span>
</h4>
<button (click)="layout.closeDialog()" aria-label="Close" class="btn-close btn-close-white" type="button"></button>
diff --git a/frontend/src/app/applications/files/components/dialogs/files-lock-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-lock-dialog.component.ts
index 9362a5aa..489557c6 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-lock-dialog.component.ts
+++ b/frontend/src/app/applications/files/components/dialogs/files-lock-dialog.component.ts
@@ -1,7 +1,6 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, HostListener, inject, Input, OnInit } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faLock, faUnlock } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideLock, LucideUnlock } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective } from 'angular-l10n'
import { firstValueFrom } from 'rxjs'
import { LayoutService } from '../../../../layout/layout.service'
@@ -14,14 +13,14 @@ import { FileLockFormatPipe } from '../utils/file-lock.utils'
@Component({
selector: 'app-files-lock-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, FileLockFormatPipe],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, FileLockFormatPipe],
templateUrl: 'files-lock-dialog.component.html'
})
export class FilesLockDialogComponent implements OnInit {
@Input({ required: true }) file: FileModel
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected layout = inject(LayoutService)
- protected readonly icons = { faLock, faUnlock }
+ protected readonly icons = { LucideLock, LucideUnlock }
protected submitted = false
protected readonly store = inject(StoreService)
protected readonly userLogin = this.store.user.getValue().login
diff --git a/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.html
index fb178d56..508626f6 100755
--- a/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.html
+++ b/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.html
@@ -2,13 +2,13 @@
<h4 class="modal-title">
@switch (inputType) {
@case ('download') {
- <fa-icon [icon]="icons.faGlobe"></fa-icon>
+ <svg [lucideIcon]="icons.LucideGlobe"></svg>
}
@case ('directory') {
- <fa-icon [icon]="icons.faFolderClosed"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFolderClosed"></svg>
}
@case ('file') {
- <fa-icon [icon]="icons.faFileAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFileText"></svg>
}
}
<span l10nTranslate>{{ fileProp.title }}</span>
@@ -20,7 +20,7 @@
<div class="btn-group mb-3" dropdown>
<button aria-controls="dropdown-animated" class="btn btn-primary dropdown-toggle" dropdownToggle id="button-animated" type="button">
<span l10nTranslate>{{ selectedDocType }}</span>
- <fa-icon [icon]="icons.faCaretDown" class="ms-3"></fa-icon>
+ <svg [lucideIcon]="icons.LucideChevronDown" class="ms-3"></svg>
</button>
<ul *dropdownMenu aria-labelledby="button-animated" class="dropdown-menu" id="dropdown-animated" role="menu">
@for (item of docTypes | keyvalue: originalOrderKeyValue; track item.key) {
@@ -39,7 +39,7 @@
@if (inputType === 'download') {
<div class="input-group my-2">
<span class="input-group-text">
- <fa-icon [icon]="icons.faGlobe"></fa-icon>
+ <svg [lucideIcon]="icons.LucideGlobe"></svg>
</span>
<input
[(ngModel)]="downloadProp.url"
@@ -55,9 +55,9 @@
<div class="input-group my-2">
<span class="input-group-text">
@if (inputType === 'directory') {
- <fa-icon [icon]="icons.faFolderClosed"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFolderClosed"></svg>
} @else {
- <fa-icon [icon]="icons.faFileAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFileText"></svg>
}
</span>
<input
diff --git a/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.ts
index 81e364fd..8f56ed30 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.ts
+++ b/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.ts
@@ -1,8 +1,7 @@
import { KeyValuePipe } from '@angular/common'
import { AfterViewInit, Component, ElementRef, EventEmitter, HostListener, inject, Input, OnInit, Output, ViewChild } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faCaretDown, faFileAlt, faFolderClosed, faGlobe } from '@fortawesome/free-solid-svg-icons'
+import { LucideChevronDown, LucideDynamicIcon, LucideFileText, LucideFolderClosed, LucideGlobe } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { BsDropdownModule } from 'ngx-bootstrap/dropdown'
import { AutofocusDirective } from '../../../../common/directives/auto-focus.directive'
@@ -16,7 +15,7 @@ import { FilesService } from '../../services/files.service'
@Component({
selector: 'app-files-files-new-dialog',
templateUrl: 'files-new-dialog.component.html',
- imports: [FaIconComponent, L10nTranslateDirective, BsDropdownModule, FormsModule, L10nTranslatePipe, AutofocusDirective, KeyValuePipe]
+ imports: [LucideDynamicIcon, L10nTranslateDirective, BsDropdownModule, FormsModule, L10nTranslatePipe, AutofocusDirective, KeyValuePipe]
})
export class FilesNewDialogComponent implements OnInit, AfterViewInit {
@Input() files: FileModel[]
@@ -26,7 +25,7 @@ export class FilesNewDialogComponent implements OnInit, AfterViewInit {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected layout = inject(LayoutService)
protected readonly originalOrderKeyValue = originalOrderKeyValue
- protected readonly icons = { faCaretDown, faGlobe, faFolderClosed, faFileAlt }
+ protected readonly icons = { LucideChevronDown, LucideGlobe, LucideFolderClosed, LucideFileText }
protected fileProp = { title: '', name: '', placeholder: '' }
protected downloadProp = { title: '', url: '', placeholder: 'URL (https://...)' }
protected selectedDocType = 'Text'
diff --git a/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.html
index 02f13ab9..3cbc6e93 100755
--- a/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.html
+++ b/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faFileShield"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFileLock2"></svg>
@if (renamedTo) {
<span l10nTranslate>Replace Existing File</span>
} @else {
diff --git a/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.ts
index 0e89be15..59c83ea8 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.ts
+++ b/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.ts
@@ -1,6 +1,5 @@
import { Component, inject, Input, output } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faFileShield } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideFileLock2 } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { LayoutService } from '../../../../layout/layout.service'
import { FileModel } from '../../models/file.model'
@@ -9,7 +8,7 @@ export type FilesOverwriteAction = 'cancel' | 'skip' | 'overwrite'
@Component({
selector: 'app-files-overwrite-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, L10nTranslatePipe],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, L10nTranslatePipe],
templateUrl: 'files-overwrite-dialog.component.html'
})
export class FilesOverwriteDialogComponent {
@@ -18,7 +17,7 @@ export class FilesOverwriteDialogComponent {
public action = output<FilesOverwriteAction>()
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected layout = inject(LayoutService)
- protected readonly icons = { faFileShield }
+ protected readonly icons = { LucideFileLock2 }
protected submitted = false
onAction(action: FilesOverwriteAction) {
diff --git a/frontend/src/app/applications/files/components/dialogs/files-trash-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-trash-dialog.component.html
index d6498eb9..332bd4d1 100755
--- a/frontend/src/app/applications/files/components/dialogs/files-trash-dialog.component.html
+++ b/frontend/src/app/applications/files/components/dialogs/files-trash-dialog.component.html
@@ -1,9 +1,9 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faTrashCan"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTrash2"></svg>
<span l10nTranslate>Trash</span>
@if (submitted) {
- <fa-icon [icon]="icons.faSpinner" animation="spin" class="ms-2"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true" class="ms-2"></svg>
}
</h4>
<button (click)="layout.closeDialog()" aria-label="Close" class="btn-close btn-close-white" type="button"></button>
diff --git a/frontend/src/app/applications/files/components/dialogs/files-trash-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-trash-dialog.component.ts
index 6fbc0e2a..7a181f6d 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-trash-dialog.component.ts
+++ b/frontend/src/app/applications/files/components/dialogs/files-trash-dialog.component.ts
@@ -1,6 +1,5 @@
import { ChangeDetectionStrategy, Component, EventEmitter, HostListener, inject, Input, Output } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faSpinner, faTrashCan } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideLoader, LucideTrash2 } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { LayoutService } from '../../../../layout/layout.service'
import { FileModel } from '../../models/file.model'
@@ -8,7 +7,7 @@ import { FileModel } from '../../models/file.model'
@Component({
selector: 'app-files-trash-dialog',
templateUrl: 'files-trash-dialog.component.html',
- imports: [L10nTranslatePipe, L10nTranslateDirective, FaIconComponent],
+ imports: [L10nTranslatePipe, L10nTranslateDirective, LucideDynamicIcon],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class FilesTrashDialogComponent {
@@ -17,7 +16,7 @@ export class FilesTrashDialogComponent {
@Output() removeFiles = new EventEmitter<void>()
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected layout = inject(LayoutService)
- protected readonly icons = { faTrashCan, faSpinner }
+ protected readonly icons = { LucideTrash2, LucideLoader }
protected submitted = false
@HostListener('document:keyup.enter')
diff --git a/frontend/src/app/applications/files/components/dialogs/files-trash-empty-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-trash-empty-dialog.component.html
index 3af8f05c..d6705878 100755
--- a/frontend/src/app/applications/files/components/dialogs/files-trash-empty-dialog.component.html
+++ b/frontend/src/app/applications/files/components/dialogs/files-trash-empty-dialog.component.html
@@ -1,9 +1,9 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faTrashCan"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTrash2"></svg>
<span l10nTranslate>Trash</span>
@if (submitted) {
- <fa-icon [icon]="icons.faSpinner" animation="spin" class="ms-2"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true" class="ms-2"></svg>
}
</h4>
<button (click)="layout.closeDialog()" aria-label="Close" class="btn-close btn-close-white" type="button"></button>
diff --git a/frontend/src/app/applications/files/components/dialogs/files-trash-empty-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-trash-empty-dialog.component.ts
index 1058d526..fe31f7ca 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-trash-empty-dialog.component.ts
+++ b/frontend/src/app/applications/files/components/dialogs/files-trash-empty-dialog.component.ts
@@ -1,6 +1,5 @@
import { Component, HostListener, inject, Input } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faSpinner, faTrashCan } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideLoader, LucideTrash2 } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { LayoutService } from '../../../../layout/layout.service'
import { FileModel } from '../../models/file.model'
@@ -8,13 +7,13 @@ import { FilesService } from '../../services/files.service'
@Component({
selector: 'app-files-trash-empty-dialog',
- imports: [FaIconComponent, L10nTranslateDirective],
+ imports: [LucideDynamicIcon, L10nTranslateDirective],
templateUrl: 'files-trash-empty-dialog.component.html'
})
export class FilesTrashEmptyDialogComponent {
@Input() files: FileModel[] = []
protected layout = inject(LayoutService)
- protected readonly icons = { faTrashCan, faSpinner }
+ protected readonly icons = { LucideTrash2, LucideLoader }
protected submitted = false
private filesService = inject(FilesService)
diff --git a/frontend/src/app/applications/files/components/dialogs/files-tree-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-tree-dialog.component.html
index add22b36..7b316cae 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-tree-dialog.component.html
+++ b/frontend/src/app/applications/files/components/dialogs/files-tree-dialog.component.html
@@ -2,7 +2,7 @@
<h4 class="modal-title">
@if (!!selection) {
<span>
- <fa-icon [icon]="selection.isDir ? icons.faFolderClosed : icons.faFile"></fa-icon>
+ <svg [lucideIcon]="selection.isDir ? icons.LucideFolderClosed : icons.LucideFile"></svg>
{{ selection.path | pathSlice:-1 }}
</span>
} @else {
diff --git a/frontend/src/app/applications/files/components/dialogs/files-tree-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-tree-dialog.component.ts
index 65fd89ae..842bf00f 100755
--- a/frontend/src/app/applications/files/components/dialogs/files-tree-dialog.component.ts
+++ b/frontend/src/app/applications/files/components/dialogs/files-tree-dialog.component.ts
@@ -1,6 +1,5 @@
import { Component, EventEmitter, inject, Input, Output } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faFile, faFolderClosed } from '@fortawesome/free-regular-svg-icons'
+import { LucideDynamicIcon, LucideFile, LucideFolderClosed } from '@lucide/angular'
import { FileTree } from '@sync-in-server/backend/src/applications/files/interfaces/file-tree.interface'
import { SPACE_OPERATION } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
import type { SpaceRootProps } from '@sync-in-server/backend/src/applications/spaces/models/space-root-props.model'
@@ -19,7 +18,7 @@ export interface FileTreeEvent {
@Component({
selector: 'app-files-tree-dialog',
- imports: [L10nTranslateDirective, FilesTreeComponent, FaIconComponent, PathSlice],
+ imports: [L10nTranslateDirective, FilesTreeComponent, LucideDynamicIcon, PathSlice],
templateUrl: 'files-tree-dialog.component.html'
})
export class FilesTreeDialogComponent {
@@ -30,7 +29,7 @@ export class FilesTreeDialogComponent {
// sharing case
@Input() mustHaveShareOutsidePermission = false
protected readonly layout = inject(LayoutService)
- protected readonly icons = { faFile, faFolderClosed }
+ protected readonly icons = { LucideFile, LucideFolderClosed }
protected errorSelection = null
protected selection: FileTree = null
diff --git a/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.html
index 73ae9d7c..e516c1b5 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.html
+++ b/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.html
@@ -1,11 +1,11 @@
<div class="modal-header">
<h4 class="modal-title me-auto">
- <fa-icon [icon]="isReadonly() ? icons.faEye : icons.faPen"></fa-icon>
+ <svg [lucideIcon]="isReadonly() ? icons.LucideEye : icons.LucidePencil"></svg>
<span>{{ currentFile.name }}</span>
</h4>
@if (canToggleViewer) {
<button (click)="toggleViewer()" class="btn btn-sm btn-primary me-2" type="button">
- <fa-icon [icon]="isReadonly() ? icons.faPen : icons.faEye"></fa-icon>
+ <svg [lucideIcon]="isReadonly() ? icons.LucidePencil : icons.LucideEye"></svg>
<span class="d-none d-sm-inline ms-2">{{ toggleViewerText }}</span>
</button>
}
diff --git a/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.ts
index 55d88482..20e4d914 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.ts
+++ b/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.ts
@@ -1,6 +1,5 @@
import { Component, computed, HostListener, inject, Input, model, OnDestroy, OnInit, signal } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faEye, faPen } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideEye, LucidePencil } from '@lucide/angular'
import { FILE_MODE } from '@sync-in-server/backend/src/applications/files/constants/operations'
import type { FileEditorProviders } from '@sync-in-server/backend/src/applications/files/editors/file-editor-providers.interface'
import { L10nTranslateDirective } from 'angular-l10n'
@@ -25,7 +24,7 @@ import { FilesViewerTextComponent } from '../viewers/files-viewer-text.component
FilesViewerTextComponent,
FilesViewerMarkdownComponent,
FilesViewerImageComponent,
- FaIconComponent,
+ LucideDynamicIcon,
FilesViewerOnlyOfficeComponent,
FilesViewerCollaboraOnlineComponent,
L10nTranslateDirective
@@ -44,7 +43,7 @@ export class FilesViewerDialogComponent implements OnInit, OnDestroy {
protected isReadonly = model<boolean>(true)
protected currentHeight: number
protected readonly SHORT_MIME = SHORT_MIME
- protected readonly icons = { faEye, faPen }
+ protected readonly icons = { LucideEye, LucidePencil }
protected directoryImages = computed(() => this.directoryFiles.filter((file) => file.isImage))
protected canToggleViewer = false
protected readonly store = inject(StoreService)
diff --git a/frontend/src/app/applications/files/components/dialogs/files-viewer-select-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-viewer-select-dialog.component.html
index 127bfc36..108f9d69 100755
--- a/frontend/src/app/applications/files/components/dialogs/files-viewer-select-dialog.component.html
+++ b/frontend/src/app/applications/files/components/dialogs/files-viewer-select-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faFile"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFile"></svg>
<span>{{ file.name }}</span>
</h4>
<button
@@ -24,7 +24,7 @@
<div class="card h-100 shadow-sm editor-card editor-collabora">
<div class="card-body d-flex align-items-center gap-3 p-3">
<div class="editor-badge collabora">
- <fa-icon [icon]="icons.faFileLines"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFileText"></svg>
</div>
<div class="flex-grow-1">
<h3 class="text-bold mb-1">Collabora</h3>
@@ -45,7 +45,7 @@
<div class="card h-100 shadow-sm editor-card">
<div class="card-body d-flex align-items-center gap-3 p-3">
<div class="editor-badge bg-primary-subtle text-primary">
- <fa-icon [icon]="icons.faFileWord"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFileType2"></svg>
</div>
<div class="flex-grow-1">
<h3 class="text-bold mb-1">{{ officeEditorName }}</h3>
diff --git a/frontend/src/app/applications/files/components/dialogs/files-viewer-select-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-viewer-select-dialog.component.ts
index 50ba0c8c..bd5bb82c 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-viewer-select-dialog.component.ts
+++ b/frontend/src/app/applications/files/components/dialogs/files-viewer-select-dialog.component.ts
@@ -1,8 +1,6 @@
import { Component, inject, Input } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faFile, faFileLines, faFileWord } from '@fortawesome/free-regular-svg-icons'
-import { faArrowRight } from '@fortawesome/free-solid-svg-icons'
+import { LucideArrowRight, LucideDynamicIcon, LucideFile, LucideFileText, LucideFileType2 } from '@lucide/angular'
import type { FileEditorProviders } from '@sync-in-server/backend/src/applications/files/editors/file-editor-providers.interface'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective } from 'angular-l10n'
import { LayoutService } from '../../../../layout/layout.service'
@@ -12,7 +10,7 @@ import { FileModel } from '../../models/file.model'
@Component({
selector: 'app-files-viewer-select-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, FormsModule],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, FormsModule],
templateUrl: 'files-viewer-select-dialog.component.html',
styleUrls: ['./files-viewer-select-dialog.scss']
})
@@ -20,7 +18,7 @@ export class FilesViewerSelectDialog {
@Input({ required: true }) file: FileModel = null
@Input({ required: true }) editorProvider: FileEditorProviders
protected rememberChoice = false
- protected readonly icons = { faFile, faFileWord, faArrowRight, faFileLines }
+ protected readonly icons = { LucideFile, LucideFileType2, LucideArrowRight, LucideFileText }
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected layout = inject(LayoutService)
private readonly store = inject(StoreService)
diff --git a/frontend/src/app/applications/files/components/sidebar/files-clipboard.component.html b/frontend/src/app/applications/files/components/sidebar/files-clipboard.component.html
index 1841e50f..2f73f743 100644
--- a/frontend/src/app/applications/files/components/sidebar/files-clipboard.component.html
+++ b/frontend/src/app/applications/files/components/sidebar/files-clipboard.component.html
@@ -1,16 +1,16 @@
<div class="sidebar-component-title justify-content-between position-relative">
<div class="sidebar-component-title-side">
- <fa-icon class="cursor-pointer"
- [icon]="icons.faQuestion"
+ <svg class="cursor-pointer"
+ [lucideIcon]="icons.LucideCircleQuestionMark"
[tooltip]="'Actions will be performed in the current folder' | translate:locale.language"
container="body"
placement="left">
- </fa-icon>
+ </svg>
</div>
<div class="sidebar-component-title-label" l10nTranslate>Clipboard</div>
<div class="sidebar-component-title-side">
- <button (click)="clearAll()" class="btn btn-sm btn-default" type="button">
- <fa-icon [icon]="icons.faTimes"></fa-icon>
+ <button (click)="clearAll()" class="btn btn-default" type="button">
+ <svg [lucideIcon]="icons.LucideX"></svg>
</button>
</div>
</div>
@@ -34,7 +34,7 @@
<img [src]="f.mimeUrl" alt="" height="28" width="28" (error)="f.fallBackMimeUrl()">
<div class="text-truncate fs-sm">{{ f.name }}</div>
<button (click)="remove(f)" class="btn btn-xs btn-default ms-auto">
- <fa-icon [icon]="icons.faTimes"></fa-icon>
+ <svg class="fs-md" [lucideIcon]="icons.LucideX"></svg>
</button>
</div>
</div>
diff --git a/frontend/src/app/applications/files/components/sidebar/files-clipboard.component.ts b/frontend/src/app/applications/files/components/sidebar/files-clipboard.component.ts
index 3fd8b9ac..354d2feb 100644
--- a/frontend/src/app/applications/files/components/sidebar/files-clipboard.component.ts
+++ b/frontend/src/app/applications/files/components/sidebar/files-clipboard.component.ts
@@ -1,8 +1,7 @@
import { KeyValuePipe } from '@angular/common'
import { Component, inject, OnDestroy } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faArrowsAlt, faClone, faDownload, faQuestion, faTimes } from '@fortawesome/free-solid-svg-icons'
+import { LucideCircleQuestionMark, LucideCopy, LucideDynamicIcon, LucideHardDriveDownload, LucideMove, LucideX } from '@lucide/angular'
import { TAR_EXTENSION } from '@sync-in-server/backend/src/applications/files/constants/compress'
import { FILE_OPERATION } from '@sync-in-server/backend/src/applications/files/constants/operations'
import type { CompressFileDto } from '@sync-in-server/backend/src/applications/files/dto/file-operations.dto'
@@ -25,7 +24,7 @@ import { FilesSummaryComponent } from '../utils/files-summary.component'
selector: 'app-files-clipboard',
imports: [
AutoResizeDirective,
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslatePipe,
TooltipModule,
L10nTranslateDirective,
@@ -37,7 +36,7 @@ import { FilesSummaryComponent } from '../utils/files-summary.component'
})
export class FilesClipboardComponent implements OnDestroy {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
- protected readonly icons = { faTimes, faDownload, faArrowsAlt, faClone, faQuestion }
+ protected readonly icons = { LucideX, LucideHardDriveDownload, LucideMove, LucideCopy, LucideCircleQuestionMark }
protected readonly originalOrderKeyValue = originalOrderKeyValue
protected operations = {
copyPaste: { text: 'Copy-Paste', operation: FILE_OPERATION.COPY },
diff --git a/frontend/src/app/applications/files/components/sidebar/files-selection.component.html b/frontend/src/app/applications/files/components/sidebar/files-selection.component.html
index 3a3e5a64..eae94609 100644
--- a/frontend/src/app/applications/files/components/sidebar/files-selection.component.html
+++ b/frontend/src/app/applications/files/components/sidebar/files-selection.component.html
@@ -23,7 +23,7 @@
class="btn btn-xs btn-default ms-auto"
type="button"
[attr.aria-label]="'Remove' | translate:locale.language">
- <fa-icon [icon]="icons.faTimes"></fa-icon>
+ <svg class="fs-md" [lucideIcon]="icons.LucideX"></svg>
</button>
</div>
</div>
@@ -58,7 +58,7 @@
<div class="d-flex mb-1">
<div class="d-flex col-5 col-sm-5 text-bold" l10nTranslate>Size</div>
@if (f.isDir && (getSizeLazy(f) | async) === null) {
- <fa-icon [icon]="icons.faSpinner" animation="spin-pulse"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin-pulse]="true"></svg>
} @else {
{{ f.hSize }}
}
@@ -76,12 +76,12 @@
@if (f.lock) {
@if (f.lock.isExclusive) {
<span class="badge bg-maroon" l10nTranslate>
- <fa-icon [icon]="icons.faLock"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLock"></svg>
<span l10nTranslate>Exclusive</span>
</span>
} @else {
<span class="badge bg-maroon" l10nTranslate>
- <fa-icon [icon]="icons.faUnlock"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUnlock"></svg>
<span l10nTranslate>Shared</span>
</span>
}
@@ -94,7 +94,7 @@
<div class="d-flex col-7 col-sm-7">
@if (f.shares.length || f.links.length) {
<span class="badge bg-primary">
- <fa-icon [icon]="icons.SHARED"></fa-icon>
+ <svg [lucideIcon]="icons.SHARED"></svg>
{{ f.shares.length + f.links.length }}
</span>
} @else {
@@ -106,7 +106,7 @@
<div class="d-flex col-5 col-sm-5 text-bold" l10nTranslate>Anchored</div>
@if (f.spaces.length) {
<span class="badge bg-primary">
- <fa-icon [icon]="icons.SPACES"></fa-icon>
+ <svg [lucideIcon]="icons.SPACES"></svg>
{{ f.spaces.length }}</span>
} @else {
<span class="badge bg-default" l10nTranslate>no</span>
@@ -125,7 +125,7 @@
class="badge {{f.isFavorite ? 'bg-warning' : 'bg-default'}} cursor-pointer"
type="button"
[attr.aria-label]="(f.isFavorite ? 'Remove from favorites' : 'Add to favorites') | translate:locale.language">
- <fa-icon [icon]="icons.FAVORITES"></fa-icon>
+ <svg [lucideIcon]="icons.FAVORITES"></svg>
</button>
</div>
}
@@ -135,7 +135,7 @@
class="badge {{f.hasComments ? 'bg-success' : 'bg-default'}} cursor-pointer"
type="button"
[attr.aria-label]="'Comments' | translate:locale.language">
- <fa-icon [icon]="icons.faCommentDots"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMessageSquareMore"></svg>
</button>
</div>
</div>
@@ -164,31 +164,31 @@
@if (f.lock) {
<div (click)="openLockDialog(f)"
class="badge white-space-normal bg-maroon cursor-pointer mb-2">
- <fa-icon [icon]="f.lock.isExclusive ? icons.faLock : icons.faUnlock"></fa-icon>
+ <svg [lucideIcon]="f.lock.isExclusive ? icons.LucideLock : icons.LucideUnlock"></svg>
{{ f.lock | fileLockFormatPipe }}
</div>
}
@for (space of f.spaces; track space.id) {
<div (click)="goToSpace(space)" class="badge white-space-normal bg-primary cursor-pointer me-1 mb-2">
- <fa-icon [icon]="icons.SPACES"></fa-icon>
+ <svg [lucideIcon]="icons.SPACES"></svg>
{{ space.name }}
</div>
}
@for (share of f.shares; track share.id) {
<div (click)="goToShare(share)" class="badge white-space-normal bg-primary cursor-pointer me-1 mb-2">
- <fa-icon [icon]="icons.SHARED"></fa-icon>
+ <svg [lucideIcon]="icons.SHARED"></svg>
{{ share.name }}
</div>
}
@for (link of f.links; track link.id) {
<div (click)="goToShare(link)" class="badge white-space-normal bg-primary cursor-pointer me-1 mb-2">
- <fa-icon [icon]="icons.LINKS"></fa-icon>
+ <svg [lucideIcon]="icons.LINKS"></svg>
{{ link.name }}
</div>
}
@for (sync of f.syncs; track sync.id) {
<div (click)="goToSync(sync)" class="badge white-space-normal bg-primary cursor-pointer me-1 mb-2">
- <fa-icon [icon]="icons.SYNC"></fa-icon>
+ <svg [lucideIcon]="icons.SYNC"></svg>
{{ sync.clientName }}
</div>
}
diff --git a/frontend/src/app/applications/files/components/sidebar/files-selection.component.ts b/frontend/src/app/applications/files/components/sidebar/files-selection.component.ts
index 8f9dac0d..a0fbb0fc 100755
--- a/frontend/src/app/applications/files/components/sidebar/files-selection.component.ts
+++ b/frontend/src/app/applications/files/components/sidebar/files-selection.component.ts
@@ -3,8 +3,7 @@ import { HttpErrorResponse } from '@angular/common/http'
import { ChangeDetectionStrategy, Component, inject, input } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faCommentDots, faLock, faSpinner, faTimes, faUnlock } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideLoader, LucideLock, LucideMessageSquareMore, LucideUnlock, LucideX } from '@lucide/angular'
import { TAR_EXTENSION } from '@sync-in-server/backend/src/applications/files/constants/compress'
import type { CompressFileDto } from '@sync-in-server/backend/src/applications/files/dto/file-operations.dto'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -38,7 +37,7 @@ import { FilesSummaryComponent } from '../utils/files-summary.component'
TimeDateFormatPipe,
L10nTranslateDirective,
L10nTranslatePipe,
- FaIconComponent,
+ LucideDynamicIcon,
FilesViewerMediaComponent,
UserAvatarComponent,
BadgePermissionsComponent,
@@ -64,11 +63,11 @@ export class FilesSelectionComponent {
LINKS: SPACES_ICON.LINKS,
SYNC: SYNC_ICON.SYNC,
FAVORITES: FAVORITES_ICON,
- faCommentDots,
- faLock,
- faUnlock,
- faSpinner,
- faTimes
+ LucideMessageSquareMore,
+ LucideLock,
+ LucideUnlock,
+ LucideLoader,
+ LucideX
}
goToShare(share: { type: number; name: string }) {
diff --git a/frontend/src/app/applications/files/components/sidebar/files-tasks.component.html b/frontend/src/app/applications/files/components/sidebar/files-tasks.component.html
index a9545ef6..bce68d61 100644
--- a/frontend/src/app/applications/files/components/sidebar/files-tasks.component.html
+++ b/frontend/src/app/applications/files/components/sidebar/files-tasks.component.html
@@ -19,12 +19,12 @@
@if (nbTotalTasks) {
<div class="d-flex gap-1">
@if (hasCancellableTasks) {
- <button type="button" (click)="cancelTasks()" [tooltip]="'Stop' | translate:locale.language" class="btn btn-sm btn-default" placement="top">
- <fa-icon [icon]="icons.faStop"></fa-icon>
+ <button type="button" (click)="cancelTasks()" [tooltip]="'Stop' | translate:locale.language" class="btn btn-default" placement="top">
+ <svg [lucideIcon]="icons.LucideSquareStop"></svg>
</button>
}
- <button type="button" (click)="removeTasks()" class="btn btn-sm btn-default">
- <fa-icon [icon]="icons.faTimes"></fa-icon>
+ <button type="button" (click)="removeTasks()" class="btn btn-default">
+ <svg [lucideIcon]="icons.LucideX"></svg>
</button>
</div>
} @else {
@@ -45,13 +45,13 @@
placement="bottom">
<div class="task-list__content">
<div class="task-list__header">
- <fa-icon class="task-list__status"
+ <svg class="task-list__status"
[class.text-danger]="task.ui.error"
[class.text-muted]="task.ui.cancelled || task.ui.queued"
- [icon]="task.ui.statusIcon"
- [animation]="task.ui.pending ? 'spin-pulse' : null"></fa-icon>
+ [lucideIcon]="task.ui.statusIcon"
+ [class.icon-spin-pulse]="task.ui.pending"></svg>
<span class="task-list__operation">
- <fa-icon [icon]="task.ui.operationIcon"></fa-icon>
+ <svg [lucideIcon]="task.ui.operationIcon"></svg>
</span>
<span class="task-list__name">{{ task.name }}</span>
</div>
@@ -74,7 +74,7 @@
<span>&nbsp;•&nbsp;</span>
}
@if (item.icon) {
- <fa-icon [icon]="item.icon"></fa-icon>
+ <svg [lucideIcon]="item.icon"></svg>
<span>&nbsp;</span>
}
@switch (item.type) {
@@ -104,7 +104,7 @@
[tooltip]="'Stop' | translate:locale.language"
class="btn btn-sm btn-default task-list__cancel"
placement="top">
- <fa-icon [icon]="icons.faStop"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSquareStop"></svg>
</button>
}
</div>
diff --git a/frontend/src/app/applications/files/components/sidebar/files-tasks.component.ts b/frontend/src/app/applications/files/components/sidebar/files-tasks.component.ts
index 4db829ce..3339eaa9 100644
--- a/frontend/src/app/applications/files/components/sidebar/files-tasks.component.ts
+++ b/frontend/src/app/applications/files/components/sidebar/files-tasks.component.ts
@@ -1,21 +1,25 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, OnDestroy } from '@angular/core'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
-import { faClock, faFile, faFileArchive, faFolderClosed, faTrashCan } from '@fortawesome/free-regular-svg-icons'
+import type { LucideIcon } from '@lucide/angular'
import {
- faArrowsAlt,
- faBan,
- faCheck,
- faClone,
- faExclamation,
- faFileArrowDown,
- faFlag,
- faGlobe,
- faSpinner,
- faStop,
- faTimes
-} from '@fortawesome/free-solid-svg-icons'
+ LucideBan,
+ LucideCheck,
+ LucideCircleAlert,
+ LucideClock,
+ LucideCopy,
+ LucideDynamicIcon,
+ LucideFile,
+ LucideFileArchive,
+ LucideFileDown,
+ LucideFlag,
+ LucideFolderClosed,
+ LucideGlobe,
+ LucideLoader,
+ LucideMove,
+ LucideSquareStop,
+ LucideTrash2,
+ LucideX
+} from '@lucide/angular'
import { FILE_OPERATION } from '@sync-in-server/backend/src/applications/files/constants/operations'
import { FileTask, FileTaskStatus } from '@sync-in-server/backend/src/applications/files/models/file-task'
import { L10N_LOCALE, L10nLocale, L10nTranslatePipe } from 'angular-l10n'
@@ -33,28 +37,28 @@ import { TimeAgoPipe } from '../../../../common/pipes/time-ago.pipe'
@Component({
selector: 'app-files-tasks',
- imports: [FaIconComponent, L10nTranslatePipe, AutoResizeDirective, TooltipModule, ProgressbarComponent, ToBytesPipe, TimeAgoPipe],
+ imports: [LucideDynamicIcon, L10nTranslatePipe, AutoResizeDirective, TooltipModule, ProgressbarComponent, ToBytesPipe, TimeAgoPipe],
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: 'files-tasks.component.html'
})
export class FilesTasksComponent implements OnDestroy {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
- protected readonly icons = { faTimes, faFlag, faClock, faFile, faFolderClosed, faStop }
- protected readonly iconsStatus: Record<FileTaskStatus, IconDefinition> = {
- [FileTaskStatus.PENDING]: faSpinner,
- [FileTaskStatus.SUCCESS]: faCheck,
- [FileTaskStatus.ERROR]: faExclamation,
- [FileTaskStatus.CANCELLED]: faBan,
- [FileTaskStatus.QUEUED]: faClock
+ protected readonly icons = { LucideX, LucideFlag, LucideClock, LucideFile, LucideFolderClosed, LucideSquareStop }
+ protected readonly iconsStatus: Record<FileTaskStatus, LucideIcon> = {
+ [FileTaskStatus.PENDING]: LucideLoader,
+ [FileTaskStatus.SUCCESS]: LucideCheck,
+ [FileTaskStatus.ERROR]: LucideCircleAlert,
+ [FileTaskStatus.CANCELLED]: LucideBan,
+ [FileTaskStatus.QUEUED]: LucideClock
}
- protected readonly iconsOperation: Partial<Record<FILE_OPERATION, IconDefinition>> = {
- [FILE_OPERATION.DELETE]: faTrashCan,
- [FILE_OPERATION.MOVE]: faArrowsAlt,
- [FILE_OPERATION.COPY]: faClone,
- [FILE_OPERATION.DOWNLOAD]: faGlobe,
- [FILE_OPERATION.UPLOAD]: faFileArrowDown,
- [FILE_OPERATION.COMPRESS]: faFileArchive,
- [FILE_OPERATION.DECOMPRESS]: faFileArchive
+ protected readonly iconsOperation: Partial<Record<FILE_OPERATION, LucideIcon>> = {
+ [FILE_OPERATION.DELETE]: LucideTrash2,
+ [FILE_OPERATION.MOVE]: LucideMove,
+ [FILE_OPERATION.COPY]: LucideCopy,
+ [FILE_OPERATION.DOWNLOAD]: LucideGlobe,
+ [FILE_OPERATION.UPLOAD]: LucideFileDown,
+ [FILE_OPERATION.COMPRESS]: LucideFileArchive,
+ [FILE_OPERATION.DECOMPRESS]: LucideFileArchive
} as const
protected nbActiveTasks = 0
protected nbEndedTasks = 0
@@ -150,7 +154,7 @@ export class FilesTasksComponent implements OnDestroy {
displayPriority: pending ? 0 : queued ? 1 : 2,
error,
openable: task.status === FileTaskStatus.SUCCESS,
- operationIcon: this.iconsOperation[task.type] || this.icons.faFlag,
+ operationIcon: this.iconsOperation[task.type] || this.icons.LucideFlag,
pending,
progress: pending ? task.props.progress || 100 : queued ? 0 : 100,
progressItems: this.createProgressItems(task, pending, queued),
@@ -174,13 +178,13 @@ export class FilesTasksComponent implements OnDestroy {
}
}
if (task.props.directories) {
- items.push({ icon: this.icons.faFolderClosed, type: 'directories', value: task.props.directories })
+ items.push({ icon: this.icons.LucideFolderClosed, type: 'directories', value: task.props.directories })
}
if (task.props.files) {
- items.push({ icon: this.icons.faFile, type: 'files', value: task.props.files })
+ items.push({ icon: this.icons.LucideFile, type: 'files', value: task.props.files })
}
if (!pending && !queued && task.endedAt) {
- items.push({ icon: this.icons.faClock, type: 'endedAt', value: task.endedAt })
+ items.push({ icon: this.icons.LucideClock, type: 'endedAt', value: task.endedAt })
}
return items
}
diff --git a/frontend/src/app/applications/files/components/sidebar/files-tree.component.html b/frontend/src/app/applications/files/components/sidebar/files-tree.component.html
index 3089da18..cdf13057 100644
--- a/frontend/src/app/applications/files/components/sidebar/files-tree.component.html
+++ b/frontend/src/app/applications/files/components/sidebar/files-tree.component.html
@@ -3,8 +3,8 @@
<div class="sidebar-component-title-side"></div>
<div class="sidebar-component-title-label" l10nTranslate>Navigation</div>
<div class="sidebar-component-title-side">
- <button (click)="onRefresh()" class="btn btn-sm btn-default" type="button">
- <fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>
+ <button (click)="onRefresh()" class="btn btn-default" type="button">
+ <svg [lucideIcon]="icons.LucideRotateCw"></svg>
</button>
</div>
</div>
@@ -16,10 +16,11 @@
<div class="d-flex">
<div class="d-flex flex-column align-items-center me-2 text-muted">
<span class="copy-move-location-icon border rounded-circle d-flex align-items-center justify-content-center lh-1">
- <fa-icon
- [icon]="files.length === 1 ? (files[0].isDir ? icons.faFolder : icons.faFile) : files.length > 1 ? icons.faObjectGroup : icons.faQuestion"
- [fixedWidth]="true">
- </fa-icon>
+ @if (files.length) {
+ <svg [lucideIcon]="files.length === 1 ? (files[0].isDir ? icons.LucideFolder : icons.LucideFile) : icons.LucideFiles"></svg>
+ } @else {
+ <span class="fs-md">?</span>
+ }
</span>
<span class="copy-move-connector border-start flex-grow-1"></span>
</div>
@@ -31,9 +32,9 @@
@if (files[0].isDir) {
@let directorySize = getSizeLazy(files[0]) | async;
@if (directorySize === null) {
- <fa-icon [icon]="icons.faSpinner" animation="spin-pulse"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin-pulse]="true"></svg>
} @else if (directorySize === undefined) {
- <fa-icon [icon]="icons.faQuestion"></fa-icon>
+ <span class="fs-md">?</span>
} @else {
<span>{{ directorySize | toBytes:0:true }}</span>
}
@@ -53,7 +54,7 @@
}
@case (0) {
<div class="app-small-card files-summary-card border rounded d-flex justify-content-center align-items-center px-2 py-2">
- <fa-icon [icon]="icons.faQuestion" class="text-muted"></fa-icon>
+ <span class="fs-md text-muted">?</span>
</div>
}
@default {
@@ -69,7 +70,11 @@
<div class="d-flex">
<div class="d-flex flex-column align-items-center me-2 text-muted">
<span class="copy-move-location-icon border rounded-circle d-flex align-items-center justify-content-center lh-1">
- <fa-icon [icon]="destination?.icon || icons.faQuestion" [fixedWidth]="true"></fa-icon>
+ @if (destination?.icon; as destinationIcon) {
+ <svg [lucideIcon]="destinationIcon"></svg>
+ } @else {
+ <span class="fs-md">?</span>
+ }
</span>
</div>
<div class="flex-grow-1 overflow-hidden">
@@ -84,7 +89,7 @@
@if (selection && dstAllowed) {
<span class="text-bold text-truncate">{{ selection.data.name }}</span>
} @else {
- <fa-icon [icon]="icons.faQuestion" class="text-muted mx-auto"></fa-icon>
+ <span class="text-muted mx-auto">?</span>
}
</div>
@if (errorMsg && !dstAllowed) {
@@ -99,7 +104,7 @@
class="btn btn-sm btn-warning flex-fill"
type="button"
l10nTranslate>
- <fa-icon [icon]="icons.faArrowsAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMove"></svg>
Move
</button>
<button (click)="actionCopy()"
@@ -107,14 +112,14 @@
class="btn btn-sm btn-primary flex-fill"
type="button"
l10nTranslate>
- <fa-icon [icon]="icons.faClone"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCopy"></svg>
Copy
</button>
<button (click)="actionCancel()"
class="btn btn-sm btn-secondary flex-fill"
type="button"
l10nTranslate>
- <fa-icon [icon]="icons.faTimes"></fa-icon>
+ <svg [lucideIcon]="icons.LucideX"></svg>
Cancel
</button>
</div>
@@ -144,7 +149,7 @@
</ng-template>
<ng-template #loadingTemplate>
<span>
- <fa-icon [icon]="icons.faSpinner" animation="spin" class="text-bold"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true" class="text-bold"></svg>
</span>
</ng-template>
</tree-root>
diff --git a/frontend/src/app/applications/files/components/sidebar/files-tree.component.ts b/frontend/src/app/applications/files/components/sidebar/files-tree.component.ts
index bbd51a0e..98d0e050 100644
--- a/frontend/src/app/applications/files/components/sidebar/files-tree.component.ts
+++ b/frontend/src/app/applications/files/components/sidebar/files-tree.component.ts
@@ -3,9 +3,17 @@ import { AsyncPipe } from '@angular/common'
import { Component, ElementRef, EventEmitter, inject, Input, OnDestroy, OnInit, Output, signal, ViewChild } from '@angular/core'
import { toObservable } from '@angular/core/rxjs-interop'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faFile } from '@fortawesome/free-regular-svg-icons'
-import { faArrowRotateRight, faArrowsAlt, faClone, faFolder, faObjectGroup, faQuestion, faSpinner, faTimes } from '@fortawesome/free-solid-svg-icons'
+import {
+ LucideCopy,
+ LucideDynamicIcon,
+ LucideFile,
+ LucideFiles,
+ LucideFolder,
+ LucideLoader,
+ LucideMove,
+ LucideRotateCw,
+ LucideX
+} from '@lucide/angular'
import { FILE_OPERATION, FILE_REPOSITORY } from '@sync-in-server/backend/src/applications/files/constants/operations'
import type { FileTree } from '@sync-in-server/backend/src/applications/files/interfaces/file-tree.interface'
import { SPACE_ALIAS, SPACE_ALL_OPERATIONS, SPACE_OPERATION } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
@@ -28,7 +36,7 @@ import { FilesSummaryComponent } from '../utils/files-summary.component'
@Component({
selector: 'app-files-tree',
- imports: [AsyncPipe, AutoResizeDirective, TreeModule, L10nTranslateDirective, FaIconComponent, TapDirective, ToBytesPipe, FilesSummaryComponent],
+ imports: [AsyncPipe, AutoResizeDirective, TreeModule, L10nTranslateDirective, LucideDynamicIcon, TapDirective, ToBytesPipe, FilesSummaryComponent],
templateUrl: 'files-tree.component.html'
})
export class FilesTreeComponent implements OnInit, OnDestroy {
@@ -55,15 +63,14 @@ export class FilesTreeComponent implements OnInit, OnDestroy {
@Input() toggleNodesAtStartup = false
protected readonly store = inject(StoreService)
protected readonly icons = {
- faArrowRotateRight,
- faArrowsAlt,
- faClone,
- faTimes,
- faFolder,
- faFile,
- faObjectGroup,
- faQuestion,
- faSpinner
+ LucideRotateCw,
+ LucideMove,
+ LucideCopy,
+ LucideX,
+ LucideFolder,
+ LucideFile,
+ LucideFiles,
+ LucideLoader
}
protected readonly options: ITreeOptions = {
actionMapping: {
diff --git a/frontend/src/app/applications/files/components/utils/file-location.component.ts b/frontend/src/app/applications/files/components/utils/file-location.component.ts
index cdccdbd0..3c4b73b8 100644
--- a/frontend/src/app/applications/files/components/utils/file-location.component.ts
+++ b/frontend/src/app/applications/files/components/utils/file-location.component.ts
@@ -1,11 +1,10 @@
import { Component, inject, Input } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import type { IconDefinition } from '@fortawesome/fontawesome-svg-core'
-import { faTrashAlt } from '@fortawesome/free-solid-svg-icons'
+import type { LucideIcon } from '@lucide/angular'
+import { LucideDynamicIcon, LucideTrash2 } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslatePipe } from 'angular-l10n'
export interface FileLocationDisplay {
- icon?: IconDefinition
+ icon?: LucideIcon
iconClass: 'primary' | 'purple'
showedPath?: string
repositoryTitle?: string
@@ -15,7 +14,7 @@ export interface FileLocationDisplay {
@Component({
selector: 'app-file-location',
- imports: [FaIconComponent, L10nTranslatePipe],
+ imports: [LucideDynamicIcon, L10nTranslatePipe],
template: `
@if (location) {
<span
@@ -27,14 +26,16 @@ export interface FileLocationDisplay {
>
@if (displayAsRepository) {
@if (displayedIcon) {
- <fa-icon [icon]="displayedIcon" [class]="displayedIconClass" class="me-2"></fa-icon>
+ <span [class]="displayedIconClass" class="me-2">
+ <svg [lucideIcon]="displayedIcon"></svg>
+ </span>
}
} @else {
@if (location.inTrash) {
- <fa-icon [icon]="faTrashAlt" class="file-location__icon"></fa-icon>
+ <svg [lucideIcon]="LucideTrash2" class="file-location__icon"></svg>
}
@if (location.icon) {
- <fa-icon [icon]="location.icon" class="file-location__icon"></fa-icon>
+ <svg [lucideIcon]="location.icon" class="file-location__icon"></svg>
}
}
<span class="file-location__label no-pointer-events" draggable="false">
@@ -70,7 +71,7 @@ export interface FileLocationDisplay {
align-items: center;
justify-content: center;
flex: 0 0 auto;
- font-size: 1.1em;
+ font-size: 0.875rem;
line-height: 1;
}
@@ -87,10 +88,10 @@ export class FileLocationComponent {
@Input({ required: true }) location: FileLocationDisplay
@Input() displayAsRepository = false
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
- protected readonly faTrashAlt = faTrashAlt
+ protected readonly LucideTrash2 = LucideTrash2
- protected get displayedIcon(): IconDefinition | undefined {
- return this.location?.inTrash ? this.faTrashAlt : this.location?.icon
+ protected get displayedIcon(): LucideIcon | undefined {
+ return this.location?.inTrash ? this.LucideTrash2 : this.location?.icon
}
protected get displayedIconClass(): string {
diff --git a/frontend/src/app/applications/files/components/utils/file-location.utils.ts b/frontend/src/app/applications/files/components/utils/file-location.utils.ts
index 36c4e844..b58c3a72 100644
--- a/frontend/src/app/applications/files/components/utils/file-location.utils.ts
+++ b/frontend/src/app/applications/files/components/utils/file-location.utils.ts
@@ -1,4 +1,4 @@
-import type { IconDefinition } from '@fortawesome/fontawesome-svg-core'
+import type { LucideIcon } from '@lucide/angular'
import { FILE_REPOSITORY } from '@sync-in-server/backend/src/applications/files/constants/operations'
import { SPACE_ALIAS, SPACE_REPOSITORY } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
import { SPACES_ICON, SPACES_TITLE } from '../../../spaces/spaces.constants'
@@ -9,7 +9,7 @@ export interface FileLocationPresentation {
repository: FileLocationRepository
repositoryTitle: string
relativePath: string
- icon: IconDefinition
+ icon: LucideIcon
iconClass: 'primary' | 'purple'
}
diff --git a/frontend/src/app/applications/files/components/viewers/components/files-viewer-search.component.html b/frontend/src/app/applications/files/components/viewers/components/files-viewer-search.component.html
index 127472ce..cbb5f91e 100644
--- a/frontend/src/app/applications/files/components/viewers/components/files-viewer-search.component.html
+++ b/frontend/src/app/applications/files/components/viewers/components/files-viewer-search.component.html
@@ -1,6 +1,6 @@
@if (adapter().isOpen()) {
<div class="files-viewer-search">
- <fa-icon class="files-viewer-search-icon" [icon]="icons.faMagnifyingGlass"></fa-icon>
+ <svg class="files-viewer-search-icon" [lucideIcon]="icons.LucideSearch"></svg>
<input
#searchInput
(keydown)="searchKeyDown($event)"
@@ -15,20 +15,20 @@
[disabled]="!adapter().matchCount()"
class="btn btn-sm btn-custom files-viewer-search-button"
type="button">
- <fa-icon [icon]="icons.faChevronUp"></fa-icon>
+ <svg [lucideIcon]="icons.LucideChevronUp"></svg>
</button>
<button
(click)="adapter().next()"
[disabled]="!adapter().matchCount()"
class="btn btn-sm btn-custom files-viewer-search-button"
type="button">
- <fa-icon [icon]="icons.faChevronDown"></fa-icon>
+ <svg [lucideIcon]="icons.LucideChevronDown"></svg>
</button>
<button
(click)="adapter().close()"
class="btn btn-sm btn-custom files-viewer-search-button"
type="button">
- <fa-icon [icon]="icons.faXmark"></fa-icon>
+ <svg [lucideIcon]="icons.LucideX"></svg>
</button>
</div>
}
diff --git a/frontend/src/app/applications/files/components/viewers/components/files-viewer-search.component.ts b/frontend/src/app/applications/files/components/viewers/components/files-viewer-search.component.ts
index 3841996a..ec145125 100644
--- a/frontend/src/app/applications/files/components/viewers/components/files-viewer-search.component.ts
+++ b/frontend/src/app/applications/files/components/viewers/components/files-viewer-search.component.ts
@@ -1,19 +1,18 @@
import { Component, effect, ElementRef, input, signal, untracked, viewChild } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faChevronDown, faChevronUp, faMagnifyingGlass, faXmark } from '@fortawesome/free-solid-svg-icons'
+import { LucideChevronDown, LucideChevronUp, LucideDynamicIcon, LucideSearch, LucideX } from '@lucide/angular'
import type { FileViewerSearchAdapter } from './files-viewer-search-adapter'
@Component({
selector: 'app-files-viewer-search',
- imports: [FormsModule, FaIconComponent],
+ imports: [FormsModule, LucideDynamicIcon],
styleUrl: 'files-viewer-search.component.scss',
templateUrl: 'files-viewer-search.component.html'
})
export class FilesViewerSearchComponent {
adapter = input.required<FileViewerSearchAdapter>()
private readonly searchInput = viewChild<ElementRef<HTMLInputElement>>('searchInput')
- protected readonly icons = { faChevronDown, faChevronUp, faMagnifyingGlass, faXmark }
+ protected readonly icons = { LucideChevronDown, LucideChevronUp, LucideSearch, LucideX }
protected readonly query = signal('')
private currentAdapter: FileViewerSearchAdapter | null = null
diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-image.component.html b/frontend/src/app/applications/files/components/viewers/files-viewer-image.component.html
index 669f10b2..987a6ab0 100644
--- a/frontend/src/app/applications/files/components/viewers/files-viewer-image.component.html
+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-image.component.html
@@ -6,14 +6,14 @@
[adaptivePosition]="true"
class="btn btn-custom me-1"
type="button">
- <fa-icon [icon]="icons.faAngleLeft"></fa-icon>
+ <svg [lucideIcon]="icons.LucideChevronLeft"></svg>
</button>
<button
(click)="nextImage()"
[tooltip]="'Next' | translate:locale.language"
class="btn btn-custom me-1"
type="button">
- <fa-icon [icon]="icons.faAngleRight"></fa-icon>
+ <svg [lucideIcon]="icons.LucideChevronRight"></svg>
</button>
@if (!isSlideshowActive()) {
<button
@@ -21,7 +21,7 @@
[tooltip]="'Start Slideshow' | translate:locale.language"
class="btn btn-custom me-1"
type="button">
- <fa-icon [icon]="icons.faPlay"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlay"></svg>
</button>
} @else {
<button
@@ -29,7 +29,7 @@
[tooltip]="'Stop slideshow' | translate:locale.language"
class="btn btn-custom me-1"
type="button">
- <fa-icon [icon]="icons.faStop"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSquareStop"></svg>
</button>
}
<button
@@ -37,7 +37,7 @@
[tooltip]="'Fullscreen' | translate:locale.language"
class="btn btn-custom me-1"
type="button">
- <fa-icon [icon]="icons.faExpand"></fa-icon>
+ <svg [lucideIcon]="icons.LucideExpand"></svg>
</button>
</div>
<div class="px-2">{{ imageIndex() + 1 }}<span class="px-1" l10nTranslate>of</span>{{ imageCount() }}</div>
@@ -47,7 +47,7 @@
[tooltip]="'Info' | translate:locale.language"
class="d-none d-sm-block btn btn-custom me-1"
type="button">
- <fa-icon [icon]="icons.faInfo"></fa-icon>
+ <svg [lucideIcon]="icons.LucideInfo"></svg>
</button>
</div>
<div class="app-viewer-image" [style.height.px]="currentHeightWithOffset()">
diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-image.component.ts b/frontend/src/app/applications/files/components/viewers/files-viewer-image.component.ts
index 38b4fad1..b0ff78e3 100755
--- a/frontend/src/app/applications/files/components/viewers/files-viewer-image.component.ts
+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-image.component.ts
@@ -1,8 +1,7 @@
import { ChangeDetectionStrategy, Component, computed, DestroyRef, ElementRef, inject, input, model, signal, viewChild } from '@angular/core'
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faAngleLeft, faAngleRight, faExpand, faInfo, faPlay, faStop } from '@fortawesome/free-solid-svg-icons'
+import { LucideChevronLeft, LucideChevronRight, LucideDynamicIcon, LucideExpand, LucideInfo, LucidePlay, LucideSquareStop } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { ButtonCheckboxDirective } from 'ngx-bootstrap/buttons'
import { TooltipModule } from 'ngx-bootstrap/tooltip'
@@ -11,7 +10,7 @@ import { FileModel } from '../../models/file.model'
@Component({
selector: 'app-files-viewer-image',
- imports: [FormsModule, TooltipModule, FaIconComponent, ButtonCheckboxDirective, L10nTranslatePipe, L10nTranslateDirective],
+ imports: [FormsModule, TooltipModule, LucideDynamicIcon, ButtonCheckboxDirective, L10nTranslatePipe, L10nTranslateDirective],
templateUrl: 'files-viewer-image.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
@@ -25,7 +24,7 @@ export class FilesViewerImageComponent {
protected imageCount = computed(() => this.directoryImages().length)
protected imageIndex = computed(() => this.directoryImages().indexOf(this.file()))
protected imageResolution = signal<string>('')
- protected readonly icons = { faAngleLeft, faAngleRight, faExpand, faInfo, faPlay, faStop }
+ protected readonly icons = { LucideChevronLeft, LucideChevronRight, LucideExpand, LucideInfo, LucidePlay, LucideSquareStop }
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
private readonly slideDelay = 5000
private destroyRef = inject(DestroyRef)
diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.html b/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.html
index 88f77069..88bb4fc5 100644
--- a/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.html
+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.html
@@ -7,7 +7,7 @@
class="btn {{ isReadonly() ? 'btn-warning' : 'btn-default' }} me-1"
type="button"
[disabled]="!isSupported() || !isWriteable() || isSaving()">
- <fa-icon [icon]="isReadonly() ? icons.faLock : icons.faLockOpen"></fa-icon>
+ <svg [lucideIcon]="isReadonly() ? icons.LucideLock : icons.LucideLockOpen"></svg>
</button>
<button
(click)="save()"
@@ -18,9 +18,9 @@
type="button"
[disabled]="!canSave()">
@if (isSaving()) {
- <fa-icon [icon]="icons.faSpinner" animation="spin"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true"></svg>
} @else {
- <fa-icon [icon]="icons.faFloppyDisk"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSave"></svg>
}
</button>
<button
@@ -29,7 +29,7 @@
[tooltip]="'Undo' | translate:locale.language"
class="d-none d-sm-block btn btn-custom me-1"
type="button">
- <fa-icon [icon]="icons.faReply"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUndo"></svg>
</button>
<button
(click)="onRedo()"
@@ -37,7 +37,7 @@
[tooltip]="'Redo' | translate:locale.language"
class="d-none d-sm-block btn btn-custom me-1"
type="button">
- <fa-icon [icon]="icons.faShare"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRedo"></svg>
</button>
<div class="files-markdown-mode-group">
@@ -47,7 +47,7 @@
[tooltip]="(isSourceMode() ? 'Visual Mode' : 'Code Mode') | translate:locale.language"
class="btn btn-custom mx-0"
type="button">
- <fa-icon [icon]="isSourceMode() ? icons.faEye : icons.faKeyboard"></fa-icon>
+ <svg [lucideIcon]="isSourceMode() ? icons.LucideEye : icons.LucideKeyboard"></svg>
</button>
<div class="vr files-markdown-mode-separator files-markdown-mode-separator-end"></div>
</div>
@@ -62,7 +62,7 @@
class="btn btn-custom dropdown-toggle files-markdown-heading-toggle"
dropdownToggle
type="button">
- <fa-icon [icon]="icons.faHeading"></fa-icon>
+ <svg [lucideIcon]="icons.LucideHeading"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu files-markdown-heading-menu" role="menu">
@for (level of headingLevels; track level) {
@@ -81,7 +81,7 @@
[tooltip]="'Bold' | translate:locale.language"
class="btn btn-custom"
type="button">
- <fa-icon [icon]="icons.faBold"></fa-icon>
+ <svg [lucideIcon]="icons.LucideBold"></svg>
</button>
<button
(click)="toggleItalic()"
@@ -90,7 +90,7 @@
[tooltip]="'Italic' | translate:locale.language"
class="btn btn-custom"
type="button">
- <fa-icon [icon]="icons.faItalic"></fa-icon>
+ <svg [lucideIcon]="icons.LucideItalic"></svg>
</button>
<button
(click)="toggleUnderline()"
@@ -99,7 +99,7 @@
[tooltip]="'Underline' | translate:locale.language"
class="d-none d-md-block btn btn-custom"
type="button">
- <fa-icon [icon]="icons.faUnderline"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUnderline"></svg>
</button>
<button
(click)="toggleStrike()"
@@ -108,7 +108,7 @@
[tooltip]="'Strikethrough' | translate:locale.language"
class="d-none d-md-block btn btn-custom"
type="button">
- <fa-icon [icon]="icons.faStrikethrough"></fa-icon>
+ <svg [lucideIcon]="icons.LucideStrikethrough"></svg>
</button>
<div class="d-none d-md-block vr files-markdown-toolbar-separator"></div>
@@ -121,13 +121,13 @@
class="btn btn-custom dropdown-toggle"
dropdownToggle
type="button">
- <fa-icon [icon]="icons.faListUl"></fa-icon>
+ <svg [lucideIcon]="icons.LucideList"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu files-markdown-list-menu" role="menu">
<li role="menuitem">
<a (click)="toggleBulletList()" [class.active]="editor.isActive('bulletList')" class="dropdown-item">
<span class="files-markdown-list-item">
- <fa-icon [icon]="icons.faListUl"></fa-icon>
+ <svg [lucideIcon]="icons.LucideList"></svg>
<span l10nTranslate>Bullet List</span>
</span>
</a>
@@ -135,7 +135,7 @@
<li role="menuitem">
<a (click)="toggleOrderedList()" [class.active]="editor.isActive('orderedList')" class="dropdown-item">
<span class="files-markdown-list-item">
- <fa-icon [icon]="icons.faListOl"></fa-icon>
+ <svg [lucideIcon]="icons.LucideListOrdered"></svg>
<span l10nTranslate>Ordered List</span>
</span>
</a>
@@ -143,7 +143,7 @@
<li role="menuitem">
<a (click)="toggleTaskList()" [class.active]="editor.isActive('taskList')" class="dropdown-item">
<span class="files-markdown-list-item">
- <fa-icon [icon]="icons.faSquareCheck"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSquareCheck"></svg>
<span l10nTranslate>Task List</span>
</span>
</a>
@@ -159,13 +159,13 @@
class="btn btn-custom dropdown-toggle"
dropdownToggle
type="button">
- <fa-icon [icon]="icons.faCode"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCode"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu files-markdown-code-menu" role="menu">
<li role="menuitem">
<a (click)="toggleCode()" [class.active]="editor.isActive('code')" class="dropdown-item">
<span class="files-markdown-code-item">
- <fa-icon [icon]="icons.faCode"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCode"></svg>
<span l10nTranslate>Inline Code</span>
</span>
</a>
@@ -173,7 +173,7 @@
<li role="menuitem">
<a (click)="toggleCodeBlock()" [class.active]="editor.isActive('codeBlock')" class="dropdown-item">
<span class="files-markdown-code-item">
- <fa-icon [icon]="icons.faCode"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCode"></svg>
<span l10nTranslate>Code Block</span>
</span>
</a>
@@ -190,7 +190,7 @@
[tooltip]="'Blockquote' | translate:locale.language"
class="d-none d-md-block btn btn-custom"
type="button">
- <fa-icon [icon]="icons.faQuoteLeft"></fa-icon>
+ <svg [lucideIcon]="icons.LucideQuote"></svg>
</button>
</div>
@@ -203,49 +203,49 @@
class="btn btn-custom dropdown-toggle"
dropdownToggle
type="button">
- <fa-icon [icon]="icons.faTable"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTable"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu files-markdown-table-menu" role="menu">
<li role="menuitem">
<a (click)="insertTable()" class="dropdown-item">
- <span><fa-icon [icon]="icons.faTable"></fa-icon><span l10nTranslate>Create a table</span></span>
+ <span><svg [lucideIcon]="icons.LucideTable"></svg><span l10nTranslate>Create a table</span></span>
</a>
</li>
<li role="menuitem">
<a (click)="deleteTable()" [class.disabled]="!canEditTable()" class="dropdown-item">
- <span><fa-icon [icon]="icons.faTrashCan"></fa-icon><span l10nTranslate>Delete table</span></span>
+ <span><svg [lucideIcon]="icons.LucideTrash2"></svg><span l10nTranslate>Delete table</span></span>
</a>
</li>
<li class="dropdown-divider"></li>
<li role="menuitem">
<a (click)="addTableRow('above')" [class.disabled]="!canEditTable()" class="dropdown-item">
- <span><fa-icon [icon]="icons.faSquarePlus"></fa-icon><span l10nTranslate>Add row above</span></span>
+ <span><svg [lucideIcon]="icons.LucideSquarePlus"></svg><span l10nTranslate>Add row above</span></span>
</a>
</li>
<li role="menuitem">
<a (click)="addTableRow('below')" [class.disabled]="!canEditTable()" class="dropdown-item">
- <span><fa-icon [icon]="icons.faSquarePlus"></fa-icon><span l10nTranslate>Add row below</span></span>
+ <span><svg [lucideIcon]="icons.LucideSquarePlus"></svg><span l10nTranslate>Add row below</span></span>
</a>
</li>
<li role="menuitem">
<a (click)="deleteTableRow()" [class.disabled]="!canEditTable()" class="dropdown-item">
- <span><fa-icon [icon]="icons.faSquareMinus"></fa-icon><span l10nTranslate>Delete row</span></span>
+ <span><svg [lucideIcon]="icons.LucideSquareMinus"></svg><span l10nTranslate>Delete row</span></span>
</a>
</li>
<li class="dropdown-divider"></li>
<li role="menuitem">
<a (click)="addTableColumn('left')" [class.disabled]="!canEditTable()" class="dropdown-item">
- <span><fa-icon [icon]="icons.faSquarePlus"></fa-icon><span l10nTranslate>Add column left</span></span>
+ <span><svg [lucideIcon]="icons.LucideSquarePlus"></svg><span l10nTranslate>Add column left</span></span>
</a>
</li>
<li role="menuitem">
<a (click)="addTableColumn('right')" [class.disabled]="!canEditTable()" class="dropdown-item">
- <span><fa-icon [icon]="icons.faSquarePlus"></fa-icon><span l10nTranslate>Add column right</span></span>
+ <span><svg [lucideIcon]="icons.LucideSquarePlus"></svg><span l10nTranslate>Add column right</span></span>
</a>
</li>
<li role="menuitem">
<a (click)="deleteTableColumn()" [class.disabled]="!canEditTable()" class="dropdown-item">
- <span><fa-icon [icon]="icons.faSquareMinus"></fa-icon><span l10nTranslate>Delete column</span></span>
+ <span><svg [lucideIcon]="icons.LucideSquareMinus"></svg><span l10nTranslate>Delete column</span></span>
</a>
</li>
</ul>
@@ -257,7 +257,7 @@
[tooltip]="'Horizontal Rule' | translate:locale.language"
class="d-none d-lg-block btn btn-custom"
type="button">
- <fa-icon [icon]="icons.faMinus"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMinus"></svg>
</button>
<button
@@ -267,7 +267,7 @@
[tooltip]="'Link' | translate:locale.language"
class="btn btn-custom"
type="button">
- <fa-icon [icon]="icons.faLink"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLink"></svg>
</button>
<div class="btn-group" dropdown>
@@ -278,13 +278,13 @@
class="btn btn-custom dropdown-toggle"
dropdownToggle
type="button">
- <fa-icon [icon]="icons.faImage"></fa-icon>
+ <svg [lucideIcon]="icons.LucideImage"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu files-markdown-image-menu" role="menu">
<li role="menuitem">
<a (click)="openImageFilePicker()" class="dropdown-item">
<span class="files-markdown-image-item">
- <fa-icon [icon]="icons.faImage"></fa-icon>
+ <svg [lucideIcon]="icons.LucideImage"></svg>
<span l10nTranslate>Image from file</span>
</span>
</a>
@@ -292,7 +292,7 @@
<li role="menuitem">
<a (click)="insertImageFromUrl()" class="dropdown-item">
<span class="files-markdown-image-item">
- <fa-icon [icon]="icons.faLink"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLink"></svg>
<span l10nTranslate>Image from URL</span>
</span>
</a>
@@ -312,7 +312,7 @@
[tooltip]="'Line Wrap' | translate:locale.language"
class="btn btn-custom"
type="button">
- <fa-icon [icon]="icons.faArrowsLeftRightToLine"></fa-icon>
+ <svg [lucideIcon]="icons.LucideWrapText"></svg>
</button>
}
<div class="d-none d-sm-block vr files-markdown-toolbar-separator"></div>
@@ -323,7 +323,7 @@
[tooltip]="'Search' | translate:locale.language"
class="d-none d-sm-block btn btn-custom me-1"
type="button">
- <fa-icon [icon]="icons.faMagnifyingGlass"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSearch"></svg>
</button>
@if (warnOnUnsavedChanges()) {
diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.ts b/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.ts
index 09d22b1d..cc38fdc5 100644
--- a/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.ts
+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.ts
@@ -4,35 +4,36 @@ import { FormsModule } from '@angular/forms'
import { redo, redoDepth, undo, undoDepth } from '@codemirror/commands'
import { LanguageDescription } from '@codemirror/language'
import { languages } from '@codemirror/language-data'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faSquareMinus, faSquarePlus } from '@fortawesome/free-regular-svg-icons'
import {
- faArrowsLeftRightToLine,
- faBold,
- faCode,
- faEye,
- faFloppyDisk,
- faHeading,
- faImage,
- faItalic,
- faKeyboard,
- faLink,
- faListOl,
- faListUl,
- faLock,
- faLockOpen,
- faMagnifyingGlass,
- faMinus,
- faQuoteLeft,
- faReply,
- faShare,
- faSpinner,
- faSquareCheck,
- faStrikethrough,
- faTable,
- faTrashCan,
- faUnderline
-} from '@fortawesome/free-solid-svg-icons'
+ LucideBold,
+ LucideCode,
+ LucideDynamicIcon,
+ LucideEye,
+ LucideHeading,
+ LucideImage,
+ LucideItalic,
+ LucideKeyboard,
+ LucideLink,
+ LucideList,
+ LucideListOrdered,
+ LucideLoader,
+ LucideLock,
+ LucideLockOpen,
+ LucideMinus,
+ LucideQuote,
+ LucideRedo,
+ LucideSave,
+ LucideSearch,
+ LucideSquareCheck,
+ LucideSquareMinus,
+ LucideSquarePlus,
+ LucideStrikethrough,
+ LucideTable,
+ LucideTrash2,
+ LucideUnderline,
+ LucideUndo,
+ LucideWrapText
+} from '@lucide/angular'
import { Editor, Extension, type Range } from '@tiptap/core'
import Image, { type SetImageOptions } from '@tiptap/extension-image'
import { TaskItem } from '@tiptap/extension-list'
@@ -80,7 +81,7 @@ const ExitInlineCodeOnEnter = Extension.create({
FormsModule,
ButtonCheckboxDirective,
BsDropdownModule,
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslatePipe,
L10nTranslateDirective,
FilesViewerSearchComponent
@@ -129,33 +130,33 @@ export class FilesViewerMarkdownComponent extends FilesViewerEditableBase implem
onSelectionUpdate: () => this.visualSearchAdapter.sync()
})
protected readonly icons = {
- faArrowsLeftRightToLine,
- faBold,
- faCode,
- faEye,
- faFloppyDisk,
- faHeading,
- faImage,
- faItalic,
- faKeyboard,
- faLink,
- faListOl,
- faListUl,
- faLock,
- faLockOpen,
- faMagnifyingGlass,
- faMinus,
- faQuoteLeft,
- faReply,
- faShare,
- faSquareCheck,
- faSpinner,
- faStrikethrough,
- faTable,
- faTrashCan,
- faUnderline,
- faSquareMinus,
- faSquarePlus
+ LucideWrapText,
+ LucideBold,
+ LucideCode,
+ LucideEye,
+ LucideSave,
+ LucideHeading,
+ LucideImage,
+ LucideItalic,
+ LucideKeyboard,
+ LucideLink,
+ LucideListOrdered,
+ LucideList,
+ LucideLock,
+ LucideLockOpen,
+ LucideSearch,
+ LucideMinus,
+ LucideQuote,
+ LucideUndo,
+ LucideRedo,
+ LucideSquareCheck,
+ LucideLoader,
+ LucideStrikethrough,
+ LucideTable,
+ LucideTrash2,
+ LucideUnderline,
+ LucideSquareMinus,
+ LucideSquarePlus
}
protected readonly headingLevels: MarkdownHeadingLevel[] = [1, 2, 3, 4]
private readonly sourceEditor = viewChild<CodeEditor>('sourceEditor')
diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.html b/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.html
index 91851129..bf72d133 100644
--- a/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.html
+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.html
@@ -7,7 +7,7 @@
class="btn {{ isReadonly() ? 'btn-warning' : 'btn-default' }} me-1"
type="button"
[disabled]="!isSupported() || !isWriteable() || isSaving()">
- <fa-icon [icon]="isReadonly() ? icons.faLock : icons.faLockOpen"></fa-icon>
+ <svg [lucideIcon]="isReadonly() ? icons.LucideLock : icons.LucideLockOpen"></svg>
</button>
<button
(click)="save()"
@@ -18,9 +18,9 @@
type="button"
[disabled]="!canSave()">
@if (isSaving()) {
- <fa-icon [icon]="icons.faSpinner" animation="spin"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true"></svg>
} @else {
- <fa-icon [icon]="icons.faFloppyDisk"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSave"></svg>
}
</button>
<button
@@ -29,7 +29,7 @@
[tooltip]="'Undo' | translate:locale.language"
class="d-none d-sm-block btn btn-custom me-1"
type="button">
- <fa-icon [icon]="icons.faReply"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUndo"></svg>
</button>
<button
(click)="onRedo()"
@@ -37,7 +37,7 @@
[tooltip]="'Redo' | translate:locale.language"
class="d-none d-sm-block btn btn-custom me-1"
type="button">
- <fa-icon [icon]="icons.faShare"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRedo"></svg>
</button>
<button
btnCheckbox
@@ -46,7 +46,7 @@
[tooltip]="'Line Wrap' | translate:locale.language"
class="btn btn-custom me-1"
type="button">
- <fa-icon [icon]="icons.faArrowsLeftRightToLine"></fa-icon>
+ <svg [lucideIcon]="icons.LucideWrapText"></svg>
</button>
<button
btnCheckbox
@@ -55,7 +55,7 @@
[tooltip]="'Search' | translate:locale.language"
class="d-none d-sm-block btn btn-custom"
type="button">
- <fa-icon [icon]="icons.faMagnifyingGlass"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSearch"></svg>
</button>
@if (warnOnUnsavedChanges()) {
<button (click)="save(true)"
diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.ts b/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.ts
index 2aa3b39d..424fc663 100644
--- a/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.ts
+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.ts
@@ -4,17 +4,17 @@ import { FormsModule } from '@angular/forms'
import { redo, redoDepth, undo, undoDepth } from '@codemirror/commands'
import { LanguageDescription } from '@codemirror/language'
import { languages } from '@codemirror/language-data'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import {
- faArrowsLeftRightToLine,
- faFloppyDisk,
- faLock,
- faLockOpen,
- faMagnifyingGlass,
- faReply,
- faShare,
- faSpinner
-} from '@fortawesome/free-solid-svg-icons'
+ LucideDynamicIcon,
+ LucideLoader,
+ LucideLock,
+ LucideLockOpen,
+ LucideRedo,
+ LucideSave,
+ LucideSearch,
+ LucideUndo,
+ LucideWrapText
+} from '@lucide/angular'
import { L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { ButtonCheckboxDirective } from 'ngx-bootstrap/buttons'
import { TooltipModule } from 'ngx-bootstrap/tooltip'
@@ -29,7 +29,7 @@ import { FilesViewerSearchComponent } from './components/files-viewer-search.com
CodeEditor,
TooltipModule,
FormsModule,
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslatePipe,
ButtonCheckboxDirective,
L10nTranslateDirective,
@@ -63,7 +63,7 @@ export class FilesViewerTextComponent extends FilesViewerEditableBase implements
protected content = ''
protected currentLanguage = undefined
protected readonly languages: LanguageDescription[] = languages
- protected readonly icons = { faFloppyDisk, faLock, faLockOpen, faMagnifyingGlass, faSpinner, faArrowsLeftRightToLine, faReply, faShare }
+ protected readonly icons = { LucideSave, LucideLock, LucideLockOpen, LucideSearch, LucideLoader, LucideWrapText, LucideUndo, LucideRedo }
protected readonly searchAdapter = new CodeMirrorFileViewerSearchAdapter(() => this.editor()?.view)
protected readonly isSearchPanelOpen = this.searchAdapter.isOpen
private focusRafId: number | null = null
diff --git a/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.html b/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.html
index 9f47e29e..f9f968a2 100644
--- a/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.html
+++ b/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.html
@@ -2,12 +2,12 @@
<div class="recents-widget-card__header">
<div class="recents-widget-card__title-wrap">
<span class="recents-widget-card__title-icon">
- <fa-icon [icon]="icons.faFileLines"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFileText"></svg>
</span>
<span class="recents-widget-card__title" l10nTranslate>Files</span>
</div>
<button type="button" class="recents-widget-card__toggle" (click)="switchMore()">
- <fa-icon [icon]="moreElements ? icons.faMagnifyingGlassMinus : icons.faMagnifyingGlassPlus"></fa-icon>
+ <svg [lucideIcon]="moreElements ? icons.LucideZoomOut : icons.LucideZoomIn"></svg>
</button>
</div>
<div class="recents-widget-card__body">
@@ -24,7 +24,7 @@
</button>
} @empty {
<div class="recent-empty-state">
- <fa-icon [icon]="icons.faFileLines" size="2x"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFileText"></svg>
<div class="mt-3" l10nTranslate>No recent files</div>
</div>
}
diff --git a/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.ts b/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.ts
index da660936..0c278389 100644
--- a/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.ts
+++ b/frontend/src/app/applications/files/components/widgets/files-recents-widget.component.ts
@@ -1,8 +1,6 @@
import { Component, computed, inject, Signal } from '@angular/core'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faFileLines } from '@fortawesome/free-regular-svg-icons'
-import { faMagnifyingGlassMinus, faMagnifyingGlassPlus } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideFileText, LucideZoomIn, LucideZoomOut } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { LiveTimeAgoPipe } from '../../../../common/pipes/time-ago-live.pipe'
import { StoreService } from '../../../../store/store.service'
@@ -13,13 +11,13 @@ import { FileLocationComponent } from '../utils/file-location.component'
@Component({
selector: 'app-files-recents-widget',
- imports: [L10nTranslateDirective, FaIconComponent, LiveTimeAgoPipe, FileLocationComponent],
+ imports: [L10nTranslateDirective, LucideDynamicIcon, LiveTimeAgoPipe, FileLocationComponent],
templateUrl: './files-recents-widget.component.html',
styleUrl: './files-recents-widget.component.scss'
})
export class FilesRecentsWidgetComponent {
protected moreElements = false
- protected readonly icons = { faFileLines, faMagnifyingGlassPlus, faMagnifyingGlassMinus }
+ protected readonly icons = { LucideFileText, LucideZoomIn, LucideZoomOut }
private readonly router = inject(Router)
private readonly store = inject(StoreService)
private readonly filesService = inject(FilesService)
diff --git a/frontend/src/app/applications/files/interfaces/file-task-view.interface.ts b/frontend/src/app/applications/files/interfaces/file-task-view.interface.ts
index 82dbc3ef..a0c3fd7e 100644
--- a/frontend/src/app/applications/files/interfaces/file-task-view.interface.ts
+++ b/frontend/src/app/applications/files/interfaces/file-task-view.interface.ts
@@ -1,11 +1,11 @@
-import type { IconDefinition } from '@fortawesome/fontawesome-svg-core'
+import type { LucideIcon } from '@lucide/angular'
import type { FileTask } from '@sync-in-server/backend/src/applications/files/models/file-task'
export type TaskProgressbarType = 'warning' | 'danger' | null
export type TaskProgressItemType = 'currentSize' | 'totalSize' | 'size' | 'directories' | 'files' | 'endedAt'
export interface TaskProgressItem {
- icon?: IconDefinition
+ icon?: LucideIcon
type: TaskProgressItemType
value: number
}
@@ -17,12 +17,12 @@ export interface FileTaskView extends FileTask {
displayPriority: number
error: boolean
openable: boolean
- operationIcon: IconDefinition
+ operationIcon: LucideIcon
pending: boolean
progress: number
progressItems: TaskProgressItem[]
progressType: TaskProgressbarType
queued: boolean
- statusIcon: IconDefinition
+ statusIcon: LucideIcon
}
}
diff --git a/frontend/src/app/applications/files/models/file-location.model.ts b/frontend/src/app/applications/files/models/file-location.model.ts
index 6ffcca0c..306b21ff 100644
--- a/frontend/src/app/applications/files/models/file-location.model.ts
+++ b/frontend/src/app/applications/files/models/file-location.model.ts
@@ -1,4 +1,4 @@
-import type { IconDefinition } from '@fortawesome/fontawesome-svg-core'
+import type { LucideIcon } from '@lucide/angular'
import { FILE_REPOSITORY } from '@sync-in-server/backend/src/applications/files/constants/operations'
import { SPACE_REPOSITORY } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
import { type FileLocationRepository, resolveFileLocation } from '../components/utils/file-location.utils'
@@ -28,7 +28,7 @@ export abstract class FileLocationModel {
// Computed
mimeUrl: string
- icon: IconDefinition
+ icon: LucideIcon
iconClass: 'primary' | 'purple' = 'primary'
showedPath: string
diff --git a/frontend/src/app/applications/links/components/dialogs/link-dialog.component.html b/frontend/src/app/applications/links/components/dialogs/link-dialog.component.html
index cdd33e2d..b086430e 100644
--- a/frontend/src/app/applications/links/components/dialogs/link-dialog.component.html
+++ b/frontend/src/app/applications/links/components/dialogs/link-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.links"></fa-icon>
+ <svg [lucideIcon]="icons.links"></svg>
<span>{{ linkForm.value.name || linkForm.value.shareName }}</span>
</h4>
<h4 class="modal-title ms-auto">
@@ -19,7 +19,9 @@
<div class="d-flex align-items-start gap-3">
<div class="flex-grow-1 min-width-0">
<div class="d-flex align-items-center text-truncate">
- <fa-icon [icon]="icons.links" class="circle-primary-icon me-2"></fa-icon>
+ <span class="circle-primary-icon me-2">
+ <svg [lucideIcon]="icons.links"></svg>
+ </span>
<div class="d-flex flex-column text-truncate">
<span class="text-truncate">{{ linkForm.value.name || linkForm.value.shareName }}</span>
<span class="fs-sm text-truncate">{{ linkForm.value.email }}</span>
@@ -40,7 +42,7 @@
[tooltip]="SPACES_PERMISSIONS_TEXT[p.key].text | translate:locale.language"
class="btn btn-sm btn-custom me-0 ms-2"
type="button">
- <fa-icon [icon]="SPACES_PERMISSIONS_TEXT[p.key].icon" size="lg"></fa-icon>
+ <svg [lucideIcon]="SPACES_PERMISSIONS_TEXT[p.key].icon" size="1.333em"></svg>
</button>
@if (last) {
<div class="vr mx-2"></div>
@@ -52,7 +54,7 @@
[tooltip]="'Copy link' | translate:locale.language"
container="body"
type="button">
- <fa-icon [icon]="linkWasCopied ? icons.faClipboardCheck : icons.faClipboard" size="lg"></fa-icon>
+ <svg [lucideIcon]="linkWasCopied ? icons.LucideClipboardCheck : icons.LucideClipboard" size="1.333em"></svg>
</button>
</div>
</div>
diff --git a/frontend/src/app/applications/links/components/dialogs/link-dialog.component.ts b/frontend/src/app/applications/links/components/dialogs/link-dialog.component.ts
index 5da25ab4..63d34744 100644
--- a/frontend/src/app/applications/links/components/dialogs/link-dialog.component.ts
+++ b/frontend/src/app/applications/links/components/dialogs/link-dialog.component.ts
@@ -2,8 +2,7 @@ import { KeyValuePipe } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, OnInit, Output } from '@angular/core'
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faClipboard, faClipboardCheck, faEye, faEyeSlash, faLock, faLockOpen } from '@fortawesome/free-solid-svg-icons'
+import { LucideClipboard, LucideClipboardCheck, LucideDynamicIcon, LucideEye, LucideEyeOff, LucideLock, LucideLockOpen } from '@lucide/angular'
import type { FileSpace } from '@sync-in-server/backend/src/applications/files/interfaces/file-space.interface'
import { LINK_TYPE } from '@sync-in-server/backend/src/applications/links/constants/links'
import type { CreateOrUpdateLinkDto } from '@sync-in-server/backend/src/applications/links/dto/create-or-update-link.dto'
@@ -39,7 +38,7 @@ import { LinksService } from '../../services/links.service'
@Component({
selector: 'app-link-dialog',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslateDirective,
BsDatepickerModule,
ButtonsModule,
@@ -73,7 +72,7 @@ export class LinkDialogComponent implements OnInit {
protected submitted = false
protected readonly SPACES_PERMISSIONS_TEXT = SPACES_PERMISSIONS_TEXT
protected readonly originalOrderKeyValue = originalOrderKeyValue
- protected readonly icons = { faEye, faEyeSlash, links: SPACES_ICON.LINKS, faClipboard, faClipboardCheck, faLock, faLockOpen }
+ protected readonly icons = { LucideEye, LucideEyeOff, links: SPACES_ICON.LINKS, LucideClipboard, LucideClipboardCheck, LucideLock, LucideLockOpen }
protected readonly languages: string[] = this.layout.getLanguages()
protected readonly minDate: Date = currentDate()
protected readonly defaultPassword: string = this.layout.translateString(USER_PASSWORD_CHANGE_TEXT)
diff --git a/frontend/src/app/applications/links/components/links.component.html b/frontend/src/app/applications/links/components/links.component.html
index 740ac2fb..9d9cb7d9 100644
--- a/frontend/src/app/applications/links/components/links.component.html
+++ b/frontend/src/app/applications/links/components/links.component.html
@@ -4,27 +4,27 @@
class="d-none d-sm-block btn btn-default me-1"
[tooltip]="'Refresh' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faArrowRotateRight" [animation]="loading ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw" [class.icon-spin]="loading"></svg>
</button>
<button (click)="openLinkDialog()"
[disabled]="!selected" class="btn btn-default me-1"
[tooltip]="'Edit link' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencil"></svg>
</button>
<button (click)="copyToClipboard()"
[disabled]="!selected"
class="btn me-1 {{linkWasCopied ? 'btn-primary' : 'btn-default'}}"
[tooltip]="'Copy link' | translate:locale.language"
type="button">
- <fa-icon [icon]="linkWasCopied? icons.faClipboardCheck : icons.faClipboard"></fa-icon>
+ <svg [lucideIcon]="linkWasCopied? icons.LucideClipboardCheck : icons.LucideClipboard"></svg>
</button>
<button (click)="goTo()"
[disabled]="!selected"
class="btn btn-default"
[tooltip]="'Go to' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faMapMarkerAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMapPin"></svg>
</button>
<div class="ms-auto">
<!--Start Filter Button-->
@@ -78,7 +78,7 @@
}
@if (s.link.expiresAt) {
<span class="badge bg-{{s.hTimeExpirationAgo >= 1 ? 'warning': 'danger'}} ms-1">
- <fa-icon [icon]="icons.faClock" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="icons.LucideClock"></svg>
@if (s.hTimeExpirationAgo >= 1) {
{{ s.hTimeExpirationAgo }}&nbsp;{{ (s.hTimeExpirationAgo === 1 ? 'day' : 'days') | translate:locale.language }}
}
@@ -113,7 +113,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -168,7 +168,7 @@
}
@if (s.link.expiresAt) {
<span class="badge bg-{{s.hTimeExpirationAgo >= 1 ? 'warning': 'danger'}} ms-1">
- <fa-icon [icon]="icons.faClock" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="icons.LucideClock"></svg>
@if (s.hTimeExpirationAgo >= 1) {
{{ s.hTimeExpirationAgo }}&nbsp;{{ (s.hTimeExpirationAgo === 1 ? 'day' : 'days') | translate:locale.language }}
}
@@ -176,7 +176,7 @@
}
@if (s.link.requireAuth) {
<span class="badge bg-gray-dark ms-1">
- <fa-icon [icon]="icons.faLock"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLock"></svg>
</span>
}
}
@@ -213,22 +213,22 @@
<!--Start Context Menu -->
<context-menu #MainContextMenu>
<ng-template (execute)="loadShareLinks()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>Refresh</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
</context-menu>
<context-menu #TargetContextMenu>
<ng-template (execute)="goTo()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faMapMarkerAlt"></fa-icon>Go to</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideMapPin"></svg>Go to</span>
</ng-template>
<ng-template (execute)="openLinkDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPen"></fa-icon>Edit link</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePencil"></svg>Edit link</span>
</ng-template>
<ng-template (execute)="copyToClipboard()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faClipboard"></fa-icon>Copy link</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideClipboard"></svg>Copy link</span>
</ng-template>
<ng-template [divider]="true" contextMenuItem></ng-template>
<ng-template (execute)="layout.showRSideBarTab(TAB_MENU.SELECTION)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faCircleInfo"></fa-icon>Info</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideSquareCheckBig"></svg>Info</span>
</ng-template>
</context-menu>
<!--End Context Menu-->
diff --git a/frontend/src/app/applications/links/components/links.component.ts b/frontend/src/app/applications/links/components/links.component.ts
index a16a21bd..513db557 100644
--- a/frontend/src/app/applications/links/components/links.component.ts
+++ b/frontend/src/app/applications/links/components/links.component.ts
@@ -2,21 +2,21 @@ import { KeyValuePipe } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, ElementRef, inject, OnInit, ViewChild } from '@angular/core'
import { ActivatedRoute } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import {
- faArrowDown,
- faArrowRotateRight,
- faArrowUp,
- faCircleInfo,
- faClipboard,
- faClipboardCheck,
- faClock,
- faEllipsisH,
- faLink,
- faLock,
- faMapMarkerAlt,
- faPen
-} from '@fortawesome/free-solid-svg-icons'
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideClipboard,
+ LucideClipboardCheck,
+ LucideClock,
+ LucideDynamicIcon,
+ LucideEllipsis,
+ LucideLink,
+ LucideLock,
+ LucideMapPin,
+ LucidePencil,
+ LucideRotateCw,
+ LucideSquareCheckBig
+} from '@lucide/angular'
import { ContextMenuComponent, ContextMenuModule } from '@perfectmemory/ngx-contextmenu'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { BsModalRef } from 'ngx-bootstrap/modal'
@@ -46,7 +46,7 @@ import { LinkDialogComponent } from './dialogs/link-dialog.component'
selector: 'app-shared-links',
imports: [
ContextMenuModule,
- FaIconComponent,
+ LucideDynamicIcon,
KeyValuePipe,
L10nTranslateDirective,
L10nTranslatePipe,
@@ -74,18 +74,18 @@ export class LinksComponent implements OnInit {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly layout = inject(LayoutService)
protected readonly icons = {
- faLink,
- faArrowRotateRight,
- faArrowDown,
- faArrowUp,
- faMapMarkerAlt,
- faPen,
- faEllipsisH,
- faClock,
- faLock,
- faClipboard,
- faClipboardCheck,
- faCircleInfo
+ LucideLink,
+ LucideRotateCw,
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideMapPin,
+ LucidePencil,
+ LucideEllipsis,
+ LucideClock,
+ LucideLock,
+ LucideClipboard,
+ LucideClipboardCheck,
+ LucideSquareCheckBig
}
protected readonly originalOrderKeyValue = originalOrderKeyValue
protected readonly TAB_MENU = TAB_MENU
@@ -156,7 +156,7 @@ export class LinksComponent implements OnInit {
constructor() {
this.loadShareLinks()
this.activatedRoute.queryParams.subscribe((params) => (this.focusOnSelect = params.select))
- this.layout.setBreadcrumbIcon(this.icons.faLink)
+ this.layout.setBreadcrumbIcon(this.icons.LucideLink)
this.layout.setBreadcrumbNav({ url: `/${SPACES_PATH.LINKS}/${SPACES_TITLE.SHARED_BY_LINKS}`, translating: true, sameLink: true })
}
diff --git a/frontend/src/app/applications/links/components/public/public-link-auth.component.html b/frontend/src/app/applications/links/components/public/public-link-auth.component.html
index b74bb33b..bede1aa4 100644
--- a/frontend/src/app/applications/links/components/public/public-link-auth.component.html
+++ b/frontend/src/app/applications/links/components/public/public-link-auth.component.html
@@ -21,7 +21,7 @@
(click)="validPassword()"
class="btn btn-custom"
type="button">
- <fa-icon [icon]="icons.faSignInAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLogIn"></svg>
</button>
</div>
</div>
diff --git a/frontend/src/app/applications/links/components/public/public-link-auth.component.ts b/frontend/src/app/applications/links/components/public/public-link-auth.component.ts
index aa828adc..ccb96ee5 100644
--- a/frontend/src/app/applications/links/components/public/public-link-auth.component.ts
+++ b/frontend/src/app/applications/links/components/public/public-link-auth.component.ts
@@ -1,8 +1,7 @@
import { Component, inject } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { ActivatedRoute, Params, RouterLink } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faKey, faSignInAlt } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideKeyRound, LucideLogIn } from '@lucide/angular'
import { USER_PASSWORD_MIN_LENGTH } from '@sync-in-server/backend/src/applications/users/constants/user'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { linkProtected, logoUrl } from '../../../files/files.constants'
@@ -10,14 +9,14 @@ import { LinksService } from '../../services/links.service'
@Component({
selector: 'app-public-link-auth',
- imports: [RouterLink, FormsModule, FaIconComponent, L10nTranslatePipe, L10nTranslateDirective],
+ imports: [RouterLink, FormsModule, LucideDynamicIcon, L10nTranslatePipe, L10nTranslateDirective],
templateUrl: 'public-link-auth.component.html'
})
export class PublicLinkAuthComponent {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly logoUrl = logoUrl
protected readonly linkProtected = linkProtected
- protected readonly icons = { faKey, faSignInAlt }
+ protected readonly icons = { LucideKeyRound, LucideLogIn }
protected readonly passwordMinLength = USER_PASSWORD_MIN_LENGTH
protected password = ''
private readonly activatedRoute = inject(ActivatedRoute)
diff --git a/frontend/src/app/applications/links/components/public/public-link-error.component.html b/frontend/src/app/applications/links/components/public/public-link-error.component.html
index 7d207bc2..a1caf6eb 100644
--- a/frontend/src/app/applications/links/components/public/public-link-error.component.html
+++ b/frontend/src/app/applications/links/components/public/public-link-error.component.html
@@ -5,7 +5,7 @@
</a>
</div>
<div class="d-flex flex-column align-items-center" style="margin-top: 1.2rem; margin-bottom: .6rem">
- <fa-icon class="text-white" [icon]="icons.faExclamationCircle" size="5x"></fa-icon>
+ <svg class="text-white link-error-icon" [lucideIcon]="icons.LucideCircleAlert"></svg>
</div>
<div class="mime-text" l10nTranslate>Link error</div>
<div class="link-text">
diff --git a/frontend/src/app/applications/links/components/public/public-link-error.component.ts b/frontend/src/app/applications/links/components/public/public-link-error.component.ts
index 6ce856ab..5b58396b 100644
--- a/frontend/src/app/applications/links/components/public/public-link-error.component.ts
+++ b/frontend/src/app/applications/links/components/public/public-link-error.component.ts
@@ -1,19 +1,18 @@
import { Component, inject } from '@angular/core'
import { ActivatedRoute, Params, RouterLink } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons'
+import { LucideCircleAlert, LucideDynamicIcon } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { logoUrl } from '../../../files/files.constants'
import { LINK_ERROR_TRANSLATION } from '../../links.constants'
@Component({
selector: 'app-public-link-error',
- imports: [RouterLink, L10nTranslateDirective, FaIconComponent],
+ imports: [RouterLink, L10nTranslateDirective, LucideDynamicIcon],
templateUrl: 'public-link-error.component.html'
})
export class PublicLinkErrorComponent {
protected readonly logoUrl = logoUrl
- protected readonly icons = { faExclamationCircle }
+ protected readonly icons = { LucideCircleAlert }
protected error: string
private readonly activatedRoute = inject(ActivatedRoute)
diff --git a/frontend/src/app/applications/links/components/public/public-link.component.html b/frontend/src/app/applications/links/components/public/public-link.component.html
index 97ac3235..83f302be 100644
--- a/frontend/src/app/applications/links/components/public/public-link.component.html
+++ b/frontend/src/app/applications/links/components/public/public-link.component.html
@@ -11,7 +11,9 @@
@if (file?.mimeUrl) {
<img [src]="file.mimeUrl" alt="" class="no-select-pointer" (error)="fallBackMimeUrl()">
} @else {
- <fa-icon [icon]="icons.SPACES" class="circle-primary-icon" [fixedWidth]="false"></fa-icon>
+ <span class="circle-primary-icon">
+ <svg [lucideIcon]="icons.SPACES"></svg>
+ </span>
}
</div>
<span class="mime-text">{{ link.share?.name || link.space?.name }}</span>
@@ -20,11 +22,11 @@
<div class="btn-group-action">
@if (file?.isViewable) {
<button (click)="openLink()" class="btn btn-lg btn-outline-light me-2" l10nTranslate>
- <fa-icon [icon]="fileCanBeModified && file.isEditable ? icons.faPen : icons.faEye"></fa-icon>
+ <svg [lucideIcon]="fileCanBeModified && file.isEditable ? icons.LucidePencil : icons.LucideEye"></svg>
</button>
}
<button (click)="downloadLink()" class="btn btn-lg btn-outline-light">
- <fa-icon [icon]="icons.faDownload"></fa-icon>
+ <svg [lucideIcon]="icons.LucideHardDriveDownload"></svg>
</button>
</div>
}
diff --git a/frontend/src/app/applications/links/components/public/public-link.component.ts b/frontend/src/app/applications/links/components/public/public-link.component.ts
index 9e112185..ab24bc19 100644
--- a/frontend/src/app/applications/links/components/public/public-link.component.ts
+++ b/frontend/src/app/applications/links/components/public/public-link.component.ts
@@ -1,7 +1,6 @@
import { Component, inject } from '@angular/core'
import { ActivatedRoute, Data, Params, RouterLink } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faDownload, faEye, faPen } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideEye, LucideHardDriveDownload, LucidePencil } from '@lucide/angular'
import type { SpaceLink } from '@sync-in-server/backend/src/applications/links/interfaces/link-space.interface'
import { SPACE_OPERATION, SPACE_REPOSITORY } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -12,12 +11,12 @@ import { LinksService } from '../../services/links.service'
@Component({
selector: 'app-public-link',
- imports: [RouterLink, FaIconComponent, L10nTranslatePipe, L10nTranslateDirective],
+ imports: [RouterLink, LucideDynamicIcon, L10nTranslatePipe, L10nTranslateDirective],
templateUrl: 'public-link.component.html'
})
export class PublicLinkComponent {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
- protected readonly icons = { SPACES: SPACES_ICON.SPACES, faEye, faDownload, faPen }
+ protected readonly icons = { SPACES: SPACES_ICON.SPACES, LucideEye, LucideHardDriveDownload, LucidePencil }
protected readonly logoUrl = logoUrl
protected file: FileModel
protected fileCanBeModified: boolean
diff --git a/frontend/src/app/applications/notifications/components/sidebar/notifications.component.html b/frontend/src/app/applications/notifications/components/sidebar/notifications.component.html
index 29bbe119..b040ee90 100644
--- a/frontend/src/app/applications/notifications/components/sidebar/notifications.component.html
+++ b/frontend/src/app/applications/notifications/components/sidebar/notifications.component.html
@@ -7,8 +7,8 @@
<div class="sidebar-component-title-label" l10nTranslate>Notifications</div>
<div class="sidebar-component-title-side">
@if (store.notifications().length) {
- <button (click)="removeAll()" class="btn btn-sm btn-default" type="button">
- <fa-icon [icon]="icons.faTrashAlt"></fa-icon>
+ <button (click)="removeAll()" class="btn btn-default" type="button">
+ <svg [lucideIcon]="icons.LucideTrash2"></svg>
</button>
}
</div>
@@ -26,8 +26,8 @@
}
</div>
<div class="ms-auto align-self-center">
- <i (click)="remove(n)" role="button" class="fs-sm">
- <fa-icon [icon]="icons.faTimes"></fa-icon>
+ <i (click)="remove(n)" role="button" class="fs-md">
+ <svg [lucideIcon]="icons.LucideX"></svg>
</i>
</div>
</div>
@@ -38,7 +38,7 @@
<div>{{ n.createdAt | amTimeAgo }}</div>
<div class="ms-auto">
@if (n.appIcon) {
- <fa-icon [icon]="n.appIcon"></fa-icon>
+ <svg [lucideIcon]="n.appIcon"></svg>
}
@if (n.mainElement) {
<span>&nbsp;{{ n.mainElement }}</span>
diff --git a/frontend/src/app/applications/notifications/components/sidebar/notifications.component.ts b/frontend/src/app/applications/notifications/components/sidebar/notifications.component.ts
index cdb40d55..64e34143 100644
--- a/frontend/src/app/applications/notifications/components/sidebar/notifications.component.ts
+++ b/frontend/src/app/applications/notifications/components/sidebar/notifications.component.ts
@@ -1,8 +1,7 @@
import { HttpErrorResponse } from '@angular/common/http'
import { AfterViewInit, Component, effect, ElementRef, inject, QueryList, ViewChildren } from '@angular/core'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faCheck, faCircleInfo, faMagnifyingGlass, faTimes, faTrashAlt } from '@fortawesome/free-solid-svg-icons'
+import { LucideCheck, LucideDynamicIcon, LucideInfo, LucideSearch, LucideTrash2, LucideX } from '@lucide/angular'
import { NOTIFICATION_APP } from '@sync-in-server/backend/src/applications/notifications/constants/notifications'
import { L10nTranslateDirective } from 'angular-l10n'
import { AutoResizeDirective } from '../../../../common/directives/auto-resize.directive'
@@ -16,13 +15,13 @@ import { NotificationsService } from '../../notifications.service'
@Component({
selector: 'app-notifications',
- imports: [L10nTranslateDirective, AutoResizeDirective, FaIconComponent, TimeAgoPipe, UserAvatarComponent],
+ imports: [L10nTranslateDirective, AutoResizeDirective, LucideDynamicIcon, TimeAgoPipe, UserAvatarComponent],
templateUrl: 'notifications.component.html'
})
export class NotificationsComponent implements AfterViewInit {
@ViewChildren('notificationsHtml') notificationsHtml!: QueryList<ElementRef>
protected readonly store = inject(StoreService)
- protected readonly icons = { faCheck, faTimes, faMagnifyingGlass, faTrashAlt, faCircleInfo }
+ protected readonly icons = { LucideCheck, LucideX, LucideSearch, LucideTrash2, LucideInfo }
private readonly router = inject(Router)
private readonly layout = inject(LayoutService)
private readonly notificationsService = inject(NotificationsService)
diff --git a/frontend/src/app/applications/notifications/models/notification.model.ts b/frontend/src/app/applications/notifications/models/notification.model.ts
index e048c9ac..ee1c100c 100644
--- a/frontend/src/app/applications/notifications/models/notification.model.ts
+++ b/frontend/src/app/applications/notifications/models/notification.model.ts
@@ -1,4 +1,4 @@
-import type { IconDefinition } from '@fortawesome/fontawesome-svg-core'
+import type { LucideIcon } from '@lucide/angular'
import { NOTIFICATION_APP } from '@sync-in-server/backend/src/applications/notifications/constants/notifications'
import type {
NotificationContent,
@@ -17,7 +17,7 @@ export class NotificationModel implements NotificationFromUser {
// extra properties
soonRead = false
- appIcon: IconDefinition
+ appIcon: LucideIcon
mainElement: string
constructor(props: NotificationFromUser) {
diff --git a/frontend/src/app/applications/notifications/notifications.constants.ts b/frontend/src/app/applications/notifications/notifications.constants.ts
index b4eec9c8..d9b46509 100644
--- a/frontend/src/app/applications/notifications/notifications.constants.ts
+++ b/frontend/src/app/applications/notifications/notifications.constants.ts
@@ -1,16 +1,16 @@
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
-import { faLockOpen } from '@fortawesome/free-solid-svg-icons'
+import type { LucideIcon } from '@lucide/angular'
+import { LucideLockOpen } from '@lucide/angular'
import { NOTIFICATION_APP } from '@sync-in-server/backend/src/applications/notifications/constants/notifications'
import { COMMENTS_ICON } from '../comments/comments.constants'
import { SPACES_ICON } from '../spaces/spaces.constants'
import { SYNC_ICON } from '../sync/sync.constants'
-export const NOTIFICATION_ICON: Partial<Record<NOTIFICATION_APP, IconDefinition>> = {
+export const NOTIFICATION_ICON: Partial<Record<NOTIFICATION_APP, LucideIcon>> = {
[NOTIFICATION_APP.COMMENTS]: COMMENTS_ICON,
[NOTIFICATION_APP.SPACES]: SPACES_ICON.SPACES,
[NOTIFICATION_APP.SPACE_ROOTS]: SPACES_ICON.SPACES,
[NOTIFICATION_APP.SHARES]: SPACES_ICON.SHARES,
[NOTIFICATION_APP.LINKS]: SPACES_ICON.LINKS,
[NOTIFICATION_APP.SYNC]: SYNC_ICON.SYNC,
- [NOTIFICATION_APP.UNLOCK_REQUEST]: faLockOpen
+ [NOTIFICATION_APP.UNLOCK_REQUEST]: LucideLockOpen
}
diff --git a/frontend/src/app/applications/recents/components/widgets/recents-apps-widget.component.html b/frontend/src/app/applications/recents/components/widgets/recents-apps-widget.component.html
index ea2f477a..cf53db42 100644
--- a/frontend/src/app/applications/recents/components/widgets/recents-apps-widget.component.html
+++ b/frontend/src/app/applications/recents/components/widgets/recents-apps-widget.component.html
@@ -6,7 +6,7 @@
<p l10nTranslate>{{ SPACES_TITLE.PERSONAL_SPACE }}</p>
</div>
<div class="icon text-primary">
- <fa-icon [icon]="SPACES_ICON.PERSONAL"></fa-icon>
+ <svg [lucideIcon]="SPACES_ICON.PERSONAL"></svg>
</div>
</div>
</div>
@@ -18,7 +18,7 @@
<p l10nTranslate>{{ SPACES_TITLE.COLLABORATIVE_SPACES }}</p>
</div>
<div class="icon text-primary">
- <fa-icon [icon]="SPACES_ICON.SPACES"></fa-icon>
+ <svg [lucideIcon]="SPACES_ICON.SPACES"></svg>
</div>
</div>
</div>
@@ -30,7 +30,7 @@
<p l10nTranslate>{{ SPACES_TITLE.SHARED_WITH_ME }}</p>
</div>
<div class="icon text-purple">
- <fa-icon [icon]="SPACES_ICON.SHARED_WITH_ME"></fa-icon>
+ <svg [lucideIcon]="SPACES_ICON.SHARED_WITH_ME"></svg>
</div>
</div>
</div>
@@ -42,7 +42,7 @@
<p l10nTranslate>{{ SPACES_TITLE.SHARED_WITH_OTHER }}</p>
</div>
<div class="icon text-purple">
- <fa-icon [icon]="SPACES_ICON.SHARED_WITH_OTHERS"></fa-icon>
+ <svg [lucideIcon]="SPACES_ICON.SHARED_WITH_OTHERS"></svg>
</div>
</div>
</div>
diff --git a/frontend/src/app/applications/recents/components/widgets/recents-apps-widget.component.ts b/frontend/src/app/applications/recents/components/widgets/recents-apps-widget.component.ts
index dddd2a8f..b00389b3 100644
--- a/frontend/src/app/applications/recents/components/widgets/recents-apps-widget.component.ts
+++ b/frontend/src/app/applications/recents/components/widgets/recents-apps-widget.component.ts
@@ -1,6 +1,6 @@
import { Component, inject } from '@angular/core'
import { RouterLink } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
+import { LucideDynamicIcon } from '@lucide/angular'
import { USER_PERMISSION } from '@sync-in-server/backend/src/applications/users/constants/user'
import { L10nTranslateDirective } from 'angular-l10n'
import { SPACES_ICON, SPACES_PATH, SPACES_TITLE } from '../../../spaces/spaces.constants'
@@ -8,7 +8,7 @@ import { UserService } from '../../../users/user.service'
@Component({
selector: 'app-recents-apps-widget',
- imports: [RouterLink, FaIconComponent, L10nTranslateDirective],
+ imports: [RouterLink, LucideDynamicIcon, L10nTranslateDirective],
templateUrl: './recents-apps-widget.component.html'
})
export class RecentsAppsWidgetComponent {
diff --git a/frontend/src/app/applications/recents/recents.constants.ts b/frontend/src/app/applications/recents/recents.constants.ts
index 4000e457..951024d2 100644
--- a/frontend/src/app/applications/recents/recents.constants.ts
+++ b/frontend/src/app/applications/recents/recents.constants.ts
@@ -1,5 +1,5 @@
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
-import { faClock } from '@fortawesome/free-solid-svg-icons'
+import type { LucideIcon } from '@lucide/angular'
+import { LucideClock } from '@lucide/angular'
export const RECENTS_PATH = {
BASE: 'recents'
@@ -7,4 +7,4 @@ export const RECENTS_PATH = {
export const RECENTS_TITLE = 'Recents'
-export const RECENTS_ICON: IconDefinition = faClock
+export const RECENTS_ICON: LucideIcon = LucideClock
diff --git a/frontend/src/app/applications/search/components/search.component.html b/frontend/src/app/applications/search/components/search.component.html
index 8fb444d5..e12c7f86 100644
--- a/frontend/src/app/applications/search/components/search.component.html
+++ b/frontend/src/app/applications/search/components/search.component.html
@@ -2,7 +2,7 @@
<div class="col-12 col-md-6 col-lg-4">
<div class="input-group">
<button (click)="doSearch()" [disabled]="searchContent().length < minCharsToSearch" class="btn btn-default" role="button" type="button">
- <fa-icon [icon]="loading ? icons.faSpinner : icons.SEARCH_ICON" [animation]="loading ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="loading ? icons.LucideLoader : icons.SEARCH_ICON" [class.icon-spin]="loading"></svg>
</button>
<input [value]="searchContent()"
(input)="setCurrentSearch($event)"
@@ -13,11 +13,11 @@
name="search"
type="text"
appAutofocus
- autocomplete>
+ autocomplete="off">
@if (searchContent()) {
<span class="search-clear-btn">
- <fa-icon (click)="clearSearch()" [icon]="icons.faTimes" role="button"></fa-icon>
- </span>
+ <svg (click)="clearSearch()" [lucideIcon]="icons.LucideX" class="fs-lg" role="button"></svg>
+ </span>
}
<button [ngModel]="this.store.currentSearch().fullText"
(ngModelChange)="toggleFullText()"
@@ -27,7 +27,7 @@
role="button"
type="button"
btnCheckbox>
- <fa-icon [icon]="icons.faFont"></fa-icon>
+ <svg [lucideIcon]="icons.LucideType"></svg>
</button>
</div>
@@ -37,7 +37,7 @@
class="search-go-to-btn d-none d-md-block btn btn-default"
[tooltip]="'Go to' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faMapMarkerAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMapPin"></svg>
</button>
<!--Start Filter Button-->
<app-input-filter class="d-none d-md-block ms-auto"></app-input-filter>
diff --git a/frontend/src/app/applications/search/components/search.component.ts b/frontend/src/app/applications/search/components/search.component.ts
index 1e05c221..7f212e3c 100644
--- a/frontend/src/app/applications/search/components/search.component.ts
+++ b/frontend/src/app/applications/search/components/search.component.ts
@@ -2,8 +2,7 @@ import { HttpErrorResponse } from '@angular/common/http'
import { Component, computed, inject, Signal, ViewChild } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faFont, faMapMarkerAlt, faSpinner, faTimes, faTrashCan } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideLoader, LucideMapPin, LucideTrash2, LucideType, LucideX } from '@lucide/angular'
import { MIN_CHARS_TO_SEARCH } from '@sync-in-server/backend/src/applications/files/constants/indexing'
import type { SearchFilesDto } from '@sync-in-server/backend/src/applications/files/dto/file-operations.dto'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -27,7 +26,7 @@ import { SEARCH_ICON, SEARCH_PATH } from '../search.constants'
selector: 'app-files-search',
imports: [
FilterComponent,
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslatePipe,
AutofocusDirective,
ButtonCheckboxDirective,
@@ -46,7 +45,7 @@ export class SearchComponent {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly store = inject(StoreService)
public searchContent: Signal<string> = computed(() => this.store.currentSearch().content)
- protected readonly icons = { SEARCH_ICON, faSpinner, faTrashCan, faTimes, faFont, faMapMarkerAlt }
+ protected readonly icons = { SEARCH_ICON, LucideLoader, LucideTrash2, LucideX, LucideType, LucideMapPin }
protected minCharsToSearch = MIN_CHARS_TO_SEARCH
protected loading = false
protected errorMessage: string = null
diff --git a/frontend/src/app/applications/search/search.constants.ts b/frontend/src/app/applications/search/search.constants.ts
index e04a6473..9dafd415 100644
--- a/frontend/src/app/applications/search/search.constants.ts
+++ b/frontend/src/app/applications/search/search.constants.ts
@@ -1,5 +1,5 @@
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
-import { faMagnifyingGlass } from '@fortawesome/free-solid-svg-icons'
+import type { LucideIcon } from '@lucide/angular'
+import { LucideSearch } from '@lucide/angular'
import { AppMenu } from '../../layout/layout.interfaces'
export const SEARCH_PATH = {
@@ -7,7 +7,7 @@ export const SEARCH_PATH = {
} as const
export const SEARCH_TITLE = 'Search'
-export const SEARCH_ICON: IconDefinition = faMagnifyingGlass
+export const SEARCH_ICON: LucideIcon = LucideSearch
export const SEARCH_MENU: AppMenu = {
title: SEARCH_TITLE,
diff --git a/frontend/src/app/applications/shares/components/dialogs/share-dialog.component.html b/frontend/src/app/applications/shares/components/dialogs/share-dialog.component.html
index 4e45eddb..a69b8cbb 100644
--- a/frontend/src/app/applications/shares/components/dialogs/share-dialog.component.html
+++ b/frontend/src/app/applications/shares/components/dialogs/share-dialog.component.html
@@ -1,13 +1,13 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.SHARED"></fa-icon>
+ <svg [lucideIcon]="icons.SHARED"></svg>
@if (share.id) {
<span>{{ share.name }}</span>
} @else {
<span l10nTranslate>Create a new share</span>
}
@if (loading) {
- <fa-icon [icon]="icons.faSpinner" animation="spin" class="ms-2" size="sm"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true" class="ms-2"></svg>
}
</h4>
@if (share.id) {
@@ -22,7 +22,7 @@
<tab (selectTab)="tabView=null" customClass="tab-dialog form-validation">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faCog"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSettings"></svg>
<span class="app-tab-label" l10nTranslate>Settings</span>
</span>
</ng-template>
@@ -165,7 +165,7 @@
<tab (selectTab)="tabView='members'" customClass="tab-dialog">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faUsers"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUsersRound"></svg>
<span class="app-tab-label" l10nTranslate>Members</span>
<span class="app-tab-count">{{ share.members.length }}</span>
</span>
@@ -183,7 +183,7 @@
<tab (selectTab)="tabView='links'" customClass="tab-dialog">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.LINKS"></fa-icon>
+ <svg [lucideIcon]="icons.LINKS"></svg>
<span class="app-tab-label" l10nTranslate>Links</span>
<span class="app-tab-count">{{ share.links.length }}</span>
</span>
@@ -211,14 +211,14 @@
} @else if (allowFilesOptions) {
<button (click)="openSelectRootDialog()"
class="btn btn-success" type="button" l10nTranslate>
- <fa-icon [icon]="icons.faPlus"></fa-icon>
- <fa-icon [icon]="icons.SHARED"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
+ <svg [lucideIcon]="icons.SHARED"></svg>
File
</button>
@if (user.isAdmin) {
<button (click)="openAdminRootDialog()"
class="btn btn-warning" type="button" l10nTranslate>
- <fa-icon [icon]="icons.faUserShield"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRoundKey"></svg>
External location
</button>
}
@@ -227,8 +227,8 @@
@if (tabView === 'links') {
<button (click)="openCreateLinkDialog()"
class="btn btn-success" type="button" l10nTranslate>
- <fa-icon [icon]="icons.faPlus"></fa-icon>
- <fa-icon [icon]="icons.LINKS"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
+ <svg [lucideIcon]="icons.LINKS"></svg>
Link
</button>
}
diff --git a/frontend/src/app/applications/shares/components/dialogs/share-dialog.component.ts b/frontend/src/app/applications/shares/components/dialogs/share-dialog.component.ts
index e289bb25..e14ed1d2 100644
--- a/frontend/src/app/applications/shares/components/dialogs/share-dialog.component.ts
+++ b/frontend/src/app/applications/shares/components/dialogs/share-dialog.component.ts
@@ -1,8 +1,7 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Injector, Input, OnInit, Output } from '@angular/core'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faCog, faPlus, faSpinner, faUsers, faUserShield } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideLoader, LucidePlus, LucideSettings, LucideUserRoundKey, LucideUsersRound } from '@lucide/angular'
import type { FileSpace } from '@sync-in-server/backend/src/applications/files/interfaces/file-space.interface'
import { LINK_TYPE } from '@sync-in-server/backend/src/applications/links/constants/links'
import { SPACE_ALIAS, SPACE_OPERATION } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
@@ -40,7 +39,7 @@ import { AdminService } from '../../../admin/admin.service'
@Component({
selector: 'app-share-dialog',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslateDirective,
TimeDateFormatPipe,
TabsModule,
@@ -71,11 +70,11 @@ export class ShareDialogComponent implements OnInit {
protected readonly icons = {
SHARED: SPACES_ICON.SHARED_WITH_OTHERS,
LINKS: SPACES_ICON.LINKS,
- faPlus,
- faSpinner,
- faUserShield,
- faUsers,
- faCog
+ LucidePlus,
+ LucideLoader,
+ LucideUserRoundKey,
+ LucideUsersRound,
+ LucideSettings
}
protected tabView: undefined | 'members' | 'links'
protected allowedPermissions: Partial<`${SPACE_OPERATION}`>[] = []
diff --git a/frontend/src/app/applications/shares/components/dialogs/shared-children-dialog.component.html b/frontend/src/app/applications/shares/components/dialogs/shared-children-dialog.component.html
index 3b5e42e7..5c274f86 100644
--- a/frontend/src/app/applications/shares/components/dialogs/shared-children-dialog.component.html
+++ b/frontend/src/app/applications/shares/components/dialogs/shared-children-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.SHARES"></fa-icon>
+ <svg [lucideIcon]="icons.SHARES"></svg>
<span>{{ share?.name || space?.name }}</span>
</h4>
<h4 class="modal-title ms-auto">
@@ -18,7 +18,7 @@
<div class="me-auto text-truncate">
<img [src]="s.mimeUrl" alt="" draggable="false" height="28" (error)="s.fallBackMimeUrl()">
@if (s.isShareLink) {
- <fa-icon [icon]="icons.LINKS" class="align-middle ms-1"></fa-icon>
+ <svg [lucideIcon]="icons.LINKS" class="align-middle ms-1"></svg>
}
<span class="ms-1 align-middle">{{ s.name }}</span>
</div>
diff --git a/frontend/src/app/applications/shares/components/dialogs/shared-children-dialog.component.ts b/frontend/src/app/applications/shares/components/dialogs/shared-children-dialog.component.ts
index cb91687b..53e7420a 100644
--- a/frontend/src/app/applications/shares/components/dialogs/shared-children-dialog.component.ts
+++ b/frontend/src/app/applications/shares/components/dialogs/shared-children-dialog.component.ts
@@ -1,7 +1,7 @@
import { NgTemplateOutlet } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, OnInit, Output } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
+import { LucideDynamicIcon } from '@lucide/angular'
import type { ShareChild } from '@sync-in-server/backend/src/applications/shares/models/share-child.model'
import { L10nTranslateDirective } from 'angular-l10n'
import { BsModalRef } from 'ngx-bootstrap/modal'
@@ -25,7 +25,7 @@ import { ShareDialogComponent } from './share-dialog.component'
@Component({
selector: 'app-shared-children-dialog',
templateUrl: 'shared-children-dialog.component.html',
- imports: [AutoResizeDirective, NgTemplateOutlet, L10nTranslateDirective, FaIconComponent, UserAvatarComponent],
+ imports: [AutoResizeDirective, NgTemplateOutlet, L10nTranslateDirective, LucideDynamicIcon, UserAvatarComponent],
styleUrls: ['shared-children-dialog.component.scss']
})
export class SharedChildrenDialogComponent implements OnInit {
diff --git a/frontend/src/app/applications/shares/components/shared.component.html b/frontend/src/app/applications/shares/components/shared.component.html
index c3206791..32d5d033 100644
--- a/frontend/src/app/applications/shares/components/shared.component.html
+++ b/frontend/src/app/applications/shares/components/shared.component.html
@@ -4,34 +4,34 @@
class="d-none d-sm-block btn btn-default me-1"
[tooltip]="'Refresh' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faArrowRotateRight" [animation]="loading ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw" [class.icon-spin]="loading"></svg>
</button>
<button (click)="openShareDialog(true)"
class="btn btn-default me-1"
[tooltip]="'New share' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
</button>
<button (click)="openShareDialog()"
[disabled]="!selected"
class="btn btn-default me-1"
[tooltip]="'Edit share' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencil"></svg>
</button>
<button (click)="openChildShareDialog()"
[disabled]="!selected?.counts.shares"
class="btn btn-default me-1"
[tooltip]="'Edit children shares' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.SHARES"></fa-icon>
+ <svg [lucideIcon]="icons.SHARES"></svg>
</button>
<button (click)="goTo()"
[disabled]="!selected"
class="btn btn-default me-1"
[tooltip]="'Go to' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faMapMarkerAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMapPin"></svg>
</button>
<div class="ms-auto">
<!--Start Filter Button-->
@@ -81,13 +81,13 @@
@if (s.hasComments) {
<span (click)="goToComments(s)"
class="badge bg-success cursor-pointer">
- <fa-icon [icon]="icons.faCommentDots"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMessageSquareMore"></svg>
</span>
}
@if (s.counts.shares) {
<div (click)="openChildShareDialog(s)"
class="badge bg-purple cursor-pointer">
- <fa-icon [icon]="icons.SHARES"></fa-icon>
+ <svg [lucideIcon]="icons.SHARES"></svg>
{{ s.counts.shares }}
</div>
}
@@ -121,7 +121,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -164,13 +164,13 @@
@case ('info') {
@if (s.counts.shares) {
<span (click)="openChildShareDialog(s)" class="badge bg-purple cursor-pointer me-1">
- <fa-icon [icon]="icons.SHARES"></fa-icon>
+ <svg [lucideIcon]="icons.SHARES"></svg>
{{ s.counts.shares }}
</span>
}
@if (s.hasComments) {
<span (click)="goToComments(s)" class="badge bg-success cursor-pointer">
- <fa-icon [icon]="icons.faCommentDots"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMessageSquareMore"></svg>
</span>
}
}
@@ -198,28 +198,28 @@
<!--Start Context Menu -->
<context-menu #MainContextMenu>
<ng-template (execute)="openShareDialog(true)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPlus"></fa-icon>New share</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePlus"></svg>New share</span>
</ng-template>
<ng-template [divider]="true" contextMenuItem></ng-template>
<ng-template (execute)="loadShares()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>Refresh</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
</context-menu>
<context-menu #TargetContextMenu>
<ng-template (execute)="goTo()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faMapMarkerAlt"></fa-icon>Go to</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideMapPin"></svg>Go to</span>
</ng-template>
<ng-template (execute)="openShareDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPen"></fa-icon>Edit</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePencil"></svg>Edit</span>
</ng-template>
@if (!!selected?.counts.shares) {
<ng-template (execute)="openChildShareDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.SHARES"></fa-icon>Edit children shares</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.SHARES"></svg>Edit children shares</span>
</ng-template>
}
<ng-template [divider]="true" contextMenuItem></ng-template>
<ng-template (execute)="layout.showRSideBarTab(TAB_MENU.SELECTION)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faCircleInfo"></fa-icon>Info</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideSquareCheckBig"></svg>Info</span>
</ng-template>
</context-menu>
<!--End Context Menu-->
diff --git a/frontend/src/app/applications/shares/components/shared.component.ts b/frontend/src/app/applications/shares/components/shared.component.ts
index 1ec96f65..dea681fc 100644
--- a/frontend/src/app/applications/shares/components/shared.component.ts
+++ b/frontend/src/app/applications/shares/components/shared.component.ts
@@ -2,20 +2,19 @@ import { KeyValuePipe } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, ElementRef, inject, OnInit, ViewChild } from '@angular/core'
import { ActivatedRoute } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import {
- faArrowDown,
- faArrowRotateRight,
- faArrowUp,
- faCircleInfo,
- faCommentDots,
- faEllipsisH,
- faMapMarkerAlt,
- faMinus,
- faPen,
- faPlus,
- faRotate
-} from '@fortawesome/free-solid-svg-icons'
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideDynamicIcon,
+ LucideEllipsis,
+ LucideMapPin,
+ LucideMessageSquareMore,
+ LucideMinus,
+ LucidePencil,
+ LucidePlus,
+ LucideRotateCw,
+ LucideSquareCheckBig
+} from '@lucide/angular'
import { ContextMenuComponent, ContextMenuModule } from '@perfectmemory/ngx-contextmenu'
import type { ShareFile } from '@sync-in-server/backend/src/applications/shares/interfaces/share-file.interface'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -46,7 +45,7 @@ import { ShareRepositoryComponent } from './utils/share-repository.component'
@Component({
selector: 'app-shared',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
KeyValuePipe,
L10nTranslateDirective,
L10nTranslatePipe,
@@ -78,17 +77,16 @@ export class SharedComponent implements OnInit {
protected readonly icons = {
SHARED: SPACES_ICON.SHARED_WITH_OTHERS,
SHARES: SPACES_ICON.SHARES,
- faArrowRotateRight,
- faArrowDown,
- faArrowUp,
- faRotate,
- faPlus,
- faMinus,
- faPen,
- faEllipsisH,
- faMapMarkerAlt,
- faCircleInfo,
- faCommentDots
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideRotateCw,
+ LucidePlus,
+ LucideMinus,
+ LucidePencil,
+ LucideEllipsis,
+ LucideMapPin,
+ LucideSquareCheckBig,
+ LucideMessageSquareMore
}
protected readonly originalOrderKeyValue = originalOrderKeyValue
protected readonly TAB_MENU = TAB_MENU
diff --git a/frontend/src/app/applications/shares/components/sidebar/share-selection.component.html b/frontend/src/app/applications/shares/components/sidebar/share-selection.component.html
index 0864773d..57dccb17 100644
--- a/frontend/src/app/applications/shares/components/sidebar/share-selection.component.html
+++ b/frontend/src/app/applications/shares/components/sidebar/share-selection.component.html
@@ -31,7 +31,7 @@
<div class="d-flex col-5 col-sm-5 text-bold" l10nTranslate>Child shares</div>
@if (share().counts.shares) {
<span (click)="childShareDialog(share())" class="badge bg-purple cursor-pointer me-1">
- <fa-icon [icon]="iconShares"></fa-icon>
+ <svg [lucideIcon]="iconShares"></svg>
{{ share().counts.shares }}
</span>
} @else {
@@ -44,7 +44,7 @@
class="badge {{share().hasComments ? 'bg-success' : 'bg-default'}} cursor-pointer"
type="button"
[attr.aria-label]="'Comments' | translate:locale.language">
- <fa-icon [icon]="faCommentDots"></fa-icon>
+ <svg [lucideIcon]="LucideMessageSquareMore"></svg>
</button>
</div>
</div>
diff --git a/frontend/src/app/applications/shares/components/sidebar/share-selection.component.ts b/frontend/src/app/applications/shares/components/sidebar/share-selection.component.ts
index 9784eb62..8bc3f986 100755
--- a/frontend/src/app/applications/shares/components/sidebar/share-selection.component.ts
+++ b/frontend/src/app/applications/shares/components/sidebar/share-selection.component.ts
@@ -1,6 +1,5 @@
import { ChangeDetectionStrategy, Component, inject, input, InputSignal } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faCommentDots } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideMessageSquareMore } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { BadgeMembersComponent } from '../../../../common/components/badge-members.component'
import { AutoResizeDirective } from '../../../../common/directives/auto-resize.directive'
@@ -23,7 +22,7 @@ import { ShareRepositoryComponent } from '../utils/share-repository.component'
L10nTranslateDirective,
L10nTranslatePipe,
TimeDateFormatPipe,
- FaIconComponent,
+ LucideDynamicIcon,
ShareRepositoryComponent,
BadgeMembersComponent
],
@@ -33,7 +32,7 @@ export class ShareSelectionComponent {
share: InputSignal<ShareFileModel> = input.required<ShareFileModel>()
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly iconShares = SPACES_ICON.SHARES
- protected readonly faCommentDots = faCommentDots
+ protected readonly LucideMessageSquareMore = LucideMessageSquareMore
protected readonly cardImageSize = defaultCardImageSize
protected readonly resizeOffset = defaultResizeOffset
private readonly layout = inject(LayoutService)
diff --git a/frontend/src/app/applications/shares/components/utils/share-repository.component.ts b/frontend/src/app/applications/shares/components/utils/share-repository.component.ts
index 48b5499c..eb2819ec 100644
--- a/frontend/src/app/applications/shares/components/utils/share-repository.component.ts
+++ b/frontend/src/app/applications/shares/components/utils/share-repository.component.ts
@@ -1,7 +1,6 @@
import { Component, inject, Input, OnChanges, OnInit } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
-import { faQuestion } from '@fortawesome/free-solid-svg-icons'
+import type { LucideIcon } from '@lucide/angular'
+import { LucideCircleQuestionMark, LucideDynamicIcon } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslatePipe } from 'angular-l10n'
import { ViewMode } from '../../../../common/components/navigation-view/navigation-view.component'
import { ShareLinkModel } from '../../../links/models/share-link.model'
@@ -10,7 +9,7 @@ import { ShareFileModel } from '../../models/share-file.model'
import { ShareModel } from '../../models/share.model'
interface ShareRepository {
- icon: IconDefinition
+ icon: LucideIcon
label: string
class: string
translate: boolean
@@ -18,20 +17,23 @@ interface ShareRepository {
@Component({
selector: 'app-share-repository',
- imports: [L10nTranslatePipe, FaIconComponent],
+ imports: [L10nTranslatePipe, LucideDynamicIcon],
template: `
@if (galleryMode) {
- <fa-icon
- [icon]="repository.icon"
+ <span
[class]="repository.class"
[style.min-width.px]="galleryMode.dimensions / 3.5"
[style.min-height.px]="galleryMode.dimensions / 3.5"
- [style.font-size.px]="galleryMode.faSize / 2.2"
- ></fa-icon>
+ [style.font-size.px]="galleryMode.iconSize / 2.2"
+ >
+ <svg [lucideIcon]="repository.icon"></svg>
+ </span>
} @else {
<div class="d-flex align-items-center overflow-wrap-and-whitespace">
@if (showIcon) {
- <fa-icon [icon]="repository.icon" [class]="repository.class" class="me-2"></fa-icon>
+ <span [class]="repository.class" class="me-2">
+ <svg [lucideIcon]="repository.icon"></svg>
+ </span>
}
<span class="no-pointer-events" draggable="false">
@if (repository.translate) {
@@ -52,7 +54,7 @@ export class ShareRepositoryComponent implements OnInit, OnChanges {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected repository: ShareRepository
private unknownRepository: ShareRepository = {
- icon: faQuestion,
+ icon: LucideCircleQuestionMark,
label: '',
class: 'circle-primary-icon',
translate: false
diff --git a/frontend/src/app/applications/spaces/components/dialogs/space-anchor-file-dialog.component.html b/frontend/src/app/applications/spaces/components/dialogs/space-anchor-file-dialog.component.html
index 6c787e8d..919b1a7b 100644
--- a/frontend/src/app/applications/spaces/components/dialogs/space-anchor-file-dialog.component.html
+++ b/frontend/src/app/applications/spaces/components/dialogs/space-anchor-file-dialog.component.html
@@ -1,10 +1,10 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faAnchor"></fa-icon>
+ <svg [lucideIcon]="icons.LucideAnchor"></svg>
<span l10nTranslate>Anchor files to a space</span>
</h4>
@if (loading) {
- <fa-icon [icon]="icons.faSpinner" animation="spin" class="ms-2" size="sm"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true" class="ms-2"></svg>
}
<button (click)="layout.closeDialog()" aria-label="Close" class="btn-close btn-close-white ms-auto" type="button"></button>
</div>
@@ -29,4 +29,4 @@
<button (click)="onSubmit()" [disabled]="submitted || !selectedSpace || !space.roots.length" class="btn btn-primary" type="button" l10nTranslate>
Confirm
</button>
-</div>
\ No newline at end of file
+</div>
diff --git a/frontend/src/app/applications/spaces/components/dialogs/space-anchor-file-dialog.component.ts b/frontend/src/app/applications/spaces/components/dialogs/space-anchor-file-dialog.component.ts
index 53d70522..783bb273 100644
--- a/frontend/src/app/applications/spaces/components/dialogs/space-anchor-file-dialog.component.ts
+++ b/frontend/src/app/applications/spaces/components/dialogs/space-anchor-file-dialog.component.ts
@@ -1,7 +1,6 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, OnInit } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faAnchor, faPlus, faSpinner } from '@fortawesome/free-solid-svg-icons'
+import { LucideAnchor, LucideDynamicIcon, LucideLoader, LucidePlus } from '@lucide/angular'
import { SPACE_OPERATION } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
import { SpaceProps } from '@sync-in-server/backend/src/applications/spaces/models/space-props.model'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -20,7 +19,7 @@ import { SpaceManageRootsComponent } from '../utils/space-manage-roots.component
@Component({
selector: 'app-space-anchor-file-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, SpaceManageRootsComponent, L10nTranslatePipe, SelectComponent],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, SpaceManageRootsComponent, L10nTranslatePipe, SelectComponent],
templateUrl: 'space-anchor-file-dialog.component.html'
})
export class SpaceAnchorFileDialogComponent implements OnInit {
@@ -28,7 +27,7 @@ export class SpaceAnchorFileDialogComponent implements OnInit {
public addAnchoredFiles = new EventEmitter<{ space: SpaceModel; rootFiles: { id: number; name: string }[] }>()
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly layout = inject(LayoutService)
- protected readonly icons = { faAnchor, faPlus, faSpinner, SPACES: SPACES_ICON.SPACES }
+ protected readonly icons = { LucideAnchor, LucidePlus, LucideLoader, SPACES: SPACES_ICON.SPACES }
protected selectedSpace: SpaceModel
// data
protected space: Partial<SpaceModel> = { roots: [] }
diff --git a/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.html b/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.html
index 27ef8c6e..25337b02 100644
--- a/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.html
+++ b/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.html
@@ -1,13 +1,13 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.SPACES"></fa-icon>
+ <svg [lucideIcon]="icons.SPACES"></svg>
@if (space.id) {
<span>{{ space.name }}</span>
} @else {
<span l10nTranslate>Create a new space</span>
}
@if (loading) {
- <fa-icon [icon]="icons.faSpinner" animation="spin" class="ms-2" size="sm"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true" class="ms-2"></svg>
}
</h4>
@if (space.id) {
@@ -22,7 +22,7 @@
<tab (selectTab)="tabView=null" customClass="tab-dialog">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faCog"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSettings"></svg>
<span class="app-tab-label" l10nTranslate>Settings</span>
</span>
</ng-template>
@@ -110,7 +110,7 @@
<div class="card-body d-flex flex-column">
<div (click)="editManagers = !editManagers" type="button">
<label for="editManagers" class="form-label no-select-pointer" l10nTranslate>Managers</label>
- <fa-icon id="editManagers" class="ms-1" [icon]="icons.faPen"></fa-icon>
+ <svg id="editManagers" class="ms-1" [lucideIcon]="icons.LucidePencil"></svg>
</div>
<app-user-search
[(members)]="space.managers"
@@ -154,7 +154,7 @@
<tab (selectTab)="tabView='roots'" customClass="tab-dialog">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faAnchor"></fa-icon>
+ <svg [lucideIcon]="icons.LucideAnchor"></svg>
<span class="app-tab-label" l10nTranslate>Files</span>
<span class="app-tab-count">{{ space.roots?.length || 0 }}</span>
</span>
@@ -167,7 +167,7 @@
<tab (selectTab)="tabView='members'" customClass="tab-dialog">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faUsers"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUsersRound"></svg>
<span class="app-tab-label" l10nTranslate>Members</span>
<span class="app-tab-count">{{ space.members.length }}</span>
</span>
@@ -183,7 +183,7 @@
<tab (selectTab)="tabView='links'" customClass="tab-dialog">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.LINKS"></fa-icon>
+ <svg [lucideIcon]="icons.LINKS"></svg>
<span class="app-tab-label" l10nTranslate>Links</span>
<span class="app-tab-count">{{ space.links.length }}</span>
</span>
@@ -225,23 +225,23 @@
@if (tabView === 'links') {
<button (click)="openCreateLinkDialog()"
class="btn btn-success" type="button" l10nTranslate>
- <fa-icon [icon]="icons.faPlus"></fa-icon>
- <fa-icon [icon]="icons.LINKS"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
+ <svg [lucideIcon]="icons.LINKS"></svg>
Link
</button>
}
@if (tabView === 'roots') {
<button (click)="openSelectRootDialog()"
class="btn btn-success" type="button" l10nTranslate>
- <fa-icon [icon]="icons.faPlus"></fa-icon>
- <fa-icon [icon]="icons.faAnchor"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
+ <svg [lucideIcon]="icons.LucideAnchor"></svg>
File
</button>
@if (user.isAdmin) {
<button (click)="openAdminRootDialog()"
class="btn btn-warning" type="button" l10nTranslate>
- <fa-icon [icon]="icons.faPlus"></fa-icon>
- <fa-icon [icon]="icons.faUserShield"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
+ <svg [lucideIcon]="icons.LucideUserRoundKey"></svg>
External location
</button>
}
diff --git a/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.ts b/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.ts
index 4db77126..aa8ab189 100644
--- a/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.ts
+++ b/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.ts
@@ -1,8 +1,16 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Injector, Input, OnInit, Output } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faAnchor, faCog, faPen, faPlus, faSpinner, faUsers, faUserShield } from '@fortawesome/free-solid-svg-icons'
+import {
+ LucideAnchor,
+ LucideDynamicIcon,
+ LucideLoader,
+ LucidePencil,
+ LucidePlus,
+ LucideSettings,
+ LucideUserRoundKey,
+ LucideUsersRound
+} from '@lucide/angular'
import { LINK_TYPE } from '@sync-in-server/backend/src/applications/links/constants/links'
import { SPACE_MAX_DISABLED_DAYS, SPACE_OPERATION, SPACE_ROLE } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
import { SpaceProps } from '@sync-in-server/backend/src/applications/spaces/models/space-props.model'
@@ -43,7 +51,7 @@ import { AdminService } from '../../../admin/admin.service'
TimeAddPipe,
TimeDurationPipe,
TimeDateFormatPipe,
- FaIconComponent,
+ LucideDynamicIcon,
TabsModule,
FormsModule,
AutofocusDirective,
@@ -70,13 +78,13 @@ export class SpaceDialogComponent implements OnInit {
protected readonly icons = {
SPACES: SPACES_ICON.SPACES,
LINKS: SPACES_ICON.LINKS,
- faPen,
- faAnchor,
- faUserShield,
- faPlus,
- faSpinner,
- faCog,
- faUsers
+ LucidePencil,
+ LucideAnchor,
+ LucideUserRoundKey,
+ LucidePlus,
+ LucideLoader,
+ LucideSettings,
+ LucideUsersRound
}
protected readonly SPACE_MAX_DISABLED_DAYS = SPACE_MAX_DISABLED_DAYS
// states
diff --git a/frontend/src/app/applications/spaces/components/dialogs/space-root-path-dialog.component.html b/frontend/src/app/applications/spaces/components/dialogs/space-root-path-dialog.component.html
index 382d2e20..be6e2eda 100644
--- a/frontend/src/app/applications/spaces/components/dialogs/space-root-path-dialog.component.html
+++ b/frontend/src/app/applications/spaces/components/dialogs/space-root-path-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faFolderClosed"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFolderClosed"></svg>
<span l10nTranslate>Add an external location</span>
</h4>
<button (click)="layout.closeDialog()" aria-label="Close" class="btn-close btn-close-white" type="button"></button>
diff --git a/frontend/src/app/applications/spaces/components/dialogs/space-root-path-dialog.component.ts b/frontend/src/app/applications/spaces/components/dialogs/space-root-path-dialog.component.ts
index 60452e88..d9521ef2 100644
--- a/frontend/src/app/applications/spaces/components/dialogs/space-root-path-dialog.component.ts
+++ b/frontend/src/app/applications/spaces/components/dialogs/space-root-path-dialog.component.ts
@@ -1,7 +1,6 @@
import { Component, EventEmitter, HostListener, inject, Input, OnInit, Output } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faFolderClosed } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideFolderClosed } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { AutofocusDirective } from '../../../../common/directives/auto-focus.directive'
import { LayoutService } from '../../../../layout/layout.service'
@@ -15,7 +14,7 @@ export interface ExternalFilePathEvent {
@Component({
selector: 'app-space-root-path-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, L10nTranslatePipe, FormsModule, AutofocusDirective],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, L10nTranslatePipe, FormsModule, AutofocusDirective],
templateUrl: 'space-root-path-dialog.component.html'
})
export class SpaceRootPathDialogComponent implements OnInit {
@@ -24,7 +23,7 @@ export class SpaceRootPathDialogComponent implements OnInit {
@Input() withRootName = true
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly layout = inject(LayoutService)
- protected readonly icons = { faFolderClosed }
+ protected readonly icons = { LucideFolderClosed }
protected newSpaceRoot: { name: string; externalPath: string } = { name: '', externalPath: '' }
// states
protected error: string
diff --git a/frontend/src/app/applications/spaces/components/dialogs/space-user-anchors-dialog.component.html b/frontend/src/app/applications/spaces/components/dialogs/space-user-anchors-dialog.component.html
index 399a157d..877898de 100644
--- a/frontend/src/app/applications/spaces/components/dialogs/space-user-anchors-dialog.component.html
+++ b/frontend/src/app/applications/spaces/components/dialogs/space-user-anchors-dialog.component.html
@@ -1,10 +1,10 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.SPACES"></fa-icon>
+ <svg [lucideIcon]="icons.SPACES"></svg>
<span>{{ space.name }}</span>
</h4>
@if (loading) {
- <fa-icon [icon]="icons.faSpinner" animation="spin" class="ms-2" size="sm"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true" class="ms-2"></svg>
}
<h4 class="modal-title ms-auto">
<span l10nTranslate>Manage my anchored files</span>
@@ -20,12 +20,12 @@
<div class="modal-footer">
<button (click)="openSelectRootDialog()"
class="btn btn-success" type="button" l10nTranslate>
- <fa-icon [icon]="icons.faPlus"></fa-icon>
- <fa-icon [icon]="icons.faAnchor"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
+ <svg [lucideIcon]="icons.LucideAnchor"></svg>
File
</button>
<button (click)="layout.closeDialog()" class="btn btn-secondary ms-auto" data-dismiss="modal" type="button" l10nTranslate>Cancel</button>
<button (click)="onSubmit()" [disabled]="submitted" class="btn btn-primary" type="button" l10nTranslate>
Confirm
</button>
-</div>
\ No newline at end of file
+</div>
diff --git a/frontend/src/app/applications/spaces/components/dialogs/space-user-anchors-dialog.component.ts b/frontend/src/app/applications/spaces/components/dialogs/space-user-anchors-dialog.component.ts
index 042b6de8..9c0108c0 100644
--- a/frontend/src/app/applications/spaces/components/dialogs/space-user-anchors-dialog.component.ts
+++ b/frontend/src/app/applications/spaces/components/dialogs/space-user-anchors-dialog.component.ts
@@ -1,7 +1,6 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, inject, Input, OnInit } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faAnchor, faPlus, faSpinner } from '@fortawesome/free-solid-svg-icons'
+import { LucideAnchor, LucideDynamicIcon, LucideLoader, LucidePlus } from '@lucide/angular'
import type { SpaceRootProps } from '@sync-in-server/backend/src/applications/spaces/models/space-root-props.model'
import { L10nTranslateDirective } from 'angular-l10n'
import { BsModalRef } from 'ngx-bootstrap/modal'
@@ -18,7 +17,7 @@ import { ExternalFilePathEvent } from './space-root-path-dialog.component'
@Component({
selector: 'app-space-user-anchors-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, SpaceManageRootsComponent],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, SpaceManageRootsComponent],
templateUrl: 'space-user-anchors-dialog.component.html'
})
export class SpaceUserAnchorsDialogComponent implements OnInit {
@@ -26,7 +25,7 @@ export class SpaceUserAnchorsDialogComponent implements OnInit {
@Input({ required: true }) user: UserType
protected readonly layout = inject(LayoutService)
protected addRootFileEvent = new Subject<FileTreeEvent | ExternalFilePathEvent>()
- protected readonly icons = { faAnchor, faPlus, faSpinner, SPACES: SPACES_ICON.SPACES }
+ protected readonly icons = { LucideAnchor, LucidePlus, LucideLoader, SPACES: SPACES_ICON.SPACES }
// states
protected submitted = false
protected loading = false
diff --git a/frontend/src/app/applications/spaces/components/sidebar/space-selection.component.html b/frontend/src/app/applications/spaces/components/sidebar/space-selection.component.html
index 38d92bdb..1777d44a 100644
--- a/frontend/src/app/applications/spaces/components/sidebar/space-selection.component.html
+++ b/frontend/src/app/applications/spaces/components/sidebar/space-selection.component.html
@@ -2,14 +2,13 @@
<div appAutoResize class="fs-sm" [resizeOffset]=resizeOffset>
<div class="card px-1 pt-1">
<div class="card-body align-self-center p-0 my-1">
- <fa-icon
+ <span
class="circle-primary-icon"
style="font-size: calc(var(--font-size-md) * 3)"
- [icon]="icons.SPACES"
- [fixedWidth]="false"
[style.width.px]="cardImageSize"
[style.height.px]="cardImageSize">
- </fa-icon>
+ <svg [lucideIcon]="icons.SPACES"></svg>
+ </span>
</div>
</div>
<hr class="my-1" />
@@ -39,7 +38,7 @@
<div class="d-flex col-5 col-sm-5 text-bold" l10nTranslate>Anchored</div>
@if (space().counts.roots) {
<span (click)="openSpaceRootsDialog()" class="badge bg-primary cursor-pointer me-1">
- <fa-icon [icon]="icons.ANCHORED"></fa-icon>
+ <svg [lucideIcon]="icons.ANCHORED"></svg>
{{ space().counts.roots }}
</span>
} @else {
@@ -51,7 +50,7 @@
<div class="d-flex col-5 col-sm-5 text-bold" l10nTranslate>Child shares</div>
@if (space().counts.shares) {
<span (click)="openChildShareDialog(space())" class="badge bg-purple cursor-pointer me-1">
- <fa-icon [icon]="icons.SHARES"></fa-icon>
+ <svg [lucideIcon]="icons.SHARES"></svg>
{{ space().counts.shares }}
</span>
} @else {
@@ -80,4 +79,3 @@
</div>
}
-
diff --git a/frontend/src/app/applications/spaces/components/sidebar/space-selection.component.ts b/frontend/src/app/applications/spaces/components/sidebar/space-selection.component.ts
index 57b2b965..a25d4951 100755
--- a/frontend/src/app/applications/spaces/components/sidebar/space-selection.component.ts
+++ b/frontend/src/app/applications/spaces/components/sidebar/space-selection.component.ts
@@ -1,5 +1,5 @@
import { ChangeDetectionStrategy, Component, inject, input, InputSignal } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
+import { LucideDynamicIcon } from '@lucide/angular'
import { SPACE_ROLE } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective } from 'angular-l10n'
import { BadgeMembersComponent } from '../../../../common/components/badge-members.component'
@@ -21,7 +21,7 @@ import { SpaceUserAnchorsDialogComponent } from '../dialogs/space-user-anchors-d
templateUrl: 'space-selection.component.html',
imports: [
AutoResizeDirective,
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslateDirective,
TimeDateFormatPipe,
BadgePermissionsComponent,
diff --git a/frontend/src/app/applications/spaces/components/sidebar/trash-selection.component.html b/frontend/src/app/applications/spaces/components/sidebar/trash-selection.component.html
index 14778a8a..a77c1723 100644
--- a/frontend/src/app/applications/spaces/components/sidebar/trash-selection.component.html
+++ b/frontend/src/app/applications/spaces/components/sidebar/trash-selection.component.html
@@ -2,14 +2,13 @@
<div appAutoResize class="fs-sm" [resizeOffset]=resizeOffset>
<div class="card px-1 pt-1">
<div class="card-body align-self-center p-0 my-1">
- <fa-icon
+ <span
class="circle-primary-icon"
style="font-size: calc(var(--font-size-md) * 3)"
- [icon]="iconTrash"
- [fixedWidth]="false"
[style.width.px]="cardImageSize"
[style.height.px]="cardImageSize">
- </fa-icon>
+ <svg [lucideIcon]="iconTrash"></svg>
+ </span>
</div>
</div>
<hr class="my-1" />
@@ -39,4 +38,3 @@
}
-
diff --git a/frontend/src/app/applications/spaces/components/sidebar/trash-selection.component.ts b/frontend/src/app/applications/spaces/components/sidebar/trash-selection.component.ts
index 71a747c6..19bb7912 100755
--- a/frontend/src/app/applications/spaces/components/sidebar/trash-selection.component.ts
+++ b/frontend/src/app/applications/spaces/components/sidebar/trash-selection.component.ts
@@ -1,5 +1,5 @@
import { ChangeDetectionStrategy, Component, inject, input, InputSignal } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
+import { LucideDynamicIcon } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { AutoResizeDirective } from '../../../../common/directives/auto-resize.directive'
import { TimeDateFormatPipe } from '../../../../common/pipes/time-date-format.pipe'
@@ -11,7 +11,7 @@ import { SPACES_ICON } from '../../spaces.constants'
selector: 'app-trash-selection',
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: 'trash-selection.component.html',
- imports: [AutoResizeDirective, FaIconComponent, L10nTranslateDirective, TimeDateFormatPipe, L10nTranslatePipe],
+ imports: [AutoResizeDirective, LucideDynamicIcon, L10nTranslateDirective, TimeDateFormatPipe, L10nTranslatePipe],
styles: ['.card {width: 100%; background: transparent; border: none}']
})
export class TrashSelectionComponent {
diff --git a/frontend/src/app/applications/spaces/components/spaces-browser.component.html b/frontend/src/app/applications/spaces/components/spaces-browser.component.html
index 5760c933..a248fb0f 100644
--- a/frontend/src/app/applications/spaces/components/spaces-browser.component.html
+++ b/frontend/src/app/applications/spaces/components/spaces-browser.component.html
@@ -4,7 +4,7 @@
class="d-none d-sm-block btn btn-default me-1"
[tooltip]="'Refresh' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faArrowRotateRight" [animation]="loading ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw" [class.icon-spin]="loading"></svg>
</button>
<!--Start New Button-->
@if (!isTrashRepo && !inSharesList) {
@@ -13,23 +13,23 @@
class="btn btn-default dropdown-toggle"
[tooltip]="'New' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu" role="menu">
<li role="menuitem">
<a (click)="openNewDialog('directory')" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.PERSONAL"></fa-icon>New folder</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.PERSONAL"></svg>New folder</span>
</a>
</li>
<li role="menuitem">
<a (click)="openNewDialog('file')" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faFileAlt"></fa-icon>New document</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideFileText"></svg>New document</span>
</a>
</li>
<li class="dropdown-divider"></li>
<li role="menuitem">
<a appUploadFiles [options]="{isMultiple: true}" (uploadFiles)="onUploadFiles($event)" class="dropdown-item" id="uploadFilesButton">
- <span l10nTranslate><fa-icon [icon]="icons.faUpload"></fa-icon>Upload files</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideHardDriveUpload"></svg>Upload files</span>
</a>
@if (supportUploadFolder) {
<a appUploadFiles
@@ -37,13 +37,13 @@
(uploadFiles)="onUploadFiles($event, true)"
class="dropdown-item"
id="uploadFoldersButton">
- <span l10nTranslate><fa-icon [icon]="icons.faUpload"></fa-icon>Upload folders</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideHardDriveUpload"></svg>Upload folders</span>
</a>
}
</li>
<li role="menuitem">
<a (click)="openNewDialog('download')" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faGlobe"></fa-icon>Download from URL</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideGlobe"></svg>Download from URL</span>
</a>
</li>
</ul>
@@ -55,7 +55,7 @@
class="btn btn-default me-1"
[tooltip]="'Download' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faDownload"></fa-icon>
+ <svg [lucideIcon]="icons.LucideHardDriveDownload"></svg>
</button>
<!--Start Share Button-->
@if (!isTrashRepo && canShare.outside || inSharesList) {
@@ -64,23 +64,23 @@
class="btn btn-default dropdown-toggle"
[tooltip]="'Share' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.SHARED"></fa-icon>
+ <svg [lucideIcon]="icons.SHARED"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu" role="menu">
<li role="menuitem">
<a (click)="openShareDialog()" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.SHARED"></fa-icon>New share</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.SHARED"></svg>New share</span>
</a>
</li>
<li role="menuitem">
<a (click)="openShareLinkDialog()" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faLink"></fa-icon>New share link</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideLink"></svg>New share link</span>
</a>
</li>
@if (isFilesRepo) {
<li role="menuitem">
<a (click)="openSpaceAnchorFileDialog()" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faAnchor"></fa-icon>Anchor to a space</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideAnchor"></svg>Anchor to a space</span>
</a>
</li>
}
@@ -94,7 +94,7 @@
class="btn btn-default me-1"
[tooltip]="'Remove' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faBan"></fa-icon>
+ <svg [lucideIcon]="icons.LucideBan"></svg>
</button>
@if (inRootSpace) {
<button (click)="openEmptyTrashDialog()"
@@ -102,56 +102,56 @@
class="btn btn-default me-1"
[tooltip]="'Empty' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.TRASH"></fa-icon>
+ <svg [lucideIcon]="icons.TRASH"></svg>
</button>
}
}
<!--Start Actions Button-->
<div [isDisabled]="!hasSelection" class="btn-group me-1" dropdown>
<button class="btn btn-default dropdown-toggle" dropdownToggle type="button">
- <fa-icon [icon]="icons.faEllipsis"></fa-icon>
+ <svg [lucideIcon]="icons.LucideEllipsis"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu" role="menu">
@if (selection.length === 1) {
@if (selection[0]) {
<li role="menuitem">
<a (click)="shortcutOpen()" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="selection[0].isDir ? icons.faFolderOpen : icons.faEye"></fa-icon>Open</span>
+ <span l10nTranslate><svg [lucideIcon]="selection[0].isDir ? icons.LucideFolderOpen : icons.LucideEye"></svg>Open</span>
</a>
</li>
}
}
<li role="menuitem">
<a (click)="layout.showRSideBarTab(TAB_MENU.SELECTION)" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faSquareCheck"></fa-icon>Selection</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideSquareCheckBig"></svg>Selection</span>
</a>
</li>
<li class="dropdown-divider"></li>
@if (!hasDisabledItemsInSelection) {
<li role="menuitem">
<a (click)="copyMoveFiles()" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faArrowsAlt"></fa-icon>Copy • Move</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideMove"></svg>Copy • Move</span>
</a>
</li>
}
@if (selection.length === 1 && !isTrashRepo && !inSharesList) {
<li role="menuitem">
<a (click)="shortcutRename()" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faSpellCheck"></fa-icon>Rename</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideSpellCheck"></svg>Rename</span>
</a>
</li>
}
@if (!isTrashRepo && canCompress) {
<li role="menuitem">
<a (click)="openCompressionDialog()" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faFileArchive"></fa-icon>Compress</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideFileArchive"></svg>Compress</span>
</a>
</li>
}
@if (selection.length === 1 && !isTrashRepo && !inSharesList && !selection[0].isCompressible) {
<li role="menuitem">
<a (click)="decompressFile()" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faFileArchive"></fa-icon>Decompress</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideFileArchive"></svg>Decompress</span>
</a>
</li>
}
@@ -160,20 +160,20 @@
}
<li role="menuitem">
<a (click)="addToClipboard()" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faClipboardList"></fa-icon>Clipboard</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideClipboardList"></svg>Clipboard</span>
</a>
</li>
@if (selection.length === 1 && !isTrashRepo && isElectronApp && selection[0].isDir) {
<li role="menuitem">
<a (click)="addToSync()" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faRotate"></fa-icon>Synchronize</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.SYNC"></svg>Synchronize</span>
</a>
</li>
}
@if (selection.length === 1 && !isTrashRepo) {
<li role="menuitem">
<a (click)="layout.showRSideBarTab(TAB_MENU.COMMENTS, true)" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faCommentDots"></fa-icon>Comment</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideMessageSquareMore"></svg>Comment</span>
</a>
</li>
}
@@ -181,9 +181,9 @@
<li role="menuitem">
<a (click)="toggleFavorite(selection[0])" class="dropdown-item">
@if (selection[0].isFavorite) {
- <span l10nTranslate><fa-icon [icon]="icons.FAVORITES"></fa-icon>Remove from favorites</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.FAVORITES"></svg>Remove from favorites</span>
} @else {
- <span l10nTranslate><fa-icon [icon]="icons.FAVORITES"></fa-icon>Add to favorites</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.FAVORITES"></svg>Add to favorites</span>
}
</a>
</li>
@@ -193,11 +193,11 @@
<li role="menuitem">
@if (isTrashRepo) {
<a (click)="openTrashDialog(true)" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.faBan" class="text-danger"></fa-icon>Remove</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideBan" class="text-danger"></svg>Remove</span>
</a>
} @else {
<a (click)="openTrashDialog()" class="dropdown-item">
- <span l10nTranslate><fa-icon [icon]="icons.TRASH" class="text-danger"></fa-icon>Trash</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.TRASH" class="text-danger"></svg>Trash</span>
</a>
}
</li>
@@ -250,7 +250,7 @@
class="file-selection-overlay gallery-file-selection-overlay"
type="button">
<span class="file-selection-indicator">
- <fa-icon [icon]="icons.faCheck"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCheck"></svg>
</span>
</button>
@if (f.isImage) {
@@ -277,25 +277,25 @@
tooltip="{{f.lock | fileLockFormatPipe}}"
placement="auto"
class="badge bg-maroon cursor-pointer">
- <fa-icon [icon]="f.lock.isExclusive ? icons.faLock : icons.faLockOpen"></fa-icon>
+ <svg [lucideIcon]="f.lock.isExclusive ? icons.LucideLock : icons.LucideLockOpen"></svg>
</span>
}
@case ('favorites') {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-warning cursor-pointer">
- <fa-icon [icon]="icons.FAVORITES"></fa-icon>
+ <svg [lucideIcon]="icons.FAVORITES"></svg>
</span>
}
@case ('comments') {
<span (click)="layout.showRSideBarTab(TAB_MENU.COMMENTS, true)"
class="badge bg-success cursor-pointer">
- <fa-icon [icon]="icons.faCommentDots"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMessageSquareMore"></svg>
</span>
}
@case ('shares') {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer">
- <fa-icon [icon]="icons.SHARED"></fa-icon>
+ <svg [lucideIcon]="icons.SHARED"></svg>
@if (f.shares.length > 1) {
{{ f.shares.length }}
}
@@ -304,7 +304,7 @@
@case ('spaces') {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer">
- <fa-icon [icon]="icons.SPACES"></fa-icon>
+ <svg [lucideIcon]="icons.SPACES"></svg>
@if (f.spaces.length > 1) {
{{ f.spaces.length }}
}
@@ -313,7 +313,7 @@
@case ('links') {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer">
- <fa-icon [icon]="icons.LINKS"></fa-icon>
+ <svg [lucideIcon]="icons.LINKS"></svg>
@if (f.links.length > 1) {
{{ f.links.length }}
}
@@ -322,7 +322,7 @@
@case ('syncs') {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer">
- <fa-icon [icon]="icons.SYNC"></fa-icon>
+ <svg [lucideIcon]="icons.SYNC"></svg>
@if (f.syncs.length > 1) {
{{ f.syncs.length }}
}
@@ -334,7 +334,7 @@
@if (hiddenBadges > 0) {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer">
- <fa-icon [icon]="icons.faCirclePlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCirclePlus"></svg>
{{ hiddenBadges }}
</span>
}
@@ -345,7 +345,7 @@
[user]="f.root.owner"
[height]="galleryMode.dimensions / 3.5"
[width]="galleryMode.dimensions / 3.5"
- [fontSize]="galleryMode.faSize / 2.5">
+ [fontSize]="galleryMode.iconSize / 2.5">
</app-user-avatar>
</span>
}
@@ -391,7 +391,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -435,7 +435,7 @@
class="file-selection-overlay"
type="button">
<span class="file-selection-indicator">
- <fa-icon [icon]="icons.faCheck"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCheck"></svg>
</span>
</button>
</span>
@@ -470,25 +470,25 @@
tooltip="{{f.lock | fileLockFormatPipe}}"
placement="auto"
class="badge bg-maroon cursor-pointer me-1">
- <fa-icon [icon]="f.lock.isExclusive ? icons.faLock : icons.faLockOpen"></fa-icon>
+ <svg [lucideIcon]="f.lock.isExclusive ? icons.LucideLock : icons.LucideLockOpen"></svg>
</span>
}
@if (f.isFavorite) {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-warning cursor-pointer me-1">
- <fa-icon [icon]="icons.FAVORITES"></fa-icon>
+ <svg [lucideIcon]="icons.FAVORITES"></svg>
</span>
}
@if (f.hasComments) {
<span (click)="layout.showRSideBarTab(TAB_MENU.COMMENTS, true)"
class="badge bg-success cursor-pointer me-1">
- <fa-icon [icon]="icons.faCommentDots"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMessageSquareMore"></svg>
</span>
}
@if (f.shares.length) {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer me-1">
- <fa-icon [icon]="icons.SHARED"></fa-icon>
+ <svg [lucideIcon]="icons.SHARED"></svg>
@if (f.shares.length > 1) {
{{ f.shares.length }}
}
@@ -497,7 +497,7 @@
@if (f.links.length) {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer me-1">
- <fa-icon [icon]="icons.LINKS"></fa-icon>
+ <svg [lucideIcon]="icons.LINKS"></svg>
@if (f.links.length > 1) {
{{ f.links.length }}
}
@@ -506,7 +506,7 @@
@if (f.spaces.length) {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer me-1">
- <fa-icon [icon]="icons.SPACES"></fa-icon>
+ <svg [lucideIcon]="icons.SPACES"></svg>
@if (f.spaces.length > 1) {
{{ f.spaces.length }}
}
@@ -515,7 +515,7 @@
@if (f.syncs.length) {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer">
- <fa-icon [icon]="icons.SYNC"></fa-icon>
+ <svg [lucideIcon]="icons.SYNC"></svg>
@if (f.syncs.length > 1) {
{{ f.syncs.length }}
}
@@ -587,12 +587,12 @@
<context-menu #FileContextMenu>
@if (selection.length === 1 && selection[0]; as selectedFile) {
<ng-template (execute)="shortcutOpen()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="selectedFile.isDir ? icons.faFolderOpen : icons.faEye"></fa-icon>Open</span>
+ <span l10nTranslate><svg [lucideIcon]="selectedFile.isDir ? icons.LucideFolderOpen : icons.LucideEye"></svg>Open</span>
</ng-template>
}
@if (!hasDisabledItemsInSelection) {
<ng-template (execute)="downloadFiles()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faDownload"></fa-icon>Download</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideHardDriveDownload"></svg>Download</span>
</ng-template>
}
@if (selection.length === 1 && selection[0] || !hasDisabledItemsInSelection) {
@@ -600,110 +600,110 @@
}
@if (!hasDisabledItemsInSelection) {
<ng-template (execute)="copyMoveFiles()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowsAlt"></fa-icon>Copy • Move</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideMove"></svg>Copy • Move</span>
</ng-template>
}
@if (selection.length === 1 && !isTrashRepo && !inSharesList) {
<ng-template (execute)="shortcutRename()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faSpellCheck"></fa-icon>Rename</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideSpellCheck"></svg>Rename</span>
</ng-template>
}
@if (!isTrashRepo) {
@if (canCompress) {
<ng-template (execute)="openCompressionDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faFileArchive"></fa-icon>Compress</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideFileArchive"></svg>Compress</span>
</ng-template>
}
@if (!inSharesList && selection.length === 1 && !selection[0].isCompressible) {
<ng-template (execute)="decompressFile()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faFileArchive"></fa-icon>Decompress</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideFileArchive"></svg>Decompress</span>
</ng-template>
}
}
- @if (!hasDisabledItemsInSelection || selection.length === 1 && !isTrashRepo && !inSharesList || !isTrashRepo && canCompress) {
- <ng-template [divider]="true" contextMenuItem></ng-template>
- }
@if (!isTrashRepo) {
@if (canShare.outside || inSharesList && selection[0]?.canBeReShared) {
<ng-template [subMenu]="ShareContextMenu" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.SHARED"></fa-icon>Share</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.SHARED"></svg>Share</span>
</ng-template>
}
}
+ @if (!hasDisabledItemsInSelection || selection.length === 1 && !isTrashRepo && !inSharesList || !isTrashRepo && canCompress || !isTrashRepo && (canShare.outside || inSharesList && selection[0]?.canBeReShared)) {
+ <ng-template [divider]="true" contextMenuItem></ng-template>
+ }
<ng-template (execute)="addToClipboard()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faClipboardList"></fa-icon>Clipboard</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideClipboardList"></svg>Clipboard</span>
</ng-template>
@if (selection.length === 1 && !isTrashRepo && isElectronApp && selection[0].isDir) {
<ng-template (execute)="addToSync()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faRotate"></fa-icon>Synchronize</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.SYNC"></svg>Synchronize</span>
</ng-template>
}
@if (selection.length === 1 && !isTrashRepo) {
<ng-template (execute)="layout.showRSideBarTab(TAB_MENU.COMMENTS, true)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faCommentDots"></fa-icon>Comment</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideMessageSquareMore"></svg>Comment</span>
</ng-template>
}
@if (selection.length === 1 && canManageFavorite) {
<ng-template (execute)="toggleFavorite(selection[0])" contextMenuItem>
@if (selection[0].isFavorite) {
- <span l10nTranslate><fa-icon [icon]="icons.FAVORITES"></fa-icon>Remove from favorites</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.FAVORITES"></svg>Remove from favorites</span>
} @else {
- <span l10nTranslate><fa-icon [icon]="icons.FAVORITES"></fa-icon>Add to favorites</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.FAVORITES"></svg>Add to favorites</span>
}
</ng-template>
}
@if (!inSharesList) {
<ng-template [divider]="true" contextMenuItem></ng-template>
<ng-template (execute)="openTrashDialog(isTrashRepo)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="isTrashRepo ? icons.faBan : icons.TRASH" class="text-danger"></fa-icon>
+ <span l10nTranslate><svg [lucideIcon]="isTrashRepo ? icons.LucideBan : icons.TRASH" class="text-danger"></svg>
{{ isTrashRepo ? 'Remove' : 'Trash' }}</span>
</ng-template>
}
</context-menu>
<context-menu #ShareContextMenu>
<ng-template (execute)="openShareDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.SHARED"></fa-icon>New share</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.SHARED"></svg>New share</span>
</ng-template>
<ng-template (execute)="openShareLinkDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faLink"></fa-icon>New share link</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideLink"></svg>New share link</span>
</ng-template>
@if (isFilesRepo) {
<ng-template (execute)="openSpaceAnchorFileDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faAnchor"></fa-icon>Anchor to a space</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideAnchor"></svg>Anchor to a space</span>
</ng-template>
}
</context-menu>
<context-menu #MainReadOnlyContextMenu>
<ng-template (execute)="loadFiles()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>Refresh</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
@if (inRootSpace) {
<ng-template (execute)="openEmptyTrashDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.TRASH"></fa-icon>Empty</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.TRASH"></svg>Empty</span>
</ng-template>
}
</context-menu>
<context-menu #MainContextMenu>
@if (inSharesList) {
<ng-template (execute)="loadFiles()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>Refresh</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
} @else {
<ng-template (execute)="openNewDialog('directory')" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.PERSONAL"></fa-icon>New folder</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.PERSONAL"></svg>New folder</span>
</ng-template>
<ng-template (execute)="openNewDialog('file')" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faFileAlt"></fa-icon>New document</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideFileText"></svg>New document</span>
</ng-template>
<ng-template (execute)="openNewDialog('download')" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faGlobe"></fa-icon>Download from URL</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideGlobe"></svg>Download from URL</span>
</ng-template>
<ng-template (execute)="shortcutUploadFiles()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faUpload"></fa-icon>Upload files</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideHardDriveUpload"></svg>Upload files</span>
</ng-template>
@if (supportUploadFolder) {
<ng-template (execute)="shortcutUploadFolders()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faUpload"></fa-icon>Upload folders</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideHardDriveUpload"></svg>Upload folders</span>
</ng-template>
}
}
diff --git a/frontend/src/app/applications/spaces/components/spaces-browser.component.scss b/frontend/src/app/applications/spaces/components/spaces-browser.component.scss
index 0d470f5c..b917b028 100644
--- a/frontend/src/app/applications/spaces/components/spaces-browser.component.scss
+++ b/frontend/src/app/applications/spaces/components/spaces-browser.component.scss
@@ -55,7 +55,8 @@
border-radius: .25rem;
opacity: 0.85;
- fa-icon {
+ .lucide {
+ font-size: .875rem;
margin-right: 0 !important;
}
}
@@ -83,8 +84,8 @@
height: 1.85em;
font-size: inherit;
- fa-icon {
- font-size: .9em;
+ .lucide {
+ font-size: .9rem;
}
}
}
diff --git a/frontend/src/app/applications/spaces/components/spaces-browser.component.ts b/frontend/src/app/applications/spaces/components/spaces-browser.component.ts
index 8a1ec13b..3f23ace5 100644
--- a/frontend/src/app/applications/spaces/components/spaces-browser.component.ts
+++ b/frontend/src/app/applications/spaces/components/spaces-browser.component.ts
@@ -2,35 +2,34 @@ import { KeyValuePipe, NgTemplateOutlet } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { AfterViewInit, Component, ElementRef, inject, NgZone, OnDestroy, OnInit, Renderer2, ViewChild } from '@angular/core'
import { ActivatedRoute, Data, Router, UrlSegment } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faSquareCheck } from '@fortawesome/free-regular-svg-icons'
import {
- faAnchor,
- faArrowDown,
- faArrowRotateRight,
- faArrowsAlt,
- faArrowUp,
- faBan,
- faCheck,
- faCirclePlus,
- faClipboardList,
- faCommentDots,
- faDownload,
- faEllipsis,
- faEye,
- faFileAlt,
- faFileArchive,
- faFolderOpen,
- faGlobe,
- faLink,
- faLock,
- faLockOpen,
- faPen,
- faPlus,
- faRotate,
- faSpellCheck,
- faUpload
-} from '@fortawesome/free-solid-svg-icons'
+ LucideAnchor,
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideBan,
+ LucideCheck,
+ LucideCirclePlus,
+ LucideClipboardList,
+ LucideDynamicIcon,
+ LucideEllipsis,
+ LucideEye,
+ LucideFileArchive,
+ LucideFileText,
+ LucideFolderOpen,
+ LucideGlobe,
+ LucideHardDriveDownload,
+ LucideHardDriveUpload,
+ LucideLink,
+ LucideLock,
+ LucideLockOpen,
+ LucideMessageSquareMore,
+ LucideMove,
+ LucidePencil,
+ LucidePlus,
+ LucideRotateCw,
+ LucideSpellCheck,
+ LucideSquareCheckBig
+} from '@lucide/angular'
import { ContextMenuComponent, ContextMenuModule } from '@perfectmemory/ngx-contextmenu'
import { TAR_EXTENSION } from '@sync-in-server/backend/src/applications/files/constants/compress'
import { FILE_OPERATION } from '@sync-in-server/backend/src/applications/files/constants/operations'
@@ -96,7 +95,7 @@ const keyboardNavigationKeys: ReadonlySet<string> = new Set<KeyboardNavigationKe
imports: [
L10nTranslatePipe,
L10nTranslateDirective,
- FaIconComponent,
+ LucideDynamicIcon,
TooltipModule,
BsDropdownModule,
FilterComponent,
@@ -135,32 +134,31 @@ export class SpacesBrowserComponent implements OnInit, AfterViewInit, OnDestroy
LINKS: SPACES_ICON.LINKS,
SYNC: SYNC_ICON.SYNC,
FAVORITES: FAVORITES_ICON,
- faArrowRotateRight,
- faPlus,
- faCirclePlus,
- faFileAlt,
- faGlobe,
- faUpload,
- faDownload,
- faLink,
- faAnchor,
- faEllipsis,
- faPen,
- faEye,
- faFolderOpen,
- faRotate,
- faCommentDots,
- faFileArchive,
- faSpellCheck,
- faArrowsAlt,
- faSquareCheck,
- faBan,
- faCheck,
- faArrowUp,
- faArrowDown,
- faLock,
- faLockOpen,
- faClipboardList
+ LucidePlus,
+ LucideCirclePlus,
+ LucideFileText,
+ LucideGlobe,
+ LucideHardDriveUpload,
+ LucideHardDriveDownload,
+ LucideLink,
+ LucideAnchor,
+ LucideEllipsis,
+ LucidePencil,
+ LucideEye,
+ LucideFolderOpen,
+ LucideRotateCw,
+ LucideMessageSquareMore,
+ LucideFileArchive,
+ LucideSpellCheck,
+ LucideMove,
+ LucideSquareCheckBig,
+ LucideBan,
+ LucideCheck,
+ LucideArrowUp,
+ LucideArrowDown,
+ LucideLock,
+ LucideLockOpen,
+ LucideClipboardList
}
// States
protected loading = false
diff --git a/frontend/src/app/applications/spaces/components/spaces-nav.component.ts b/frontend/src/app/applications/spaces/components/spaces-nav.component.ts
index d7db061e..aab068d8 100644
--- a/frontend/src/app/applications/spaces/components/spaces-nav.component.ts
+++ b/frontend/src/app/applications/spaces/components/spaces-nav.component.ts
@@ -1,8 +1,7 @@
import { Component, computed, inject, OnDestroy } from '@angular/core'
import { toObservable } from '@angular/core/rxjs-interop'
import { RouterOutlet } from '@angular/router'
-import { faCommentDots, faRectangleList, faSquareCheck } from '@fortawesome/free-regular-svg-icons'
-import { faFolderTree } from '@fortawesome/free-solid-svg-icons'
+import { LucideFolderTree, LucideList, LucideMessageSquareMore, LucideSquareCheckBig } from '@lucide/angular'
import { map } from 'rxjs/operators'
import { TAB_GROUP, TAB_MENU, TabMenu } from '../../../layout/layout.interfaces'
import { LayoutService } from '../../../layout/layout.service'
@@ -22,12 +21,12 @@ export class SpacesNavComponent implements OnDestroy {
private readonly layout = inject(LayoutService)
private readonly store = inject(StoreService)
private tabs: TabMenu[] = [
- { label: TAB_MENU.TREE, components: [FilesTreeComponent], loadComponent: true, icon: faFolderTree, title: null, active: false },
+ { label: TAB_MENU.TREE, components: [FilesTreeComponent], loadComponent: true, icon: LucideFolderTree, title: null, active: false },
{
label: TAB_MENU.SELECTION,
components: [SelectionComponent],
loadComponent: false,
- icon: faSquareCheck,
+ icon: LucideSquareCheckBig,
count: {
value: toObservable(
computed(() =>
@@ -43,13 +42,20 @@ export class SpacesNavComponent implements OnDestroy {
label: TAB_MENU.CLIPBOARD,
components: [FilesClipboardComponent],
loadComponent: false,
- icon: faRectangleList,
+ icon: LucideList,
count: { value: this.store.filesClipboard.pipe(map((files: FileModel[]) => files.length)), level: 'maroon' },
showOnCount: true,
title: null,
active: false
},
- { label: TAB_MENU.COMMENTS, components: [CommentsSelectionComponent], loadComponent: false, icon: faCommentDots, title: null, active: false }
+ {
+ label: TAB_MENU.COMMENTS,
+ components: [CommentsSelectionComponent],
+ loadComponent: false,
+ icon: LucideMessageSquareMore,
+ title: null,
+ active: false
+ }
]
constructor() {
diff --git a/frontend/src/app/applications/spaces/components/spaces.component.html b/frontend/src/app/applications/spaces/components/spaces.component.html
index a26bd099..fbaaf021 100644
--- a/frontend/src/app/applications/spaces/components/spaces.component.html
+++ b/frontend/src/app/applications/spaces/components/spaces.component.html
@@ -4,14 +4,14 @@
class="d-none d-sm-block btn btn-default me-1"
[tooltip]="'Refresh' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faArrowRotateRight" [animation]="loading ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw" [class.icon-spin]="loading"></svg>
</button>
@if (canCreateSpace) {
<button (click)="openSpaceDialog(true)"
class="btn btn-default me-1"
[tooltip]="'New space' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
</button>
}
<button (click)="openSpaceDialog()"
@@ -19,21 +19,21 @@
class="btn btn-default me-1"
[tooltip]="'Edit space' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencil"></svg>
</button>
<button (click)="openChildShareDialog()"
[disabled]="!canEditSpace || !selected?.counts.shares"
class="btn btn-default me-1"
[tooltip]="'Edit children shares' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.SHARES"></fa-icon>
+ <svg [lucideIcon]="icons.SHARES"></svg>
</button>
<button (click)="openSpaceRootsDialog()"
[disabled]="!canManageRoots"
class="btn btn-default me-1"
[tooltip]="'Manage my anchored files' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faAnchor"></fa-icon>
+ <svg [lucideIcon]="icons.LucideAnchor"></svg>
</button>
<div class="ms-auto">
<!--Start Filter Button-->
@@ -52,7 +52,7 @@
<!--Start Gallery Content-->
<div [style.--gallery-card-size]="galleryMode.dimensions + 'px'"
[style.--gallery-image-size]="galleryMode.image + 'px'"
- [style.--gallery-icon-size]="galleryMode.faSize + 'px'"
+ [style.--gallery-icon-size]="galleryMode.iconSize + 'px'"
[style.--gallery-text-size]="galleryMode.textSize + 'px'"
class="app-gallery">
<app-virtual-scroll (contextmenu)="onContextMenu($event)"
@@ -70,9 +70,9 @@
[class.selected]="s.id === selected?.id"
class="card">
<div [attr.rowIndex]="$index" class="card-body">
- <fa-icon [icon]="icons.SPACES"
- class="circle-primary-icon gallery-icon">
- </fa-icon>
+ <span class="circle-primary-icon gallery-icon">
+ <svg [lucideIcon]="icons.SPACES"></svg>
+ </span>
<span class="label-top-right">
@if (s.newly) {
<span class="badge bg-purple">{{ s.hTimeAgo }}</span>
@@ -85,20 +85,20 @@
[isMember]="true"
[height]="galleryMode.dimensions / 3.5"
[width]="galleryMode.dimensions / 3.5"
- [fontSize]="galleryMode.faSize / 2.5">
+ [fontSize]="galleryMode.iconSize / 2.5">
</app-user-avatar-stack>
</span>
}
<span class="label-bottom-right">
@if (s.counts?.roots) {
<span (click)="openSpaceRootsDialog()" class="badge bg-primary cursor-pointer me-1">
- <fa-icon [icon]="icons.faAnchor"></fa-icon>
+ <svg [lucideIcon]="icons.LucideAnchor"></svg>
{{ s.counts.roots }}
</span>
}
@if (s.role === SPACE_ROLE.IS_MANAGER && s.counts.shares) {
<span (click)="openChildShareDialog(s)" class="badge bg-purple cursor-pointer me-1">
- <fa-icon [icon]="icons.SHARES"></fa-icon>
+ <svg [lucideIcon]="icons.SHARES"></svg>
{{ s.counts.shares }}
</span>
}
@@ -128,7 +128,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -155,7 +155,9 @@
@switch (th.key) {
@case ('name') {
<div class="d-flex align-items-center">
- <fa-icon [icon]="icons.SPACES" class="circle-primary-icon" [fixedWidth]="false"></fa-icon>
+ <span class="circle-primary-icon">
+ <svg [lucideIcon]="icons.SPACES"></svg>
+ </span>
<div class="d-flex flex-column text-truncate">
<span class="no-pointer-events text-file-name-preserve" draggable="false">{{ s.name }}</span>
<span class="no-pointer-events text-muted fs-xs" draggable="false">{{ s.description }}</span>
@@ -171,13 +173,13 @@
@case ('info') {
@if (s.counts?.roots) {
<span (click)="openSpaceRootsDialog()" class="badge bg-primary cursor-pointer me-1">
- <fa-icon [icon]="icons.faAnchor"></fa-icon>
+ <svg [lucideIcon]="icons.LucideAnchor"></svg>
{{ s.counts.roots }}
</span>
}
@if (s.role === SPACE_ROLE.IS_MANAGER && s.counts.shares) {
<span (click)="openChildShareDialog(s)" class="badge bg-purple cursor-pointer me-1">
- <fa-icon [icon]="icons.SHARES"></fa-icon>
+ <svg [lucideIcon]="icons.SHARES"></svg>
{{ s.counts.shares }}
</span>
}
@@ -213,35 +215,35 @@
@if (canCreateSpace) {
<ng-template
(execute)="openSpaceDialog(true)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPlus"></fa-icon>New space</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePlus"></svg>New space</span>
</ng-template>
<ng-template [divider]="true" contextMenuItem></ng-template>
}
<ng-template (execute)="loadSpaces()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>Refresh</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
</context-menu>
<context-menu #TargetContextMenu>
@if (canEditSpace) {
<ng-template (execute)="openSpaceDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPen"></fa-icon>Edit space</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePencil"></svg>Edit space</span>
</ng-template>
@if (!!selected?.counts.shares) {
<ng-template (execute)="openChildShareDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.SHARES"></fa-icon>Edit children shares</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.SHARES"></svg>Edit children shares</span>
</ng-template>
}
}
@if (canManageRoots) {
<ng-template (execute)="openSpaceRootsDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faAnchor"></fa-icon>Manage my anchored files</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideAnchor"></svg>Manage my anchored files</span>
</ng-template>
}
@if (canEditSpace || canManageRoots) {
<ng-template [divider]="true" contextMenuItem></ng-template>
}
<ng-template (execute)="layout.showRSideBarTab(TAB_MENU.SELECTION)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faCircleInfo"></fa-icon>Info</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideSquareCheckBig"></svg>Info</span>
</ng-template>
</context-menu>
<!--End Context Menu-->
diff --git a/frontend/src/app/applications/spaces/components/spaces.component.ts b/frontend/src/app/applications/spaces/components/spaces.component.ts
index 84210726..c01727e2 100644
--- a/frontend/src/app/applications/spaces/components/spaces.component.ts
+++ b/frontend/src/app/applications/spaces/components/spaces.component.ts
@@ -2,18 +2,17 @@ import { KeyValuePipe } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, ElementRef, inject, OnInit, ViewChild } from '@angular/core'
import { ActivatedRoute, Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import {
- faAnchor,
- faArrowDown,
- faArrowRotateRight,
- faArrowUp,
- faCircleInfo,
- faPen,
- faPlus,
- faRotate,
- faUpload
-} from '@fortawesome/free-solid-svg-icons'
+ LucideAnchor,
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideDynamicIcon,
+ LucideHardDriveUpload,
+ LucidePencil,
+ LucidePlus,
+ LucideRotateCw,
+ LucideSquareCheckBig
+} from '@lucide/angular'
import { ContextMenuComponent, ContextMenuModule } from '@perfectmemory/ngx-contextmenu'
import { SPACE_OPERATION, SPACE_ROLE } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
import { USER_PERMISSION } from '@sync-in-server/backend/src/applications/users/constants/user'
@@ -49,7 +48,7 @@ import { SpaceUserAnchorsDialogComponent } from './dialogs/space-user-anchors-di
imports: [
KeyValuePipe,
L10nTranslateDirective,
- FaIconComponent,
+ LucideDynamicIcon,
UserAvatarStackComponent,
VirtualScrollComponent,
TooltipModule,
@@ -79,15 +78,14 @@ export class SpacesComponent implements OnInit {
protected readonly icons = {
SPACES: SPACES_ICON.SPACES,
SHARES: SPACES_ICON.SHARES,
- faAnchor,
- faArrowDown,
- faArrowUp,
- faRotate,
- faArrowRotateRight,
- faUpload,
- faPlus,
- faPen,
- faCircleInfo
+ LucideAnchor,
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideRotateCw,
+ LucideHardDriveUpload,
+ LucidePlus,
+ LucidePencil,
+ LucideSquareCheckBig
}
// Sort
protected tableHeaders: Record<'name' | 'managers' | 'members' | 'info' | 'permissions' | 'modified', TableHeaderConfig> = {
diff --git a/frontend/src/app/applications/spaces/components/trash.component.html b/frontend/src/app/applications/spaces/components/trash.component.html
index 6aaad200..8dff6253 100644
--- a/frontend/src/app/applications/spaces/components/trash.component.html
+++ b/frontend/src/app/applications/spaces/components/trash.component.html
@@ -4,7 +4,7 @@
class="btn btn-default me-1"
[tooltip]="'Refresh' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faArrowRotateRight" [animation]="loading ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw" [class.icon-spin]="loading"></svg>
</button>
<div class="ms-auto">
<!--Start Filter Button-->
@@ -23,7 +23,7 @@
<!--Start Gallery Content-->
<div [style.--gallery-card-size]="galleryMode.dimensions + 'px'"
[style.--gallery-image-size]="galleryMode.image + 'px'"
- [style.--gallery-icon-size]="galleryMode.faSize + 'px'"
+ [style.--gallery-icon-size]="galleryMode.iconSize + 'px'"
[style.--gallery-text-size]="galleryMode.textSize + 'px'"
class="app-gallery">
<app-virtual-scroll (contextmenu)="onContextMenu($event)"
@@ -41,9 +41,9 @@
[class.selected]="t.id === selected?.id"
class="card">
<div [attr.rowIndex]="$index" class="card-body">
- <fa-icon [icon]="t.isPersonal ? icons.PERSONAL : icons.SPACES"
- class="circle-primary-icon gallery-icon">
- </fa-icon>
+ <span class="circle-primary-icon gallery-icon">
+ <svg [lucideIcon]="t.isPersonal ? icons.PERSONAL : icons.SPACES"></svg>
+ </span>
<span class="label-top-right">
@if (t.newly) {
<span class="badge bg-purple">{{ t.hTimeAgo }}</span>
@@ -81,7 +81,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -108,7 +108,9 @@
@switch (th.key) {
@case ('name') {
<div class="d-flex align-items-center">
- <fa-icon [icon]="t.isPersonal ? icons.PERSONAL : icons.SPACES" class="circle-primary-icon"></fa-icon>
+ <span class="circle-primary-icon">
+ <svg [lucideIcon]="t.isPersonal ? icons.PERSONAL : icons.SPACES"></svg>
+ </span>
<span
class="no-pointer-events text-file-name-preserve"
draggable="false"
@@ -138,12 +140,12 @@
<!--Start Context Menu -->
<context-menu #MainContextMenu>
<ng-template (execute)="loadTrashBins()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>Refresh</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
</context-menu>
<context-menu #TargetContextMenu>
<ng-template (execute)="layout.showRSideBarTab(TAB_MENU.SELECTION)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faCircleInfo"></fa-icon>Info</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideSquareCheckBig"></svg>Info</span>
</ng-template>
</context-menu>
<!--End Context Menu-->
diff --git a/frontend/src/app/applications/spaces/components/trash.component.ts b/frontend/src/app/applications/spaces/components/trash.component.ts
index 5a25c979..b29f9e5a 100644
--- a/frontend/src/app/applications/spaces/components/trash.component.ts
+++ b/frontend/src/app/applications/spaces/components/trash.component.ts
@@ -1,8 +1,7 @@
import { KeyValuePipe } from '@angular/common'
import { Component, ElementRef, inject, OnInit, ViewChild } from '@angular/core'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faArrowDown, faArrowRotateRight, faArrowUp, faCircleInfo } from '@fortawesome/free-solid-svg-icons'
+import { LucideArrowDown, LucideArrowUp, LucideDynamicIcon, LucideRotateCw, LucideSquareCheckBig } from '@lucide/angular'
import { ContextMenuComponent, ContextMenuModule } from '@perfectmemory/ngx-contextmenu'
import type { SpaceTrash } from '@sync-in-server/backend/src/applications/spaces/interfaces/space-trash.interface'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -25,7 +24,7 @@ import { SPACES_ICON, SPACES_PATH, SPACES_TITLE } from '../spaces.constants'
@Component({
selector: 'app-spaces-trash',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
NavigationViewComponent,
L10nTranslatePipe,
FilterComponent,
@@ -48,7 +47,14 @@ export class TrashComponent implements OnInit {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly layout = inject(LayoutService)
protected readonly originalOrderKeyValue = originalOrderKeyValue
- protected readonly icons = { SPACES: SPACES_ICON.SPACES, PERSONAL: SPACES_ICON.PERSONAL, faArrowDown, faArrowUp, faArrowRotateRight, faCircleInfo }
+ protected readonly icons = {
+ SPACES: SPACES_ICON.SPACES,
+ PERSONAL: SPACES_ICON.PERSONAL,
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideRotateCw,
+ LucideSquareCheckBig
+ }
protected readonly TAB_MENU = TAB_MENU
protected galleryMode: ViewMode
protected loading = false
diff --git a/frontend/src/app/applications/spaces/components/utils/space-manage-roots.component.html b/frontend/src/app/applications/spaces/components/utils/space-manage-roots.component.html
index 5692f7bd..285bc195 100644
--- a/frontend/src/app/applications/spaces/components/utils/space-manage-roots.component.html
+++ b/frontend/src/app/applications/spaces/components/utils/space-manage-roots.component.html
@@ -45,35 +45,35 @@
[(ngModel)]="r.hPerms[perm.key]"
(ngModelChange)="onPermissionChange(r)"
[tooltip]="SPACES_PERMISSIONS_TEXT[perm.key].text | translate:locale.language"
- class="btn btn-sm btn-custom {{!r.isDir && (perm.key === 'a' || perm.key === 'd') ? 'disabled' : ''}}"
+ class="btn btn-custom {{!r.isDir && (perm.key === 'a' || perm.key === 'd') ? 'disabled' : ''}}"
type="button">
- <fa-icon [icon]="SPACES_PERMISSIONS_TEXT[perm.key].icon" size="lg"></fa-icon>
+ <svg [lucideIcon]="SPACES_PERMISSIONS_TEXT[perm.key].icon"></svg>
</button>
} @else {
<button [tooltip]="SPACES_PERMISSIONS_TEXT[perm.key].text | translate:locale.language"
[class.active]="r.hPerms[perm.key]"
- class="btn btn-sm btn-custom disabled"
+ class="btn btn-custom disabled"
type="button">
- <fa-icon [icon]="SPACES_PERMISSIONS_TEXT[perm.key].icon" size="lg"></fa-icon>
+ <svg [lucideIcon]="SPACES_PERMISSIONS_TEXT[perm.key].icon"></svg>
</button>
}
}
- <div class="vr ms-1 me-2"></div>
+ <div class="vr" style="margin-left: 0.15rem; margin-right: 0.35rem"></div>
<button
(click)="setRenamed(r)"
[tooltip]="'Rename' | translate:locale.language"
- class="btn btn-sm {{r.isRenamed ? 'btn-success' : 'btn-secondary'}} me-2"
+ class="btn {{r.isRenamed ? 'btn-success' : 'btn-secondary'}} me-2"
type="button">
- <fa-icon [icon]="icons.faPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencil"></svg>
</button>
<button
(click)="removeRoot(r)"
[tooltip]="'Remove' | translate:locale.language"
- class="btn btn-sm btn-danger"
+ class="btn btn-danger"
type="button">
- <fa-icon [icon]="icons.faTimes"></fa-icon>
+ <svg [lucideIcon]="icons.LucideX"></svg>
</button>
</div>
</div>
</div>
-}
\ No newline at end of file
+}
diff --git a/frontend/src/app/applications/spaces/components/utils/space-manage-roots.component.ts b/frontend/src/app/applications/spaces/components/utils/space-manage-roots.component.ts
index cf3224fc..81f37093 100644
--- a/frontend/src/app/applications/spaces/components/utils/space-manage-roots.component.ts
+++ b/frontend/src/app/applications/spaces/components/utils/space-manage-roots.component.ts
@@ -1,8 +1,7 @@
import { KeyValuePipe } from '@angular/common'
import { Component, ElementRef, inject, Input, OnDestroy, OnInit, ViewChild } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faPen, faTimes } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucidePencil, LucideX } from '@lucide/angular'
import { createSlug, InvalidSlugError, regExpNumberSuffix } from '@sync-in-server/backend/src/common/shared'
import { L10N_LOCALE, L10nLocale, L10nTranslatePipe } from 'angular-l10n'
import { ButtonsModule } from 'ngx-bootstrap/buttons'
@@ -26,7 +25,7 @@ import { ExternalFilePathEvent } from '../dialogs/space-root-path-dialog.compone
selector: 'app-space-manage-roots',
imports: [
ButtonsModule,
- FaIconComponent,
+ LucideDynamicIcon,
KeyValuePipe,
L10nTranslatePipe,
TimeAgoPipe,
@@ -36,7 +35,13 @@ import { ExternalFilePathEvent } from '../dialogs/space-root-path-dialog.compone
InputEditDirective,
PathSlice
],
- templateUrl: 'space-manage-roots.component.html'
+ templateUrl: 'space-manage-roots.component.html',
+ styles: `
+ .lucide {
+ margin: 2px;
+ font-size: 1rem;
+ }
+ `
})
export class SpaceManageRootsComponent implements OnInit, OnDestroy {
@ViewChild('InputRename') inputRename: ElementRef
@@ -46,7 +51,7 @@ export class SpaceManageRootsComponent implements OnInit, OnDestroy {
@Input() showUsers = true
@Input() addRootFile: Subject<FileTreeEvent | ExternalFilePathEvent> = null
protected locale = inject<L10nLocale>(L10N_LOCALE)
- protected readonly icons = { faTimes, faPen }
+ protected readonly icons = { LucideX, LucidePencil }
protected readonly SPACES_PERMISSIONS_TEXT = SPACES_PERMISSIONS_TEXT
protected readonly originalOrderKeyValue = originalOrderKeyValue
private readonly layout = inject(LayoutService)
diff --git a/frontend/src/app/applications/spaces/services/spaces-browser.service.ts b/frontend/src/app/applications/spaces/services/spaces-browser.service.ts
index 11e38bd4..2068253b 100644
--- a/frontend/src/app/applications/spaces/services/spaces-browser.service.ts
+++ b/frontend/src/app/applications/spaces/services/spaces-browser.service.ts
@@ -1,7 +1,7 @@
import { HttpClient, HttpErrorResponse } from '@angular/common/http'
import { inject, Injectable } from '@angular/core'
import { UrlSegment } from '@angular/router'
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
+import type { LucideIcon } from '@lucide/angular'
import { API_SPACES_BROWSE } from '@sync-in-server/backend/src/applications/spaces/constants/routes'
import { SPACE_REPOSITORY } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
import type { SpaceFiles } from '@sync-in-server/backend/src/applications/spaces/interfaces/space-files.interface'
@@ -19,7 +19,7 @@ export class SpacesBrowserService {
private readonly layout = inject(LayoutService)
private browseApi: string
private breadCrumbUrl: string
- private breadCrumbIcon: IconDefinition
+ private breadCrumbIcon: LucideIcon
private breadCrumbFilesRepo = false
private inShareRepo = false
private inRootSpace = false
diff --git a/frontend/src/app/applications/spaces/spaces.constants.ts b/frontend/src/app/applications/spaces/spaces.constants.ts
index 7647b260..d91ecfe6 100644
--- a/frontend/src/app/applications/spaces/spaces.constants.ts
+++ b/frontend/src/app/applications/spaces/spaces.constants.ts
@@ -1,17 +1,17 @@
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
+import type { LucideIcon } from '@lucide/angular'
import {
- faAnchor,
- faFileCircleMinus,
- faFileCirclePlus,
- faFileImport,
- faFilePen,
- faFolderClosed,
- faLayerGroup,
- faLink,
- faShare,
- faShareNodes,
- faTrashCan
-} from '@fortawesome/free-solid-svg-icons'
+ LucideAnchor,
+ LucideFileInput,
+ LucideFileMinusCorner,
+ LucideFilePenLine,
+ LucideFilePlusCorner,
+ LucideFolderClosed,
+ LucideLayers,
+ LucideLink,
+ LucideRedo,
+ LucideShare2,
+ LucideTrash2
+} from '@lucide/angular'
import { SPACES_BASE_ROUTE } from '@sync-in-server/backend/src/applications/spaces/constants/routes'
import {
SPACE_ALIAS,
@@ -45,15 +45,15 @@ export const SPACES_TITLE = {
} as const
export const SPACES_ICON = {
- PERSONAL: faFolderClosed,
- SPACES: faLayerGroup,
- SHARES: faShareNodes,
- SHARED_WITH_ME: faShareNodes,
- SHARED_WITH_OTHERS: faShare,
- ANCHORED: faAnchor,
- LINKS: faLink,
- TRASH: faTrashCan,
- EXTERNAL: faFileImport
+ PERSONAL: LucideFolderClosed,
+ SPACES: LucideLayers,
+ SHARES: LucideShare2,
+ SHARED_WITH_ME: LucideShare2,
+ SHARED_WITH_OTHERS: LucideShare2,
+ ANCHORED: LucideAnchor,
+ LINKS: LucideLink,
+ TRASH: LucideTrash2,
+ EXTERNAL: LucideFileInput
} as const
export const SPACES_PATH = {
@@ -72,10 +72,10 @@ export const SPACES_PATH = {
PERSONAL_TRASH: `${SPACES_BASE_ROUTE}/${SPACE_REPOSITORY.FILES}/${SPACE_ALIAS.PERSONAL}/${SPACE_REPOSITORY.TRASH}`
} as const
-export const SPACES_PERMISSIONS_TEXT: Record<SPACE_OPERATION, { text: string; icon: IconDefinition }> = {
- a: { text: 'Add', icon: faFileCirclePlus },
- m: { text: 'Edit', icon: faFilePen },
- d: { text: 'Delete', icon: faFileCircleMinus },
+export const SPACES_PERMISSIONS_TEXT: Record<SPACE_OPERATION, { text: string; icon: LucideIcon }> = {
+ a: { text: 'Add', icon: LucideFilePlusCorner },
+ m: { text: 'Edit', icon: LucideFilePenLine },
+ d: { text: 'Delete', icon: LucideFileMinusCorner },
si: { text: 'Share inside', icon: SPACES_ICON.ANCHORED },
so: { text: 'Share outside', icon: SPACES_ICON.SHARED_WITH_OTHERS }
} as const
@@ -96,7 +96,7 @@ const SPACES_MENU_SECTION = {
export const SPACES_MENU: AppMenu = {
title: SPACES_TITLE.FILES,
- icon: faFolderClosed,
+ icon: LucideFolderClosed,
link: SPACES_PATH.PERSONAL_FILES,
matchLink: new RegExp(
`^${RECENTS_PATH.BASE}|^${FAVORITES_PATH.BASE}|^${SPACES_PATH.SPACES}|^${SPACES_PATH.TRASH}|^${SPACES_PATH.SHARES}|^${SPACES_PATH.SHARED}|^${SPACES_PATH.LINKS}`
@@ -142,7 +142,7 @@ export const SPACES_MENU: AppMenu = {
{
id: USER_PERMISSION.SHARES_ADMIN,
title: SPACES_TITLE.SHARED_WITH_OTHER_SHORT,
- icon: SPACES_ICON.SHARED_WITH_OTHERS,
+ icon: LucideRedo,
link: SPACES_PATH.SHARED,
matchLink: new RegExp(`^${SPACES_PATH.SHARED}`),
defaultLinkCandidate: true
diff --git a/frontend/src/app/applications/sync/components/dialogs/sync-client-delete.dialog.component.html b/frontend/src/app/applications/sync/components/dialogs/sync-client-delete.dialog.component.html
index 38d43f19..3d612e23 100755
--- a/frontend/src/app/applications/sync/components/dialogs/sync-client-delete.dialog.component.html
+++ b/frontend/src/app/applications/sync/components/dialogs/sync-client-delete.dialog.component.html
@@ -1,15 +1,15 @@
<div class="modal-header">
<h4 class="modal-title" translate>
- <fa-icon [icon]="icons.faTrashCan"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTrash2"></svg>
<span l10nTranslate>Client</span>
@if (submitted) {
- <fa-icon [icon]="icons.faSpinner" animation="spin" class="ms-2"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true" class="ms-2"></svg>
}
</h4>
<button (click)="layout.closeDialog()" aria-label="Close" class="btn-close btn-close-white" type="button"></button>
</div>
<div class="modal-body">
- <div><b><fa-icon [icon]="client.icon" class="me-2" size="lg" [fixedWidth]="false"></fa-icon>{{client.info.node}}</b><span class="ms-1" l10nTranslate>will be removed</span></div>
+ <div><b><app-platform-icon [platform]="client.info.os" class="me-2"></app-platform-icon>{{client.info.node}}</b><span class="ms-1" l10nTranslate>will be removed</span></div>
<div class="small mt-2" translate>The client will no longer have permission to access your account and will no longer be able to synchronize.</div>
</div>
<div class="modal-footer">
diff --git a/frontend/src/app/applications/sync/components/dialogs/sync-client-delete.dialog.component.ts b/frontend/src/app/applications/sync/components/dialogs/sync-client-delete.dialog.component.ts
index f507eaad..d0453c0c 100755
--- a/frontend/src/app/applications/sync/components/dialogs/sync-client-delete.dialog.component.ts
+++ b/frontend/src/app/applications/sync/components/dialogs/sync-client-delete.dialog.component.ts
@@ -1,8 +1,8 @@
import { HttpErrorResponse } from '@angular/common/http'
import { ChangeDetectionStrategy, Component, EventEmitter, HostListener, inject, Input, Output } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faSpinner, faTrashCan } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideLoader, LucideTrash2 } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
+import { PlatformIconComponent } from '../../../../common/components/platform-icon.component'
import { LayoutService } from '../../../../layout/layout.service'
import { SyncClientModel } from '../../models/sync-client.model'
import { SyncService } from '../../services/sync.service'
@@ -10,14 +10,14 @@ import { SyncService } from '../../services/sync.service'
@Component({
selector: 'app-sync-client-delete-dialog',
changeDetection: ChangeDetectionStrategy.OnPush,
- imports: [FaIconComponent, L10nTranslateDirective],
+ imports: [LucideDynamicIcon, PlatformIconComponent, L10nTranslateDirective],
templateUrl: './sync-client-delete.dialog.component.html'
})
export class SyncClientDeleteDialogComponent {
@Input() client: SyncClientModel
@Output() wasDeleted = new EventEmitter()
protected readonly layout = inject(LayoutService)
- protected readonly icons = { faSpinner, faTrashCan }
+ protected readonly icons = { LucideLoader, LucideTrash2 }
protected submitted = false
private readonly syncService = inject(SyncService)
diff --git a/frontend/src/app/applications/sync/components/dialogs/sync-path-report.dialog.component.html b/frontend/src/app/applications/sync/components/dialogs/sync-path-report.dialog.component.html
index 9434305e..5b60a062 100644
--- a/frontend/src/app/applications/sync/components/dialogs/sync-path-report.dialog.component.html
+++ b/frontend/src/app/applications/sync/components/dialogs/sync-path-report.dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faRotate"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRefreshCw"></svg>
<span>{{ syncPath.settings.name }}</span>
</h4>
<button (click)="onMinimize()" aria-label="Minimize" class="btn-minimize btn-minimize-white" type="button"></button>
@@ -12,13 +12,13 @@
<div class="sync-report-top-menu">
<button (click)="manageReport(!running)" class="btn btn-default ms-1" type="button">
<div class="d-flex align-items-center">
- <fa-icon [icon]="running ? icons.faStop : icons.faFlask"></fa-icon>
+ <svg [lucideIcon]="running ? icons.LucideSquareStop : icons.LucideFlaskConical"></svg>
<span class="ms-1" l10nTranslate>Simulate</span>
</div>
</button>
<div class="sync-report-summary ms-3">
@if (running) {
- <fa-icon [icon]="icons.faSpinner" animation="spin" class="me-2"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true" class="me-2"></svg>
}
@if (transfers().length) {
<span class="badge bg-default sync-report-count-badge">{{ 'nb_actions' | translate:locale.language:{ nb: count.actions } }}</span>
@@ -34,20 +34,20 @@
role="button"
type="button"
btnCheckbox>
- <fa-icon [icon]="icons.faFilter"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFunnel"></svg>
<span>{{ count.filtered }}</span>
</button>
}
<div [tooltip]="'Go to' | translate:locale.language">
<div [isDisabled]="!transferSelected" class="btn-group me-2" dropdown>
<button class="btn btn-default dropdown-toggle" dropdownToggle type="button">
- <fa-icon [icon]="icons.faMapMarkerAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMapPin"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu" role="menu">
<li role="menuitem">
<a (click)="goToPath()" class="dropdown-item">
<span l10nTranslate>
- <fa-icon [icon]="icons.CLIENT"></fa-icon>
+ <svg [lucideIcon]="icons.CLIENT"></svg>
<span class="ms-2">Client</span>
</span>
</a>
@@ -56,7 +56,7 @@
<li role="menuitem">
<a (click)="goToPath(false)" class="dropdown-item">
<span l10nTranslate>
- <fa-icon [icon]="icons.SERVER"></fa-icon>
+ <svg [lucideIcon]="icons.SERVER"></svg>
<span class="ms-2">Server</span>
</span>
</a>
@@ -89,7 +89,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -112,10 +112,14 @@
@switch (th.key) {
@case ('action') {
<span class="d-flex align-items-center" style="font-size: var(--font-size-sm)">
- <fa-icon [icon]="s.sideIcon" class="{{s.sideIconClass}}"></fa-icon>
- <fa-icon [icon]="s.actionIcon" class="circle-gray-icon-sm" size="sm"></fa-icon>
- <span class="fs-sm" l10nTranslate>{{ s.actionText }}</span>
- </span>
+ <span [class]="s.sideIconClass">
+ <svg [lucideIcon]="s.sideIcon"></svg>
+ </span>
+ <span class="circle-gray-icon-sm">
+ <svg [lucideIcon]="s.actionIcon"></svg>
+ </span>
+ <span class="fs-sm" l10nTranslate>{{ s.actionText }}</span>
+ </span>
}
@case ('file') {
<div class="d-flex align-items-center fs-sm">
diff --git a/frontend/src/app/applications/sync/components/dialogs/sync-path-report.dialog.component.ts b/frontend/src/app/applications/sync/components/dialogs/sync-path-report.dialog.component.ts
index 49060c5d..2e2e780c 100644
--- a/frontend/src/app/applications/sync/components/dialogs/sync-path-report.dialog.component.ts
+++ b/frontend/src/app/applications/sync/components/dialogs/sync-path-report.dialog.component.ts
@@ -1,8 +1,17 @@
import { KeyValuePipe } from '@angular/common'
import { Component, inject, Input, OnDestroy, OnInit, signal, ViewChild, WritableSignal } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faArrowDown, faArrowUp, faFilter, faFlask, faMapMarkerAlt, faRotate, faSpinner, faStop } from '@fortawesome/free-solid-svg-icons'
+import {
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideDynamicIcon,
+ LucideFlaskConical,
+ LucideFunnel,
+ LucideLoader,
+ LucideMapPin,
+ LucideRefreshCw,
+ LucideSquareStop
+} from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { ButtonCheckboxDirective } from 'ngx-bootstrap/buttons'
import { BsDropdownDirective, BsDropdownMenuDirective, BsDropdownToggleDirective } from 'ngx-bootstrap/dropdown'
@@ -30,7 +39,7 @@ import { SYNC_ICON } from '../../sync.constants'
@Component({
selector: 'app-sync-folder-report-dialog',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslateDirective,
L10nTranslatePipe,
TooltipDirective,
@@ -57,14 +66,14 @@ export class SyncPathReportDialogComponent implements OnInit, OnDestroy {
protected readonly originalOrderKeyValue = originalOrderKeyValue
protected readonly SYNC_TRANSFER_ACTION = SYNC_TRANSFER_ACTION
protected readonly icons = {
- faArrowDown,
- faArrowUp,
- faStop,
- faFlask,
- faSpinner,
- faRotate,
- faMapMarkerAlt,
- faFilter,
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideSquareStop,
+ LucideFlaskConical,
+ LucideLoader,
+ LucideRefreshCw,
+ LucideMapPin,
+ LucideFunnel,
CLIENT: SYNC_ICON.CLIENT,
SERVER: SYNC_ICON.SERVER
}
diff --git a/frontend/src/app/applications/sync/components/dialogs/sync-path-settings.dialog.component.html b/frontend/src/app/applications/sync/components/dialogs/sync-path-settings.dialog.component.html
index 71c0b693..4203c302 100644
--- a/frontend/src/app/applications/sync/components/dialogs/sync-path-settings.dialog.component.html
+++ b/frontend/src/app/applications/sync/components/dialogs/sync-path-settings.dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faRotate"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRefreshCw"></svg>
<span>{{ syncPath.settings.name }}</span>
</h4>
<button (click)="layout.closeDialog()" aria-label="Close" class="btn-close btn-close-white" type="button"></button>
@@ -74,7 +74,7 @@
class="form-control"
type="text">
<button (click)="onRemoveFilter(i)" class="btn btn-danger" data-dismiss="modal" type="button">
- <fa-icon [icon]="icons.faTimes"></fa-icon>
+ <svg [lucideIcon]="icons.LucideX"></svg>
</button>
</div>
}
diff --git a/frontend/src/app/applications/sync/components/dialogs/sync-path-settings.dialog.component.ts b/frontend/src/app/applications/sync/components/dialogs/sync-path-settings.dialog.component.ts
index 390cbb6e..e4de4f2b 100755
--- a/frontend/src/app/applications/sync/components/dialogs/sync-path-settings.dialog.component.ts
+++ b/frontend/src/app/applications/sync/components/dialogs/sync-path-settings.dialog.component.ts
@@ -1,8 +1,7 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, OnInit, Output } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faRotate, faTimes } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideRefreshCw, LucideX } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { TabDirective, TabHeadingDirective, TabsetComponent } from 'ngx-bootstrap/tabs'
import { ELECTRON_DIALOG } from '../../../../electron/constants/dialogs'
@@ -22,7 +21,7 @@ import { SyncPathSettingsComponent } from '../shared/sync-path-settings.componen
TabDirective,
SyncPathSettingsComponent,
FormsModule,
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslateDirective,
TabHeadingDirective
],
@@ -49,7 +48,7 @@ export class SyncPathSettingsDialogComponent implements OnInit {
[this.SYNC_PATH_FILTER_TYPE.END]: "with the extension ('.mp3', '.avi', '.mov' ...)",
[this.SYNC_PATH_FILTER_TYPE.EXPERT]: '[-+]?[0-9]*\\.?[0-9]*'
}
- protected readonly icons = { faTimes, faRotate }
+ protected readonly icons = { LucideX, LucideRefreshCw }
protected confirmDeletion = false
private readonly syncService = inject(SyncService)
diff --git a/frontend/src/app/applications/sync/components/dialogs/sync-transfers-delete.dialog.component.html b/frontend/src/app/applications/sync/components/dialogs/sync-transfers-delete.dialog.component.html
index de8693ea..a70af4d3 100644
--- a/frontend/src/app/applications/sync/components/dialogs/sync-transfers-delete.dialog.component.html
+++ b/frontend/src/app/applications/sync/components/dialogs/sync-transfers-delete.dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faTrashCan"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTrash2"></svg>
<span l10nTranslate>Clear events</span>
</h4>
<button (click)="layout.closeDialog()" aria-label="Close" class="btn-close btn-close-white" type="button"></button>
diff --git a/frontend/src/app/applications/sync/components/dialogs/sync-transfers-delete.dialog.component.ts b/frontend/src/app/applications/sync/components/dialogs/sync-transfers-delete.dialog.component.ts
index 2385f86b..1dddea3c 100644
--- a/frontend/src/app/applications/sync/components/dialogs/sync-transfers-delete.dialog.component.ts
+++ b/frontend/src/app/applications/sync/components/dialogs/sync-transfers-delete.dialog.component.ts
@@ -1,6 +1,5 @@
import { Component, EventEmitter, inject, Input, Output } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faTrashCan } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideTrash2 } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { LayoutService } from '../../../../layout/layout.service'
import { SyncPathModel } from '../../models/sync-path.model'
@@ -8,14 +7,14 @@ import { SyncService } from '../../services/sync.service'
@Component({
selector: 'app-sync-transfers-delete-dialog',
- imports: [L10nTranslateDirective, FaIconComponent],
+ imports: [L10nTranslateDirective, LucideDynamicIcon],
templateUrl: './sync-transfers-delete.dialog.component.html'
})
export class SyncTransfersDeleteDialogComponent {
@Input() syncPath: SyncPathModel = null
@Output() wasDeleted = new EventEmitter<void>()
protected readonly layout = inject(LayoutService)
- protected readonly icons = { faTrashCan }
+ protected readonly icons = { LucideTrash2 }
private readonly syncService = inject(SyncService)
doClear() {
diff --git a/frontend/src/app/applications/sync/components/shared/sync-path-settings.component.html b/frontend/src/app/applications/sync/components/shared/sync-path-settings.component.html
index 80465156..23f3e9ec 100644
--- a/frontend/src/app/applications/sync/components/shared/sync-path-settings.component.html
+++ b/frontend/src/app/applications/sync/components/shared/sync-path-settings.component.html
@@ -4,18 +4,18 @@
<div class="card-body">
<div class="sync-settings-row">
<div class="sync-settings-label">
- <fa-icon [icon]="icons.CLIENT"></fa-icon>
+ <svg [lucideIcon]="icons.CLIENT"></svg>
<span class="ms-2" l10nTranslate>Client</span>
</div>
<div class="sync-settings-value text-truncate">{{ syncPath.settings.localPath }}</div>
</div>
<div class="sync-settings-row">
<div class="sync-settings-label">
- <fa-icon [icon]="icons.SERVER"></fa-icon>
+ <svg [lucideIcon]="icons.SERVER"></svg>
<span class="ms-2" l10nTranslate>Server</span>
</div>
<div class="sync-settings-value sync-settings-value--server text-truncate">
- <fa-icon [icon]="syncPath.icon" class="me-1"></fa-icon>
+ <svg [lucideIcon]="syncPath.icon" class="me-1"></svg>
<span class="text-truncate">{{ syncPath.showedPath }}</span>
</div>
</div>
@@ -27,7 +27,7 @@
<div class="card-body">
<div class="sync-settings-row">
<label class="sync-settings-label form-label mb-0" for="sync-path-name">
- <fa-icon [icon]="icons.faEdit"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSquarePen"></svg>
<span class="ms-2" l10nTranslate>Name</span>
</label>
<div class="sync-settings-control">
@@ -45,11 +45,11 @@
<span class="ms-2" l10nTranslate>Direction</span>
@if (!syncPath.isWriteable) {
<span class="ms-2 fs-lg cursor-pointer">
- <fa-icon
- [icon]="icons.faExclamationCircle"
+ <svg
+ [lucideIcon]="icons.LucideCircleAlert"
[tooltip]="'You must have permission to modify the server folder to choose a different sync mode' | translate:locale.language"
class="text-warning">
- </fa-icon>
+ </svg>
</span>
}
</label>
@@ -64,7 +64,7 @@
<div class="sync-settings-row">
<label class="sync-settings-label form-label mb-0" for="sync-path-conflict">
- <fa-icon [icon]="icons.faBug"></fa-icon>
+ <svg [lucideIcon]="icons.LucideBug"></svg>
<span class="ms-2" l10nTranslate>Conflict</span>
</label>
<div class="sync-settings-control">
@@ -82,7 +82,7 @@
<div class="sync-settings-row">
<label class="sync-settings-label form-label mb-0" for="sync-path-diff">
- <fa-icon [icon]="icons.faGauge"></fa-icon>
+ <svg [lucideIcon]="icons.LucideGauge"></svg>
<span class="ms-2" l10nTranslate>Mode</span>
</label>
<div class="sync-settings-control">
@@ -95,7 +95,7 @@
<div class="sync-settings-row">
<label class="sync-settings-label form-label mb-0" for="sync-path-scheduler-value">
- <fa-icon [icon]="icons.faClock"></fa-icon>
+ <svg [lucideIcon]="icons.LucideClock"></svg>
<span class="ms-2" l10nTranslate>Scheduler</span>
</label>
<div class="sync-settings-control sync-settings-control--scheduler">
@@ -117,7 +117,7 @@
<div class="sync-settings-row">
<label class="sync-settings-label form-label mb-0" for="sync-path-status">
- <fa-icon [icon]="icons.faRotate"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRefreshCw"></svg>
<span class="ms-2" l10nTranslate>Status</span>
</label>
<div class="sync-settings-control">
diff --git a/frontend/src/app/applications/sync/components/shared/sync-path-settings.component.ts b/frontend/src/app/applications/sync/components/shared/sync-path-settings.component.ts
index 3dd0cc61..77654150 100755
--- a/frontend/src/app/applications/sync/components/shared/sync-path-settings.component.ts
+++ b/frontend/src/app/applications/sync/components/shared/sync-path-settings.component.ts
@@ -1,7 +1,6 @@
import { Component, inject, Input } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faBug, faClock, faEdit, faExclamationCircle, faGauge, faRotate } from '@fortawesome/free-solid-svg-icons'
+import { LucideBug, LucideCircleAlert, LucideClock, LucideDynamicIcon, LucideGauge, LucideRefreshCw, LucideSquarePen } from '@lucide/angular'
import {
SYNC_PATH_CONFLICT_MODE,
SYNC_PATH_DIFF_MODE,
@@ -16,7 +15,7 @@ import { SyncPathDirectionIconComponent } from '../utils/sync-path-direction-ico
@Component({
selector: 'app-sync-path-settings',
- imports: [L10nTranslateDirective, FaIconComponent, FormsModule, TooltipDirective, L10nTranslatePipe, SyncPathDirectionIconComponent],
+ imports: [L10nTranslateDirective, LucideDynamicIcon, FormsModule, TooltipDirective, L10nTranslatePipe, SyncPathDirectionIconComponent],
templateUrl: './sync-path-settings.component.html',
styleUrl: './sync-path-settings.component.scss'
})
@@ -29,12 +28,12 @@ export class SyncPathSettingsComponent {
protected icons = {
CLIENT: SYNC_ICON.CLIENT,
SERVER: SYNC_ICON.SERVER,
- faExclamationCircle,
- faGauge,
- faClock,
- faRotate,
- faEdit,
- faBug
+ LucideCircleAlert,
+ LucideGauge,
+ LucideClock,
+ LucideRefreshCw,
+ LucideSquarePen,
+ LucideBug
}
protected readonly SYNC_PATH_CONFLICT_MODE = SYNC_PATH_CONFLICT_MODE
protected readonly SYNC_PATH_MODE = SYNC_PATH_MODE
diff --git a/frontend/src/app/applications/sync/components/sync-clients.component.html b/frontend/src/app/applications/sync/components/sync-clients.component.html
index 34975a57..11bd106d 100644
--- a/frontend/src/app/applications/sync/components/sync-clients.component.html
+++ b/frontend/src/app/applications/sync/components/sync-clients.component.html
@@ -3,14 +3,14 @@
[tooltip]="'Refresh' | translate:locale.language"
class="d-none d-sm-block btn btn-default me-1"
type="button">
- <fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw"></svg>
</button>
<button (click)="onDeleteClient()"
[disabled]="!selected"
[tooltip]="'Remove' | translate:locale.language"
class="btn btn-default me-1"
type="button">
- <fa-icon [icon]="icons.faTrashCan"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTrash2"></svg>
</button>
</div>
<div class="app-sync-clients" appAutoResize>
@@ -23,7 +23,9 @@
<div class="sync-client-details">
<div class="sync-client-header">
<div class="d-flex align-items-center min-width-0">
- <fa-icon [icon]="icons.CLIENT" class="circle-primary-icon me-2"></fa-icon>
+ <span class="circle-primary-icon me-2">
+ <svg [lucideIcon]="icons.CLIENT"></svg>
+ </span>
<div class="d-flex flex-column text-truncate">
<span class="sync-client-title text-truncate">{{ client.info.node }}</span>
<span class="sync-client-subtitle text-truncate">{{ client.info.type }}</span>
@@ -32,37 +34,37 @@
<div class="d-flex align-items-center flex-nowrap ms-2">
<div class="badge bg-primary">{{ client.info.version }}</div>
@if (client.isCurrentClient) {
- <fa-icon [icon]="icons.faCircle"
+ <svg [lucideIcon]="icons.LucideCircle"
[container]="'body'"
[tooltip]="'This client' | translate:locale.language"
class="text-light-green cursor-pointer ms-2">
- </fa-icon>
+ </svg>
}
</div>
</div>
<div class="sync-client-meta-line {{client.expiration.reached ? 'text-bold text-danger' : client.expiration.approaching ? 'text-bold text-warning' : ''}}">
- <fa-icon [icon]="icons.faKey"></fa-icon>
+ <svg [lucideIcon]="icons.LucideKeyRound"></svg>
<span l10nTranslate>{{ client.expiration.reached ? 'The access has expired' : 'The access expires' }}</span>&nbsp;{{ client.expiration.value | amTimeAgo }}
</div>
<div class="sync-client-meta-line">
- <fa-icon class="osIcon" [icon]="client.icon"></fa-icon>
+ <app-platform-icon [platform]="client.info.os" class="osIcon"></app-platform-icon>
<span class="text-truncate">{{ client.osName }} {{ client.info.osRelease }}</span>
</div>
<div class="sync-client-meta-line">
- <fa-icon [icon]="icons.faCircleUser"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCircleUserRound"></svg>
<span class="text-truncate">{{ client.info.user }}</span>
</div>
<div class="sync-client-meta-line">
- <fa-icon [icon]="icons.faAt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideAtSign"></svg>
<span class="text-truncate">{{ client.currentIp }}&nbsp;-&nbsp;{{ client.lastIp }}</span>
</div>
<div class="d-flex flex-column align-items-start sync-client-meta-line">
<div class="sync-client-meta-line">
- <fa-icon [icon]="icons.faClock"></fa-icon>
+ <svg [lucideIcon]="icons.LucideClock"></svg>
<span class="text-truncate">{{ client.currentAccess | amDateFormat:'L HH:mm:ss' }}</span>
</div>
<div class="sync-client-meta-line text-muted">
- <fa-icon [icon]="icons.faClock"></fa-icon>
+ <svg [lucideIcon]="icons.LucideClock"></svg>
<span class="text-truncate">{{ client.lastAccess | amDateFormat:'L HH:mm:ss' }}</span>
</div>
</div>
@@ -85,7 +87,7 @@
<div class="d-flex flex-column text-truncate ms-2">
<span class="fs-base text-truncate user-select-none text-bold">{{ path.settings.name }}</span>
<div class="d-inline-flex align-items-center text-{{path.iconClass}} fs-sm">
- <fa-icon [icon]="path.icon" size="1x" class="me-1"></fa-icon>
+ <svg [lucideIcon]="path.icon" class="me-1"></svg>
<span class="text-truncate user-select-none">{{ path.showedPath }}</span>
</div>
</div>
@@ -93,11 +95,11 @@
<div class="sync-path-side">
<div class="sync-path-badges">
<div class="badge bg-dark">
- <fa-icon [icon]="icons.faPlusCircle"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCirclePlus"></svg>
{{ path.createdAt | amTimeAgo:true }}
</div>
<div class="badge sync-newly-{{path.newly}}">
- <fa-icon [icon]="icons.faRotate"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRefreshCw"></svg>
@if (path.newly) {
{{ path.settings.lastSync | amTimeAgo:true }}
} @else {
@@ -110,13 +112,13 @@
[tooltip]="'Go to' | translate:locale.language"
class="btn btn-default"
type="button">
- <fa-icon [icon]="icons.faMapMarkerAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMapPin"></svg>
</button>
<button (click)="$event.stopPropagation(); onEditPath(path, client)"
[tooltip]="'Edit' | translate:locale.language"
class="btn btn-default"
type="button">
- <fa-icon [icon]="icons.faPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencil"></svg>
</button>
</div>
</div>
diff --git a/frontend/src/app/applications/sync/components/sync-clients.component.scss b/frontend/src/app/applications/sync/components/sync-clients.component.scss
index 78f23e69..5f5b17be 100644
--- a/frontend/src/app/applications/sync/components/sync-clients.component.scss
+++ b/frontend/src/app/applications/sync/components/sync-clients.component.scss
@@ -90,13 +90,9 @@ $sync-client-card-radius: 0.9rem;
min-width: 0;
font-size: var(--font-size-sm);
- > fa-icon:first-child:not(.osIcon) {
- width: $sync-clients-icon-col-width;
- min-width: $sync-clients-icon-col-width;
- flex: 0 0 $sync-clients-icon-col-width;
+ > .lucide {
font-size: calc(var(--font-size-base) * 1.024);
margin-right: $sync-clients-icon-col-gap;
- text-align: center;
}
}
diff --git a/frontend/src/app/applications/sync/components/sync-clients.component.ts b/frontend/src/app/applications/sync/components/sync-clients.component.ts
index c1e16fe2..777ae519 100644
--- a/frontend/src/app/applications/sync/components/sync-clients.component.ts
+++ b/frontend/src/app/applications/sync/components/sync-clients.component.ts
@@ -1,25 +1,26 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, inject } from '@angular/core'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import {
- faArrowRotateRight,
- faAt,
- faCircle,
- faCircleUser,
- faClock,
- faCodeBranch,
- faKey,
- faMapMarkerAlt,
- faPen,
- faPlusCircle,
- faRotate,
- faTrashCan
-} from '@fortawesome/free-solid-svg-icons'
+ LucideAtSign,
+ LucideCircle,
+ LucideCirclePlus,
+ LucideCircleUserRound,
+ LucideClock,
+ LucideDynamicIcon,
+ LucideGitBranch,
+ LucideKeyRound,
+ LucideMapPin,
+ LucidePencil,
+ LucideRefreshCw,
+ LucideRotateCw,
+ LucideTrash2
+} from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { BsModalRef } from 'ngx-bootstrap/modal'
import { TooltipDirective } from 'ngx-bootstrap/tooltip'
import { take } from 'rxjs/operators'
+import { PlatformIconComponent } from '../../../common/components/platform-icon.component'
import { AutoResizeDirective } from '../../../common/directives/auto-resize.directive'
import { TimeAgoPipe } from '../../../common/pipes/time-ago.pipe'
import { TimeDateFormatPipe } from '../../../common/pipes/time-date-format.pipe'
@@ -35,26 +36,35 @@ import { SyncPathSettingsDialogComponent } from './dialogs/sync-path-settings.di
@Component({
selector: 'app-sync-clients',
- imports: [TooltipDirective, L10nTranslatePipe, FaIconComponent, AutoResizeDirective, L10nTranslateDirective, TimeDateFormatPipe, TimeAgoPipe],
+ imports: [
+ TooltipDirective,
+ L10nTranslatePipe,
+ LucideDynamicIcon,
+ PlatformIconComponent,
+ AutoResizeDirective,
+ L10nTranslateDirective,
+ TimeDateFormatPipe,
+ TimeAgoPipe
+ ],
templateUrl: './sync-clients.component.html',
styleUrl: './sync-clients.component.scss'
})
export class SyncClientsComponent {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly icons = {
- faArrowRotateRight,
- faTrashCan,
+ LucideRefreshCw,
+ LucideTrash2,
CLIENT: SYNC_ICON.CLIENT,
- faCircle,
- faCircleUser,
- faCodeBranch,
- faAt,
- faClock,
- faRotate,
- faPlusCircle,
- faMapMarkerAlt,
- faPen,
- faKey
+ LucideCircle,
+ LucideCircleUserRound,
+ LucideGitBranch,
+ LucideAtSign,
+ LucideClock,
+ LucideRotateCw,
+ LucideCirclePlus,
+ LucideMapPin,
+ LucidePencil,
+ LucideKeyRound
}
protected selected: SyncClientModel
protected selectedPath: SyncPathModel
diff --git a/frontend/src/app/applications/sync/components/sync-paths.component.html b/frontend/src/app/applications/sync/components/sync-paths.component.html
index 28ad70c6..011fbf7c 100644
--- a/frontend/src/app/applications/sync/components/sync-paths.component.html
+++ b/frontend/src/app/applications/sync/components/sync-paths.component.html
@@ -2,57 +2,57 @@
<button (click)="onRefresh()"
[tooltip]="'Refresh' | translate:locale.language"
class="d-none d-sm-block btn btn-default me-1" type="button">
- <fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw"></svg>
</button>
<button (click)="addToSync()"
[tooltip]="'Add' | translate:locale.language"
class="btn btn-default me-1" type="button">
- <fa-icon [icon]="icons.faPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
</button>
<button (click)="openSettingsDialog()"
[disabled]="!syncPathSelected"
[tooltip]="'Edit' | translate:locale.language"
class="btn btn-default me-1" type="button">
- <fa-icon [icon]="icons.faPencilAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencilLine"></svg>
</button>
<button (click)="openReportDialog()"
[disabled]="!syncPathSelected || !syncPathSelected.settings.enabled"
[tooltip]="'Simulate' | translate:locale.language"
class="btn btn-default me-1" type="button">
- <fa-icon [icon]="icons.faFlask"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFlaskConical"></svg>
</button>
<!--Start Sync Buttons-->
@if (syncPathSelected && syncPathSelected.inSync) {
<button (click)="doSync(false)"
[tooltip]="'Stop synchronization' | translate:locale.language"
class="btn btn-default me-1" type="button">
- <fa-icon [icon]="icons.faStop"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSquareStop"></svg>
</button>
} @else {
<button (click)="doSync(true)"
[disabled]="!syncPathSelected || !syncPathSelected.settings.enabled"
[tooltip]="'Synchronize' | translate:locale.language"
class="btn btn-default me-1" type="button">
- <fa-icon [icon]="icons.faPlay"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlay"></svg>
</button>
}
@if (allSyncsRunning) {
<button (click)="doAllSyncs(false)"
[tooltip]="'Stop synchronizations' | translate:locale.language"
class="btn btn-default me-1" type="button">
- <fa-icon [icon]="icons.faStop"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSquareStop"></svg>
</button>
} @else {
<div [tooltip]="'Synchronize all' | translate:locale.language">
<div class="btn-group me-1" dropdown [isDisabled]="!store.clientSyncPaths().length">
<button class="btn btn-default dropdown-toggle" dropdownToggle type="button">
- <fa-icon [icon]="icons.faForward"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFastForward"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu" role="menu">
<li role="menuitem">
<a (click)="doAllSyncs(true, false)" class="dropdown-item">
<span l10nTranslate>
- <fa-icon [icon]="icons.faArrowsSpin"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRepeat2"></svg>
Sequentially
</span>
</a>
@@ -60,7 +60,7 @@
<li role="menuitem">
<a (click)="doAllSyncs(true)" class="dropdown-item">
<span l10nTranslate>
- <fa-icon [icon]="icons.faShuffle"></fa-icon>
+ <svg [lucideIcon]="icons.LucideShuffle"></svg>
Asynchronously
</span>
</a>
@@ -73,9 +73,9 @@
<div class="btn-group me-1" dropdown>
<button class="btn {{store.clientScheduler() === CLIENT_SCHEDULER_STATE.DISABLED ? 'btn-warning' : 'btn-success'}} dropdown-toggle" dropdownToggle type="button">
@if (store.clientScheduler() === CLIENT_SCHEDULER_STATE.DISABLED) {
- <fa-icon [icon]="icons.faCalendarXmark"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCalendarX"></svg>
} @else {
- <fa-icon [icon]="icons.faCalendarCheck"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCalendarCheck"></svg>
}
</button>
<ul *dropdownMenu class="dropdown-menu" role="menu">
@@ -83,7 +83,7 @@
<li role="menuitem">
<a (click)="setScheduler(CLIENT_SCHEDULER_STATE.DISABLED)" class="dropdown-item">
<span l10nTranslate>
- <fa-icon [icon]="icons.faCalendarXmark"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCalendarX"></svg>
Disable
</span>
</a>
@@ -92,7 +92,7 @@
<li role="menuitem">
<a (click)="setScheduler(CLIENT_SCHEDULER_STATE.SEQ)" class="dropdown-item">
<span l10nTranslate>
- <fa-icon [icon]="icons.faArrowsSpin"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRepeat2"></svg>
Sequentially
</span>
</a>
@@ -100,7 +100,7 @@
<li role="menuitem">
<a (click)="setScheduler(CLIENT_SCHEDULER_STATE.ASYNC)" class="dropdown-item">
<span l10nTranslate>
- <fa-icon [icon]="icons.faShuffle"></fa-icon>
+ <svg [lucideIcon]="icons.LucideShuffle"></svg>
Asynchronously
</span>
</a>
@@ -112,13 +112,13 @@
<div [tooltip]="'Go to' | translate:locale.language">
<div [isDisabled]="!syncPathSelected" class="btn-group me-1" dropdown>
<button class="btn btn-default dropdown-toggle" dropdownToggle type="button">
- <fa-icon [icon]="icons.faMapMarkerAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMapPin"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu" role="menu">
<li role="menuitem">
<a (click)="goToPath()" class="dropdown-item">
<span l10nTranslate>
- <fa-icon [icon]="icons.CLIENT"></fa-icon>
+ <svg [lucideIcon]="icons.CLIENT"></svg>
Client
</span>
</a>
@@ -126,7 +126,7 @@
<li role="menuitem">
<a (click)="goToPath(false)" class="dropdown-item">
<span l10nTranslate>
- <fa-icon [icon]="icons.SERVER"></fa-icon>
+ <svg [lucideIcon]="icons.SERVER"></svg>
Server
</span>
</a>
@@ -151,7 +151,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -185,12 +185,12 @@
}
@if (s.mainError) {
<span [tooltip]="s.mainError | translate:locale.language" class="badge bg-danger cursor-pointer ms-1" placement="right">
- <fa-icon [icon]="icons.faExclamationTriangle" class="m-0"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTriangleAlert" class="m-0"></svg>
</span>
}
@if (s.lastErrors.length) {
<span (click)="showErrors(s)" class="badge bg-danger cursor-pointer ms-1">
- <fa-icon [icon]="icons.faExclamationTriangle" class="me-1"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTriangleAlert" class="me-1"></svg>
{{ s.lastErrors.length }}
</span>
}
@@ -233,61 +233,61 @@
<!--Start Context Menu -->
<context-menu #SyncPathContextMenu>
@if (syncPathSelected && syncPathSelected.inSync) {
- <ng-template (execute)="doSync(false)" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.faStop"></fa-icon>Synchronize</span>
+ <ng-template (execute)="doSync(false)" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.LucideSquareStop"></svg>Synchronize</span>
</ng-template>
} @else {
- <ng-template (execute)="doSync(true)" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.faPlay"></fa-icon>Synchronize</span>
+ <ng-template (execute)="doSync(true)" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.LucidePlay"></svg>Synchronize</span>
</ng-template>
}
- <ng-template (execute)="openReportDialog()" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.faFlask"></fa-icon>Simulate</span>
+ <ng-template (execute)="openReportDialog()" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.LucideFlaskConical"></svg>Simulate</span>
</ng-template>
<ng-template [divider]="true" contextMenuItem></ng-template>
- <ng-template [subMenu]="SyncGoToContextMenu" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.faMapMarkerAlt"></fa-icon>Go to</span>
+ <ng-template [subMenu]="SyncGoToContextMenu" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.LucideMapPin"></svg>Go to</span>
</ng-template>
- <ng-template (execute)="openSettingsDialog()" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.faPencilAlt"></fa-icon>Edit</span>
+ <ng-template (execute)="openSettingsDialog()" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.LucidePencilLine"></svg>Edit</span>
</ng-template>
</context-menu>
<context-menu #SyncAllContextMenu>
- <ng-template (execute)="doAllSyncs(true, false)" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.faArrowsSpin"></fa-icon>Sequentially</span>
+ <ng-template (execute)="doAllSyncs(true, false)" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.LucideRepeat2"></svg>Sequentially</span>
</ng-template>
- <ng-template (execute)="doAllSyncs(true)" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.faShuffle"></fa-icon>Asynchronously</span>
+ <ng-template (execute)="doAllSyncs(true)" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.LucideShuffle"></svg>Asynchronously</span>
</ng-template>
</context-menu>
<context-menu #SyncGoToContextMenu>
- <ng-template (execute)="goToPath()" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.CLIENT"></fa-icon>Client</span></ng-template>
- <ng-template (execute)="goToPath(false)" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.SERVER"></fa-icon>Server</span></ng-template>
+ <ng-template (execute)="goToPath()" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.CLIENT"></svg>Client</span></ng-template>
+ <ng-template (execute)="goToPath(false)" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.SERVER"></svg>Server</span></ng-template>
</context-menu>
<context-menu #SyncSchedulerContextMenu>
@if (store.clientScheduler() !== CLIENT_SCHEDULER_STATE.DISABLED) {
<ng-template (execute)="setScheduler(CLIENT_SCHEDULER_STATE.DISABLED)" contextMenuItem>
- <span><fa-icon [icon]="icons.faCalendarXmark"></fa-icon>
+ <span><svg [lucideIcon]="icons.LucideCalendarX"></svg>
{{ 'disabled' | translate:locale.language | capitalize }}</span>
</ng-template>
}
- <ng-template (execute)="setScheduler(CLIENT_SCHEDULER_STATE.SEQ)" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.faArrowsSpin"></fa-icon>Sequentially</span>
+ <ng-template (execute)="setScheduler(CLIENT_SCHEDULER_STATE.SEQ)" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.LucideRepeat2"></svg>Sequentially</span>
</ng-template>
- <ng-template (execute)="setScheduler(CLIENT_SCHEDULER_STATE.ASYNC)" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.faShuffle"></fa-icon>Asynchronously</span>
+ <ng-template (execute)="setScheduler(CLIENT_SCHEDULER_STATE.ASYNC)" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.LucideShuffle"></svg>Asynchronously</span>
</ng-template>
</context-menu>
<context-menu #MainContextMenu>
@if (allSyncsRunning) {
- <ng-template (execute)="doAllSyncs(false)" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.faStop"></fa-icon>Stop synchronizations</span>
+ <ng-template (execute)="doAllSyncs(false)" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.LucideSquareStop"></svg>Stop synchronizations</span>
</ng-template>
} @else if (store.clientSyncPaths().length) {
<ng-template [subMenu]="SyncAllContextMenu" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faForward"></fa-icon>Synchronize</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideFastForward"></svg>Synchronize</span>
</ng-template>
}
<ng-template [subMenu]="SyncSchedulerContextMenu" contextMenuItem>
<span l10nTranslate>
@if (store.clientScheduler() === CLIENT_SCHEDULER_STATE.DISABLED) {
- <fa-icon [icon]="icons.faCalendarXmark"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCalendarX"></svg>
} @else {
- <fa-icon [icon]="icons.faCalendarCheck"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCalendarCheck"></svg>
}
Scheduler
</span>
</ng-template>
<ng-template [divider]="true" contextMenuItem></ng-template>
- <ng-template (execute)="addToSync()" contextMenuItem><span l10nTranslate><fa-icon [icon]="icons.faPlus"></fa-icon>Add</span></ng-template>
+ <ng-template (execute)="addToSync()" contextMenuItem><span l10nTranslate><svg [lucideIcon]="icons.LucidePlus"></svg>Add</span></ng-template>
</context-menu>
diff --git a/frontend/src/app/applications/sync/components/sync-paths.component.ts b/frontend/src/app/applications/sync/components/sync-paths.component.ts
index 90922a77..765ef593 100644
--- a/frontend/src/app/applications/sync/components/sync-paths.component.ts
+++ b/frontend/src/app/applications/sync/components/sync-paths.component.ts
@@ -1,25 +1,25 @@
import { KeyValuePipe } from '@angular/common'
import { Component, effect, ElementRef, inject, OnDestroy, OnInit, ViewChild } from '@angular/core'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import {
- faArrowDown,
- faArrowRotateRight,
- faArrowsSpin,
- faArrowUp,
- faCalendarCheck,
- faCalendarXmark,
- faExclamationTriangle,
- faFlask,
- faForward,
- faInfoCircle,
- faMapMarkerAlt,
- faPencilAlt,
- faPlay,
- faPlus,
- faShuffle,
- faStop
-} from '@fortawesome/free-solid-svg-icons'
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideCalendarCheck,
+ LucideCalendarX,
+ LucideDynamicIcon,
+ LucideFastForward,
+ LucideFlaskConical,
+ LucideInfo,
+ LucideMapPin,
+ LucidePencilLine,
+ LucidePlay,
+ LucidePlus,
+ LucideRepeat2,
+ LucideRotateCw,
+ LucideShuffle,
+ LucideSquareStop,
+ LucideTriangleAlert
+} from '@lucide/angular'
import { ContextMenuComponent, ContextMenuModule } from '@perfectmemory/ngx-contextmenu'
import { SYNC_PATH_CONFLICT_MODE, SYNC_PATH_MODE } from '@sync-in-server/backend/src/applications/sync/constants/sync'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -60,7 +60,7 @@ import { LiveTimeAgoPipe } from '../../../common/pipes/time-ago-live.pipe'
ContextMenuModule,
SearchFilterPipe,
SyncPathDirectionIconComponent,
- FaIconComponent,
+ LucideDynamicIcon,
KeyValuePipe,
L10nTranslateDirective,
SyncPathSchedulerComponent,
@@ -88,24 +88,24 @@ export class SyncPathsComponent implements OnInit, OnDestroy {
protected readonly store = inject(StoreService)
protected readonly originalOrderKeyValue = originalOrderKeyValue
protected readonly icons = {
- faCalendarXmark,
- faCalendarCheck,
- faArrowDown,
- faArrowUp,
- faArrowRotateRight,
- faPlus,
- faPencilAlt,
- faStop,
- faPlay,
- faForward,
- faArrowsSpin,
- faShuffle,
- faMapMarkerAlt,
+ LucideCalendarX,
+ LucideCalendarCheck,
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideRotateCw,
+ LucidePlus,
+ LucidePencilLine,
+ LucideSquareStop,
+ LucidePlay,
+ LucideFastForward,
+ LucideRepeat2,
+ LucideShuffle,
+ LucideMapPin,
CLIENT: SYNC_ICON.CLIENT,
SERVER: SYNC_ICON.SERVER,
- faInfoCircle,
- faExclamationTriangle,
- faFlask
+ LucideInfo,
+ LucideTriangleAlert,
+ LucideFlaskConical
}
// Sort
protected tableHeaders: Record<'name' | 'mode' | 'conflictMode' | 'diffMode' | 'scheduler' | 'filters' | 'lastSync', TableHeaderConfig> = {
diff --git a/frontend/src/app/applications/sync/components/sync-transfers.component.html b/frontend/src/app/applications/sync/components/sync-transfers.component.html
index 21f8b767..7ba27acb 100644
--- a/frontend/src/app/applications/sync/components/sync-transfers.component.html
+++ b/frontend/src/app/applications/sync/components/sync-transfers.component.html
@@ -22,14 +22,14 @@
class="btn btn-default me-1"
type="button">
- <fa-icon [icon]="icons.faRedo"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRedo2"></svg>
</button>
<button (click)="openClearDialog()"
[tooltip]="'Clear events' | translate:locale.language"
placement="bottom"
class="btn btn-default me-1"
type="button">
- <fa-icon [icon]="icons.faTrashCan"></fa-icon>
+ <svg [lucideIcon]="icons.LucideTrash2"></svg>
</button>
<!--Start Filter Button-->
<app-input-filter class="d-none d-sm-block"></app-input-filter>
@@ -49,7 +49,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -70,8 +70,12 @@
@switch (th.key) {
@case ('action') {
<span class="d-flex align-items-center" [title]="t.actionText | translate:locale.language">
- <fa-icon [icon]="t.sideIcon" class="{{t.ok ? t.sideIconClass : 'circle-error-icon-sm'}} me-1"></fa-icon>
- <fa-icon [icon]="t.actionIcon" [class.text-danger]="!t.ok" class="circle-gray-icon-sm cursor-pointer" size="sm"></fa-icon>
+ <span class="{{t.ok ? t.sideIconClass : 'circle-error-icon-sm'}} me-1">
+ <svg [lucideIcon]="t.sideIcon"></svg>
+ </span>
+ <span [class.text-danger]="!t.ok" class="circle-gray-icon-sm cursor-pointer">
+ <svg [lucideIcon]="t.actionIcon"></svg>
+ </span>
</span>
}
@case ('sync') {
diff --git a/frontend/src/app/applications/sync/components/sync-transfers.component.ts b/frontend/src/app/applications/sync/components/sync-transfers.component.ts
index a3c07756..29b44ee5 100644
--- a/frontend/src/app/applications/sync/components/sync-transfers.component.ts
+++ b/frontend/src/app/applications/sync/components/sync-transfers.component.ts
@@ -2,8 +2,7 @@ import { KeyValuePipe } from '@angular/common'
import { Component, effect, ElementRef, inject, ViewChild } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faArrowDown, faArrowUp, faRedo, faTrashCan } from '@fortawesome/free-solid-svg-icons'
+import { LucideArrowDown, LucideArrowUp, LucideDynamicIcon, LucideRedo2, LucideTrash2 } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { BsModalRef } from 'ngx-bootstrap/modal'
import { TooltipDirective } from 'ngx-bootstrap/tooltip'
@@ -30,7 +29,7 @@ import { SyncTransfersDeleteDialogComponent } from './dialogs/sync-transfers-del
L10nTranslatePipe,
TooltipDirective,
VirtualScrollComponent,
- FaIconComponent,
+ LucideDynamicIcon,
FilterComponent,
KeyValuePipe
],
@@ -85,7 +84,7 @@ export class SyncTransfersComponent {
sortable: true
}
}
- protected readonly icons = { faRedo, faTrashCan, faArrowDown, faArrowUp }
+ protected readonly icons = { LucideRedo2, LucideTrash2, LucideArrowDown, LucideArrowUp }
private readonly router = inject(Router)
private readonly layout = inject(LayoutService)
private readonly syncService = inject(SyncService)
diff --git a/frontend/src/app/applications/sync/components/utils/sync-path-direction-icon.component.ts b/frontend/src/app/applications/sync/components/utils/sync-path-direction-icon.component.ts
index b2b41759..f43f4710 100644
--- a/frontend/src/app/applications/sync/components/utils/sync-path-direction-icon.component.ts
+++ b/frontend/src/app/applications/sync/components/utils/sync-path-direction-icon.component.ts
@@ -1,30 +1,29 @@
import { Component, Input } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faUpDown } from '@fortawesome/free-solid-svg-icons'
+import { LucideArrowUpDown, LucideDynamicIcon } from '@lucide/angular'
import { SYNC_PATH_MODE } from '@sync-in-server/backend/src/applications/sync/constants/sync'
import { SYNC_TRANSFER_SIDE, SYNC_TRANSFER_SIDE_CLASS, SYNC_TRANSFER_SIDE_ICON } from '../../constants/transfer'
import { SyncPathModel } from '../../models/sync-path.model'
@Component({
selector: 'app-sync-path-direction-icon',
- imports: [FaIconComponent],
+ imports: [LucideDynamicIcon],
template: `
<span class="d-flex justify-content-center">
@if (small && syncPath.settings.mode === SYNC_PATH_MODE.BOTH) {
- <fa-icon [icon]="SYNC_TRANSFER_BOTH_ICON"></fa-icon>
+ <svg [lucideIcon]="SYNC_TRANSFER_BOTH_ICON"></svg>
} @else {
@if (syncPath.settings.mode === SYNC_PATH_MODE.UPLOAD || syncPath.settings.mode === SYNC_PATH_MODE.BOTH) {
- <fa-icon
- [icon]="SYNC_TRANSFER_SIDE_ICON[SYNC_TRANSFER_SIDE.REMOTE]"
+ <span
[class.me-1]="syncPath.settings.mode === SYNC_PATH_MODE.BOTH"
class="{{ small ? '' : SYNC_TRANSFER_SIDE_CLASS[SYNC_TRANSFER_SIDE.REMOTE] }}"
- ></fa-icon>
+ >
+ <svg [lucideIcon]="SYNC_TRANSFER_SIDE_ICON[SYNC_TRANSFER_SIDE.REMOTE]"></svg>
+ </span>
}
@if (syncPath.settings.mode === SYNC_PATH_MODE.DOWNLOAD || syncPath.settings.mode === SYNC_PATH_MODE.BOTH) {
- <fa-icon
- [icon]="SYNC_TRANSFER_SIDE_ICON[SYNC_TRANSFER_SIDE.LOCAL]"
- class="{{ small ? '' : SYNC_TRANSFER_SIDE_CLASS[SYNC_TRANSFER_SIDE.LOCAL] }}"
- ></fa-icon>
+ <span class="{{ small ? '' : SYNC_TRANSFER_SIDE_CLASS[SYNC_TRANSFER_SIDE.LOCAL] }}">
+ <svg [lucideIcon]="SYNC_TRANSFER_SIDE_ICON[SYNC_TRANSFER_SIDE.LOCAL]"></svg>
+ </span>
}
}
</span>
@@ -37,5 +36,5 @@ export class SyncPathDirectionIconComponent {
protected readonly SYNC_TRANSFER_SIDE_ICON = SYNC_TRANSFER_SIDE_ICON
protected readonly SYNC_TRANSFER_SIDE = SYNC_TRANSFER_SIDE
protected readonly SYNC_TRANSFER_SIDE_CLASS = SYNC_TRANSFER_SIDE_CLASS
- protected readonly SYNC_TRANSFER_BOTH_ICON = faUpDown
+ protected readonly SYNC_TRANSFER_BOTH_ICON = LucideArrowUpDown
}
diff --git a/frontend/src/app/applications/sync/components/wizard/sync-wizard-client.component.html b/frontend/src/app/applications/sync/components/wizard/sync-wizard-client.component.html
index e5567022..f73df8d0 100644
--- a/frontend/src/app/applications/sync/components/wizard/sync-wizard-client.component.html
+++ b/frontend/src/app/applications/sync/components/wizard/sync-wizard-client.component.html
@@ -9,7 +9,7 @@
<div class="d-flex flex-column h-100">
@if (syncService.wizard.localPath) {
<div class="d-flex flex-column my-auto">
- <fa-icon (click)="onReset()" [icon]="icons.faTimesCircle" size="2x" class="position-absolute align-self-center cursor-pointer" style="margin-left: 85px"></fa-icon>
+ <svg (click)="onReset()" [lucideIcon]="icons.LucideCircleX" class="position-absolute align-self-center cursor-pointer sync-wizard-reset-icon" style="margin-left: 85px"></svg>
<img [src]="syncService.wizard.localPath.mimeUrl" alt="" class="align-self-center mb-2" height="96">
<div class="align-self-center mt-2 fs-md word-break-all fw-500">{{ syncService.wizard.localPath.path }}</div>
@if (infoMsg) {
@@ -30,15 +30,15 @@
<div class="d-flex flex-column mt-4">
<div class="d-flex align-items-start">
<button (click)="onCancel()" class="btn btn-secondary me-auto" type="button" l10nTranslate>
- <fa-icon [icon]="icons.faTimesCircle"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCircleX"></svg>
Cancel
</button>
<button (click)="onSelect()" class="btn btn-default" type="button" l10nTranslate>
- <fa-icon [icon]="icons.faDownload"></fa-icon>
+ <svg [lucideIcon]="icons.LucideHardDriveDownload"></svg>
Select a folder
</button>
<button (click)="onNext()" [disabled]="!pathIsValid" class="btn btn-default ms-auto" type="button" l10nTranslate>
- <fa-icon [icon]="icons.faArrowCircleRight"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCircleArrowRight"></svg>
Next
</button>
</div>
diff --git a/frontend/src/app/applications/sync/components/wizard/sync-wizard-client.component.ts b/frontend/src/app/applications/sync/components/wizard/sync-wizard-client.component.ts
index 7fa390cb..74c581b2 100644
--- a/frontend/src/app/applications/sync/components/wizard/sync-wizard-client.component.ts
+++ b/frontend/src/app/applications/sync/components/wizard/sync-wizard-client.component.ts
@@ -1,7 +1,6 @@
import { Component, inject, Renderer2 } from '@angular/core'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faArrowCircleRight, faDownload, faTimesCircle } from '@fortawesome/free-solid-svg-icons'
+import { LucideCircleArrowRight, LucideCircleX, LucideDynamicIcon, LucideHardDriveDownload } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { ELECTRON_DIALOG } from '../../../../electron/constants/dialogs'
import { LayoutService } from '../../../../layout/layout.service'
@@ -14,14 +13,14 @@ import { SYNC_ICON, SYNC_PATH, SYNC_TITLE } from '../../sync.constants'
@Component({
selector: 'app-sync-wizard-client',
- imports: [FaIconComponent, L10nTranslateDirective],
+ imports: [LucideDynamicIcon, L10nTranslateDirective],
templateUrl: 'sync-wizard-client.component.html'
})
export class SyncWizardClientComponent {
public pathIsValid = false
public infoMsg: string = null
protected readonly syncService = inject(SyncService)
- protected readonly icons = { faTimesCircle, faArrowCircleRight, faDownload }
+ protected readonly icons = { LucideCircleX, LucideCircleArrowRight, LucideHardDriveDownload }
private readonly router = inject(Router)
private readonly renderer = inject(Renderer2)
private readonly store = inject(StoreService)
diff --git a/frontend/src/app/applications/sync/components/wizard/sync-wizard-server.component.html b/frontend/src/app/applications/sync/components/wizard/sync-wizard-server.component.html
index 190f0177..7f581451 100644
--- a/frontend/src/app/applications/sync/components/wizard/sync-wizard-server.component.html
+++ b/frontend/src/app/applications/sync/components/wizard/sync-wizard-server.component.html
@@ -3,7 +3,9 @@
<div class="d-flex align-items-center justify-content-center fs-md" style="min-height: 40px">
@if (selectedPath) {
@if (selectedPath.icon) {
- <fa-icon [icon]="selectedPath.icon" class="circle-{{selectedPath.iconClass}}-icon" style="width: 32px; height: 32px; font-size: var(--font-size-md)"></fa-icon>
+ <span class="circle-{{selectedPath.iconClass}}-icon fs-md">
+ <svg [lucideIcon]="selectedPath.icon"></svg>
+ </span>
} @else {
<img [src]="selectedPath.mimeUrl" alt="" height="30">
}
@@ -17,7 +19,7 @@
[disabled]="!currentPath"
class="btn btn-default"
type="button">
- <fa-icon [icon]="icons.faArrowCircleLeft"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCircleArrowLeft"></svg>
</button>
<div class="text-warning mx-auto fs-sm">
@if (infoMsg) {
@@ -31,7 +33,7 @@
[disabled]="!newDirectoryName"
class="btn btn-default input-group-text"
type="button">
- <fa-icon [icon]="icons.faFolderPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucideFolderPlus"></svg>
</button>
<input (keyup.enter)="addDirectory()"
[(ngModel)]="newDirectoryName"
@@ -63,7 +65,9 @@
<td>
<div class="d-flex align-items-center">
@if (p.icon) {
- <fa-icon [icon]="p.icon" class="circle-{{p.iconClass}}-icon" style="width: 32px; height: 32px; font-size: var(--font-size-md)"></fa-icon>
+ <span class="circle-{{p.iconClass}}-icon fs-md">
+ <svg [lucideIcon]="p.icon"></svg>
+ </span>
} @else {
<img [src]="p.mimeUrl" alt="" height="30">
}
@@ -79,11 +83,11 @@
<div class="mt-auto">
<div class="d-flex align-items-start">
<button (click)="onPrevious()" class="btn btn-default me-auto" type="button" l10nTranslate>
- <fa-icon [icon]="icons.faArrowCircleLeft"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCircleArrowLeft"></svg>
Previous
</button>
<button (click)="onNext()" [disabled]="!selectedPath" class="btn btn-default ms-auto" type="button" l10nTranslate>
- <fa-icon [icon]="icons.faArrowCircleRight"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCircleArrowRight"></svg>
Next
</button>
</div>
diff --git a/frontend/src/app/applications/sync/components/wizard/sync-wizard-server.component.ts b/frontend/src/app/applications/sync/components/wizard/sync-wizard-server.component.ts
index 9d522522..d0f47173 100644
--- a/frontend/src/app/applications/sync/components/wizard/sync-wizard-server.component.ts
+++ b/frontend/src/app/applications/sync/components/wizard/sync-wizard-server.component.ts
@@ -2,8 +2,7 @@ import { HttpErrorResponse } from '@angular/common/http'
import { Component, inject, signal, ViewChild, WritableSignal } from '@angular/core'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faArrowCircleLeft, faArrowCircleRight, faFolderPlus } from '@fortawesome/free-solid-svg-icons'
+import { LucideCircleArrowLeft, LucideCircleArrowRight, LucideDynamicIcon, LucideFolderPlus } from '@lucide/angular'
import { FileTree } from '@sync-in-server/backend/src/applications/files/interfaces/file-tree.interface'
import { USER_PERMISSION } from '@sync-in-server/backend/src/applications/users/constants/user'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -20,13 +19,13 @@ import { isSynchronizable } from '../../sync.utils'
@Component({
selector: 'app-sync-wizard-server',
- imports: [FaIconComponent, L10nTranslateDirective, AutoResizeDirective, FormsModule, L10nTranslatePipe, ReactiveFormsModule],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, AutoResizeDirective, FormsModule, L10nTranslatePipe, ReactiveFormsModule],
templateUrl: 'sync-wizard-server.component.html'
})
export class SyncWizardServerComponent {
locale = inject<L10nLocale>(L10N_LOCALE)
@ViewChild(AutoResizeDirective, { static: true }) autoResize: AutoResizeDirective
- protected readonly icons = { faArrowCircleLeft, faArrowCircleRight, faFolderPlus }
+ protected readonly icons = { LucideCircleArrowLeft, LucideCircleArrowRight, LucideFolderPlus }
protected infoMsg: string = null
protected newDirectoryName: string
protected selectedPath: SyncWizardPath
diff --git a/frontend/src/app/applications/sync/components/wizard/sync-wizard-settings.component.html b/frontend/src/app/applications/sync/components/wizard/sync-wizard-settings.component.html
index 19186df6..24eace7e 100644
--- a/frontend/src/app/applications/sync/components/wizard/sync-wizard-settings.component.html
+++ b/frontend/src/app/applications/sync/components/wizard/sync-wizard-settings.component.html
@@ -2,7 +2,7 @@
<div class="wizard-settings-cards mb-3">
<div class="card dialog-tab-card wizard-settings-card">
<div class="card-header wizard-settings-card-header">
- <fa-icon [icon]="icons.CLIENT"></fa-icon>
+ <svg [lucideIcon]="icons.CLIENT"></svg>
<span l10nTranslate>Client</span>
</div>
<div class="card-body wizard-settings-card-body">
@@ -20,15 +20,16 @@
</div>
<div class="card dialog-tab-card wizard-settings-card">
<div class="card-header wizard-settings-card-header">
- <fa-icon [icon]="icons.SERVER"></fa-icon>
+ <svg [lucideIcon]="icons.SERVER"></svg>
<span l10nTranslate>Server</span>
</div>
<div class="card-body wizard-settings-card-body">
<div class="wizard-settings-card-main cursor-pointer" placement="right" [tooltip]="translatedRemotePath">
<div class="wizard-settings-card-icon">
@if (syncService.wizard.remotePath.icon) {
- <fa-icon [icon]="syncService.wizard.remotePath.icon"
- class="circle-{{syncService.wizard.remotePath.iconClass}}-icon wizard-settings-card-remote-icon"></fa-icon>
+ <span class="circle-{{syncService.wizard.remotePath.iconClass}}-icon wizard-settings-card-remote-icon">
+ <svg [lucideIcon]="syncService.wizard.remotePath.icon"></svg>
+ </span>
} @else {
<img [src]="syncService.wizard.remotePath.mimeUrl" alt="">
}
@@ -86,11 +87,11 @@
<div class="mt-auto">
<div class="d-flex align-items-start">
<button (click)="onPrevious()" class="btn btn-default me-auto" translate type="button">
- <fa-icon [icon]="icons.faArrowCircleLeft"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCircleArrowLeft"></svg>
Previous
</button>
<button (click)="onSubmit()" [disabled]="!syncPath.settings.name" class="btn btn-default ms-auto" translate type="button">
- <fa-icon [icon]="icons.faCheckCircle"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCircleCheck"></svg>
Done
</button>
</div>
diff --git a/frontend/src/app/applications/sync/components/wizard/sync-wizard-settings.component.scss b/frontend/src/app/applications/sync/components/wizard/sync-wizard-settings.component.scss
index c3117d00..80b5c69f 100644
--- a/frontend/src/app/applications/sync/components/wizard/sync-wizard-settings.component.scss
+++ b/frontend/src/app/applications/sync/components/wizard/sync-wizard-settings.component.scss
@@ -24,8 +24,8 @@
border-bottom: 0.5px solid darkgray;
background-color: transparent !important;
- fa-icon {
- width: 1.05rem;
+ .lucide {
+ font-size: 1.05rem;
text-align: center;
}
}
diff --git a/frontend/src/app/applications/sync/components/wizard/sync-wizard-settings.component.ts b/frontend/src/app/applications/sync/components/wizard/sync-wizard-settings.component.ts
index 120ed6d5..1332a083 100644
--- a/frontend/src/app/applications/sync/components/wizard/sync-wizard-settings.component.ts
+++ b/frontend/src/app/applications/sync/components/wizard/sync-wizard-settings.component.ts
@@ -1,7 +1,6 @@
import { Component, inject } from '@angular/core'
import { Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faArrowCircleLeft, faCheckCircle } from '@fortawesome/free-solid-svg-icons'
+import { LucideCircleArrowLeft, LucideCircleCheck, LucideDynamicIcon } from '@lucide/angular'
import { SYNC_PATH_CONFLICT_MODE, SYNC_PATH_MODE } from '@sync-in-server/backend/src/applications/sync/constants/sync'
import { L10nTranslateDirective } from 'angular-l10n'
import { TooltipDirective } from 'ngx-bootstrap/tooltip'
@@ -14,7 +13,7 @@ import { SyncPathDirectionIconComponent } from '../utils/sync-path-direction-ico
@Component({
selector: 'app-sync-wizard-settings',
- imports: [L10nTranslateDirective, FaIconComponent, TooltipDirective, SyncPathDirectionIconComponent, SyncPathSettingsComponent],
+ imports: [L10nTranslateDirective, LucideDynamicIcon, TooltipDirective, SyncPathDirectionIconComponent, SyncPathSettingsComponent],
templateUrl: './sync-wizard-settings.component.html',
styleUrl: './sync-wizard-settings.component.scss'
})
@@ -22,7 +21,7 @@ export class SyncWizardSettingsComponent {
protected readonly syncService = inject(SyncService)
protected readonly SYNC_PATH_CONFLICT_MODE = SYNC_PATH_CONFLICT_MODE
protected readonly SYNC_PATH_MODE = SYNC_PATH_MODE
- protected readonly icons = { CLIENT: SYNC_ICON.CLIENT, SERVER: SYNC_ICON.SERVER, faArrowCircleLeft, faCheckCircle }
+ protected readonly icons = { CLIENT: SYNC_ICON.CLIENT, SERVER: SYNC_ICON.SERVER, LucideCircleArrowLeft, LucideCircleCheck }
protected readonly translatedRemotePath = this.syncService.translateServerPath(this.syncService.wizard.remotePath.serverPath)
protected syncPath: SyncPathModel
protected error: string = null
diff --git a/frontend/src/app/applications/sync/constants/transfer.ts b/frontend/src/app/applications/sync/constants/transfer.ts
index 46aeb4e0..b8dc1e8e 100644
--- a/frontend/src/app/applications/sync/constants/transfer.ts
+++ b/frontend/src/app/applications/sync/constants/transfer.ts
@@ -1,14 +1,14 @@
import {
- faArrowDown,
- faArrowUp,
- faCircleExclamation,
- faCopy,
- faFilter,
- faPencil,
- faPlus,
- faUpDownLeftRight,
- faXmark
-} from '@fortawesome/free-solid-svg-icons'
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideCircleAlert,
+ LucideCopy,
+ LucideFunnel,
+ LucideMove,
+ LucidePencil,
+ LucidePlus,
+ LucideX
+} from '@lucide/angular'
export enum SYNC_TRANSFER_SIDE {
LOCAL = 'local',
@@ -21,8 +21,8 @@ export const SYNC_TRANSFER_SIDE_CLASS = {
}
export const SYNC_TRANSFER_SIDE_ICON = {
- [SYNC_TRANSFER_SIDE.LOCAL]: faArrowDown,
- [SYNC_TRANSFER_SIDE.REMOTE]: faArrowUp
+ [SYNC_TRANSFER_SIDE.LOCAL]: LucideArrowDown,
+ [SYNC_TRANSFER_SIDE.REMOTE]: LucideArrowUp
}
export const SYNC_TRANSFER_ACTION = {
@@ -39,11 +39,11 @@ export const SYNC_TRANSFER_ACTION = {
}
export const SYNC_TRANSFER_ACTION_ICON = {
- Added: faPlus,
- Modified: faPencil,
- Removed: faXmark,
- Moved: faUpDownLeftRight,
- Copied: faCopy,
- Filtered: faFilter,
- Error: faCircleExclamation
+ Added: LucidePlus,
+ Modified: LucidePencil,
+ Removed: LucideX,
+ Moved: LucideMove,
+ Copied: LucideCopy,
+ Filtered: LucideFunnel,
+ Error: LucideCircleAlert
}
diff --git a/frontend/src/app/applications/sync/models/sync-client.model.ts b/frontend/src/app/applications/sync/models/sync-client.model.ts
index 16a60dd2..48c1c1d4 100644
--- a/frontend/src/app/applications/sync/models/sync-client.model.ts
+++ b/frontend/src/app/applications/sync/models/sync-client.model.ts
@@ -1,5 +1,3 @@
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
-import { faApple, faLinux, faWindows } from '@fortawesome/free-brands-svg-icons'
import type { SyncClientPaths } from '@sync-in-server/backend/src/applications/sync/interfaces/sync-client-paths.interface'
import type { SyncPath } from '@sync-in-server/backend/src/applications/sync/schemas/sync-path.interface'
import { currentTimeStamp, popFromObject } from '@sync-in-server/backend/src/common/shared'
@@ -19,7 +17,6 @@ export class SyncClientModel implements Omit<SyncClientPaths, 'paths'> {
// extra properties
paths: SyncPathModel[]
- icon: IconDefinition
osName: string
expiration: { value: number; reached: boolean; approaching: boolean }
@@ -27,7 +24,7 @@ export class SyncClientModel implements Omit<SyncClientPaths, 'paths'> {
this.paths = (popFromObject('paths', client) || []).map((path: SyncPath) => new SyncPathModel(path))
Object.assign(this, client)
this.setExpiration()
- this.setIcon()
+ this.setOsName()
}
setExpiration() {
@@ -39,15 +36,12 @@ export class SyncClientModel implements Omit<SyncClientPaths, 'paths'> {
}
}
- private setIcon() {
+ private setOsName() {
if (this.info.os === 'darwin') {
- this.icon = faApple
this.osName = 'macOS'
} else if (this.info.os.startsWith('win')) {
- this.icon = faWindows
this.osName = 'Windows'
} else if (this.info.os.startsWith('linux')) {
- this.icon = faLinux
this.osName = 'Linux'
}
}
diff --git a/frontend/src/app/applications/sync/models/sync-path.model.ts b/frontend/src/app/applications/sync/models/sync-path.model.ts
index 0dc13d8b..e08c8974 100644
--- a/frontend/src/app/applications/sync/models/sync-path.model.ts
+++ b/frontend/src/app/applications/sync/models/sync-path.model.ts
@@ -1,4 +1,4 @@
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
+import type { LucideIcon } from '@lucide/angular'
import { FILE_REPOSITORY } from '@sync-in-server/backend/src/applications/files/constants/operations'
import { SyncPathFromClient, SyncPathSettings } from '@sync-in-server/backend/src/applications/sync/interfaces/sync-path.interface'
import type { SyncPath } from '@sync-in-server/backend/src/applications/sync/schemas/sync-path.interface'
@@ -29,7 +29,7 @@ export class SyncPathModel implements Partial<SyncPath> {
newly = 0
mimeUrl: string
mime: string
- icon: IconDefinition
+ icon: LucideIcon
iconClass: 'primary' | 'purple'
showedPath: string
isWriteable: boolean
diff --git a/frontend/src/app/applications/sync/models/sync-transfer.model.ts b/frontend/src/app/applications/sync/models/sync-transfer.model.ts
index 91052ca5..bb612ff7 100644
--- a/frontend/src/app/applications/sync/models/sync-transfer.model.ts
+++ b/frontend/src/app/applications/sync/models/sync-transfer.model.ts
@@ -1,4 +1,4 @@
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
+import type { LucideIcon } from '@lucide/angular'
import { getNewly } from '../../../common/utils/functions'
import { dJs } from '../../../common/utils/time'
import { defaultMimeUrl, getAssetsMimeUrl } from '../../files/files.constants'
@@ -33,8 +33,8 @@ export class SyncTransferModel implements SyncTransfer {
hovered = false // really used in templates
isFiltered = false
sideIconClass: string
- sideIcon: IconDefinition
- actionIcon: IconDefinition
+ sideIcon: LucideIcon
+ actionIcon: LucideIcon
actionText: string
mimeUrl: string
newly = 0
diff --git a/frontend/src/app/applications/sync/models/sync-wizard-path.model.ts b/frontend/src/app/applications/sync/models/sync-wizard-path.model.ts
index 48fee7da..6fd0c795 100644
--- a/frontend/src/app/applications/sync/models/sync-wizard-path.model.ts
+++ b/frontend/src/app/applications/sync/models/sync-wizard-path.model.ts
@@ -1,4 +1,4 @@
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
+import type { LucideIcon } from '@lucide/angular'
import { FileTree } from '@sync-in-server/backend/src/applications/files/interfaces/file-tree.interface'
import { getAssetsMimeUrl, mimeDirectory, mimeDirectoryDisabled, mimeDirectoryShare, mimeDirectorySync } from '../../files/files.constants'
import { getServerPath, hasWritePermission, isSynchronizable } from '../sync.utils'
@@ -21,7 +21,7 @@ export class SyncWizardPath implements FileTree {
isAlreadySynced = false
serverPath: string
selected?: boolean
- icon?: IconDefinition
+ icon?: LucideIcon
iconClass: 'primary' | 'purple'
mimeUrl?: string
diff --git a/frontend/src/app/applications/sync/sync.constants.ts b/frontend/src/app/applications/sync/sync.constants.ts
index 2eda5234..ce09dee3 100644
--- a/frontend/src/app/applications/sync/sync.constants.ts
+++ b/frontend/src/app/applications/sync/sync.constants.ts
@@ -1,4 +1,4 @@
-import { faDesktop, faRightLeft, faRotate, faServer, faWandMagicSparkles } from '@fortawesome/free-solid-svg-icons'
+import { LucideArrowRightLeft, LucideMonitor, LucideRefreshCw, LucideServer, LucideWandSparkles } from '@lucide/angular'
import { SYNC_BASE_ROUTE, SYNC_ROUTE } from '@sync-in-server/backend/src/applications/sync/constants/routes'
import { USER_PERMISSION } from '@sync-in-server/backend/src/applications/users/constants/user'
import { BehaviorSubject } from 'rxjs'
@@ -15,11 +15,11 @@ export const SYNC_TITLE = {
} as const
export const SYNC_ICON = {
- SYNC: faRotate,
- TRANSFERS: faRightLeft,
- WIZARD: faWandMagicSparkles,
- SERVER: faServer,
- CLIENT: faDesktop
+ SYNC: LucideRefreshCw,
+ TRANSFERS: LucideArrowRightLeft,
+ WIZARD: LucideWandSparkles,
+ SERVER: LucideServer,
+ CLIENT: LucideMonitor
} as const
export const SYNC_PATH = {
diff --git a/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-enable-dialog.component.html b/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-enable-dialog.component.html
index 43c06950..fe6b1cae 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-enable-dialog.component.html
+++ b/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-enable-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header justify-content-center">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faLock"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLock"></svg>
<span l10nTranslate>Two-Factor Authentication</span>
</h4>
</div>
@@ -41,7 +41,7 @@
<a class="link-primary text-decoration-none font-monospace fs-sm cursor-pointer"
role="button"
(click)="clipBoardSecret()">
- <fa-icon [icon]="icons.faCopy"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCopy"></svg>
{{ secret }}
</a>
</div>
diff --git a/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-enable-dialog.component.ts b/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-enable-dialog.component.ts
index 392ac0df..c793c29c 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-enable-dialog.component.ts
+++ b/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-enable-dialog.component.ts
@@ -1,7 +1,6 @@
import { Component, EventEmitter, inject, Input, Output } from '@angular/core'
import { FormGroup, ReactiveFormsModule, UntypedFormBuilder, Validators } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faCopy, faKey, faLock } from '@fortawesome/free-solid-svg-icons'
+import { LucideCopy, LucideDynamicIcon, LucideKeyRound, LucideLock } from '@lucide/angular'
import { TWO_FA_CODE_LENGTH } from '@sync-in-server/backend/src/authentication/constants/auth'
import type { TwoFaEnableResult } from '@sync-in-server/backend/src/authentication/providers/two-fa/auth-two-fa.interfaces'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective } from 'angular-l10n'
@@ -13,7 +12,7 @@ import { UserService } from '../../user.service'
@Component({
selector: 'app-user-auth-2fa-enable-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, ReactiveFormsModule, InputPasswordComponent],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, ReactiveFormsModule, InputPasswordComponent],
templateUrl: 'user-auth-2fa-enable-dialog.component.html'
})
export class UserAuth2faEnableDialogComponent {
@@ -24,7 +23,7 @@ export class UserAuth2faEnableDialogComponent {
protected submitted = false
protected hasError: any = null
protected recoveryCodes: string[]
- protected readonly icons = { faKey, faLock, faCopy }
+ protected readonly icons = { LucideKeyRound, LucideLock, LucideCopy }
protected readonly twoFaCodelength = TWO_FA_CODE_LENGTH
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
private readonly layout = inject(LayoutService)
diff --git a/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-verify-dialog.component.html b/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-verify-dialog.component.html
index fe41d47e..dd9b5d71 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-verify-dialog.component.html
+++ b/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-verify-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header justify-content-center">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faLock"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLock"></svg>
@if (withTwoFaEnabled) {
<span l10nTranslate>Two-Factor Authentication</span>
} @else {
diff --git a/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-verify-dialog.component.ts b/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-verify-dialog.component.ts
index 874c1fab..66231cb4 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-verify-dialog.component.ts
+++ b/frontend/src/app/applications/users/components/dialogs/user-auth-2fa-verify-dialog.component.ts
@@ -1,8 +1,7 @@
import { HttpHeaders } from '@angular/common/http'
import { Component, inject, Input, OnInit } from '@angular/core'
import { FormGroup, ReactiveFormsModule, UntypedFormBuilder, Validators } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faKey, faLock } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideKeyRound, LucideLock } from '@lucide/angular'
import { USER_PASSWORD_MIN_LENGTH } from '@sync-in-server/backend/src/applications/users/constants/user'
import { TWO_FA_CODE_LENGTH, TWO_FA_HEADER_CODE, TWO_FA_HEADER_PASSWORD } from '@sync-in-server/backend/src/authentication/constants/auth'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective } from 'angular-l10n'
@@ -12,7 +11,7 @@ import { LayoutService } from '../../../../layout/layout.service'
@Component({
selector: 'app-user-auth-2fa-verify-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, AutofocusDirective, ReactiveFormsModule, InputPasswordComponent],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, AutofocusDirective, ReactiveFormsModule, InputPasswordComponent],
templateUrl: 'user-auth-2fa-verify-dialog.component.html'
})
export class UserAuth2FaVerifyDialogComponent implements OnInit {
@@ -21,7 +20,7 @@ export class UserAuth2FaVerifyDialogComponent implements OnInit {
isValid!: (result: false | HttpHeaders) => void // injected callback
protected submitted = false
protected hasError: any = null
- protected readonly icons = { faKey, faLock }
+ protected readonly icons = { LucideKeyRound, LucideLock }
protected readonly twoFaCodelength = TWO_FA_CODE_LENGTH
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected twoFaForm: FormGroup
diff --git a/frontend/src/app/applications/users/components/dialogs/user-auth-manage-app-passwords-dialog.component.html b/frontend/src/app/applications/users/components/dialogs/user-auth-manage-app-passwords-dialog.component.html
index 154c8a54..d71a59f8 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-auth-manage-app-passwords-dialog.component.html
+++ b/frontend/src/app/applications/users/components/dialogs/user-auth-manage-app-passwords-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faKey"></fa-icon>
+ <svg [lucideIcon]="icons.LucideKeyRound"></svg>
<span l10nTranslate>Manage app passwords</span>
</h4>
<button (click)="onClose()" aria-label="Close" class="btn-close btn-close-white ms-auto" type="button"></button>
@@ -82,7 +82,7 @@
<div class="card dialog-check-card border-success-subtle bg-success-subtle">
<div class="card-body p-3">
<div class="d-flex align-items-center text-success-emphasis text-uppercase fs-sm text-bold mb-2">
- <fa-icon [icon]="icons.faKey" class="me-2"></fa-icon>
+ <svg [lucideIcon]="icons.LucideKeyRound" class="me-2"></svg>
<span l10nTranslate>Password generated</span>
</div>
<div class="row g-2 mb-2">
@@ -125,7 +125,7 @@
<button class="btn btn-outline-success flex-shrink-0"
(click)="clipBoardPassword()"
type="button">
- <fa-icon [icon]="icons.faCopy" class="me-1"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCopy"></svg>
<span l10nTranslate>Copy</span>
</button>
</div>
diff --git a/frontend/src/app/applications/users/components/dialogs/user-auth-manage-app-passwords-dialog.component.ts b/frontend/src/app/applications/users/components/dialogs/user-auth-manage-app-passwords-dialog.component.ts
index 2bd4d5c8..14ca853a 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-auth-manage-app-passwords-dialog.component.ts
+++ b/frontend/src/app/applications/users/components/dialogs/user-auth-manage-app-passwords-dialog.component.ts
@@ -1,8 +1,7 @@
import { HttpErrorResponse, HttpHeaders } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, Output } from '@angular/core'
import { FormGroup, ReactiveFormsModule, UntypedFormBuilder, Validators } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faCopy, faKey } from '@fortawesome/free-solid-svg-icons'
+import { LucideCopy, LucideDynamicIcon, LucideKeyRound } from '@lucide/angular'
import { UserAppPassword } from '@sync-in-server/backend/src/applications/users/interfaces/user-secrets.interface'
import { AUTH_SCOPE } from '@sync-in-server/backend/src/authentication/constants/scope'
import { createLightSlug, currentDate } from '@sync-in-server/backend/src/common/shared'
@@ -19,7 +18,7 @@ import { UserService } from '../../user.service'
@Component({
selector: 'app-user-auth-manage-app-passwords',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslateDirective,
TimeDateFormatPipe,
AutofocusDirective,
@@ -40,7 +39,7 @@ export class UserAuthManageAppPasswordsDialogComponent {
protected readonly minDate: Date = currentDate()
protected hasError: string
protected submitted = false
- protected readonly icons = { faKey, faCopy }
+ protected readonly icons = { LucideKeyRound, LucideCopy }
private readonly fb = inject(UntypedFormBuilder)
protected appPasswordForm: FormGroup = this.fb.group({
name: this.fb.control('', [Validators.required]),
diff --git a/frontend/src/app/applications/users/components/dialogs/user-group-add-users-dialog.component.html b/frontend/src/app/applications/users/components/dialogs/user-group-add-users-dialog.component.html
index 697a5561..05d09342 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-group-add-users-dialog.component.html
+++ b/frontend/src/app/applications/users/components/dialogs/user-group-add-users-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faUserPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRoundPlus"></svg>
<span>{{ parentGroup.name }}</span>
</h4>
<h4 class="modal-title ms-auto">
diff --git a/frontend/src/app/applications/users/components/dialogs/user-group-add-users-dialog.component.ts b/frontend/src/app/applications/users/components/dialogs/user-group-add-users-dialog.component.ts
index 9aaa1382..136aefcd 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-group-add-users-dialog.component.ts
+++ b/frontend/src/app/applications/users/components/dialogs/user-group-add-users-dialog.component.ts
@@ -1,7 +1,6 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, Output } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faUserPlus } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideUserRoundPlus } from '@lucide/angular'
import { GROUP_TYPE } from '@sync-in-server/backend/src/applications/users/constants/group'
import { USER_ROLE } from '@sync-in-server/backend/src/applications/users/constants/user'
import type { SearchMembersDto } from '@sync-in-server/backend/src/applications/users/dto/search-members.dto'
@@ -15,7 +14,7 @@ import { UserSearchComponent } from '../utils/user-search.component'
@Component({
selector: 'app-user-group-add-users-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, UserSearchComponent],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, UserSearchComponent],
templateUrl: 'user-group-add-users-dialog.component.html'
})
export class UserGroupAddUsersDialogComponent {
@@ -25,7 +24,7 @@ export class UserGroupAddUsersDialogComponent {
protected readonly layout = inject(LayoutService)
protected newMembers: MemberModel[] = []
protected submitted = false
- protected readonly icons = { faUserPlus }
+ protected readonly icons = { LucideUserRoundPlus }
private readonly userService = inject(UserService)
searchMembers(query: string): Observable<MemberModel[]> {
diff --git a/frontend/src/app/applications/users/components/dialogs/user-group-delete-dialog.component.html b/frontend/src/app/applications/users/components/dialogs/user-group-delete-dialog.component.html
index 8583d9e5..c156e27c 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-group-delete-dialog.component.html
+++ b/frontend/src/app/applications/users/components/dialogs/user-group-delete-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="member.isUser ? icons.faUserMinus : icons.faMinus"></fa-icon>
+ <svg [lucideIcon]="member.isUser ? icons.LucideUserMinus : icons.LucideMinus"></svg>
<span>{{ member.name }}</span>
</h4>
<h4 class="modal-title ms-auto">
@@ -14,7 +14,9 @@
@if (member.isUser) {
<img class="avatar-img" [src]="member.avatarUrl" alt="">
} @else {
- <fa-icon [icon]="icons.GROUPS" class="{{member.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}"></fa-icon>
+ <span class="{{member.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}">
+ <svg [lucideIcon]="icons.GROUPS"></svg>
+ </span>
}
</div>
<span class="text-bold me-1">{{ member.name | capitalize }}</span>
@@ -40,4 +42,3 @@
</button>
</div>
-
diff --git a/frontend/src/app/applications/users/components/dialogs/user-group-delete-dialog.component.ts b/frontend/src/app/applications/users/components/dialogs/user-group-delete-dialog.component.ts
index 4632df0b..ef9f9a18 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-group-delete-dialog.component.ts
+++ b/frontend/src/app/applications/users/components/dialogs/user-group-delete-dialog.component.ts
@@ -1,7 +1,6 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, Output } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faMinus, faUserMinus } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideMinus, LucideUserMinus } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { CapitalizePipe } from '../../../../common/pipes/capitalize.pipe'
import { LayoutService } from '../../../../layout/layout.service'
@@ -12,7 +11,7 @@ import { UserService } from '../../user.service'
@Component({
selector: 'app-user-group-delete-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, CapitalizePipe],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, CapitalizePipe],
templateUrl: 'user-group-delete-dialog.component.html'
})
export class UserGroupDeleteDialogComponent {
@@ -20,7 +19,7 @@ export class UserGroupDeleteDialogComponent {
@Input({ required: true }) member: MemberModel
@Output() wasDeleted = new EventEmitter<boolean>()
protected submitted = false
- protected readonly icons = { GROUPS: USER_ICON.GROUPS, faMinus, faUserMinus }
+ protected readonly icons = { GROUPS: USER_ICON.GROUPS, LucideMinus, LucideUserMinus }
private readonly layout = inject(LayoutService)
private readonly userService = inject(UserService)
diff --git a/frontend/src/app/applications/users/components/dialogs/user-group-dialog.component.html b/frontend/src/app/applications/users/components/dialogs/user-group-dialog.component.html
index 35c645a3..ce78e6f7 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-group-dialog.component.html
+++ b/frontend/src/app/applications/users/components/dialogs/user-group-dialog.component.html
@@ -1,13 +1,13 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.GROUPS"></fa-icon>
+ <svg [lucideIcon]="icons.GROUPS"></svg>
@if (group.id) {
<span>{{ group.name }}</span>
} @else {
<span l10nTranslate>New personal group</span>
}
@if (loading) {
- <fa-icon [icon]="icons.faSpinner" animation="spin" class="ms-2" size="sm"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true" class="ms-2"></svg>
}
</h4>
@if (group.id) {
diff --git a/frontend/src/app/applications/users/components/dialogs/user-group-dialog.component.ts b/frontend/src/app/applications/users/components/dialogs/user-group-dialog.component.ts
index 45b1e2fd..8ed5bff7 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-group-dialog.component.ts
+++ b/frontend/src/app/applications/users/components/dialogs/user-group-dialog.component.ts
@@ -1,8 +1,7 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, OnInit, Output } from '@angular/core'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faCog, faPen, faSpinner, faUsers } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideLoader, LucidePencil, LucideSettings } from '@lucide/angular'
import { MEMBER_TYPE } from '@sync-in-server/backend/src/applications/users/constants/member'
import type { UserCreateOrUpdateGroupDto } from '@sync-in-server/backend/src/applications/users/dto/create-or-update-group.dto'
import { L10nTranslateDirective } from 'angular-l10n'
@@ -16,7 +15,7 @@ import { UserService } from '../../user.service'
@Component({
selector: 'app-user-group-dialog',
- imports: [ReactiveFormsModule, FormsModule, FaIconComponent, L10nTranslateDirective, AutofocusDirective, TimeDateFormatPipe],
+ imports: [ReactiveFormsModule, FormsModule, LucideDynamicIcon, L10nTranslateDirective, AutofocusDirective, TimeDateFormatPipe],
templateUrl: 'user-group-dialog.component.html'
})
export class UserGroupDialogComponent implements OnInit {
@@ -24,7 +23,7 @@ export class UserGroupDialogComponent implements OnInit {
@Output() groupChange = new EventEmitter<['add' | 'update', MemberModel]>()
protected readonly layout = inject(LayoutService)
protected group: MemberModel
- protected readonly icons = { GROUPS: USER_ICON.GROUPS, faSpinner, faCog, faUsers, faPen }
+ protected readonly icons = { GROUPS: USER_ICON.GROUPS, LucideLoader, LucideSettings, LucidePencil }
// states
protected isPersonalGroup = true
protected submitted = false
diff --git a/frontend/src/app/applications/users/components/dialogs/user-guest-dialog.component.html b/frontend/src/app/applications/users/components/dialogs/user-guest-dialog.component.html
index 41277da8..f365dca8 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-guest-dialog.component.html
+++ b/frontend/src/app/applications/users/components/dialogs/user-guest-dialog.component.html
@@ -1,14 +1,14 @@
<div class="modal-header">
<h4 class="modal-title">
@if (guest) {
- <fa-icon [icon]="icons.faPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencil"></svg>
<span>{{ guest.fullName }}</span>
} @else {
- <fa-icon [icon]="icons.faPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
<span l10nTranslate>New guest</span>
}
@if (loading) {
- <fa-icon [icon]="icons.faSpinner" animation="spin" class="ms-2" size="sm"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLoader" [class.icon-spin]="true" class="ms-2"></svg>
}
</h4>
@if (guest) {
@@ -24,7 +24,7 @@
<tab (selectTab)="tabView=null" customClass="tab-dialog form-validation">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faAddressCard"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRoundCog"></svg>
<span class="app-tab-label" l10nTranslate>Account</span>
</span>
</ng-template>
@@ -183,7 +183,7 @@
<tab (selectTab)="tabView='managers'" customClass="tab-dialog">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faUsersGear"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUsersRound"></svg>
<span class="app-tab-label" l10nTranslate>Managers</span>
<span class="app-tab-count">{{ guestForm.value.managers.length || 0 }}</span>
</span>
@@ -205,7 +205,7 @@
<tab (selectTab)="tabView='groups'" customClass="tab-dialog">
<ng-template tabHeading>
<span class="app-tab-heading">
- <fa-icon [icon]="icons.faUsers"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUsersRound"></svg>
<span class="app-tab-label" l10nTranslate>Groups</span>
<span class="app-tab-count">{{ guestForm.value.groups.length || 0 }}</span>
</span>
diff --git a/frontend/src/app/applications/users/components/dialogs/user-guest-dialog.component.ts b/frontend/src/app/applications/users/components/dialogs/user-guest-dialog.component.ts
index ff20afa2..b5a16d7b 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-guest-dialog.component.ts
+++ b/frontend/src/app/applications/users/components/dialogs/user-guest-dialog.component.ts
@@ -2,8 +2,7 @@ import { TitleCasePipe } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, OnInit, Output } from '@angular/core'
import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faAddressCard, faPen, faPlus, faShieldHalved, faSpinner, faUsers, faUsersGear } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideLoader, LucidePencil, LucidePlus, LucideShieldHalf, LucideUserRoundCog, LucideUsersRound } from '@lucide/angular'
import { USER_LOGIN_VALIDATION, USER_ROLE } from '@sync-in-server/backend/src/applications/users/constants/user'
import type { CreateUserDto, UpdateUserDto } from '@sync-in-server/backend/src/applications/users/dto/create-or-update-user.dto'
import type { SearchMembersDto } from '@sync-in-server/backend/src/applications/users/dto/search-members.dto'
@@ -26,7 +25,7 @@ import { UserSearchComponent } from '../utils/user-search.component'
@Component({
selector: 'app-user-guest-dialog',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslateDirective,
TimeDateFormatPipe,
ReactiveFormsModule,
@@ -53,7 +52,15 @@ export class UserGuestDialogComponent implements OnInit {
protected readonly layout = inject(LayoutService)
protected readonly userService = inject(UserService)
protected readonly user: UserType = this.userService.user
- protected readonly icons = { GROUPS: USER_ICON.GROUPS, faPlus, faPen, faUsersGear, faSpinner, faAddressCard, faUsers, faShieldHalved }
+ protected readonly icons = {
+ GROUPS: USER_ICON.GROUPS,
+ LucidePlus,
+ LucidePencil,
+ LucideUsersRound,
+ LucideLoader,
+ LucideUserRoundCog,
+ LucideShieldHalf
+ }
protected readonly allNotifications = Object.values(USER_NOTIFICATION_TEXT)
protected readonly defaultPassword: string = this.layout.translateString(USER_PASSWORD_CHANGE_TEXT)
protected readonly languages: string[] = this.layout.getLanguages(true)
diff --git a/frontend/src/app/applications/users/components/dialogs/user-personal-group-edit-user-dialog.component.html b/frontend/src/app/applications/users/components/dialogs/user-personal-group-edit-user-dialog.component.html
index 35ea09ba..b11b8c39 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-personal-group-edit-user-dialog.component.html
+++ b/frontend/src/app/applications/users/components/dialogs/user-personal-group-edit-user-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faUserPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRoundPen"></svg>
<span>{{ user.name }}</span>
</h4>
<h4 class="modal-title ms-auto">
@@ -19,7 +19,7 @@
type="checkbox"
/>
<span l10nTranslate>Set as group manager</span>
- <fa-icon class="ms-1" [icon]="icons.faKey"></fa-icon>
+ <svg class="ms-1" [lucideIcon]="icons.LucideKeyRound"></svg>
</label>
</div>
</div>
diff --git a/frontend/src/app/applications/users/components/dialogs/user-personal-group-edit-user-dialog.component.ts b/frontend/src/app/applications/users/components/dialogs/user-personal-group-edit-user-dialog.component.ts
index c09d9b9c..cad758e4 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-personal-group-edit-user-dialog.component.ts
+++ b/frontend/src/app/applications/users/components/dialogs/user-personal-group-edit-user-dialog.component.ts
@@ -1,8 +1,7 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, inject, Input, OnInit } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faKey, faUserPen } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideKeyRound, LucideUserRoundPen } from '@lucide/angular'
import { USER_GROUP_ROLE } from '@sync-in-server/backend/src/applications/users/constants/user'
import { L10nTranslateDirective } from 'angular-l10n'
import { LayoutService } from '../../../../layout/layout.service'
@@ -12,7 +11,7 @@ import { UserService } from '../../user.service'
@Component({
selector: 'app-user-personal-group-edit-user-dialog',
- imports: [FaIconComponent, L10nTranslateDirective, FormsModule],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, FormsModule],
templateUrl: 'user-personal-group-edit-user-dialog.component.html'
})
export class UserPersonalGroupEditUserDialogComponent implements OnInit {
@@ -22,7 +21,7 @@ export class UserPersonalGroupEditUserDialogComponent implements OnInit {
protected submitted = false
protected isManager = false
protected readonly USER_GROUP_ROLE = USER_GROUP_ROLE
- protected readonly icons = { faUserPen, faKey }
+ protected readonly icons = { LucideUserRoundPen, LucideKeyRound }
private readonly userService = inject(UserService)
ngOnInit() {
diff --git a/frontend/src/app/applications/users/components/dialogs/user-personal-group-leave-dialog.component.html b/frontend/src/app/applications/users/components/dialogs/user-personal-group-leave-dialog.component.html
index 7a9e2bd1..a4571c3b 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-personal-group-leave-dialog.component.html
+++ b/frontend/src/app/applications/users/components/dialogs/user-personal-group-leave-dialog.component.html
@@ -1,6 +1,6 @@
<div class="modal-header">
<h4 class="modal-title">
- <fa-icon [icon]="icons.faRightFromBracket"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLogOut"></svg>
<span l10nTranslate>Leave group</span>
</h4>
<button (click)="onClose()" aria-label="Close" class="btn-close btn-close-white ms-auto" type="button"></button>
@@ -8,7 +8,9 @@
<div class="modal-body">
<div class="d-flex align-items-center">
<div class="d-flex align-items-center avatar me-2">
- <fa-icon [icon]="icons.GROUPS" class="{{member.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}"></fa-icon>
+ <span class="{{member.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}">
+ <svg [lucideIcon]="icons.GROUPS"></svg>
+ </span>
</div>
<span class="text-bold me-1">{{ member.name }}</span>
<span l10nTranslate>will be left, you will no longer be a member of this group</span>
@@ -24,4 +26,3 @@
</button>
</div>
-
diff --git a/frontend/src/app/applications/users/components/dialogs/user-personal-group-leave-dialog.component.ts b/frontend/src/app/applications/users/components/dialogs/user-personal-group-leave-dialog.component.ts
index 72839b72..df66636c 100644
--- a/frontend/src/app/applications/users/components/dialogs/user-personal-group-leave-dialog.component.ts
+++ b/frontend/src/app/applications/users/components/dialogs/user-personal-group-leave-dialog.component.ts
@@ -1,7 +1,6 @@
import { HttpErrorResponse } from '@angular/common/http'
import { Component, EventEmitter, inject, Input, Output } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faRightFromBracket } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideLogOut } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { LayoutService } from '../../../../layout/layout.service'
import { MemberModel } from '../../models/member.model'
@@ -11,14 +10,14 @@ import { UserService } from '../../user.service'
@Component({
selector: 'app-user-personal-group-leave-dialog',
- imports: [FaIconComponent, L10nTranslateDirective],
+ imports: [LucideDynamicIcon, L10nTranslateDirective],
templateUrl: 'user-personal-group-leave-dialog.component.html'
})
export class UserPersonalGroupLeaveDialogComponent {
@Input({ required: true }) member: MemberModel
@Output() wasLeft = new EventEmitter<boolean>()
protected submitted = false
- protected readonly icons = { GROUPS: USER_ICON.GROUPS, faRightFromBracket }
+ protected readonly icons = { GROUPS: USER_ICON.GROUPS, LucideLogOut }
private readonly layout = inject(LayoutService)
private readonly userService = inject(UserService)
diff --git a/frontend/src/app/applications/users/components/sidebar/user-profile.component.html b/frontend/src/app/applications/users/components/sidebar/user-profile.component.html
index 844c4cb1..11689457 100755
--- a/frontend/src/app/applications/users/components/sidebar/user-profile.component.html
+++ b/frontend/src/app/applications/users/components/sidebar/user-profile.component.html
@@ -4,20 +4,20 @@
<div class="d-flex flex-fill justify-content-between">
@if (!user?.isLink) {
<button class="btn btn-default" (click)="collapseRSideBar()" type="button" [routerLink]=USER_PATH.BASE>
- <fa-icon [icon]="icons.faUserAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRound"></svg>
</button>
}
<button class="btn btn-default" (click)="toggleTheme()" type="button">
- <fa-icon [icon]="icons.faCircleHalfStroke"></fa-icon>
+ <svg [lucideIcon]="icons.LucideContrast"></svg>
</button>
@if (user?.isAdmin) {
<button class="btn btn-default" (click)="collapseRSideBar()" type="button" routerLink="/admin">
- <fa-icon [icon]="icons.faCog"></fa-icon>
+ <svg [lucideIcon]="icons.LucideSettings"></svg>
</button>
}
@if (!store.isElectronApp() || store.isElectronApp() && store.userImpersonate()) {
<button (click)="logOut()" class="btn btn-default" type="button">
- <fa-icon [icon]="store.userImpersonate() ? icons.faUserSecret : icons.faPowerOff"></fa-icon>
+ <svg [lucideIcon]="store.userImpersonate() ? icons.LucideVenetianMask : icons.LucidePower"></svg>
</button>
}
</div>
@@ -60,11 +60,11 @@
<a class="text-primary cursor-pointer" (click)="openLink('versions')" l10nTranslate>Versions</a>
<span>&nbsp;|&nbsp;</span>
<a class="cursor-pointer" (click)="openLink('support')"> 💛</a>
- <fa-icon class="ms-auto fs-xs cursor-pointer"
+ <svg class="ms-auto fs-xs cursor-pointer"
(click)="layout.setAutoCollapseRSideBarPreference(!layout.collapseRSideBarPreference())"
[title]="(layout.collapseRSideBarPreference() ? 'Sidebar auto-hide enabled' : 'Sidebar pinned') | translate:locale.language"
- [icon]="layout.collapseRSideBarPreference() ? icons.faThumbTackSlash : icons.faThumbTack">
- </fa-icon>
+ [lucideIcon]="layout.collapseRSideBarPreference() ? icons.LucidePinOff : icons.LucidePin">
+ </svg>
</div>
</div>
</div>
diff --git a/frontend/src/app/applications/users/components/sidebar/user-profile.component.ts b/frontend/src/app/applications/users/components/sidebar/user-profile.component.ts
index 46802a87..2813e75e 100644
--- a/frontend/src/app/applications/users/components/sidebar/user-profile.component.ts
+++ b/frontend/src/app/applications/users/components/sidebar/user-profile.component.ts
@@ -1,8 +1,16 @@
import { Component, inject, OnDestroy } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { RouterLink } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faCircleHalfStroke, faCog, faPowerOff, faThumbTack, faThumbTackSlash, faUserAlt, faUserSecret } from '@fortawesome/free-solid-svg-icons'
+import {
+ LucideContrast,
+ LucideDynamicIcon,
+ LucidePin,
+ LucidePinOff,
+ LucidePower,
+ LucideSettings,
+ LucideUserRound,
+ LucideVenetianMask
+} from '@lucide/angular'
import { APP_URL } from '@sync-in-server/backend/src/common/shared'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { Subscription } from 'rxjs'
@@ -21,7 +29,7 @@ import { UserService } from '../../user.service'
@Component({
selector: 'app-user-profile',
templateUrl: 'user-profile.component.html',
- imports: [FormsModule, RouterLink, CapitalizePipe, FaIconComponent, L10nTranslateDirective, L10nTranslatePipe, AutoResizeDirective]
+ imports: [FormsModule, RouterLink, CapitalizePipe, LucideDynamicIcon, L10nTranslateDirective, L10nTranslatePipe, AutoResizeDirective]
})
export class UserProfileComponent implements OnDestroy {
protected readonly logoDarkUrl = logoDarkUrl
@@ -32,7 +40,7 @@ export class UserProfileComponent implements OnDestroy {
protected readonly allOnlineStatus = USER_ONLINE_STATUS_LIST
protected readonly appVersion = APP_VERSION
protected appBaseUrl = `${APP_URL.WEBSITE}`
- protected readonly icons = { faUserAlt, faCircleHalfStroke, faCog, faPowerOff, faUserSecret, faThumbTack, faThumbTackSlash }
+ protected readonly icons = { LucideUserRound, LucideContrast, LucideSettings, LucidePower, LucideVenetianMask, LucidePin, LucidePinOff }
protected user: UserType
protected userAvatar: string = null
protected readonly themeLight = themeLight
diff --git a/frontend/src/app/applications/users/components/user-account.component.html b/frontend/src/app/applications/users/components/user-account.component.html
index 87f2405d..afb5fdec 100755
--- a/frontend/src/app/applications/users/components/user-account.component.html
+++ b/frontend/src/app/applications/users/components/user-account.component.html
@@ -61,7 +61,7 @@
<div class="col-7 col-sm-8 d-flex flex-wrap justify-content-end">
@if (user.isAdmin) {
<span class="badge bg-purple">
- <fa-icon [icon]="icons.faKey"></fa-icon>
+ <svg [lucideIcon]="icons.LucideKeyRound"></svg>
<span l10nTranslate>Administrator</span>
</span>
} @else {
@@ -87,7 +87,7 @@
(click)="clipBoardLink()"
[title]="webdavUrl"
class="badge bg-primary d-inline-flex align-items-center gap-1 cursor-pointer">
- <fa-icon [icon]="icons.faCopy"></fa-icon>
+ <svg [lucideIcon]="icons.LucideCopy"></svg>
{{ webdavUrl }}
</span>
</div>
diff --git a/frontend/src/app/applications/users/components/user-account.component.ts b/frontend/src/app/applications/users/components/user-account.component.ts
index 636c3d25..52f131db 100644
--- a/frontend/src/app/applications/users/components/user-account.component.ts
+++ b/frontend/src/app/applications/users/components/user-account.component.ts
@@ -2,8 +2,7 @@ import { KeyValuePipe } from '@angular/common'
import { HttpErrorResponse, HttpHeaders } from '@angular/common/http'
import { Component, inject, OnDestroy, OnInit } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faCopy, faKey } from '@fortawesome/free-solid-svg-icons'
+import { LucideCopy, LucideDynamicIcon, LucideKeyRound } from '@lucide/angular'
import { COLLABORA_APP_LOCK } from '@sync-in-server/backend/src/applications/files/editors/collabora-online/collabora-online.constants'
import type { FileEditorProviders } from '@sync-in-server/backend/src/applications/files/editors/file-editor-providers.interface'
import { ONLY_OFFICE_APP_LOCK } from '@sync-in-server/backend/src/applications/files/editors/only-office/only-office.constants'
@@ -46,7 +45,7 @@ import { UserAuthManageAppPasswordsDialogComponent } from './dialogs/user-auth-m
TimeAgoPipe,
PasswordStrengthBarComponent,
L10nTranslateDirective,
- FaIconComponent,
+ LucideDynamicIcon,
StorageUsageComponent,
InputPasswordComponent,
KeyValuePipe
@@ -59,7 +58,7 @@ export class UserAccountComponent implements OnInit, OnDestroy {
protected readonly allNotifications = Object.values(USER_NOTIFICATION_TEXT)
protected readonly allOnlineStatus = USER_ONLINE_STATUS_LIST
protected readonly passwordMinLength = USER_PASSWORD_MIN_LENGTH
- protected readonly icons = { faCopy, faKey }
+ protected readonly icons = { LucideCopy, LucideKeyRound }
protected user: UserType
protected userAvatar: string = null
protected webdavUrl = `${window.location.origin}/${WEBDAV_BASE_PATH}`
diff --git a/frontend/src/app/applications/users/components/user-applications.component.html b/frontend/src/app/applications/users/components/user-applications.component.html
index cef8c042..5cefb808 100644
--- a/frontend/src/app/applications/users/components/user-applications.component.html
+++ b/frontend/src/app/applications/users/components/user-applications.component.html
@@ -20,19 +20,10 @@
<div class="card dialog-tab-card dialog-check-card--interactive app-download-card text-center w-100 h-100">
<div class="card-body d-flex flex-column align-items-center justify-content-center p-3 p-xl-4">
<div class="app-download-card-icon dialog-check-card">
- @switch (app) {
- @case (APP_STORE_OS.WIN) {
- <fa-icon [icon]="icons.faWindows"></fa-icon>
- }
- @case (APP_STORE_OS.MAC) {
- <fa-icon [icon]="icons.faApple"></fa-icon>
- }
- @case (APP_STORE_OS.LINUX) {
- <fa-icon [icon]="icons.faLinux"></fa-icon>
- }
- @case (APP_STORE_OS.NODE) {
- <fa-icon [icon]="icons.faTerminal"></fa-icon>
- }
+ @if (app === APP_STORE_OS.NODE) {
+ <svg [lucideIcon]="icons.LucideTerminal"></svg>
+ } @else {
+ <app-platform-icon [platform]="app"></app-platform-icon>
}
</div>
@switch (app) {
@@ -50,7 +41,7 @@
}
}
<a (click)="download(app)" class="btn btn-primary app-download-card-btn">
- <fa-icon [icon]="icons.faDownload" class="me-2"></fa-icon>
+ <svg [lucideIcon]="icons.LucideHardDriveDownload"></svg>
<span l10nTranslate>Download</span>
</a>
<div class="app-download-card-details">
diff --git a/frontend/src/app/applications/users/components/user-applications.component.scss b/frontend/src/app/applications/users/components/user-applications.component.scss
index 71bcda37..53e297e0 100644
--- a/frontend/src/app/applications/users/components/user-applications.component.scss
+++ b/frontend/src/app/applications/users/components/user-applications.component.scss
@@ -24,7 +24,8 @@
justify-content: center;
margin-bottom: 0.2rem;
- fa-icon {
+ .lucide,
+ .platform-icon {
font-size: calc(var(--font-size-3xl) * 1.5)
}
}
diff --git a/frontend/src/app/applications/users/components/user-applications.component.ts b/frontend/src/app/applications/users/components/user-applications.component.ts
index 274a90c1..64e761cd 100644
--- a/frontend/src/app/applications/users/components/user-applications.component.ts
+++ b/frontend/src/app/applications/users/components/user-applications.component.ts
@@ -1,9 +1,8 @@
import { Component, inject } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faApple, faLinux, faWindows } from '@fortawesome/free-brands-svg-icons'
-import { faDownload, faTerminal } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideHardDriveDownload, LucideTerminal } from '@lucide/angular'
import { APP_STORE_PLATFORM } from '@sync-in-server/backend/src/applications/sync/constants/store'
import { L10nTranslateDirective } from 'angular-l10n'
+import { PlatformIconComponent } from '../../../common/components/platform-icon.component'
import { AutoResizeDirective } from '../../../common/directives/auto-resize.directive'
import { TimeDateFormatPipe } from '../../../common/pipes/time-date-format.pipe'
import { downloadWithAnchor } from '../../../common/utils/functions'
@@ -14,13 +13,13 @@ import { UserService } from '../user.service'
@Component({
selector: 'app-user-applications',
- imports: [FaIconComponent, L10nTranslateDirective, AutoResizeDirective, TimeDateFormatPipe],
+ imports: [LucideDynamicIcon, PlatformIconComponent, L10nTranslateDirective, AutoResizeDirective, TimeDateFormatPipe],
templateUrl: './user-applications.component.html',
styleUrl: './user-applications.component.scss'
})
export class UserApplicationsComponent {
protected readonly store = inject(StoreService)
- protected readonly icons = { faWindows, faApple, faLinux, faDownload, faTerminal }
+ protected readonly icons = { LucideHardDriveDownload, LucideTerminal }
protected readonly APP_STORE_OS = APP_STORE_PLATFORM
protected readonly APP_STORE_PLATFORM_LIST: APP_STORE_PLATFORM[] = Object.values(APP_STORE_PLATFORM) as APP_STORE_PLATFORM[]
private readonly layout = inject(LayoutService)
diff --git a/frontend/src/app/applications/users/components/user-groups.component.html b/frontend/src/app/applications/users/components/user-groups.component.html
index 3f3fd965..8f8d9ac6 100644
--- a/frontend/src/app/applications/users/components/user-groups.component.html
+++ b/frontend/src/app/applications/users/components/user-groups.component.html
@@ -4,28 +4,28 @@
class="btn btn-default me-1"
[tooltip]="'Refresh' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faRotate" [animation]="loading ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw" [class.icon-spin]="loading"></svg>
</button>
<button (click)="openDialog(true)"
[disabled]="!allowedAction.addGroup && !allowedAction.addUsers"
class="btn btn-default me-1"
[tooltip]="(!currentGroup && allowedAction.addGroup ? 'New personal group': 'Add members') | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
</button>
<button (click)="openDialog(false, true)"
class="btn btn-default me-1"
[disabled]="!allowedAction.removeGroup && !allowedAction.removeUser"
[tooltip]="(allowedAction.removeGroup ? 'Delete group' : 'Remove from group') | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faMinus"></fa-icon>
+ <svg [lucideIcon]="icons.LucideMinus"></svg>
</button>
<button (click)="openDialog()"
[disabled]="!allowedAction.editGroup && !allowedAction.editUser"
class="btn btn-default me-1"
[tooltip]="(allowedAction.editGroup ? 'Edit group' : 'Edit user') | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencil"></svg>
</button>
@if (!currentGroup) {
<div class="btn-group me-1" dropdown>
@@ -33,17 +33,17 @@
[class.disabled]="!selected"
class="btn btn-default dropdown-toggle"
type="button">
- <fa-icon [icon]="icons.faEllipsis"></fa-icon>
+ <svg [lucideIcon]="icons.LucideEllipsis"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu" role="menu">
<li role="menuitem">
<a (click)="browse(selected)" class="dropdown-item" [class.disabled]="!selected">
- <span l10nTranslate><fa-icon [icon]="icons.faUsersRectangle"></fa-icon>See members</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideUsersRound"></svg>See members</span>
</a>
</li>
<li role="menuitem">
<a (click)="openLeaveGroupDialog()" class="dropdown-item" [class.disabled]="!selected || !selected.isPersonalGroup">
- <span l10nTranslate><fa-icon [icon]="icons.faRightFromBracket"></fa-icon>Leave group</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideLogOut"></svg>Leave group</span>
</a>
</li>
</ul>
@@ -68,7 +68,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -97,13 +97,15 @@
@if (m.isUser) {
<img class="avatar-img" [src]="m.avatarUrl" alt="">
} @else {
- <fa-icon [icon]="icons.GROUPS" class="{{m.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}"></fa-icon>
+ <span class="{{m.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}">
+ <svg [lucideIcon]="icons.GROUPS"></svg>
+ </span>
}
<div class="d-flex flex-column text-truncate">
<span class="no-pointer-events" draggable="false">
{{ m.name }}
@if (m.isUser && m.isGroupManager) {
- <fa-icon class="m-0" [icon]="icons.faKey"></fa-icon>
+ <svg class="m-0" [lucideIcon]="icons.LucideKeyRound"></svg>
}
</span>
<span class="no-pointer-events text-muted fs-xs" draggable="false">{{ m.description }}</span>
@@ -172,35 +174,35 @@
<context-menu #MainContextMenu>
@if (allowedAction.addGroup || allowedAction.addUsers) {
<ng-template (execute)="openDialog(true)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPlus"></fa-icon>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePlus"></svg>
{{ allowedAction.addGroup ? 'Personal group' : 'Add members' }}</span>
</ng-template>
}
<ng-template (execute)="refresh()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>Refresh</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
</context-menu>
<context-menu #TargetContextMenu>
@if (selected?.isGroup) {
<ng-template (execute)="browse(selected)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faUsersRectangle"></fa-icon>See members</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideUsersRound"></svg>See members</span>
</ng-template>
}
@if (allowedAction.editGroup || allowedAction.editUser) {
<ng-template (execute)="openDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPen"></fa-icon>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePencil"></svg>
{{ allowedAction.editGroup ? 'Edit group' : 'Edit user' }}</span>
</ng-template>
}
@if (allowedAction.removeGroup || allowedAction.removeUser) {
<ng-template (execute)="openDialog(false, true)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faMinus"></fa-icon>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideMinus"></svg>
{{ allowedAction.removeGroup ? 'Delete group' : 'Remove from group' }}</span>
</ng-template>
}
@if (allowedAction.leaveGroup) {
<ng-template (execute)="openLeaveGroupDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faRightFromBracket"></fa-icon>Leave group</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideLogOut"></svg>Leave group</span>
</ng-template>
}
</context-menu>
diff --git a/frontend/src/app/applications/users/components/user-groups.component.ts b/frontend/src/app/applications/users/components/user-groups.component.ts
index df328c63..1aec51b9 100644
--- a/frontend/src/app/applications/users/components/user-groups.component.ts
+++ b/frontend/src/app/applications/users/components/user-groups.component.ts
@@ -2,20 +2,19 @@ import { KeyValuePipe, NgTemplateOutlet } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, ElementRef, inject, ViewChild } from '@angular/core'
import { ActivatedRoute, Data, Router, UrlSegment } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import {
- faArrowDown,
- faArrowRotateRight,
- faArrowUp,
- faEllipsis,
- faKey,
- faMinus,
- faPen,
- faPlus,
- faRightFromBracket,
- faRotate,
- faUsersRectangle
-} from '@fortawesome/free-solid-svg-icons'
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideDynamicIcon,
+ LucideEllipsis,
+ LucideKeyRound,
+ LucideLogOut,
+ LucideMinus,
+ LucidePencil,
+ LucidePlus,
+ LucideRotateCw,
+ LucideUsersRound
+} from '@lucide/angular'
import { ContextMenuComponent, ContextMenuModule } from '@perfectmemory/ngx-contextmenu'
import { GROUP_TYPE } from '@sync-in-server/backend/src/applications/users/constants/group'
import { USER_GROUP_ROLE, USER_PERMISSION } from '@sync-in-server/backend/src/applications/users/constants/user'
@@ -48,7 +47,7 @@ import { UserPersonalGroupLeaveDialogComponent } from './dialogs/user-personal-g
selector: 'app-user-groups',
imports: [
ContextMenuModule,
- FaIconComponent,
+ LucideDynamicIcon,
KeyValuePipe,
L10nTranslateDirective,
L10nTranslatePipe,
@@ -79,17 +78,16 @@ export class UserGroupsComponent {
protected readonly originalOrderKeyValue = originalOrderKeyValue
protected readonly icons = {
GROUPS: USER_ICON.GROUPS,
- faRotate,
- faPlus,
- faMinus,
- faPen,
- faArrowDown,
- faArrowUp,
- faKey,
- faArrowRotateRight,
- faRightFromBracket,
- faUsersRectangle,
- faEllipsis
+ LucideRotateCw,
+ LucidePlus,
+ LucideMinus,
+ LucidePencil,
+ LucideArrowDown,
+ LucideArrowUp,
+ LucideKeyRound,
+ LucideLogOut,
+ LucideUsersRound,
+ LucideEllipsis
}
// Sort
protected tableHeaders: Record<'name' | 'type' | 'role' | 'members' | 'createdAt' | 'modifiedAt' | 'memberSince', TableHeaderConfig> = {
diff --git a/frontend/src/app/applications/users/components/user-guests.component.html b/frontend/src/app/applications/users/components/user-guests.component.html
index c77d1662..e56dfd07 100644
--- a/frontend/src/app/applications/users/components/user-guests.component.html
+++ b/frontend/src/app/applications/users/components/user-guests.component.html
@@ -4,21 +4,21 @@
class="btn btn-default me-1"
[tooltip]="'Refresh' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faRotate" [animation]="loading ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="icons.LucideRotateCw" [class.icon-spin]="loading"></svg>
</button>
<button (click)="openGuestDialog(true)"
[disabled]="!canCreateGuest"
class="btn btn-default me-1"
[tooltip]="'New guest' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPlus"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePlus"></svg>
</button>
<button (click)="openGuestDialog()"
[disabled]="!selected"
class="btn btn-default me-1"
[tooltip]="'Edit guest' | translate:locale.language"
type="button">
- <fa-icon [icon]="icons.faPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencil"></svg>
</button>
<!--Start Filter Button-->
<app-input-filter class="d-none d-sm-block ms-auto"></app-input-filter>
@@ -39,7 +39,7 @@
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
- <fa-icon [icon]="sortTable.sortParam.asc ? icons.faArrowDown : icons.faArrowUp" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
@@ -132,16 +132,16 @@
<!--Start Context Menu -->
<context-menu #MainContextMenu>
<ng-template (execute)="openGuestDialog(true)" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPlus"></fa-icon>New guest</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePlus"></svg>New guest</span>
</ng-template>
<ng-template [divider]="true" contextMenuItem></ng-template>
<ng-template (execute)="loadGuests()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faArrowRotateRight"></fa-icon>Refresh</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
</context-menu>
<context-menu #TargetContextMenu>
<ng-template (execute)="openGuestDialog()" contextMenuItem>
- <span l10nTranslate><fa-icon [icon]="icons.faPen"></fa-icon>Edit guest</span>
+ <span l10nTranslate><svg [lucideIcon]="icons.LucidePencil"></svg>Edit guest</span>
</ng-template>
</context-menu>
<!--End Context Menu-->
diff --git a/frontend/src/app/applications/users/components/user-guests.component.ts b/frontend/src/app/applications/users/components/user-guests.component.ts
index 85bffaae..d2a389ab 100644
--- a/frontend/src/app/applications/users/components/user-guests.component.ts
+++ b/frontend/src/app/applications/users/components/user-guests.component.ts
@@ -1,8 +1,7 @@
import { KeyValuePipe } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { Component, ElementRef, inject, ViewChild } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faArrowDown, faArrowRotateRight, faArrowUp, faKey, faPen, faPlus, faRotate } from '@fortawesome/free-solid-svg-icons'
+import { LucideArrowDown, LucideArrowUp, LucideDynamicIcon, LucideKeyRound, LucidePencil, LucidePlus, LucideRotateCw } from '@lucide/angular'
import { ContextMenuComponent, ContextMenuModule } from '@perfectmemory/ngx-contextmenu'
import { USER_PERMISSION } from '@sync-in-server/backend/src/applications/users/constants/user'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -28,7 +27,7 @@ import { UserAvatarStackComponent } from './utils/user-avatar-stack.component'
@Component({
selector: 'app-user-guests',
imports: [
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslatePipe,
FilterComponent,
TooltipDirective,
@@ -55,7 +54,7 @@ export class UserGuestsComponent {
@ViewChild('TargetContextMenu', { static: true }) targetContextMenu: ContextMenuComponent<any>
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly originalOrderKeyValue = originalOrderKeyValue
- protected readonly icons = { faRotate, faPlus, faPen, faArrowDown, faArrowUp, faKey, faArrowRotateRight }
+ protected readonly icons = { LucideRotateCw, LucidePlus, LucidePencil, LucideArrowDown, LucideArrowUp, LucideKeyRound }
// Sort
protected tableHeaders: Record<'login' | 'fullName' | 'managers' | 'currentAccess' | 'createdAt' | 'isActive', TableHeaderConfig> = {
login: {
diff --git a/frontend/src/app/applications/users/components/utils/user-avatar-tooltip.component.ts b/frontend/src/app/applications/users/components/utils/user-avatar-tooltip.component.ts
index 32b90a73..30ce3397 100644
--- a/frontend/src/app/applications/users/components/utils/user-avatar-tooltip.component.ts
+++ b/frontend/src/app/applications/users/components/utils/user-avatar-tooltip.component.ts
@@ -1,6 +1,5 @@
import { ChangeDetectionStrategy, Component, inject, Input, ViewEncapsulation } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faLightbulb, faUsers, faUserShield } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideLightbulb, LucideUserRoundKey, LucideUsersRound } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslatePipe } from 'angular-l10n'
import { OwnerType } from '../../interfaces/owner.interface'
import { MemberModel } from '../../models/member.model'
@@ -9,7 +8,7 @@ import { MemberModel } from '../../models/member.model'
selector: 'app-user-avatar-tooltip',
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
- imports: [FaIconComponent, L10nTranslatePipe],
+ imports: [LucideDynamicIcon, L10nTranslatePipe],
styles: [
`
.user-avatar-tooltip {
@@ -68,8 +67,7 @@ import { MemberModel } from '../../models/member.model'
@if (userHasAvatar(tooltipUser)) {
<img alt="" class="avatar-base-img user-avatar-tooltip-avatar" height="24" width="24" [src]="tooltipUser.avatarUrl" />
} @else {
- <fa-icon
- [icon]="userIcon()"
+ <span
[class.circle-primary-icon]="isMember"
[class.circle-gray-icon]="!isMember"
class="user-avatar-tooltip-avatar"
@@ -77,7 +75,8 @@ import { MemberModel } from '../../models/member.model'
[style.min-height.px]="24"
[style.font-size.px]="12"
>
- </fa-icon>
+ <svg [lucideIcon]="userIcon()"></svg>
+ </span>
}
<div class="user-avatar-tooltip-text">
@if (translateTitle(tooltipUser)) {
@@ -104,7 +103,7 @@ export class UserAvatarTooltipComponent {
@Input() isMember = false
@Input() unknownUserAsInfo = false
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
- protected readonly icons = { faUsers, faUserShield, faLightbulb }
+ protected readonly icons = { LucideUsersRound, LucideUserRoundKey, LucideLightbulb }
protected get tooltipUsers(): (OwnerType | MemberModel | any)[] {
if (this.users?.length) {
@@ -122,7 +121,7 @@ export class UserAvatarTooltipComponent {
}
protected userIcon() {
- return this.isMember ? this.icons.faUsers : this.unknownUserAsInfo ? this.icons.faLightbulb : this.icons.faUserShield
+ return this.isMember ? this.icons.LucideUsersRound : this.unknownUserAsInfo ? this.icons.LucideLightbulb : this.icons.LucideUserRoundKey
}
protected userTitle(user: OwnerType | MemberModel | any): string {
diff --git a/frontend/src/app/applications/users/components/utils/user-avatar.component.ts b/frontend/src/app/applications/users/components/utils/user-avatar.component.ts
index 9fc2fef3..a5aa62a4 100644
--- a/frontend/src/app/applications/users/components/utils/user-avatar.component.ts
+++ b/frontend/src/app/applications/users/components/utils/user-avatar.component.ts
@@ -1,6 +1,5 @@
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faLightbulb, faUsers, faUserShield } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideLightbulb, LucideUserRoundKey, LucideUsersRound } from '@lucide/angular'
import { AvailableBSPositions } from 'ngx-bootstrap/positioning'
import { TooltipModule } from 'ngx-bootstrap/tooltip'
import { OwnerType } from '../../interfaces/owner.interface'
@@ -10,7 +9,7 @@ import { UserAvatarTooltipComponent } from './user-avatar-tooltip.component'
@Component({
selector: 'app-user-avatar',
changeDetection: ChangeDetectionStrategy.OnPush,
- imports: [TooltipModule, FaIconComponent, UserAvatarTooltipComponent],
+ imports: [TooltipModule, LucideDynamicIcon, UserAvatarTooltipComponent],
template: `
@if (userHasAvatar()) {
<img
@@ -26,8 +25,7 @@ import { UserAvatarTooltipComponent } from './user-avatar-tooltip.component'
containerClass="user-avatar-tooltip-container"
/>
} @else {
- <fa-icon
- [icon]="userIcon()"
+ <span
[class.circle-primary-icon]="isMember"
[class.circle-gray-icon]="!isMember"
class="cursor-pointer me-1"
@@ -40,7 +38,8 @@ import { UserAvatarTooltipComponent } from './user-avatar-tooltip.component'
[style.min-height.px]="height"
[style.font-size.px]="fontSize"
>
- </fa-icon>
+ <svg [lucideIcon]="userIcon()"></svg>
+ </span>
}
<ng-template #userTooltip>
@@ -58,7 +57,7 @@ export class UserAvatarComponent implements OnInit {
@Input() tooltipPlacement: AvailableBSPositions = 'auto'
@Input() container: string = null
@Input() disableTooltip = false
- protected readonly icons = { faUsers, faUserShield, faLightbulb }
+ protected readonly icons = { LucideUsersRound, LucideUserRoundKey, LucideLightbulb }
ngOnInit(): void {
if (this.height < 28) {
@@ -71,6 +70,6 @@ export class UserAvatarComponent implements OnInit {
}
protected userIcon() {
- return this.isMember ? this.icons.faUsers : this.unknownUserAsInfo ? this.icons.faLightbulb : this.icons.faUserShield
+ return this.isMember ? this.icons.LucideUsersRound : this.unknownUserAsInfo ? this.icons.LucideLightbulb : this.icons.LucideUserRoundKey
}
}
diff --git a/frontend/src/app/applications/users/components/utils/user-search.component.ts b/frontend/src/app/applications/users/components/utils/user-search.component.ts
index c5f5e344..956ddcd3 100644
--- a/frontend/src/app/applications/users/components/utils/user-search.component.ts
+++ b/frontend/src/app/applications/users/components/utils/user-search.component.ts
@@ -1,8 +1,7 @@
import { KeyValuePipe } from '@angular/common'
import { Component, ElementRef, EventEmitter, inject, Input, NgZone, OnInit, Output, ViewChild } from '@angular/core'
import { FormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faPen, faTimes } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucidePencil, LucideX } from '@lucide/angular'
import { SPACE_OPERATION } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
import { MEMBER_TYPE } from '@sync-in-server/backend/src/applications/users/constants/member'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -27,13 +26,19 @@ import { USER_ICON } from '../../user.constants'
TypeaheadModule,
FormsModule,
HighlightPipe,
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslateDirective,
ButtonsModule,
KeyValuePipe,
TooltipModule
],
- templateUrl: 'users-search.component.html'
+ templateUrl: 'users-search.component.html',
+ styles: `
+ .lucide {
+ margin: 2px;
+ font-size: 1rem;
+ }
+ `
})
export class UserSearchComponent implements OnInit {
@ViewChild('InputTypeHead') inputTypeHead: ElementRef
@@ -52,7 +57,7 @@ export class UserSearchComponent implements OnInit {
protected readonly MEMBER_TYPE = MEMBER_TYPE
protected readonly originalOrderKeyValue = originalOrderKeyValue
protected readonly SPACES_PERMISSIONS_TEXT = SPACES_PERMISSIONS_TEXT
- protected readonly icons = { GROUPS: USER_ICON.GROUPS, LINKS: SPACES_ICON.LINKS, faTimes, faPen }
+ protected readonly icons = { GROUPS: USER_ICON.GROUPS, LINKS: SPACES_ICON.LINKS, LucideX, LucidePencil }
protected selection = ''
private readonly ngZone = inject(NgZone)
private defaultPlaceholder = 'Type to search for users or groups to add'
diff --git a/frontend/src/app/applications/users/components/utils/users-search.component.html b/frontend/src/app/applications/users/components/utils/users-search.component.html
index db178824..61e172f5 100644
--- a/frontend/src/app/applications/users/components/utils/users-search.component.html
+++ b/frontend/src/app/applications/users/components/utils/users-search.component.html
@@ -4,9 +4,9 @@
@if (member.isUser) {
<img alt="" class="avatar-base-img" height="32" width="32" [src]="member.avatarUrl" />
} @else {
- <fa-icon [icon]="icons.GROUPS"
- class="{{member.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}">
- </fa-icon>
+ <span class="{{member.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}">
+ <svg [lucideIcon]="icons.GROUPS"></svg>
+ </span>
}
</div>
<div class="d-flex ms-2 pe-lg-5 flex-grow-1 overflow-hidden typeahead-option-text {{member.description ? 'flex-column align-items-start' : 'align-items-center'}}"
@@ -52,11 +52,13 @@
@if (member.isUser) {
<img alt="" class="avatar-base-img" height="32" width="32" [src]="member.avatarUrl" />
} @else if (member.isLink) {
- <fa-icon [icon]="icons.LINKS" class="circle-primary-icon"></fa-icon>
+ <span class="circle-primary-icon">
+ <svg [lucideIcon]="icons.LINKS"></svg>
+ </span>
} @else {
- <fa-icon [icon]="icons.GROUPS"
- class="{{member.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}">
- </fa-icon>
+ <span class="{{member.isPersonalGroup ? 'circle-purple-icon' : 'circle-primary-icon'}}">
+ <svg [lucideIcon]="icons.GROUPS"></svg>
+ </span>
}
<div class="d-flex flex-column text-truncate ms-2">
<div class="text-truncate">{{ member.name }}</div>
@@ -83,27 +85,27 @@
(ngModelChange)="onPermissionChange(member)"
btnCheckbox
[tooltip]="SPACES_PERMISSIONS_TEXT[p.key].text | translate:locale.language"
- class="btn btn-sm btn-custom"
+ class="btn btn-custom"
type="button">
- <fa-icon [icon]="SPACES_PERMISSIONS_TEXT[p.key].icon" size="lg"></fa-icon>
+ <svg [lucideIcon]="SPACES_PERMISSIONS_TEXT[p.key].icon"></svg>
</button>
}
}
- <div class="vr ms-1 me-2"></div>
+ <div class="vr" style="margin-left: 0.15rem; margin-right: 0.35rem"></div>
}
@if (editFunction) {
<button (click)="editFunction(member)"
[tooltip]="'Edit' | translate:locale.language"
- class="btn btn-sm btn-custom me-2"
+ class="btn btn-custom me-2"
type="button">
- <fa-icon [icon]="icons.faPen"></fa-icon>
+ <svg [lucideIcon]="icons.LucidePencil"></svg>
</button>
}
<button (click)="removeMember(member)"
[tooltip]="'Remove' | translate:locale.language"
- class="btn btn-sm btn-danger"
+ class="btn btn-danger"
type="button">
- <fa-icon [icon]="icons.faTimes"></fa-icon>
+ <svg [lucideIcon]="icons.LucideX"></svg>
</button>
</div>
}
diff --git a/frontend/src/app/applications/users/user.constants.ts b/frontend/src/app/applications/users/user.constants.ts
index 05e97ecc..b416fb43 100644
--- a/frontend/src/app/applications/users/user.constants.ts
+++ b/frontend/src/app/applications/users/user.constants.ts
@@ -1,4 +1,4 @@
-import { faDownload, faLaptop, faUser, faUserGroup, faUsers } from '@fortawesome/free-solid-svg-icons'
+import { LucideContactRound, LucideHardDriveDownload, LucideLaptop, LucideUserRound, LucideUsersRound } from '@lucide/angular'
import { USER_PERMISSION } from '@sync-in-server/backend/src/applications/users/constants/user'
import { AppMenu } from '../../layout/layout.interfaces'
@@ -28,11 +28,11 @@ export const USER_NOTIFICATION_TEXT = {
export const USER_ONLINE_STATUS_LIST = ['available', 'busy', 'absent', 'offline']
export const USER_ICON = {
- ACCOUNT: faUser,
- CLIENTS: faLaptop,
- GROUPS: faUsers,
- GUESTS: faUserGroup,
- APPS: faDownload
+ ACCOUNT: LucideUserRound,
+ CLIENTS: LucideLaptop,
+ GROUPS: LucideUsersRound,
+ GUESTS: LucideContactRound,
+ APPS: LucideHardDriveDownload
} as const
export const USER_PASSWORD_CHANGE_TEXT = 'Change me !'
diff --git a/frontend/src/app/auth/auth.component.html b/frontend/src/app/auth/auth.component.html
index 5ddc036e..02c9e185 100644
--- a/frontend/src/app/auth/auth.component.html
+++ b/frontend/src/app/auth/auth.component.html
@@ -11,7 +11,7 @@
<div class="input-group input-group-lg mt-2 mb-4">
@if (isRecoveryCode) {
<span class="input-group-text">
- <fa-icon [icon]="icons.faKey"></fa-icon>
+ <svg [lucideIcon]="icons.LucideKeyRound"></svg>
</span>
<input appAutofocus
[placeholder]="'Recovery code' | translate:locale.language"
@@ -20,7 +20,7 @@
formControlName="recoveryCode" />
} @else {
<span class="input-group-text">
- <fa-icon [icon]="icons.faQrcode"></fa-icon>
+ <svg [lucideIcon]="icons.LucideQrCode"></svg>
</span>
<input appAutofocus
[placeholder]="'Authentication code' | translate:locale.language"
@@ -54,13 +54,13 @@
<p class="mb-3 {{hasError ? 'text-danger' : 'text-white-50'}}" l10nTranslate>{{ hasError || 'Sign-in to your account' }}</p>
<div class="input-group input-group-lg my-2">
<span class="input-group-text">
- <fa-icon [icon]="icons.faUserAlt"></fa-icon>
+ <svg [lucideIcon]="icons.LucideUserRound"></svg>
</span>
<input appAutofocus class="form-control form-control-lg" formControlName="username" [placeholder]="'Login or Email' | translate:locale.language" type="text" />
</div>
<div class="input-group input-group-lg mb-3">
<span class="input-group-text">
- <fa-icon [icon]="icons.faLock"></fa-icon>
+ <svg [lucideIcon]="icons.LucideLock"></svg>
</span>
<input class="form-control form-control-lg" formControlName="password" [placeholder]="'Password' | translate:locale.language" type="password" />
</div>
diff --git a/frontend/src/app/auth/auth.component.ts b/frontend/src/app/auth/auth.component.ts
index ae5966e3..c66cf435 100644
--- a/frontend/src/app/auth/auth.component.ts
+++ b/frontend/src/app/auth/auth.component.ts
@@ -1,8 +1,7 @@
import { Component, inject } from '@angular/core'
import { FormGroup, ReactiveFormsModule, UntypedFormBuilder, Validators } from '@angular/forms'
import { ActivatedRoute, Router } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faKey, faLock, faQrcode, faUserAlt } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideKeyRound, LucideLock, LucideQrCode, LucideUserRound } from '@lucide/angular'
import { USER_PASSWORD_MIN_LENGTH } from '@sync-in-server/backend/src/applications/users/constants/user'
import { TWO_FA_CODE_LENGTH } from '@sync-in-server/backend/src/authentication/constants/auth'
import { API_OIDC_CALLBACK } from '@sync-in-server/backend/src/authentication/constants/routes'
@@ -20,11 +19,11 @@ import { AuthService } from './auth.service'
@Component({
selector: 'app-auth',
templateUrl: 'auth.component.html',
- imports: [AutofocusDirective, ReactiveFormsModule, FaIconComponent, L10nTranslateDirective, L10nTranslatePipe]
+ imports: [AutofocusDirective, ReactiveFormsModule, LucideDynamicIcon, L10nTranslateDirective, L10nTranslatePipe]
})
export class AuthComponent {
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
- protected readonly icons = { faLock, faUserAlt, faKey, faQrcode }
+ protected readonly icons = { LucideLock, LucideUserRound, LucideKeyRound, LucideQrCode }
protected twoFaCodelength = TWO_FA_CODE_LENGTH
protected logoUrl = logoDarkUrl
protected hasError: any = null
diff --git a/frontend/src/app/common/components/badge-members.component.ts b/frontend/src/app/common/components/badge-members.component.ts
index 7276b7d8..d36f519b 100644
--- a/frontend/src/app/common/components/badge-members.component.ts
+++ b/frontend/src/app/common/components/badge-members.component.ts
@@ -1,6 +1,6 @@
import { ChangeDetectionStrategy, Component, inject, Input, OnChanges } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faLink, faUser, faUsers } from '@fortawesome/free-solid-svg-icons'
+import type { LucideIcon } from '@lucide/angular'
+import { LucideDynamicIcon, LucideLink, LucideUserRound, LucideUsersRound } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslatePipe } from 'angular-l10n'
import { TooltipModule } from 'ngx-bootstrap/tooltip'
@@ -13,21 +13,21 @@ export interface BadgeMembersCounts {
interface BadgeEntry {
key: keyof BadgeMembersCounts
label: string
- icon: typeof faUser
+ icon: LucideIcon
value: number
}
@Component({
selector: 'app-badge-members',
changeDetection: ChangeDetectionStrategy.OnPush,
- imports: [FaIconComponent, TooltipModule, L10nTranslatePipe],
+ imports: [LucideDynamicIcon, TooltipModule, L10nTranslatePipe],
template: `
@if (entries.length) {
<span class="members-summary" [tooltip]="membersTooltip" [container]="'body'">
<span class="members-breakdown">
@for (entry of entries; track entry.key) {
<span class="members-part">
- <fa-icon [icon]="entry.icon" [class.members-icon-user]="entry.key === 'users'"></fa-icon>
+ <svg [lucideIcon]="entry.icon" [class.members-icon-user]="entry.key === 'users'"></svg>
<span class="members-value">{{ entry.value }}</span>
</span>
}
@@ -73,6 +73,10 @@ interface BadgeEntry {
display: inline-flex;
align-items: center;
gap: 0.2rem;
+
+ .lucide {
+ font-size: var(--font-size-md);
+ }
}
.members-icon-user {
@@ -98,9 +102,9 @@ export class BadgeMembersComponent implements OnChanges {
private buildEntries(): BadgeEntry[] {
const members = this.members ?? {}
const entries: BadgeEntry[] = [
- { key: 'users', label: 'Users', icon: faUser, value: members.users ?? 0 },
- { key: 'groups', label: 'Groups', icon: faUsers, value: members.groups ?? 0 },
- { key: 'links', label: 'Links', icon: faLink, value: members.links ?? 0 }
+ { key: 'users', label: 'Users', icon: LucideUserRound, value: members.users ?? 0 },
+ { key: 'groups', label: 'Groups', icon: LucideUsersRound, value: members.groups ?? 0 },
+ { key: 'links', label: 'Links', icon: LucideLink, value: members.links ?? 0 }
]
return entries.filter((entry) => entry.value > 0)
diff --git a/frontend/src/app/common/components/badge-permissions.component.ts b/frontend/src/app/common/components/badge-permissions.component.ts
index 41630115..7ea32ad8 100644
--- a/frontend/src/app/common/components/badge-permissions.component.ts
+++ b/frontend/src/app/common/components/badge-permissions.component.ts
@@ -1,5 +1,5 @@
import { ChangeDetectionStrategy, Component, inject, Input, OnChanges } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
+import { LucideDynamicIcon } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { AvailableBSPositions } from 'ngx-bootstrap/positioning'
import { TooltipModule } from 'ngx-bootstrap/tooltip'
@@ -13,7 +13,7 @@ interface FilePermissionEntry {
@Component({
selector: 'app-badge-permissions',
changeDetection: ChangeDetectionStrategy.OnPush,
- imports: [TooltipModule, L10nTranslateDirective, FaIconComponent, L10nTranslatePipe],
+ imports: [TooltipModule, L10nTranslateDirective, LucideDynamicIcon, L10nTranslatePipe],
template: `
@if (replaceEmptyPermissions && !permissionEntries.length) {
<span l10nTranslate>No permissions</span>
@@ -22,7 +22,7 @@ interface FilePermissionEntry {
<span class="badge bg-secondary-alt permission-badge" [tooltip]="permissionsTooltip" [placement]="tooltipPlacement" [container]="'body'">
@for (p of permissionEntries; track p.key) {
<span class="permission-icon">
- <fa-icon [icon]="p.value.icon"></fa-icon>
+ <svg [lucideIcon]="p.value.icon"></svg>
</span>
}
</span>
@@ -39,7 +39,8 @@ interface FilePermissionEntry {
:host {
--permission-icon-color: #2f4558;
--permission-icon-hover-color: #22384b;
- display: inline-block;
+ display: inline-flex;
+ align-items: center;
max-width: 100%;
vertical-align: middle;
}
@@ -50,7 +51,9 @@ interface FilePermissionEntry {
}
.permission-badge {
- display: inline-block;
+ display: inline-flex;
+ align-items: center;
+ gap: 0.1rem;
width: fit-content;
max-width: 100%;
min-width: 0;
@@ -58,24 +61,16 @@ interface FilePermissionEntry {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
- line-height: 1.2;
}
.permission-icon {
- display: inline-block;
- margin-right: 0.1rem;
- vertical-align: middle;
- }
-
- .permission-icon:last-child {
- margin-right: 0;
+ display: inline-flex;
+ align-items: center;
}
- .permission-icon fa-icon {
- display: inline-block;
+ .permission-icon .lucide {
color: var(--permission-icon-color);
- vertical-align: 0;
- font-size: var(--font-size-base);
+ font-size: var(--font-size-md);
}
`
]
diff --git a/frontend/src/app/common/components/filter.component.ts b/frontend/src/app/common/components/filter.component.ts
index 81e20794..9ed5de58 100644
--- a/frontend/src/app/common/components/filter.component.ts
+++ b/frontend/src/app/common/components/filter.component.ts
@@ -1,17 +1,16 @@
import { Component, ElementRef, HostListener, inject, OnDestroy, signal, ViewChild } from '@angular/core'
import { FormBuilder, FormControl, ReactiveFormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faFilter, faTimes } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideFunnel, LucideX } from '@lucide/angular'
import { L10N_LOCALE, L10nLocale, L10nTranslatePipe } from 'angular-l10n'
import { Subscription } from 'rxjs'
import { debounceTime, distinctUntilChanged } from 'rxjs/operators'
@Component({
selector: 'app-input-filter',
- imports: [ReactiveFormsModule, L10nTranslatePipe, FaIconComponent],
+ imports: [ReactiveFormsModule, L10nTranslatePipe, LucideDynamicIcon],
template: `
<div class="filter-shell" [class.has-value]="!!search()">
- <fa-icon class="filter-icon" [icon]="faFilterIcon"></fa-icon>
+ <svg class="filter-icon" [lucideIcon]="filterIcon"></svg>
<input
#iFilter
type="text"
@@ -22,7 +21,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'
/>
@if (search()) {
<button (click)="clear()" type="button" class="clear-btn" aria-label="Clear filter">
- <fa-icon [icon]="faTimes"></fa-icon>
+ <svg [lucideIcon]="LucideX"></svg>
</button>
}
</div>
@@ -33,8 +32,8 @@ export class FilterComponent implements OnDestroy {
public search = signal('')
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly searchControl: FormControl
- protected readonly faFilterIcon = faFilter
- protected readonly faTimes = faTimes
+ protected readonly filterIcon = LucideFunnel
+ protected readonly LucideX = LucideX
protected readonly shortcutHint = this.getShortcutHint()
private readonly fb = inject(FormBuilder)
private readonly subscription: Subscription
diff --git a/frontend/src/app/common/components/input-password.component.ts b/frontend/src/app/common/components/input-password.component.ts
index 7dddfbb0..7bb3cc51 100644
--- a/frontend/src/app/common/components/input-password.component.ts
+++ b/frontend/src/app/common/components/input-password.component.ts
@@ -1,7 +1,6 @@
import { Component, ElementRef, EventEmitter, inject, Input, OnInit, Output, ViewChild } from '@angular/core'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faDice, faEye, faEyeSlash } from '@fortawesome/free-solid-svg-icons'
+import { LucideDices, LucideDynamicIcon, LucideEye, LucideEyeOff } from '@lucide/angular'
import { USER_PASSWORD_MIN_LENGTH } from '@sync-in-server/backend/src/applications/users/constants/user'
import { genPassword } from '@sync-in-server/backend/src/common/shared'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
@@ -9,7 +8,7 @@ import { togglePasswordType } from '../utils/functions'
@Component({
selector: 'app-input-password',
- imports: [FormsModule, ReactiveFormsModule, L10nTranslatePipe, FaIconComponent, L10nTranslateDirective],
+ imports: [FormsModule, ReactiveFormsModule, L10nTranslatePipe, LucideDynamicIcon, L10nTranslateDirective],
template: `@if (showLabel) {
<label for="password" class="form-label" l10nTranslate>Password</label>
}
@@ -31,16 +30,21 @@ import { togglePasswordType } from '../utils/functions'
@if (showGenerator) {
<div (click)="randomPassword()" class="input-group-text cursor-pointer">
<span>
- <fa-icon [icon]="icons.faDice"></fa-icon>
+ <svg [lucideIcon]="icons.LucideDices"></svg>
</span>
</div>
}
<div (click)="toggleVisiblePassword(Password)" class="input-group-text cursor-pointer">
<span>
- <fa-icon [icon]="Password.type === 'text' ? icons.faEye : icons.faEyeSlash"></fa-icon>
+ <svg [lucideIcon]="Password.type === 'text' ? icons.LucideEye : icons.LucideEyeOff"></svg>
</span>
</div>
- </div> `
+ </div> `,
+ styles: `
+ .input-group-text .lucide {
+ font-size: var(--font-size-lg);
+ }
+ `
})
export class InputPasswordComponent implements OnInit {
@ViewChild('Password', { static: true }) passwordElement: ElementRef
@@ -56,7 +60,7 @@ export class InputPasswordComponent implements OnInit {
@Input() centered = false
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected readonly toggleVisiblePassword = togglePasswordType
- protected readonly icons = { faEye, faEyeSlash, faDice }
+ protected readonly icons = { LucideEye, LucideEyeOff, LucideDices }
ngOnInit() {
if (this.focus) {
@@ -69,7 +73,7 @@ export class InputPasswordComponent implements OnInit {
randomPassword() {
if (!this.disabled) {
- this.passwordChange.emit(genPassword(this.passwordMinLength + 2))
+ this.passwordChange.emit(genPassword(this.passwordMinLength + 8))
}
}
}
diff --git a/frontend/src/app/common/components/navigation-view/navigation-view.component.html b/frontend/src/app/common/components/navigation-view/navigation-view.component.html
index f3cc0c39..8892d959 100644
--- a/frontend/src/app/common/components/navigation-view/navigation-view.component.html
+++ b/frontend/src/app/common/components/navigation-view/navigation-view.component.html
@@ -1,6 +1,6 @@
<div [insideClick]="true" class="btn-group" dropdown>
<button aria-label="Display" class="btn btn-default dropdown-toggle" dropdownToggle type="button">
- <fa-icon [icon]="galleryModeEnabled ? icons.faTableCellsLarge : icons.faThList"></fa-icon>
+ <svg [lucideIcon]="galleryModeEnabled ? icons.LucideGrid2X2 : icons.LucideList"></svg>
</button>
<ul *dropdownMenu class="dropdown-menu dropdown-menu-right navigation-view-menu">
<li class="dropdown-header text-bold" l10nTranslate>Display</li>
@@ -11,7 +11,7 @@
[class.active]="!galleryModeEnabled"
class="dropdown-item navigation-view-option"
type="button">
- <fa-icon [icon]="icons.faThList"></fa-icon>
+ <svg [lucideIcon]="icons.LucideList"></svg>
<span l10nTranslate>List</span>
</button>
<button (click)="selectGalleryMode()"
@@ -19,7 +19,7 @@
[class.active]="galleryModeEnabled"
class="dropdown-item navigation-view-option"
type="button">
- <fa-icon [icon]="icons.faTableCellsLarge"></fa-icon>
+ <svg [lucideIcon]="icons.LucideGrid2X2"></svg>
<span l10nTranslate>Gallery</span>
</button>
</div>
diff --git a/frontend/src/app/common/components/navigation-view/navigation-view.component.scss b/frontend/src/app/common/components/navigation-view/navigation-view.component.scss
index 68c6fe4c..7e9a1e0c 100644
--- a/frontend/src/app/common/components/navigation-view/navigation-view.component.scss
+++ b/frontend/src/app/common/components/navigation-view/navigation-view.component.scss
@@ -30,8 +30,8 @@
gap: .4rem;
padding: .4rem .5rem;
- fa-icon {
- font-size: .875rem;
+ .lucide {
+ font-size: .9rem;
}
}
diff --git a/frontend/src/app/common/components/navigation-view/navigation-view.component.ts b/frontend/src/app/common/components/navigation-view/navigation-view.component.ts
index e8576668..a8cb63ea 100644
--- a/frontend/src/app/common/components/navigation-view/navigation-view.component.ts
+++ b/frontend/src/app/common/components/navigation-view/navigation-view.component.ts
@@ -1,6 +1,5 @@
import { ChangeDetectionStrategy, Component, EventEmitter, Output } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faTableCellsLarge, faThList } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideGrid2X2, LucideList } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { BsDropdownModule } from 'ngx-bootstrap/dropdown'
@@ -14,7 +13,7 @@ export interface ViewMode {
maxBadges?: number
image?: number
imageRes?: number
- faSize?: number
+ iconSize?: number
textSize?: number
margins?: number
}
@@ -29,17 +28,17 @@ const GALLERY_VIEW_OPTIONS = [
const VIEW_MODES: Record<string, ViewMode> = {
tl: { enabled: false },
- th: { enabled: true, maxBadges: 0, dimensions: 96, image: 56, imageRes: 128, faSize: 30, textSize: 12, margins: 18 },
- thM: { enabled: true, maxBadges: 1, dimensions: 112, image: 72, imageRes: 192, faSize: 34, textSize: 12, margins: 18 },
- thL: { enabled: true, maxBadges: 2, dimensions: 152, image: 112, imageRes: 256, faSize: 50, textSize: 13, margins: 18 },
- thXl: { enabled: true, maxBadges: 6, dimensions: 192, image: 152, imageRes: 512, faSize: 65, textSize: 13, margins: 18 },
+ th: { enabled: true, maxBadges: 0, dimensions: 96, image: 56, imageRes: 128, iconSize: 30, textSize: 12, margins: 18 },
+ thM: { enabled: true, maxBadges: 1, dimensions: 112, image: 72, imageRes: 192, iconSize: 34, textSize: 12, margins: 18 },
+ thL: { enabled: true, maxBadges: 2, dimensions: 152, image: 112, imageRes: 256, iconSize: 50, textSize: 13, margins: 18 },
+ thXl: { enabled: true, maxBadges: 6, dimensions: 192, image: 152, imageRes: 512, iconSize: 65, textSize: 13, margins: 18 },
thXxl: {
enabled: true,
maxBadges: 6,
dimensions: 232,
image: 192,
imageRes: 1024,
- faSize: 80,
+ iconSize: 80,
textSize: 14,
margins: 18
}
@@ -49,12 +48,12 @@ const VIEW_MODES: Record<string, ViewMode> = {
selector: 'app-navigation-view',
templateUrl: 'navigation-view.component.html',
styleUrls: ['navigation-view.component.scss'],
- imports: [BsDropdownModule, FaIconComponent, L10nTranslateDirective],
+ imports: [BsDropdownModule, LucideDynamicIcon, L10nTranslateDirective],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class NavigationViewComponent {
@Output() switchView = new EventEmitter<ViewMode>()
- protected readonly icons = { faTableCellsLarge, faThList }
+ protected readonly icons = { LucideGrid2X2, LucideList }
protected readonly galleryViewOptions = GALLERY_VIEW_OPTIONS
protected viewMode = this.getStoredViewMode()
diff --git a/frontend/src/app/common/components/platform-icon.component.html b/frontend/src/app/common/components/platform-icon.component.html
new file mode 100644
index 00000000..e4df58da
--- /dev/null
+++ b/frontend/src/app/common/components/platform-icon.component.html
@@ -0,0 +1,17 @@
+@switch (platformFamily) {
+ @case ('apple') {
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" focusable="false">
+ <path d="M319.1 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7-55.8 .9-115.1 44.5-115.1 133.2 0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zM262.5 104.5c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z" />
+ </svg>
+ }
+ @case ('windows') {
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" focusable="false">
+ <path d="M0 93.7l183.6-25.3 0 177.4-183.6 0 0-152.1zM0 418.3l183.6 25.3 0-175.2-183.6 0 0 149.9zm203.8 28l244.2 33.7 0-211.6-244.2 0 0 177.9zm0-380.6l0 180.1 244.2 0 0-213.8-244.2 33.7z" />
+ </svg>
+ }
+ @case ('linux') {
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" focusable="false">
+ <path d="M220.9 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5 .2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4 .2-.8 .7-.6 1.1 .3 1.3 2.3 1.1 3.4 1.7zM199 125c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6 .2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5 .1-1.3 .6-3.4 1.5-3.2 2.9 .1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72 .5-45.9 5.1-131.2-75.8-131.3-102.4-.2-76.8 103.4-77.9 135.2-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9 .6 7.9 1.2 11.8 1.2 8.1 2.5 15.7 .8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1 .6 2.3 1.4 4.6 2.5 6.7l0 .1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3 .4-8.2-4.4-17.3-15.5-29.7zM223.8 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183.1 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4 .7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4l0-.2c2.4-7.6 .6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7 .8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4 .6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1 .8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7 .4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6 .8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1 .3-.2 .7-.3 1-.5 .8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.4 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z" />
+ </svg>
+ }
+}
diff --git a/frontend/src/app/common/components/platform-icon.component.ts b/frontend/src/app/common/components/platform-icon.component.ts
new file mode 100644
index 00000000..f2992a46
--- /dev/null
+++ b/frontend/src/app/common/components/platform-icon.component.ts
@@ -0,0 +1,45 @@
+import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
+
+// Brand SVG paths from Font Awesome Free 7.3.1 by Fonticons, Inc.
+// Icons licensed under CC BY 4.0: https://fontawesome.com/license/free
+@Component({
+ selector: 'app-platform-icon',
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ templateUrl: './platform-icon.component.html',
+ host: {
+ class: 'platform-icon',
+ 'aria-hidden': 'true',
+ '[style.font-size]': 'size'
+ },
+ styles: [
+ `
+ :host {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ flex-shrink: 0;
+ line-height: 1;
+ vertical-align: -0.125em;
+ }
+
+ svg {
+ display: block;
+ width: 1em;
+ height: 1em;
+ fill: currentColor;
+ }
+ `
+ ]
+})
+export class PlatformIconComponent {
+ @Input({ required: true }) platform: string
+ @Input() size: string = null
+
+ protected get platformFamily(): 'apple' | 'windows' | 'linux' | null {
+ const platform = this.platform?.toLowerCase()
+ if (platform === 'darwin' || platform === 'mac') return 'apple'
+ if (platform?.startsWith('win')) return 'windows'
+ if (platform?.startsWith('linux')) return 'linux'
+ return null
+ }
+}
diff --git a/frontend/src/app/common/components/select/select.component.html b/frontend/src/app/common/components/select/select.component.html
index f8120bd5..7311f30f 100644
--- a/frontend/src/app/common/components/select/select.component.html
+++ b/frontend/src/app/common/components/select/select.component.html
@@ -19,7 +19,7 @@
<span class="ui-select-placeholder">{{ placeholder }}</span>
}
@if (allowClear && active) {
- <fa-icon class="cursor-pointer me-2" (click)="removeClick(active, $event)" [icon]="xMarkIcon"></fa-icon>
+ <svg class="ui-select-clear-icon cursor-pointer me-2" (click)="removeClick(active, $event)" [lucideIcon]="xMarkIcon"></svg>
}
<i class="dropdown-toggle"></i>
</span>
@@ -46,7 +46,7 @@
<ng-template #DefaultSelect let-active="active">
<div class="d-flex align-items-center">
<span class="ui-icon circle-primary-icon me-2">
- <fa-icon [icon]="itemIcon" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="itemIcon"></svg>
</span>
<div class="d-flex flex-column text-truncate">
<span class="text-truncate">{{ active.name }}</span>
@@ -60,7 +60,7 @@
<a class="dropdown-item cursor-pointer" href="javascript:void(0)" style="padding: 3px 5px">
<div class="d-flex align-items-center">
<span class="ui-icon circle-primary-icon me-2">
- <fa-icon [icon]="itemIcon" [fixedWidth]="false"></fa-icon>
+ <svg [lucideIcon]="itemIcon"></svg>
</span>
<div class="d-flex flex-column text-truncate">
<span class="text-truncate" [innerHTML]="o.name | highlight:i"></span>
diff --git a/frontend/src/app/common/components/select/select.component.scss b/frontend/src/app/common/components/select/select.component.scss
index 961fd24a..24f4c0eb 100644
--- a/frontend/src/app/common/components/select/select.component.scss
+++ b/frontend/src/app/common/components/select/select.component.scss
@@ -64,6 +64,7 @@
> .ui-select-match-text {
display: flex;
flex: 1 1 auto;
+ line-height: 1.4;
min-width: 0;
overflow: hidden;
@@ -73,11 +74,15 @@
}
}
- > fa-icon,
+ > .lucide,
> .dropdown-toggle {
flex: 0 0 auto;
}
+ > .ui-select-clear-icon {
+ font-size: 1rem;
+ }
+
> .caret {
position: absolute;
height: 10px;
diff --git a/frontend/src/app/common/components/select/select.component.ts b/frontend/src/app/common/components/select/select.component.ts
index 2db3daf4..4278d427 100644
--- a/frontend/src/app/common/components/select/select.component.ts
+++ b/frontend/src/app/common/components/select/select.component.ts
@@ -1,9 +1,8 @@
import { NgTemplateOutlet } from '@angular/common'
import { Component, ElementRef, EventEmitter, forwardRef, inject, Input, OnDestroy, OnInit, Output, TemplateRef } from '@angular/core'
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
-import { faQuestion, faXmark } from '@fortawesome/free-solid-svg-icons'
+import type { LucideIcon } from '@lucide/angular'
+import { LucideCircleQuestionMark, LucideDynamicIcon, LucideX } from '@lucide/angular'
import { Subscription } from 'rxjs'
import { debounceTime, distinctUntilChanged } from 'rxjs/operators'
import { OffClickDirective } from '../../directives/off-click.directive'
@@ -14,7 +13,7 @@ import { SelectItem } from './select.model'
selector: 'app-select',
templateUrl: 'select.component.html',
styleUrls: ['select.component.scss'],
- imports: [OffClickDirective, HighlightPipe, FaIconComponent, NgTemplateOutlet],
+ imports: [OffClickDirective, HighlightPipe, LucideDynamicIcon, NgTemplateOutlet],
providers: [
{
provide: NG_VALUE_ACCESSOR,
@@ -28,7 +27,7 @@ export class SelectComponent implements OnInit, OnDestroy, ControlValueAccessor
@Input({ required: true }) searchFunction: (search: string) => any
@Input() customTemplateOptions: TemplateRef<any>
@Input() customTemplateSelect: TemplateRef<any>
- @Input() itemIcon: IconDefinition = faQuestion
+ @Input() itemIcon: LucideIcon = LucideCircleQuestionMark
@Input() allowClear = true
@Input() placeholder = ''
@Input() idField = 'id'
@@ -39,7 +38,7 @@ export class SelectComponent implements OnInit, OnDestroy, ControlValueAccessor
@Output() removed = new EventEmitter<any>()
@Output() typed = new EventEmitter<any>()
@Output() opened = new EventEmitter<any>()
- protected xMarkIcon = faXmark
+ protected xMarkIcon = LucideX
public options: SelectItem[] = []
public itemObjects: SelectItem[] = []
public activeOption: SelectItem
diff --git a/frontend/src/app/layout/breadcrumb/breadcrumb.component.html b/frontend/src/app/layout/breadcrumb/breadcrumb.component.html
index d5067703..8e53944d 100644
--- a/frontend/src/app/layout/breadcrumb/breadcrumb.component.html
+++ b/frontend/src/app/layout/breadcrumb/breadcrumb.component.html
@@ -2,11 +2,10 @@
<div class="breadcrumb-content">
@for (item of levels; track $index) {
@if (!$first) {
- <fa-icon
+ <svg
[class.breadcrumb-mobile-hidden]="$index > 1"
- [icon]="icons.faChevronRight"
- [fixedWidth]="false">
- </fa-icon>
+ [lucideIcon]="icons.LucideChevronRight">
+ </svg>
}
<li
[class.breadcrumb-mobile-active]="$index === 1"
@@ -15,7 +14,7 @@
[routerLinkActiveOptions]="{matrixParams: 'ignored', queryParams: 'ignored', paths: 'exact', fragment: 'ignored'}">
<a [routerLink]="item.link">
@if ($first && breadcrumbIcon) {
- <fa-icon [icon]="breadcrumbIcon"></fa-icon>
+ <svg [lucideIcon]="breadcrumbIcon"></svg>
}
<span>{{ item.title }}</span>
</a>
diff --git a/frontend/src/app/layout/breadcrumb/breadcrumb.component.ts b/frontend/src/app/layout/breadcrumb/breadcrumb.component.ts
index 9d7c3d06..79116872 100644
--- a/frontend/src/app/layout/breadcrumb/breadcrumb.component.ts
+++ b/frontend/src/app/layout/breadcrumb/breadcrumb.component.ts
@@ -1,8 +1,7 @@
import { Component, inject, OnDestroy } from '@angular/core'
import { RouterLink, RouterLinkActive } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
-import { faChevronRight, faHome } from '@fortawesome/free-solid-svg-icons'
+import type { LucideIcon } from '@lucide/angular'
+import { LucideChevronRight, LucideDynamicIcon, LucideHouse } from '@lucide/angular'
import { Subscription } from 'rxjs'
import { LayoutService } from '../layout.service'
import { BreadCrumbUrl } from './breadcrumb.interfaces'
@@ -10,11 +9,11 @@ import { BreadCrumbUrl } from './breadcrumb.interfaces'
@Component({
selector: 'app-breadcrumb',
templateUrl: 'breadcrumb.component.html',
- imports: [RouterLink, RouterLinkActive, FaIconComponent]
+ imports: [RouterLink, RouterLinkActive, LucideDynamicIcon]
})
export class BreadcrumbComponent implements OnDestroy {
- protected readonly icons = { faChevronRight }
- protected breadcrumbIcon: IconDefinition = faHome
+ protected readonly icons = { LucideChevronRight }
+ protected breadcrumbIcon: LucideIcon = LucideHouse
protected levels: { link: string[] | string; title: string }[] = []
private readonly layout = inject(LayoutService)
private subscriptions: Subscription[] = []
diff --git a/frontend/src/app/layout/layout.interfaces.ts b/frontend/src/app/layout/layout.interfaces.ts
index 5fefaf61..90cdda6a 100644
--- a/frontend/src/app/layout/layout.interfaces.ts
+++ b/frontend/src/app/layout/layout.interfaces.ts
@@ -1,4 +1,4 @@
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
+import type { LucideIcon } from '@lucide/angular'
import { USER_PERMISSION } from '@sync-in-server/backend/src/applications/users/constants/user'
import { BehaviorSubject, Observable } from 'rxjs'
import { UserStatus } from '../applications/users/interfaces/user.interface'
@@ -49,7 +49,7 @@ export function isAppMenu(menu: AppMenuEntry): menu is AppMenu {
export interface AppMenu {
id?: USER_PERMISSION
title: string
- icon: IconDefinition
+ icon: LucideIcon
iconAnimated?: boolean
link: string
matchLink?: RegExp
@@ -71,7 +71,7 @@ export interface TabMenu {
// load component even if not showed
loadComponent?: boolean
components: any[]
- icon: IconDefinition | null
+ icon: LucideIcon | null
title: string | null
active: boolean
firstOfLasts?: boolean
diff --git a/frontend/src/app/layout/layout.service.ts b/frontend/src/app/layout/layout.service.ts
index 6fdb4146..b9b9c56c 100644
--- a/frontend/src/app/layout/layout.service.ts
+++ b/frontend/src/app/layout/layout.service.ts
@@ -1,8 +1,7 @@
import { HttpErrorResponse } from '@angular/common/http'
import { inject, Injectable, NgZone, signal, WritableSignal } from '@angular/core'
import { Title } from '@angular/platform-browser'
-import { FaConfig } from '@fortawesome/angular-fontawesome'
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
+import type { LucideIcon } from '@lucide/angular'
import { ContextMenuComponent, ContextMenuService } from '@perfectmemory/ngx-contextmenu'
import { L10nTranslationService } from 'angular-l10n'
import { BsModalRef, BsModalService, ModalContainerComponent, ModalOptions } from 'ngx-bootstrap/modal'
@@ -49,7 +48,7 @@ export class LayoutService {
// Used by the breadcrumb
public breadcrumbNav = new BehaviorSubject<BreadCrumbUrl>({ url: '' })
// Navigation breadcrumb icon
- public breadcrumbIcon = new BehaviorSubject<IconDefinition>(null)
+ public breadcrumbIcon = new BehaviorSubject<LucideIcon>(null)
// Modal section
public windows = new BehaviorSubject<AppWindow[]>([]) // minimized modals
public modalRefs = new Map<number | string, BsModalRef>()
@@ -58,7 +57,6 @@ export class LayoutService {
private readonly title = inject(Title)
private readonly ngZone = inject(NgZone)
private readonly translation = inject(L10nTranslationService)
- private readonly faConfig = inject(FaConfig)
private readonly bsModal = inject(BsModalService)
private readonly toastr = inject(ToastrService)
private readonly contextMenu = inject<ContextMenuService<any>>(ContextMenuService)
@@ -87,7 +85,6 @@ export class LayoutService {
constructor() {
setTheme('bs5')
- this.faConfig.fixedWidth = true
this.title.setTitle(APP_NAME)
this.preferTheme.subscribe((theme) => this.setTheme(theme))
}
@@ -276,7 +273,7 @@ export class LayoutService {
return languages
}
- setBreadcrumbIcon(icon: IconDefinition) {
+ setBreadcrumbIcon(icon: LucideIcon) {
this.breadcrumbIcon.next(icon)
}
diff --git a/frontend/src/app/layout/navbar/navbar.component.html b/frontend/src/app/layout/navbar/navbar.component.html
index 3a46fb59..23dd28cc 100644
--- a/frontend/src/app/layout/navbar/navbar.component.html
+++ b/frontend/src/app/layout/navbar/navbar.component.html
@@ -9,10 +9,10 @@
}
@if (leftSideBarIsOpen) {
<a (click)="navigateTo('back')" class="d-none d-md-flex navbar-button navbar-history-button navbar-history-button-left" role="button">
- <fa-icon [icon]="icons.faAngleLeft"></fa-icon>
+ <svg [lucideIcon]="icons.LucideChevronLeft"></svg>
</a>
<a (click)="navigateTo('next')" class="d-none d-md-flex navbar-button navbar-history-button navbar-history-button-right" role="button">
- <fa-icon [icon]="icons.faAngleRight"></fa-icon>
+ <svg [lucideIcon]="icons.LucideChevronRight"></svg>
</a>
}
<div class="navbar-breadcrumb">
diff --git a/frontend/src/app/layout/navbar/navbar.component.ts b/frontend/src/app/layout/navbar/navbar.component.ts
index 35e5bc42..95d1e363 100644
--- a/frontend/src/app/layout/navbar/navbar.component.ts
+++ b/frontend/src/app/layout/navbar/navbar.component.ts
@@ -1,7 +1,6 @@
import { Location } from '@angular/common'
import { Component, inject, OnDestroy } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faAngleLeft, faAngleRight } from '@fortawesome/free-solid-svg-icons'
+import { LucideChevronLeft, LucideChevronRight, LucideDynamicIcon } from '@lucide/angular'
import { Subscription } from 'rxjs'
import { logoIconUrl } from '../../applications/files/files.constants'
import { UserType } from '../../applications/users/interfaces/user.interface'
@@ -14,11 +13,11 @@ import { LayoutService } from '../layout.service'
@Component({
selector: 'app-navbar',
templateUrl: 'navbar.component.html',
- imports: [BreadcrumbComponent, FaIconComponent]
+ imports: [BreadcrumbComponent, LucideDynamicIcon]
})
export class NavBarComponent implements OnDestroy {
protected readonly allOnlineStatus = USER_ONLINE_STATUS_LIST
- protected readonly icons = { faAngleLeft, faAngleRight }
+ protected readonly icons = { LucideChevronLeft, LucideChevronRight }
protected logoIconUrl = logoIconUrl
protected leftSideBarIsOpen = true
protected user: UserType
diff --git a/frontend/src/app/layout/sidebar/components/selection.component.html b/frontend/src/app/layout/sidebar/components/selection.component.html
index e802c07d..38ea3bc5 100644
--- a/frontend/src/app/layout/sidebar/components/selection.component.html
+++ b/frontend/src/app/layout/sidebar/components/selection.component.html
@@ -4,10 +4,10 @@
<div class="sidebar-component-title-side">
@if (selectionType() === SPACES_PATH.FILES && store.filesSelection().length > 1) {
<button (click)="clearSelection()"
- class="btn btn-sm btn-default"
+ class="btn btn-default"
type="button"
aria-label="Clear selection">
- <fa-icon [icon]="faTimes"></fa-icon>
+ <svg [lucideIcon]="LucideX"></svg>
</button>
}
</div>
diff --git a/frontend/src/app/layout/sidebar/components/selection.component.ts b/frontend/src/app/layout/sidebar/components/selection.component.ts
index b8ab664a..b8afcdf0 100644
--- a/frontend/src/app/layout/sidebar/components/selection.component.ts
+++ b/frontend/src/app/layout/sidebar/components/selection.component.ts
@@ -1,6 +1,5 @@
import { ChangeDetectionStrategy, Component, computed, inject, Signal } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faTimes } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideX } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { FilesSelectionComponent } from '../../../applications/files/components/sidebar/files-selection.component'
import { FilesService } from '../../../applications/files/services/files.service'
@@ -21,7 +20,7 @@ import { StoreService } from '../../../store/store.service'
SpaceSelectionComponent,
TrashSelectionComponent,
LinkSelectionComponent,
- FaIconComponent,
+ LucideDynamicIcon,
L10nTranslateDirective
],
templateUrl: 'selection.component.html'
@@ -30,7 +29,7 @@ export class SelectionComponent {
protected readonly store = inject(StoreService)
private readonly filesService = inject(FilesService)
private readonly layout = inject(LayoutService)
- protected readonly faTimes = faTimes
+ protected readonly LucideX = LucideX
protected readonly SPACES_PATH = SPACES_PATH
protected readonly selectionType: Signal<(typeof SPACES_PATH)[keyof typeof SPACES_PATH]> = computed(() =>
this.setRepository(this.store.repository())
diff --git a/frontend/src/app/layout/sidebar/components/windows.component.html b/frontend/src/app/layout/sidebar/components/windows.component.html
index 74ea5e9c..cba9cbbc 100755
--- a/frontend/src/app/layout/sidebar/components/windows.component.html
+++ b/frontend/src/app/layout/sidebar/components/windows.component.html
@@ -3,8 +3,8 @@
<div class="sidebar-component-title-label" l10nTranslate>Windows Manager</div>
<div class="sidebar-component-title-side">
@if (windows.length) {
- <button (click)="onCloseAll()" class="btn btn-sm btn-default" type="button" aria-label="Close all windows">
- <fa-icon [icon]="icons.faTimes"></fa-icon>
+ <button (click)="onCloseAll()" class="btn btn-default" type="button" aria-label="Close all windows">
+ <svg [lucideIcon]="icons.LucideX"></svg>
</button>
}
</div>
@@ -16,7 +16,7 @@
<img [ngSrc]="modal.element.mimeUrl" alt="" width="28" height="28">
<div class="text-truncate fs-sm">{{ modal.element.name }}</div>
<button (click)="onClose($event, modal)" class="btn btn-xs btn-default ms-auto">
- <fa-icon [icon]="icons.faTimes"></fa-icon>
+ <svg class="fs-md" [lucideIcon]="icons.LucideX"></svg>
</button>
</div>
</div>
diff --git a/frontend/src/app/layout/sidebar/components/windows.component.ts b/frontend/src/app/layout/sidebar/components/windows.component.ts
index f719b7c2..186e2650 100755
--- a/frontend/src/app/layout/sidebar/components/windows.component.ts
+++ b/frontend/src/app/layout/sidebar/components/windows.component.ts
@@ -1,7 +1,6 @@
import { NgOptimizedImage } from '@angular/common'
import { Component, inject, OnDestroy } from '@angular/core'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faTimes } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideX } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { Subscription } from 'rxjs'
import { AutoResizeDirective } from '../../../common/directives/auto-resize.directive'
@@ -10,11 +9,11 @@ import { LayoutService } from '../../layout.service'
@Component({
selector: 'app-windows',
- imports: [AutoResizeDirective, FaIconComponent, L10nTranslateDirective, NgOptimizedImage],
+ imports: [AutoResizeDirective, LucideDynamicIcon, L10nTranslateDirective, NgOptimizedImage],
templateUrl: 'windows.component.html'
})
export class WindowsComponent implements OnDestroy {
- protected readonly icons = { faTimes }
+ protected readonly icons = { LucideX }
protected windows: AppWindow[] = []
private readonly layout = inject(LayoutService)
private readonly subscription: Subscription = null
diff --git a/frontend/src/app/layout/sidebar/sidebar.left.component.html b/frontend/src/app/layout/sidebar/sidebar.left.component.html
index 9b3b2b64..6ed4fa30 100644
--- a/frontend/src/app/layout/sidebar/sidebar.left.component.html
+++ b/frontend/src/app/layout/sidebar/sidebar.left.component.html
@@ -21,7 +21,7 @@
[class.active]="menu.isActive"
class="app-shortcut"
type="button">
- <fa-icon [animation]="menu.iconAnimated ? 'spin' : null" [icon]="menu.icon"></fa-icon>
+ <svg [class.icon-spin]="menu.iconAnimated" [lucideIcon]="menu.icon"></svg>
@if (menu.count) {
<span class="menu-badge-icon">
@if (menu.count.value | async; as count) {
@@ -39,7 +39,7 @@
(mouseleave)="restoreMenuTitle()"
class="app-shortcut"
type="button">
- <fa-icon [icon]="icons.faUserSecret"></fa-icon>
+ <svg [lucideIcon]="icons.LucideVenetianMask"></svg>
</button>
}
</div>
@@ -76,11 +76,8 @@
}
</ng-template>
<ng-template #MenuTemplate let-menu="menu">
- <fa-icon [icon]="menu.icon" [animation]="menu.iconAnimated ? 'spin' : null"></fa-icon>
+ <svg [lucideIcon]="menu.icon" [class.icon-spin]="menu.iconAnimated"></svg>
<span l10nTranslate>{{ menu.title }}</span>
- @if (menu.hasSubmenus) {
- <span class="ms-auto opacity-75"><fa-icon [icon]="icons.faChevronDown" size="sm"></fa-icon></span>
- }
@if (menu.count) {
<span class="menu-badge">
@if (menu.count.value | async; as count) {
diff --git a/frontend/src/app/layout/sidebar/sidebar.left.component.ts b/frontend/src/app/layout/sidebar/sidebar.left.component.ts
index c65845b5..2b1f3262 100644
--- a/frontend/src/app/layout/sidebar/sidebar.left.component.ts
+++ b/frontend/src/app/layout/sidebar/sidebar.left.component.ts
@@ -1,8 +1,7 @@
import { AsyncPipe, NgTemplateOutlet } from '@angular/common'
import { Component, inject, OnDestroy } from '@angular/core'
import { ResolveEnd, Router, RouterLink } from '@angular/router'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faChevronDown, faUserSecret } from '@fortawesome/free-solid-svg-icons'
+import { LucideDynamicIcon, LucideVenetianMask } from '@lucide/angular'
import { L10nTranslateDirective } from 'angular-l10n'
import { Subscription } from 'rxjs'
import { filter } from 'rxjs/operators'
@@ -22,11 +21,11 @@ import { LayoutService } from '../layout.service'
@Component({
selector: 'app-sidebar-left',
templateUrl: 'sidebar.left.component.html',
- imports: [RouterLink, FaIconComponent, L10nTranslateDirective, AsyncPipe, NgTemplateOutlet]
+ imports: [RouterLink, LucideDynamicIcon, L10nTranslateDirective, AsyncPipe, NgTemplateOutlet]
})
export class SideBarLeftComponent implements OnDestroy {
protected readonly store = inject(StoreService)
- protected readonly icons = { faUserSecret, faChevronDown }
+ protected readonly icons = { LucideVenetianMask }
protected readonly appName = APP_NAME
protected logoIconUrl = logoIconUrl
protected dynamicTitle: string
diff --git a/frontend/src/app/layout/sidebar/sidebar.right.component.html b/frontend/src/app/layout/sidebar/sidebar.right.component.html
index d976ee89..787c5fcd 100644
--- a/frontend/src/app/layout/sidebar/sidebar.right.component.html
+++ b/frontend/src/app/layout/sidebar/sidebar.right.component.html
@@ -23,13 +23,13 @@
<div class="menu">
@if (!networkIsOnline) {
<a class="bg-warning">
- <fa-icon [icon]="icons.faWifi" class="text-white"></fa-icon>
+ <svg [lucideIcon]="icons.LucideWifi" class="text-white"></svg>
</a>
}
@for (tab of tabs; track tab.label) {
@if (tab.icon && (!tab.showOnCount || tab.showOnCount && tab.count && (tab.count.value | async))) {
<a [class.mt-auto]="tab.firstOfLasts" [class.active]="visible && tab.active" (click)="setTabVisible(tab.label)">
- <fa-icon [icon]="tab.icon"></fa-icon>
+ <svg [lucideIcon]="tab.icon"></svg>
@if (tab.count && tab.count.value | async; as count) {
<span class="menu-badge">
<span class="badge bg-{{tab.count.level}}">{{ count }}</span>
diff --git a/frontend/src/app/layout/sidebar/sidebar.right.component.ts b/frontend/src/app/layout/sidebar/sidebar.right.component.ts
index 98d8f240..745a0cac 100644
--- a/frontend/src/app/layout/sidebar/sidebar.right.component.ts
+++ b/frontend/src/app/layout/sidebar/sidebar.right.component.ts
@@ -1,9 +1,7 @@
import { AsyncPipe, NgComponentOutlet } from '@angular/common'
import { Component, computed, inject, OnDestroy } from '@angular/core'
import { toObservable } from '@angular/core/rxjs-interop'
-import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faBell, faFlag, faUser, faWindowRestore } from '@fortawesome/free-regular-svg-icons'
-import { faWifi } from '@fortawesome/free-solid-svg-icons'
+import { LucideBell, LucideDynamicIcon, LucideFlag, LucidePanelsTopLeft, LucideUserRound, LucideWifi } from '@lucide/angular'
import { FileTask } from '@sync-in-server/backend/src/applications/files/models/file-task'
import { USER_ONLINE_STATUS } from '@sync-in-server/backend/src/applications/users/constants/user'
import { L10nTranslateDirective } from 'angular-l10n'
@@ -20,7 +18,7 @@ import { WindowsComponent } from './components/windows.component'
@Component({
selector: 'app-sidebar-right',
- imports: [FaIconComponent, L10nTranslateDirective, NgComponentOutlet, AsyncPipe],
+ imports: [LucideDynamicIcon, L10nTranslateDirective, NgComponentOutlet, AsyncPipe],
templateUrl: 'sidebar.right.component.html'
})
export class SideBarRightComponent implements OnDestroy {
@@ -29,7 +27,7 @@ export class SideBarRightComponent implements OnDestroy {
protected tabs: TabMenu[] = []
protected theme = themeLight
protected networkIsOnline = true
- protected readonly icons = { faWifi }
+ protected readonly icons = { LucideWifi }
private readonly layout = inject(LayoutService)
private readonly store = inject(StoreService)
private subscriptions: Subscription[] = []
@@ -41,7 +39,7 @@ export class SideBarRightComponent implements OnDestroy {
{
label: TAB_MENU.ONLINES,
components: [UserOnlinesComponent],
- icon: faUser,
+ icon: LucideUserRound,
title: null,
count: {
value: toObservable(computed(() => this.store.onlineUsers().filter((u) => u.onlineStatus !== USER_ONLINE_STATUS.OFFLINE).length)),
@@ -53,7 +51,7 @@ export class SideBarRightComponent implements OnDestroy {
{
label: TAB_MENU.NOTIFICATIONS,
components: [NotificationsComponent],
- icon: faBell,
+ icon: LucideBell,
title: null,
count: {
value: toObservable(computed(() => this.store.unreadNotifications().length)),
@@ -64,7 +62,7 @@ export class SideBarRightComponent implements OnDestroy {
{
label: TAB_MENU.TASKS,
components: [FilesTasksComponent],
- icon: faFlag,
+ icon: LucideFlag,
title: null,
count: {
value: combineLatest([this.store.filesActiveTasks.pipe(map((tasks: FileTask[]) => tasks.length)), this.store.clientSyncTasksCount]).pipe(
@@ -79,7 +77,7 @@ export class SideBarRightComponent implements OnDestroy {
{
label: TAB_MENU.WINDOWS,
components: [WindowsComponent],
- icon: faWindowRestore,
+ icon: LucidePanelsTopLeft,
title: null,
count: { value: this.layout.windows.pipe(map((modals: AppWindow[]) => modals.length)), level: 'maroon' },
showOnCount: true,
diff --git a/frontend/src/styles/components/_app.scss b/frontend/src/styles/components/_app.scss
index f663ca2d..ada14807 100755
--- a/frontend/src/styles/components/_app.scss
+++ b/frontend/src/styles/components/_app.scss
@@ -137,6 +137,7 @@
.app-table {
--app-table-cell-inline-padding: .5rem;
+ --app-table-leading-icon-gap: .3rem;
--app-table-row-height: 36px;
@extend .table;
@@ -211,8 +212,19 @@
}
tbody td:first-child {
- img, fa-icon {
- margin-right: 0.3rem;
+ img, .lucide {
+ margin-inline-end: var(--app-table-leading-icon-gap);
+ }
+
+ :where(
+ [class^='circle-'][class*='-icon'],
+ [class*=' circle-'][class*='-icon']
+ ) {
+ margin-inline-end: var(--app-table-leading-icon-gap);
+
+ > .lucide {
+ margin-inline-end: 0;
+ }
}
}
@@ -222,6 +234,9 @@
border-top: none;
.badge {
font-size: 0.7rem;
+ > .lucide {
+ font-size: $font-size-md;
+ }
}
}
}
@@ -243,16 +258,20 @@
}
.btn {
+ min-height: 31px;
+ min-width: 35px;
- > fa-icon {
- font-size: .875rem;
+ > .lucide {
+ font-size: $font-size-xl;
}
span {
+ display: inline-flex;
+ align-items: center;
font-size: $font-size-xs;
- fa-icon {
- font-size: $font-size-md;
+ .lucide {
+ font-size: $font-size-2xl;
margin-right: 0.2rem;
}
}
@@ -270,7 +289,7 @@
display: flex;
align-items: center;
- fa-icon {
+ .lucide {
margin-right: 0.4rem;
font-size: $font-size-md;
}
@@ -316,7 +335,7 @@ app-input-filter {
position: absolute;
left: 9px;
pointer-events: none;
- font-size: $font-size-xs;
+ font-size: $font-size-sm;
}
.clear-btn {
@@ -332,8 +351,8 @@ app-input-filter {
background-color: transparent;
cursor: pointer;
- fa-icon {
- font-size: $font-size-xs;
+ .lucide {
+ font-size: $font-size-md;
}
:focus-visible {
@@ -422,6 +441,10 @@ app-input-filter {
}
}
+.app-small-card {
+ padding: .2rem;
+}
+
.app-collabora-online-border {
border-top: .5px solid mix($sidebar-light-icons-menu-hover-bg, $primary, 50%);
}
diff --git a/frontend/src/styles/components/_badges.scss b/frontend/src/styles/components/_badges.scss
index cf61bc8f..a159ec39 100644
--- a/frontend/src/styles/components/_badges.scss
+++ b/frontend/src/styles/components/_badges.scss
@@ -6,10 +6,14 @@
) {
$light-bg: mix(rgba($white, 0.92), mix($white, $tone, $light-bg-mix), 72%);
$light-border: mix($white, $tone, $light-border-mix);
- $light-fg: if(sass($light-text != null): $light-text; else: mix($tone, $black, 90%));
+ $light-fg: mix($tone, $black, 90%);
$light-bg-full: $tone;
$light-border-full: $tone;
+ @if $light-text != null {
+ $light-fg: $light-text;
+ }
+
--badge-bg: #{$light-bg};
--badge-border: #{$light-border};
--badge-fg: #{$light-fg};
@@ -57,7 +61,7 @@
--badge-bg-full: #{$gray};
--badge-border-full: #{$gray};
- display: inline-block;
+ display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.2rem;
@@ -89,7 +93,7 @@
color: white !important;
}
- fa-icon {
+ .lucide {
font-size: $font-size-base;
}
@@ -154,12 +158,20 @@ $badge-dark-variants: (
$bg-mix: map-get($config, bg-mix);
$border-mix: map-get($config, border-mix);
+ @if $bg-mix == null {
+ $bg-mix: 84%;
+ }
+
+ @if $border-mix == null {
+ $border-mix: 66%;
+ }
+
@include badge-variant(
$selector,
semantic-tone(map-get($config, tone)),
map-get($config, text),
- if(sass($bg-mix == null): 84%; else: $bg-mix),
- if(sass($border-mix == null): 66%; else: $border-mix)
+ $bg-mix,
+ $border-mix
);
}
diff --git a/frontend/src/styles/components/_boxes.scss b/frontend/src/styles/components/_boxes.scss
index db67a613..84af552f 100644
--- a/frontend/src/styles/components/_boxes.scss
+++ b/frontend/src/styles/components/_boxes.scss
@@ -11,7 +11,7 @@
height: auto;
padding: 0.3rem 0.8rem;
- > fa-icon {
+ > .lucide {
font-size: $font-size-base;
&:first-child {
@@ -48,7 +48,7 @@
line-height: 1;
}
- > fa-icon {
+ > .lucide {
color: $gray;
font-size: $font-size-base;
}
diff --git a/frontend/src/styles/components/_buttons.scss b/frontend/src/styles/components/_buttons.scss
index 691bdff9..55aade8b 100644
--- a/frontend/src/styles/components/_buttons.scss
+++ b/frontend/src/styles/components/_buttons.scss
@@ -6,7 +6,12 @@
) {
$bg: rgba(mix(rgba($white, 0.92), mix($white, $tone, $light-bg-mix), 68%), 0.95);
$border: mix($white, $tone, $light-border-mix - 4%);
- $fg: if(sass($light-text != null): $light-text; else: mix($tone, $black, 90%));
+ $fg: mix($tone, $black, 90%);
+
+ @if $light-text != null {
+ $fg: $light-text;
+ }
+
$hover-bg: rgba(mix(rgba($white, 0.96), mix($white, $tone, $light-bg-mix - 8%), 62%), 0.98);
$hover-border: mix($white, $tone, $light-border-mix - 16%);
$hover-fg: mix($fg, $black, 88%);
@@ -56,6 +61,11 @@
}
.btn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: .25rem;
+ min-height: calc(#{$btn-line-height * 1em} + var(--bs-btn-padding-y) + var(--bs-btn-padding-y) + var(--bs-btn-border-width) + var(--bs-btn-border-width));
transition: background-color .2s ease, border-color .2s ease, color .2s ease;
box-shadow: none !important;
}
@@ -112,7 +122,7 @@
.btn-custom {
@extend .btn-secondary;
- margin-right: 0.2rem;
+ margin-right: 0.15rem;
transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
@@ -175,12 +185,20 @@ $button-dark-variants: (
$bg-mix: map-get($config, bg-mix);
$border-mix: map-get($config, border-mix);
+ @if $bg-mix == null {
+ $bg-mix: 84%;
+ }
+
+ @if $border-mix == null {
+ $border-mix: 66%;
+ }
+
@include btn-variant(
$selector,
semantic-tone(map-get($config, tone)),
map-get($config, text),
- if(sass($bg-mix == null): 84%; else: $bg-mix),
- if(sass($border-mix == null): 66%; else: $border-mix)
+ $bg-mix,
+ $border-mix
);
}
diff --git a/frontend/src/styles/components/_colors.scss b/frontend/src/styles/components/_colors.scss
index e60a1a52..3d0f194d 100644
--- a/frontend/src/styles/components/_colors.scss
+++ b/frontend/src/styles/components/_colors.scss
@@ -54,7 +54,12 @@ $semantic-dark-triplets: (
@function semantic-dark($name, $field) {
$triplet: map-get($semantic-dark-triplets, $name);
- @return if(not sass($triplet == null): map-get($triplet, $field));
+
+ @if $triplet != null {
+ @return map-get($triplet, $field);
+ }
+
+ @return null;
}
@function semantic-ink($tone, $mix-amount: 90%) {
diff --git a/frontend/src/styles/components/_contextmenu.scss b/frontend/src/styles/components/_contextmenu.scss
index a5eb5a2b..6770c1c1 100644
--- a/frontend/src/styles/components/_contextmenu.scss
+++ b/frontend/src/styles/components/_contextmenu.scss
@@ -24,7 +24,7 @@
display: flex;
align-items: center;
- > fa-icon {
+ > .lucide {
margin-right: 0.4rem;
font-size: $font-size-md;
}
diff --git a/frontend/src/styles/components/_header.scss b/frontend/src/styles/components/_header.scss
index 8f1b4f52..efbeeaee 100644
--- a/frontend/src/styles/components/_header.scss
+++ b/frontend/src/styles/components/_header.scss
@@ -82,7 +82,7 @@
}
.navbar-history-button {
- font-size: $font-size-lg;
+ font-size: $font-size-2xl;
color: $sidebar-light-apps-menu-title-color;
&:hover,
@@ -240,6 +240,7 @@
}
> a {
+ display: flex;
color: darken($gray-light, 10%);
text-decoration: none;
margin-left: .3rem;
@@ -248,13 +249,14 @@
color: $gray-lightest;
}
- > fa-icon {
+ > .lucide {
font-size: $font-size-xl;
}
}
}
- > fa-icon {
+ > .lucide {
+ font-size: $font-size-xl;
color: $sidebar-light-apps-menu-title-color;
margin-left: .3rem;
}
diff --git a/frontend/src/styles/components/_icons.scss b/frontend/src/styles/components/_icons.scss
new file mode 100644
index 00000000..6fa20cce
--- /dev/null
+++ b/frontend/src/styles/components/_icons.scss
@@ -0,0 +1,21 @@
+.icon-spin {
+ animation: icon-spin 1s infinite linear;
+ transform-origin: center;
+}
+
+.icon-spin-pulse {
+ animation: icon-spin .6s infinite steps(8);
+ transform-origin: center;
+
+ @for $index from 1 through 8 {
+ > path:nth-of-type(#{$index}) {
+ opacity: $index * .125;
+ }
+ }
+}
+
+@keyframes icon-spin {
+ to {
+ transform: rotate(360deg);
+ }
+}
diff --git a/frontend/src/styles/components/_links.scss b/frontend/src/styles/components/_links.scss
index 7c03d15b..7bdc5472 100755
--- a/frontend/src/styles/components/_links.scss
+++ b/frontend/src/styles/components/_links.scss
@@ -13,6 +13,10 @@
box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}
+ .link-error-icon {
+ font-size: 5rem;
+ }
+
.resource {
display: flex;
flex-direction: column;
@@ -38,7 +42,7 @@
border-radius: 1rem;
margin: .8rem;
- fa-icon {
+ .circle-primary-icon {
width: 80px;
height: 80px;
font-size: 2.5rem;
@@ -50,8 +54,12 @@
margin-bottom: 0.3rem;
margin-top: 0.6rem;
- fa-icon {
- font-size: $font-size-xl;
+ button {
+ min-height: 40px;
+
+ .lucide {
+ font-size: $font-size-3xl;
+ }
}
}
diff --git a/frontend/src/styles/components/_mixins.scss b/frontend/src/styles/components/_mixins.scss
index f43f4fdc..b006c5d9 100644
--- a/frontend/src/styles/components/_mixins.scss
+++ b/frontend/src/styles/components/_mixins.scss
@@ -79,7 +79,7 @@
border: 1px solid var(--circle-icon-border, transparent);
background-color: var(--circle-icon-bg, transparent);
color: var(--circle-icon-fg, inherit);
- font-size: $font-size-lg;
+ font-size: 1rem;
line-height: 1;
vertical-align: middle;
border-radius: 50%;
diff --git a/frontend/src/styles/components/_modal.scss b/frontend/src/styles/components/_modal.scss
index 1e1a623c..d31f698d 100644
--- a/frontend/src/styles/components/_modal.scss
+++ b/frontend/src/styles/components/_modal.scss
@@ -14,6 +14,7 @@
.modal-title {
display: flex;
+ align-items: center;
font-size: $font-size-base;
overflow: hidden;
@@ -21,8 +22,8 @@
@include text-truncate-utility;
}
- > fa-icon {
- font-size: $font-size-md;
+ > .lucide {
+ font-size: $font-size-xl;
margin-right: 0.4rem;
}
@@ -70,6 +71,10 @@
align-items: center;
gap: .45rem;
min-width: 0;
+
+ .lucide {
+ font-size: $font-size-lg;
+ }
}
.app-tab-label {
diff --git a/frontend/src/styles/components/_profile.scss b/frontend/src/styles/components/_profile.scss
index 505db8fa..9e7dc866 100644
--- a/frontend/src/styles/components/_profile.scss
+++ b/frontend/src/styles/components/_profile.scss
@@ -36,6 +36,10 @@
margin: 0.4rem 0.6rem 0.2rem;
flex: 1 1 auto !important;
font-size: $font-size-sm;
+
+ .lucide {
+ font-size: $font-size-sm;
+ }
}
.profile-sync-in-brand {
diff --git a/frontend/src/styles/components/_recents.scss b/frontend/src/styles/components/_recents.scss
index ceddcd50..07c8f84c 100644
--- a/frontend/src/styles/components/_recents.scss
+++ b/frontend/src/styles/components/_recents.scss
@@ -45,7 +45,7 @@
.recents-widget-card__title {
display: inline-block;
line-height: 1.05;
- font-size: $font-size-base;
+ font-size: $font-size-sm;
font-weight: 500;
user-select: none;
}
@@ -66,6 +66,13 @@
font-size: $font-size-base;
}
+.recents-widget-card__title-icon,
+.recents-widget-card__toggle {
+ > .lucide {
+ font-size: $font-size-xl;
+ }
+}
+
.recents-widget-card__body {
padding: 0.48rem 0.48rem 0.52rem;
}
@@ -145,6 +152,10 @@
align-items: center;
text-align: center;
padding: 0.85rem;
+
+ > .lucide {
+ font-size: 1.5rem;
+ }
}
@keyframes recent-card-enter {
diff --git a/frontend/src/styles/components/_search.scss b/frontend/src/styles/components/_search.scss
index 387361a6..14020e2e 100644
--- a/frontend/src/styles/components/_search.scss
+++ b/frontend/src/styles/components/_search.scss
@@ -8,10 +8,15 @@
.search-clear-btn {
position: absolute;
- top: 6px;
+ top: 50%;
right: 45px;
z-index: 1001;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ transform: translateY(-50%);
font-size: $font-size-md;
+ line-height: 1;
cursor: pointer;
}
diff --git a/frontend/src/styles/components/_sidebar_left.scss b/frontend/src/styles/components/_sidebar_left.scss
index 0ca56b00..9918c1b5 100755
--- a/frontend/src/styles/components/_sidebar_left.scss
+++ b/frontend/src/styles/components/_sidebar_left.scss
@@ -109,8 +109,9 @@
background: transparent;
cursor: pointer;
- > fa-icon {
- font-size: $font-size-lg;
+ > .lucide {
+ font-size: $font-size-xl;
+ stroke-width: 2.5;
}
.menu-badge-icon {
@@ -218,7 +219,7 @@
padding-left: 10px;
font-size: $font-size-sm;
- fa-icon {
+ .lucide {
font-size: $font-size-base;
}
}
@@ -233,18 +234,17 @@
margin: 0 6px;
padding: 0 10px;
border-radius: $btn-border-radius;
+ font-weight: 450;
max-height: none;
@include text-truncate-utility;
@include no-select-pointer-utility;
- > fa-icon {
- font-size: $font-size-lg;
+ > .lucide {
+ font-size: $font-size-xl;
+ stroke-width: 2.5;
margin-right: 0;
- width: .95rem;
- min-width: .95rem;
display: inline-flex;
justify-content: center;
- opacity: .88;
}
.menu-badge {
@@ -252,7 +252,6 @@
font-size: $font-size-xs;
}
}
-
}
}
}
diff --git a/frontend/src/styles/components/_sidebar_right.scss b/frontend/src/styles/components/_sidebar_right.scss
index c1ef7024..09a2483c 100755
--- a/frontend/src/styles/components/_sidebar_right.scss
+++ b/frontend/src/styles/components/_sidebar_right.scss
@@ -31,6 +31,10 @@
}
.sidebar-component-title {
+ .lucide {
+ font-size: 1.0625rem;
+ }
+
> span {
margin-right: auto;
margin-left: auto;
@@ -117,7 +121,7 @@
border-radius: calc(#{$border-radius-base} + #{$icon-item-inset});
background-clip: content-box !important;
- > fa-icon {
+ > .lucide {
font-size: $font-size-xl;
}
diff --git a/frontend/src/styles/components/_tasks.scss b/frontend/src/styles/components/_tasks.scss
index 4b33b607..41ea22a1 100755
--- a/frontend/src/styles/components/_tasks.scss
+++ b/frontend/src/styles/components/_tasks.scss
@@ -35,16 +35,25 @@ $task-progress-height: 1.35rem;
&__header {
align-items: center;
display: flex;
- gap: .25rem;
+ gap: .2rem;
min-width: 0;
}
&__status,
&__operation {
- flex: 0 0 .95rem;
+ flex: 0 0 $font-size-lg;
+ }
+
+ &__status,
+ &__operation > .lucide {
+ font-size: $font-size-lg;
}
&__operation {
+ align-items: center;
+ display: inline-flex;
+ justify-content: center;
+ line-height: 1;
opacity: .85;
}
@@ -57,6 +66,7 @@ $task-progress-height: 1.35rem;
}
&__name {
+ margin-left: .2rem;
flex: 1 1 auto;
min-width: 0;
}
diff --git a/frontend/src/styles/components/_theme_dark.scss b/frontend/src/styles/components/_theme_dark.scss
index 85f3b7c9..cba6abc5 100755
--- a/frontend/src/styles/components/_theme_dark.scss
+++ b/frontend/src/styles/components/_theme_dark.scss
@@ -18,7 +18,7 @@
background: $sidebar-dark-apps-menu-hover-bg;
color: $sidebar-dark-apps-menu-hover-color;
- > fa-icon:first-child {
+ > .lucide:first-child {
color: $primary;
}
}
@@ -47,7 +47,7 @@
background: $sidebar-dark-apps-menu-hover-bg;
color: $sidebar-dark-apps-menu-hover-color;
- > fa-icon:first-child {
+ > .lucide:first-child {
color: $primary;
}
}
@@ -197,7 +197,7 @@
}
}
.btn-custom {
- fa-icon,
+ .lucide,
span {
color: inherit !important;
}
diff --git a/frontend/src/styles/components/_theme_light.scss b/frontend/src/styles/components/_theme_light.scss
index a9e095fe..ef6318d4 100755
--- a/frontend/src/styles/components/_theme_light.scss
+++ b/frontend/src/styles/components/_theme_light.scss
@@ -23,7 +23,7 @@
border-color: $light-sidebar-mini-active-border;
color: $navy;
- > fa-icon:first-child {
+ > .lucide:first-child {
color: $light-sidebar-mini-active-icon;
}
}
@@ -62,7 +62,7 @@
font-weight: 500;
color: $navy;
- > fa-icon:first-child {
+ > .lucide:first-child {
color: $light-sidebar-mini-active-icon;
}
}
@@ -223,8 +223,7 @@
}
}
.btn-custom {
- fa-icon,
- span {
+ .lucide, span {
color: inherit !important;
}
@@ -386,9 +385,9 @@
--sync-client-card-selected-border: #{$light-dialog-check-card-hover-border-color};
--sync-client-details-border: #{$light-dialog-check-card-border-color};
--sync-client-details-bg: linear-gradient(
- 158deg,
- #{mix($theme-light-panel-bg, $white, 74%)} 0%,
- #{mix($light-dialog-tab-card-bg, $theme-light-panel-bg, 68%)} 100%
+ 158deg,
+ #{mix($theme-light-panel-bg, $white, 74%)} 0%,
+ #{mix($light-dialog-tab-card-bg, $theme-light-panel-bg, 68%)} 100%
);
--sync-client-subtle-color: #{$light-text-muted-color};
--sync-client-paths-count-fg: #{$white};
diff --git a/frontend/src/styles/components/_tree.scss b/frontend/src/styles/components/_tree.scss
index 54a86441..f6a189a1 100644
--- a/frontend/src/styles/components/_tree.scss
+++ b/frontend/src/styles/components/_tree.scss
@@ -2,28 +2,40 @@
@return "rgb(#{red($hexColor)},#{green($hexColor)},#{blue($hexColor)})";
}
-$tree-root-personal-icon: 'M448 448L64 448c-35.3 0-64-28.7-64-64l0-176 512 0 0 176c0 35.3-28.7 64-64 64zm64-288L0 160 0 96C0 60.7 28.7 32 64 32l138.7 0c13.8 0 27.3 4.5 38.4 12.8l38.4 28.8c5.5 4.2 12.3 6.4 19.2 6.4L448 80c35.3 0 64 28.7 64 64l0 16z';
-$tree-root-spaces-icon: 'M232.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z';
-$tree-root-shares-icon: 'M384 192c53 0 96-43 96-96s-43-96-96-96-96 43-96 96c0 5.4 .5 10.8 1.3 16L159.6 184.1c-16.9-15-39.2-24.1-63.6-24.1-53 0-96 43-96 96s43 96 96 96c24.4 0 46.6-9.1 63.6-24.1L289.3 400c-.9 5.2-1.3 10.5-1.3 16 0 53 43 96 96 96s96-43 96-96-43-96-96-96c-24.4 0-46.6 9.1-63.6 24.1L190.7 272c.9-5.2 1.3-10.5 1.3-16s-.5-10.8-1.3-16l129.7-72.1c16.9 15 39.2 24.1 63.6 24.1z';
+$tree-folder-icon: '<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>';
+$tree-layers-icon: '<path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"/><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"/><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"/>';
+$tree-shares-icon: '<circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" x2="15.42" y1="13.51" y2="17.49"/><line x1="15.41" x2="8.59" y1="6.51" y2="10.49"/>';
+$tree-caret-icon: '<path d="m9 18 6-6-6-6"/>';
+$tree-file-icon: '<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/>';
+
+@mixin lucide-content($color, $icon, $filled: false, $view-box: '0 0 24 24', $stroke-width: 2.25) {
+ $fill: 'none';
+
+ @if $filled {
+ $fill: hexToRGBString($color);
+ }
+
+ content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="#{$view-box}" fill="#{$fill}" stroke="#{hexToRGBString($color)}" stroke-width="#{$stroke-width}" stroke-linecap="round" stroke-linejoin="round">#{$icon}</svg>');
+}
@mixin directory($color) {
- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#{hexToRGBString($color)}" d="M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8L243.2 57.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"/></svg>');
+ @include lucide-content($color, $tree-folder-icon, $filled: true, $stroke-width: 2);
display: inline-block;
- width: 24px;
+ width: 25px;
}
@mixin caret($color) {
- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="#{hexToRGBString($color)}" d="M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"/></svg>');
+ @include lucide-content($color, $tree-caret-icon, $view-box: '7 4 10 16');
display: inline-block;
- width: 8px;
+ width: 7px;
position: absolute;
- left: 4px;
- top: 6px;
+ left: 5px;
+ top: 7px;
}
@mixin tree-root-icon($color, $path) {
- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#{hexToRGBString($color)}" d="#{$path}"/></svg>');
- width: 13px;
+ @include lucide-content($color, $path);
+ width: 16px;
position: absolute;
left: 50%;
top: 50%;
@@ -33,7 +45,7 @@ $tree-root-shares-icon: 'M384 192c53 0 96-43 96-96s-43-96-96-96-96 43-96 96c0 5.
@mixin tree-root($color, $path) {
.toggle-children-wrapper .toggle-children {
width: 26px;
- height: 24px;
+ height: 26px;
border-radius: 0.25rem;
background-color: $color;
@@ -52,9 +64,9 @@ $tree-root-shares-icon: 'M384 192c53 0 96-43 96-96s-43-96-96-96-96 43-96 96c0 5.
}
@mixin file($color) {
- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#{hexToRGBString($color)}" d="M 384 442.876 C 392.8 442.876 400 436.406 400 428.5 L 400 169.751 L 320 169.751 C 302.3 169.751 288 156.902 288 141 L 288 69.125 L 128 69.125 C 119.2 69.125 112 75.594 112 83.5 L 112 428.5 C 112 436.406 119.2 442.876 128 442.876 L 384 442.876 Z M 64 83.5 C 64 51.785 92.7 26 128 26 L 293.5 26 C 310.5 26 326.8 32.019 338.8 42.801 L 429.3 124.109 C 441.3 134.891 448 149.534 448 164.808 L 448 428.5 C 448 460.215 419.3 486 384 486 L 128 486 C 92.7 486 64 460.215 64 428.5 L 64 83.5 Z"/></svg>');
+ @include lucide-content($color, $tree-file-icon, $view-box: '2 2 20 20');
display: inline-block;
- width: 24px;
+ width: 23px;
}
.copy-move-location-icon {
@@ -62,8 +74,8 @@ $tree-root-shares-icon: 'M384 192c53 0 96-43 96-96s-43-96-96-96-96 43-96 96c0 5.
width: 1.5rem;
height: 1.5rem;
- fa-icon {
- font-size: 0.875em;
+ .lucide {
+ font-size: $font-size-md;
}
}
@@ -175,15 +187,15 @@ $tree-root-shares-icon: 'M384 192c53 0 96-43 96-96s-43-96-96-96-96 43-96 96c0 5.
}
.tree-root-personal {
- @include tree-root($primary, $tree-root-personal-icon);
+ @include tree-root($primary, $tree-folder-icon);
}
.tree-root-spaces {
- @include tree-root($primary, $tree-root-spaces-icon);
+ @include tree-root($primary, $tree-layers-icon);
}
.tree-root-shares {
- @include tree-root($purple, $tree-root-shares-icon);
+ @include tree-root($purple, $tree-shares-icon);
}
.toggle-children-shared {
diff --git a/frontend/src/styles/components/_wizard.scss b/frontend/src/styles/components/_wizard.scss
index ba49ae6f..083ecb24 100644
--- a/frontend/src/styles/components/_wizard.scss
+++ b/frontend/src/styles/components/_wizard.scss
@@ -15,6 +15,10 @@
font-size: $font-size-base !important;
}
+ .sync-wizard-reset-icon {
+ font-size: 2rem;
+ }
+
tbody tr {
border-bottom: 1px solid #9faecb !important;
}
diff --git a/frontend/src/styles/components/index.scss b/frontend/src/styles/components/index.scss
index 153e9bf0..b416b05e 100644
--- a/frontend/src/styles/components/index.scss
+++ b/frontend/src/styles/components/index.scss
@@ -21,6 +21,7 @@
@import 'typehead';
@import 'tasks';
@import 'circles';
+@import 'icons';
@import 'miscellaneous';
@import 'texts';
@import 'backgrounds';
diff --git a/frontend/src/styles/variables.scss b/frontend/src/styles/variables.scss
index b171c62e..3f86675f 100644
--- a/frontend/src/styles/variables.scss
+++ b/frontend/src/styles/variables.scss
@@ -229,7 +229,7 @@ $btn-disabled-opacity: 0.4;
$badge-font-size: $font-size-2xs;
$badge-font-weight: 500 !default;
$badge-padding-x: .5rem !default;
-$badge-padding-y: .35rem !default;
+$badge-padding-y: .3rem !default;
// --------------------------------------------------------
// Pagination