alitajs / gesture-password Goto Github PK
View Code? Open in Web Editor NEWgesture password(手势密码)
Home Page: https://gesture-password.now.sh
License: MIT License
gesture password(手势密码)
Home Page: https://gesture-password.now.sh
License: MIT License
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
一个包发布成功了。
由于项目紧急,所以手动改了版本号发布
需求如题
$ 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 dev
和 father doc build
都能正常运行。
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!
const [a,setA] = useState(1);
<GesturePassword onChange={()=>{console.log(a);setA(2)}}/>
a 一直是 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.