84 lines
2.2 KiB
Plaintext
84 lines
2.2 KiB
Plaintext
export type Manifest = {
|
|
background_color?: string;
|
|
categories?: string[];
|
|
description?: string;
|
|
dir?: 'ltr' | 'rtl' | 'auto';
|
|
display?: 'fullscreen' | 'standalone' | 'minimal-ui' | 'browser';
|
|
display_override?: ('fullscreen' | 'standalone' | 'minimal-ui' | 'browser' | 'window-controls-overlay')[];
|
|
file_handlers?: {
|
|
action: string;
|
|
accept: {
|
|
[mimeType: string]: string[];
|
|
}[];
|
|
}[];
|
|
icons?: {
|
|
src: string;
|
|
type?: string;
|
|
sizes?: string;
|
|
purpose?: 'any' | 'maskable' | 'monochrome' | 'badge';
|
|
}[];
|
|
id?: string;
|
|
lang?: string;
|
|
launch_handler?: {
|
|
platform?: 'windows' | 'macos' | 'linux';
|
|
url?: string;
|
|
};
|
|
name?: string;
|
|
orientation?: 'any' | 'natural' | 'landscape' | 'portrait' | 'portrait-primary' | 'portrait-secondary' | 'landscape-primary' | 'landscape-secondary';
|
|
prefer_related_applications?: boolean;
|
|
protocol_handlers?: {
|
|
protocol: string;
|
|
url: string;
|
|
title?: string;
|
|
}[];
|
|
related_applications?: {
|
|
platform: string;
|
|
url: string;
|
|
id?: string;
|
|
}[];
|
|
scope?: string;
|
|
screenshots?: {
|
|
src: string;
|
|
type?: string;
|
|
sizes?: string;
|
|
}[];
|
|
serviceworker?: {
|
|
src?: string;
|
|
scope?: string;
|
|
type?: string;
|
|
update_via_cache?: 'import' | 'none' | 'all';
|
|
};
|
|
share_target?: {
|
|
action?: string;
|
|
method?: 'get' | 'post';
|
|
enctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
|
|
params?: {
|
|
name: string;
|
|
value: string;
|
|
required?: boolean;
|
|
}[];
|
|
url?: string;
|
|
title?: string;
|
|
text?: string;
|
|
files?: {
|
|
accept?: string[];
|
|
name?: string;
|
|
}[];
|
|
};
|
|
short_name?: string;
|
|
shortcuts?: {
|
|
name: string;
|
|
short_name?: string;
|
|
description?: string;
|
|
url: string;
|
|
icons?: {
|
|
src: string;
|
|
type?: string;
|
|
sizes?: string;
|
|
purpose?: 'any' | 'maskable' | 'monochrome' | 'badge';
|
|
}[];
|
|
}[];
|
|
start_url?: string;
|
|
theme_color?: string;
|
|
};
|