Code Monkey home page Code Monkey logo

react-aspen-demo's People

Contributors

zikaari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-aspen-demo's Issues

How to add Remove function?

First off, thanks for this library, must have been a lot of work.

I tried to add a "Remove" button to the entries (both directory and files) using:

this.props.model.root.inotify({
    type: WatchEvent.Removed,
    path: item.path,
});

But this fails with this exception:

Uncaught (in promise) TypeError: Method WeakMap.prototype.delete called on incompatible receiver undefined
    at delete (<anonymous>)
    at index.js:40
    at Set.forEach (<anonymous>)
    at Notificar.dispatch (index.js:40)
    at Object.notifyDidDispose (Root.js:52)
    at FileEntry.dispose (FileEntry.js:125)
    at FileEntry.mv (FileEntry.js:74)
    at Root.unlinkItem (Directory.js:236)
    at Object.Directory.handleWatchEvent [as callback] (Directory.js:61)
    at Root.dispatchWatchEvent (Root.js:455)

Do you have any idea what's causing this? Or do you have an example of how to properly to Removals?

Repo: https://github.com/graup/react-aspen-demo/tree/delete-button

File icons

File icons for common extensions like .png, .svg, etc.

Awesome demo, but....

This is a really great demo. It looks quite promising, in that it doesn't render child elements.

Right now, at my work, we have some pages that have recursive structures (e.g. stores with stations), and have our own way of doing it, but it seems (dare I say it, a bit naive). I think your way is better.

However, when testing by expanding the file tree past its container, I saw we were still rendering that other stuff. Is there way to not render anything past the container?

Again, this is awesome plugin and I look forward to using it.

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.