3 Commits

Author SHA1 Message Date
dc5457996b 1.0.7 2020-01-30 11:50:36 +00:00
065592df59 fix(core): update 2020-01-30 11:50:35 +00:00
4d4e2483cf 1.0.6 2019-06-15 18:35:10 +02:00
3 changed files with 26 additions and 13 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartmanifest",
"version": "1.0.5",
"version": "1.0.7",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartmanifest",
"version": "1.0.5",
"version": "1.0.7",
"private": false,
"description": "a module for creating web app manifests",
"main": "dist/index.js",

View File

@ -8,13 +8,15 @@ export interface ISmartManifestConstructorOptions {
orientation?: string;
background_color?: string;
theme_color?: string;
icons?: [
{
icons?: Array<{
src: string;
type: string;
sizes: string;
}
];
}>;
related_applications?: Array<{
platform: 'play' | string;
id: string;
}>;
}
const defaultConstructorOptions: ISmartManifestConstructorOptions = {
@ -23,15 +25,26 @@ const defaultConstructorOptions: ISmartManifestConstructorOptions = {
start_url: '/',
display: 'standalone',
orientation: 'any',
background_color: '#fff',
theme_color: '#f78f21',
background_color: '#000000',
theme_color: '#000000',
icons: [
{
src: '/assets/icon-large.png',
src: '/assetbroker/manifest/icon-large.png',
type: 'image/png',
sizes: '1024x1024'
},
{
src: '/assetbroker/manifest/icon-144x144.png',
sizes: '144x144',
type: 'image/png'
},
{
src: '/assetbroker/manifest/icon-512x512.png',
sizes: '512x512',
type: 'image/png'
}
]
],
related_applications: []
};
export class SmartManifest {