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

react-auth-router

v1.5.3

Published

vue react 钉钉小程序,微信小程序规避路由冲突的一个辅助工具,并支持钉钉小程序、微信小程序scss转换为acss 全局scss变量

Downloads

38

Readme

前端辅助工具

目前支持 react,vue 项目 子路由已经开发完成

辅助方法

  • [x] 筛选变量赋值相同的代码

使用方法

 npm i react-auth-router -g
 router-cli init // 初始化项目
 router-cli watch // 监听文件
 router-cli add // 添加文件目前是创建固定模板
 router-cli build // 直接进行打包
  • [x] router-cli init 初始化项目
  • [x] router-cli add 添加文件
  • [x] router-cli watch 监听文件变化将项目下的所有页面的 json 进行统一到一个 json 文件中。可以通过这个 json 去做扩展。比如路由拦截等等。
  • [x] react+ts 项目 demo 地址:https://gitee.com/wen_qi_li1/router-cli-react-ts-demo.git

vue react 模式

vue react 页面.json 配置

| 字段名 | 类型 | 是否必填 | 作用 | | :-------- | ------: | :------: | :-----------------------------------------------------------------------------------------------------: | | name | string | 是 | | | path | string | 是 | 路由地址 | | redirect | string | 否 | 重定向的地址 | | component | string | 是 | 文件地址 | | id | number | 是 | 路由 id 注意不可以随意修改 | | parentId | number | 是 | 父级路由 id 谨慎修改 | | query | object | 否 | 动态路由的参数 | | using | boolean | 否 | 是否启用当前路由(请注意如果父级取消使用,子路由将无法打包进路由文件,在 allPage.json 会展示该路由文件) | | sort | number | 是 | 同级路由进行排序 |

钉钉模式

_lwq-cli/model.json

{
  "mode": "dd",
  "type": "none",
  "pages": "./page",
  "mainScss":"./main.scss",//全局scss变量
  "dd": {
    "window": {
      "defaultTitle": "···",
      "backgroundColor": "#F5F5F9",
      "pullRefresh": false,
      "allowsBounceVertical": "YES"
    },
    "tabBar": {
      "textColor": "#404040",
      "selectedColor": "#108ee9",
      "backgroundColor": "#F5F5F9",
      "items": [{}]
    },
    "debug": true
  }
}

dd 模式页面.json 配置

| 字段名 | 类型 | 是否必填 | 作用 | | :----- | ------: | :------: | :------------: | | isPage | boolean | 是 | 标记是否是页面 | | order | number | 否 | 排序值 | | root | string | 否 | 分包 |

wx 模式页面.json 配置

| 字段名 | 类型 | 是否必填 | 作用 | | :-------- | ------: | :------: | :--------------: | | isPage | boolean | 是 | 标记是否是页面 | | order | number | 否 | 排序值 | | author | string | 否 | 作者(谁负责的) | | needLogin | boolean | 否 | 是否必须登录 | | root | string | 否 | 分包 |

作者联系方式