Skip to content

Commit

Permalink
Docs: Refer users to IDE or MDN for manifest object options (#54385)
Browse files Browse the repository at this point in the history
  • Loading branch information
delbaoliveira authored Aug 22, 2023
1 parent 83394b9 commit 705b2ef
Showing 1 changed file with 1 addition and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,107 +67,4 @@ export default function manifest() {

### Manifest Object

```tsx
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
}
```
For more information on individual options, see [MDN](https://developer.mozilla.org/en-US/docs/Web/Manifest).
The manifest object contains an extensive list of options that may be updated due to new web standards. For information on all the current options, refer to the `MetadataRoute.Manifest` type in your code editor if using [TypeScript](https://nextjs.org/docs/app/building-your-application/configuring/typescript#typescript-plugin) or see the [MDN](https://developer.mozilla.org/en-US/docs/Web/Manifest) docs.

0 comments on commit 705b2ef

Please sign in to comment.