Эх сурвалжийг харах

ajuste no compartilhamento de codigo unico para favorito

Gustavo Zanatta 1 долоо хоног өмнө
parent
commit
00b0b7f4a8

+ 2 - 2
package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "diarista-prestador-app",
-  "version": "2.4",
+  "version": "2.5",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "diarista-prestador-app",
-      "version": "2.4",
+      "version": "2.5",
       "dependencies": {
         "@bufbuild/protobuf": "^2.5.1",
         "@capacitor/browser": "^7.0.5",

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "diarista-prestador-app",
-  "version": "2.4",
+  "version": "2.5",
   "description": "Aplicativo para o prestador do Diaria",
   "productName": "Diaria Profissional App",
   "author": "zntt <zanattagg@gmail.com>",

+ 2 - 2
src-capacitor/android/app/build.gradle

@@ -13,8 +13,8 @@ android {
         applicationId "br.com.diarista.provider"
         minSdkVersion rootProject.ext.minSdkVersion
         targetSdkVersion rootProject.ext.targetSdkVersion
-        versionCode 15
-        versionName "2.4"
+        versionCode 16
+        versionName "2.5"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
         aaptOptions {
              // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.

+ 2 - 2
src-capacitor/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "diarista-prestador-app",
-  "version": "2.4",
+  "version": "2.5",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "diarista-prestador-app",
-      "version": "2.4",
+      "version": "2.5",
       "dependencies": {
         "@capacitor/android": "^7.6.8",
         "@capacitor/app": "^7.0.0",

+ 1 - 1
src-capacitor/package.json

@@ -1,6 +1,6 @@
 {
   "name": "diarista-prestador-app",
-  "version": "2.4",
+  "version": "2.5",
   "description": "Aplicativo para o prestador do Diaria",
   "author": "zntt <zanattagg@gmail.com>",
   "private": true,

+ 1 - 1
src/i18n/locales/en.json

@@ -519,7 +519,7 @@
   "profile": {
     "title": "Profile",
     "share": {
-      "message": "Download the Diária App and book a service with {name}. Use the code {code} in the app's Favorites tab to add me to your favorites automatically 👇\n{link}",
+      "message": "Download the Diária App and book a service with {name}. Use the code {code} in the app's Favorites tab to add me to your favorites automatically \n{link}",
       "title": "Diária App",
       "dialog_title": "Share profile",
       "code_label": "My code:",

+ 1 - 1
src/i18n/locales/es.json

@@ -519,7 +519,7 @@
   "profile": {
     "title": "Perfil",
     "share": {
-      "message": "Descarga la app Diária y contrata un servicio con {name}. Usa el código {code} en la pestaña Favoritos de la app para añadirme automáticamente a tus favoritos 👇\n{link}",
+      "message": "Descarga la app Diária y contrata un servicio con {name}. Usa el código {code} en la pestaña Favoritos de la app para añadirme automáticamente a tus favoritos \n{link}",
       "title": "Diária App",
       "dialog_title": "Compartir perfil",
       "code_label": "Mi código:",

+ 1 - 1
src/i18n/locales/pt.json

@@ -522,7 +522,7 @@
   "profile": {
     "title": "Perfil",
     "share": {
-      "message": "Baixe o Diária App e contrate um serviço com {name}. Use o código {code} na aba Favoritos do app para me adicionar automaticamente aos seus favoritos 👇\n{link}",
+      "message": "Baixe o Diária App e contrate um serviço com {name}. Use o código {code} na aba Favoritos do app para me adicionar automaticamente aos seus favoritos\n{link}",
       "title": "Diária App",
       "dialog_title": "Compartilhar perfil",
       "code_label": "Meu código:",

+ 4 - 2
src/pages/profile/ProfilePage.vue

@@ -9,7 +9,7 @@
 
     <div class="q-px-md q-mt-md">
       <q-card class="profile-card bg-surface shadow-card card-border" :flat="false">
-        <q-btn flat round dense icon="mdi-share-variant-outline" color="grey-6" class="absolute-top-right q-ma-sm" @click="shareProfile" />
+        <q-btn flat round dense icon="mdi-share-variant-outline" color="grey-6" class="absolute-top-right q-ma-sm share-btn" @click="shareProfile" />
         
         <q-card-section class="column items-center q-pb-md">
           <q-avatar size="70px" class="shadow-card" :style="!user.profile_photo ? avatarStyle : undefined">
@@ -233,7 +233,6 @@ const copyToClipboard = async (text) => {
   return false;
 };
 
-// compartilha perfil
 const shareProfile = async () => {
   const message = shareMessage.value;
 
@@ -352,6 +351,9 @@ onMounted(async () => {
 .profile-card {
   position: relative;
 }
+.share-btn {
+  z-index: 1;
+}
 
 .share-code {
   letter-spacing: 0.5px;