uwap / mqtt-control-map

Highly configurable MQTT map interface
6 stars 3 forks source link

Various uwap-home changes #145

Closed Ranlvor closed 1 year ago

uwap commented 3 years ago

Please rework the pull request to be compatible with the new icon changes. See https://github.com/uwap/mqtt-control-map/wiki/Icons for more information

Ranlvor commented 3 years ago

Rework is done, Travis is green. https://travis-ci.org/github/uwap/mqtt-control-map/builds/736626853

Ranlvor commented 3 years ago

Now the linter says

192:27 error 'Buffer' is not defined no-undef

What do I need to import to be able to use buffer? I need buffer because the type-function of a command-topic has to return a buffer, not a string, for flow to allow it.

Ranlvor commented 3 years ago

Thank you for the import @uwap. The Tests are now green again.

https://travis-ci.org/github/uwap/mqtt-control-map/builds/743691721

Ranlvor commented 3 years ago

The import Buffer did not work too well. Flow and Webpack and yarn lint are fine with it, but I get „TypeError: Cannot read property 'from' of undefined“ whenever I try to use the command in the browser. When I remove the import sending commands via browser works but the linter complains:

  193:27  error    'Buffer' is not defined  no-undef
  205:27  error    'Buffer' is not defined  no-undef
Ranlvor commented 1 year ago

superseeded by #177