zikaari / react-aspen-demo Goto Github PK
View Code? Open in Web Editor NEWExample filetree component for React apps based on `react-aspen`
Home Page: https://neeksandhu.github.io/react-aspen-demo/
License: MIT License
Example filetree component for React apps based on `react-aspen`
Home Page: https://neeksandhu.github.io/react-aspen-demo/
License: MIT License
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 for common extensions like .png
, .svg
, etc.
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.
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.