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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@doxlab/atomleaf

v0.5.0

Published

atom ui lib

Readme

AtomLeaf 管理后台原子组件

@doxlab/atomleaf

豆壳框架的管理后台基础组件库。包含支持JWT的Axios库,CURD逻辑库,基本的界面组件,基本业务功能组件。开箱即用,提升开发效率。

主要组件:

  • 封装支持JWT的Http请求
  • 常用的函数库
  • CURD逻辑库
  • CURD界面组件: CURD表格,CURD列表,CURD树状列表等等
  • 其他常用组件
  • 角色用户功能:用户管理、角色管理、组织架构管理
  • 基础业务功能:代码表、链接、分类

使用

引入atomleaf包:

npm install @doxlab/atomleaf

在应用的入口文件main.js中设置http的baseUrl:

import http from "@doxlab/atomleaf/lib/http"

const baseUrl = process.env.NODE_ENV === 'development' ? config.baseUrl.dev : config.baseUrl.pro
http.setBaseUrl(baseUrl)

在store中注册模块:

import App from "@doxlab/atomleaf/module/app"
import User from "@doxlab/atomleaf/module/user"
import Role from "@doxlab/atomleaf/module/role"
import Org from "@doxlab/atomleaf/module/org"
import Code from "@doxlab/atomleaf/module/code"
import Link from "@doxlab/atomleaf/module/link"


const store = new Vuex.Store({
  state: {
    //
  },
  mutations: {
    //
  },
  actions: {
    //
  },
  modules: {
    //......
    App,
    User,
    Role,
    Link,
    Code,
    Org,
  // ......
  },
  plugins: [
    createVuexAlong({
      name: config.name,
      local: {
        list: ["App", "User", "Role"],
        isFilter: false,
      },
    }),
  ],
});

路由中注册业务功能界面:

      {
        path: "user",
        name: "SystemUser",
        component: () => import("@doxlab/atomleaf/view/user/list.vue"),
      },

      {
        path: "role",
        name: "SystemRole",
        component: () => import("@doxlab/atomleaf/view/role/list.vue"),
      },
      {
        path: "link",
        name: "SystemLink",
        component: () => import("@doxlab/atomleaf/view/link/list.vue"),
      },
      {
        path: "org",
        name: "SystemOrg",
        component: () => import("@doxlab/atomleaf/view/org/list.vue"),
      },
      {
        path: "code",
        name: "SystemCode",
        component: () => import("@doxlab/atomleaf/view/code/list.vue"),
      },

测试开发时引入atomleaf包

从Gitee仓库克隆下gitee.com/doxlab/atomleaf项目。

进入atomleaf项目目录后:

npm link

然后在需要引入atomleaf的项目中执行命令:

npm link @doxlab/atomleaf