Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    Making a second fork of windy-plugins on github

    Windy Plugins
    3
    5
    297
    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.
    • johnckealy
      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
      • marekd
        marekd Administrator 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
        • johnckealy
          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

          rittels 1 Reply Last reply Reply Quote 0
          • rittels
            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
            • johnckealy
              johnckealy last edited by

              Thanks @rittels! Exactly what I needed :)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
              NodeBB & contributors, OSM & contributors, HERE maps
              Terms and Conditions     Privacy Policy