feat: formbricks setup

This commit is contained in:
RayGur authored and wancat committed 2024-08-02 14:41:14 +08:00
1 parent 4dd5f94c60
commit 169587c54d
2 files changed
+9

No files matched your search

+1
View File
@@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"@formbricks/js": "^2.1.1",
"@fortawesome/fontawesome-svg-core": "^6.4.0",
"@fortawesome/free-brands-svg-icons": "^6.4.0",
"@fortawesome/free-regular-svg-icons": "^6.4.0",
@@ -5,6 +5,14 @@ import { ref } from 'vue'
import { Vue3Lottie } from 'vue3-lottie'
// import { surveyUrl } from '../config'
import CompleteAnimation from '../../img/complete-animation.json'
import formbricks from "@formbricks/js/website";
if (typeof window !== "undefined") {
formbricks.init({
environmentId: "clyffbuq50bbxwh63thlfs1lb",
apiHost: "https://app.formbricks.com",
});
}
const showModal = ref(true) // Controls whether the modal is visible or not
const router = useRouter()