assets-demo

Visual Assets centralization for Pryv.io

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.

Usage

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"
	}
}

Default structure

index.json

{ 
  "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"
    }
  }
}