webmaxru / node-red-contrib-web-push

A Node-RED node for sending Web Push notifications using VAPID
https://www.npmjs.com/package/node-red-contrib-web-push
6 stars 7 forks source link

Button to generate VAPID keypair #5

Closed bartbutenaers closed 4 years ago

bartbutenaers commented 4 years ago

Hi Maxim,

as discussed, a new pull request that only contains a "Generate VAPID keypair" button on the config screen:

image

The button calls the new http endpoint on the server side, which calls in turn the web-push module.

To avoid that somebody by accident overwrites his original keys, a popup will appear when the public or private key field is already filled:

image

The button is now also mentioned on the Info panel, and also the link to the VAPID specifications:

image

Hopefully it is ok now to be published on NPM.

Thanks a lot!

Bart