This repository contains visual assets for the Open Pryv 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 Open Pryv.io 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"
}
}baseUrlshould be used to resolve all relative ressources path (if not starting withhttp(s)://). Ifundefinedor set tonull,baseUrlshould be treated as the location of theindex.jsonfile. The logic is similar tobase hrefattribute in HTML pages.faviconshould have at least adefaultproperty exposing an.icofile.cssshould have at least adefaultproperty exposing a.cssfile.{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"
}
}
}