fix(core): update
This commit is contained in:
parent
4d4e2483cf
commit
065592df59
29
ts/index.ts
29
ts/index.ts
@ -8,13 +8,15 @@ export interface ISmartManifestConstructorOptions {
|
|||||||
orientation?: string;
|
orientation?: string;
|
||||||
background_color?: string;
|
background_color?: string;
|
||||||
theme_color?: string;
|
theme_color?: string;
|
||||||
icons?: [
|
icons?: Array<{
|
||||||
{
|
|
||||||
src: string;
|
src: string;
|
||||||
type: string;
|
type: string;
|
||||||
sizes: string;
|
sizes: string;
|
||||||
}
|
}>;
|
||||||
];
|
related_applications?: Array<{
|
||||||
|
platform: 'play' | string;
|
||||||
|
id: string;
|
||||||
|
}>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultConstructorOptions: ISmartManifestConstructorOptions = {
|
const defaultConstructorOptions: ISmartManifestConstructorOptions = {
|
||||||
@ -23,15 +25,26 @@ const defaultConstructorOptions: ISmartManifestConstructorOptions = {
|
|||||||
start_url: '/',
|
start_url: '/',
|
||||||
display: 'standalone',
|
display: 'standalone',
|
||||||
orientation: 'any',
|
orientation: 'any',
|
||||||
background_color: '#fff',
|
background_color: '#000000',
|
||||||
theme_color: '#f78f21',
|
theme_color: '#000000',
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: '/assets/icon-large.png',
|
src: '/assetbroker/manifest/icon-large.png',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
sizes: '1024x1024'
|
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 {
|
export class SmartManifest {
|
||||||
|
Loading…
Reference in New Issue
Block a user