SheTrack Snippets
This extension provides you SheTrack Snippets for VS Code
Features
sheTrack 埋点组件代码片段生成
文件中输入Snippets下key
Snippets
Snippet |
Renders |
imSheTrackClick |
import SheTrackClick |
imSheTrackShow |
import SheTrackShow |
imSheTrackSlide |
import SheTrackSlide |
imSheTrackStatus |
import imSheTrackStatus |
actionsheet_show |
SheTrackShow Component |
module_slide |
SheTrackSlide Component |
actionsheet_click |
SheTrackClick Component |
module_status |
SheTrackStatus Component |
📚 Supported languages (file extensions)
- JavaScript (.js)
- JavaScript React (.jsx)
- TypeScript (.ts)
- TypeScript React (.tsx)
actionsheet_show - SheTrackShow Component
import SheTrackShow from '@s-mall-utils/tracks';
<SheTrackShow
params={{
actionsheet_name: '',
contend_id: 0,
content_id: 0,
drop_off_status: 0,
is_navigation: 0,
is_new_create: 0,
load_time: 0,
order_id: '',
order_status: '',
position_id: 0,
product_id: '',
product_skc_id: '',
request_status: '',
return_method: '',
}}>
module_slide - SheTrackSlide Component
import SheTrackSlide from '@s-mall-utils/tracks';
<SheTrackSlide
params={{
card_name: '',
module_name: '',
origin_price: 0,
product_num: 0,
product_spu_id: '',
sale_price: 0,
slide_type: '',
user_login_status: 0,
}}>
actionsheet_click - SheTrackClick Component
import SheTrackClick from '@s-mall-utils/tracks';
<SheTrackClick
params={{
actionsheet_name: '',
drop_off_status: 0,
is_new_create: 0,
module_name: '',
order_id: '',
order_status: '',
previous_shop_to: '',
product_id: '',
product_skc_id: '',
request_status: '',
return_method: '',
saved_return_method: '',
shop_to: '',
}}>
module_status - SheTrackStatus Component
<SheTrackStatus
params={{
actionsheet_name: '',
card_name: '',
client_fail_reason: '',
code_text: '',
coupon_id: '',
coupon_status: '',
coupon_type: '',
email_uu_id: '',
error_code: '',
event_type: '',
fail_reason: '',
identified_color: '',
is_free_shipping: 0,
is_new: 0,
module_name: '',
payment_method: '',
pct: 0,
place_order_id: '',
product_list: '',
product_num: 0,
product_spu_id: '',
server_fail_reason: '',
shipping_gap: '',
status: '',
toast: '',
total: 0,
trigger_type: '',
uploaded_color: '',
user_login_status: 0,
}}>
Thank You! ❤️
While I wrote the initial version of this extension, many people (too many to name) have helped make it what it is today. From providing TypeScript definitions to keeping up with changing API and best practices. If you are enjoying this extension, you have the great React community to thank.