Page Spy SDK
PageSpy is a developer platform for debugging web page.
English | 中文
What's this
This repo is the SDK which be used in HuolalaTech/page-spy-web, where SDK collects information and page-spy-web
consumes and filters, organizes, and converts information into a standardized format, which is then showed on the page.
Usage
For data security and your convenience, we provide a complete and out-of-box solution. Read the "How to use" section in the HuolalaTech/page-spy-web
to get more detail.
After the integration, open your project in browser, there should be a widget (round container with white background and include logo) on the bottom left. If not, check your config.
The init parameters
Web
For browser, all parameters are optional, here is a description of each property and its default value:
window.$pageSpy = new PageSpy(config?: InitConfig)
interface InitConfig {
api?: string;
clientOrigin?: string;
project?: string;
title?: string;
autoRender?: boolean;
enableSSL?: boolean | null;
}
Mini Program
Except for the api
parameter, all parameters are optional, here is a description of each property and its default value:
const pageSpy = new PageSpy(config?: InitConfig)
interface InitConfig {
api: string;
project?: string;
title?: string;
enableSSL?: boolean | null;
disabledOnProd?: boolean | null;
}
For more details of mini-program usage, please refer to Mini-Program Usage