1.0.3 • Published 9 years ago
hsuting v1.0.3
Something Interesting
This project is used for recording some functions. All file is use babel6 to write. Here is babel setting.
Start
You can copy file you need or use this:
npm install hsutingList
img-resize
- Use to resize image.
- code
import imgResize from 'hsuting/lib/img-resize';
animation
- Use to run animation by javascript.
- It need to use eases.
- code
import animation from 'hsuting/lib/animation';
- Use gmail to send email.
- It need to use nodemailer and nodemailer-smtp-transport.
- code
import email from 'hsuting/lib/email';
get-date
- Get format date.
- code
import getDate from 'hsuting/lib/get-date';
post-server
- Post data to server with
node.js. - It use
httpsmodule to connect server. - code
import postServer from 'hsuting/lib/post-server';
ajax-post
- Post data to server with ajax.
- code
import ajaxPost from 'hsuting/lib/ajax-post';
ajax-get
- Get data from server with ajax.
- code
import ajaxGet from 'hsuting/lib/ajax-get';
layout
- Some layout I use and this is used for
radium. List
Name Usage Grid Gridis parent style ofCellCell This is like layout of mdl. As a result, it have 12,8and6cols indesktop,tabletandphonesize.(Top\Center\Bottom)(Left\Center\Right) This style will decide the layout of this children node. import Layout from 'hsuting/lib/layout';