2023-12-09 15:47:03 +01:00
|
|
|
<template>
|
2024-04-15 15:19:37 +02:00
|
|
|
<iframe
|
|
|
|
|
:id="iframeId"
|
Enhance language support and fix validation messages
- Added support for additional languages (Bengali, Portuguese, Russian, Urdu, Punjabi, German, Javanese, Korean, Vietnamese, Telugu, Marathi, Tamil, Turkish) in the application.
- Updated validation messages across multiple languages to correct formatting issues and improve clarity, including Arabic, English, Spanish, French, Hindi, Japanese, Norwegian, and Chinese.
- Removed obsolete Norwegian language files to streamline localization efforts.
- Improved the language selection interface in the form customization component.
These changes aim to enhance user experience by providing better language support and clearer validation feedback.
2024-12-09 12:47:01 +01:00
|
|
|
title="OpnForm testimonial"
|
2024-04-15 15:19:37 +02:00
|
|
|
loading="lazy"
|
|
|
|
|
height="500px"
|
|
|
|
|
:src="'https://embed-v2.testimonial.to/w/notionforms?theme=light&card=base&loadMore=on&initialCount=8&tag=all'"
|
|
|
|
|
frameBorder="0"
|
|
|
|
|
scrolling="no"
|
|
|
|
|
width="100%"
|
2023-12-09 15:47:03 +01:00
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
featuresOnly: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
2024-04-15 15:19:37 +02:00
|
|
|
data: () => ({
|
|
|
|
|
iframeId: 'testimonialto-carousel-all-notionforms'
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
|
|
computed: {},
|
2023-12-09 15:47:03 +01:00
|
|
|
|
|
|
|
|
mounted () {
|
2024-04-15 15:19:37 +02:00
|
|
|
window.addEventListener('load', () => {
|
|
|
|
|
this.loadScript()
|
|
|
|
|
})
|
2023-12-09 15:47:03 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
loadScript () {
|
2024-04-15 15:19:37 +02:00
|
|
|
if (import.meta.server)
|
|
|
|
|
return
|
2023-12-09 15:47:03 +01:00
|
|
|
const script = document.createElement('script')
|
2024-04-15 15:19:37 +02:00
|
|
|
script.setAttribute(
|
|
|
|
|
'src',
|
|
|
|
|
'https://testimonial.to/js/iframeResizer.min.js'
|
|
|
|
|
)
|
|
|
|
|
script.setAttribute('defer', 'defer')
|
2023-12-09 15:47:03 +01:00
|
|
|
document.head.appendChild(script)
|
2024-04-15 15:19:37 +02:00
|
|
|
script.addEventListener('load', () => {
|
|
|
|
|
window.iFrameResize(
|
|
|
|
|
{
|
|
|
|
|
log: false,
|
|
|
|
|
checkOrigin: false
|
|
|
|
|
},
|
|
|
|
|
'#' + this.iframeId
|
|
|
|
|
)
|
2023-12-09 15:47:03 +01:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
2024-04-15 15:19:37 +02:00
|
|
|
|
|
|
|
|
|