Giter Site home page Giter Site logo

Comments (4)

Asfanalu avatar Asfanalu commented on May 27, 2024 1

Hi, can i work on this?

from video-hub-app.

whyboris avatar whyboris commented on May 27, 2024 1

Hello @Asfanalu - thank you for the offer 🙇‍♂️

Please let me know if you'd like a hand with any part of the task. I can be broad or specific in suggestions - just let me know 🤝

from video-hub-app.

Asfanalu avatar Asfanalu commented on May 27, 2024

I have a little question:
my original idea was to add a dedicated directive to catch and manage the DnD events and send the file/s with new ipc.on method.
For update automatically the view to see the new file/s i need to set, in the SettingComponent, the rescan flag for the specifc folder.
Is there another method to force the new manual rescan , after DnD of new files?

from video-hub-app.

whyboris avatar whyboris commented on May 27, 2024

There already is a drag-and-drop event available for handling dropping a .vha2 file - making the app open the hub:
https://github.com/whyboris/Video-Hub-App/blob/main/src/app/components/home.component.ts#L856

There is already ability to drag an image file over a thumbnail to replace the default thumbnail:
https://github.com/whyboris/Video-Hub-App/blob/main/src/app/components/home.component.ts#L943

I hope it's possible to detect if a folder is dropped over the app window. Whatever you do, I hope it doesn't prevent these two pieces of functionality from working as before.

Once a folder is dropped over the app, we just need the path (string). And this method is basically all that's needed:
https://github.com/whyboris/Video-Hub-App/blob/main/src/app/components/statistics/statistics.component.ts#L189

Since the statistics.component.ts isn't usually instantiated (unless the user has opened the setting menu / component), this method isn't available to use 🤔 something will need to be done to make things work - hopefully not too tedious 🤞

Let me know if you have any questions (especially if I didn't address your previous question). Cheers! 😁

from video-hub-app.

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.