@vtj / renderer / LocalService
Class: LocalService
Extends
Constructors
new LocalService()
new LocalService():
LocalService
Returns
Inherited from
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
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
Defined in
packages/renderer/types/services/base.d.ts:5
Methods
clearStaticFiles()
clearStaticFiles(
projectId
):Promise
<boolean
>
Parameters
projectId
string
Returns
Promise
<boolean
>
Inherited from
Defined in
packages/renderer/types/services/base.d.ts:28
createRawPage()
createRawPage(
file
):Promise
<boolean
>
Parameters
file
PageFile
Returns
Promise
<boolean
>
Inherited from
Defined in
packages/renderer/types/services/base.d.ts:23
genSource()
genSource(
project
):Promise
<string
>
Parameters
project
ProjectSchema
Returns
Promise
<string
>
Inherited from
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
Defined in
packages/renderer/types/services/base.d.ts:22
getExtension()
getExtension():
Promise
<undefined
|ExtensionConfig
>
Returns
Promise
<undefined
| ExtensionConfig
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:5
getFile()
getFile(
id
):Promise
<BlockSchema
>
Parameters
id
string
Returns
Promise
<BlockSchema
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:10
getHistory()
getHistory(
id
):Promise
<HistorySchema
>
Parameters
id
string
Returns
Promise
<HistorySchema
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:14
getHistoryItem()
getHistoryItem(
fId
,id
):Promise
<HistoryItem
>
Parameters
fId
string
id
string
Returns
Promise
<HistoryItem
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:15
getPluginMaterial()
getPluginMaterial(
from
):Promise
<null
|MaterialDescription
>
Parameters
from
NodeFromPlugin
Returns
Promise
<null
| MaterialDescription
>
Inherited from
Defined in
packages/renderer/types/services/base.d.ts:29
getStaticFiles()
getStaticFiles(
projectId
):Promise
<StaticFileInfo
[]>
Parameters
projectId
string
Returns
Promise
<StaticFileInfo
[]>
Inherited from
Defined in
packages/renderer/types/services/base.d.ts:26
init()
init(
project
):Promise
<ProjectSchema
>
Parameters
project
ProjectSchema
Returns
Promise
<ProjectSchema
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:6
publish()
publish(
project
):Promise
<boolean
>
Parameters
project
ProjectSchema
Returns
Promise
<boolean
>
Inherited from
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
Defined in
packages/renderer/types/services/base.d.ts:21
removeFile()
removeFile(
id
):Promise
<boolean
>
Parameters
id
string
Returns
Promise
<boolean
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:11
removeHistory()
removeHistory(
id
):Promise
<boolean
>
Parameters
id
string
Returns
Promise
<boolean
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:13
removeHistoryItem()
removeHistoryItem(
fId
,ids
):Promise
<boolean
>
Parameters
fId
string
ids
string
[]
Returns
Promise
<boolean
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:17
removeRawPage()
removeRawPage(
id
):Promise
<boolean
>
Parameters
id
string
Returns
Promise
<boolean
>
Inherited from
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
Defined in
packages/renderer/types/services/base.d.ts:27
saveFile()
saveFile(
file
):Promise
<boolean
>
Parameters
file
BlockSchema
Returns
Promise
<boolean
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:9
saveHistory()
saveHistory(
history
):Promise
<boolean
>
Parameters
history
HistorySchema
Returns
Promise
<boolean
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:12
saveHistoryItem()
saveHistoryItem(
fId
,item
):Promise
<boolean
>
Parameters
fId
string
item
HistoryItem
Returns
Promise
<boolean
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:16
saveMaterials()
saveMaterials(
project
,materials
):Promise
<boolean
>
Parameters
project
ProjectSchema
materials
Map
<string
, MaterialDescription
>
Returns
Promise
<boolean
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:8
saveProject()
saveProject(
project
):Promise
<boolean
>
Parameters
project
ProjectSchema
Returns
Promise
<boolean
>
Overrides
Defined in
packages/renderer/types/services/local.d.ts:7
uploadStaticFile()
uploadStaticFile(
file
,projectId
):Promise
<null
|StaticFileInfo
>
Parameters
file
File
projectId
string
Returns
Promise
<null
| StaticFileInfo
>
Inherited from
Defined in
packages/renderer/types/services/base.d.ts:25