Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
<!--Start Top Menu-->
<div class="app-top-menu app-top-menu-tool-bar"
[attr.aria-label]="'Actions' | translate:locale.language"
role="toolbar">
@if (!isTrashRepo && !inSharesList) {
<span #uploadFilesPicker="appUploadFiles"
(uploadFiles)="onUploadFiles($event)"
[options]="{isMultiple: true}"
appUploadFiles
class="d-none"></span>
@if (supportUploadFolder) {
<span #uploadFoldersPicker="appUploadFiles"
(uploadFiles)="onUploadFiles($event, true)"
[options]="{isDirectory: true}"
appUploadFiles
class="d-none"></span>
}
<!--Start New Button-->
<div class="btn-group">
<button (click)="openNewDialog()"
class="btn btn-default app-top-menu-tool-bar__action--quiet app-top-menu-tool-bar__action--breadcrumb-aligned"
[attr.aria-label]="'New' | translate:locale.language"
type="button">
<svg [lucideIcon]="icons.LucidePlus"></svg>
<span class="app-top-menu-tool-bar__label" l10nTranslate>New</span>
</button>
</div>
<!--End New Button-->
<!--Start Upload Button-->
<div class="btn-group" dropdown>
<button dropdownToggle
class="btn btn-default dropdown-toggle app-top-menu-tool-bar__action--quiet"
[attr.aria-label]="'Upload' | translate:locale.language"
type="button">
<svg [lucideIcon]="icons.LucideHardDriveUpload"></svg>
<span class="app-top-menu-tool-bar__label" l10nTranslate>Upload</span>
</button>
<ul *dropdownMenu class="dropdown-menu" role="menu">
<li role="menuitem">
<a (click)="shortcutUploadFiles()" class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.LucideFileUp"></svg>Upload files</span>
</a>
</li>
@if (supportUploadFolder) {
<li role="menuitem">
<a (click)="shortcutUploadFolders()" class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.LucideFolderUp"></svg>Upload folders</span>
</a>
</li>
}
<li class="dropdown-divider"></li>
<li role="menuitem">
<a (click)="openNewDialog('download')" class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.LucideGlobe"></svg>Import from URL</span>
</a>
</li>
</ul>
</div>
<!--End Upload Button-->
<!--Start Download Button-->
<button (click)="downloadFiles()"
[attr.aria-label]="'Download' | translate:locale.language"
[disabled]="!hasSelection || hasDisabledItemsInSelection"
[tooltip]="'Download' | translate:locale.language"
class="d-sm-none btn btn-default app-top-menu-tool-bar__action--icon app-top-menu-tool-bar__action--quiet"
type="button">
<svg [lucideIcon]="icons.LucideHardDriveDownload"></svg>
</button>
<!--End Download Button-->
}
@if (inSharesList) {
<button (click)="shortcutOpen()"
[attr.aria-label]="'Open' | translate:locale.language"
[disabled]="selection.length !== 1"
class="btn btn-default app-top-menu-tool-bar__action--quiet app-top-menu-tool-bar__action--breadcrumb-aligned"
type="button">
<svg [lucideIcon]="selection[0]?.isDir ? icons.LucideFolderOpen : icons.LucideEye"></svg>
<span class="app-top-menu-tool-bar__label" l10nTranslate>Open</span>
</button>
}
<!--Start Share Button-->
@if (!isTrashRepo && !inSharesList && (canShare.outside || isPersonalSpace)) {
<div class="btn-group"
[isDisabled]="!hasSelection"
dropdown>
<button dropdownToggle
class="btn btn-default dropdown-toggle app-top-menu-tool-bar__action--quiet"
[attr.aria-label]="'Share' | translate:locale.language"
type="button">
<svg [lucideIcon]="icons.SHARED"></svg>
<span class="app-top-menu-tool-bar__label" l10nTranslate>Share</span>
</button>
<ul *dropdownMenu class="dropdown-menu" role="menu">
@if (canShare.outside) {
<li role="menuitem">
<a (click)="openShareDialog()" class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.SHARED"></svg>New share</span>
</a>
</li>
<li role="menuitem">
<a (click)="openShareLinkDialog()" class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.LucideLink"></svg>New share link</span>
</a>
</li>
}
@if (isPersonalSpace) {
<li role="menuitem">
<a (click)="openSpaceAnchorFileDialog()" class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.LucideAnchor"></svg>Anchor to a space</span>
</a>
</li>
}
</ul>
</div>
}
<!--End Share Button-->
@if (isTrashRepo) {
<button (click)="copyMoveFiles()"
[attr.aria-label]="'Restore to...' | translate:locale.language"
[disabled]="!hasSelection || hasDisabledItemsInSelection"
class="btn btn-default app-top-menu-tool-bar__action--quiet app-top-menu-tool-bar__action--breadcrumb-aligned"
type="button">
<svg [lucideIcon]="icons.LucideArchiveRestore"></svg>
<span class="app-top-menu-tool-bar__label" l10nTranslate>Restore to...</span>
</button>
<button (click)="openTrashDialog(true)"
[attr.aria-label]="'Delete permanently' | translate:locale.language"
[disabled]="!hasSelection"
class="btn btn-default app-top-menu-tool-bar__action--quiet"
type="button">
<svg [lucideIcon]="icons.LucideTrash"></svg>
<span class="app-top-menu-tool-bar__label" l10nTranslate>Delete permanently</span>
</button>
}
<!--Start Actions Button-->
<div [isDisabled]="!hasSelection" class="btn-group" dropdown>
<button class="btn btn-default dropdown-toggle app-top-menu-tool-bar__action--icon app-top-menu-tool-bar__action--quiet"
[attr.aria-label]="'Actions' | translate:locale.language"
[tooltip]="'Actions' | translate:locale.language"
dropdownToggle
type="button">
<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><svg [lucideIcon]="selection[0].isDir ? icons.LucideFolderOpen : icons.LucideEye"></svg>Open</span>
</a>
</li>
}
}
<li role="menuitem">
<a (click)="downloadFiles()"
[attr.aria-disabled]="hasDisabledItemsInSelection"
[class.disabled]="hasDisabledItemsInSelection"
class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.LucideHardDriveDownload"></svg>Download</span>
</a>
</li>
<li role="menuitem">
<a (click)="layout.showRSideBarTab(TAB_MENU.SELECTION)" class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.SELECTION"></svg>View selection</span>
</a>
</li>
@if (canAdminShares && inSharesList && selection.length === 1 && selection[0]?.canBeReShared) {
<li class="dropdown-divider"></li>
<li role="menuitem">
<a (click)="openShareDialog()" class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.SHARED"></svg>New share</span>
</a>
</li>
<li role="menuitem">
<a (click)="openShareLinkDialog()" class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.LucideLink"></svg>New share link</span>
</a>
</li>
}
@if (!isTrashRepo && !hasDisabledItemsInSelection) {
<li class="dropdown-divider"></li>
<li role="menuitem">
<a (click)="copyMoveFiles()" class="dropdown-item">
<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><svg [lucideIcon]="icons.LucideSpellCheck"></svg>Rename</span>
</a>
</li>
}
@if (!isTrashRepo && canCompress) {
<li role="menuitem">
<a (click)="openCompressionDialog()" class="dropdown-item">
<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><svg [lucideIcon]="icons.LucideFileArchive"></svg>Decompress</span>
</a>
</li>
}
@if (!hasDisabledItemsInSelection || selection.length === 1 && !isTrashRepo && !inSharesList || !isTrashRepo && canCompress) {
<li class="dropdown-divider"></li>
}
@if (selection.length === 1 && !isTrashRepo && isElectronApp && selection[0].isDir) {
<li role="menuitem">
<a (click)="addToSync()" class="dropdown-item">
<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><svg [lucideIcon]="icons.LucideMessageSquareMore"></svg>Comment</span>
</a>
</li>
}
@if (selection.length === 1 && canManageFavorite && selection[0]; as selectedFile) {
<li role="menuitem">
<a (click)="toggleFavorite(selectedFile)" class="dropdown-item">
@if (selectedFile.isFavorite) {
<span l10nTranslate><svg [lucideIcon]="icons.FAVORITES"></svg>Remove from favorites</span>
} @else {
<span l10nTranslate><svg [lucideIcon]="icons.FAVORITES"></svg>Add to favorites</span>
}
</a>
</li>
}
<li role="menuitem">
<a (click)="addToClipboard()" class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.LucideClipboardList"></svg>Add to clipboard</span>
</a>
</li>
@if (!inSharesList) {
<li class="dropdown-divider"></li>
<li role="menuitem">
@if (isTrashRepo) {
<a (click)="openTrashDialog(true)" class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.LucideTrash" class="text-danger"></svg>Delete permanently</span>
</a>
} @else {
<a (click)="openTrashDialog()" class="dropdown-item">
<span l10nTranslate><svg [lucideIcon]="icons.TRASH" class="text-danger"></svg>Remove</span>
</a>
}
</li>
}
</ul>
</div>
<!--End Actions Button-->
<button (click)="loadFiles()"
[attr.aria-label]="'Refresh' | translate:locale.language"
[tooltip]="'Refresh' | translate:locale.language"
class="d-none d-md-block btn btn-default app-top-menu-tool-bar__action--icon app-top-menu-tool-bar__action--quiet"
type="button">
<svg [lucideIcon]="icons.LucideRotateCw" [class]="loading ? 'icon-spin' : ''"></svg>
</button>
<div class="d-flex align-items-center ms-auto app-top-menu-tool-bar__utilities">
<!--Start View Button-->
<app-navigation-view (switchView)="switchView($event)">
</app-navigation-view>
<!--End View Button-->
</div>
</div>
<!--End Top Menu-->
@if (galleryMode?.enabled) {
<!--Start Gallery Content-->
<div [style.--gallery-card-size]="galleryMode.dimensions + 'px'"
[style.--gallery-badge-size]="galleryMode.badgeSize + 'px'"
[style.--gallery-image-size]="galleryMode.image + 'px'"
[style.--gallery-selection-size]="galleryMode.dimensions / 2.25 + 'px'"
[style.--gallery-text-size]="galleryMode.textSize + 'px'"
class="app-gallery">
<app-virtual-scroll (contextmenu)="onContextMenu($event)"
[childHeight]="galleryMode.dimensions"
[childWidth]="galleryMode.dimensions"
[items]="files | searchFilter:navbarSearch.viewFilter():'name'"
[galleryMode]="true"
[resizeOffset]="115">
<div *ngTemplateOutlet="CommonMessages"></div>
<div id="thumb-files" class="row g-0" tabindex="-1">
@for (f of scrollView?.viewPortItems; track f.id) {
<div (click)="onSelect($event, f)"
(contextmenu)="onTargetContextMenu($event, f)"
(appTap)="onFileActivate(f)"
[singleTapOnTouch]="true"
[class.disabled]="f.isDisabled"
[class.deleted]="f.isBeingDeleted"
[class.selected]="f.isSelected"
class="card">
<div [attr.rowIndex]="$index" class="card-body">
<button (pointerdown)="$event.stopPropagation()"
(click)="toggleFileSelection($event, f)"
[attr.aria-label]="f.name"
[attr.aria-pressed]="f.isSelected"
[class.is-selected]="f.isSelected && showSelectionChecks"
class="file-selection-overlay gallery-file-selection-overlay"
type="button">
<span class="file-selection-indicator">
<svg [lucideIcon]="icons.LucideCheck"></svg>
</span>
</button>
@if (f.isImage) {
<img src="{{f.thumbnailUrl}}?size={{galleryMode.imageRes}}"
alt=""
class="img-fluid gallery-thumbnail"
draggable="true"
(error)="f.isImage = false">
} @else {
<img [src]="f.mimeUrl"
alt=""
class="gallery-image"
draggable="true"
(error)="f.fallBackMimeUrl()">
}
<span class="label-bottom-right" data-app-tap-ignore>
@let maxBadges = galleryMode.maxBadges || 0;
@let hiddenBadges = f.nbBadges - maxBadges;
@for (badge of f.galleryBadges; track badge; let i = $index) {
@if (i < maxBadges) {
@switch (badge) {
@case ('lock') {
<span (click)="openLockDialog(f)"
tooltip="{{f.lock | fileLockFormatPipe}}"
placement="auto"
class="badge bg-maroon cursor-pointer">
<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">
<svg [lucideIcon]="icons.FAVORITES"></svg>
</span>
}
@case ('comments') {
<span (click)="layout.showRSideBarTab(TAB_MENU.COMMENTS, true)"
class="badge bg-success cursor-pointer">
<svg [lucideIcon]="icons.LucideMessageSquareMore"></svg>
</span>
}
@case ('shares') {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer">
<svg [lucideIcon]="icons.SHARED"></svg>
@if (f.shares.length > 1) {
{{ f.shares.length }}
}
</span>
}
@case ('spaces') {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer">
<svg [lucideIcon]="icons.SPACES"></svg>
@if (f.spaces.length > 1) {
{{ f.spaces.length }}
}
</span>
}
@case ('links') {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer">
<svg [lucideIcon]="icons.LINKS"></svg>
@if (f.links.length > 1) {
{{ f.links.length }}
}
</span>
}
@case ('syncs') {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer">
<svg [lucideIcon]="icons.SYNC"></svg>
@if (f.syncs.length > 1) {
{{ f.syncs.length }}
}
</span>
}
}
}
}
@if (hiddenBadges > 0) {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer">
<svg [lucideIcon]="icons.LucideCirclePlus"></svg>
{{ hiddenBadges }}
</span>
}
</span>
@if (f.root) {
<span class="label-bottom-left">
<app-user-avatar
[user]="f.root.owner"
[height]="galleryMode.dimensions / 3.5"
[width]="galleryMode.dimensions / 3.5"
[fontSize]="galleryMode.iconSize / 2.5">
</app-user-avatar>
</span>
}
@if (f.newly) {
<span class="label-top-right">
<span class="badge bg-purple">{{ f.hTimeAgo }}</span>
</span>
}
</div>
<div class="card-footer text-center text-truncate p-1">
@if (f.isRenamed) {
<input appInputEdit
[inputObject]="f"
[selectFileNameWithoutExtension]="!f.isDir"
[fullWidth]="true"
[textCenter]="true"
(renamingInProgress)="setRenamingInProgress($event)"
(updateObject)="renameFile($event)"
type="text"
required>
} @else {
<span class="no-pointer-events text-file-name-preserve" draggable="false">{{ f.name }}</span>
}
</div>
</div>
}
</div>
</app-virtual-scroll>
</div>
<!--End Gallery Content-->
} @else {
<!--Start Table Files Content-->
<table class="app-table">
<thead>
<tr>
@for (th of tableHeaders | keyvalue: originalOrderKeyValue; track th.key) {
@if (th.value.show) {
<th (click)="sortBy(th.key)"
[style.width.%]="th.value.width"
[class.text-align-center]="th.value.textCenter"
[class.cursor-pointer]="th.value.sortable"
class="{{th.value.class}}"
l10nTranslate>
{{ th.value.label }}
@if (sortTable.sortParam.column === th.key) {
<svg [lucideIcon]="sortTable.sortParam.asc ? icons.LucideArrowDown : icons.LucideArrowUp"></svg>
}
</th>
}
}
</tr>
</thead>
</table>
<app-virtual-scroll (contextmenu)="onContextMenu($event)"
[bufferAmount]="5"
[items]="files | searchFilter:navbarSearch.viewFilter():'name'">
<div *ngTemplateOutlet="CommonMessages"></div>
<table class="app-table">
<tbody id="table-files" tabindex="-1">
@for (f of scrollView?.viewPortItems; track f.id) {
<tr (click)="onSelect($event, f)"
(contextmenu)="onTargetContextMenu($event, f)"
(appTap)="onFileActivate(f)"
[singleTapOnTouch]="true"
[class.disabled]="f.isDisabled"
[class.deleted]="f.isBeingDeleted"
[class.selected]="f.isSelected">
@for (th of tableHeaders | keyvalue: originalOrderKeyValue; track th.key) {
@if (th.value.show) {
<td [style.width.%]="th.value.width"
[class.text-align-center]="th.value.textCenter"
class="{{th.value.class}}">
@switch (th.key) {
@case ('name') {
<div class="d-flex align-items-center" draggable="true">
<span class="file-selection-control">
<img [src]="f.mimeUrl"
alt=""
draggable="false"
height="30"
width="30"
(error)="f.fallBackMimeUrl()">
<button (pointerdown)="$event.stopPropagation()"
(click)="toggleFileSelection($event, f)"
[attr.aria-label]="f.name"
[attr.aria-pressed]="f.isSelected"
[class.is-selected]="f.isSelected && showSelectionChecks"
class="file-selection-overlay"
type="button">
<span class="file-selection-indicator">
<svg [lucideIcon]="icons.LucideCheck"></svg>
</span>
</button>
</span>
@if (f.isRenamed) {
<input appInputEdit
(renamingInProgress)="setRenamingInProgress($event)"
(updateObject)="renameFile($event)"
[inputObject]="f"
[selectFileNameWithoutExtension]="!f.isDir"
required
type="text">
} @else {
<div class="d-flex flex-column text-truncate">
<span class="no-pointer-events text-file-name-preserve" draggable="false">{{ f.name }}</span>
@if (inSharesList && f.root?.description) {
<span class="no-pointer-events text-muted fs-xs" draggable="false">{{ f.root.description }}</span>
}
</div>
}
</div>
}
@case ('anchored') {
@if (f.root) {
<div class="d-flex flex-column align-items-center">
<app-user-avatar [user]="f.root.owner"></app-user-avatar>
</div>
}
}
@case ('info') {
@if (f.lock) {
<span (click)="openLockDialog(f)"
tooltip="{{f.lock | fileLockFormatPipe}}"
placement="auto"
class="badge bg-maroon cursor-pointer me-1"
data-app-tap-ignore>
<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"
data-app-tap-ignore>
<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"
data-app-tap-ignore>
<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"
data-app-tap-ignore>
<svg [lucideIcon]="icons.SHARED"></svg>
@if (f.shares.length > 1) {
{{ f.shares.length }}
}
</span>
}
@if (f.links.length) {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer me-1"
data-app-tap-ignore>
<svg [lucideIcon]="icons.LINKS"></svg>
@if (f.links.length > 1) {
{{ f.links.length }}
}
</span>
}
@if (f.spaces.length) {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer me-1"
data-app-tap-ignore>
<svg [lucideIcon]="icons.SPACES"></svg>
@if (f.spaces.length > 1) {
{{ f.spaces.length }}
}
</span>
}
@if (f.syncs.length) {
<span (click)="layout.showRSideBarTab(TAB_MENU.SELECTION, true)"
class="badge bg-primary cursor-pointer"
data-app-tap-ignore>
<svg [lucideIcon]="icons.SYNC"></svg>
@if (f.syncs.length > 1) {
{{ f.syncs.length }}
}
</span>
}
}
@case ('permissions') {
@if (f.root && f.root.permissions) {
<app-badge-permissions [permissions]="f.root.hPerms" tooltipPlacement="auto"></app-badge-permissions>
}
}
@case ('size') {
{{ f.hSize }}
}
@case ('mtime') {
<span class="{{th.value.newly && f[th.value.newly] ? 'badge prop-newly-' + f[th.value.newly] : ''}}">
<span>{{ f.hTimeAgo }}</span>
</span>
}
}
</td>
}
}
</tr>
}
</tbody>
</table>
</app-virtual-scroll>
<!--End Table Files Content-->
}
<!--Start Foot Content-->
<div class="app-foot-menu">
<div class="d-flex align-items-center">
@if (stats.dirs) {
<span>{{ stats.dirs }} {{ (stats.dirs > 1 ? 'directories' : 'directory') | translate:locale.language }}</span>
}
@if (stats.dirs && stats.files) {
<span class="mx-1 lh-1">•</span>
}
@if (stats.files) {
<span>{{ stats.files }} {{ (stats.files > 1 ? 'files' : 'file') | translate:locale.language }}</span>
}
</div>
<div class="ms-auto">{{ stats.size | toBytes }}</div>
</div>
<!--End Foot Content-->
<!--Start Common Messages-->
<ng-template #CommonMessages>
@if (forbiddenResource) {
<div class="fs-sm text-center text-danger text-bold no-select p-4">
<span l10nTranslate>Forbidden resource</span>
</div>
} @else if (locationNotFound) {
<div class="fs-sm text-center text-danger text-bold no-select p-4">
<span l10nTranslate>Location not found</span>
</div>
} @else if (serviceError) {
<div class="fs-sm text-center text-danger text-bold no-select p-4">
<span l10nTranslate>{{ serviceErrorMsg }}</span>
</div>
} @else if (!isTrashRepo && !loading && !stats.elements) {
<div class="fs-base text-center text-gray fw-bold no-select p-4">
<span l10nTranslate>Drag and drop your files here</span>
</div>
}
</ng-template>
<!--End Common Messages-->
<!--Start Context Menu -->
<context-menu #FileContextMenu>
@if (selection.length === 1 && selection[0]; as selectedFile) {
<ng-template (execute)="shortcutOpen()" contextMenuItem>
<span l10nTranslate><svg [lucideIcon]="selectedFile.isDir ? icons.LucideFolderOpen : icons.LucideEye"></svg>Open</span>
</ng-template>
}
@if (!hasDisabledItemsInSelection) {
<ng-template (execute)="downloadFiles()" contextMenuItem>
<span l10nTranslate><svg [lucideIcon]="icons.LucideHardDriveDownload"></svg>Download</span>
</ng-template>
}
@if (selection.length === 1 && selection[0] || !hasDisabledItemsInSelection) {
<ng-template [divider]="true" contextMenuItem></ng-template>
}
@if (!hasDisabledItemsInSelection) {
<ng-template (execute)="copyMoveFiles()" contextMenuItem>
@if (isTrashRepo) {
<span l10nTranslate><svg [lucideIcon]="icons.LucideArchiveRestore"></svg>Restore to...</span>
} @else {
<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><svg [lucideIcon]="icons.LucideSpellCheck"></svg>Rename</span>
</ng-template>
}
@if (!isTrashRepo) {
@if (canCompress) {
<ng-template (execute)="openCompressionDialog()" contextMenuItem>
<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><svg [lucideIcon]="icons.LucideFileArchive"></svg>Decompress</span>
</ng-template>
}
}
@if (!isTrashRepo) {
@if (canShare.outside || isPersonalSpace || canAdminShares && inSharesList && selection[0]?.canBeReShared) {
<ng-template [subMenu]="ShareContextMenu" contextMenuItem>
<span l10nTranslate><svg [lucideIcon]="icons.SHARED"></svg>Share</span>
</ng-template>
}
}
@if (!hasDisabledItemsInSelection || selection.length === 1 && !isTrashRepo && !inSharesList || !isTrashRepo && canCompress || !isTrashRepo && (canShare.outside || isPersonalSpace || canAdminShares && inSharesList && selection[0]?.canBeReShared)) {
<ng-template [divider]="true" contextMenuItem></ng-template>
}
@if (selection.length === 1 && !isTrashRepo && isElectronApp && selection[0].isDir) {
<ng-template (execute)="addToSync()" contextMenuItem>
<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><svg [lucideIcon]="icons.LucideMessageSquareMore"></svg>Comment</span>
</ng-template>
}
@if (selection.length === 1 && canManageFavorite && selection[0]; as selectedFile) {
<ng-template (execute)="toggleFavorite(selectedFile)" contextMenuItem>
@if (selectedFile.isFavorite) {
<span l10nTranslate><svg [lucideIcon]="icons.FAVORITES"></svg>Remove from favorites</span>
} @else {
<span l10nTranslate><svg [lucideIcon]="icons.FAVORITES"></svg>Add to favorites</span>
}
</ng-template>
}
<ng-template (execute)="addToClipboard()" contextMenuItem>
<span l10nTranslate><svg [lucideIcon]="icons.LucideClipboardList"></svg>Add to clipboard</span>
</ng-template>
@if (!inSharesList) {
<ng-template [divider]="true" contextMenuItem></ng-template>
<ng-template (execute)="openTrashDialog(isTrashRepo)" contextMenuItem>
@if (isTrashRepo) {
<span l10nTranslate><svg [lucideIcon]="icons.LucideTrash" class="text-danger"></svg>Delete permanently</span>
} @else {
<span l10nTranslate><svg [lucideIcon]="icons.TRASH" class="text-danger"></svg>Remove</span>
}
</ng-template>
}
</context-menu>
<context-menu #ShareContextMenu>
@if (canShare.outside || canAdminShares && inSharesList && selection[0]?.canBeReShared) {
<ng-template (execute)="openShareDialog()" contextMenuItem>
<span l10nTranslate><svg [lucideIcon]="icons.SHARED"></svg>New share</span>
</ng-template>
<ng-template (execute)="openShareLinkDialog()" contextMenuItem>
<span l10nTranslate><svg [lucideIcon]="icons.LucideLink"></svg>New share link</span>
</ng-template>
}
@if (isPersonalSpace) {
<ng-template (execute)="openSpaceAnchorFileDialog()" contextMenuItem>
<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><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
</context-menu>
<context-menu #MainContextMenu>
@if (inSharesList) {
<ng-template (execute)="loadFiles()" contextMenuItem>
<span l10nTranslate><svg [lucideIcon]="icons.LucideRotateCw"></svg>Refresh</span>
</ng-template>
} @else {
<ng-template (execute)="openNewDialog('directory')" contextMenuItem>
<span l10nTranslate><svg [lucideIcon]="icons.PERSONAL"></svg>New folder</span>
</ng-template>
<ng-template (execute)="openNewDialog('file')" contextMenuItem>
<span l10nTranslate><svg [lucideIcon]="icons.LucideFileText"></svg>New document</span>
</ng-template>
<ng-template (execute)="openNewDialog('download')" contextMenuItem>
<span l10nTranslate><svg [lucideIcon]="icons.LucideGlobe"></svg>Import from URL</span>
</ng-template>
<ng-template (execute)="shortcutUploadFiles()" contextMenuItem>
<span l10nTranslate><svg [lucideIcon]="icons.LucideFileUp"></svg>Upload files</span>
</ng-template>
@if (supportUploadFolder) {
<ng-template (execute)="shortcutUploadFolders()" contextMenuItem>
<span l10nTranslate><svg [lucideIcon]="icons.LucideFolderUp"></svg>Upload folders</span>
</ng-template>
}
}
</context-menu>
<!--End Context Menu-->