Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

[Feature Request] Add a QR Code in terminal output to quickly open local from phone #27

Open
doppelganger9 opened this issue Jan 17, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@doppelganger9
Copy link

This a Feature Request for enhancing somewhat the dev/local experience 馃槑馃.

It seems you are fond of QR Codes 馃so here we go:

There exists a BrowserSync plugin called bs-console-qrcode.

  • npm i bs-console-qrcode --save-dev
  • Since there is a BrowserSync config file (bs-config.json), you just need to add a line :
{
  "files": [
    "./dist/**/*.{html,htm,css,js,svg}"
  ],
  "plugins": ["bs-console-qrcode"],
  "server": { "baseDir": "./dist" }
}
  • Then run npm start, and you will see something like this :

qrcodeinsideterminal

  • then scan it from a mobile device to open up the local PWA for example.

On iOS, this is as easy as opening up the photo app, looking at the QR Code, a popup will appear and you can click it, avoiding typing manually the address+port !

(I seem to recall having seen this idea from React Native CLI and found it useful)

Comments welcome, thank for your awesome work, btw! 馃憤

@peterpeterparker
Copy link
Contributor

peterpeterparker commented Jan 18, 2019

@doppelganger9 haha yes I was interesting exploring QR code these last few weeks, specially because I saw a use case in term of presentation

that's cool idea 馃憤

I think it would just need a bit more development than you description. Right now, there is not deep links, the app (https://deckdeckgo.app) start without presentation and its up the user to open the modal to search for his/her presentation and link it. So to implement this smoothly I think it would need an improvement where you could specify a parameter to the app in order to load a particular presentation (like https://deckdeckgo.app?presentation=my%20current%20presentation)

Definitely an interesting idea, thx a lot for the input 馃榾

P.S.: Regarding my add-ons description, of course if I understand you, that adding a QR code to link to the remote control respectively not to open the presentation on the phone? or did you rather like to open the presentation itself with the code?

@peterpeterparker peterpeterparker added the enhancement New feature or request label Jan 18, 2019
@peterpeterparker
Copy link
Contributor

Update on this subject: we may have integrated "deep links" in our upcoming editor for presentations 馃槈

It means that when it will be finished a properly tested we will be able to inherit the feature and display a QR code in the console which links to the remote directly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants