fix(core): update

This commit is contained in:
2023-06-11 22:16:28 +02:00
parent 90d722de00
commit aefa8795dd
14 changed files with 4536 additions and 1735 deletions

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/smartmanifest',
version: '1.0.9',
description: 'a module for creating web app manifests'
}

View File

@ -1,11 +1,11 @@
import * as plugins from './smartmanifest.plugins';
import * as plugins from './smartmanifest.plugins.js';
export interface ISmartManifestConstructorOptions {
name: string;
short_name: string;
start_url?: '/';
display?: string;
orientation?: string;
display?: 'standalone';
orientation?: 'any';
background_color?: string;
theme_color?: string;
icons?: Array<{
@ -31,20 +31,20 @@ const defaultConstructorOptions: ISmartManifestConstructorOptions = {
{
src: '/assetbroker/manifest/icon-large.png',
type: 'image/png',
sizes: '1024x1024'
sizes: '1024x1024',
},
{
src: '/assetbroker/manifest/icon-144x144.png',
sizes: '144x144',
type: 'image/png'
type: 'image/png',
},
{
src: '/assetbroker/manifest/icon-512x512.png',
sizes: '512x512',
type: 'image/png'
}
type: 'image/png',
},
],
related_applications: []
related_applications: [],
};
export class SmartManifest {
@ -52,7 +52,7 @@ export class SmartManifest {
constructor(optionsArg: ISmartManifestConstructorOptions) {
this.options = {
...defaultConstructorOptions,
...optionsArg
...optionsArg,
};
}