rpetrich / deciduous

App that simplifies building decision trees to model adverse scenarios
https://deciduous.app
GNU General Public License v2.0
180 stars 17 forks source link

Add "Import GitHub Gist" button that imports the contents of a GitHub gist by ID or URL #18

Closed rpetrich closed 2 years ago

rpetrich commented 2 years ago

Adds the ability to import content from a GitHub gist URL by fetching it from inside the user's browser. As a convenience the URL will update to include the gist ID that was imported so that direct links to decision trees can be shared.

As an example, open index.html#gist=a14a8cb69cb4fef766b4f46b52dba75c from this branch in your browser for thinksgiving Rick and Morty silliness.

netlify[bot] commented 2 years ago

✔️ Deploy Preview for inspiring-poitras-b92665 ready!

🔨 Explore the source changes: 2061d841e256fb17b1526d6c811eef33bee9ffc7

🔍 Inspect the deploy log: https://app.netlify.com/sites/inspiring-poitras-b92665/deploys/61f07ee61b4cc2000701c8d5

😎 Browse the preview: https://deploy-preview-18--inspiring-poitras-b92665.netlify.app/

rpetrich commented 2 years ago

Whoa, netlify's bot is cool. A direct link to thanksploitation: https://deploy-preview-18--inspiring-poitras-b92665.netlify.app/#gist=a14a8cb69cb4fef766b4f46b52dba75c

swagitda commented 2 years ago

Tested it out with this tree fragment and it seems like it works! https://gist.github.com/swagitda/a475ce11e47626a53845fd132e59abc1