Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-test1

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-test1

cp 教室打点库

  • 1.0.5
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

class-track

cp 教室打点库

安装

  1. npm 安装使用

使用 smartstudy 源

registry=http://registry-npm.smartstudy.com
# 安装
npm install @zhike-private/class-track 
// 使用
import { useEffect } from "react";
import Track from "@zhike-private/class-track";

function App() {
  useEffect(() => {
    const trackIns = new Track().init({ env: process.env.NODE_ENV });
    trackIns.then((data) => {
      data.track();
    });
  }, []);
  return <div className="App">主页面</div>;
}

实现功能

  1. 利用 fingerprints2 库生成浏览器 clientId。准确率至 99%。
  2. 默认以十秒钟进行轮训上报打点。
  3. 上课结束后(默认上课时间2小时),弹窗提示重新上课,还是关闭教室。
    1. 重新上课。更新 url 上的 timestamp 参数,reload 页面。
    2. 关闭教室。关闭当前上课的窗口。

FAQs

Package last updated on 05 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc