Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Partial][example][ui] Udash docker log and exec #42

Merged
merged 19 commits into from
Jan 6, 2019

Conversation

at15
Copy link
Member

@at15 at15 commented Dec 31, 2018

Related

TODO

Ref

  • vue UI itself is using xterm for showing terminal output

@at15 at15 added pkg/ui lib/dockerclient example/udash universal dashboard for database labels Dec 31, 2018
@at15 at15 added this to the 0.0.3 milestone Dec 31, 2018
@at15 at15 self-assigned this Dec 31, 2018
@codecov-io
Copy link

codecov-io commented Dec 31, 2018

Codecov Report

Merging #42 into master will increase coverage by 3.2%.
The diff coverage is 40%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master     #42     +/-   ##
========================================
+ Coverage    45.2%   48.4%   +3.2%     
========================================
  Files           6       7      +1     
  Lines         250     283     +33     
========================================
+ Hits          113     137     +24     
- Misses        110     117      +7     
- Partials       27      29      +2
Impacted Files Coverage Δ
httpclient/option.go 50% <100%> (+19.56%) ⬆️
httpclient/client.go 40.44% <35%> (+4.84%) ⬆️
httpclient/default.go 42.85% <42.85%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7af323b...ca6a3d3. Read the comment docs.

- https://github.com/philipwalton/solved-by-flexbox is really nice, just
simple example for me to figure out which property is having effect ...
- use `justify-content` and `align-item` (same thing on two axises)
- [ ] TODO: the sidebar is not fixed ...
- sidebar can have fixed content
- although the transport is shared, it has pooling disabled
- also when calling `Transport` on client, default transports are not returned
- copied from #43 udash.html but height is not expanding
- use el-row and el-span with width 24 (totoal 24 cols)
- https://element.eleme.io/#/en-US/component/menu
- `/api/local/docker/images` now returns image info
- when log has the time option, it is using the timestamp from docker
daemon, which is always UTC, this makes the log on the client side a bit
hard to reason about ...
- first need to create a exec
- then attach to it and use the raw underlying connection ...
- but it seems the pty is just echo, something wrong in the order of
reader and writer etc.
- when browser sending command, it didn't contains a `/n`, so bash never
interact with it, figured it out when looking at original example from
gorilla/websocket
- what worked for single command no longer works for xterm
@at15 at15 changed the title [WIP][example][ui] Udash docker log and exec [Partial][example][ui] Udash docker log and exec Jan 6, 2019
@at15
Copy link
Member Author

at15 commented Jan 6, 2019

image

@at15 at15 merged commit d52ac67 into master Jan 6, 2019
@at15 at15 deleted the example/udash/docker-log-exec branch January 6, 2019 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
example/udash universal dashboard for database lib/dockerclient pkg/ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants