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

ai.touchui-plugin

v1.0.44

Published

TouchUI Component Library for plugin.

Downloads

212

Readme

ai.touchui-plugin

Touchui-plugin 是 touchui 的 插件库

发布

  1. 命令行执行 "npm login" 登录 npmjs 网站的账号
    • 用户名:wadecnchart
    • 密码:输入密码
    • 邮箱:[email protected]
    • 或直接查询 ai.touchui-vue
  2. 命令行执行构建和打包 npm run build
  3. 执行发布命令 npm publish

维护

  1. build:发布、编译脚本
  2. examples:示例、文档等
  3. lib:编译之后生成的
  4. packages:具体开发的组件,一个目录就是一个组件
  5. src
    1. mixins:公共方法
    2. utils:工具类、基类
    3. locale:多语言
    4. adapters:适配
  6. 创建皮肤
    1. 打开 packages/theme/src/less/theme
    2. 复制创建 mytheme.less 与 mytheme-skin.less
    3. 修改 mytheme-skin.less 即可修改色彩配置与间距配置
    4. npm run build:theme 可直接编译出对应的主题文件,编译结果在 lib/theme 中,这样可以直接拷贝到工程 public 目录下去引用(参考信点兵)
    5. 发布并安装新版本后也可以直接引用

更新网站

  1. npm run site
  2. example 下会生成一个 ai.touch-vue 的目录,打包成 zip
  3. 登录主机(115.28.232.97 / nginx)
  4. 进入 html/touchui-vue 目录
  5. 清空目录(rm -rf *)
  6. 上传 zip(rz)
  7. 解压 unzip ai.touchui-vue.zip。解压后会生成 ai.touchui-vue 目录
  8. 将 ai.touchui-vue 目录下的所有文件复制到当前目录 (cp -rf ai.touchui-vue/* ./)
  9. 完成后删除 ai.touchui-vue 和 ai.touchui-vue.zip (rm -rf ai.touchui-vue)

sftp 更新网站

npm run site
cd examples/ai.touchui-vue
sftp [email protected]
cd html/touchui-vue
put -r .

开发组件

  1. 在 packages 里加目录
  2. 配置目录里的内容
  3. 文件中
    1. name:ToImport
    2. componentName:emitter 里要用到的
    3. 根目录:components.json 里配置一个
  4. 在 Examples 里
    1. route.config.js
    2. 加栏目:直接改 header.vue 里的静态数据
    3. nav.config.json 里配置文档菜单
    4. 路由中的 path 是根据配置文件自动生成的,example 里的文件名要跟 path 匹配
    5. 在 demo-block 中可以配置 codepen 引入的资源

编辑器

https://ckeditor.com/ 不支持 IE11 https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editorconfig-EditorConfig.html https://www.tiny.cloud/ 不支持 IE11 https://www.wangeditor.com/ 支持 IE11 https://github.com/hinesboy/mavonEditor 不支持 IE11 https://www.npmjs.com/package/tui-editor 支持 IE11

npm install tui-editor --save --registry=https://registry.npm.taobao.org

更新日志