easywebapp / web-utility Goto Github PK
View Code? Open in Web Editor NEWWeb front-end toolkit based on TypeScript
Home Page: https://web-cell.dev/web-utility/
Web front-end toolkit based on TypeScript
Home Page: https://web-cell.dev/web-utility/
Lines 25 to 31 in e3a97d9
In toCamelCase, I cann't convert to 'asa sasa' to 'asaSasa'
data.ts:32
maybe we can polish the pattern of the regExp
return raw.replace(/^[a-z]|-[a-z]|\s+[a-z]/g, (match, offset)
In formToJSON, when there's only one radio or checkbox for a name(acting as a switch), and if that radio/checkbox is not checked, there would be no such field in the return json object.
So if user turn off a switch when updating a form, it would not work, the field would still be on.
behavior Optional
Defines the transition animation. One of auto or smooth. Defaults to auto.
block Optional
Defines vertical alignment. One of start, center, end, or nearest. Defaults to start.
inline Optional
Defines horizontal alignment. One of start, center, end, or nearest. Defaults to nearest.
In toHyphenCase, I cann't convert to 'socia media' to 'socia-media'
data.ts:32
maybe we can polish the pattern of the regExp
function toHyphenCase(raw:string) {
return raw.replace(
/[A-Z]+|[^A-Za-z][A-Za-z]/g,
(match, offset) => `${offset ? '-' : ''}${(match[1]||match[0]).toLowerCase()}`
);
}
When I use https://github.com/idea2app/REST-Node-ts npm install
error message:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @idea2app/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/typescript
npm ERR! dev typescript@"~5.1.6" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer typescript@"^4.1.0" from [email protected]
npm ERR! node_modules/web-utility
npm ERR! web-utility@"^4.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution
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.