Skip to content

@vtj


@vtj / renderer / MemoryService

Class: MemoryService

Extends

Constructors

new MemoryService()

new MemoryService(): MemoryService

Returns

MemoryService

Inherited from

BaseService.constructor

Defined in

packages/renderer/types/services/base.d.ts:6

Properties

api()

protected api: (type, data) => Promise<any>

Parameters

type

string

data

any

Returns

Promise<any>

Inherited from

BaseService.api

Defined in

packages/renderer/types/services/base.d.ts:3


uploader()

protected uploader: (file, projectId) => Promise<StaticFileInfo>

Parameters

file

File

projectId

string

Returns

Promise<StaticFileInfo>

Inherited from

BaseService.uploader

Defined in

packages/renderer/types/services/base.d.ts:5

Methods

clearStaticFiles()

clearStaticFiles(projectId): Promise<boolean>

Parameters

projectId

string

Returns

Promise<boolean>

Inherited from

BaseService.clearStaticFiles

Defined in

packages/renderer/types/services/base.d.ts:28


createRawPage()

createRawPage(file): Promise<boolean>

Parameters

file

PageFile

Returns

Promise<boolean>

Inherited from

BaseService.createRawPage

Defined in

packages/renderer/types/services/base.d.ts:23


genSource()

genSource(project): Promise<string>

Parameters

project

ProjectSchema

Returns

Promise<string>

Inherited from

BaseService.genSource

Defined in

packages/renderer/types/services/base.d.ts:30


genVueContent()

genVueContent(project, dsl): Promise<string>

Parameters

project

ProjectSchema

dsl

BlockSchema

Returns

Promise<string>

Inherited from

BaseService.genVueContent

Defined in

packages/renderer/types/services/base.d.ts:22


getExtension()

getExtension(): Promise<undefined | ExtensionConfig>

Returns

Promise<undefined | ExtensionConfig>

Inherited from

BaseService.getExtension

Defined in

packages/renderer/types/services/base.d.ts:7


getFile()

getFile(id): Promise<BlockSchema>

Parameters

id

string

Returns

Promise<BlockSchema>

Overrides

BaseService.getFile

Defined in

packages/renderer/types/services/memory.d.ts:13


getHistory()

getHistory(id): Promise<HistorySchema>

Parameters

id

string

Returns

Promise<HistorySchema>

Overrides

BaseService.getHistory

Defined in

packages/renderer/types/services/memory.d.ts:17


getHistoryItem()

getHistoryItem(fId, id): Promise<HistoryItem>

Parameters

fId

string

id

string

Returns

Promise<HistoryItem>

Overrides

BaseService.getHistoryItem

Defined in

packages/renderer/types/services/memory.d.ts:18


getPluginMaterial()

getPluginMaterial(from): Promise<null | MaterialDescription>

Parameters

from

NodeFromPlugin

Returns

Promise<null | MaterialDescription>

Inherited from

BaseService.getPluginMaterial

Defined in

packages/renderer/types/services/base.d.ts:29


getStaticFiles()

getStaticFiles(projectId): Promise<StaticFileInfo[]>

Parameters

projectId

string

Returns

Promise<StaticFileInfo[]>

Inherited from

BaseService.getStaticFiles

Defined in

packages/renderer/types/services/base.d.ts:26


init()

init(project): Promise<ProjectSchema>

Parameters

project

ProjectSchema

Returns

Promise<ProjectSchema>

Overrides

BaseService.init

Defined in

packages/renderer/types/services/memory.d.ts:9


publish()

publish(project): Promise<boolean>

Parameters

project

ProjectSchema

Returns

Promise<boolean>

Inherited from

BaseService.publish

Defined in

packages/renderer/types/services/base.d.ts:20


publishFile()

publishFile(project, file): Promise<boolean>

Parameters

project

ProjectSchema

file

PageFile | BlockFile

Returns

Promise<boolean>

Inherited from

BaseService.publishFile

Defined in

packages/renderer/types/services/base.d.ts:21


removeFile()

removeFile(id): Promise<boolean>

Parameters

id

string

Returns

Promise<boolean>

Overrides

BaseService.removeFile

Defined in

packages/renderer/types/services/memory.d.ts:14


removeHistory()

removeHistory(id): Promise<boolean>

Parameters

id

string

Returns

Promise<boolean>

Overrides

BaseService.removeHistory

Defined in

packages/renderer/types/services/memory.d.ts:16


removeHistoryItem()

removeHistoryItem(fId, ids): Promise<boolean>

Parameters

fId

string

ids

string[]

Returns

Promise<boolean>

Overrides

BaseService.removeHistoryItem

Defined in

packages/renderer/types/services/memory.d.ts:20


removeRawPage()

removeRawPage(id): Promise<boolean>

Parameters

id

string

Returns

Promise<boolean>

Inherited from

BaseService.removeRawPage

Defined in

packages/renderer/types/services/base.d.ts:24


removeStaticFile()

removeStaticFile(name, projectId): Promise<boolean>

Parameters

name

string

projectId

string

Returns

Promise<boolean>

Inherited from

BaseService.removeStaticFile

Defined in

packages/renderer/types/services/base.d.ts:27


saveFile()

saveFile(file): Promise<boolean>

Parameters

file

BlockSchema

Returns

Promise<boolean>

Overrides

BaseService.saveFile

Defined in

packages/renderer/types/services/memory.d.ts:12


saveHistory()

saveHistory(history): Promise<boolean>

Parameters

history

HistorySchema

Returns

Promise<boolean>

Overrides

BaseService.saveHistory

Defined in

packages/renderer/types/services/memory.d.ts:15


saveHistoryItem()

saveHistoryItem(fId, item): Promise<boolean>

Parameters

fId

string

item

HistoryItem

Returns

Promise<boolean>

Overrides

BaseService.saveHistoryItem

Defined in

packages/renderer/types/services/memory.d.ts:19


saveMaterials()

saveMaterials(project, materials): Promise<boolean>

Parameters

project

ProjectSchema

materials

Map<string, MaterialDescription>

Returns

Promise<boolean>

Overrides

BaseService.saveMaterials

Defined in

packages/renderer/types/services/memory.d.ts:11


saveProject()

saveProject(project): Promise<boolean>

Parameters

project

ProjectSchema

Returns

Promise<boolean>

Overrides

BaseService.saveProject

Defined in

packages/renderer/types/services/memory.d.ts:10


uploadStaticFile()

uploadStaticFile(file, projectId): Promise<null | StaticFileInfo>

Parameters

file

File

projectId

string

Returns

Promise<null | StaticFileInfo>

Inherited from

BaseService.uploadStaticFile

Defined in

packages/renderer/types/services/base.d.ts:25

Released under the MIT License.