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

@rui-jie/webmenucommonfactory

v1.0.10

Published

ces全套项目菜单及外连接配置

Downloads

3

Readme

ces全套项目菜单及外连接配置

所有相关项目菜单连接,都配置于此,各拆分出的项目,均需要实现其配置中的菜单项。

使用方法

安装

npm install ruijie.webmenucommonfactory --registry http://yapi.ruijie.com.cn:4873/

// 或者
yarn add ruijie.webmenucommonfactory --registry http://yapi.ruijie.com.cn:4873/

配置 vue.config.jstranspileDependencies项,为[...,'ruijie.webmenucommonfactory'] 解决依赖包无法被编译问题

vueRouter 配置中引用

import menuCommonFactory from 'ruijie.webmenucommonfactory';
import Main from '../views/main'; // 主页面
export const layoutRoute = menuCommonFactory([
  {
    path: '/fanli',
    component: Main,
    name: 'fanli', // 需要实现的连接,保证于 ruijie.webmenucommonfactory 配置一致
    meta: {
      title: '返利中心',
      icon: 'iconfont icontoreview'
    },
    children: [
      {
        path: '/fanli1',
        name: 'fanli1',
        meta: {
          title: '返利1'
        }
      },
      {
        path: '/fanli2',
        name: 'fanli2',
        meta: {
          title: '返利2'
        }
      }
    ]
  }
], Main);

注意

  1. 在所有配置中,name 值必须唯一,不可重复。
  2. 保证实现后的链接地址与 ruijie.webmenucommonfactory 中配置一致,否则其他系统使用时,会出现访问地址错误问题。
  3. 实现中不要写 target 字段值
  4. 关于菜单部分开发思路转变,应改变成,先编辑上传该依赖包,完善所有链接配置,然后由各个独立系统,实现其相应部分。
  5. ruijie.webmenucommonfactory 每次更新,所有相关独立系统都应该重新安装此依赖并且重新打包。