Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zys8119/useram
用户活跃监测 (User activity monitoring)
https://github.com/zys8119/useram
Last synced: 10 days ago
JSON representation
用户活跃监测 (User activity monitoring)
- Host: GitHub
- URL: https://github.com/zys8119/useram
- Owner: zys8119
- Created: 2023-08-17T05:30:03.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-18T01:36:47.000Z (about 1 year ago)
- Last Synced: 2024-11-01T11:34:37.513Z (14 days ago)
- Language: TypeScript
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# useram
用户活跃监测 (User activity monitoring)
# 安装
`npm i useram`
# 使用
main.ts
```typescript
import {createApp} from "vue"
import useram from "useram"const app = createApp(App)
app.use(useram, Options)
```# OptionsTypes
```typescript
export type Options = {
// 定时监测间隔时间,毫秒
intervalTime?:number
// 有效时间,毫秒
validTime?:number
// 活跃回调
onActive?:ActiveCallBack
// 不活跃回调
onUnActive?:ActiveCallBack
// 是否控制台输出
isConsole?:boolean
}export type ActiveCallBack = ()=> void
```