Giter Site home page Giter Site logo

kinokabaret / axiom-webremote Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.06 MB

Vue-ified webgui with development server, ES6 linting and tests

License: GNU General Public License v3.0

HTML 6.79% Vue 59.86% JavaScript 28.35% CSS 5.01%
apertus axiom quasar-framework vue

axiom-webremote's People

Contributors

nothingismagick avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

axiom-webremote's Issues

Validate localstorage values against a registry.

On load we'll need to instruct the code to look at the registry and make sure that we have sensible ID's and VALUE's before we try to add them anywhere - or worse - post something nasty to the camera's server.

This also needs to be done server-side - but that is out of scope here.

Mutation Translation / Alert Hook

It seems that we don't have access to either the i18n scope or Quasar from within the mutations.js provider. Some kind of hook will be required to call the Mutator so that we can have feedback on the screen as a chromed alert, instead of just in console.log(). Although not "necessary", I prefer to translate everything from strings instead of hardwiring content into anything. This is why the API replies with a translation primitive instead of a "real response".

We have access to this stuff in common.js - so that's probably where to put it.

Endpoint Construction

I suggest that we define an API spec call where the SERVER provides a list of calls that it will accept - a kind of self-documenting spec.

This way, instead of hardwiring everything into the front-end, we expect that the SERVER tells us what it is currently capable of. This should be in JSON and include Translations for the interface. Once it arrives, we inject it into the front-end and alert the SERVER that the interface is ready to start C&C.

I imagine something like this:
<service.ip>:<service.port>/api/<api.version>/dictionary to give us:

https://192.168.1.1:7070/api/v1/dictionary

And the last line is: dictionary.slice(-1)[0] // to get the last element in the array

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.