mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-22 01:25:00 +02:00
Use our analytics service properly (#9985)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
// limitations under the License.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { Analytics } from '@hcengineering/analytics'
|
||||
import { translate } from '@hcengineering/platform'
|
||||
import { ExecutionError } from '@hcengineering/process'
|
||||
import { Label } from '@hcengineering/ui'
|
||||
@@ -24,8 +25,8 @@
|
||||
for (const key in val.intlProps) {
|
||||
try {
|
||||
val.props[key] = await translate(val.intlProps[key], {})
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
} catch (err: any) {
|
||||
Analytics.handleError(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
import { getContext } from '../../utils'
|
||||
import ProcessAttribute from '../ProcessAttribute.svelte'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import { Analytics } from '@hcengineering/analytics'
|
||||
|
||||
export let readonly: boolean
|
||||
export let process: Process
|
||||
@@ -57,11 +58,11 @@
|
||||
.then((p) => {
|
||||
editor = p
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error(e)
|
||||
.catch((e: any) => {
|
||||
Analytics.handleError(e)
|
||||
})
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
} catch (e: any) {
|
||||
Analytics.handleError(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
import view from '@hcengineering/view'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import ProcessAttribute from '../ProcessAttribute.svelte'
|
||||
import { Analytics } from '@hcengineering/analytics'
|
||||
|
||||
export let func: ProcessFunction
|
||||
export let process: Process
|
||||
@@ -49,11 +50,11 @@
|
||||
.then((p) => {
|
||||
editor = p
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error(e)
|
||||
.catch((e: any) => {
|
||||
Analytics.handleError(e)
|
||||
})
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
} catch (e: any) {
|
||||
Analytics.handleError(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
import view from '@hcengineering/view'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import ProcessAttribute from '../ProcessAttribute.svelte'
|
||||
import { Analytics } from '@hcengineering/analytics'
|
||||
|
||||
export let func: ProcessFunction
|
||||
export let process: Process
|
||||
@@ -49,11 +50,11 @@
|
||||
.then((p) => {
|
||||
editor = p
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error(e)
|
||||
.catch((e: any) => {
|
||||
Analytics.handleError(e)
|
||||
})
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
} catch (e: any) {
|
||||
Analytics.handleError(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user