Skip to content

Verificador de velocidade de internet #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
260 changes: 260 additions & 0 deletions debug.log

Large diffs are not rendered by default.

54 changes: 14 additions & 40 deletions package-lock.json

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

1 change: 0 additions & 1 deletion quasar.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = function (ctx) {
// 'eva-icons',
// 'themify',
// 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!

'fontawesome-v5',
'roboto-font', // optional, you are not bound to it
'material-icons' // optional, you are not bound to it
Expand Down
4 changes: 4 additions & 0 deletions src/pages/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export default {
{ label: 'Notificação',
icon: 'notification_important',
route: 'notification'
},
{ label: 'Rede',
icon: 'wifi',
route: 'rede'
}
]
}
Expand Down
25 changes: 25 additions & 0 deletions src/pages/Network.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<template>
<div>
<div class="row justify-center">
<div class="col-4">
{{ velocidade }} kbps
</div>
</div>
</div>
</template>

<script>
export default {
name: 'Network',
data () {
return {
velocidade: navigator.connection.downlink
}
},
mounted () {
navigator.connection.onchange = (e) => {
this.velocidade = navigator.connection.downlink
}
}
}
</script>
2 changes: 1 addition & 1 deletion src/router/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const routes = [
{ path: '/camera', name: 'camera', component: () => import('pages/Camera.vue') },
{ path: '/geolocation', name: 'geolocation', component: () => import('pages/Geolocation.vue') },
{ path: '/vibration', name: 'vibration', component: () => import('pages/Vibration.vue') },
{ path: '/notification', name: 'notification', component: () => import('pages/Notification.vue') }
{ path: '/rede', name: 'rede', component: () => import('pages/Network.vue') }
]
}
]
Expand Down