1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 01:57:32 +08:00

55 Commits

Author SHA1 Message Date
bingohuang
ccb4b1ea17 Update index.html 2017-05-12 15:09:01 +08:00
bingohuang
6b870e7f62 Update index.html and robots.txt 2017-05-09 19:42:25 +08:00
bingohuang
87e75f59ae Update to 163yun and Chinese 2017-05-09 19:18:47 +08:00
Michael Irwin
9840e7ab8e Set default layout to "None" when on non-Mac device (#133)
Issue #131
2017-05-05 03:12:45 +02:00
Jonathan Leibiusky
d6c359645c Font size and fullscreen (#120)
* Allow to change terminal font size in settings.
Allow to enter fullscreen mode with alt+enter.

* Fix size issues
2017-04-16 19:47:18 -03:00
Michael Irwin
3b86c79c5b
Added setting to allow specification of new instance image 2017-04-11 17:58:15 -04:00
Marcos Lilljedahl
a875bbe23e Add cookie to prevent captcha constantly 2017-03-14 14:08:46 -03:00
Michael Irwin
c10dc8c984 Added settings dialog with Mac OSX keyboard shortcuts (#99)
* Added settings dialog with Mac OSX keyboard shortcuts

Issue #98

* Added default keyboard prefix detection for Macs

Issue #98
2017-02-28 11:37:04 -03:00
Marcos Lilljedahl
41ded27ef3 Use cloudfare endpoint 2017-02-20 16:07:18 -03:00
Jonathan Leibiusky
f816be6f69 Add DNS support for PWD instances (#94)
* Add DNS support for PWD instances

* Store IP address of PWD in all session networks and restore it with the
same IP address

* Remove unnecesary print

* Change url format to pwd<ip>-port for better DNS filtering

* Make PWD listen on 80 and 443 for DNS resolve to work
2017-02-17 11:10:01 -03:00
Marcos Lilljedahl
14c5cb5abf Fix stats styling issue 2017-02-03 10:33:25 -03:00
Marcos Lilljedahl
434256f9cc Increase pidslimit to 1000 and allow to override via env var 2017-02-01 17:29:14 -03:00
Marcos Nils
a5d1e5c207 Allow to override session timeout. (#86)
* Allow to override session timeout.

This comes useful as it can be overriden from the SDK now

* Fix comments
2017-01-31 13:51:57 +02:00
Marcos Nils
41d2b5f235 Add instance name to hash in URL (#77)
Fixes #7
2017-01-04 18:43:06 +02:00
Antonis Kalipetis
81280517bf Add visual state of New instance and Delete buttons (#75)
The buttons now get disabled when pressed and their text changes to the action being made.
If the action ends (either with success or failure), state is reverted to the normal one.

Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
2017-01-04 18:42:49 +02:00
Antonis Kalipetis
fd52a544d1 Add .editorconfig file for consistent styling (#76)
This should take effect when editors with [EditorConfig](http://editorconfig.org/) support are used.

Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
2017-01-03 19:47:04 +02:00
Antonis Kalipetis
1af2b3665f Update style.css to use terminal-container (#74)
* Update Xterm.js CSS to the latest version

Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>

* Update style.css to use terminal-container

The `.terminal` class was messing around xterm.js CSS rules, resulting in the cursor never being in a focused state.

Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
2017-01-03 18:13:18 +02:00
Marcos Lilljedahl
aa7aba1d5e Update xterm.js 2017-01-02 16:19:52 -03:00
Marcos Lilljedahl
93740dc9f5 Add copy shortcuts 2016-12-24 13:52:15 -03:00
Marcos Lilljedahl
946a8e1419 Add google analytics support 2016-12-15 11:31:05 -08:00
Jonathan Leibiusky @xetorthio
77905f3fd8 Query DinD instances for running containers and list the published ports
so the user can reverse proxy to the instance/port easily.
2016-12-01 17:28:55 -03:00
Marcos Lilljedahl
db03019b4e Remove unnecesarry deps 2016-11-30 18:55:31 -03:00
Alex Ellis
5eda323477 Enable use of override for session timeout in hours, fix captcha bypass bug. (#51)
* - Enable use of override for session timeout. This is more useful than having to hard-code and rebuild the code for the previous 4 hour limit. Just set environmental variable and start the app.
- Future work may involve breaking down into minutes, but this is a good minimum delivery to provide value to end-user/developer.

- Fixes bug in Captcha code by introducing new landing page. This is not a new go template, it's a separate HTML file because SRP - single reponsibility principle. Happy for this to be refacted after merging commit.

- Fix for including Docker 1.12 override has been removed for later PR.

* Merge

* Reinstate 'material' JS include'

* https for JS includes

* HTTPs for JS in bypass
2016-11-30 20:17:18 +02:00
Marcos Lilljedahl
10bdf3d5f2 Return swarm info to be displayed in the FE
This requires that PWD is working as a container in the same
network as all dinds

Add icons to swarmInfo
2016-11-29 10:52:55 -03:00
Antonis Kalipetis
a2754057dd
Make all CSS/JS links HTTPS
This helps in making this work behind an HTTPS proxy

Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
2016-11-22 09:54:29 +02:00
Chris
7e368aaf1f Fix welcome image width 2016-11-21 07:17:00 -03:00
Jonathan Leibiusky @xetorthio
8b0749a9ba Show cpu and memory stats of every node 2016-11-18 13:52:47 -03:00
Antonis Kalipetis
7628864058
Fix race conditions when initially resizing terminal
Race conditions could happen if the Terminal container did not have the correct size during initialization.

Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
2016-11-18 12:48:49 +02:00
Jonathan Leibiusky @xetorthio
5aa6f52292 Also update hostname of new instances 2016-11-17 17:36:59 -03:00
Jonathan Leibiusky @xetorthio
50943ce516 Show a server disconnected message when user is not able to connect to
server.
2016-11-16 09:35:43 -03:00
Jonathan Leibiusky
7f9cf57f8f Merge pull request #37 from franela/google-recaptcha
Validates that user is a human.
2016-11-15 22:08:42 -03:00
Jonathan Leibiusky @xetorthio
2afff63f4c Remove typo introduced my @marcosnils! ahem :P 2016-11-15 17:03:26 -03:00
Jonathan Leibiusky @xetorthio
af9986c0f8 Validates that user is a human.
Add google recaptcha as an initial page before creating any session.
To configure recaptcha there are 2 environment variables that are needed
`GOOGLE_RECAPTCHA_SITE_KEY` and `GOOGLE_RECAPTCHA_SITE_SECRET`.
The code contains development defaults that should be set in production
to real values.
**NOTICE: Development defaults assume that the domain is `localhost`**
2016-11-15 16:53:44 -03:00
Marcos Nils
e574a95baf Change index hour count. 2016-11-15 16:46:18 -03:00
Jonathan Leibiusky @xetorthio
70c4d33e6b Add robots file 2016-11-15 14:58:11 -03:00
Jonathan Leibiusky @xetorthio
db074a5804 Add expiration clock to sessions 2016-11-15 13:20:59 -03:00
Michael Irwin
aa0e6ba30e
Fixed grammar in session closing dialog 2016-11-14 16:02:09 -05:00
Marcos Lilljedahl
3e142c91e8 Revert transport preference 2016-11-14 11:56:26 -03:00
Marcos Lilljedahl
f63abdf3dd Focus terminal when changing instances 2016-11-14 02:05:50 -03:00
Marcos Lilljedahl
46a186f28b Add hostname to instance name 2016-11-14 01:29:36 -03:00
Marcos Nils
6d445c6205 Fix after initializing the terminal (#25) 2016-11-13 17:10:04 +02:00
Marcos Lilljedahl
b37f2469c8 Change connection preferrence so it tries with WS first and fallsback to
polling
2016-11-13 01:11:03 -03:00
Jonathan Leibiusky (@xetorthio)
e8b38fe717 Add session close button 2016-11-12 18:58:30 -03:00
Jonathan Leibiusky (@xetorthio)
869842e10e rollback transports 2016-11-11 20:19:21 -03:00
Jonathan Leibiusky (@xetorthio)
1be40005e8 Increase session time 2016-11-11 20:18:47 -03:00
Jonathan Leibiusky (@xetorthio)
8e4981d24f Huge refactor to have everything working with socket.io
It fixes lots of bugs, can fallback to long polling, resize viewport of
terminals and share clients state of the session, so they all see the
same thing.
2016-11-10 10:42:08 -03:00
Marcos Lilljedahl
73cdb5a38c Lock at small res 2016-10-14 14:02:22 -03:00
Marcos Lilljedahl
f06dd2a149 Add confirmation before closing the window
Fixes #11
2016-10-11 09:38:56 -03:00
Marcos Lilljedahl
7bbb284128 Fix max instance reach alert 2016-10-08 13:05:08 +02:00
Marcos Lilljedahl
bc64fc5c42 Add raised class 2016-10-08 12:29:23 +02:00