Making a second fork of windy-plugins on github
-
Hi @ivo and @TomSlavkovsky,
I have an idea for a new plugin, which I've been testing out. But you cannot fork a repository on Github that you've already forked once before.
What would you recommend I do to create a second plugin? I'd rather not have to set up a new Github account just for this... Is it even necessary to use a fork? Or would the npm dependency stuff still work fine if I simply clone it?
Any advice is appreciated!
-
Hi, you do not have to fork the repository. You can clone it and change the origin locally. Or you can just download it as a zip file and init a new git repo.
-
Hi @marekd,
Thanks for the response. My plugin is nearly done. One more question – How do I close the picker in javascript?
The API docs suggest that I should just be able to do
import picker from '@windy/picker
, and
picker.close()
// (assuming it's been opened)but this logs the error:
plugin.js:52 Uncaught (in promise) TypeError: picker.close is not a functionif I
console.log(picker)
, it outputs:
{ident: "picker", latestId: 6, _eventedCache: {…}, trigger: ƒ, fire: ƒ}I just want to keep the picker closed entirely for the plugin, or close it immediately if it does open. Is there a bug in the backend, or am I just missing something?
Thanks,
John -
hi
from: https://github.com/windycom/windy-plugins/blob/master/docs/WINDY_API.md#module-picker
broadcast.fire('rqstClose', 'picker')
-
Thanks @rittels! Exactly what I needed :)