Coder Social home page Coder Social logo

mediaportal's Introduction

mediaportal's People

Contributors

desko27 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

waken22 joaochris

mediaportal's Issues

Better management for events

We need a clearer contract for the events, especially when dealing with them in the renderer process.

  • Create enums for each event
  • Maybe use this
  • Consider building a class for events management, so an instance is "exposed to the main world" and can be used like an API client for events (a bag of known methods)
  • Improve preload.js (and add types, although if the previous one is done it will be typed already because of the class)
  • Move from window.electron to window.whatever, since the name electron is confusing because it's not actually electron but a custom API that is exposed in window from preload.js
  • Add specific types in electron.d.ts for window.whatever (rename to whatever.d.ts too), importing specific event types (from original events file, or from @types) so event listeners provide intellisense in the renderer code (again, if a class instance is registered in preload.js we will only need to load that one to get the right typings)

Reorganize react component directories

The following directories currently contain components:

  • components
  • routes

Which was fine when the project started. But as the list grows most of them keep being consumed by a single route.

So having a single directory with a structure that resembles the actual react tree would be more understandable.

Except for reusable components like MediaDisplayer which is used in both the portal and controls preview.

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.