mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-27 11:51:13 +01:00
Better insight into settings updates
This commit is contained in:
@@ -1,41 +1,9 @@
|
||||
import type { AnalyticsAction, AnalyticsResource } from '../../src-tauri/bindings/analytics';
|
||||
import { invokeCmd } from './tauri';
|
||||
|
||||
export type TrackResource =
|
||||
| 'appearance'
|
||||
| 'app'
|
||||
| 'cookie_jar'
|
||||
| 'dialog'
|
||||
| 'environment'
|
||||
| 'folder'
|
||||
| 'grpc_connection'
|
||||
| 'grpc_event'
|
||||
| 'grpc_request'
|
||||
| 'http_request'
|
||||
| 'http_response'
|
||||
| 'key_value'
|
||||
| 'plugin'
|
||||
| 'setting'
|
||||
| 'sidebar'
|
||||
| 'theme'
|
||||
| 'workspace';
|
||||
|
||||
export type TrackAction =
|
||||
| 'cancel'
|
||||
| 'commit'
|
||||
| 'create'
|
||||
| 'delete'
|
||||
| 'delete_many'
|
||||
| 'duplicate'
|
||||
| 'hide'
|
||||
| 'launch'
|
||||
| 'send'
|
||||
| 'show'
|
||||
| 'toggle'
|
||||
| 'update';
|
||||
|
||||
export function trackEvent(
|
||||
resource: TrackResource,
|
||||
action: TrackAction,
|
||||
resource: AnalyticsResource,
|
||||
action: AnalyticsAction,
|
||||
attributes: Record<string, string | number> = {},
|
||||
) {
|
||||
invokeCmd('cmd_track_event', {
|
||||
|
||||
Reference in New Issue
Block a user