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

intelligent-recommend-cs

v1.0.23

Published

服务云-智能推荐

Downloads

30

Readme

intelligent-recommend-cs

智能推荐组件

组件依赖:此组件依赖了系统中的Vue对象以及Vue.prototype上挂载的$request方法

微服务API:VUE_APP_IRSC_API

git 仓库

http://g.lenovo.com.cn/cloudservice/packages/intelligent-recommend

Install

npm install intelligent-recommend-cs --save

Usage

全局注册组件

// 全局注册(注意,要在 $request 之后)

import IntelligentRecommend from 'intelligent-recommend-cs'

Vue.use(IntelligentRecommend)

组件中使用

<IntelligentRecommend
  ref="recommend"
  project-code="CHC"
  project-sn="ZZJ0001"
  soid="PJD201028149637889"
  cust-phone="15811019382"
  :is-lenovo-project="false"
/>

...

// 打开智能推荐弹窗
this.$refs.recommend.openRecommendDialog()

// 手动关闭智能推荐弹窗
this.$refs.recommend.closeRecommendDialog()

props 参数

  1. project-code: 项目 code
  2. project-sn: 设备 sn 码
  3. soid: 工单号
  4. is-lenovo-project: 当前项目是否为联想项目
  5. cust-phone: 工单对应客户电话

对外暴露的方法

  1. 打开智能推荐弹窗: openRecommendDialog
  2. 手动关闭智能推荐弹窗: closeRecommendDialog

Publish

  • 打包

npm run build
  • 调试

使用npm link进行组件联调

  • 创建/解除 intelligent-recommend-cs 的全局链接

    // 进入模块目录
    npm link // 创建链接
    npm unlink // 解除链接
  • 创建/解除项目和模块的链接

    // 进入项目目录
    npm link intelligent-recommend-cs // 创建链接
    npm unlink intelligent-recommend-cs // 解除引用链接
  • npm发布

// 登录时若长时间未响应,可将淘宝镜像先停用
npm login // 账号:jiaxiaopeng 密码:8214!xuan@  Email:[email protected]  每天登陆一次就行,不需要每次发版登陆

npm publish // 发布到npm
  • 发布完后一定记得push代码