2.0.2 • Published 2 years ago
@isense-development/navigator v2.0.2
File upload module
This module give you a ready to use uploader for single documents, pictures or files.
Installation
npm i @isense-development/navigator
Version Compatibility
Quasar | @isense-development/navigator |
---|---|
Auto generated alias
In the quasar.conf.json
the alias is automatically created '~navigator' based on the module name in the env.json
file
Usage
Geolocation
<template>
<div>
<q-badge color="positive">latitude - longitude: {{ location.coords.latitude }}, {{ location.coords.longitude }}</q-badge>
<q-badge color="positive">accuracy: {{ location.coords.accuracy }} meters</q-badge>
</div>
</template>
<script>
import useGeoLocation from '~navigator/geolocation'
export default defineComponent({
name : '',
setup : () => {
const { location, getPosition, watchPosition } = useGeoLocation();
getPosition()
watchPosition()
return {
location,
}
}
})
</script>
Connection
<template>
<div>
<q-badge>Downlink: {{ connectionState.downlink }} Mb/s - RTT: {{ connectionState.rtt }} Ms</q-badge>
</div>
</template>
<script>
import useConnection from '~navigator/connection'
export default defineComponent({
name : '',
setup : () => {
const { connectionState } = useConnection();
useConnection()
return {
connectionState
}
}
})
</script>
How update packages?
4 Safe Steps to Update npm Packages
Cheat Sheet: 6 Commands To Help You Update npm Packages
This cheat sheet will make it easy to safely update npm packages in your node application. It includes a list of commands that will help you keep up with the latest updates and avoid breaking changes.
- Use
npm list
--depth 0 to list all the packages in your package directory - Use
npm audit
to find out which of your npm dependencies are vulnerable. - Use
npm outdated
to list the packages that are out of date with respect to what is installed in package.json - Use
npm update package_name
to update an individual package that has already been installed. - Use
npm uninstall package_name
and npm install package_name@version to revert to a specific version. - Use
npm cache clean --force
to clear npm's cache of all the packages that have been installed.