Add gmail privacy (#5568)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-05-10 16:55:46 +05:00 committed by GitHub
parent 1e0e5de097
commit 07b200a558
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 22 additions and 7 deletions

View File

@ -36,6 +36,7 @@
"HaveWrittenEmail": "have written an email",
"NewIncomingMessage": "Sent you a new email",
"ConfigLabel": "Email",
"ConfigDescription": "Extension for Gmail email integration"
"ConfigDescription": "Extension for Gmail email integration",
"GooglePrivacy": "Hulys use and transfer of information received from Google APIs to any other app will adhere to <a href=\"https://developers.google.com/terms/api-services-user-data-policy#additional_requirements_for_specific_api_scopes\" target=\"_blank\">Google API Services User Data Policy</a>, including the Limited Use requirements."
}
}

View File

@ -36,6 +36,7 @@
"HaveWrittenEmail": "han escrito un correo electrónico",
"NewIncomingMessage": "Te ha enviado un nuevo correo electrónico",
"ConfigLabel": "Correo Electrónico",
"ConfigDescription": "Extensión para la integración de correo electrónico de Gmail"
"ConfigDescription": "Extensión para la integración de correo electrónico de Gmail",
"GooglePrivacy": "Hulys use and transfer of information received from Google APIs to any other app will adhere to <a href=\"https://developers.google.com/terms/api-services-user-data-policy#additional_requirements_for_specific_api_scopes\" target=\"_blank\">Google API Services User Data Policy</a>, including the Limited Use requirements."
}
}

View File

@ -36,6 +36,7 @@
"HaveWrittenEmail": "escreveram um email",
"NewIncomingMessage": "Recebeu um novo email",
"ConfigLabel": "Email",
"ConfigDescription": "Extensão para a integração de email do Gmail"
"ConfigDescription": "Extensão para a integração de email do Gmail",
"GooglePrivacy": "Hulys use and transfer of information received from Google APIs to any other app will adhere to <a href=\"https://developers.google.com/terms/api-services-user-data-policy#additional_requirements_for_specific_api_scopes\" target=\"_blank\">Google API Services User Data Policy</a>, including the Limited Use requirements."
}
}

View File

@ -36,6 +36,7 @@
"HaveWrittenEmail": "написал(а) сообщение",
"NewIncomingMessage": "Прислал вам новое сообщение",
"ConfigLabel": "Электронная почта",
"ConfigDescription": "Расширение по работе с Gmail электронной почтой"
"ConfigDescription": "Расширение по работе с Gmail электронной почтой",
"GooglePrivacy": "Использование и передача информации, полученной Huly от Google API, будет соответствовать <a href=\"https://developers.google.com/terms/api-services-user-data-policy#additional_requirements_for_specific_api_scopes\" target=\"_blank\">Политике использования данных пользователей Google API</a>, включая требования ограниченного использования."
}
}

View File

@ -14,8 +14,8 @@
// limitations under the License.
-->
<script lang="ts">
import { getMetadata } from '@hcengineering/platform'
import { Button, IconClose, Label } from '@hcengineering/ui'
import { getMetadata, translate } from '@hcengineering/platform'
import { Button, IconClose, Label, themeStore } from '@hcengineering/ui'
import { createEventDispatcher } from 'svelte'
import gmail from '../plugin'
import { concatLink } from '@hcengineering/core'
@ -45,6 +45,12 @@
window.open(redirectTo)
dispatch('close')
}
let label = ''
$: translate(gmail.string.GooglePrivacy, {}, $themeStore.language).then((res) => {
label = res
})
</script>
<div class="card">
@ -63,6 +69,10 @@
</div>
<div class="content">
<Label label={gmail.string.RedirectGoogle} />
<div class="mt-2">
{@html label}
</div>
<div class="footer">
<Button label={gmail.string.Connect} kind={'primary'} disabled={connecting} on:click={sendRequest} />
</div>

View File

@ -42,6 +42,7 @@ export default mergeIds(gmailId, gmail, {
AvailableTo: '' as IntlString,
Email: '' as IntlString,
HaveWrittenEmail: '' as IntlString,
NewIncomingMessage: '' as IntlString
NewIncomingMessage: '' as IntlString,
GooglePrivacy: '' as IntlString
}
})