Code Monkey home page Code Monkey logo

liveremote's Introduction

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
   parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
   },
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list

liveremote's People

Contributors

isfopo avatar

Watchers

 avatar

liveremote's Issues

Allow multiple layouts

Add an action that can switch between and add layouts. Each layout should have a name.

Display errors from useSocket

The hook useSocket can catch errors from the websocket - those should be displayed when they happen. Since those errors are in the state of the hook, I'll have return them and show them at some level on the main app page.

I could just have some way to handle them on the Remote page, but I could also create a context for errors and other notifications.

Also, the errors should be leave after a while.

Optimistic rendering on set calls

When a button or any interaction is sent to Live, instead of waiting for the server to respond with the updated value, update it in the Live context first in teh send function. This will provide a snapper experience for the user.

Fix styles on mobile

Icons and some text is appearing as blue, not matching the color for the given theme

Style Connect Dialog

Show code and code input should be on the same line, with the button taking up 1/3(ish) of the space. The check button should take the whole line and be a different color. The close button should also be fixed.

Register and unregister listeners on widget mount

When a widget is added or removed from the grid view, a listener should be added or removed, respectivly to the Live Api. Ideally, the listeners a widget needs should be defined close to the widget component itself, either in the widget (that make prove to be awkward) or in the list od widgets that exists in the useWidgetLayout hook.

Use context for widget layout

Having some issues with updating available widgets from the add widget dialog. This is probably due to the availableWidgets prop for the dialog not being updated. If this is kept in context, along with the rest of the widget layout, it should be possible to update the available widgets from the dialog.

Add new widgets to layout

Create an "add" button to the actions, next to the edit icon, that opens a dialog to add a new widget to the grid.

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.