Skip to content

Commit

Permalink
update dashboard fetch api
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier committed Mar 27, 2017
1 parent ab4a539 commit 5c75efa
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 28 deletions.
2 changes: 1 addition & 1 deletion assets/static/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <title>frps dashboard</title> <link rel="shortcut icon" href="favicon.ico"></head> <body> <div id=app></div> <script type="text/javascript" src="manifest.js?e2a6e0e28098d3dfefd3"></script><script type="text/javascript" src="vendor.js?30b5cbeb51280b3d4feb"></script><script type="text/javascript" src="index.js?164c4e33812acd6b864b"></script></body> </html>
<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <title>frps dashboard</title> <link rel="shortcut icon" href="favicon.ico"></head> <body> <div id=app></div> <script type="text/javascript" src="manifest.js?b99c1346247a42f912f8"></script><script type="text/javascript" src="vendor.js?66dfcf2d1c500e900413"></script><script type="text/javascript" src="index.js?ba80138d6369555bbd4e"></script></body> </html>
8 changes: 4 additions & 4 deletions assets/static/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/static/manifest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions assets/static/vendor.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion web/frps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"humanize-plus": "^1.8.2",
"vue": "^2.2.4",
"vue-resource": "^1.2.1",
"vue-router": "^2.3.0"
"vue-router": "^2.3.0",
"whatwg-fetch": "^2.0.3"
},
"engines": {
"node": ">=6"
Expand Down
21 changes: 10 additions & 11 deletions web/frps/src/components/Overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,19 @@
</template>

<script>
import {DrawTrafficChart, DrawProxyChart} from "../utils/chart.js"
import {DrawTrafficChart, DrawProxyChart} from '../utils/chart.js'
export default {
data() {
return {
vhost_http_port: "",
vhost_https_port: "",
auth_timeout: "",
subdomain_host: "",
max_pool_count: "",
heart_beat_timeout: "",
client_counts: "",
cur_conns: "",
proxy_counts: ""
vhost_http_port: '',
vhost_https_port: '',
auth_timeout: '',
subdomain_host: '',
max_pool_count: '',
heart_beat_timeout: '',
client_counts: '',
cur_conns: '',
proxy_counts: ''
}
},
created() {
Expand Down
4 changes: 2 additions & 2 deletions web/frps/src/components/ProxiesHttp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@
</template>

<script>
import Humanize from "humanize-plus";
import Humanize from 'humanize-plus';
import Traffic from './Traffic.vue'
import {
HttpProxy
} from "../utils/proxy.js"
} from '../utils/proxy.js'
export default {
data() {
return {
Expand Down
8 changes: 4 additions & 4 deletions web/frps/src/components/ProxiesHttps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@
</template>

<script>
import Humanize from "humanize-plus";
import Humanize from 'humanize-plus';
import Traffic from './Traffic.vue'
import {
HttpsProxy
} from "../utils/proxy.js"
} from '../utils/proxy.js'
export default {
data() {
return {
proxies: null,
vhost_https_port: "",
subdomain_host: ""
vhost_https_port: '',
subdomain_host: ''
}
},
created() {
Expand Down
4 changes: 2 additions & 2 deletions web/frps/src/components/ProxiesUdp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@
</template>

<script>
import Humanize from "humanize-plus";
import Humanize from 'humanize-plus';
import Traffic from './Traffic.vue'
import {
UdpProxy
} from "../utils/proxy.js"
} from '../utils/proxy.js'
export default {
data() {
return {
Expand Down
1 change: 1 addition & 0 deletions web/frps/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import './utils/less/custom.less'

import App from './App.vue'
import router from './router'
import 'whatwg-fetch'

Vue.use(ElementUI)
Vue.config.productionTip = false
Expand Down

0 comments on commit 5c75efa

Please sign in to comment.