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

@zjwit/special-dd-errorpage

v1.0.3

Published

**注意** 只能在 <u>专有钉钉/浙政钉</u> 环境下使用

Downloads

4

Readme

浙政钉错误提示页面

注意 只能在 专有钉钉/浙政钉 环境下使用

代码设计,框架无关的 webComponents 设计,可以使用在 React、Vue、甚至是原生 html 中。

  • 默认状态码

        const ERROR_CODES = {
            ERROR_PAGE_NOT_FOUND: 1, // 页面不存在
            ERROR_SERVER_ERROR: 2, // 服务端错误
            ERROR_UNAUTH: 3, // 无权限
            ERROR_NETWORK: 4, // 网络断开连接
            ERROR_BUILDING: 5, //建设中
            ERROR_NOT_CONTENT: 6, //查询为空;
        };
  • 如何添加新状态? 组件提供了一个 config 属性,注意,必须传递 json 字符串,然后你就把默认的配置就覆盖了,你可以从导出的状态码中设置新的状态配置

    const customConfig = JSON.stringify({
        [ERROR_CODES.NETWORK]: {
            title: "自定义",
            //...
        },
    });
  • 必须提供 detail 属性,注意,必须传递 json 字符串

    <error-page
        :code="1"
        :detail="
                JSON.stringify({
                    company: '杭州市教育局',
                    dutyer: '鳞片211',
                    phone: '17398977051',
                })
            "
    ></error-page>
  • 状态码必填