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

@hexinfo/ares-ui

v5.16.0-beta

Published

## 安装依赖 ``` npm -g install yarn

Downloads

16

Readme

Ares

goframe admin ui library

安装依赖

npm -g install yarn

yarn install

本地运行

npm run serve

编译打包

npm run build

生成API

  1. 需启动后台服务
  2. 确认API文档路径(package.json -> scripts -> api)配置正确
npm run api

开发使用debugger、console

package.json配置

"rules": {
  "no-debugger": 0,
  "no-console": 0
}

IE兼容性

vue.config.js配置

# 打包的时候vue.js、vue-router.js排除在外,然后再index.html里面单独引用
configureWebpack:{
    externals: {
        'vue': 'Vue',
        'vue-router': 'VueRouter'
    }
},

# babel配置,node_module模块非es5语法转成es5语法
transpileDependencies:[
    "@hex/gf-ui",
    "sm-crypto"
]

vue-grid-layout 存在拉取无法拖拽到尾部情况处理

注意:只能在组中项目使用,否则容易报错 参考:手动修复npm中bug 安装patch-package

yarn add patch-package -D

package.json 下修改

//添加postinstall
"scripts": {
    "postinstall": "patch-package"
  }

常见目录patches/vue-grid-layout+2.4.0.patch,代码如下

diff --git a/node_modules/vue-grid-layout/dist/vue-grid-layout.common.js b/node_modules/vue-grid-layout/dist/vue-grid-layout.common.js
index c25562f..d9f203a 100644
--- a/node_modules/vue-grid-layout/dist/vue-grid-layout.common.js
+++ b/node_modules/vue-grid-layout/dist/vue-grid-layout.common.js
@@ -12243,7 +12243,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
      * @return {Object} x and y in grid units.
      */
     // TODO check if this function needs change in order to support rtl.
-    calcXY: function calcXY(top, left) {
+    calcXY: function calcXY(top, left,width,height) {
       var colWidth = this.calcColWidth(); // left = colWidth * x + margin * (x + 1)
       // l = cx + m(x+1)
       // l = cx + mx + m
@@ -12255,8 +12255,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
       var x = Math.round((left - this.margin[0]) / (colWidth + this.margin[0]));
       var y = Math.round((top - this.margin[1]) / (this.rowHeight + this.margin[1])); // Capping
 
-      x = Math.max(Math.min(x, this.cols - this.innerW), 0);
-      y = Math.max(Math.min(y, this.maxRows - this.innerH), 0);
+      const _width  = width||this.innerW
+                const _height  = height|| this.innerH
+                x = Math.max(Math.min(x, this.cols - _width), 0);
+                y = Math.max(Math.min(y, this.maxRows - _height), 0);
       return {
         x: x,
         y: y