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

emnav

v2.5.1

Published

em 头部弹框业务组件

Downloads

167

Readme

头部组件

Vue.js 2.x C端的业务组件。

emnav NPM downloads Package Quality NPM downloads

Sauce Labs Test Status (for master branch)

环境

  • node 9

API

方法

|参数|说明| |---|----| |logout|点击退出按钮emit出方法| |organizer|点击主办方管理按钮emit出方法| |release|点击发布按钮emit出方法| |myOrder|点击我的订单按钮emit出方法|

属性

|参数|说明|类型|是否必填|默认值| |---|----|---|-------|-----| |englishEnter|是否开启英文版|Boolean|是|false| |loginFlg|是否登录|Boolean|是|false| |imgLogo|主办logo|String|否|活动易logo| |login|登录不同版本文案|String|否|登录| |logout|退出不同版本文案|String|否|退出| |order|我的订单不同版本文案|String|否|我的订单| |imgLogo|主板图案|String|否|无| |orgid|主办id|String|是|-| |sendAction|发送验证码接口地址(中文版)|String|是|-| |sendEnglishAction|发送验证码接口地址(英文版)|String|是|-| |domain|设置cookie登录状态的domain|String|否|'evente.cn'| |countrycodeAction|获取countrycode接口地址|String|是|-| |logoutAction|用户退出接口地址|String|是|-| |loginAction|用户登录接口地址(中文版)|String|是|-| |loginEnglishAction|用户登录接口地址(英文版)|String|是|-| |sendEmailEnglishAction|点击订单发送邮件接口地址(英文版)|String|是|-| |loginClose|关闭弹框|Function|是|() => {}| |loginSuccess|登录成功|Function|是|() => {}| |langHandle|点击语言版本的方法。如果有点击语言之后保存语言调用,没有点击保存之后刷新。|Function|否|无|

安装

$ yarn add emnav

需要的环境

  • node.js >= 9.0.0
  • npm >= 5.0.0

常用命令 ( package.json 的 scripts 中可以找到所有命令)

# 安装依赖( package.json 中的 dependencies 部分 ) dependencies
npm install

# development 环境的本地热加载服务,访问地址: localhost:8080
# 在 config 中修改端口号
npm start

# 利用 jest 单元测试
npm test

# 打包组件库
npm run build

# 打包官网
npm run build:site

# 打包官网,打包并查看捆绑分析器报表
npm run build --report

# JavaScript 的代码规范监测
npm run eslint

# style 的代码规范监测
npm run stylelint

# 进行 style 和 JavaScript 的规范检测
npm run lint-staged

# 上传单元测试覆盖率报告
npm run codecov

说明

本仓库是用脚手架 fecli,结合 component-template 模板生成的。