Home Reference Source
import FileManager from './ui/components/filemanager.js'
public class | source

FileManager

manage files/assets of the patch

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private
private
private
private
private

_files: *[]

private
private
private

_log: *

private
private

_order: *

private

_orderReverse: boolean

private

Method Summary

Public Methods
public
public
public

reload(cb: *)

public

selectFile(filename: *)

public

setDetail(detailItems: *)

public

setDisplay(type: *)

public

setFilePort(portEle: *, op: *, previewEle: *)

public

setFilter(f: *)

public
public

setOrder(o: *)

public

setSource(s: *, cb: *)

public

show(userInteraction: *)

public

updateHeader(detailItems: *)

public

uploadFile(filename: *, content: *, cb: *)

Private Methods
private

_buildHtml(o: *)

private

_compareFilter(file: *, filterType: *): boolean

private

_createItem(items: *, file: *, filterType: *)

private

_getFilesFromSource(source: *, cb: *)

private

_selectFile(filename: *)

Public Constructors

public constructor() source

Private Members

private _filePortEle: * source

private _filePortElePreview: * source

private _filePortOp: * source

private _fileSource: * source

private _files: *[] source

private _filterType: * source

private _firstTimeOpening: boolean source

private _log: * source

private _manager: * source

private _order: * source

private _orderReverse: boolean source

private _refreshDelay: * source

Public Methods

public createFile() source

public refresh() source

public reload(cb: *) source

Params:

NameTypeAttributeDescription
cb *

public selectFile(filename: *) source

Params:

NameTypeAttributeDescription
filename *

public setDetail(detailItems: *) source

Params:

NameTypeAttributeDescription
detailItems *

public setDisplay(type: *) source

Params:

NameTypeAttributeDescription
type *

public setFilePort(portEle: *, op: *, previewEle: *) source

Params:

NameTypeAttributeDescription
portEle *
op *
previewEle *

public setFilter(f: *) source

Params:

NameTypeAttributeDescription
f *

public setFilterType(f: *) source

Params:

NameTypeAttributeDescription
f *

public setOrder(o: *) source

Params:

NameTypeAttributeDescription
o *

public setSource(s: *, cb: *) source

Params:

NameTypeAttributeDescription
s *
cb *

public show(userInteraction: *) source

Params:

NameTypeAttributeDescription
userInteraction *

public updateHeader(detailItems: *) source

Params:

NameTypeAttributeDescription
detailItems *

public uploadFile(filename: *, content: *, cb: *) source

Params:

NameTypeAttributeDescription
filename *
content *
cb *

Private Methods

private _buildHtml(o: *) source

Params:

NameTypeAttributeDescription
o *

private _compareFilter(file: *, filterType: *): boolean source

Params:

NameTypeAttributeDescription
file *
filterType *

Return:

boolean

private _createItem(items: *, file: *, filterType: *) source

Params:

NameTypeAttributeDescription
items *
file *
filterType *

private _getFilesFromSource(source: *, cb: *) source

Params:

NameTypeAttributeDescription
source *
cb *

private _selectFile(filename: *) source

Params:

NameTypeAttributeDescription
filename *