taravancil / paste-dat Goto Github PK
View Code? Open in Web Editor NEWA tool for sharing files with Dat in the Beaker browser
A tool for sharing files with Dat in the Beaker browser
There is a console warning:
The DatArchive commit() API has been deprecated.
as indeed it is listed as depreciated method here dat://beakerbrowser.com/docs/apis/dat#commit
Although it is not clear to me what this method did. When I removed this line:
Line 43 in 49ca096
Right now paste-dat checks if it should support saving by looking for the string "BeakerBrowser" in the user agent string. I propose instead checking if "DatArchive" exists in the window context. I know that right now the DatArchive API is only supported by Beaker Browser, but I believe it is better not to user user agents to infer anything, ever.
An example which is forked from the original page can be found here: https://parsedat-peacememories.hashbase.io/
Only the check is changed, not the resulting message, and it's done in the "binary" js.
Open questions:
PasteDat doesn't really function like pastebin/gist if when, for example, you add a .html
file, every time you visit that file, it's actually rendered as HTML. How do you ever get the raw file? We should probably just write one file in the archive (the preview page), which renders all of the file contents.
This makes the preview unscrollable
Should consider doing this for the default markdown formatting in Beaker as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.