diff --git a/Dockerfile b/Dockerfile index 35dc2fc5..5a996491 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,8 @@ FROM node:18-alpine WORKDIR /app -ENV IZNIK_API_V1=http://apiv1/api \ - IZNIK_API_V2=http://apiv2:8192/api +ENV IZNIK_API_V1=http://apiv1.localhost/api \ + IZNIK_API_V2=http://apiv2.localhost:8192/api RUN apk update && apk add git \ && git clone https://github.com/Freegle/iznik-nuxt3.git @@ -12,4 +12,4 @@ CMD cd iznik-nuxt3 \ && git pull \ && yes | npm install -y --legacy-peer-deps \ && export NODE_OPTIONS=--max-old-space-size=8192;npm run build \ - && npm run start \ No newline at end of file + && export HOST=0; npm run start \ No newline at end of file diff --git a/android/app/build.gradle b/android/app/build.gradle index fd1582c3..e43da1bf 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -6,8 +6,8 @@ android { applicationId "org.ilovefreegle.direct" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 1212 - versionName "3.0.10" + versionCode 1213 + versionName "3.0.11" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/api/BaseAPI.js b/api/BaseAPI.js index be10889d..bb012284 100644 --- a/api/BaseAPI.js +++ b/api/BaseAPI.js @@ -78,6 +78,9 @@ export default class BaseAPI { 'Iznik ' + JSON.stringify(authStore.auth.persistent) } + headers['Cache-Control'] = + 'max-age=0, must-revalidate, no-cache, no-store, private' + if (method === 'GET' && config?.params) { // Remove falsey values from the params. config.params = Object.fromEntries( @@ -311,6 +314,9 @@ export default class BaseAPI { headers.Authorization2 = JSON.stringify(authStore.auth.persistent) } + headers['Cache-Control'] = + 'max-age=0, must-revalidate, no-cache, no-store, private' + if (method === 'GET' && config?.params) { // Remove falsey values from the params. config.params = Object.fromEntries( diff --git a/components/PostMessage.vue b/components/PostMessage.vue index d8184f47..5e7d769c 100644 --- a/components/PostMessage.vue +++ b/components/PostMessage.vue @@ -35,7 +35,6 @@ ref="filepond" imgtype="Message" imgflag="message" - :identify="true" :browse="pondBrowse" :multiple="true" @photo-processed="photoProcessed" @@ -161,7 +160,7 @@ export default { // init callback below. this.uploading = true }, - photoProcessed(imageid, imagethumb, image, ocr, suggestions) { + photoProcessed(imageid, imagethumb, image) { // We have uploaded a photo. Remove the filepond instance. const att = { id: imageid, diff --git a/config.js b/config.js index 02298046..c4063476 100644 --- a/config.js +++ b/config.js @@ -34,5 +34,5 @@ export default { 'https://63f870e6c729477ebca4098a0b07fd3a@o118493.ingest.sentry.io/4504083802226688', ISAPP: process.env.IZNIK_NUXT3_IS_APP === 'true', - MOBILE_VERSION: '3.0.10', + MOBILE_VERSION: '3.0.11', } diff --git a/ios/App/App.xcodeproj/project.pbxproj b/ios/App/App.xcodeproj/project.pbxproj index 090aa808..5c7523af 100644 --- a/ios/App/App.xcodeproj/project.pbxproj +++ b/ios/App/App.xcodeproj/project.pbxproj @@ -357,12 +357,12 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = App/App.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1206; + CURRENT_PROJECT_VERSION = 1207; DEVELOPMENT_TEAM = GMYU3K9D84; INFOPLIST_FILE = App/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 3.0.10; + MARKETING_VERSION = 3.0.11; OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\""; PRODUCT_BUNDLE_IDENTIFIER = org.ilovefreegle.iphone; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -379,12 +379,12 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = App/App.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1206; + CURRENT_PROJECT_VERSION = 1207; DEVELOPMENT_TEAM = GMYU3K9D84; INFOPLIST_FILE = App/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 3.0.10; + MARKETING_VERSION = 3.0.11; PRODUCT_BUNDLE_IDENTIFIER = org.ilovefreegle.iphone; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = ""; diff --git a/nuxt.config.ts b/nuxt.config.ts index 6f6e8393..9c76b22a 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -195,6 +195,7 @@ export default defineNuxtConfig({ MOBILE_VERSION: config.MOBILE_VERSION, NETLIFY_DEPLOY_ID: process.env.DEPLOY_ID, NETLIFY_SITE_NAME: process.env.SITE_NAME, + MATOMO_HOST: process.env.MATOMO_HOST, }, }, diff --git a/package-lock.json b/package-lock.json index 42da9683..50d594ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -87,6 +87,7 @@ "vue-highlight-words": "^3.0.0", "vue-inner-image-zoom": "^2.0.0", "vue-json-pretty": "^2.2.4", + "vue-matomo": "^4.2.0", "vue-plugin-load-script": "^2.1.1", "vue-read-more3": "^1.2.2", "vue-simple-context-menu": "^4.0.4", @@ -19481,6 +19482,15 @@ "node": ">=8" } }, + "node_modules/vue-matomo": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/vue-matomo/-/vue-matomo-4.2.0.tgz", + "integrity": "sha512-m5hCw7LH3wPDcERaF4sp/ojR9sEx7Rl8TpOyH/4jjQxMF2DuY/q5pO+i9o5Dx+BXLSa9+IQ0qhAbWYRyESQXmA==", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, "node_modules/vue-plugin-load-script": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/vue-plugin-load-script/-/vue-plugin-load-script-2.1.1.tgz", diff --git a/package.json b/package.json index 8ff6c512..95d7a8c6 100644 --- a/package.json +++ b/package.json @@ -111,6 +111,7 @@ "vue-highlight-words": "^3.0.0", "vue-inner-image-zoom": "^2.0.0", "vue-json-pretty": "^2.2.4", + "vue-matomo": "^4.2.0", "vue-plugin-load-script": "^2.1.1", "vue-read-more3": "^1.2.2", "vue-simple-context-menu": "^4.0.4", diff --git a/pages/privacy.vue b/pages/privacy.vue index 61be6523..14f152a4 100644 --- a/pages/privacy.vue +++ b/pages/privacy.vue @@ -46,10 +46,6 @@ out.

Once you log in, you're giving us consent to do the following.