Skip to content

Commit

Permalink
feat: ui: add example for web proxy
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed May 9, 2022
1 parent a797ffb commit 522ab5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export default {
this.$Modal.confirm({
render: h => {
return h('Input', {
const input = h('Input', {
props: {
value: addr,
autofocus: true,
Expand All @@ -350,7 +350,8 @@ export default {
addr = val;
}
}
})
});
return h('div', [input, h('p', '127.0.0.1, 127.0.0.1:8080, http://127.0.0.1')]);
},
onOk: () => {
const ipreg = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/
Expand Down

0 comments on commit 522ab5e

Please sign in to comment.