Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    Making a second fork of windy-plugins on github

    Scheduled Pinned Locked Moved Windy Plugins
    5 Posts 3 Posters 1.9k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • johnckealyJ Offline
      johnckealy
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • marekdM Offline
        marekd Windy Staff
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • johnckealyJ Offline
          johnckealy
          last edited by

          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 function

          if 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

          rittelsR 1 Reply Last reply Reply Quote 0
          • rittelsR Offline
            rittels Code contributor @johnckealy | Premium
            last edited by

            @johnckealy

            hi

            from: https://github.com/windycom/windy-plugins/blob/master/docs/WINDY_API.md#module-picker

            broadcast.fire('rqstClose', 'picker')

            1 Reply Last reply Reply Quote 0
            • johnckealyJ Offline
              johnckealy
              last edited by

              Thanks @rittels! Exactly what I needed :)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Windy Community  |  Powered by excellent NodeBB
              Terms of Use     Privacy Policy     Windy.com