Git Product home page Git Product logo

Comments (8)

FBerthelot avatar FBerthelot commented on August 19, 2024 1

You can check the #34 Pull Request ;)

from konami-js.

georgemandis avatar georgemandis commented on August 19, 2024 1

I've merged #34. Give it another shot sometime @mably. Thanks for the update @FBerthelot!

from konami-js.

georgemandis avatar georgemandis commented on August 19, 2024

Thanks for the suggestion! Do you have any thoughts on how that might look? Do you have any examples of integrating the current version of konami-js in a SPA?

from konami-js.

mably avatar mably commented on August 19, 2024

We used it on one of our app to switch from test to prod environment ;)

It was used globally, changed a value in local storage and then reloaded the app (window.reload).

The problem is that it was being triggered by normal users navigating thru our app, a bit annoying ;)

So it could be interesting to be able to enable/disable it by adding a simple enable(bool) method or eventually allow to reset the current Konami inputs when changing screen with a clearInput() method for example.

from konami-js.

georgemandis avatar georgemandis commented on August 19, 2024

That's an interesting use case :). You're not the only company I've heard of using it that way! Though using it to switch from test to production sounds kind of scary. You're braver than me!

A feature like you're describing would be easy enough to add. But I wonder if it makes more sense to solve it within the context of the SPA itself, rather than add it as a feature to konami-js? There are a lot of factors to consider I know. What framework are you using, if I might ask?

from konami-js.

mably avatar mably commented on August 19, 2024

It's an Angular app. Actually we had to remove the Konami part once a few of our testers switched to dev env accidentally ;)

from konami-js.

mably avatar mably commented on August 19, 2024

Excellent! Will give it a try :)

from konami-js.

mably avatar mably commented on August 19, 2024

I will, thanks 😄

from konami-js.

Related Issues (20)

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.