Merge branch 'main' of https://github.com/JhumanJ/OpnForm
This commit is contained in:
commit
ca26f92096
|
@ -77,8 +77,7 @@ export default {
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
openChat() {
|
openChat() {
|
||||||
window.$crisp.push(['do', 'chat:show'])
|
useCrisp().openAndShowChat()
|
||||||
window.$crisp.push(['do', 'chat:open'])
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -230,7 +230,7 @@ export default {
|
||||||
classes += '-mx-4 px-4 -my-1 py-1 group/nffield relative transition-colors'
|
classes += '-mx-4 px-4 -my-1 py-1 group/nffield relative transition-colors'
|
||||||
|
|
||||||
if (this.beingEdited) {
|
if (this.beingEdited) {
|
||||||
classes += ' bg-blue-50 rounded-md'
|
classes += ' bg-blue-50 dark:bg-gray-800 rounded-md'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return classes
|
return classes
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
<small>If the submission has the same value(s) as a previous one for the selected
|
<small>If the submission has the same value(s) as a previous one for the selected
|
||||||
column(s), we will update it, instead of creating a new one.
|
column(s), we will update it, instead of creating a new one.
|
||||||
<a href="#"
|
<a href="#"
|
||||||
@click.prevent="$crisp.push(['do', 'helpdesk:article:open', ['en', 'how-to-update-a-page-on-form-submission-1t1jwmn']])"
|
@click.prevent="crisp.openHelpdeskArticle('how-to-update-a-page-on-form-submission-1t1jwmn')"
|
||||||
>More
|
>More
|
||||||
info here.</a>
|
info here.</a>
|
||||||
</small>
|
</small>
|
||||||
|
@ -142,7 +142,8 @@ export default {
|
||||||
const {content: form} = storeToRefs(workingFormStore)
|
const {content: form} = storeToRefs(workingFormStore)
|
||||||
return {
|
return {
|
||||||
form,
|
form,
|
||||||
workingFormStore
|
workingFormStore,
|
||||||
|
crisp: useCrisp()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
|
|
|
@ -99,8 +99,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openCrisp () {
|
openCrisp () {
|
||||||
this.$crisp.push(['do', 'chat:show'])
|
useCrisp().openAndShowChat()
|
||||||
this.$crisp.push(['do', 'chat:open'])
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,9 +32,7 @@ export default {
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
customPlanClick () {
|
customPlanClick () {
|
||||||
window.$crisp.push(['do', 'chat:show'])
|
useCrisp().sendTextMessage('Hi, I would like to discuss about a custom plan')
|
||||||
window.$crisp.push(['do', 'chat:open'])
|
|
||||||
window.$crisp.push(['do', 'message:send', ['text', 'Hi, I would like to discuss about a custom plan']])
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,7 +82,6 @@ const passwordEntered = function (password) {
|
||||||
openCompleteForm.value.addPasswordError('Invalid password.')
|
openCompleteForm.value.addPasswordError('Invalid password.')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
openCompleteForm.value.submit()
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -271,8 +271,7 @@ export default {
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
contactUs() {
|
contactUs() {
|
||||||
window.$crisp.push(['do', 'chat:show'])
|
useCrisp().openAndShowChat()
|
||||||
window.$crisp.push(['do', 'chat:open'])
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,8 @@ export default {
|
||||||
return {
|
return {
|
||||||
authStore,
|
authStore,
|
||||||
authenticated : computed(() => authStore.check),
|
authenticated : computed(() => authStore.check),
|
||||||
user : computed(() => authStore.user)
|
user : computed(() => authStore.user),
|
||||||
|
crisp: useCrisp()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -58,7 +59,7 @@ export default {
|
||||||
redirectIfSubscribed () {
|
redirectIfSubscribed () {
|
||||||
if (this.user.is_subscribed) {
|
if (this.user.is_subscribed) {
|
||||||
useAmplitude().logEvent('subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' })
|
useAmplitude().logEvent('subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' })
|
||||||
this.$crisp.push(['set', 'session:event', [[['subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' }, 'blue']]]])
|
this.crisp.pushEvent('subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' })
|
||||||
this.$router.push({ name: 'home' })
|
this.$router.push({ name: 'home' })
|
||||||
|
|
||||||
if (this.user.has_enterprise_subscription) {
|
if (this.user.has_enterprise_subscription) {
|
||||||
|
|
|
@ -14,7 +14,8 @@ module.exports = {
|
||||||
{
|
{
|
||||||
pattern: /.*bg-(blue|gray|red|yellow|green).*/,
|
pattern: /.*bg-(blue|gray|red|yellow|green).*/,
|
||||||
},
|
},
|
||||||
...['green', 'red', 'blue', 'yellow'].map((color) => ['bg-' + color + '-100', 'border-' + color + '-500']).flat() // Alerts
|
...['green', 'red', 'blue', 'yellow'].map((color) => ['bg-' + color + '-100', 'border-' + color + '-500']).flat(), // Alerts
|
||||||
|
...['dark:hover:bg-notion-dark-light']
|
||||||
],
|
],
|
||||||
darkMode: 'class', // or 'media' or 'class'
|
darkMode: 'class', // or 'media' or 'class'
|
||||||
theme: {
|
theme: {
|
||||||
|
|
Loading…
Reference in New Issue