Skip to content

Commit 220d206

Browse files
authored
Web UI fixes (#44)
1 parent ef1282e commit 220d206

File tree

13 files changed

+246
-146
lines changed

13 files changed

+246
-146
lines changed

.github/workflows/webui.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: webui
22
on:
3-
- push
3+
push:
44
paths:
5-
- "webui/*"
5+
- 'webui/**'
66
branches:
77
- master
88
- main
9-
109
env:
1110
IMAGE_NAME: gebug-webui
1211

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Available Commands:
3131
help Help about any command
3232
init Initialize a Gebug project
3333
start Start Gebug services
34+
ui Start Gebug web UI
3435
version Gebug's version
3536
3637
Flags:
@@ -75,6 +76,15 @@ Let's examine the `config.yaml` fields so you will feel more comfortable editing
7576
| networks | [] | list of docker external networks to join. if no network is selected, a new one will be created |
7677
| environment | [] | list of environment variables to be set inside the container. Syntax: `FOO=BAR` or just `FOO` which will take the variable `FOO` from host and set it with its value |
7778

79+
# Web UI
80+
If you prefer a web interface over a terminal or YAML file, you can simply run the following command in your Gebug project directory
81+
```
82+
gebug ui
83+
```
84+
A simple web application will be opened and let you control the Gebug configuration of your project directly from your browser.
85+
86+
![](assets/demo-webui.gif)
87+
7888
# License
7989
Gebug is released under the Apache 2.0 license. See LICENSE.
8090

assets/demo-webui.gif

9.13 MB
Loading

webui/frontend/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"@braid/vue-formulate": "^2.4.5",
1212
"@vue/composition-api": "^1.0.0-beta.16",
1313
"axios": "^0.20.0",
14+
"bootstrap-vue": "^2.17.3",
1415
"core-js": "^3.6.5",
1516
"vue": "^2.6.11",
1617
"vue-class-component": "^7.2.6",
@@ -28,6 +29,7 @@
2829
"@vue/cli-service": "~4.5.0",
2930
"@vue/eslint-config-typescript": "^5.0.2",
3031
"babel-eslint": "^10.1.0",
32+
"bootstrap": "^4.5.2",
3133
"eslint": "^6.8.0",
3234
"eslint-plugin-vue": "^6.2.2",
3335
"mutationobserver-shim": "^0.3.7",

webui/frontend/src/App.vue

+1-7
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,19 @@
22
<div id="app">
33
<img alt="Gebug" src="assets/logo.png" width="500" height="300" />
44
<div style="text-align: center;">
5-
<ConfigForm :location="settings.location" />
5+
<ConfigForm/>
66
</div>
77
</div>
88
</template>
99

1010
<script lang="ts">
1111
import { Component, Vue } from "vue-property-decorator";
12-
import settings from "@/utils/settings";
1312
import ConfigForm from "./components/ConfigForm.vue";
1413
1514
@Component({
1615
components: {
1716
ConfigForm,
1817
},
19-
computed: {
20-
settings() {
21-
return settings;
22-
}
23-
}
2418
})
2519
export default class App extends Vue {}
2620
</script>

0 commit comments

Comments
 (0)