Commit graph

13 commits

Author SHA1 Message Date
Joe Ludwig
5d747004ab Added initial remoteUrl state
So the image will appear if it's set before the remote gadget is spawned.
2021-02-13 10:40:56 -08:00
Joe Ludwig
078f24f6fe Added multi-user support
* Images are added with a local and remote URL so that IPFS documents can use IPFS on the remote end instead of passing the data URL around.
* Hooked up an event to remote gadgets when an image is selected.
2021-02-13 10:27:12 -08:00
Nye Evans
0763b8b455 added ability to delete items from image menu, looked into reworking ipfs
minor css changes too
2021-02-12 10:42:25 +00:00
Nye Evans
7be6148337 Merge branch 'pr/2' into main 2021-02-11 17:52:07 +00:00
Nye Evans
745f3f6840 ipfs links work through createObjectUrl() + minor css changes 2021-02-11 17:46:31 +00:00
Nye Evans
5054242699 minor changes
-url box clears itself after submission
-alert is now rendered on window rather than shows as a pop-up alert
2021-02-10 13:06:02 +00:00
Nye Evans
3648a29d71 quality of life fixes
-images can now be removed from the menu as-well as added
-ensured only one upload window can be open at once

some other things have been done but these are one second branch
2021-02-10 12:06:57 +00:00
Joe Ludwig
c92e58eb82 IPFS upload of local images
To use this just drop a local image file onto the spot on the add dialog that says "drop here".

The panel can't display /ipfs/ URLs, so they appear as broken images. Need to use models to display them.
2021-02-09 21:19:31 -08:00
Joe Ludwig
4ba64cc93f Moved ImageAdder to its own file
To make merging easier and such
2021-02-09 09:02:08 -08:00
Nye Evans
fade7c08e2 added image validation
very basic at the moment
2021-02-08 17:16:30 +00:00
Joe Ludwig
fbcf23c69a Added add image popup
* Replaced window.open with a blank window and the populated that with an ImageAdder react component.
* Switched the image list to be part of ImageMenu's state so it can be dynamic.
* Added a little form to that component that lets the user enter a URL. When they hit "submit", add that to the image menu.
2021-02-06 11:05:26 -08:00
Nye Evans
0872b84779 inital commit
:)
2021-02-06 17:22:48 +00:00
Nye Evans
7efcda8ee3 initial commit
:)
2021-02-06 17:15:12 +00:00