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

yiyun-web-sdk

v1.0.7

Published

``` npm i yiyun-web-sdk ```

Downloads

20

Readme

安装

npm i yiyun-web-sdk

引入

import YiYunSdk from 'yiyun-web-sdk'

使用

let yiyun =  new YiYunSdk()

Api

打开app: openApp

let yiyun =  new YiYunSdk()
yiyun.openApp({appId, path, fregment,target})
接口参数

| 参数名 | 参数类型 | 说明 | 其他| | -------- | -------- | -------- | -------- | | appId| string |目标app的ID | 必填 | | path| string | 目标app项目目录下的页面路径 | 选填 | | fregment| string | 额外的路由以及参数 | 选填 | | target| string | 同window.open接收的target参数 | 选填 |

注:path、fregment同开放平台应用高级配置中看板配置的跳转 例:

 yiyun.openApp({appid: 'xxxxxxx', path: 'setting.html', fregment: '/route?a=1&b=2'})

// 其中id为xxxx的App的默认url为 https://aaa.bbb.ccc/index.html
// 则最后跳转的页面为 https://aaa.bbb.ccc/setting.html#/route?a=1&b=2

打开app: openPlatformApp

let yiyun =  new YiYunSdk()
yiyun.openPlatformApp({app, actionType, objectId,target})
接口参数

| 参数名 | 参数类型 | 说明 | 其他| | -------- | -------- | -------- | -------- | | app| int |平台app的枚举: 0 工作台;1 通讯录; 2 管理; 3 商城; 4 费用; 5 权益数据; 6 编码中心; 7 二维码; 8 审批; 9 企业模型; 10 企业关系 | 必填 | | actionType| int | 动作类型的枚举,不同app对应的枚举如下 | 选填 | | objectId| string | 对象ID | 选填 | | target| string | 同window.open接收的target参数 | 选填 |

不同app对应的actionType
  • 0 (工作台) 无actionType
  • 1 (通讯录)
    • 0 查看组织架构 (默认)
    • 1 查看岗位
  • 2 (管理)
    • 0 企业管理 (默认)
    • 1 权限组管理
    • 2 应用管理
    • 3 单个应用配置
  • 3 (商城)
    • 0 商城首页 (默认)
    • 1 商品详情
  • 4 (费用)
    • 0 充值 (默认)
    • 1 查看优惠券
    • 2 查看账单
  • 5 (权益数据) 无actionType
  • 6 (编码中心)
    • 0 首页 (默认)
    • 1 新建
    • 2 编辑
    • 3 查看
  • 7 (二维码)
    • 0 首页 (默认)
    • 1 编辑
    • 2 日志
    • 3 新建自定义标签
  • 8 (审批)
    • 0 首页 (默认)
    • 1 编辑
  • 9 (企业模型)
    • 0 首页 (默认)
    • 1 查看节点
  • 10 (企业关系)
    • 0 公告 (默认)
    • 1 企业关系