code-server icon indicating copy to clipboard operation
code-server copied to clipboard

Any client for code-server?

Open jin-syd opened this issue 7 years ago • 14 comments

Description

When you run in on Chrome(or any browsers), some of key shortcuts do not work, because they are taken by the web browser. Such as Ctrl-tab.

Is there any client to browse Web, but it supports only one tab, and does not reserve any shortcut?

I feel like it won't be difficult to make it using Electron.

Related Issues

jin-syd avatar Apr 11 '19 01:04 jin-syd

Supporting the PWA for Desktop Mode could be a relative easy alternative to an electron app (which almost would be an inception - because vscode originally is an electron app :) ). https://developers.google.com/web/progressive-web-apps/desktop

adrianliechti avatar Apr 11 '19 12:04 adrianliechti

@jin-chong install chrome extension open-as-popup which converts current tab into stand-alone pop-up window w/o all the browser toolbars etc and all keyboard shortcuts will work.

Muruloki avatar Apr 11 '19 17:04 Muruloki

This can be done in chrome by adding it as an app:

  1. More Tools > Create Shortcut
  2. Check "open as window"
  3. Launch from the chrome://apps page

It picks up all the keyboard shortcuts this way.

nrlulz avatar Apr 11 '19 17:04 nrlulz

chromium --app=[URL of your code server] should work.

If you're not using Chromium, replace chromium with google-chrome or whatever chromium fork you use (vivaldi, brave, etc).

aveao avatar Apr 12 '19 09:04 aveao

Here are the requirements for running code-server as a PWA:

  • Run code-server built from source after commit 22b485acd9a2accaec601ae6233a9b70ffd6eaf7
  • Running code-server with valid --cert and --cert-key files
  • Using https
  • Using a browser with PWA support (chrome 72+)

If all requirements are met you should be able to install the PWA.

lucacasonato avatar Apr 16 '19 21:04 lucacasonato

HI @lucacasonato, I just want to ask how do you generate valid certifications? I followed the coder instructions to create self-signed certification and use it when launching code-server but chrome73 doesn't accept it. Launching code server on port 443, Chrome flag the link as unsecured.

philipAdvesa avatar Apr 18 '19 19:04 philipAdvesa

I think the self-signed certs still show a warning in chrome because they are not verified by a third party. I think you would have better luck with something like letsencrypt

nol166 avatar Apr 18 '19 19:04 nol166

image

Can i hide omnibox and title bar in pwa window?

kondr1 avatar Apr 24 '19 08:04 kondr1

There shouldnt be an omnibox afaik. What version of chrome are you using?

lucacasonato avatar Apr 24 '19 08:04 lucacasonato

Lasted version 74.0.3729.108

kondr1 avatar Apr 24 '19 08:04 kondr1

I try add coder.com like a pwa and shortcut redirect me on page https://coder.com/projects?source=pwa with 404 error

kondr1 avatar Apr 24 '19 09:04 kondr1

@kondr1 We removed our projects page a long time ago.

MichaelDesantis avatar Apr 24 '19 15:04 MichaelDesantis

Hi,

I have simple client which opens code-server URL in app mode.

repo: https://github.com/mengjuleu/code-server-proxy

See CSP-CLI section.

You can open a code-server project by

csp-cli open <URL of project>

mengjuleu avatar Apr 24 '19 21:04 mengjuleu

I don't think we'll provide any client for code-server, but you can use Chrome's NaCl or iPadOS's feature to pin apps. Closing for now.

sr229 avatar Sep 12 '19 17:09 sr229