GithubHelp home page GithubHelp logo

alitajs / gesture-password Goto Github PK

View Code? Open in Web Editor NEW
30.0 17.0 8.0 2.12 MB

gesture password(手势密码)

Home Page: https://gesture-password.now.sh

License: MIT License

JavaScript 0.97% TypeScript 88.34% Shell 0.27% Vue 10.43%
component alita gesture-password vue-component react-component

gesture-password's Introduction

Gesture Password (手势密码)

The gesture password repo contains three packages: @alitajs/gesture-password (native version), @alitajs/gesture-password-react (react version), and @alitajs/gesture-password-vue (vue version). You can install the corresponding version as required

✨ 特性

  • 💻 使用 TypeScript 编写,提供完善的类型定义
  • 🚀 小巧,不到 10K 大小,Gzip 压缩后不到 3K
  • 📦 提供cjsesumd三种格式
  • 🎉 提供VueReact组件包

🏗 安装

# 原生
yarn add @alitajs/gesture-password

# react
yarn add @alitajs/gesture-password-react

# vue
yarn add @alitajs/gesture-password-vue

📝 文档

https://gesture-password.now.sh

👀 Demo

examples

🌟 社区互助

Github Issue 钉钉群 微信群
issues

gesture-password's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gesture-password's Issues

多包发布的时候出错

lerna WARN lifecycle Skipping root "publish" because it has already been called
lerna WARN lifecycle Skipping root "postpublish" because it has already been called
lerna http fetch PUT 200 https://registry.npmjs.org/@alitajs%2fgesture-password-vue 3323ms
Successfully published:
 - @alitajs/[email protected]
 - @alitajs/[email protected]
 - @alitajs/[email protected]
lerna success published 3 packages
✨  Done in 37.42s.

三个包提示成功,实际上只有 gesture-password-vue 一个包发布成功了。
由于项目紧急,所以手动改了版本号发布

Touch events on non native touch devices

Hi,
I have desktop monitor with additional touch capabilities. I use your plugin gesture-password-vue to develop touch UI.
This condition is false in my environment:
if ('ontouchstart' in document.documentElement)
and plugin doesn't work correctly...

But my OS API can handle touch events... Can you please remove this condition and always fire up all types of events: touch and mouse. Something like:
// touch
this.el.addEventListener('touchstart', touchstartFun, false);
this.el.addEventListener('touchmove', touchmoveFun, false);
this.el.addEventListener('touchend', touchendFun, false);
// mouse
this.el.addEventListener('mousedown', touchstartFun, false);
this.el.addEventListener('mousemove', touchmoveFun, false);
this.el.addEventListener('mouseup', touchendFun, false);

Thank you in advance!

执行打包错误

$ yarn build
yarn run v1.9.4
$ father build
Clean dist directory
Build cjs with rollup
✖  error     SyntaxError: /Users/xiaohuoni/react-gesture-password/src/GesturePassword.ts: Unexpected token (1:17) 

> 1 | export interface GesturePasswordProps {
    |                  ^
  2 |     id?: string;
  3 |     el?: HTMLElement;
  4 |     context?: CanvasRenderingContext2D;
    at Object.raise (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:6930:17)
    at Object.unexpected (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:8323:16)
    at Object.parseExportFrom (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:11819:14)
    at Object.parseExport (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:11681:12)
    at Object.parseStatementContent (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:10715:27)
    at Object.parseStatement (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:10611:17)
    at Object.parseBlockOrModuleBlockBody (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:11187:25)
    at Object.parseBlockBody (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:11174:10)
    at Object.parseTopLevel (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:10542:10)
    at Object.parse (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:12051:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

father doc devfather doc build 都能正常运行。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.