Code Monkey home page Code Monkey logo

Comments (9)

ctf0 avatar ctf0 commented on May 24, 2024 3

for more than a reason

  • atm u need to support different ops keys "ctrl vs cmnd"
  • the user might have already assigned the same keys for something else "os level or site level"
  • using a btn is much easier and u dont need to reach for ur keyboard each time u want to disable/enable as for debugging u r mostly going to use the mouse.
  • using a shortcut means the user have to memorize it, what if there are more than one dev on the same project ?
  • keycodes not persistent across browsers nor easy to maintain

from laravel-view-xray.

mpociot avatar mpociot commented on May 24, 2024

Any reason why?

from laravel-view-xray.

ctf0 avatar ctf0 commented on May 24, 2024

@mpociot any updates ?

from laravel-view-xray.

mpociot avatar mpociot commented on May 24, 2024

Do you want to provide a PR with the changes for this?

from laravel-view-xray.

ctf0 avatar ctf0 commented on May 24, 2024

do u want to keep the shortcuts or remove em ?
for btn styling, do you want it to be configurable or static?

and to make sure, this is the part that should be replaced

is_mac = navigator.platform.toUpperCase().indexOf('MAC') !== -1;
$(document).keydown(function(e) {
if ((is_mac && e.metaKey || !is_mac && e.ctrlKey) && e.shiftKey && e.keyCode === 88) {
if (Xray.isShowing) {
Xray.hide();
} else {
Xray.show();
}
}
if (Xray.isShowing && e.keyCode === 27) {
return Xray.hide();
}
});

correct ?

from laravel-view-xray.

mpociot avatar mpociot commented on May 24, 2024

I guess we can just make the button styling static.
What do you think of having the shortcuts configurable? Not the actual keys, but the ability to enable/disable them?

And yes - that's the part that needs to be updated

from laravel-view-xray.

ctf0 avatar ctf0 commented on May 24, 2024

What do you think of having the shortcuts configurable? Not the actual keys, but the ability to enable/disable them?

yeah why not, but if you are going to make it configurable why not go the extra mile and make the shortcut it self configurable ?

on a side note,
i was thinking maybe we can turn the whole UI into a browser extension, something like vuejs, blackfire, etc.. but am not sure how it will be done 😞

from laravel-view-xray.

mpociot avatar mpociot commented on May 24, 2024

yeah why not, but if you are going to make it configurable why not go the extra mile and make the shortcut it self configurable ?

That's a great idea!

And I also thought about turning this (among other things) into a browser extension, but haven't found the time to look into it in more detail

from laravel-view-xray.

ctf0 avatar ctf0 commented on May 24, 2024

okay so to keep things simple, lets replace the shortcuts with a btn for now & the extra config could be added later to the browser ext, this way we won't need to do big changes to the package.

btw we can open a new issue for the browser ext idea, maybe someone can pick it up.

also i was thinking of dropping jquery, again it would make things easier when converting to an ext.

from laravel-view-xray.

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.