Giter Site home page Giter Site logo

paste-dat's People

Contributors

garbados avatar taravancil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

paste-dat's Issues

Remove archive.commit() depreciated method?

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:

await archive.commit()

All seemed to work fine.

Use feature detection instead of user agent sniffing.

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.

Should we even write files?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.