pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.55k stars 273 forks source link

Create a manfiest editor component #2819

Closed nmetulev closed 2 years ago

nmetulev commented 2 years ago

Tell us about your feature idea

The manifest editor on PWABuilder.com should be a standalone component used by our tools, including PWAStudio. To enable this, we should create a new manifest editor web component for use across all projects.

The manifest editor web components should handle manifest generation and editing of existing manifests. It should guide and help developers to build a solid manifest by validating fields and providing resources and documentations for various fields.

The manifest editor should:

Do you have an implementation or a solution in mind?

Basic Usage

<pwa-manifest-editor></pwa-manifest-editor>
let editor = document.querySelector('pwa-manifest-editor');

editor.initialManifest = myManifest; //load an initial manifest

let editedManifest = editor.manifest; // get edited or generated manifest
let icons = editor.getIcons(); // get blobs of all icons
let screenshots = editor.getScreenshots(); // get blobs of all screenshots

// events
manifesteditor.addEventListener('manifestUpdated', (e) => { });
manifesteditor.addEventListener('iconsUpdated', (e) => { });
manifesteditor.addEventListener('screnshootsUpdated', (e) => { });

Have you considered any alternatives?

No response

Backlog:

ghost commented 2 years ago

Thanks for submitting a new feature request! I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future.