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 🙏

© 2026 – Pkg Stats / Ryan Hefner

if-qiankun-config

v1.0.7

Published

import core from 'if-qiankun-config'

Readme

if-qiankun-core

import core from 'if-qiankun-config'

说明

import { storeQiankun } from 'if-qiankun-config'

export const Actions = storeQiankun.ActionsFromMainSystem

Actions.DISPENSE_ALL_ACTIONS // 下发所有主应用Actions
Actions.REFRESH_MACRO_MENU // 刷新菜单
Actions.REFRESH_MACRO_APP // 刷新父应用
Actions.DISPENSE_SHARED_DATA // // 下发主应用数据

if-qiankun-config

if-core公共配置库,本项目会获取一些qiankun相关的配置信息:

/**
 * 子应用的moduleName, 注册时会用到
 */
export enum SubSystems {
    MIS = 'team-car'
}

/**
 * 主应用 action,用于全局状态通信,分为三类
 * 1. 无操作
 * 2. 更新主应用
 * 3. 更新子应用/传递数据到子应用
 */
export enum ActionsFromMainSystem {
    /**
     * 空操作
     */
    EMPTY = 'EMPTY',

    /**
     * 下发所有主应用Actions
     */
    DISPENSE_ALL_ACTIONS = 'DISPENSE_ALL_ACTIONS',

    /**
     * 更新主应用
     */
    REFRESH_MACRO_MENU = 'REFRESH_MENU', // 刷新菜单
    REFRESH_MACRO_APP = 'REFRESH_MACRO_APP', // 刷新父应用

    /**
     * 更新子应用
     */
    DISPENSE_SHARED_DATA = 'DISPENSE_SHARED_DATA', // 下发主应用数据
    DISPENSE_USER_INFO = 'DISPENSE_USER_INFO',
    /**
     * 子应用更新钉版父应用
    */
    REFRESH_MACRO_APP_DING = 'REFRESH_MACRO_APP_DING',
    /**
     * OKR初始化
    */
     OKR_TREE = 'OKR_TREE',
     /**
      * 退出登录
     */
     LOG_OUT = 'LOG_OUT',
    /**
     * 子应用个人信息管理更新姓名同步到父应用顶部右上角
    */
    UPDATE_MAIN_APP_TOP_NAME = 'UPDATE_MAIN_APP_TOP_NAME'
}

// 子系统ID map
export const SYSTEM_ID_MAP = {
  DEV: {
    // 组织权限子应用
    SYSTEM_ID_MIS: 1,
    // 售后
    SYSTEM_ID_SALES: 2,
  },
  ONLINE: {
    SYSTEM_ID_MIS: 1,
    SYSTEM_ID_SALES: 2,
  }
};