This repository contains visual assets for the Pryv Lab platform.
The file index.json
is exposed to various applications and libraries by the Service Information API call under the assets.definitions
property.
This structure is a proposal that can and should be extended depending on the needs of each Pryv.io deployment.
For the Pryv Lab platform, we deploy the assets using github gh-pages.
The URL of the file index.json
is declared in the Service Information configuration part of Pryv.io's platform settings.
Example: https://reg.pryv.me/service/infos
{
...
"assets": {
"definitions": "https://pryv.github.io/assets-pryv.me/index.json"
}
}
baseUrl
should be used to resolve all relative ressources path (if not starting withhttp(s)://
). Ifundefined
or set tonull
,baseUrl
should be treated as the location of theindex.json
file. The logic is similar tobase href
attribute in HTML pages.favicon
should have at least adefault
property exposing an.ico
file.css
should have at least adefault
property exposing a.css
file.{app-name}
exposes customs assets per application.lib-js
: ./lib-js as example of App specific definitionsapp-web-auth3
: ./app-web-auth3 as example of App specific definitions
{
"baseUrl": null,
"favicon": {
"default": "favicon.ico"
},
"css": {
"default": "default.css"
},
"lib-js": {
"buttonSignIn": {
"css": "lib-js/buttonSignIn.css",
"html": "lib-js/buttonSignIn.html",
"messages": "lib-js/buttonSignInMessages.json"
}
}
}