|
|
@ -4,6 +4,7 @@ import {ImportService} from "../../../../../services/import/import.service";
|
|
|
|
import {ErrorBrokerService} from "../../../../../services/error-broker/error-broker.service";
|
|
|
|
import {ErrorBrokerService} from "../../../../../services/error-broker/error-broker.service";
|
|
|
|
import {AddFileOptions} from "../../../../../models/AddFileOptions";
|
|
|
|
import {AddFileOptions} from "../../../../../models/AddFileOptions";
|
|
|
|
import {File} from "../../../../../models/File";
|
|
|
|
import {File} from "../../../../../models/File";
|
|
|
|
|
|
|
|
import {DialogFilter} from "@tauri-apps/api/dialog";
|
|
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
@Component({
|
|
|
|
selector: 'app-filesystem-import',
|
|
|
|
selector: 'app-filesystem-import',
|
|
|
@ -18,6 +19,14 @@ export class FilesystemImportComponent {
|
|
|
|
public fileCount: number = 0;
|
|
|
|
public fileCount: number = 0;
|
|
|
|
public files: FileOsMetadata[] = [];
|
|
|
|
public files: FileOsMetadata[] = [];
|
|
|
|
public importOptions = new AddFileOptions();
|
|
|
|
public importOptions = new AddFileOptions();
|
|
|
|
|
|
|
|
public filters: DialogFilter[] = [
|
|
|
|
|
|
|
|
{name: "Images", extensions: ["png", "jpg", "jpeg", "webp", "bmp"]},
|
|
|
|
|
|
|
|
{name: "Videos", extensions: ["mp4", "mkv", "wmv", "avi", "webm"]},
|
|
|
|
|
|
|
|
{name: "Documents", extensions: ["pdf", "doc", "docx", "odf"]},
|
|
|
|
|
|
|
|
{name: "Text", extensions: ["txt", "md"]},
|
|
|
|
|
|
|
|
{name: "All", extensions: ["*"]}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public resolving = false;
|
|
|
|
public resolving = false;
|
|
|
|
public importing = false;
|
|
|
|
public importing = false;
|
|
|
|