Home Reference Source
import PatchExportElectron from './export/export_patch_electron.js'
public class | source

PatchExportElectron

Extends:

cables-shared-api~SharedExportServiceHtmlExportElectron → PatchExportElectron

Static Method Summary

Static Public Methods
public static

getExportOptions(user: *, teams: *, project: *, exportQuota: *): {"type": *, "allowed": boolean, "possible": boolean, "fields": *}

public static

getName(): string

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

finalAssetPath: string

public

finalJsPath: string

Method Summary

Private Methods
private

_addProjectHtmlCode(proj: *, options: *, libs: *, coreLibs: *, template: string, _dependencies: *[])

private

_getOpExportSubdir(opName: *): *

private

_replaceInString(replacements: *, theString: *): *

Inherited Summary

From class HtmlExportElectron
public static

getExportOptions(user: *, teams: *, project: *, exportQuota: *): {"type": *, "allowed": boolean, "possible": boolean, "fields": *}

public static

getName(): string

public

archive: *

public

finalAssetPath: string

public

collectFiles(project: *, callbackFilesCollected: *, callbackError: *, options: *, next: *)

public

createZip(project: *, files: *, callbackFinished: *)

public

doExport(project: *, cb: *)

private

_doAfterCombine(jsCode: *, options: *): *

private

_doAfterExport(originalProject: *, credentials: *, exportNumber: *, result: *): *

private

_getFilesForProjects(theProjects: *, options: *, cb: *)

private

_getNameForZipEntry(fn: *, allFiles: *): *

private

_getPortValueReplacement(filePathAndName: *, fn: *, lzipFileName: *): *

private

_resolveFileName(filePathAndName: *, pathStr: *, project: *): *

Static Public Methods

public static getExportOptions(user: *, teams: *, project: *, exportQuota: *): {"type": *, "allowed": boolean, "possible": boolean, "fields": *} source

Override:

HtmlExportElectron#getExportOptions

Params:

NameTypeAttributeDescription
user *
teams *
project *
exportQuota *

Return:

{"type": *, "allowed": boolean, "possible": boolean, "fields": *}

public static getName(): string source

Override:

HtmlExportElectron#getName

Return:

string

Public Constructors

public constructor() source

Override:

HtmlExportElectron#constructor

Public Members

public finalAssetPath: string source

Override:

HtmlExportElectron#finalAssetPath

public finalJsPath: string source

Private Methods

private _addProjectHtmlCode(proj: *, options: *, libs: *, coreLibs: *, template: string, _dependencies: *[]) source

Params:

NameTypeAttributeDescription
proj *
options *
libs *
coreLibs *
template string
  • optional
  • default: /patchview/patchview_export.html
_dependencies *[]
  • optional
  • default: []

private _getOpExportSubdir(opName: *): * source

Params:

NameTypeAttributeDescription
opName *

Return:

*

private _replaceInString(replacements: *, theString: *): * source

Params:

NameTypeAttributeDescription
replacements *
theString *

Return:

*