加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
manifest.schema.json 2.80 KB
一键复制 编辑 原始数据 按行查看 历史
Hannes Frank 提交于 2020-12-02 20:36 . Add version to manifest
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The display name/title of this scroll."
},
"id": {
"type": "string",
"description": "A unique identifier for the package. E.g. com.github.yourname.package-name or use another domain you own.",
"$comment": "For now all packages are inside the scroll directory, so one could use the directory name. Maybe later there are user accounts and we can use username.scrollname"
},
"version": {
"type": "string",
"description": "A semver version number of the form `major.minor.patch`. Increment this when you update the package.",
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
},
"description": {
"type": "string",
"description": "Short summary of what the scroll does."
},
"author": {
"type": "string",
"description": "Some information showing where this scroll came from.\nIn the easiest case this is a 'Your Name <mail@example.com>' string."
},
"homepage": {
"type": "string",
"description": "Website where more infos can be found. For scrolls in the library repo this can be left blank. It will link to the scroll folder.",
"format": "uri"
},
"shelf": {
"type": "string",
"description": "The kind of scroll this is. See the enum values (like Custom CSS, User Script, ...). Different kinds of scrolls go on different shelves.",
"enum": [
"Custom CSS",
"Stylus CSS",
"User Script",
"Browser Extension",
"Template"
]
},
"config": {
"type": "object",
"description": "Extra data depending on the kind of scroll. Custom CSS for example can declare used tags and some demo rems."
},
"categories": {
"type": "string",
"enum": ["rem", "formatting", "layout", "theme", "page template"]
},
"thumb": {
"type": "string",
"description": "Path to a preview image.",
"default": "thumb.png"
},
"install": {
"type": "array",
"description": "One or more methods to install the scroll.",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"method": {
"type": "string",
// TODO: Describe copy as separate type
"enum": ["copy", "api", "link", "download.autokey"]
}
},
"required": ["method"]
}
},
"remnoteVersion": {
"type": "string",
"description": "RemNote version this scroll is at least compatible with. Currently RemNote has no version number."
}
},
"required": ["name", "id", "author", "shelf", "install"]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化