visualsubnetcalc icon indicating copy to clipboard operation
visualsubnetcalc copied to clipboard

Feature Request: Ability To Load In JSON From Git / External URL

Open dansjackson opened this issue 1 year ago • 6 comments

Hi,

It would be great if I was somehow able to store the config without having to copy and paste the export.

Perhaps if I could store it in Git and then load in the URL of the JSON, eg:

https://visualsubnetcalc.com/?url=https://raw.github.com/username/project/master/subnet.json

or also if there was some scope to perhaps allow for commiting to git within the interface after changes are made?

dansjackson avatar Apr 27 '24 08:04 dansjackson

How about this for a first cut? @dansjackson? Being able to save or load a json to a file locally. The json could be saved to a folder managed by git.

byroncollins avatar Jun 24 '24 02:06 byroncollins

@byroncollins - this is a good idea

dansjackson avatar Jun 24 '24 07:06 dansjackson

Great tool, btw... Recent discovery for me!

To validate this idea, was literally just musing to coworker "too bad this doesn't let you commit a spec file to git".

crussell52 avatar Jul 16 '24 16:07 crussell52

How about this for a first cut? @dansjackson? Being able to save or load a json to a file locally. The json could be saved to a folder managed by git.

IMO, a "To/From JSON" type link which populates/reads a (collapsible?) text area would be OK as a first iteration. I'd be fine using copy/paste for file persistence.

This implementation would also be usable in environments where direct browser interaction with local files is not possible or not wanted.

crussell52 avatar Jul 16 '24 16:07 crussell52

@crussell52 - This already has a Import/Export JSON option in the Tools menu.

ckabalan avatar Jul 16 '24 17:07 ckabalan

@crussell52 - This already has a Import/Export JSON option in the Tools menu.

😬 Yeah... I just found that and came back to confess my sins. Thx.

crussell52 avatar Jul 16 '24 19:07 crussell52