-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add toggle preview json to copy to manifest.json #54
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this feature idea! I'd like to replace some code with native tools that achieve the same effect. It would also be great to have some help text above/below the JSON that says where to put it. You can use:
Copy this JSON into the
"icons"
array of your Web App Manifest
@@ -297,6 +309,12 @@ <h2 id="modalTitle">Export</h2> | |||
</label> | |||
</div> | |||
|
|||
<div> | |||
<a href="#" class="dialog-action-link" id="showPreviewArrayIcons">Show JSON</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to use the <details>
/<summary>
elements instead to do the open/close without Javascript.
sizes: `${size}x${size}`, | ||
})); | ||
|
||
outputPreview.textContent = JSON.stringify(filteredJson, null, 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating the text is cheap enough that we can just change it everytime the selected checkboxes are changed. That also removes the need for a separate array, you can read sizeInputs
.
Hi @NotWoods. I'm worning on it! |
I think that it's more easy to show a json snippet to developer can copy!