Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PackageMetaType

AntOS package meta-data type definition

export
interface

PackageMetaType

Hierarchy

  • PackageMetaType

Indexable

[propName: string]: any

AntOS package meta-data type definition

export
interface

PackageMetaType

Index

Properties

Optional app

app: string

The application class name, if the package has only services this property is ignored and pkgname should be specified

memberof

PackageMetaType

category

category: string

Package category

memberof

PackageMetaType

dependencies

dependencies: string[]

Package dependencies, each entry is in the following format

package_name@version

Example:

[
 "File@0.1.5-b"
]
memberof

PackageMetaType

description

description: string

Package description string

memberof

PackageMetaType

Optional icon

icon: string

VFS application icon path

memberof

PackageMetaType

Optional iconclass

iconclass: string

CSS icon class of the package

memberof

PackageMetaType

info

info: { author: string; email: string }

Package information

memberof

PackageMetaType

Type declaration

  • [propName: string]: any
  • author: string

    Author of the package

  • email: string

    Author's email

locales

locales: {}

Application-specific locale definition. When the system locale changes, translatable texts inside the application will be first translated using the locale dictionary defined in the package meta-data. If no translation found, the system locale dictionary is used instead.

A local dictionary definition should be in the following format:

{
     [locale_name: string]: {
         [origin_string]: string // translation string
     }
}

Example of locale dictionaries:

{
     "en_GB": {
         "Cancel": "Cancel",
         "Modify": "Modify"
     },
     "fr_FR": {
         "Cancel": "Annuler",
         "Modify": "Modifier"
     }
}
memberof

PackageMetaType

Type declaration

mimes

mimes: string[]

Mime types supported by the packages, regular expression can be used to specified a range of mimes in common

memberof

PackageMetaType

name

name: string

Package (application) name

memberof

PackageMetaType

path

path: string

VFS path to package installation location

memberof

PackageMetaType

Optional pkgname

pkgname: string

Package name, in case of app being undefined, this property need to be specified

memberof

PackageMetaType

Optional services

services: string[]

List of services that is attached to the package

memberof

PackageMetaType

version

version: string

Package version, should be in a format conforming to the version definition in Version class

memberof

PackageMetaType