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

blank-example

v1.0.1

Published

一个后台集成解决方案,它基于 [vue](https://github.com/vuejs/vue) 和 [element](https://github.com/ElemeFE/element)。它使用了最新的前端技术栈,动态路由,权限验证,提供了丰富的功能组件。

Downloads

4

Readme

简介

一个后台集成解决方案,它基于 vueelement。它使用了最新的前端技术栈,动态路由,权限验证,提供了丰富的功能组件。

前序准备

你需要在本地安装 nodegit。本项目技术栈基于 ES2015+vuevuexvue-routeraxioselement-ui,提前了解和学习这些知识会对使用本项目有很大的帮助。

开发

# 克隆项目
git clone http://47.106.167.226:3000/blank/example-admin.git

# 安装依赖
npm install --registry=https://registry.npm.taobao.org

# 启动服务
npm run dev

浏览器访问 http://localhost:8090

发布

# 构建生产环境
npm run build

# 带分析的打包方式
npm run build --report

说明

  • 后端请求接口统一在src/services里,可以参考原有接口格式开发
  • 页面统一在src/views里
  • 封装了ajax的前置和后置拦截器进行权限检查和返回提示消息,详细内容参考utils/request.js
  • 开发期间使用了webpack的反向代理解决跨域,详细内容参考config/index.js
  • 按钮权限使用了vue指令方式开发,详细内容参考main.js里has指令
  • 可以使用scss或者css编写样式
  • 页面权限使用了vue-router路由表meta参数里的roles

#####示例如下

{
      path: 'user',
      component: () => import('@/views/user/list'),
      name: '用户',
      meta: {
        title: '用户',
        icon: 'user',
        roles: ['user:list']
      }
    }

其它

以下内容为可选操作,更加方便开发

  • IDEA 选择File->Settings->Webpack 选择webpack configuration file为项目下的build\webpack.base.conf.js
  • IDEA 安装 Vue.js Plugin
  • IDEA 选择File->Settings->EsLint 将enable 去掉

将来实现

  • 从后端直接加载动态路由
  • 自动生成VUE代码拆分模块
  • cdn 和import引入并存配置
  • 补上前端校验逻辑
  • 跳转回登陆前页面
  • 自动生成代码加入导出Excel

Browsers support

Modern browsers and Internet Explorer 10+.

| IE / Edge | Firefox | Chrome | Safari | | --------- | --------- | --------- | --------- | | IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions