Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ms/index"

Index

Variables

Const BLOCK_REMOVING_LIST

BLOCK_REMOVING_LIST: string[] = ['package.json','node_modules','assets','docs','public','screenshots','vetur',]

Let platformAxios

platformAxios: AxiosInstance

Functions

addBlock

addBlockExternally

  • addBlockExternally(blockVue: VueFile, target: string, name: string): Promise<VueFile>

addBranchView

  • addBranchView(parent: View, name: string, title: string, ext?: string): Promise<string>

addBranchViewFromBlock

  • addBranchViewFromBlock(source: MaterialSource, parent: View, name: string, title: string): Promise<string>

addBranchViewRoute

  • addBranchViewRoute(parent: View, name: string, title: string, ext?: string): Promise<void>

addBranchWrapper

  • addBranchWrapper(parent: View, name: string, title: string): Promise<string>

addLeafView

  • addLeafView(parent: View, name: string, title: string, ext?: string): Promise<string>

addLeafViewFromBlock

  • addLeafViewFromBlock(source: MaterialSource, parent: View, name: string, title: string): Promise<string>

addLeafViewRoute

  • addLeafViewRoute(parent: View, name: string, title: string, ext?: string): Promise<void>

addModule

createBlockPackage

  • createBlockPackage(dir: string, options: { access?: string; category?: string; inVusionProject?: boolean; name: string; team?: string; title?: string }): Promise<string>
  • Parameters

    • dir: string
    • options: { access?: string; category?: string; inVusionProject?: boolean; name: string; team?: string; title?: string }
      • [prop: string]: string | boolean
      • Optional access?: string
      • Optional category?: string
      • Optional inVusionProject?: boolean
      • name: string
      • Optional team?: string
      • Optional title?: string

    Returns Promise<string>

createComponentPackage

  • createComponentPackage(dir: string, options: { access?: string; category?: string; inVusionProject?: boolean; name: string; team?: string; title?: string }): Promise<string>
  • Parameters

    • dir: string
    • options: { access?: string; category?: string; inVusionProject?: boolean; name: string; team?: string; title?: string }
      • [prop: string]: string | boolean
      • Optional access?: string
      • Optional category?: string
      • Optional inVusionProject?: boolean
      • name: string
      • Optional team?: string
      • Optional title?: string

    Returns Promise<string>

createMultiFile

  • createMultiFile(dir: string, componentName?: string): Promise<string>

createMultiFileWithSubdocs

  • createMultiFileWithSubdocs(dir: string, componentName?: string): Promise<string>

Const defaultFormatter

  • defaultFormatter(content: string, params: object): string

fetchBlock

fetchLatestBlockTemplate

  • fetchLatestBlockTemplate(): Promise<string>

fetchLatestComponentTemplate

  • fetchLatestComponentTemplate(): Promise<string>

findRouteObjectAndParentArray

  • findRouteObjectAndParentArray(objectExpression: ObjectExpression, relativePath: string | Array<string>, createChildrenArrayIfNeeded?: boolean, pos?: number): { parentArray: ArrayExpression; routeObject: ObjectExpression }
  • Parameters

    • objectExpression: ObjectExpression
    • relativePath: string | Array<string>
    • Default value createChildrenArrayIfNeeded: boolean = false
    • Default value pos: number = 0

    Returns { parentArray: ArrayExpression; routeObject: ObjectExpression }

    • parentArray: ArrayExpression
    • routeObject: ObjectExpression

formatTemplate

  • formatTemplate(src: string, params?: object, formatter?: (content: string, params: object) => string): Promise<void[]>
  • Parameters

    • src: string
    • Default value params: object = {}
    • Default value formatter: (content: string, params: object) => string = defaultFormatter
        • (content: string, params: object): string
        • Parameters

          • content: string
          • params: object

          Returns string

    Returns Promise<void[]>

formatTemplateTo

  • formatTemplateTo(src: string, dest: string, params?: object, formatter?: (content: string, params: object) => string): Promise<void[]>
  • Parameters

    • src: string
    • dest: string
    • Default value params: object = {}
    • Default value formatter: (content: string, params: object) => string = defaultFormatter
        • (content: string, params: object): string
        • Parameters

          • content: string
          • params: object

          Returns string

    Returns Promise<void[]>

getBlock

  • getBlock(packageName: string): Promise<Block>

getBlocks

  • getBlocks(): Promise<Block[]>

getCacheDir

  • getCacheDir(subPath?: string): string

getComponent

  • getComponent(packageName: string): Promise<Component>

getComponents

  • getComponents(): Promise<Component[]>

Const getPlatformAxios

  • getPlatformAxios(): Promise<AxiosInstance>

getRunControl

  • getRunControl(): string

processOptions

publishBlock

  • publishBlock(params: object): Promise<any>

publishComponent

  • publishComponent(params: object): Promise<any>

publishTemplate

  • publishTemplate(params: object): Promise<any>

recordMicroAppVersion

  • recordMicroAppVersion(params: object): Promise<any>

refreshMicroVersion

  • refreshMicroVersion(params: object): Promise<any>

removeBlock

  • removeBlock(vueFilePath: string, baseName: string): Promise<VueFile>

removeLeafView

  • removeLeafView(view: View): Promise<void>

removeModule

teamExist

  • teamExist(teamName: string): Promise<any>

Object literals

Const upload

upload: object

framework

  • framework(files: string | FormFile | Array<string | FormFile>, framework: string): Promise<any>

getFormData

nos

Generated using TypeDoc