Giter Site home page Giter Site logo

Comments (3)

Rezrazi avatar Rezrazi commented on September 26, 2024

Hi @vesper8

Thank you for your suggestion, however this falls outside the scope of the features we have planned for the package.
This is too specific of a usecase, and we're putting it aside for the moment, we might take a look at it in the future if it shows more interest.

What we may suggest for the time being is that we're planning the addition of Pinia (or Nova) events, these events can be hooked into so as to implement custom logic/actions.

One way we're imagining this for your particular usecase is to emit a selectedFile event for instance that will represent a user's selection in the tool, and then allow you to implement your own business logic by adding your own JS/API logic.

This however will not be included in the next 0.7 release, we may suggest taking a look at Pinia state and actions subscribers to implement this feature for the time being.

Thank you !

from nova-file-manager.

vesper8 avatar vesper8 commented on September 26, 2024

Thanks for the response @Rezrazi and I like the sound of that idea you've got about implementing onSelect events that I could piggy-back off of.

But that might not work though because that would only allow for one custom action per file and it would occur as soon as you select the file row which would be too early. The ability to define a custom icon with a custom onClick event would be what I'd need. You could add those in the config file, you'd specify an icon class and a click handler and you'd write your own onClick logic.. no need to have the users write additional javascript. On the front-end site in your package you'd just iterate over any custom actions and create a new icon dynamically and emit an event that could be listened to inside the custom click handler.

Maybe what you've got in mind could also work and I'm just not visualizing how it would lead to being able to add one or more custom icons with custom actions.

Anyway loving the new update! And I've worked with both Pinia and Pintura so these things are definitely great additions in my eyes!

from nova-file-manager.

vesper8 avatar vesper8 commented on September 26, 2024

About the new version.. super minor nitpick here.. not even worth opening a new issue over. But I suspect many people will run into this.

I ended up getting the You are running an outdated version of the package message, and then I noticed the vendor change and did all of that, removed the vendor folder, removed the config file, removed the old package, added the new one, publish the config.. and I noticed I was still getting the You are running an outdated version of the package.. I then looked at the code and noticed the message is being cached for 1 day by default.. so I cleared my cache and it went away. It just seemed odd that I would still see this message for a whole day even after updating everything.

from nova-file-manager.

Related Issues (20)

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.