matomo updates

pull/5313/head
lianahus 4 weeks ago committed by Aniket
parent 302eb8edee
commit f5d6fa0ca3
  1. 4
      apps/remix-ide/src/app/components/preload.tsx
  2. 3
      libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx
  3. 3
      libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCard.tsx
  4. 2
      libs/remix-ui/settings/src/lib/remix-ui-settings.tsx

@ -10,7 +10,7 @@ import './styles/preload.css'
import isElectron from 'is-electron' import isElectron from 'is-electron'
const _paq = (window._paq = window._paq || []) const _paq = (window._paq = window._paq || [])
_paq.push(['trackEvent', 'Preload', 'start']) _paq.push(['trackEvent', 'App', 'Preload', 'start'])
export const Preload = (props: any) => { export const Preload = (props: any) => {
const [tip, setTip] = useState<string>('') const [tip, setTip] = useState<string>('')
@ -40,7 +40,7 @@ export const Preload = (props: any) => {
}) })
}) })
.catch((err) => { .catch((err) => {
_paq.push(['trackEvent', 'Preload', 'error', err && err.message]) _paq.push(['trackEvent', 'App', 'PreloadError', err && err.message])
console.error('Error loading Remix:', err) console.error('Error loading Remix:', err)
setError(true) setError(true)
}) })

@ -3,6 +3,8 @@ import React from 'react'
import { FormattedMessage } from 'react-intl' import { FormattedMessage } from 'react-intl'
import '../remix-ui-plugin-manager.css' import '../remix-ui-plugin-manager.css'
import { CustomTooltip } from '@remix-ui/helper' import { CustomTooltip } from '@remix-ui/helper'
const _paq = (window._paq = window._paq || [])
interface PluginCardProps { interface PluginCardProps {
profile: any profile: any
buttonText: string buttonText: string
@ -85,6 +87,7 @@ function ActivePluginCard({ profile, buttonText, deactivatePlugin }: PluginCardP
> >
<button <button
onClick={() => { onClick={() => {
_paq.push(['trackEvent', 'pluginManager', 'deactivateBtn', 'deactivate btn ' + profile.name])
deactivatePlugin(profile.name) deactivatePlugin(profile.name)
}} }}
className="btn btn-secondary btn-sm" className="btn btn-secondary btn-sm"

@ -5,6 +5,8 @@ import { FormattedMessage, useIntl } from 'react-intl'
import '../remix-ui-plugin-manager.css' import '../remix-ui-plugin-manager.css'
import { CustomTooltip } from '@remix-ui/helper' import { CustomTooltip } from '@remix-ui/helper'
import { onLineContext } from '@remix-ui/app' import { onLineContext } from '@remix-ui/app'
const _paq = (window._paq = window._paq || [])
interface PluginCardProps { interface PluginCardProps {
profile: any profile: any
buttonText: string buttonText: string
@ -103,6 +105,7 @@ function InactivePluginCard({ profile, buttonText, activatePlugin }: PluginCardP
{!canBeActivated ? <button className="btn btn-secondary btn-sm">{intl.formatMessage({ id: 'pluginManager.UnavailableOffline' })}</button> : ( {!canBeActivated ? <button className="btn btn-secondary btn-sm">{intl.formatMessage({ id: 'pluginManager.UnavailableOffline' })}</button> : (
<button <button
onClick={() => { onClick={() => {
_paq.push(['trackEvent', 'pluginManager', 'activateBtn', 'activate btn' + profile.name])
activatePlugin(profile.name) activatePlugin(profile.name)
}} }}
className="btn btn-success btn-sm" className="btn btn-success btn-sm"

@ -473,7 +473,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
<span <span
data-id="remix_ai_docs" data-id="remix_ai_docs"
id="remix_ai_docs" id="remix_ai_docs"
className="btn pl-2 pr-0 py-0 d-inline ai-docs" className="btn pl-2 pr-0 py-0 d-inline ai-docs text-dark"
role='link' role='link'
onClick={()=>{ onClick={()=>{
window.open("https://remix-ide.readthedocs.io/en/latest/ai.html") window.open("https://remix-ide.readthedocs.io/en/latest/ai.html")

Loading…
Cancel
Save