gemercheung 35766e05f2 feat(组件): 移植组件 2 tahun lalu
..
src 7a79f461a1 chore(组件): precommit与component 基本三大件directives, utils 2 tahun lalu
CHANGELOG.md 7a79f461a1 chore(组件): precommit与component 基本三大件directives, utils 2 tahun lalu
README.md 7a79f461a1 chore(组件): precommit与component 基本三大件directives, utils 2 tahun lalu
index.ts 7a79f461a1 chore(组件): precommit与component 基本三大件directives, utils 2 tahun lalu
package.json 7a79f461a1 chore(组件): precommit与component 基本三大件directives, utils 2 tahun lalu
rollup.config.js 35766e05f2 feat(组件): 移植组件 2 tahun lalu
tsconfig.build.json 7a79f461a1 chore(组件): precommit与component 基本三大件directives, utils 2 tahun lalu
tsconfig.json 7a79f461a1 chore(组件): precommit与component 基本三大件directives, utils 2 tahun lalu

README.md

@medici/core

The medici track system core module

installation

core module provide Main SDK class, All details are revived by @medici/web module

import * as Medici from '@medici/web';
const medici = Medici.init({
    platform: 'web',
    appId: '7b5958d5-1ae6-4ad5-8a87-5fc8a4b92999',
    endPoint: 'http://192.168.0.186:3000/api/collect', //服务器
    trackEndPoint: 'http://192.168.0.186:3000/api/track',
    config: {
        user: 'testUser',
        version: '1',
    },
});
console.log('medici', medici);
(window as any).medici = medici;