fix(core): update
This commit is contained in:
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal 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'
|
||||
}
|
18
ts/index.ts
18
ts/index.ts
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user