diff --git a/README.md b/README.md index 1302a3301d6b0b564d2d10ee2681c0c35fba72aa..bc3ea2839e7c4000a4058fbace68a2d347a508de 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,15 @@ While developing, you will want to connect to a local instance of VIPSLogic. Thi 10.0.2.2 vipslogic-local.no ``` +## Test on an Android phone + +After running `npm run build`, you can find the Android package (`.apk`) in `/platforms/android/app/build/outputs/apk`. +By connecting your Android phone to your computer and copying the file to your phone, you can install it on the phone. **This +depends on you having enabled developer mode on your phone**. How to do that differs a great deal, so search the interwebs for +how to do it. + + + ## Develop the code ### Don't touch the /www folder! Normally in Cordova you would put your code here, but this is where vue-cli is putting the things that it builds. diff --git a/config.xml b/config.xml index 508fcbdc90ca7d101bbaa44ca0406836ff46cdeb..4af1d419d70d8b4fcf9ca654a1bfb597dee12ba7 100644 --- a/config.xml +++ b/config.xml @@ -1,9 +1,9 @@ <?xml version='1.0' encoding='utf-8'?> -<widget id="no.nibio.vips.observation" version="1.0.2" +<widget id="no.nibio.vips.observation" version="1.0.3" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0"> - <name>VIPS_Field_Observation_App</name> + <name>VIPS Field Observation App</name> <description>The Field Observation app for VIPS users. Build it with 'npm run build' before any cordova specific actions - so that vuejs can @@ -13,13 +13,13 @@ compile to www folder</description> <icon src="static/css/images/logo_vips_new.png" /> <content src="index.html" /> <access origin="*" /> - <allow-navigation href="*" /> - <allow-intent href="http://*/*" /> - <allow-intent href="https://*/*" /> - <allow-intent href="tel:*" /> - <allow-intent href="sms:*" /> - <allow-intent href="mailto:*" /> - <allow-intent href="geo:*" /> + <!--allow-navigation href="*" /--> + <!--allow-intent href="http://*/*" /--> + <!--allow-intent href="https://*/*" /--> + <!--allow-intent href="tel:*" /--> + <!--allow-intent href="sms:*" /--> + <!--allow-intent href="mailto:*" /--> + <!--allow-intent href="geo:*" /--> <plugin name="cordova-plugin-geolocation" spec="4.1.0" /> <platform name="android"> <allow-intent href="market:*" /> diff --git a/package.json b/package.json index 370477c34a4f2adf4da435f08990f66d94977b20..f59089d1f0e9d1e9931e386d289e3225874705db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vipsobservationapp", - "version": "1.0.2", + "version": "1.0.3", "private": true, "description": "The Field Pest Observation App for VIPS users", "author": "Tor-Einar Skog <tor-einar.skog@nibio.no>", @@ -43,6 +43,7 @@ "cordova-browser": "^6.0.0", "cordova-plugin-camera": "^6.0.0", "cordova-plugin-geolocation": "^4.1.0", + "cordova-plugin-inappbrowser": "^5.0.0", "css-loader": "^0.28.0", "extract-text-webpack-plugin": "^3.0.0", "file-loader": "^1.1.4", @@ -84,7 +85,8 @@ "cordova-plugin-geolocation": {}, "cordova-plugin-camera": { "ANDROIDX_CORE_VERSION": "1.6.+" - } + }, + "cordova-plugin-inappbrowser": {} } }, "engines": { diff --git a/src/locales/en.json b/src/locales/en.json index 4e3bb87702c4ec9cd6560b19dddc9dcaf802ce02..ae35bdc2fa6842a9f3674f5ac51751a9723fca1a 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -2,7 +2,7 @@ "observationlist.heading": "My observations", "observationlist.alert.emptylist": "No registered observations", "welcome.header.text": "Observation App", - "welcome.body.text": "Lorem Ipsum", + "welcome.body.text": "Use this app to register, locate and take pictures of pests in agriculture. The registrations can be used as first sightings, be parts of pest prediction calculations and be used for reporting and research.<br/>To use the app, you need a VIPS user account. If you don't have one already, please <a href='#' onclick=\"cordova.InAppBrowser.open('https://logic.vips.nibio.no/', '_system')\">click here to create one</a>.<br/>If you already have an account, klick the hamburger menu icon (top right corner) to log in.", "welcome.footer.text": "VIPS is an automatic forecasting system for agricultural pests and diseases, developed by NIBIO (the Norwegian Institute of Bioeconomy Research) and Norsk landbruksrådgivning (The Norwegian agricultural extension service). ", "login.button.label": "Log in", "logout.button.label": "Log out", @@ -70,7 +70,7 @@ "index.header": "Field observations", "about.header": "About", "about.version": "Version", - "about.text": "<p>The app is developed by <a href='https://nibio.no/em' target='new'>NIBIO</a>'s <a href='https://www.vips-landbruk.no/'>VIPS team</a>.</p><p>VIPS project leader: <a href='https://www.nibio.no/en/employees/berit-nordskog' target='new'>Berit Nordskog</a></p><p>© 2022 <a href='https://nibio.no/en' target='new'>NIBIO</a></p>", + "about.text": "<p>The app is developed by <a href='#' onclick=\"cordova.InAppBrowser.open('https://nibio.no/en', '_system')\">NIBIO</a>'s <a href='#' onclick=\"cordova.InAppBrowser.open('https://www.vips-landbruk.no/', '_system')\">VIPS</a> team.</p><p>VIPS project leader: <a href='#' onclick=\"cordova.InAppBrowser.open('https://www.nibio.no/ansatte/berit-nordskog', '_system')\">Berit Nordskog</a></p><p>© 2022 <a href='#' onclick=\"cordova.InAppBrowser.open('https://nibio.no/en', '_system')\">NIBIO</a></p>", "copy" : "Copy" } \ No newline at end of file diff --git a/src/locales/nb.json b/src/locales/nb.json index 876c04bebf576b60c0a8a88099e6ea301de28a2c..9b0e3d0cb058056fd45c25ede6c0443c269bd254 100644 --- a/src/locales/nb.json +++ b/src/locales/nb.json @@ -2,8 +2,8 @@ "observationlist.heading": "Mine observasjoner", "observationlist.alert.emptylist": "Du har ingen registrerte observasjoner. For å registrere en ny, klikk på pluss-ikonet nede til høyre.", "welcome.header.text": "VIPS feltobservasjonsapp", - "welcome.body.text": "I denne appen kan du registrere, stedfeste og ta bilder av skadegjørere i landbruket. Registreringene kan brukes som førstefunn, inngå i modellberegninger og brukes til rapportering og forskning.<br/>For å bruke appen må du ha en brukerkonto på VIPS. Hvis du ikke har det, <a href='https://logic.vips.nibio.no/' target='new'>klikk her for å opprette</a>.<br/>Har du brukerkonto allerede? Klikk på menyikonet oppe til høyre for å logge inn.", - "welcome.footer.text": "VIPS (Varsling Innen PlanteSkadegjørere) er utviklet av NIBIO og Norsk Landbruksrådgiving. Rådgivningstjenesten registrerer angrep av skadegjørere i felt, mens NIBIO leverer klimadata og tar seg av utvikling, drift og vedlikehold av systemet. Les mer på <a style='color: white; text-decoration:underline;' href='https://www.vips-landbruk.no/'>VIPS</a>", + "welcome.body.text": "I denne appen kan du registrere, stedfeste og ta bilder av skadegjørere i landbruket. Registreringene kan brukes som førstefunn, inngå i modellberegninger og brukes til rapportering og forskning.<br/>For å bruke appen må du ha en brukerkonto på VIPS. Hvis du ikke har det, <a href='#' onclick=\"cordova.InAppBrowser.open('https://logic.vips.nibio.no/', '_system')\">klikk her for å opprette</a>.<br/>Har du brukerkonto allerede? Klikk på menyikonet oppe til høyre for å logge inn.", + "welcome.footer.text": "VIPS (Varsling Innen PlanteSkadegjørere) er utviklet av NIBIO og Norsk Landbruksrådgiving. Rådgivningstjenesten registrerer angrep av skadegjørere i felt, mens NIBIO leverer klimadata og tar seg av utvikling, drift og vedlikehold av systemet. Les mer på <a href='#' style='color: white; text-decoration:underline;' onclick=\"cordova.InAppBrowser.open('https://www.vips-landbruk.no/', '_system')\">VIPS</a>", "login.button.label": "Logg inn", "logout.button.label": "Logg ut", "login.username.field.placeholder": "Brukernavn", @@ -70,7 +70,7 @@ "index.header": "Feltobservasjoner", "about.header": "Om appen", "about.version": "Versjon", - "about.text": "<p>Appen er utviklet av <a href='https://nibio.no' target='new'>NIBIO</a>s <a href='https://www.vips-landbruk.no/'>VIPS-team</a>.</p><p>Prosjektleder for VIPS: <a href='https://www.nibio.no/ansatte/berit-nordskog' target='new'>Berit Nordskog</a></p><p>© 2022 <a href='https://nibio.no' target='new'>NIBIO</a></p>", + "about.text": "<p>Appen er utviklet av <a href='#' onclick=\"cordova.InAppBrowser.open('https://nibio.no/', '_system')\">NIBIO</a>s <a href='#' onclick=\"cordova.InAppBrowser.open('https://www.vips-landbruk.no/', '_system')\">VIPS-team</a>.</p><p>Prosjektleder for VIPS: <a href='#' onclick=\"cordova.InAppBrowser.open('https://www.nibio.no/ansatte/berit-nordskog', '_system')\">Berit Nordskog</a></p><p>© 2022 <a href='#' onclick=\"cordova.InAppBrowser.open('https://nibio.no/', '_system')\">NIBIO</a></p>", "copy" : "Kopi" } \ No newline at end of file