Feature: add privacy policy

This commit is contained in:
PiEgg
2021-04-10 21:01:55 +08:00
parent 06d40ef7f6
commit 992ff35936
15 changed files with 186 additions and 76 deletions

View File

@@ -1,7 +1,6 @@
export const SHOW_INPUT_BOX = 'SHOW_INPUT_BOX'
export const SHOW_INPUT_BOX_RESPONSE = 'SHOW_INPUT_BOX_RESPONSE'
export const TOGGLE_SHORTKEY_MODIFIED_MODE = 'TOGGLE_SHORTKEY_MODIFIED_MODE'
export const BAIDU_TONGJI_INIT = 'BAIDU_TONDJI_INIT'
export const BAIDU_TONGJI_INIT_RES = 'BAIDU_TONDJI_INIT_RES'
export const BAIDU_TONGJI_CODE = '19a7ebdbb87f2403773c7ab0cae16d21'
export const BAIDU_TONGJI_EVENT = 'BAIDU_TONGJI_EVENT'
export const TALKING_DATA_APPID = '7E6832BCE3F1438696579E541DFEBFDA'
export const TALKING_DATA_EVENT = 'TALKING_DATA_EVENT'
export const SHOW_PRIVACY_MESSAGE = 'SHOW_PRIVACY_MESSAGE'

View File

@@ -12,6 +12,8 @@ declare global {
}
interface Window {
_hmt: any[]
TDAPP: {
onEvent: (EventId: string, Label?: string, MapKv?: IStringKeyMap) => void
}
}
}

View File

@@ -296,13 +296,10 @@ interface IAppNotification {
icon?: string
}
interface IBaiduTongJiOptions {
category: string
action: string
// eslint-disable-next-line camelcase
opt_label?: string
// eslint-disable-next-line camelcase
opt_value?: number
interface ITalkingDataOptions {
EventId: string
Label?: string
MapKv?: IStringKeyMap
}
interface IAnalyticsData {
@@ -311,3 +308,7 @@ interface IAnalyticsData {
count: number
duration?: number // 耗时
}
interface IStringKeyMap {
[propName: string]: any
}