Permalink
Browse files

init

  • Loading branch information...
0 parents commit e34379e45271ffdfde02c630c50fe2d43701e050 lihongxun committed Oct 12, 2015
Showing with 53,189 additions and 0 deletions.
  1. +9 −0 .gitignore
  2. +1 −0 .jshintignore
  3. +1 −0 CNAME
  4. +153 −0 CONTRIBUTING.md
  5. +335 −0 Gruntfile.js
  6. +20 −0 LICENSE
  7. +9 −0 README.md
  8. +17 −0 _config.yml
  9. +31 −0 bower.json
  10. +92 −0 develop.md
  11. +319 −0 docs/LICENSE
  12. +43 −0 docs/_data/ratchicons.yml
  13. +242 −0 docs/_includes/_components/accordion.html
  14. +96 −0 docs/_includes/_components/actions.html
  15. +248 −0 docs/_includes/_components/bar.html
  16. +178 −0 docs/_includes/_components/buttons.html
  17. +73 −0 docs/_includes/_components/calendar.html
  18. +147 −0 docs/_includes/_components/cards.html
  19. +34 −0 docs/_includes/_components/city-picker.html
  20. +18 −0 docs/_includes/_components/content.html
  21. +414 −0 docs/_includes/_components/forms.html
  22. +59 −0 docs/_includes/_components/grid.html
  23. +42 −0 docs/_includes/_components/icons.html
  24. +227 −0 docs/_includes/_components/infinite-scroll.html
  25. +67 −0 docs/_includes/_components/init.html
  26. +52 −0 docs/_includes/_components/layout.html
  27. +424 −0 docs/_includes/_components/list.html
  28. +781 −0 docs/_includes/_components/modal.html
  29. +133 −0 docs/_includes/_components/panel.html
  30. +190 −0 docs/_includes/_components/photo-browser.html
  31. +160 −0 docs/_includes/_components/picker.html
  32. +340 −0 docs/_includes/_components/popup.html
  33. +162 −0 docs/_includes/_components/pull-to-refresh.html
  34. +102 −0 docs/_includes/_components/push.html
  35. +13 −0 docs/_includes/_components/rem.html
  36. +148 −0 docs/_includes/_components/router.html
  37. +136 −0 docs/_includes/_components/scroller.html
  38. +95 −0 docs/_includes/_components/searchbar.html
  39. +52 −0 docs/_includes/_components/swiper.html
  40. +141 −0 docs/_includes/_components/tabs.html
  41. +29 −0 docs/_includes/_components/themes.html
  42. +32 −0 docs/_includes/_components/type.html
  43. 0 docs/_includes/ad.html
  44. +9 −0 docs/_includes/browser-warning.html
  45. +12 −0 docs/_includes/download-module.html
  46. +15 −0 docs/_includes/footer.html
  47. +10 −0 docs/_includes/ga.html
  48. +19 −0 docs/_includes/header.html
  49. +5 −0 docs/_includes/jump-extends.html
  50. +32 −0 docs/_includes/jump.html
  51. +22 −0 docs/_includes/masthead.html
  52. +21 −0 docs/_includes/toolbar-extends.html
  53. +21 −0 docs/_includes/toolbar.html
  54. +10 −0 docs/_layouts/default.html
  55. +33 −0 docs/_layouts/demo.html
  56. +31 −0 docs/_layouts/docs-demos.html
  57. +27 −0 docs/_layouts/examples.html
  58. +10 −0 docs/_layouts/home.html
  59. +52 −0 docs/about.html
  60. +21 −0 docs/assets/css/demos.css
  61. +1,591 −0 docs/assets/css/docs.css
  62. +6 −0 docs/assets/css/docs.min.css
  63. +66 −0 docs/assets/css/pygments-manni.css
  64. BIN docs/assets/img/apple-touch-icon-114x114.png
  65. BIN docs/assets/img/apple-touch-icon-57x57.png
  66. BIN docs/assets/img/apple-touch-icon-72x72.png
  67. BIN docs/assets/img/device-sprite.png
  68. BIN docs/assets/img/example-android.png
  69. BIN docs/assets/img/example-ios.png
  70. BIN docs/assets/img/example.png
  71. BIN docs/assets/img/slide-1.jpg
  72. BIN docs/assets/img/slide-2.jpg
  73. BIN docs/assets/img/slide-3.jpg
  74. +38 −0 docs/assets/js/baichuan.js
  75. +247 −0 docs/assets/js/demos.js
  76. +224 −0 docs/assets/js/docs.js
  77. +7 −0 docs/assets/js/docs.min.js
  78. +273 −0 docs/assets/js/fingerblast.js
  79. +4 −0 docs/assets/js/widgets.js
  80. +1,588 −0 docs/assets/js/zepto.js
  81. +251 −0 docs/baichuan-portal.html
  82. +127 −0 docs/changelog.html
  83. +68 −0 docs/components.html
  84. +214 −0 docs/demos.html
  85. +19 −0 docs/demos/actions.html
  86. +41 −0 docs/demos/bar/bar-multi.html
  87. +61 −0 docs/demos/bar/index.html
  88. +27 −0 docs/demos/bar/nav-bar-labels.html
  89. +39 −0 docs/demos/bar/nav-bar.html
  90. +16 −0 docs/demos/bar/title-bar-btns.html
  91. +18 −0 docs/demos/bar/title-bar-links.html
  92. +16 −0 docs/demos/bar/title-bar.html
  93. +66 −0 docs/demos/btns.html
  94. +32 −0 docs/demos/calendar.html
  95. +42 −0 docs/demos/card/facebook-card.html
  96. +54 −0 docs/demos/card/index.html
  97. +40 −0 docs/demos/card/list-card.html
  98. +40 −0 docs/demos/card/simple-card.html
  99. +55 −0 docs/demos/card/styled-card.html
  100. +94 −0 docs/demos/card/view-card.html
  101. +35 −0 docs/demos/city-picker.html
  102. +56 −0 docs/demos/colors.html
  103. +33 −0 docs/demos/datetime-picker.html
  104. +104 −0 docs/demos/form/icon-input.html
  105. +40 −0 docs/demos/form/index.html
  106. +104 −0 docs/demos/form/label-input.html
  107. +111 −0 docs/demos/form/layout.html
  108. +39 −0 docs/demos/grid.html
  109. +47 −0 docs/demos/icons.html
  110. +38 −0 docs/demos/infinite-scroll.html
  111. +109 −0 docs/demos/list/check-list.html
  112. +191 −0 docs/demos/list/contacts-list.html
  113. +68 −0 docs/demos/list/index.html
  114. +97 −0 docs/demos/list/inset-list.html
  115. +84 −0 docs/demos/list/mail-list.html
  116. +87 −0 docs/demos/list/simple-list.html
  117. +99 −0 docs/demos/list/songs-list.html
  118. +82 −0 docs/demos/list/view-list.html
  119. +22 −0 docs/demos/modal.html
  120. +20 −0 docs/demos/photo-browser.html
  121. +53 −0 docs/demos/picker.html
  122. +19 −0 docs/demos/preloader.html
  123. +30 −0 docs/demos/pull-to-refresh.html
  124. +18 −0 docs/demos/router.html
  125. +16 −0 docs/demos/router2.html
  126. +47 −0 docs/demos/searchbar.html
  127. +23 −0 docs/demos/swiper.html
  128. +51 −0 docs/demos/tab.html
  129. +17 −0 docs/docs-demos/calendar-inline.html
  130. +30 −0 docs/docs-demos/calendar.html
  131. +105 −0 docs/docs-demos/check-list.html
  132. +31 −0 docs/docs-demos/city-picker.html
  133. +62 −0 docs/docs-demos/colors.html
  134. +31 −0 docs/docs-demos/datetime-picker.html
  135. +38 −0 docs/docs-demos/infinite-scroll.html
  136. +11 −0 docs/docs-demos/js/calendar.js
  137. +8 −0 docs/docs-demos/js/colors.js
  138. +49 −0 docs/docs-demos/js/picker.js
  139. +8 −0 docs/docs-demos/js/toast.js
  140. +88 −0 docs/docs-demos/list.html
  141. +14 −0 docs/docs-demos/one.html
  142. +66 −0 docs/docs-demos/panels.html
  143. +16 −0 docs/docs-demos/photo-browser.html
  144. +49 −0 docs/docs-demos/picker.html
  145. +32 −0 docs/docs-demos/router.html
  146. +18 −0 docs/docs-demos/router2.html
  147. +44 −0 docs/docs-demos/structure.html
  148. +152 −0 docs/docs-demos/theme-dark.html
  149. +16 −0 docs/docs-demos/toast.html
  150. +14 −0 docs/docs-demos/two.html
  151. +60 −0 docs/examples.html
  152. +5 −0 docs/examples/app-android-notes/css/app.css
  153. +146 −0 docs/examples/app-android-notes/index.html
  154. +12 −0 docs/examples/app-ios-mail/css/app.css
  155. +118 −0 docs/examples/app-ios-mail/inbox.html
  156. +98 −0 docs/examples/app-ios-mail/index.html
  157. +85 −0 docs/examples/app-movies/choose-theater.html
  158. +10 −0 docs/examples/app-movies/css/app.css
  159. BIN docs/examples/app-movies/img/argo.png
  160. BIN docs/examples/app-movies/img/ralph.png
  161. BIN docs/examples/app-movies/img/skyfall.png
  162. +170 −0 docs/examples/app-movies/index.html
  163. +96 −0 docs/examples/baichuan/css/app.css
  164. +152 −0 docs/examples/baichuan/detail.html
  165. +120 −0 docs/examples/baichuan/goods.html
  166. +128 −0 docs/examples/baichuan/home.html
  167. +67 −0 docs/examples/baichuan/index.html
  168. +33 −0 docs/examples/baichuan/js/app.js
  169. +97 −0 docs/examples/baichuan/settings.html
  170. +93 −0 docs/examples/getting-started/index.html
  171. +43 −0 docs/extends.html
  172. BIN docs/favicon.ico
  173. +157 −0 docs/getting-started.html
  174. BIN docs/img/docs-ptr-demo.gif
  175. +47 −0 docs/index.html
  176. +9 −0 docs/robots.txt
  177. +22 −0 docs/sitemap.xml
  178. +68 −0 docs/template.html
  179. BIN fonts/ratchicons.eot
  180. +61 −0 fonts/ratchicons.svg
  181. BIN fonts/ratchicons.ttf
  182. BIN fonts/ratchicons.woff
  183. +37 −0 grunt/ratchicons-data-generator.js
  184. BIN img/i-f7.png
  185. BIN img/i-form-calendar.png
  186. BIN img/i-form-comment.png
  187. BIN img/i-form-email.png
  188. BIN img/i-form-gender.png
  189. BIN img/i-form-name.png
  190. BIN img/i-form-password.png
  191. BIN img/i-form-settings.png
  192. BIN img/i-form-tel.png
  193. BIN img/i-form-toggle.png
  194. BIN img/i-form-url.png
  195. BIN img/i-list-chevron-right.png
  196. BIN img/i-sortable-handler.png
  197. +38 −0 js/.jscsrc
  198. +14 −0 js/.jshintrc
  199. +77 −0 js/accordion.js
  200. +864 −0 js/calendar.js
  201. +13,279 −0 js/city-data.js
  202. +119 −0 js/city-picker.js
  203. +104 −0 js/datetime-picker.js
  204. +75 −0 js/detect.js
  205. +104 −0 js/device.js
  206. +837 −0 js/fastclick.js
  207. +55 −0 js/infinite-scroll.js
  208. +65 −0 js/init.js
  209. +17 −0 js/intro.js
  210. +2,103 −0 js/iscroll.js
  211. +630 −0 js/modal.js
  212. +11 −0 js/page.js
  213. +321 −0 js/panels.js
  214. +614 −0 js/photo-browser.js
  215. +629 −0 js/picker.js
  216. +94 −0 js/pull-to-refresh-js-scroll.js
  217. +220 −0 js/pull-to-refresh.js
  218. +698 −0 js/push.js
  219. +305 −0 js/router.js
  220. +288 −0 js/scroller.js
  221. +18 −0 js/searchbar.js
  222. +152 −0 js/sortable.js
  223. +52 −0 js/swiper-init.js
  224. +2,706 −0 js/swiper.js
  225. +97 −0 js/tabs.js
  226. +422 −0 js/template7.js
  227. +68 −0 js/tests/index.html
  228. +5 −0 js/tests/unit/.jshintrc
  229. +72 −0 js/tests/unit/phantom.js
  230. +80 −0 js/tests/unit/tabs.js
  231. +4 −0 js/tests/vendor/jquery.min.js
  232. +237 −0 js/tests/vendor/qunit.css
  233. +2,495 −0 js/tests/vendor/qunit.js
  234. +1,588 −0 js/tests/vendor/zepto.js
  235. +24 −0 js/util.js
  236. +263 −0 js/zepto-adapter.js
  237. +301 −0 less/.csscomb.json
  238. +16 −0 less/.csslintrc
  239. +116 −0 less/accordion.less
  240. +19 −0 less/badges.less
  241. +253 −0 less/bars.less
  242. +113 −0 less/base.less
  243. +194 −0 less/buttons.less
  244. +179 −0 less/calendar.less
  245. BIN less/calendar.zip
  246. +146 −0 less/cards.less
  247. +85 −0 less/colors.less
  248. +58 −0 less/content-block.less
  249. +22 −0 less/demos.less
  250. +383 −0 less/docs-baichuan.less
  251. +1,336 −0 less/docs.less
  252. +48 −0 less/fonts.less
  253. +258 −0 less/forms.less
  254. +84 −0 less/grid.less
  255. +83 −0 less/icons.less
  256. +8 −0 less/infinite.less
  257. +392 −0 less/lists.less
  258. +308 −0 less/mixins.less
  259. +526 −0 less/modal.less
  260. +424 −0 less/normalize.less
  261. +99 −0 less/pages.less
  262. +101 −0 less/panels.less
  263. +281 −0 less/photo-browser.less
  264. +143 −0 less/picker.less
  265. +34 −0 less/preloader.less
  266. +79 −0 less/pull-to-refresh.less
  267. +62 −0 less/push.less
  268. +29 −0 less/rem.less
  269. +10 −0 less/scroller.less
  270. +92 −0 less/searchbar.less
  271. +9 −0 less/sm-extend.less
  272. +42 −0 less/sm.less
  273. +344 −0 less/swiper.less
  274. +26 −0 less/tabs.less
  275. +25 −0 less/text.less
  276. +357 −0 less/themes.less
  277. +75 −0 less/variables.less
  278. +50 −0 package.json
@@ -0,0 +1,9 @@
+*.swp
+*.swo
+node_modules
+dist/
+.package/
+.sass-cache/
+.DS_Store
+_site/*
+*.orig
@@ -0,0 +1 @@
+js/iscroll.js
@@ -0,0 +1 @@
+goratchet.com
@@ -0,0 +1,153 @@
+# Contributing to Ratchet
+
+## Types of issues
+
+The GitHub issue tracker should only be used for one of the
+following:
+
++ **Bugs** — when a feature of the project has been _identified as
+ broken_.
+
++ **Feature requests** — when you ask for a _new feature_ to be added to a
+ project.
+
++ **Contribution enquiries** — when you want to discuss whether a _new
+ feature_ or _change_ would be accepted in a project before you begin
+ development work on it.
+
+These are some things that don't belong in the issue tracker:
+
++ **Please avoid personal support requests.** We cannot
+ provide personal support for implementation issues. The best place for help
+ is generally going to be StackOverflow, Twitter, IRC, etc.
+
++ **Please avoid derailing issues.** Keep the discussion on topic and respect
+ the opinions of others.
+
+## Bugs
+
+A bug is a _demonstrable problem_ that is caused by the code in the
+repository.
+
+If you've come across a problem with the code and you're letting us know about
+it, _thank you_. We appreciate your time and the effort you're making to help
+improve the code for everyone else!
+
+Please read the following guidelines for reporting bugs:
+
+1. **Use the GitHub issue search** — check if the issue has already been
+ reported. If it has been, please comment on the existing issue.
+
+2. **Check if the issue has been fixed** — the latest `master` or
+ development branch may already contain a fix.
+
+3. **Isolate the demonstrable problem** — make sure that the code in the
+ project's repository is _definitely_ responsible for the issue. Create a
+ [reduced test case](http://css-tricks.com/6263-reduced-test-cases/) - an
+ extremely simple and immediately viewable example of the issue.
+
+4. **Include a live example** — provide a link to your reduced test case
+ when appropriate (e.g. if the issue is related to front-end technologies).
+ Please use [jsFiddle](http://jsfiddle.net) to host examples.
+
+Please try to be as detailed as possible in your report too. What is your
+environment? What steps will reproduce the issue? What browser(s) and OS
+experience the problem? What would you expect to be the outcome? All these
+details will help me and others to assess and fix any potential bugs.
+
+### Example of a good bug report
+
+> Short and descriptive title
+>
+> A summary of the issue and the browser/OS environment in which it occurs. If
+> suitable, include the steps required to reproduce the bug.
+>
+> 1. This is the first step
+> 2. This is the second step
+> 3. Further steps, etc.
+>
+> `<url>` - a link to the reduced test case
+>
+> Any other information you want to share that is relevant to the issue being
+> reported. This might include the lines of code that you have identified as
+> causing the bug, and potential solutions (and your opinions on their
+> merits).
+
+A good bug report shouldn't leave us needing to chase you up to get further
+information that is required to assess or fix the bug.
+
+## Feature requests
+
+Feature requests are welcome! Please provide links to examples or articles that
+help to illustrate the specifics of a feature you're requesting. The more
+detail, the better. It will help us to decide whether the feature is something I
+agree should become part of the project.
+
+## Contribution enquiries
+
+Contribution enquiries should take place before any significant pull request,
+otherwise you risk spending a lot of time working on something that we might not
+want to pull into the repository.
+
+In this regard, some contribution enquires may be feature requests that you
+would like to have a go at implementing yourself if they are wanted. Other
+enquiries might revolve around refactoring code or porting a project to
+different languages.
+
+## Pull requests
+
+Good pull requests - patches, improvements, new features - are a fantastic
+help.
+
+If you've spotted any small, obvious errors and want to help out by patching it,
+that will be much appreciated.
+
+If your contribution involves a significant amount of work or substantial
+changes to any part of the project, please open a "contribution enquiry" issue
+first to check that the work is wanted or matches the goals of the project.
+
+All pull requests should remain focused in scope and avoid containing unrelated
+commits.
+
+Please follow this process; it's the best way to get your work included in the
+project:
+
+1. [Fork](https://github.com/twbs/ratchet/fork) the project.
+
+2. Clone your fork (`git clone
+ git@github.com:<your-username>/<repo-name>.git`).
+
+3. Add an `upstream` remote (`git remote add upstream
+ git://github.com/<upsteam-owner>/<repo-name>.git`).
+
+4. Get the latest changes from upstream (e.g. `git pull upstream
+ <dev-branch>`).
+
+5. Create a new topic branch to contain your feature, change, or fix (`git
+ checkout -b <topic-branch-name>`).
+
+6. Make sure that your changes adhere to the current coding conventions used
+ throughout the project - indentation, accurate comments, etc.
+
+7. Commit your changes in logical chunks; use git's [interactive
+ rebase](https://help.github.com/articles/interactive-rebase) feature to tidy
+ up your commits before making them public. Please adhere to these [git commit
+ message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
+ or your pull request is unlikely be merged into the main project.
+
+8. Locally merge (or rebase) the upstream branch into your topic branch.
+
+9. Push your topic branch up to your fork (`git push origin
+ <topic-branch-name>`).
+
+10. [Open a Pull Request](http://help.github.com/send-pull-requests/) with a
+ clear title and description. Please mention which browsers you tested in.
+
+If you have any other questions about contributing, please feel free to contact
+us.
+
+**Don't edit files in `dist/`.** You should edit files in `sass/` and `js/`.
+
+## Special thanks to @necolas
+
+For writing the original [issue-guidelines](https://github.com/necolas/issue-guidelines/) from which these were adapted.
Oops, something went wrong.

0 comments on commit e34379e

Please sign in to comment.