npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hy-rtc-sdk-cpns

v0.0.105

Published

```vue <script setup lang="ts"> import { onMounted, ref } from 'vue' </script>

Downloads

2,209

Readme

新增操作区

<script setup lang="ts">
import { onMounted, ref } from 'vue'
</script>

<monitor
ref="monitorRef"
>
    <template #operation="{monitorDataItem}"></template>
    <template #operationMore="{monitorDataItem}"></template>
</monitor>

Attributes

| 属性名 | 属性名 | 类型 | 必填 | | ------------------ | ---------------- | --------------------------- | ---- | | maxWindowNum | 最大窗口数量 | 1 | 4 | 6 | 8 | 9 | 16 | | | defaultWindow | 默认窗口 | 1 | 4 | 6 | 8 | 9 | 16 | | | draggable | 组件拖拽切换窗口 | boolean | | | ptzkeyboardControl | 中控键盘控制 | boolean | | | operationList | 操作区列表 | OperationItem[] | | | | | | |

Slots

| 插槽名 | 说明 | 参数 | | ------------- | ------------------------- | --------------- | | operation | 操作区(外部展示) | monitorDataItem | | operationMore | 操作区更多 (收起展开展示) | monitorDataItem | | | | |

Events

| 事件名 | 说明 | | | --------------------- | ---------------- | ------------------------- | | getMonitorDataList | 获取当前监控设备 | ()=> MonitorDataItem[] | | getWindowSettingsList | 获取窗口设置列表 | ()=> WindowSettings[] | | setWindowSettings | 设置窗口设置 | (WindowQuantity)=> void | | monitor | 发起监控 | (device)=> void | | getOperationList | 获取操作区列表 | ()=> OperationItem[] | | | | | | | | | | | | | | | | |

broadcast (广播)

基础用法

<broadcast />

Attributes

| 属性名 | 属性名 | 类型 | 必填 | | ------------------ |----------|-----------------| ---- | | emptyText | 无房间提醒 | string | | | hideCloseDevice | 是否需要关闭设备操作 | boolean | | | showInvitationDevice | 是否展示邀请设备板块 | boolean | | | dialogType | 弹窗模式 | boolean | | | draggable | 弹窗模式下 是否拖拽 | boolean | |

Events

| 事件名 | 说明 | | |------------------|--------|-------------------------------------------------------------------------------------------------------------------------| | onRoomNotice | 房间通知 | ()=> BroadcastDataItem[] | | onRoomStatistics | 房间统计成员 | { broadcastDataList:BroadcastDataItem[],onlineNum:string, offlineNum:string, inTheRoomNum:string, noTheRoomNum:string,} | | onRoomInvite | 邀请通知 | null |