Giter Site home page Giter Site logo

tux-app's People

Contributors

goje87 avatar

Watchers

 avatar  avatar  avatar

tux-app's Issues

`tux-siren` should be singleton

There should not be multiple instances of siren buzzing together. If one component has invoked the siren other should be able to check and stop it if required.

Make all the import paths relative

Currently the components are imported with absolute paths. Replace them with relative paths.

Eg: Polymer is usually imported as /components/bower/polymer/polymer.html. Instead it can be imported as ../bower/polymer/polymer.html.

Do this in all .html files in www folder recursively.

Newly registered PIN isn't updated by siren

Following steps happen when new PIN is registered.

  1. User enters and re-enters the PIN.
  2. Once validated, the PIN is stored in localstorage using iron-localstorage.
  3. This change in localstorage is expected to be updated in siren button (but this does not happen).
  4. Now when the siren is buzzed and user enters the registered PIN, it verifies against the PIN stored in localstorage.

In above sequence, since the step 3 isn't working as expected (meaning, the siren button isn't getting updated about the change in PIN), the workaround is to refresh the page once new PIN is registered.

How to reproduce the issue?
Comment the window.reload() line in tux-pin-registrar and then follow the steps below.

  1. Delete the entries in localstorage.
  2. Refresh the page so that it pops the dialog asking for PIN.
  3. Enter and re-enter the PIN.
  4. Tap on the siren button.
  5. When it asks for PIN enter same PIN as just registered.
  6. Siren doesn't go off. :(

Register the PIN before the usage of the app.

The first thing the user should be doing is to register the PIN. This PIN can then be used to de-activate the siren.

  • If no PIN is found in local storage, register one.
  • Re-enter the PIN to verify.
  • While de-activating the siren, check if the entered PIN matches the registered one.

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.