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

baibaodun

v1.0.0

Published

- [Git](https://git-scm.com/) - [Node.js](https://nodejs.org/) - [HBuilderX](https://www.dcloud.io/hbuilderx.html) - [Chrome](https://www.google.cn/chrome/) - 安装Chrome插件Vue.js devtools和[Access-Control-Allow-Origin](https://mybrowseraddon.com/access-contro

Downloads

56

Readme

开发环境

开发流程

  • npm install
  • 使用HBuilderX打开项目代码目录
  • 运行->运行到浏览器->Chrome
  • 或者连接手机,运行->运行到手机或模拟器

代码规范

  • 简单页面跳转请使用navigator
  • 使用@相对于根目录引入文件
  • json文件里面不要写注释
  • 字符串尽量使用单引号
  • 结尾分号可以不写
  • 没用的代码删掉,少注释代码块
  • 平台相关的可使用条件编译#ifdef或#ifndef
  • 变量let const, 解构 {}, 扩展运算符 ..., 模板字符串`, 箭头函数 () =>的使用
  • async await替代回调函数
  • Vue组件name属性写文件名,便于调试
  • Vue中mixins, computed, watch, filters, store的使用

参考文档

更新日志

  1. uView从1.8.4更新到2.0.15
  2. dayjs替换moment库
  3. 去掉插件TX-TecentIM插件,使用官方uniapp的tim-wx-sdk
  4. 优化开发体验,H5模式开发,效率更高

v3更新内容

  1. 用户信息接口替换,字段也做了修改,目前用户信息放在本地缓存

    //之前
    {
        allUsers: "",
        calendarType: "__HTKuTHzHzuxETmTauSk",
        calendarTypeName: "标准日历",
        ddUserId: "",
        defaultDepartment: "",
        dimission: 1,
        domainUser: "",
        email: "",
        emailPublic: true,
        endProxyTime: "",
        field1: null,
        field2: null,
        field3: null,
        field4: null,
        field5: null,
        field6: null,
        field7: null,
        field8: null,
        field9: null,
        field10: null,
        field11: null, //证件类型
        field12: null, //证件号码
        field13: null, //认证状态
        field14: null, //身份证住址
        field15: null, //身份证头像
        field16: null,
        field17: null,
        field18: null, //身份证人像面
        field19: null, //身份证国徽面
        field20: null, //人脸照片
        field21: null,
        field22: null, //微信昵称
        field23: null, //微信id(openid)
        field24: null,
        field25: null,
        id: "",
        liaisonOfficer: true,
        lockFlag: 1,
        loginno: "",
        loginpwd: "",
        name: "",
        orderByNo: 0,
        permissionType: "public",
        remarks: "",
        reportTree: "",
        startProxyTime: "",
        status: 1,
        superAdmin: false,
        superiorid: "",
        telephone: "",
        telephone2: "",
        telephonePublic: true,
        telephonePublic2: true,
        useIM: true,
        wechatNumber: "",
        _proxyUser: "",
        _userKMRoleJson: "[]",
        _userRoleDepartmentJson: ""
      }
    //更新后
    uni.getStorageSync('userInfo') = {
    		"authenticateStatus": "Authenticating", //实名认证状态
    		"authenticatedResult": "手动重新认证",  //实名认证失败原因
    		"birthdate": "1979-12-08", // 出生日期
    		"checkedStatus": "Matched",  //证件核验状态
    		"cid": "6fd782e1fc21a5e266498b781f66e668", // 手机设备id
    		"credential": {   //身份证信息
    			"address": "福建省厦门市",
    			"credentialType": "IdCard",  //证件类型
    			"frontPhoto": "555511112222fdffffffffsdaaaad2222",  //身份证正面照
    			"headPhoto": "66663333http:xczxcc/9asdasdsadsasdx",  //身份证头像
    			"name": "张力",
    			"number": "350623198109231203", // 身份证号码
    			"reversePhoto": "55521111htdffffsfsdfdsf1.xxxxxxxx/com",  //身份证反面
    			"validDateFrom": "2021-01-01",
    			"validDateTo": "2021-01-02",
    			"validRang": "2021-01-01至2021-01-02"
    		},
    		"education": "6", // 文化程度
    		"email": "[email protected]",
    		"headPhoto": "66663333http:xczxcc/9asdasdsadsasdx",
    		"householdType": "1",
    		"id": "hor01HIu",
    		"lonLatJson": "{\"latitude\":\"24.607452\",\"longitude\":\"118.051946\",\"time\":\"2021-12-16 04:46:10\"}",
    		"maritalStatus": "1", // 婚姻状况
    		"militaryStatus": "1", // 退伍军人
    		"name": "张力", // 名字
    		"nation": "01", // 民族
    		"nativePlace": "", // 籍贯
    		"nicky": null,  //微信昵称
    		"oneInchColorWhitePhoto": "/uploads/2ce34bb7-f5e3-4819-90c3-3eb3eaf5a7f1/upload0.8918206864725311.png",  //一寸照
    		"politicsStatus": "01", // 政治面貌
    		"sex": "Male", // 性别
    		"stature": "123cm", // 身高
    		"telephone": "33333000000", // 手机号
    		"twoInchColorBluePhoto": "", // 两寸蓝底照
    		"userPhoto": "http://v5qy.test.baibaodun.cn/v3/shared/uploads/2ce34bb7-f5e3-4819-90c3-3eb3eaf5a7f1/upload0.8918206864725311.png"  //补齐一寸照完整地址可直接访问
    	}
    //相关字段枚举
    checkedStatus {
        /**
         * 未提交
         */
        None,
        /**
         * 已核验
         */
        Matched,
        /**
         * 已提交
         */
        Commit
    }
    authenticateStatus{
        /**
         * 未认证
         */
        UnAuthenticated,
        /**
         * 认证中
         */
        Authenticating,
        /**
         * 认证失败
         */
        Failed,
        /**
         * 已认证
         */
        Passed
    }
    credentialType{
        /**
         * 居民身份证/户口簿
         */
        IdCard,
        /**
         * 香港特区护照/身份证
         */
        IdCardOfXiangGang,
        /**
         * 澳门特区护照/身份证明
         */
        IdCardOfAoMen,
        /**
         * 台湾居民来往大陆通行证
         */
        IdCardOfTaiwan,
        /**
         * 外国护照
         */
        Passport,
        /**
         * 退伍军人证
         */
        Arms,
        /**
         * 警号
         */
        PoliceNo
    }
    //其他一些本地缓存信息
    uni.getStorageSync("domain")   //存储当前组织域名称
    uni.getStorageSync('teemlink_token');//存储当前组织域token
    uni.getStorageSync('domainId');//存储当前组织域id
    uni.getStorageSync('domainList');//存储用户组织列表
    uni.getStorageSync('employeeId');//employeeId为之前的userId,存储当前用户当前企业职员id
    uni.getStorageSync("bbd_username")  //存储当前用户账号
    uni.getStorageSync('userId',);  //存储当前用户租户id,用户个人id,与组织无关
  2. 更改文件拼接方式