Skip to content

Commit

Permalink
Web UI fixes (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
moshebe committed Nov 24, 2020
1 parent ef1282e commit 220d206
Show file tree
Hide file tree
Showing 13 changed files with 246 additions and 146 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/webui.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: webui
on:
- push
push:
paths:
- "webui/*"
- 'webui/**'
branches:
- master
- main

env:
IMAGE_NAME: gebug-webui

Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Available Commands:
help Help about any command
init Initialize a Gebug project
start Start Gebug services
ui Start Gebug web UI
version Gebug's version
Flags:
Expand Down Expand Up @@ -75,6 +76,15 @@ Let's examine the `config.yaml` fields so you will feel more comfortable editing
| networks | [] | list of docker external networks to join. if no network is selected, a new one will be created |
| 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 |

# Web UI
If you prefer a web interface over a terminal or YAML file, you can simply run the following command in your Gebug project directory
```
gebug ui
```
A simple web application will be opened and let you control the Gebug configuration of your project directly from your browser.

![](assets/demo-webui.gif)

# License
Gebug is released under the Apache 2.0 license. See LICENSE.

Expand Down
Binary file added assets/demo-webui.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions webui/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@braid/vue-formulate": "^2.4.5",
"@vue/composition-api": "^1.0.0-beta.16",
"axios": "^0.20.0",
"bootstrap-vue": "^2.17.3",
"core-js": "^3.6.5",
"vue": "^2.6.11",
"vue-class-component": "^7.2.6",
Expand All @@ -28,6 +29,7 @@
"@vue/cli-service": "~4.5.0",
"@vue/eslint-config-typescript": "^5.0.2",
"babel-eslint": "^10.1.0",
"bootstrap": "^4.5.2",
"eslint": "^6.8.0",
"eslint-plugin-vue": "^6.2.2",
"mutationobserver-shim": "^0.3.7",
Expand Down
8 changes: 1 addition & 7 deletions webui/frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,19 @@
<div id="app">
<img alt="Gebug" src="assets/logo.png" width="500" height="300" />
<div style="text-align: center;">
<ConfigForm :location="settings.location" />
<ConfigForm/>
</div>
</div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import settings from "@/utils/settings";
import ConfigForm from "./components/ConfigForm.vue";
@Component({
components: {
ConfigForm,
},
computed: {
settings() {
return settings;
}
}
})
export default class App extends Vue {}
</script>
Expand Down
Loading

0 comments on commit 220d206

Please sign in to comment.