Video-Hub-App icon indicating copy to clipboard operation
Video-Hub-App copied to clipboard

Clean up (click) emits

Open whyboris opened this issue 4 years ago • 6 comments

There's RightClickEmit, VideoClickEmit, and many others that are not strongly typed 😓

It's messy code figuring out which (click) event is happening and what is being sent via new EventEmitter from components to their parents 🙄

My todo 😅

whyboris avatar May 12 '20 04:05 whyboris

Hi, do you still need help with it ?

altynbeq avatar May 14 '20 22:05 altynbeq

I'm happy to take the help if you're offering 😉

The challenge is I have components nested inside components that emit data that needs to be passed through.

Currently everything works on master so it's no problem, but it's really convoluted at times, and I suspect there's a way to make it all uniform.

If you decide to give this a go, please let me know if you have any questions and feel free to reach out for assistance 🤝

Cheers!

whyboris avatar May 14 '20 23:05 whyboris

Hey @altynbeq -- please let me know if you're still interested in trying out this issue 👍

I didn't add a good first issue tag because I'm unsure if it's "newbie friendly" 😅

No matter who decides to work on it I'm very happy to help along 🤝

whyboris avatar Jul 26 '20 23:07 whyboris

Pushing it off until after 3.0.0 release: everything is working, no bugs as far as I can tell. The fix is internal and not required prior to 3.0.0 👌

whyboris avatar Oct 22 '20 22:10 whyboris

To reiterate: everything is working, there are no problems for the users. I just suspect the code could be cleaner 🤷

This is a very low-priority issue 👌

whyboris avatar Dec 15 '20 22:12 whyboris

This should be easier now that tsconfig.json has this:

{
  "angularCompilerOptions": {
    "strictTemplates": true
  }
}

This will error out when you run npm run electron and list all the errors (and VS Code will also underline the errors in templates).

Currently there are about 20 of them -- all complaining about mismatched type :trollface:

Argument of type 'object' is not assignable to parameter of type 'VideoClickEmit'. Property 'mouseEvent' is missing in type '{}' but required in type 'VideoClickEmit'

whyboris avatar Feb 20 '23 21:02 whyboris