manifest
Details about the manifest.json
file of plaoc app. You can understand it as the manifest.json
of PWA.
It mainly provides all the configuration information of the plaoc app, attribute verification, and some information displayed on the installation interface.
{
"id": "plaoc.html.demo.dweb",
"name": "plaoc-html",
"short_name": "plaoc",
"description": "This is a sample application that includes instances of all dweb_plugins components.",
"logo": "https://dweb.waterbang.top/icon.png",
"images": [
"http://qiniu-waterbang.waterbang.top/bfm/cot-home_2058.webp",
"http://qiniu-waterbang.waterbang.top/bfm/defi.png",
"http://qiniu-waterbang.waterbang.top/bfm/nft.png"
],
"author": ["bfs", "bfs@bfs.com"],
"version": "1.0.0",
"change_log": "Added a new feature of shooting bubbles with a single click!",
"home": "https://dweb.waterbang.top",
"categories": ["application"]
}
Configuration
The fields below add ❗️ for required fields.
id ❗️
Type: string
App id; The specification is ${name}.${host}.dweb
; For example: "game.dweb.waterbang.top.dweb"
Each app has a unique id, and each domain name can mount multiple Apps.
name ❗️
Type: string
Application name
short_name ❗️
Type: string
Application subtitle
description ❗️
Type: string
Application description, will be presented to users on the download page and details page;
logo ❗️
Type: string
Application icon, vector graphics are recommended;
change_log
Type: string
Update log;
images ❗️
Type: string[]
List of application screenshots;
author ❗️
Type: string[]
Developer, passed in array form, the first developer is the app copyright owner.
version ❗️
Type: string
Application version;
categories
Type: string[]
App category, it is recommended to pass ["application"]
home ❗️
PlaocApp main domain name, needs to be the same as the domain name mounted by id
lang
Language tag; Specifies the primary language for the values of directional members of the manifest (knowing the language also helps with directionality).
icons
As icon representations of Plaoc-app; The attribute value is a set of ImageResource objects;
screenshots
PlaocApp screenshot images; The attribute value is a set of ImageResource objects;
display
PlaocApp display mode; The attribute value is a DisplayModeType object
orientation
The default orientation of the window; The value is a string; Check the legal range of orientation
theme_color
PlaocApp theme color; The attribute value is a string;
background_color
PlaocApp background color; The attribute value is a string;
shortcuts
languages
Describes the language types supported by the App Possible values