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

vue-cli-plugin-ruoyi

v1.0.4

Published

vue cli plugin customized for ruoyi ui

Downloads

248

Readme

目录

演示

若依配置界面

若依API视图

开始使用

从零新建项目

vue create --preset srhinee/vue-cli-plugin-ruoyi {project_name}

从已创建项目开始

:bangbang:安装插件后会根据若依模板重新覆盖项目文件!!!

下载插件

# NPM
npm install --save-dev vue-cli-plugin-ruoyi
# Yarn
yarn add -D vue-cli-plugin-ruoyi

命令行安装

vue add vue-cli-plugin-ruoyi

UI安装

vue ui开启vue-cli面板,进入项目控制台,搜索vue-cli-plugin-ruoyi安装即可

介绍

生成代码

插件在安装时会调用generator api来生成若依项目的前端代码,免去每次手动拉取若依仓库创建项目,并且在项目生成时对项目代码做一些定制化设定,生成代码时会有以下选项:

关于若依的介绍见详情

  • 是否可以通过点击 modal 关闭 Dialog? 默认为true,选择false则若依项目的所有模态框只能通过关闭按钮来关闭
  • 是否添加表单模板? 默认false,用于生成中台通用增删改查表单根组件.

若依配置界面

setting tab

  • global group,对应src/setting.js下的配置,若依的一些全局设置.
  • proxy group,对应vue.js.config下的devServer配置,对应dev环境下本地代理服务器的选项.

environment tab

  • development group,对应.env.development环境配置文件.
  • production group,对应.env.production环境配置文件.
  • staging group,对应.env.staging环境配置文件.

API VIEW

这里展示了若依项目下api文件夹下所有的请求文件信息,类似于swagger-ui,可以在这里速览你项目中的请求信息,对有大量接口的项目来说比较有用.

src/api/login.js中有如下代码:

// 登录方法
export function login(username, password, code, uuid) {
  const data = {
    username,
    password,
    code,
    uuid
  }
  return request({
    url: '/login',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

:point_down:是此接口信息的界面 img.png 以下是一些字段解释:

  • ID 该方法函数名
  • parameter 方法接收的参数
  • line 方法在文件中起始行数
  • headers 请求头携带字段
  • data 请求body体携带数据
  • params 请求url携带数据

致谢