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

burgeon-r3-project

v1.0.0

Published

> Api

Downloads

4

Readme

Burgeon-R3 Tutorial

Api

| Name | Type | Description | | --- | --- | --- | | R3.launchApplication | Function | 启动应用程序 | | R3.urlSearchParams | Function | 对URLSearchParams的简单封装,通常配合Axios使用,用于提交参数。 | | R3.getModuleName | Function | 用于获取当前路由所对应界面,唯一模块标识 | | R3.network | Object | 对axios的封装,提供get、post方法(用法同axios相同)以及axios原对象 |

R3.launchApplication(projectConfig:JSON Object)
/**
   * @param projectConfig 项目配置
   * projectConfig: {
   *   image: {
   *     enterpriseLogo: '',  // 公司 Logo 图片
   *     enterpriseBanner: '', // 公司Banner 图片
   *   }, // 此配置项必传。
   *   globalComponent: {
   *     Login: '',  // 登录页
   *     WelcomePage: '', // 欢迎页
   *   }, // 此配置项必传。
   *   externalModules: { // 项目自定义界面组件入口
   *      keyOne: VueComponentOne,
   *      keyTwo: VueComponentTwo,
   *      ...
   *   }, // 如无自定义界面,此配置项可不传参。
   *   externalModals: {  // 项目自定义弹框(模态框)组件
   *     keyOne: VueComponentOne,
   *     keyTwo: VueComponentTwo,
   *     ...
   *   }, // 如无自定义弹窗,此配置项可不传参。
   *   projectRoutes: [  // 项目自定义路由,一般情况下用不到此配置。
   *     {
   *       path: '/register',
   *       component: VueComponentForRegister
   *     }
   *   ], // 此配置项可不传参。
   *   quietRoutes: [ '/register' ],  // 项目中针对403的请求,都会默认跳转到登录页面。处于静默路由列表的路由界面则不进行跳转。一般情况用不到此配置。默认值为[],此配置项可不传参。
   *   Version: '1.4', // 后台框架API版本号,目前只支持['1.3', '1.4']其中一个。默认值是"1.4",此配置项可不传参。
   *   enableGateWay: true, // 开启 | 关闭 网关(默认开启),此配置项可不传参。
   *   enableJflow: true, // 开启JFlow插件功能(默认关闭),此配置项可不传参。
   *   jflowRequestDomain: 'http(s)://domain:port', // jflow请求转发的域名或者IP(只有在enableJflow为true时生效),此配置项可不传参。
   * }
   */

Usage e.g.

import R3 from 'burgeon-r3';

// 企业Logo、Banner配置信息
import enterpriseLogo from './src/assets/image/logo.png';
import enterpriseBanner from './src/assets/image/banner.png';
import Login from './src/component/Login';
import WelcomePage from './src/component/WelcomePage'

R3.launchApplication({
  image: { enterpriseLogo,  enterpriseBanner },
  globalComponent: { Login, WelcomePage },
  externalModules: {
    TheKeyNameOfMyPage: {
      component: {
        template: '<h1>Here is my customized component.</h1>'
      }
    }
    ...
  }
});