Open jondashkyle opened 6 years ago
I've been hitting my head on getting this running all day. I think I can figure this out.
@neauoire I also have a very rudimentary version of this running locally. Also, am somewhat sure Paul and Brave have been discussing formalizing the Web API within Beaker into a library which would be plugable for any electron app more or less. Dunno where that is now, but certainly on the map.
I've modified the view.js 's load() to catch dat:// requests/load the content of the dat:// url. It works for html/text content but none of the images/included files are loading. I'm currently using pauls-dat-api, I'll spend a bit more time on this, but this project can definitely become a base to bring dat to any electron browser.
Maybe we can bring @pfrazee in the thread.
@neauoire Interesting; could you push that branch of your fork? Curious to take a look.
Also curious about you two's work in this area. I'm not very familiar with Dat yet, was planning to take a crack at it once Beaker's Web API has legs of its own. In any case, great to see this issue gaining traction.
I'm busy with something this morning, but as soon as I have a few minutes, i'll push my changes, and we'll see how we can go from there :) I'm excited.
I have a plan to factor out Beaker's dat-handling code, but it won't be on my task list for a little longer. You should be able to copy out Beaker's code without too much trouble.
Load Dat archives! This would be view only, and enable use of Beakers
web-api
andwebdb
. This could require breaking out some of the core Beaker functionality for viewing Dat archives, but until then perhaps there are some redundant implimentations.Reference