diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..aef6648 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,18 @@ +Please prefix your issue with one of the following: **[BUG]** **[PROPOSAL]** **[QUESTION]**. + +**In raising this issue, I confirm the following (please check boxes):** + +- [ ] I have read and understood the contributors guide. +- [ ] I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present. +- [ ] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion. + +**My familiarity with the project is as follows (check one):** + +- [ ] I have never used the project. +- [ ] I have used the project briefly. +- [ ] I have used the project extensively, but have not contributed previously. +- [ ] I am an active contributor to the project. + +--- + +{issue content here} diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..192c0d1 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,20 @@ +Please prefix your pull request with one of the following: **[FEATURE]** **[FIX]** **[IMPROVEMENT]**. + +**In raising this pull request, I confirm the following (please check boxes):** + +- [ ] I have read and understood the contributors guide. +- [ ] I have checked that another pull request for this purpose does not exist. +- [ ] I have considered, and confirmed that this submission will be valuable to others. +- [ ] I accept that this submission may not be used, and the pull request closed at the will of the maintainer. +- [ ] I give this submission freely, and claim no ownership to its content. + +**My familiarity with the project is as follows (check one):** + +- [ ] I have never used the project. +- [ ] I have used the project briefly. +- [ ] I have used the project extensively, but have not contributed previously. +- [ ] I am an active contributor to the project. + +--- + +{pull request content here} diff --git a/.gitignore b/.gitignore index e69de29..0d20b64 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6b29619 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +sudo: true + +language: python +python: + - "3.3" + +# command to install dependencies +#install: "pip install -r requirements.txt" +# command to run tests +script: python tests/test.py diff --git a/Preferences.sublime-settings b/Preferences.sublime-settings new file mode 100644 index 0000000..71ded4e --- /dev/null +++ b/Preferences.sublime-settings @@ -0,0 +1,3 @@ +{ + "word_separators": "/\\()\"'-:,;><~!@#$%^&*|+=[]{}`~?" +} diff --git a/README.md b/README.md index f5310f5..37d5858 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,66 @@ # Front-end Project Snippets -[![licence mit](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/LICENSE.md) -[![issues](https://img.shields.io/github/issues/brazilian-dev/sublime-front-end-snippets.svg)](https://github.com/brazilian-dev/sublime-front-end-snippets/issues) +[![licence mit](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](http://hemersonvianna.mit-license.org/) +[![GitHub issues](https://img.shields.io/github/issues/w3dotdev/sublime-front-end-snippets.svg)](https://github.com/w3dotdev/sublime-front-end-snippets/issues) +![GitHub Release Date](https://img.shields.io/github/release-date/w3dotdev/sublime-front-end-snippets.svg) +![GitHub top language](https://img.shields.io/github/languages/top/w3dotdev/sublime-front-end-snippets.svg) +![GitHub repo size](https://img.shields.io/github/repo-size/w3dotdev/sublime-front-end-snippets.svg) +![GitHub All Releases](https://img.shields.io/github/downloads/w3dotdev/sublime-front-end-snippets/total.svg) +[![Travis](https://img.shields.io/travis/w3dotdev/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/w3dotdev/sublime-front-end-snippets) +[![Package Control](https://img.shields.io/packagecontrol/dt/Front-end%20Project%20Snippets.svg?style=flat-square)](https://packagecontrol.io/packages/Front-end%20Project%20Snippets) + +![animation](https://cloud.githubusercontent.com/assets/1963897/12625364/a94decc8-c51a-11e5-8546-ca331af65982.gif) + +## Translations + +* [Portuguese - Brazil](translations/pt_BR) ## Install -If you already have the [Package Control](http://wbond.net/sublime_packages/package_control) installed , just search for ***Front-end Project Snippets***. If you have not installed in the sublime, you can do it [here](http://wbond.net/sublime_packages/package_control/installation). +If you already have the [Package Control](http://wbond.net/sublime_packages/package_control) installed , just search for `Front-end Project Snippets`. If you have not installed in the Sublime, you can do it [here](http://wbond.net/sublime_packages/package_control/installation). -You can manually download the package and place it within your `Packages` directory. It will work, but will not be updated automatically. +You can manually download the package and place it within your `Packages` directory. It will work, but it will not be automatically updated. -You can see all installed snippets in `Tools > Snippets...`, in the sublime text. +You can see all installed snippets in `Tools > Snippets...`, in the Sublime Text. + +[Tested on windows] When the "."(dot) is used, the autocomplete disappears.. Solve this problem, just put in your user `Preferences > Settings - User`, the property `word_separators` with value without the "."(dot). You can see an example [here](Preferences.sublime-settings). ## Snippets and prefixes/keys -- [HTML - h*](snippets/html/) +- [HTML - h.*](snippets/html/) - [Microdata - hm.*](snippets/html/schema/microdata) -- [CSS - c*](snippets/css/) -- [JavaScript - j*](snippets/js/vanilla) - - [BDD - b*](snippets/js/bdd) - - [jQuery - jq*](snippets/js/jquery) -- Schema.org - - [Microdata](snippets/schema/microdata) -- [External - e*](snippets/external/) + - [WAI-ARIA - hw.*](snippets/html/wai-aria) +- [CSS - c.*](snippets/css/) +- [JavaScript - j.*](snippets/js/vanilla) + - [EcmaScript 2015 - je.*](snippets/js/es6/) + - [Libraries](snippets/js/libraries) + - [jQuery - jq.*](snippets/js/libraries/jquery) + - [React - jr.*](snippets/js/libraries/react) + - [Patterns](snippets/js/patterns) + - [Design Patterns - jdp.*](snippets/js/patterns/design-patterns) + - [UMD - jumd.*](snippets/js/patterns/umd) + - [Tests](snippets/js/tests) + - [Common - t.*](snippets/js/tests/common) + - [Chai - tc.*](snippets/js/tests/chai) + - [Jasmine - tj.*](snippets/js/tests/jasmine) + - [Mocha - tm.*](snippets/js/tests/mocha) + - [Node - tn.*](snippets/js/tests/node) + - [QUnit - tq.*](snippets/js/tests/qunit) + - [Sinon - ts.*](snippets/js/tests/sinon) +- [Regex](snippets/regex/) +- [Schema.org](snippets/schema) + - [JSON-LD - sj.*](snippets/schema/json-ld) + - [Microdata - sm.*](snippets/schema/microdata) + - [RDFa - sr.*](snippets/schema/rdfa) +- [External - e.*](snippets/external/) - [Comment](snippets/comment/) - - [HTML - xh*](snippets/comment/html) - - [CSS - xc*](snippets/comment/css) - - [JavaScript - xj*](snippets/comment/js) + - [HTML - hc.*](snippets/comment/html) + - [CSS - cc.*](snippets/comment/css) + - [JavaScript - jc.*](snippets/comment/js) - [Structure data](snippets/structured-data) (***examples***) - - [Microdata - zmicrodata](snippets/structured-data/microdata) - - [JSON-LD - zjsonld](snippets/structured-data/json-ld) - - [RDFa - zrdfa](snippets/structured-data/rdfa) + - [Microdata - z.microdata](snippets/structured-data/microdata) + - [JSON-LD - z.jsonld](snippets/structured-data/json-ld) + - [RDFa - z.rdfa](snippets/structured-data/rdfa) ## References @@ -39,10 +70,16 @@ You can see all installed snippets in `Tools > Snippets...`, in the sublime text [https://github.com/zenorocha/sublime-javascript-snippets](https://github.com/zenorocha/sublime-javascript-snippets) * [@joshnh](https://github.com/joshnh) (Joshua Hibbert) [https://github.com/joshnh/CSS-Snippets](https://github.com/joshnh/CSS-Snippets) -* [@joshnh](https://github.com/joshnh) (Joshua Hibbert) - [https://github.com/joshnh/HTML-Snippets](https://github.com/joshnh/HTML-Snippets) -* [http://schema.org/](http://schema.org/) -* [https://api.jquery.com/](https://api.jquery.com/) +* (Schema.org) [http://schema.org/](http://schema.org/) +* (jQuery) [https://api.jquery.com/](https://api.jquery.com/) +* (jQuery Boilerplate)[https://jqueryboilerplate.com/](https://jqueryboilerplate.com/) +* (JSDuck) [https://github.com/senchalabs/jsduck](https://github.com/senchalabs/jsduck) +* (idiomatic CSS) [https://github.com/necolas/idiomatic-css](https://github.com/necolas/idiomatic-css) +* (JS Design Patterns) [https://addyosmani.com/resources/essentialjsdesignpatterns/book/](https://addyosmani.com/resources/essentialjsdesignpatterns/book/) +* (Node.js Assert) [https://nodejs.org/api/assert.html](https://nodejs.org/api/assert.html) +* (Jasmine) [http://jasmine.github.io/2.0/introduction.html](http://jasmine.github.io/2.0/introduction.html) +* (ReactJS cheatsheet) [http://reactcheatsheet.com/](http://reactcheatsheet.com/) +* (ES6 Features) [https://github.com/lukehoban/es6features#readme](https://github.com/lukehoban/es6features#readme) ## Contributing @@ -54,7 +91,7 @@ You can see all installed snippets in `Tools > Snippets...`, in the sublime text ## Log -Check [Releases](https://github.com/brazilian-dev/sublime-front-end-snippets/releases) for detailed changelog. +Check [Releases](https://github.com/w3dotdev/sublime-front-end-snippets/releases) for detailed changelog. ## License diff --git a/messages/install.txt b/messages/install.txt index a489447..6dc8f1a 100644 --- a/messages/install.txt +++ b/messages/install.txt @@ -3,26 +3,6 @@ Front-end Project Snippets You can see all installed snippets in Tools > Snippets... . -Snippets: -- HTML - - Microdata -- CSS -- JavaScript - - BDD - - jQuery -- Schema.org - - Microdata -- External -- Comment - - HTML - - CSS - - JavaScript -- Structure data (examples) - - Microdata - - JSON-LD - - RDFa - - To find out more checkout the readme at https://github.com/brazilian-dev/sublime-front-end-snippets Report issues at https://github.com/brazilian-dev/sublime-front-end-snippets/issues diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/snippets.json b/snippets.json new file mode 100644 index 0000000..a103015 --- /dev/null +++ b/snippets.json @@ -0,0 +1,3222 @@ +[ + { + "description": "cc - Basic Comment", + "id": 1, + "trigger": "cc.basic" + }, + { + "description": "cc - Block Comment", + "id": 2, + "trigger": "cc.block" + }, + { + "description": "cc - Section Comment", + "id": 3, + "trigger": "cc.section" + }, + { + "description": "cc - Sub-section Comment", + "id": 4, + "trigger": "cc.subsection" + }, + { + "description": "hc - Basic Comment", + "id": 5, + "trigger": "hc.basic" + }, + { + "description": "hc - Block Comment", + "id": 6, + "trigger": "hc.block" + }, + { + "description": "hc - Conditional Comment", + "id": 7, + "trigger": "hc.cond" + }, + { + "description": "hc - End Tag Comment", + "id": 8, + "trigger": "hc.end" + }, + { + "description": "jc - Block Comment", + "id": 9, + "trigger": "jc.block" + }, + { + "description": "jc - Class Comment", + "id": 10, + "trigger": "jc.class" + }, + { + "description": "jc - Constructor Comment", + "id": 11, + "trigger": "jc.constructor" + }, + { + "description": "jc - Event Comment", + "id": 12, + "trigger": "jc.event" + }, + { + "description": "jc - Method Comment", + "id": 13, + "trigger": "jc.method" + }, + { + "description": "jc - Property Comment", + "id": 14, + "trigger": "jc.property" + }, + { + "description": "c - @font-face structure", + "id": 15, + "trigger": "c.ff" + }, + { + "description": "c - Keyframes", + "id": 16, + "trigger": "c.k" + }, + { + "description": "c - Media Querie", + "id": 17, + "trigger": "c.mq" + }, + { + "description": "e - Google Analytics", + "id": 18, + "trigger": "e.ga" + }, + { + "description": "e - Google Tag Manager", + "id": 19, + "trigger": "e.gtm" + }, + { + "description": "h - Basic HTML document", + "id": 20, + "trigger": "h.b" + }, + { + "description": "h - HTML document", + "id": 21, + "trigger": "h.doc" + }, + { + "description": "h - Head tags", + "id": 22, + "trigger": "h.htags" + }, + { + "description": "hm - HTML with SiteNavigationElement", + "id": 23, + "trigger": "hm.sitenav" + }, + { + "description": "hw - Alert Dialog", + "id": 24, + "trigger": "hw.alertdialog" + }, + { + "description": "je - ES6 Arrow Function", + "id": 25, + "trigger": "je.arrow" + }, + { + "description": "je - ES6 Class", + "id": 26, + "trigger": "je.class" + }, + { + "description": "je - ES6 Map", + "id": 27, + "trigger": "je.map" + }, + { + "description": "je - ES6 Set", + "id": 28, + "trigger": "je.set" + }, + { + "description": "je - ES6 WeakMap", + "id": 29, + "trigger": "je.wmap" + }, + { + "description": "je - ES6 WeakSet", + "id": 30, + "trigger": "je.wset" + }, + { + "description": "je - ES6 Object Literal", + "id": 31, + "trigger": "je.object" + }, + { + "description": "je - ES6 Generators", + "id": 32, + "trigger": "je.generators" + }, + { + "description": "je - ES6 For Loop Iterator using Let", + "id": 33, + "trigger": "je.leti" + }, + { + "description": "je - ES6 Let", + "id": 34, + "trigger": "je.let" + }, + { + "description": "je - Math", + "id": 35, + "trigger": "je.z.math" + }, + { + "description": "je - ES6 Dynamic Module Import", + "id": 36, + "trigger": "je.simport" + }, + { + "description": "je - ES6 Module Export Function", + "id": 37, + "trigger": "je.efunction" + }, + { + "description": "je - ES6 Module Export Variable", + "id": 38, + "trigger": "je.evariable" + }, + { + "description": "je - ES6 Module Import", + "id": 39, + "trigger": "je.import" + }, + { + "description": "je - ES6 Loader Class", + "id": 40, + "trigger": "je.loader" + }, + { + "description": "je - ES6 System Get Module", + "id": 41, + "trigger": "je.sget" + }, + { + "description": "je - ES6 System Set Module", + "id": 42, + "trigger": "je.sset" + }, + { + "description": "je - ES6 Promise", + "id": 43, + "trigger": "je.promise" + }, + { + "description": "je - ES6 Proxy", + "id": 44, + "trigger": "je.proxy" + }, + { + "description": "je - ES6 Reflect Apply", + "id": 45, + "trigger": "je.rapply" + }, + { + "description": "je - ES6 Reflect Construct", + "id": 46, + "trigger": "je.rconstruct" + }, + { + "description": "je - ES6 Reflect Define Property", + "id": 47, + "trigger": "je.rdproperty" + }, + { + "description": "je - ES6 Reflect Delete Property", + "id": 48, + "trigger": "je.rdelproperty" + }, + { + "description": "je - ES6 Reflect Enumerate", + "id": 49, + "trigger": "je.renumerate" + }, + { + "description": "je - ES6 Reflect Get", + "id": 50, + "trigger": "je.rget" + }, + { + "description": "je - ES6 Reflect Get Property Descriptor", + "id": 51, + "trigger": "je.rgopdescriptor" + }, + { + "description": "je - ES6 Reflect Get Prototype Of", + "id": 52, + "trigger": "je.rgprototypeof" + }, + { + "description": "je - ES6 Reflect Has", + "id": 53, + "trigger": "je.rhas" + }, + { + "description": "je - ES6 Reflect Is Extensible", + "id": 54, + "trigger": "je.riextensible" + }, + { + "description": "je - ES6 Reflect Own Keys", + "id": 55, + "trigger": "je.rokeys" + }, + { + "description": "je - ES6 Reflect Prevent Extensions", + "id": 56, + "trigger": "je.rpextensions" + }, + { + "description": "je - ES6 Reflect Set", + "id": 57, + "trigger": "je.rset" + }, + { + "description": "je - ES6 Reflect Set Prototype Of", + "id": 58, + "trigger": "je.rsprototypeof" + }, + { + "description": "je - ES6 Template String", + "id": 59, + "trigger": "je.string" + }, + { + "description": "jq - ajax", + "id": 60, + "trigger": "jq.a" + }, + { + "description": "jq - ajaxComplete", + "id": 61, + "trigger": "jq.acomplete" + }, + { + "description": "jq - ajaxError", + "id": 62, + "trigger": "jq.aerror" + }, + { + "description": "jq - getJSON", + "id": 63, + "trigger": "jq.gjson" + }, + { + "description": "jq - getScript", + "id": 64, + "trigger": "jq.gscript" + }, + { + "description": "jq - jQuery get", + "id": 65, + "trigger": "jq.jget" + }, + { + "description": "jq - load", + "id": 66, + "trigger": "jq.load" + }, + { + "description": "jq - post", + "id": 67, + "trigger": "jq.post" + }, + { + "description": "jq - ajaxPrefilter", + "id": 68, + "trigger": "jq.aprefilter" + }, + { + "description": "jq - ajaxSend", + "id": 69, + "trigger": "jq.asend" + }, + { + "description": "jq - ajaxSetup", + "id": 70, + "trigger": "jq.asetup" + }, + { + "description": "jq - ajaxStart", + "id": 71, + "trigger": "jq.astart" + }, + { + "description": "jq - ajaxStop", + "id": 72, + "trigger": "jq.astop" + }, + { + "description": "jq - ajaxSuccess", + "id": 73, + "trigger": "jq.asuccess" + }, + { + "description": "jq - ajaxTransport", + "id": 74, + "trigger": "jq.atransport" + }, + { + "description": "jq - addClass", + "id": 75, + "trigger": "jq.addclass" + }, + { + "description": "jq - attr", + "id": 76, + "trigger": "jq.attr" + }, + { + "description": "jq - hasClass", + "id": 77, + "trigger": "jq.hasclass" + }, + { + "description": "jq - html", + "id": 78, + "trigger": "jq.html" + }, + { + "description": "jq - prop", + "id": 79, + "trigger": "jq.prop" + }, + { + "description": "jq - removeAttr", + "id": 80, + "trigger": "jq.rattr" + }, + { + "description": "jq - removeClass", + "id": 81, + "trigger": "jq.rclass" + }, + { + "description": "jq - removeProp", + "id": 82, + "trigger": "jq.rprop" + }, + { + "description": "jq - toggleClass", + "id": 83, + "trigger": "jq.tclass" + }, + { + "description": "jq - add", + "id": 84, + "trigger": "jq.cbadd" + }, + { + "description": "jq - disable", + "id": 85, + "trigger": "jq.cbdisable" + }, + { + "description": "jq - disabled", + "id": 86, + "trigger": "jq.cbdisabled" + }, + { + "description": "jq - empty", + "id": 87, + "trigger": "jq.cbempty" + }, + { + "description": "jq - fireWith", + "id": 88, + "trigger": "jq.cbfirewith" + }, + { + "description": "jq - fire", + "id": 89, + "trigger": "jq.cbfire" + }, + { + "description": "jq - fired", + "id": 90, + "trigger": "jq.cbfired" + }, + { + "description": "jq - has", + "id": 91, + "trigger": "jq.cbhas" + }, + { + "description": "jq - lock", + "id": 92, + "trigger": "jq.cblock" + }, + { + "description": "jq - locked", + "id": 93, + "trigger": "jq.cblocked" + }, + { + "description": "jq - remove", + "id": 94, + "trigger": "jq.cbremove" + }, + { + "description": "jq - callbacks", + "id": 95, + "trigger": "jq.cb" + }, + { + "description": "jq - holdReady", + "id": 96, + "trigger": "jq.holdready" + }, + { + "description": "jq - jQuery", + "id": 97, + "trigger": "jq.jq" + }, + { + "description": "jq - noConflict", + "id": 98, + "trigger": "jq.noc" + }, + { + "description": "jq - when", + "id": 99, + "trigger": "jq.when" + }, + { + "description": "jq - cssHooks", + "id": 100, + "trigger": "jq.cssh" + }, + { + "description": "jq - cssNumber", + "id": 101, + "trigger": "jq.cssn" + }, + { + "description": "jq - css", + "id": 102, + "trigger": "jq.css" + }, + { + "description": "jq - hasData", + "id": 103, + "trigger": "jq.hasdata" + }, + { + "description": "jq - jQuery data", + "id": 104, + "trigger": "jq.jdata" + }, + { + "description": "jq - jQuery removeData", + "id": 105, + "trigger": "jq.jrdata" + }, + { + "description": "jq - removeData", + "id": 106, + "trigger": "jq.rdata" + }, + { + "description": "jq - data", + "id": 107, + "trigger": "jq.data" + }, + { + "description": "jq - always", + "id": 108, + "trigger": "jq.always" + }, + { + "description": "jq - done", + "id": 109, + "trigger": "jq.done" + }, + { + "description": "jq - fail", + "id": 110, + "trigger": "jq.fail" + }, + { + "description": "jq - notifyWith", + "id": 111, + "trigger": "jq.notifywith" + }, + { + "description": "jq - notify", + "id": 112, + "trigger": "jq.notify" + }, + { + "description": "jq - progress", + "id": 113, + "trigger": "jq.progress" + }, + { + "description": "jq - promise", + "id": 114, + "trigger": "jq.dpromise" + }, + { + "description": "jq - rejectWith", + "id": 115, + "trigger": "jq.rejectwith" + }, + { + "description": "jq - reject", + "id": 116, + "trigger": "jq.reject" + }, + { + "description": "jq - resolveWith", + "id": 117, + "trigger": "jq.resolvewith" + }, + { + "description": "jq - resolve", + "id": 118, + "trigger": "jq.resolve" + }, + { + "description": "jq - state", + "id": 119, + "trigger": "jq.state" + }, + { + "description": "jq - then", + "id": 120, + "trigger": "jq.then" + }, + { + "description": "jq - deferred", + "id": 121, + "trigger": "jq.d" + }, + { + "description": "jq - promise", + "id": 122, + "trigger": "jq.promise" + }, + { + "description": "jq - height", + "id": 123, + "trigger": "jq.height" + }, + { + "description": "jq - innerHeight", + "id": 124, + "trigger": "jq.iheight" + }, + { + "description": "jq - innerWidth", + "id": 125, + "trigger": "jq.iwidth" + }, + { + "description": "jq - outerHeight", + "id": 126, + "trigger": "jq.oheight" + }, + { + "description": "jq - outerWidth", + "id": 127, + "trigger": "jq.owidth" + }, + { + "description": "jq - width", + "id": 128, + "trigger": "jq.width" + }, + { + "description": "jq - animate", + "id": 129, + "trigger": "jq.animate" + }, + { + "description": "jq - clearQueue", + "id": 130, + "trigger": "jq.cqueue" + }, + { + "description": "jq - delay", + "id": 131, + "trigger": "jq.delay" + }, + { + "description": "jq - dequeue", + "id": 132, + "trigger": "jq.dequeue" + }, + { + "description": "jq - fadeIn", + "id": 133, + "trigger": "jq.fadein" + }, + { + "description": "jq - fadeOut", + "id": 134, + "trigger": "jq.fadeout" + }, + { + "description": "jq - fadeToggle", + "id": 135, + "trigger": "jq.fadetoggle" + }, + { + "description": "jq - fadeTo", + "id": 136, + "trigger": "jq.fadeto" + }, + { + "description": "jq - finish", + "id": 137, + "trigger": "jq.finish" + }, + { + "description": "jq - hide", + "id": 138, + "trigger": "jq.hide" + }, + { + "description": "jq - queue", + "id": 139, + "trigger": "jq.queue" + }, + { + "description": "jq - show", + "id": 140, + "trigger": "jq.show" + }, + { + "description": "jq - slideDown", + "id": 141, + "trigger": "jq.sdown" + }, + { + "description": "jq - slideToggle", + "id": 142, + "trigger": "jq.stoggle" + }, + { + "description": "jq - slideUp", + "id": 143, + "trigger": "jq.sup" + }, + { + "description": "jq - stop", + "id": 144, + "trigger": "jq.stop" + }, + { + "description": "jq - toggle", + "id": 145, + "trigger": "jq.toggle" + }, + { + "description": "jq - bind", + "id": 146, + "trigger": "jq.bind" + }, + { + "description": "jq - click", + "id": 147, + "trigger": "jq.click" + }, + { + "description": "jq - contextmenu", + "id": 148, + "trigger": "jq.jqcmenu" + }, + { + "description": "jq - currentTarget", + "id": 149, + "trigger": "jq.ctarget" + }, + { + "description": "jq - Event data", + "id": 150, + "trigger": "jq.edata" + }, + { + "description": "jq - dblclick", + "id": 151, + "trigger": "jq.dclick" + }, + { + "description": "jq - delegateTarget", + "id": 152, + "trigger": "jq.dtarget" + }, + { + "description": "jq - delegate", + "id": 153, + "trigger": "jq.delegate" + }, + { + "description": "jq - hover", + "id": 154, + "trigger": "jq.hover" + }, + { + "description": "jq - isDefaultPrevented", + "id": 155, + "trigger": "jq.idprevented" + }, + { + "description": "jq - isImmediatePropagationStopped", + "id": 156, + "trigger": "jq.iips" + }, + { + "description": "jq - isPropagationStopped", + "id": 157, + "trigger": "jq.ips" + }, + { + "description": "jq - keydown", + "id": 158, + "trigger": "jq.kdown" + }, + { + "description": "jq - keypress", + "id": 159, + "trigger": "jq.kpress" + }, + { + "description": "jq - keyup", + "id": 160, + "trigger": "jq.kup" + }, + { + "description": "jq - metaKey", + "id": 161, + "trigger": "jq.mkey" + }, + { + "description": "jq - mousedown", + "id": 162, + "trigger": "jq.mdown" + }, + { + "description": "jq - mouseenter", + "id": 163, + "trigger": "jq.menter" + }, + { + "description": "jq - mouseleave", + "id": 164, + "trigger": "jq.mleave" + }, + { + "description": "jq - mousemove", + "id": 165, + "trigger": "jq.mmove" + }, + { + "description": "jq - mouseout", + "id": 166, + "trigger": "jq.mout" + }, + { + "description": "jq - mouseover", + "id": 167, + "trigger": "jq.mover" + }, + { + "description": "jq - mouseup", + "id": 168, + "trigger": "jq.mup" + }, + { + "description": "jq - namespace", + "id": 169, + "trigger": "jq.ns" + }, + { + "description": "jq - off", + "id": 170, + "trigger": "jq.off" + }, + { + "description": "jq - on", + "id": 171, + "trigger": "jq.on" + }, + { + "description": "jq - one", + "id": 172, + "trigger": "jq.one" + }, + { + "description": "jq - pageX", + "id": 173, + "trigger": "jq.px" + }, + { + "description": "jq - pageY", + "id": 174, + "trigger": "jq.py" + }, + { + "description": "jq - preventDefault", + "id": 175, + "trigger": "jq.pd" + }, + { + "description": "jq - ready", + "id": 176, + "trigger": "jq.ready" + }, + { + "description": "jq - relatedTarget", + "id": 177, + "trigger": "jq.rtarget" + }, + { + "description": "jq - resize", + "id": 178, + "trigger": "jq.resize" + }, + { + "description": "jq - result", + "id": 179, + "trigger": "jq.result" + }, + { + "description": "jq - scroll", + "id": 180, + "trigger": "jq.scroll" + }, + { + "description": "jq - stopImmediatePropagation", + "id": 181, + "trigger": "jq.sip" + }, + { + "description": "jq - stopPropagation", + "id": 182, + "trigger": "jq.sp" + }, + { + "description": "jq - target", + "id": 183, + "trigger": "jq.target" + }, + { + "description": "jq - timeStamp", + "id": 184, + "trigger": "jq.tstamp" + }, + { + "description": "jq - triggerHandler", + "id": 185, + "trigger": "jq.thandler" + }, + { + "description": "jq - trigger", + "id": 186, + "trigger": "jq.trigger" + }, + { + "description": "jq - type", + "id": 187, + "trigger": "jq.type" + }, + { + "description": "jq - unbind", + "id": 188, + "trigger": "jq.unbind" + }, + { + "description": "jq - undelegate", + "id": 189, + "trigger": "jq.undelegate" + }, + { + "description": "jq - which", + "id": 190, + "trigger": "jq.which" + }, + { + "description": "jq - blur", + "id": 191, + "trigger": "jq.blur" + }, + { + "description": "jq - change", + "id": 192, + "trigger": "jq.change" + }, + { + "description": "jq - focusin", + "id": 193, + "trigger": "jq.focusin" + }, + { + "description": "jq - focusout", + "id": 194, + "trigger": "jq.focusout" + }, + { + "description": "jq - focus", + "id": 195, + "trigger": "jq.focus" + }, + { + "description": "jq - param", + "id": 196, + "trigger": "jq.param" + }, + { + "description": "jq - select", + "id": 197, + "trigger": "jq.select" + }, + { + "description": "jq - serializeArray", + "id": 198, + "trigger": "jq.serarray" + }, + { + "description": "jq - serialize", + "id": 199, + "trigger": "jq.ser" + }, + { + "description": "jq - submit", + "id": 200, + "trigger": "jq.submit" + }, + { + "description": "jq - val", + "id": 201, + "trigger": "jq.val" + }, + { + "description": "jq - error", + "id": 202, + "trigger": "jq.error" + }, + { + "description": "jq - pushStack", + "id": 203, + "trigger": "jq.pstack" + }, + { + "description": "jq - after", + "id": 204, + "trigger": "jq.after" + }, + { + "description": "jq - appendTo", + "id": 205, + "trigger": "jq.appendto" + }, + { + "description": "jq - append", + "id": 206, + "trigger": "jq.append" + }, + { + "description": "jq - before", + "id": 207, + "trigger": "jq.before" + }, + { + "description": "jq - clone", + "id": 208, + "trigger": "jq.clone" + }, + { + "description": "jq - detach", + "id": 209, + "trigger": "jq.detach" + }, + { + "description": "jq - empty", + "id": 210, + "trigger": "jq.empty" + }, + { + "description": "jq - insertAfter", + "id": 211, + "trigger": "jq.iafter" + }, + { + "description": "jq - insertBefore", + "id": 212, + "trigger": "jq.ibefore" + }, + { + "description": "jq - prependTo", + "id": 213, + "trigger": "jq.prependto" + }, + { + "description": "jq - prepend", + "id": 214, + "trigger": "jq.prepend" + }, + { + "description": "jq - remove", + "id": 215, + "trigger": "jq.remove" + }, + { + "description": "jq - replaceAll", + "id": 216, + "trigger": "jq.replaceall" + }, + { + "description": "jq - replaceWith", + "id": 217, + "trigger": "jq.replacewith" + }, + { + "description": "jq - text", + "id": 218, + "trigger": "jq.text" + }, + { + "description": "jq - unwrap", + "id": 219, + "trigger": "jq.unwrap" + }, + { + "description": "jq - wrapAll", + "id": 220, + "trigger": "jq.wall" + }, + { + "description": "jq - wrapInner", + "id": 221, + "trigger": "jq.winner" + }, + { + "description": "jq - wrap", + "id": 222, + "trigger": "jq.wrap" + }, + { + "description": "jq - get", + "id": 223, + "trigger": "jq.get" + }, + { + "description": "jq - index", + "id": 224, + "trigger": "jq.index" + }, + { + "description": "jq - toArray", + "id": 225, + "trigger": "jq.toarray" + }, + { + "description": "jq - offsetParent", + "id": 226, + "trigger": "jq.oparent" + }, + { + "description": "jq - position", + "id": 227, + "trigger": "jq.pos" + }, + { + "description": "jq - scrollLeft", + "id": 228, + "trigger": "jq.scleft" + }, + { + "description": "jq - scrollTop", + "id": 229, + "trigger": "jq.sctop" + }, + { + "description": "jq - offset", + "id": 230, + "trigger": "jq.oset" + }, + { + "description": "jq - fx.interval", + "id": 231, + "trigger": "jq.fxi" + }, + { + "description": "jq - fx.off", + "id": 232, + "trigger": "jq.fxo" + }, + { + "description": "jq - jquery", + "id": 233, + "trigger": "jq.jprop" + }, + { + "description": "jq - length", + "id": 234, + "trigger": "jq.len" + }, + { + "description": "jq - all", + "id": 235, + "trigger": "jq.all" + }, + { + "description": "jq - :animated", + "id": 236, + "trigger": "jq.:a" + }, + { + "description": "jq - Attribute Contains Prefix", + "id": 237, + "trigger": "jq.[]|" + }, + { + "description": "jq - Attribute Contains", + "id": 238, + "trigger": "jq.[]*" + }, + { + "description": "jq - Attribute Contains Word", + "id": 239, + "trigger": "jq.[]~" + }, + { + "description": "jq - Attribute Ends With", + "id": 240, + "trigger": "jq.[]$" + }, + { + "description": "jq - Attribute Equals", + "id": 241, + "trigger": "jq.[]=" + }, + { + "description": "jq - Attribute Not Equal", + "id": 242, + "trigger": "jq.[]!" + }, + { + "description": "jq - Attribute Starts With", + "id": 243, + "trigger": "jq.[]^" + }, + { + "description": "jq - :button", + "id": 244, + "trigger": "jq.:b" + }, + { + "description": "jq - :checkbox", + "id": 245, + "trigger": "jq.:c" + }, + { + "description": "jq - :checked", + "id": 246, + "trigger": "jq.:ch" + }, + { + "description": "jq - :child", + "id": 247, + "trigger": "jq.:chi" + }, + { + "description": "jq - class", + "id": 248, + "trigger": "jq.:cl" + }, + { + "description": "jq - :contains", + "id": 249, + "trigger": "jq.:co" + }, + { + "description": "jq - descendant", + "id": 250, + "trigger": "jq.des" + }, + { + "description": "jq - :disabled", + "id": 251, + "trigger": "jq.:d" + }, + { + "description": "jq - element", + "id": 252, + "trigger": "jq.$" + }, + { + "description": "jq - :empty", + "id": 253, + "trigger": "jq.:e" + }, + { + "description": "jq - :enabled", + "id": 254, + "trigger": "jq.:en" + }, + { + "description": "jq - :eq", + "id": 255, + "trigger": "jq.:eq" + }, + { + "description": "jq - :even", + "id": 256, + "trigger": "jq.:ev" + }, + { + "description": "jq - :file", + "id": 257, + "trigger": "jq.:f" + }, + { + "description": "jq - :first-child", + "id": 258, + "trigger": "jq.:fc" + }, + { + "description": "jq - :first-of-type", + "id": 259, + "trigger": "jq.:ft" + }, + { + "description": "jq - :first", + "id": 260, + "trigger": "jq.:fi" + }, + { + "description": "jq - :focus", + "id": 261, + "trigger": "jq.:fo" + }, + { + "description": "jq - :gt", + "id": 262, + "trigger": "jq.:gt" + }, + { + "description": "jq - Has Attribute", + "id": 263, + "trigger": "jq.[]" + }, + { + "description": "jq - :has", + "id": 264, + "trigger": "jq.:h" + }, + { + "description": "jq - :header", + "id": 265, + "trigger": "jq.:he" + }, + { + "description": "jq - :hidden", + "id": 266, + "trigger": "jq.:hi" + }, + { + "description": "jq - id", + "id": 267, + "trigger": "jq.id" + }, + { + "description": "jq - :image", + "id": 268, + "trigger": "jq.:i" + }, + { + "description": "jq - :input", + "id": 269, + "trigger": "jq.:in" + }, + { + "description": "jq - :lang", + "id": 270, + "trigger": "jq.:l" + }, + { + "description": "jq - :last-child", + "id": 271, + "trigger": "jq.:lc" + }, + { + "description": "jq - :last-of-type", + "id": 272, + "trigger": "jq.:lty" + }, + { + "description": "jq - :last", + "id": 273, + "trigger": "jq.:la" + }, + { + "description": "jq - :lt", + "id": 274, + "trigger": "jq.:lt" + }, + { + "description": "jq - Multiple Attribute", + "id": 275, + "trigger": "jq.[][]" + }, + { + "description": "jq - Multiple", + "id": 276, + "trigger": "jq.," + }, + { + "description": "jq - Next Adjacent", + "id": 277, + "trigger": "jq.+" + }, + { + "description": "jq - Next Siblings", + "id": 278, + "trigger": "jq.snss" + }, + { + "description": "jq - :not", + "id": 279, + "trigger": "jq.:not" + }, + { + "description": "jq - :nth-child", + "id": 280, + "trigger": "jq.:nc" + }, + { + "description": "jq - :nth-last-child", + "id": 281, + "trigger": "jq.:nlc" + }, + { + "description": "jq - :nth-last-of-type", + "id": 282, + "trigger": "jq.:nlt" + }, + { + "description": "jq - :nth-of-type", + "id": 283, + "trigger": "jq.:nt" + }, + { + "description": "jq - :odd", + "id": 284, + "trigger": "jq.:o" + }, + { + "description": "jq - :only-child", + "id": 285, + "trigger": "jq.:oc" + }, + { + "description": "jq - :only-of-type", + "id": 286, + "trigger": "jq.:ot" + }, + { + "description": "jq - :parent", + "id": 287, + "trigger": "jq.:p" + }, + { + "description": "jq - :password", + "id": 288, + "trigger": "jq.:pa" + }, + { + "description": "jq - :radio", + "id": 289, + "trigger": "jq.:r" + }, + { + "description": "jq - :reset", + "id": 290, + "trigger": "jq.:re" + }, + { + "description": "jq - :root", + "id": 291, + "trigger": "jq.:ro" + }, + { + "description": "jq - :selected", + "id": 292, + "trigger": "jq.:s" + }, + { + "description": "jq - :submit", + "id": 293, + "trigger": "jq.:su" + }, + { + "description": "jq - :target", + "id": 294, + "trigger": "jq.:t" + }, + { + "description": "jq - :text", + "id": 295, + "trigger": "jq.:tx" + }, + { + "description": "jq - :visible", + "id": 296, + "trigger": "jq.:v" + }, + { + "description": "jq - addBack", + "id": 297, + "trigger": "jq.addback" + }, + { + "description": "jq - add", + "id": 298, + "trigger": "jq.add" + }, + { + "description": "jq - children", + "id": 299, + "trigger": "jq.children" + }, + { + "description": "jq - closest", + "id": 300, + "trigger": "jq.closest" + }, + { + "description": "jq - contents", + "id": 301, + "trigger": "jq.contents" + }, + { + "description": "jq - each", + "id": 302, + "trigger": "jq.each" + }, + { + "description": "jq - end", + "id": 303, + "trigger": "jq.end" + }, + { + "description": "jq - eq", + "id": 304, + "trigger": "jq.eq" + }, + { + "description": "jq - filter", + "id": 305, + "trigger": "jq.filter" + }, + { + "description": "jq - find", + "id": 306, + "trigger": "jq.find" + }, + { + "description": "jq - first", + "id": 307, + "trigger": "jq.first" + }, + { + "description": "jq - has", + "id": 308, + "trigger": "jq.has" + }, + { + "description": "jq - is", + "id": 309, + "trigger": "jq.is" + }, + { + "description": "jq - last", + "id": 310, + "trigger": "jq.last" + }, + { + "description": "jq - map", + "id": 311, + "trigger": "jq.map" + }, + { + "description": "jq - nextAll", + "id": 312, + "trigger": "jq.nextall" + }, + { + "description": "jq - nextUntil", + "id": 313, + "trigger": "jq.nextuntil" + }, + { + "description": "jq - next", + "id": 314, + "trigger": "jq.next" + }, + { + "description": "jq - not", + "id": 315, + "trigger": "jq.not" + }, + { + "description": "jq - parent", + "id": 316, + "trigger": "jq.parent" + }, + { + "description": "jq - parentsUntil", + "id": 317, + "trigger": "jq.puntil" + }, + { + "description": "jq - parents", + "id": 318, + "trigger": "jq.parents" + }, + { + "description": "jq - prevAll", + "id": 319, + "trigger": "jq.prevall" + }, + { + "description": "jq - prevUntil", + "id": 320, + "trigger": "jq.prevuntil" + }, + { + "description": "jq - prev", + "id": 321, + "trigger": "jq.prev" + }, + { + "description": "jq - siblings", + "id": 322, + "trigger": "jq.ts" + }, + { + "description": "jq - slice", + "id": 323, + "trigger": "jq.tsl" + }, + { + "description": "jq - contains", + "id": 324, + "trigger": "jq.contains" + }, + { + "description": "jq - jQuery each", + "id": 325, + "trigger": "jq.jeach" + }, + { + "description": "jq - extend", + "id": 326, + "trigger": "jq.extend" + }, + { + "description": "jq - fn.extend", + "id": 327, + "trigger": "jq.fnextend" + }, + { + "description": "jq - globalEval", + "id": 328, + "trigger": "jq.geval" + }, + { + "description": "jq - grep", + "id": 329, + "trigger": "jq.grep" + }, + { + "description": "jq - inArray", + "id": 330, + "trigger": "jq.inarray" + }, + { + "description": "jq - isEmptyObject", + "id": 331, + "trigger": "jq.ieobject" + }, + { + "description": "jq - isFunction", + "id": 332, + "trigger": "jq.ifunction" + }, + { + "description": "jq - isNumeric", + "id": 333, + "trigger": "jq.inumeric" + }, + { + "description": "jq - isPlainObject", + "id": 334, + "trigger": "jq.ipobject" + }, + { + "description": "jq - isWindow", + "id": 335, + "trigger": "jq.iwindow" + }, + { + "description": "jq - isXMLDoc", + "id": 336, + "trigger": "jq.ixmldoc" + }, + { + "description": "jq - makeArray", + "id": 337, + "trigger": "jq.marray" + }, + { + "description": "jq - jQuery map", + "id": 338, + "trigger": "jq.jmap" + }, + { + "description": "jq - merge", + "id": 339, + "trigger": "jq.merge" + }, + { + "description": "jq - noop", + "id": 340, + "trigger": "jq.noop" + }, + { + "description": "jq - now", + "id": 341, + "trigger": "jq.now" + }, + { + "description": "jq - parseHTML", + "id": 342, + "trigger": "jq.parseh" + }, + { + "description": "jq - parseJSON", + "id": 343, + "trigger": "jq.parsej" + }, + { + "description": "jq - parseXML", + "id": 344, + "trigger": "jq.parsex" + }, + { + "description": "jq - proxy", + "id": 345, + "trigger": "jq.proxy" + }, + { + "description": "jq - trim", + "id": 346, + "trigger": "jq.trim" + }, + { + "description": "jq - jQuery type", + "id": 347, + "trigger": "jq.jtype" + }, + { + "description": "jq - unique", + "id": 348, + "trigger": "jq.unique" + }, + { + "description": "jq - jQuery Boilerplate", + "id": 349, + "trigger": "jq.b" + }, + { + "description": "jr - forceUpdate", + "id": 350, + "trigger": "jr.fupdate" + }, + { + "description": "jr - isMounted", + "id": 351, + "trigger": "jr.imounted" + }, + { + "description": "jr - replaceProps", + "id": 352, + "trigger": "jr.rprops" + }, + { + "description": "jr - replaceState", + "id": 353, + "trigger": "jr.rstate" + }, + { + "description": "jr - setProps", + "id": 354, + "trigger": "jr.sprops" + }, + { + "description": "jr - setState", + "id": 355, + "trigger": "jr.setstate" + }, + { + "description": "jr - onBlur", + "id": 356, + "trigger": "jr.onbl" + }, + { + "description": "jr - onChange", + "id": 357, + "trigger": "jr.onch" + }, + { + "description": "jr - onClick", + "id": 358, + "trigger": "jr.oncl" + }, + { + "description": "jr - onContextMenu", + "id": 359, + "trigger": "jr.oncm" + }, + { + "description": "jr - onCopy", + "id": 360, + "trigger": "jr.onco" + }, + { + "description": "jr - onCut", + "id": 361, + "trigger": "jr.onct" + }, + { + "description": "jr - onDoubleClick", + "id": 362, + "trigger": "jr.ondc" + }, + { + "description": "jr - onDragEnd", + "id": 363, + "trigger": "jr.onde" + }, + { + "description": "jr - onDragEnter", + "id": 364, + "trigger": "jr.onden" + }, + { + "description": "jr - onDragExit", + "id": 365, + "trigger": "jr.ondex" + }, + { + "description": "jr - onDragLeave", + "id": 366, + "trigger": "jr.ondl" + }, + { + "description": "jr - onDragOver", + "id": 367, + "trigger": "jr.ondo" + }, + { + "description": "jr - onDragStart", + "id": 368, + "trigger": "jr.onds" + }, + { + "description": "jr - onDrop", + "id": 369, + "trigger": "jr.ondr" + }, + { + "description": "jr - onFocus", + "id": 370, + "trigger": "jr.onfo" + }, + { + "description": "jr - onInput", + "id": 371, + "trigger": "jr.onin" + }, + { + "description": "jr - onKeyDown", + "id": 372, + "trigger": "jr.onkd" + }, + { + "description": "jr - onKeyPress", + "id": 373, + "trigger": "jr.onkp" + }, + { + "description": "jr - onKeyUp", + "id": 374, + "trigger": "jr.onku" + }, + { + "description": "jr - onMouseDown", + "id": 375, + "trigger": "jr.onmd" + }, + { + "description": "jr - onMouseEnter", + "id": 376, + "trigger": "jr.onme" + }, + { + "description": "jr - onMouseLeave", + "id": 377, + "trigger": "jr.onml" + }, + { + "description": "jr - onMouseMove", + "id": 378, + "trigger": "jr.onmm" + }, + { + "description": "jr - onMouseOut", + "id": 379, + "trigger": "jr.onmo" + }, + { + "description": "jr - onMouseOver", + "id": 380, + "trigger": "jr.onmov" + }, + { + "description": "jr - onMouseUp", + "id": 381, + "trigger": "jr.onmu" + }, + { + "description": "jr - onPaste", + "id": 382, + "trigger": "jr.onpa" + }, + { + "description": "jr - onScroll", + "id": 383, + "trigger": "jr.onsc" + }, + { + "description": "jr - onSubmit", + "id": 384, + "trigger": "jr.onsu" + }, + { + "description": "jr - onTouchCancel", + "id": 385, + "trigger": "jr.ontc" + }, + { + "description": "jr - onTouchEnd", + "id": 386, + "trigger": "jr.onte" + }, + { + "description": "jr - onTouchMove", + "id": 387, + "trigger": "jr.ontm" + }, + { + "description": "jr - onTouchStart", + "id": 388, + "trigger": "jr.onts" + }, + { + "description": "jr - onWheel", + "id": 389, + "trigger": "jr.onwh" + }, + { + "description": "jr - componentDidMount", + "id": 390, + "trigger": "jr.cdmount" + }, + { + "description": "jr - componentDidUpdate", + "id": 391, + "trigger": "jr.cdupdate" + }, + { + "description": "jr - componentWillMount", + "id": 392, + "trigger": "jr.cwmount" + }, + { + "description": "jr - componentWillReceiveProps", + "id": 393, + "trigger": "jr.cwrprops" + }, + { + "description": "jr - componentWillUnmount", + "id": 394, + "trigger": "jr.cwunmount" + }, + { + "description": "jr - componentWillUpdate", + "id": 395, + "trigger": "jr.cwupdate" + }, + { + "description": "jr - shouldComponentUpdate", + "id": 396, + "trigger": "jr.scupdate" + }, + { + "description": "jr - PropTypes.any", + "id": 397, + "trigger": "jr.ptany" + }, + { + "description": "jr - PropTypes.arrayOf", + "id": 398, + "trigger": "jr.ptarrayof" + }, + { + "description": "jr - PropTypes.array", + "id": 399, + "trigger": "jr.ptarray" + }, + { + "description": "jr - PropTypes.bool", + "id": 400, + "trigger": "jr.ptbool" + }, + { + "description": "jr - PropTypes.element", + "id": 401, + "trigger": "jr.ptelement" + }, + { + "description": "jr - PropTypes.func", + "id": 402, + "trigger": "jr.ptfunc" + }, + { + "description": "jr - PropTypes.instanceOf", + "id": 403, + "trigger": "jr.ptiof" + }, + { + "description": "jr - PropTypes.node", + "id": 404, + "trigger": "jr.ptnode" + }, + { + "description": "jr - PropTypes.number", + "id": 405, + "trigger": "jr.ptnumber" + }, + { + "description": "jr - PropTypes.objectOf", + "id": 406, + "trigger": "jr.ptobjectof" + }, + { + "description": "jr - PropTypes.object", + "id": 407, + "trigger": "jr.ptobject" + }, + { + "description": "jr - PropTypes.oneOfType", + "id": 408, + "trigger": "jr.ptootype" + }, + { + "description": "jr - PropTypes.oneOf", + "id": 409, + "trigger": "jr.ptoneof" + }, + { + "description": "jr - PropTypes.shape", + "id": 410, + "trigger": "jr.ptshape" + }, + { + "description": "jr - PropTypes.string", + "id": 411, + "trigger": "jr.ptstring" + }, + { + "description": "jr - findDOMNode", + "id": 412, + "trigger": "jr.fdnode" + }, + { + "description": "jr - renderStaticMarkup", + "id": 413, + "trigger": "jr.rsmarkup" + }, + { + "description": "jr - renderToString", + "id": 414, + "trigger": "jr.rtstring" + }, + { + "description": "jr - render", + "id": 415, + "trigger": "jr.render" + }, + { + "description": "jr - unmountComponentAtNode", + "id": 416, + "trigger": "jr.ucanode" + }, + { + "description": "jr - displayName", + "id": 417, + "trigger": "jr.dname" + }, + { + "description": "jr - getDefaultProps", + "id": 418, + "trigger": "jr.gdprops" + }, + { + "description": "jr - getInitialState", + "id": 419, + "trigger": "jr.gistate" + }, + { + "description": "jr - mixins", + "id": 420, + "trigger": "jr.mixins" + }, + { + "description": "jr - propTypes", + "id": 421, + "trigger": "jr.ptypes" + }, + { + "description": "jr - render", + "id": 422, + "trigger": "jr.srender" + }, + { + "description": "jr - statics", + "id": 423, + "trigger": "jr.statics" + }, + { + "description": "jr - findAllInRenderedTree", + "id": 424, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - findRenderedComponentWithType", + "id": 425, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - findRenderedDOMComponentWithClass", + "id": 426, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - findRenderedDOMComponentWithTag", + "id": 427, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - isCompositeComponentWithType", + "id": 428, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - isCompositeComponent", + "id": 429, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - isDOMComponent", + "id": 430, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - isElementOfType", + "id": 431, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - isElement", + "id": 432, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - mockComponent", + "id": 433, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - renderIntoDocument", + "id": 434, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - scryRenderedComponentsWithType", + "id": 435, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - scryRenderedDOMComponentsWithClass", + "id": 436, + "trigger": "jr.tsrdcwclass" + }, + { + "description": "jr - scryRenderedDOMComponentsWithTag", + "id": 437, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - Shallow rendering (basics)", + "id": 438, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - Shallow rendering (child-count)", + "id": 439, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - Shallow rendering (child-equality)", + "id": 440, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - Shallow rendering (events)", + "id": 441, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - Shallow rendering (props)", + "id": 442, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - Shallow rendering (state changes)", + "id": 443, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - Shallow rendering (type)", + "id": 444, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - Simulate (basic)", + "id": 445, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - Simulate (with data)", + "id": 446, + "trigger": "jr.z.testutils" + }, + { + "description": "jr - children.count", + "id": 447, + "trigger": "jr.chcount" + }, + { + "description": "jr - children.forEach", + "id": 448, + "trigger": "jr.chfeach" + }, + { + "description": "jr - children.map", + "id": 449, + "trigger": "jr.chmap" + }, + { + "description": "jr - cloneElement", + "id": 450, + "trigger": "jr.clelement" + }, + { + "description": "jr - component", + "id": 451, + "trigger": "jr.component" + }, + { + "description": "jr - createClass", + "id": 452, + "trigger": "jr.cclass" + }, + { + "description": "jr - createElement", + "id": 453, + "trigger": "jr.celement" + }, + { + "description": "jr - createFactory", + "id": 454, + "trigger": "jr.cfactory" + }, + { + "description": "jr - isValidElement", + "id": 455, + "trigger": "jr.ivelement" + }, + { + "description": "jdp - Command", + "id": 456, + "trigger": "jdp.command" + }, + { + "description": "jdp - Constructor", + "id": 457, + "trigger": "jdp.constructor" + }, + { + "description": "jdp - Decorator", + "id": 458, + "trigger": "jdp.decorator" + }, + { + "description": "jdp - Facade", + "id": 459, + "trigger": "jdp.facade" + }, + { + "description": "jdp - Factory", + "id": 460, + "trigger": "jdp.factory" + }, + { + "description": "jdp - Flyweight", + "id": 461, + "trigger": "jdp.flyweight" + }, + { + "description": "jdp - Mediator", + "id": 462, + "trigger": "jdp.mediator" + }, + { + "description": "jdp - Mixin", + "id": 463, + "trigger": "jdp.mixin" + }, + { + "description": "jdp - Module", + "id": 464, + "trigger": "jdp.module" + }, + { + "description": "jdp - Observer", + "id": 465, + "trigger": "jdp.observer" + }, + { + "description": "jdp - Prototype", + "id": 466, + "trigger": "jdp.prototype" + }, + { + "description": "jdp - Revealing Module", + "id": 467, + "trigger": "jdp.rmodule" + }, + { + "description": "jdp - Singleton", + "id": 468, + "trigger": "jdp.singleton" + }, + { + "description": "jumd - AMD Web Global", + "id": 469, + "trigger": "jumd.awg" + }, + { + "description": "jumd - AMD Web", + "id": 470, + "trigger": "jumd.aw" + }, + { + "description": "jumd - CommonJS Adapter", + "id": 471, + "trigger": "jumd.ca" + }, + { + "description": "jumd - CommonJS Strict Global", + "id": 472, + "trigger": "jumd.csg" + }, + { + "description": "jumd - CommonJS Strict", + "id": 473, + "trigger": "jumd.cs" + }, + { + "description": "jumd - jQuery plugin", + "id": 474, + "trigger": "jumd.jp" + }, + { + "description": "jumd - Node Adapter", + "id": 475, + "trigger": "jumd.na" + }, + { + "description": "jumd - Return Exports Global", + "id": 476, + "trigger": "jumd.reg" + }, + { + "description": "jumd - Return Exports", + "id": 477, + "trigger": "jumd.re" + }, + { + "description": "tc - Expect to.be.a", + "id": 478, + "trigger": "tc.e.tba" + }, + { + "description": "tc - Expect to.equal", + "id": 479, + "trigger": "tc.e.te" + }, + { + "description": "tc - Expect to.have.length", + "id": 480, + "trigger": "tc.e.thl" + }, + { + "description": "tc - Expect to.have.property", + "id": 481, + "trigger": "tc.e.thp" + }, + { + "description": "tc - Should be.a", + "id": 482, + "trigger": "tc.s.ba" + }, + { + "description": "tc - Should equal", + "id": 483, + "trigger": "tc.s.e" + }, + { + "description": "tc - Should have.length", + "id": 484, + "trigger": "tc.s.hl" + }, + { + "description": "tc - Should have.property", + "id": 485, + "trigger": "tc.s.hp" + }, + { + "description": "tc - Assert equal", + "id": 486, + "trigger": "tc.a.e" + }, + { + "description": "tc - Assert lengthOf", + "id": 487, + "trigger": "tc.a.lo" + }, + { + "description": "tc - Assert typeOf", + "id": 488, + "trigger": "tc.a.to" + }, + { + "description": "t - afterEach", + "id": 489, + "trigger": "t.aftereach" + }, + { + "description": "t - after", + "id": 490, + "trigger": "t.after" + }, + { + "description": "t - beforeEach", + "id": 491, + "trigger": "t.beforeeach" + }, + { + "description": "t - before", + "id": 492, + "trigger": "t.before" + }, + { + "description": "t - describe", + "id": 493, + "trigger": "t.describe" + }, + { + "description": "t - it", + "id": 494, + "trigger": "t.it" + }, + { + "description": "tj - Expect toBeCloseTo", + "id": 495, + "trigger": "tj.closeto" + }, + { + "description": "tj - Expect toBeContain", + "id": 496, + "trigger": "tj.contain" + }, + { + "description": "tj - Expect toBeDefined", + "id": 497, + "trigger": "tj.defined" + }, + { + "description": "tj - Expect toBeFalsy", + "id": 498, + "trigger": "tj.falsy" + }, + { + "description": "tj - Expect toBeGreaterThan", + "id": 499, + "trigger": "tj.greaterthan" + }, + { + "description": "tj - Expect toBeLessThan", + "id": 500, + "trigger": "tj.lessthan" + }, + { + "description": "tj - Expect toBeNaN", + "id": 501, + "trigger": "tj.nan" + }, + { + "description": "tj - Expect toBeNull", + "id": 502, + "trigger": "tj.null" + }, + { + "description": "tj - Expect toBeTruthy", + "id": 503, + "trigger": "tj.truthy" + }, + { + "description": "tj - Expect toBeUndefined", + "id": 504, + "trigger": "tj.undefined" + }, + { + "description": "tj - Expect toBe", + "id": 505, + "trigger": "tj.tobe" + }, + { + "description": "tj - Expect toEqual", + "id": 506, + "trigger": "tj.equal" + }, + { + "description": "tj - Expect toHaveBeenCalledTimes", + "id": 507, + "trigger": "tj.hbctimes" + }, + { + "description": "tj - Expect toHaveBeenCalledWith", + "id": 508, + "trigger": "tj.hbcwith" + }, + { + "description": "tj - Expect toHaveBeenCalled", + "id": 509, + "trigger": "tj.hbc" + }, + { + "description": "tj - Expect toMatch", + "id": 510, + "trigger": "tj.match" + }, + { + "description": "tj - Expect toThrowError", + "id": 511, + "trigger": "tj.throwerror" + }, + { + "description": "tj - Expect toThrow", + "id": 512, + "trigger": "tj.throw" + }, + { + "description": "tm - config", + "id": 513, + "trigger": "tm.config" + }, + { + "description": "tm - globals", + "id": 514, + "trigger": "tm.globals" + }, + { + "description": "tm - grep", + "id": 515, + "trigger": "tm.grep" + }, + { + "description": "tm - growl", + "id": 516, + "trigger": "tm.growl" + }, + { + "description": "tm - ignoreLeaks", + "id": 517, + "trigger": "tm.ileaks" + }, + { + "description": "tm - invert", + "id": 518, + "trigger": "tm.invert" + }, + { + "description": "tm - reporter", + "id": 519, + "trigger": "tm.reporter" + }, + { + "description": "tm - run", + "id": 520, + "trigger": "tm.run" + }, + { + "description": "tm - setup", + "id": 521, + "trigger": "tm.setup" + }, + { + "description": "tm - ui", + "id": 522, + "trigger": "tm.ui" + }, + { + "description": "tn - Assert deepEqual", + "id": 523, + "trigger": "tn.dequal" + }, + { + "description": "tn - Assert deepStrictEqual", + "id": 524, + "trigger": "tn.dsequal" + }, + { + "description": "tn - Assert doesNotThrow", + "id": 525, + "trigger": "tn.dnthrow" + }, + { + "description": "tn - Assert equal", + "id": 526, + "trigger": "tn.equal" + }, + { + "description": "tn - Assert fail", + "id": 527, + "trigger": "tn.fail" + }, + { + "description": "tn - Assert ifError", + "id": 528, + "trigger": "tn.iferror" + }, + { + "description": "tn - Assert notDeepEqual", + "id": 529, + "trigger": "tn.ndequal" + }, + { + "description": "tn - Assert notDeepStrictEqual", + "id": 530, + "trigger": "tn.ndsequal" + }, + { + "description": "tn - Assert notEqual", + "id": 531, + "trigger": "tn.nequal" + }, + { + "description": "tn - Assert notStrictEqual", + "id": 532, + "trigger": "tn.nsequal" + }, + { + "description": "tn - Assert ok", + "id": 533, + "trigger": "tn.ok" + }, + { + "description": "tn - Assert strictEqual", + "id": 534, + "trigger": "tn.sequal" + }, + { + "description": "tn - Assert throws", + "id": 535, + "trigger": "tn.throws" + }, + { + "description": "tn - Assert", + "id": 536, + "trigger": "tn.a" + }, + { + "description": "tq - Assert async", + "id": 537, + "trigger": "tq.async" + }, + { + "description": "tq - Assert deepEqual", + "id": 538, + "trigger": "tq.dequal" + }, + { + "description": "tq - Assert equal", + "id": 539, + "trigger": "tq.equal" + }, + { + "description": "tq - notDeepEqual", + "id": 540, + "trigger": "tq.ndequal" + }, + { + "description": "tq - notEqual", + "id": 541, + "trigger": "tq.nequal" + }, + { + "description": "tq - notOk", + "id": 542, + "trigger": "tq.nok" + }, + { + "description": "tq - notPropEqual", + "id": 543, + "trigger": "tq.npequal" + }, + { + "description": "tq - notStrictEqual", + "id": 544, + "trigger": "tq.nsequal" + }, + { + "description": "tq - ok", + "id": 545, + "trigger": "tq.ok" + }, + { + "description": "tq - propEqual", + "id": 546, + "trigger": "tq.pequal" + }, + { + "description": "tq - strictEqual", + "id": 547, + "trigger": "tq.sequal" + }, + { + "description": "tq - throws", + "id": 548, + "trigger": "tq.throws" + }, + { + "description": "tq - QUnit.begin", + "id": 549, + "trigger": "tq.begin" + }, + { + "description": "tq - QUnit.config", + "id": 550, + "trigger": "tq.config" + }, + { + "description": "tq - QUnit.done", + "id": 551, + "trigger": "tq.done" + }, + { + "description": "tq - QUnit.dump.parse", + "id": 552, + "trigger": "tq.dparse" + }, + { + "description": "tq - Expect", + "id": 553, + "trigger": "tq.expect" + }, + { + "description": "tq - QUnit.extend", + "id": 554, + "trigger": "tq.extend" + }, + { + "description": "tq - QUnit.log", + "id": 555, + "trigger": "tq.log" + }, + { + "description": "tq - QUnit.moduleDone", + "id": 556, + "trigger": "tq.mdone" + }, + { + "description": "tq - QUnit.moduleStart", + "id": 557, + "trigger": "tq.mstart" + }, + { + "description": "tq - QUnit.module", + "id": 558, + "trigger": "tq.module" + }, + { + "description": "tq - QUnit.only", + "id": 559, + "trigger": "tq.only" + }, + { + "description": "tq - push", + "id": 560, + "trigger": "tq.push" + }, + { + "description": "tq - QUnit.skip", + "id": 561, + "trigger": "tq.skip" + }, + { + "description": "tq - QUnit.stack", + "id": 562, + "trigger": "tq.stack" + }, + { + "description": "tq - QUnit.testDone", + "id": 563, + "trigger": "tq.tdone" + }, + { + "description": "tq - QUnit.testStart", + "id": 564, + "trigger": "tq.tstart" + }, + { + "description": "tq - Test", + "id": 565, + "trigger": "tq.test" + }, + { + "description": "ts - Assert alwaysCalledOn", + "id": 566, + "trigger": "ts.acon" + }, + { + "description": "ts - Assert alwaysCalledWithExactly", + "id": 567, + "trigger": "ts.acalledwe" + }, + { + "description": "ts - Assert alwaysCalledWithMatch", + "id": 568, + "trigger": "ts.acalledwm" + }, + { + "description": "ts - Assert alwaysCalledWith", + "id": 569, + "trigger": "ts.acalledw" + }, + { + "description": "ts - Assert alwaysThrew", + "id": 570, + "trigger": "ts.athrew" + }, + { + "description": "ts - Assert callCount", + "id": 571, + "trigger": "ts.ccount" + }, + { + "description": "ts - Assert callOrder", + "id": 572, + "trigger": "ts.corder" + }, + { + "description": "ts - Assert calledOn", + "id": 573, + "trigger": "ts.con" + }, + { + "description": "ts - Assert calledOnce", + "id": 574, + "trigger": "ts.calledo" + }, + { + "description": "ts - Assert calledThrice", + "id": 575, + "trigger": "ts.calledth" + }, + { + "description": "ts - Assert calledTwice", + "id": 576, + "trigger": "ts.calledt" + }, + { + "description": "ts - Assert calledWithExactly", + "id": 577, + "trigger": "ts.calledwe" + }, + { + "description": "ts - Assert calledWithMatch", + "id": 578, + "trigger": "ts.calledwm" + }, + { + "description": "ts - Assert calledWith", + "id": 579, + "trigger": "ts.calledw" + }, + { + "description": "ts - Assert called", + "id": 580, + "trigger": "ts.called" + }, + { + "description": "ts - Assert expose", + "id": 581, + "trigger": "ts.expose" + }, + { + "description": "ts - Assert failException", + "id": 582, + "trigger": "ts.faile" + }, + { + "description": "ts - Assert fail", + "id": 583, + "trigger": "ts.afail" + }, + { + "description": "ts - Assert neverCalledWithMatch", + "id": 584, + "trigger": "ts.ncalledwm" + }, + { + "description": "ts - Assert neverCalledWith", + "id": 585, + "trigger": "ts.ncalledw" + }, + { + "description": "ts - Assert notCalled", + "id": 586, + "trigger": "ts.ncalled" + }, + { + "description": "ts - Assert pass", + "id": 587, + "trigger": "ts.pass" + }, + { + "description": "ts - Assert threw", + "id": 588, + "trigger": "ts.threw" + }, + { + "description": "j - if else", + "id": 589, + "trigger": "j.ifelse" + }, + { + "description": "j - switch", + "id": 590, + "trigger": "j.switch" + }, + { + "description": "j - console.dir", + "id": 591, + "trigger": "j.cd" + }, + { + "description": "j - console.error", + "id": 592, + "trigger": "j.ce" + }, + { + "description": "j - console.info", + "id": 593, + "trigger": "j.ci" + }, + { + "description": "j - console.log", + "id": 594, + "trigger": "j.cl" + }, + { + "description": "j - console.warn", + "id": 595, + "trigger": "j.cw" + }, + { + "description": "j - addEventListener", + "id": 596, + "trigger": "j.ael" + }, + { + "description": "j - appendChild", + "id": 597, + "trigger": "j.ac" + }, + { + "description": "j - classList.add", + "id": 598, + "trigger": "j.cla" + }, + { + "description": "j - classList.remove", + "id": 599, + "trigger": "j.clr" + }, + { + "description": "j - classList.toggle", + "id": 600, + "trigger": "j.clt" + }, + { + "description": "j - createDocumentFragment", + "id": 601, + "trigger": "j.cdf" + }, + { + "description": "j - createElement", + "id": 602, + "trigger": "j.cel" + }, + { + "description": "j - getAttribute", + "id": 603, + "trigger": "j.gattr" + }, + { + "description": "j - getElementById", + "id": 604, + "trigger": "j.gid" + }, + { + "description": "j - getElementsByClassName", + "id": 605, + "trigger": "j.gclass" + }, + { + "description": "j - getElementsByTagName", + "id": 606, + "trigger": "j.gtag" + }, + { + "description": "j - innerHTML", + "id": 607, + "trigger": "j.ih" + }, + { + "description": "j - querySelectorAll", + "id": 608, + "trigger": "j.qsa" + }, + { + "description": "j - querySelector", + "id": 609, + "trigger": "j.qs" + }, + { + "description": "j - removeAttribute", + "id": 610, + "trigger": "j.rattr" + }, + { + "description": "j - removeChild", + "id": 611, + "trigger": "j.rc" + }, + { + "description": "j - setAttribute", + "id": 612, + "trigger": "j.sattr" + }, + { + "description": "j - textContent", + "id": 613, + "trigger": "j.tc" + }, + { + "description": "j - Anonymous Function", + "id": 614, + "trigger": "j.afn" + }, + { + "description": "j - Function apply", + "id": 615, + "trigger": "j.apply" + }, + { + "description": "j - Function call", + "id": 616, + "trigger": "j.call" + }, + { + "description": "j - Immediately-invoked function expression", + "id": 617, + "trigger": "j.iife" + }, + { + "description": "j - Prototype", + "id": 618, + "trigger": "j.prot" + }, + { + "description": "j - Function", + "id": 619, + "trigger": "j.fn" + }, + { + "description": "j - JSON.parse", + "id": 620, + "trigger": "j.jsonp" + }, + { + "description": "j - JSON.stringify", + "id": 621, + "trigger": "j.jsons" + }, + { + "description": "j - do while", + "id": 622, + "trigger": "j.dowhile" + }, + { + "description": "j - forEach", + "id": 623, + "trigger": "j.fore" + }, + { + "description": "j - for in", + "id": 624, + "trigger": "j.fori" + }, + { + "description": "j - for", + "id": 625, + "trigger": "j.for" + }, + { + "description": "j - while", + "id": 626, + "trigger": "j.while" + }, + { + "description": "j - New", + "id": 627, + "trigger": "j.new" + }, + { + "description": "j - Require", + "id": 628, + "trigger": "j.require" + }, + { + "description": "j - setInterval", + "id": 629, + "trigger": "j.sinterval" + }, + { + "description": "j - setTimeout", + "id": 630, + "trigger": "j.stimeout" + }, + { + "description": "r - Brazilian CNPJ", + "id": 631, + "trigger": "r.bcpfcnpj" + }, + { + "description": "r - Brazilian CPF/CNPJ", + "id": 632, + "trigger": "r.bcpfcnpj" + }, + { + "description": "r - Brazilian CPF", + "id": 633, + "trigger": "r.bcpf" + }, + { + "description": "r - Brazilian Phone", + "id": 634, + "trigger": "r.bphone" + }, + { + "description": "r - E-mail", + "id": 635, + "trigger": "r.email" + }, + { + "description": "sm - Action", + "id": 636, + "trigger": "sm.action" + }, + { + "description": "sm - Organization", + "id": 637, + "trigger": "sm.org" + }, + { + "description": "jsonld - Logotype", + "id": 638, + "trigger": "z.jsonld" + }, + { + "description": "microdata - Organization", + "id": 639, + "trigger": "z.microdata" + }, + { + "description": "microdata - Article", + "id": 640, + "trigger": "z.microdata" + }, + { + "description": "microdata - Book", + "id": 641, + "trigger": "z.microdata" + }, + { + "description": "microdata - Game", + "id": 642, + "trigger": "z.microdata" + }, + { + "description": "microdata - WebPage", + "id": 643, + "trigger": "z.microdata" + }, + { + "description": "rdfa - Breadcrumb", + "id": 644, + "trigger": "z.rdfa" + } +] \ No newline at end of file diff --git a/snippets/comment/README.md b/snippets/comment/README.md index 746051a..ce1cb66 100644 --- a/snippets/comment/README.md +++ b/snippets/comment/README.md @@ -1,6 +1,9 @@ # Comment Snippets - [HTML](html/) + - Basic + - Block + - Conditional - End Tag - [CSS](css/) - Basic diff --git a/snippets/comment/css/README.md b/snippets/comment/css/README.md index b53228f..15e54f4 100644 --- a/snippets/comment/css/README.md +++ b/snippets/comment/css/README.md @@ -1,14 +1,14 @@ # CSS Comments Snippets -Prefix `xc*` +Prefix `cc.*` -### [xcbasic] basic +### [cc.basic] basic ```css /* ${1:Basic comment} */ ``` -### [xcblock] block +### [cc.block] block ```css /** @@ -17,7 +17,7 @@ Prefix `xc*` */ ``` -### [xcsection] section +### [cc.section] section ```css /* ========================================================================== @@ -25,7 +25,7 @@ Prefix `xc*` ========================================================================== */ ``` -### [xcsubsection] sub-section +### [cc.subsection] sub-section ```css /* ${1:Sub-section} diff --git a/snippets/comment/css/css-comment-basic.sublime-snippet b/snippets/comment/css/css-comment-basic.sublime-snippet index b5a0787..46eee38 100644 --- a/snippets/comment/css/css-comment-basic.sublime-snippet +++ b/snippets/comment/css/css-comment-basic.sublime-snippet @@ -2,6 +2,6 @@ - xcbasic - xc - Basic Comment + cc.basic + cc - Basic Comment diff --git a/snippets/comment/css/css-comment-block.sublime-snippet b/snippets/comment/css/css-comment-block.sublime-snippet index 215204f..89bb692 100644 --- a/snippets/comment/css/css-comment-block.sublime-snippet +++ b/snippets/comment/css/css-comment-block.sublime-snippet @@ -5,6 +5,6 @@ * */ ]]> - xcblock - xc - Block Comment + cc.block + cc - Block Comment diff --git a/snippets/comment/css/css-comment-section.sublime-snippet b/snippets/comment/css/css-comment-section.sublime-snippet index 5555928..4f44bae 100644 --- a/snippets/comment/css/css-comment-section.sublime-snippet +++ b/snippets/comment/css/css-comment-section.sublime-snippet @@ -4,6 +4,6 @@ ${1:Section} ========================================================================== */ ]]> - xcsection - xc - Section Comment + cc.section + cc - Section Comment diff --git a/snippets/comment/css/css-comment-sub-section.sublime-snippet b/snippets/comment/css/css-comment-sub-section.sublime-snippet index 7e6b2ca..45bdfcb 100644 --- a/snippets/comment/css/css-comment-sub-section.sublime-snippet +++ b/snippets/comment/css/css-comment-sub-section.sublime-snippet @@ -3,6 +3,6 @@ /* ${1:Sub-section} ========================================================================== */ ]]> - xcsubsection - xc - Sub-section Comment + cc.subsection + cc - Sub-section Comment diff --git a/snippets/comment/html/README.md b/snippets/comment/html/README.md index 97cb9be..e61dfcd 100644 --- a/snippets/comment/html/README.md +++ b/snippets/comment/html/README.md @@ -1,8 +1,30 @@ # HTML Comments Snippets -Prefix `xh*` +Prefix `hc.*` -### [xhend] end tag +### [hc.basic] basic + +```html + +``` + +### [hc.block] block + +```html + +``` + +### [hc.cond] conditional + +```html + +``` + +### [hc.end] end tag ```html diff --git a/snippets/comment/html/html-basic.sublime-snippet b/snippets/comment/html/html-basic.sublime-snippet new file mode 100644 index 0000000..8d8d684 --- /dev/null +++ b/snippets/comment/html/html-basic.sublime-snippet @@ -0,0 +1,7 @@ + + +]]> + hc.basic + hc - Basic Comment + diff --git a/snippets/comment/html/html-block.sublime-snippet b/snippets/comment/html/html-block.sublime-snippet new file mode 100644 index 0000000..e0f5fbe --- /dev/null +++ b/snippets/comment/html/html-block.sublime-snippet @@ -0,0 +1,9 @@ + + +]]> + hc.block + hc - Block Comment + diff --git a/snippets/comment/html/html-conditional.sublime-snippet b/snippets/comment/html/html-conditional.sublime-snippet new file mode 100644 index 0000000..57c0fab --- /dev/null +++ b/snippets/comment/html/html-conditional.sublime-snippet @@ -0,0 +1,9 @@ + + + ${3} + +]]> + hc.cond + hc - Conditional Comment + diff --git a/snippets/comment/html/html-end-tag.sublime-snippet b/snippets/comment/html/html-end-tag.sublime-snippet index 843e363..61807dd 100644 --- a/snippets/comment/html/html-end-tag.sublime-snippet +++ b/snippets/comment/html/html-end-tag.sublime-snippet @@ -2,6 +2,6 @@ ]]> - xhend - xh - End Tag Comment + hc.end + hc - End Tag Comment diff --git a/snippets/comment/js/README.md b/snippets/comment/js/README.md index a0606c6..9ce9257 100644 --- a/snippets/comment/js/README.md +++ b/snippets/comment/js/README.md @@ -1,8 +1,50 @@ # JavaScript Comments Snippets -Prefix `xj*` +Prefix `jc.*` -### [xjmethod] method comment +### [jc.block] block + +```javascript +/** + * ${1:Description} + */ +``` + +### [jc.class] class + +```javascript +/** + * @class ${1:Class name} + * @param {${2:String}} ${3:Description of the param} + * @extends ${4:name of the } + * ${5:Documentation for the class} + */ +``` + +### [jc.constructor] constructor + +```javascript +/** + * @class ${1:Class name} + * ${2:Documentation for the class} + * + * @constructor + * ${3:Documentation for the constructor} + * @param {${4:String}} ${5:Description of the param} + */ +``` + +### [jc.event] event + +```javascript + /** + * @event ${1:click} + * ${2:Documentation for the event} + * @param {${3:String}} ${4:Description of the param} + */ +``` + +### [jc.method] method ```javascript /** @@ -13,7 +55,7 @@ Prefix `xj*` */ ``` -### [xjproperty] property comment +### [jc.property] property ```javascript /** diff --git a/snippets/comment/js/js-comment-block.sublime-snippet b/snippets/comment/js/js-comment-block.sublime-snippet new file mode 100644 index 0000000..01c111a --- /dev/null +++ b/snippets/comment/js/js-comment-block.sublime-snippet @@ -0,0 +1,9 @@ + + + jc.block + jc - Block Comment + diff --git a/snippets/comment/js/js-comment-class.sublime-snippet b/snippets/comment/js/js-comment-class.sublime-snippet new file mode 100644 index 0000000..113c7ad --- /dev/null +++ b/snippets/comment/js/js-comment-class.sublime-snippet @@ -0,0 +1,12 @@ + + + jc.class + jc - Class Comment + diff --git a/snippets/comment/js/js-comment-constructor.sublime-snippet b/snippets/comment/js/js-comment-constructor.sublime-snippet new file mode 100644 index 0000000..55aca0e --- /dev/null +++ b/snippets/comment/js/js-comment-constructor.sublime-snippet @@ -0,0 +1,14 @@ + + + jc.constructor + jc - Constructor Comment + diff --git a/snippets/comment/js/js-comment-event.sublime-snippet b/snippets/comment/js/js-comment-event.sublime-snippet new file mode 100644 index 0000000..5af549d --- /dev/null +++ b/snippets/comment/js/js-comment-event.sublime-snippet @@ -0,0 +1,11 @@ + + + jc.event + jc - Event Comment + diff --git a/snippets/comment/js/js-comment-methods.sublime-snippet b/snippets/comment/js/js-comment-methods.sublime-snippet index 78af47a..3b8a0d3 100644 --- a/snippets/comment/js/js-comment-methods.sublime-snippet +++ b/snippets/comment/js/js-comment-methods.sublime-snippet @@ -7,6 +7,6 @@ * @return {${5:String}} ${6:Description of the return} */ ]]> - xjmethod - xj - Method Comment + jc.method + jc - Method Comment diff --git a/snippets/comment/js/js-comment-property.sublime-snippet b/snippets/comment/js/js-comment-property.sublime-snippet index 3e824fe..30cef85 100644 --- a/snippets/comment/js/js-comment-property.sublime-snippet +++ b/snippets/comment/js/js-comment-property.sublime-snippet @@ -5,6 +5,6 @@ * ${3:Description} */ ]]> - xjproperty - xj - Property Comment + jc.property + jc - Property Comment diff --git a/snippets/css/README.md b/snippets/css/README.md index 77edbd9..0e4c9dc 100644 --- a/snippets/css/README.md +++ b/snippets/css/README.md @@ -1,10 +1,10 @@ # CSS Snippets -Prefix `c*` +Prefix `c.*` ## Font -### [cff] @font-face +### [c.ff] @font-face ```css @font-face { @@ -32,7 +32,7 @@ Prefix `c*` ## Media Querie -### [cmq] @media +### [c.mq] @media ```css @media ${1:all} and (${2:min-width}: ${3:768px}) { @@ -42,7 +42,7 @@ Prefix `c*` ## Keyframes -### [ck] @keyframes +### [c.k] @keyframes ```css @-webkit-keyframes ${1:[animation-name]} { diff --git a/snippets/css/css-font-face.sublime-snippet b/snippets/css/css-font-face.sublime-snippet index 4fc386f..f1f3521 100644 --- a/snippets/css/css-font-face.sublime-snippet +++ b/snippets/css/css-font-face.sublime-snippet @@ -22,6 +22,6 @@ } } ]]> - cff + c.ff c - @font-face structure diff --git a/snippets/css/css-keyframes.sublime-snippet b/snippets/css/css-keyframes.sublime-snippet index 6af4e8b..8e22b2d 100644 --- a/snippets/css/css-keyframes.sublime-snippet +++ b/snippets/css/css-keyframes.sublime-snippet @@ -17,6 +17,6 @@ 100% { ${3} } } ]]> - ck + c.k c - Keyframes diff --git a/snippets/css/css-media-querie.sublime-snippet b/snippets/css/css-media-querie.sublime-snippet index 57d3a88..7dc8f8a 100644 --- a/snippets/css/css-media-querie.sublime-snippet +++ b/snippets/css/css-media-querie.sublime-snippet @@ -4,6 +4,6 @@ ${4} } ]]> - cmq + c.mq c - Media Querie diff --git a/snippets/external/README.md b/snippets/external/README.md index 89d1620..4e8365f 100644 --- a/snippets/external/README.md +++ b/snippets/external/README.md @@ -1,10 +1,10 @@ # External Snippets -Prefix `e*` +Prefix `e.*` ## Analytics -### [ega] Google Analytics Object +### [e.ga] Google Analytics Object ```html $2 ``` + +### [e.gtm] Google Tag Manager + +```html + + + +${2} +``` diff --git a/snippets/external/ga.sublime-snippet b/snippets/external/ga.sublime-snippet index dcc85ef..98fe9d7 100644 --- a/snippets/external/ga.sublime-snippet +++ b/snippets/external/ga.sublime-snippet @@ -9,6 +9,6 @@ ga('send', 'pageview'); $2]]> - ega + e.ga e - Google Analytics diff --git a/snippets/external/gtm.sublime-snippet b/snippets/external/gtm.sublime-snippet new file mode 100644 index 0000000..1c907a0 --- /dev/null +++ b/snippets/external/gtm.sublime-snippet @@ -0,0 +1,13 @@ + + + + +${2}]]> + e.gtm + e - Google Tag Manager + diff --git a/snippets/html/README.md b/snippets/html/README.md index 4368baa..76d17a0 100644 --- a/snippets/html/README.md +++ b/snippets/html/README.md @@ -1,10 +1,25 @@ # HTML Snippets -Prefix `h*` +Prefix `h.*` ## Structure -### [hdoc] html document +### [h.b] html basic + +```html + + + + + ${1:Document} + + + $2 + + +``` + +### [h.doc] html document ```html @@ -26,7 +41,7 @@ Prefix `h*` ``` -### [hhtags] head tags +### [h.htags] head tags ```html diff --git a/snippets/html/html-basic.sublime-snippet b/snippets/html/html-basic.sublime-snippet new file mode 100644 index 0000000..91cd7d1 --- /dev/null +++ b/snippets/html/html-basic.sublime-snippet @@ -0,0 +1,16 @@ + + + + + + ${1:Document} + + + $2 + + +]]> + h.b + h - Basic HTML document + diff --git a/snippets/html/html-document.sublime-snippet b/snippets/html/html-document.sublime-snippet index 2d945ff..be56e0d 100644 --- a/snippets/html/html-document.sublime-snippet +++ b/snippets/html/html-document.sublime-snippet @@ -18,6 +18,6 @@ ]]> - hdoc - h - Basic HTML document + h.doc + h - HTML document diff --git a/snippets/html/html-head.sublime-snippet b/snippets/html/html-head.sublime-snippet index a82bfa3..811085c 100644 --- a/snippets/html/html-head.sublime-snippet +++ b/snippets/html/html-head.sublime-snippet @@ -34,6 +34,6 @@ ]]> - hhtags + h.htags h - Head tags diff --git a/snippets/html/wai-aria/README.md b/snippets/html/wai-aria/README.md new file mode 100644 index 0000000..c23b6e3 --- /dev/null +++ b/snippets/html/wai-aria/README.md @@ -0,0 +1,16 @@ + +# HTML Snippets + +## WAI-ARIA + +Prefix `hw.*` + +### [hw.alertdialog] alertdialog + +```html +
+

+

+ +
+``` diff --git a/snippets/html/wai-aria/html-wai-aria-alert-dialog.sublime-snippet b/snippets/html/wai-aria/html-wai-aria-alert-dialog.sublime-snippet new file mode 100644 index 0000000..924ec74 --- /dev/null +++ b/snippets/html/wai-aria/html-wai-aria-alert-dialog.sublime-snippet @@ -0,0 +1,11 @@ + + +

+

+ + +]]>
+ hw.alertdialog + hw - Alert Dialog +
diff --git a/snippets/js/README.md b/snippets/js/README.md index e14f471..e85eaa2 100644 --- a/snippets/js/README.md +++ b/snippets/js/README.md @@ -1,5 +1,17 @@ # JavaScript Snippets - [Native Javascript](vanilla/) -- [jQuery](jquery/) -- [BDD](bdd/) +- [Libraries](libraries/) + - [jQuery](jquery/) +- [Patterns](patterns/) + - [Design Patterns](patterns/design-patterns/) + - [UMD](patterns/umd/) +- [Tests](tests/) + - [Common](common/) + - [Chai](chai/) + - [Jasmine](jasmine/) + - [Mocha](mocha/) + - [Node](node/) + - [QUnit](qunit/) + - [Sinon](sinon/) + diff --git a/snippets/js/bdd/README.md b/snippets/js/bdd/README.md deleted file mode 100644 index c8f3670..0000000 --- a/snippets/js/bdd/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# BDD JavaScript Snippets - -## Prefix `b*` - -- [Structure](structure/) - - afterEach - - beforeEach - - describe - - it -- [Expect](expect/) - - toBeCloseTo - - toBeContain - - toBeDefined - - toBeFalsy - - toBeGreaterThan - - toBeLessThan - - toBeNaN - - toBeNull - - toBeTruthy - - toBeUndefined - - toBe - - toEqual - - toHaveBeenCalledTimes - - toHaveBeenCalledWith - - toHaveBeenCalled - - toMatch - - toThrowError - - toThrow diff --git a/snippets/js/bdd/expect/bdd-expect-to-be-contain.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-be-contain.sublime-snippet deleted file mode 100644 index 0083628..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-be-contain.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bcontain - b - Expect toBeContain - diff --git a/snippets/js/bdd/expect/bdd-expect-to-be-defined.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-be-defined.sublime-snippet deleted file mode 100644 index 7c73d9d..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-be-defined.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bdefined - b - Expect toBeDefined - diff --git a/snippets/js/bdd/expect/bdd-expect-to-be-falsy.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-be-falsy.sublime-snippet deleted file mode 100644 index d352473..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-be-falsy.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bfalsy - b - Expect toBeFalsy - diff --git a/snippets/js/bdd/expect/bdd-expect-to-be-greater-than.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-be-greater-than.sublime-snippet deleted file mode 100644 index 18d7543..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-be-greater-than.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bgreaterthan - b - Expect toBeGreaterThan - diff --git a/snippets/js/bdd/expect/bdd-expect-to-be-less-than.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-be-less-than.sublime-snippet deleted file mode 100644 index 2a93f71..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-be-less-than.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - blessthan - b - Expect toBeLessThan - diff --git a/snippets/js/bdd/expect/bdd-expect-to-be-nan.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-be-nan.sublime-snippet deleted file mode 100644 index fb76530..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-be-nan.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bnan - b - Expect toBeNaN - diff --git a/snippets/js/bdd/expect/bdd-expect-to-be-null.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-be-null.sublime-snippet deleted file mode 100644 index fba3abf..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-be-null.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bnull - b - Expect toBeNull - diff --git a/snippets/js/bdd/expect/bdd-expect-to-be-truthy.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-be-truthy.sublime-snippet deleted file mode 100644 index 41df4f9..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-be-truthy.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - btruthy - b - Expect toBeTruthy - diff --git a/snippets/js/bdd/expect/bdd-expect-to-be-undefined.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-be-undefined.sublime-snippet deleted file mode 100644 index b789186..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-be-undefined.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bundefined - b - Expect toBeUndefined - diff --git a/snippets/js/bdd/expect/bdd-expect-to-equal.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-equal.sublime-snippet deleted file mode 100644 index bd61f60..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-equal.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bequal - b - Expect toEqual - diff --git a/snippets/js/bdd/expect/bdd-expect-to-have-been-called-times.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-have-been-called-times.sublime-snippet deleted file mode 100644 index bbc8e88..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-have-been-called-times.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bhbctimes - b - Expect toHaveBeenCalledTimes - diff --git a/snippets/js/bdd/expect/bdd-expect-to-have-been-called.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-have-been-called.sublime-snippet deleted file mode 100644 index fe6ef59..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-have-been-called.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bhbc - b - Expect toHaveBeenCalled - diff --git a/snippets/js/bdd/expect/bdd-expect-to-match.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-match.sublime-snippet deleted file mode 100644 index ab13afe..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-match.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bmatch - b - Expect toMatch - diff --git a/snippets/js/bdd/expect/bdd-expect-to-throw-error.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-throw-error.sublime-snippet deleted file mode 100644 index 1b26694..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-throw-error.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bthrowerror - b - Expect toThrowError - diff --git a/snippets/js/bdd/expect/bdd-expect-to-throw.sublime-snippet b/snippets/js/bdd/expect/bdd-expect-to-throw.sublime-snippet deleted file mode 100644 index 6d6d3ee..0000000 --- a/snippets/js/bdd/expect/bdd-expect-to-throw.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - bthrow - b - Expect toThrow - diff --git a/snippets/js/bdd/structure/README.md b/snippets/js/bdd/structure/README.md deleted file mode 100644 index c807a3b..0000000 --- a/snippets/js/bdd/structure/README.md +++ /dev/null @@ -1,33 +0,0 @@ -## BDD structure Snippets - -### [baftereach] afterEach - -```javascript -afterEach(function() { - ${1} -}); -``` - -### [bbeforeeach] beforeEach - -```javascript -beforeEach(function() { - ${1} -}); -``` - -### [bdescribe] describe - -```javascript -describe("$1", function() { - $2 -}); -``` - -### [bit] it - -```javascript -it("${1}", function() { - ${2} -}); -``` diff --git a/snippets/js/bdd/structure/bdd-before-each.sublime-snippet b/snippets/js/bdd/structure/bdd-before-each.sublime-snippet deleted file mode 100644 index e91a8c2..0000000 --- a/snippets/js/bdd/structure/bdd-before-each.sublime-snippet +++ /dev/null @@ -1,9 +0,0 @@ - - - bbeforeeach - b - beforeEach - diff --git a/snippets/js/es6/README.md b/snippets/js/es6/README.md new file mode 100644 index 0000000..9849ea4 --- /dev/null +++ b/snippets/js/es6/README.md @@ -0,0 +1,14 @@ +# ECMA Script 2015 Snippets + +- [Arrows](arrows/) +- [Classes](classes/) +- [Collections](collections/) +- [Enhanced object literals](enhanced-object-literals/) +- [Generators](generators/) +- [Let](let/) +- [Math number-string-array-object-apis](math-number-string-array-object-apis/) +- [Modules](modules/) +- [Promises](promises/) +- [Proxies](proxies/) +- [Reflect-api](reflect-api/) +- [Template-strings](template-strings/) diff --git a/snippets/js/es6/arrows/README.md b/snippets/js/es6/arrows/README.md new file mode 100644 index 0000000..79b56db --- /dev/null +++ b/snippets/js/es6/arrows/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.arrow] ES6 Arrow Function + +```javascript +${1:var} => ${2:function} +``` diff --git a/snippets/js/es6/arrows/es6-arrows.sublime-snippet b/snippets/js/es6/arrows/es6-arrows.sublime-snippet new file mode 100644 index 0000000..ef64479 --- /dev/null +++ b/snippets/js/es6/arrows/es6-arrows.sublime-snippet @@ -0,0 +1,7 @@ + + ${2:function} +]]> + je.arrow + je - ES6 Arrow Function + diff --git a/snippets/js/es6/classes/README.md b/snippets/js/es6/classes/README.md new file mode 100644 index 0000000..7113f05 --- /dev/null +++ b/snippets/js/es6/classes/README.md @@ -0,0 +1,13 @@ +## ECMA Script 2015 Snippets + +### [je.class] ES6 Class + +```javascript +class ${1:Classname} ${2:extends AnotherClass} { + ${3:constructor(${4:args}) { + ${5:// code} + \}} + + ${6:// methods} +}$7 +``` diff --git a/snippets/js/es6/classes/es6-class.sublime-snippet b/snippets/js/es6/classes/es6-class.sublime-snippet new file mode 100644 index 0000000..5324841 --- /dev/null +++ b/snippets/js/es6/classes/es6-class.sublime-snippet @@ -0,0 +1,13 @@ + + + je.class + je - ES6 Class + diff --git a/snippets/js/es6/collections/README.md b/snippets/js/es6/collections/README.md new file mode 100644 index 0000000..6c2a0f6 --- /dev/null +++ b/snippets/js/es6/collections/README.md @@ -0,0 +1,25 @@ +## ECMA Script 2015 Snippets + +### [je.map] ES6 Map + +```javascript +var ${1:map} = new Map(); +``` + +### [je.set] ES6 Set + +```javascript +var ${1:set} = new Set(); +``` + +### [je.wmap] ES6 WeakMap + +```javascript +var ${1:map} = new WeakMap(); +``` + +### [je.wset] ES6 WeakSet + +```javascript +var ${1:set} = new WeakSet(); +``` diff --git a/snippets/js/es6/collections/es6-map.sublime-snippet b/snippets/js/es6/collections/es6-map.sublime-snippet new file mode 100644 index 0000000..435ad3b --- /dev/null +++ b/snippets/js/es6/collections/es6-map.sublime-snippet @@ -0,0 +1,7 @@ + + + je.map + je - ES6 Map + diff --git a/snippets/js/es6/collections/es6-set.sublime-snippet b/snippets/js/es6/collections/es6-set.sublime-snippet new file mode 100644 index 0000000..87f85a4 --- /dev/null +++ b/snippets/js/es6/collections/es6-set.sublime-snippet @@ -0,0 +1,7 @@ + + + je.set + je - ES6 Set + diff --git a/snippets/js/es6/collections/es6-weak-map.sublime-snippet b/snippets/js/es6/collections/es6-weak-map.sublime-snippet new file mode 100644 index 0000000..c7b6883 --- /dev/null +++ b/snippets/js/es6/collections/es6-weak-map.sublime-snippet @@ -0,0 +1,7 @@ + + + je.wmap + je - ES6 WeakMap + diff --git a/snippets/js/es6/collections/es6-weak-set.sublime-snippet b/snippets/js/es6/collections/es6-weak-set.sublime-snippet new file mode 100644 index 0000000..bf48c42 --- /dev/null +++ b/snippets/js/es6/collections/es6-weak-set.sublime-snippet @@ -0,0 +1,7 @@ + + + je.wset + je - ES6 WeakSet + diff --git a/snippets/js/es6/enhanced-object-literals/README.md b/snippets/js/es6/enhanced-object-literals/README.md new file mode 100644 index 0000000..e8d0fbd --- /dev/null +++ b/snippets/js/es6/enhanced-object-literals/README.md @@ -0,0 +1,13 @@ +## ECMA Script 2015 Snippets + +### [je.object] ES6 Object Literal + +```javascript +var ${1:obj} = { + __proto__: ${2:theProtoObj,} + ${3:handler,} + ${4:toString() { + ${5:return "object";} + }} +}$6 +``` diff --git a/snippets/js/es6/enhanced-object-literals/es6-object-literal.sublime-snippet b/snippets/js/es6/enhanced-object-literals/es6-object-literal.sublime-snippet new file mode 100644 index 0000000..2ed5dea --- /dev/null +++ b/snippets/js/es6/enhanced-object-literals/es6-object-literal.sublime-snippet @@ -0,0 +1,13 @@ + + + je.object + je - ES6 Object Literal + diff --git a/snippets/js/es6/generators/README.md b/snippets/js/es6/generators/README.md new file mode 100644 index 0000000..e5b4efe --- /dev/null +++ b/snippets/js/es6/generators/README.md @@ -0,0 +1,17 @@ +## ECMA Script 2015 Snippets + +### [je.generators] ES6 Generators + +```javascript +var ${1:generator} = { + [Symbol:iterator]: function*() { + ${2:var ${3:pre} = ${4:0}, ${5:cur} = ${6:1};} + for(;;) { + ${7:var ${8:temp} = ${9:pre}; + ${9:pre} = ${10:cur}; + ${10:cur} += ${8:temp}; + yield ${10:cur};} + } + } +}; +``` diff --git a/snippets/js/es6/generators/es6-generators.sublime-snippet b/snippets/js/es6/generators/es6-generators.sublime-snippet new file mode 100644 index 0000000..3f73229 --- /dev/null +++ b/snippets/js/es6/generators/es6-generators.sublime-snippet @@ -0,0 +1,17 @@ + + + je.generators + je - ES6 Generators + diff --git a/snippets/js/es6/let/README.md b/snippets/js/es6/let/README.md new file mode 100644 index 0000000..c9937f7 --- /dev/null +++ b/snippets/js/es6/let/README.md @@ -0,0 +1,23 @@ +## ECMA Script 2015 Snippets + +### [je.leti] ES6 For Loop Iterator using Let + +```javascript +let ${1:v} = { + [Symbol.iterator]() { + ${2:let pre = ${3:0}, cur = ${4:1};} + return { + next() { + ${5:[pre, cur] = [cur, pre + cur];} + ${6:return ${7:\{ done: ${8:false}, value: ${9:cur}\};}} + } + }; + } +};$10 +``` + +### [je.let] ES6 Let + +```javascript +let ${1:${2:x} = ${3:'something'};$4} +``` diff --git a/snippets/js/es6/let/es6-let-for.sublime-snippet b/snippets/js/es6/let/es6-let-for.sublime-snippet new file mode 100644 index 0000000..20c3fba --- /dev/null +++ b/snippets/js/es6/let/es6-let-for.sublime-snippet @@ -0,0 +1,17 @@ + + + je.leti + je - ES6 For Loop Iterator using Let + diff --git a/snippets/js/es6/let/es6-let.sublime-snippet b/snippets/js/es6/let/es6-let.sublime-snippet new file mode 100644 index 0000000..f6f8a78 --- /dev/null +++ b/snippets/js/es6/let/es6-let.sublime-snippet @@ -0,0 +1,7 @@ + + + je.let + je - ES6 Let + diff --git a/snippets/js/es6/math-number-string-array-object-apis/README.md b/snippets/js/es6/math-number-string-array-object-apis/README.md new file mode 100644 index 0000000..6fac579 --- /dev/null +++ b/snippets/js/es6/math-number-string-array-object-apis/README.md @@ -0,0 +1,28 @@ +## ECMA Script 2015 Snippets + +### [je.z.math] Math + +```javascript +Number.EPSILON +Number.isInteger(Infinity) // false +Number.isNaN("NaN") // false + +Math.acosh(3) // 1.762747174039086 +Math.hypot(3, 4) // 5 +Math.imul(Math.pow(2, 32) - 1, Math.pow(2, 32) - 2) // 2 + +"abcde".includes("cd") // true +"abc".repeat(3) // "abcabcabc" + +Array.from(document.querySelectorAll('*')) // Returns a real Array +Array.of(1, 2, 3) // Similar to new Array(...), but without special one-arg behavior +[0, 0, 0].fill(7, 1) // [0,7,7] +[1, 2, 3].find(x => x == 3) // 3 +[1, 2, 3].findIndex(x => x == 2) // 1 +[1, 2, 3, 4, 5].copyWithin(3, 0) // [1, 2, 3, 1, 2] +["a", "b", "c"].entries() // iterator [0, "a"], [1,"b"], [2,"c"] +["a", "b", "c"].keys() // iterator 0, 1, 2 +["a", "b", "c"].values() // iterator "a", "b", "c" + +Object.assign(Point, { origin: new Point(0,0) }) +``` diff --git a/snippets/js/es6/math-number-string-array-object-apis/es6.sublime-snippet b/snippets/js/es6/math-number-string-array-object-apis/es6.sublime-snippet new file mode 100644 index 0000000..32da440 --- /dev/null +++ b/snippets/js/es6/math-number-string-array-object-apis/es6.sublime-snippet @@ -0,0 +1,28 @@ + + x == 3) // 3 +[1, 2, 3].findIndex(x => x == 2) // 1 +[1, 2, 3, 4, 5].copyWithin(3, 0) // [1, 2, 3, 1, 2] +["a", "b", "c"].entries() // iterator [0, "a"], [1,"b"], [2,"c"] +["a", "b", "c"].keys() // iterator 0, 1, 2 +["a", "b", "c"].values() // iterator "a", "b", "c" + +Object.assign(Point, { origin: new Point(0,0) }) +]]> + je.z.math + je - Math + diff --git a/snippets/js/es6/modules/README.md b/snippets/js/es6/modules/README.md new file mode 100644 index 0000000..81fdd48 --- /dev/null +++ b/snippets/js/es6/modules/README.md @@ -0,0 +1,49 @@ +## ECMA Script 2015 Snippets + +### [je.simport] ES6 Dynamic Module Import + +```javascript +System.import(${1:'my-module'})${2:.then(function(${3:m}) \{ + $3 +\})}; +``` + +### [je.efunction] ES6 Module Export Function + +```javascript +export function ${2:name}(${3:args}) { + $4 +} +``` + +### [je.evariable] ES6 Module Export Variable + +```javascript +export var ${1:myvar} = ${2:value}; +``` + +### [je.import] ES6 Module Import + +```javascript +import ${1:*} ${2:as ${3:mod}} from ${4:"lib/package"}; +``` + +### [je.loader] ES6 Loader Class + +```javascript +var ${1:loader} = new Loader({ + ${2:global: fixup(window)} +}); +``` + +### [je.sget] ES6 System Get Module + +```javascript +System.get(${1:'module'}); +``` + +### [je.sset] ES6 System Set Module + +```javascript +System.set(${1:'jquery'}, ${2:Module(${3:\{\$: \$\}})}); +``` diff --git a/snippets/js/es6/modules/es6-dynamic-import.sublime-snippet b/snippets/js/es6/modules/es6-dynamic-import.sublime-snippet new file mode 100644 index 0000000..28e457a --- /dev/null +++ b/snippets/js/es6/modules/es6-dynamic-import.sublime-snippet @@ -0,0 +1,9 @@ + + + je.simport + je - ES6 Dynamic Module Import + diff --git a/snippets/js/es6/modules/es6-export-function.sublime-snippet b/snippets/js/es6/modules/es6-export-function.sublime-snippet new file mode 100644 index 0000000..4e38398 --- /dev/null +++ b/snippets/js/es6/modules/es6-export-function.sublime-snippet @@ -0,0 +1,9 @@ + + + je.efunction + je - ES6 Module Export Function + diff --git a/snippets/js/es6/modules/es6-export-variable.sublime-snippet b/snippets/js/es6/modules/es6-export-variable.sublime-snippet new file mode 100644 index 0000000..5eab284 --- /dev/null +++ b/snippets/js/es6/modules/es6-export-variable.sublime-snippet @@ -0,0 +1,7 @@ + + + je.evariable + je - ES6 Module Export Variable + diff --git a/snippets/js/es6/modules/es6-import.sublime-snippet b/snippets/js/es6/modules/es6-import.sublime-snippet new file mode 100644 index 0000000..9f54056 --- /dev/null +++ b/snippets/js/es6/modules/es6-import.sublime-snippet @@ -0,0 +1,7 @@ + + + je.import + je - ES6 Module Import + diff --git a/snippets/js/es6/modules/es6-loader-class.sublime-snippet b/snippets/js/es6/modules/es6-loader-class.sublime-snippet new file mode 100644 index 0000000..ba0dc46 --- /dev/null +++ b/snippets/js/es6/modules/es6-loader-class.sublime-snippet @@ -0,0 +1,9 @@ + + + je.loader + je - ES6 Loader Class + diff --git a/snippets/js/es6/modules/es6-system-get.sublime-snippet b/snippets/js/es6/modules/es6-system-get.sublime-snippet new file mode 100644 index 0000000..67e5397 --- /dev/null +++ b/snippets/js/es6/modules/es6-system-get.sublime-snippet @@ -0,0 +1,7 @@ + + + je.sget + je - ES6 System Get Module + diff --git a/snippets/js/es6/modules/es6-system-set.sublime-snippet b/snippets/js/es6/modules/es6-system-set.sublime-snippet new file mode 100644 index 0000000..8520a89 --- /dev/null +++ b/snippets/js/es6/modules/es6-system-set.sublime-snippet @@ -0,0 +1,7 @@ + + + je.sset + je - ES6 System Set Module + diff --git a/snippets/js/es6/promises/README.md b/snippets/js/es6/promises/README.md new file mode 100644 index 0000000..d8428ca --- /dev/null +++ b/snippets/js/es6/promises/README.md @@ -0,0 +1,9 @@ +## ECMA Script 2015 Snippets + +### [je.promise] ES6 Promise + +```javascript +Promise((resolve, reject) => { + $2 +}); +``` diff --git a/snippets/js/es6/promises/es6-promise.sublime-snippet b/snippets/js/es6/promises/es6-promise.sublime-snippet new file mode 100644 index 0000000..60e0176 --- /dev/null +++ b/snippets/js/es6/promises/es6-promise.sublime-snippet @@ -0,0 +1,9 @@ + + { + $2 +}); +]]> + je.promise + je - ES6 Promise + diff --git a/snippets/js/es6/proxies/README.md b/snippets/js/es6/proxies/README.md new file mode 100644 index 0000000..4b72a48 --- /dev/null +++ b/snippets/js/es6/proxies/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.proxy] ES6 Proxy + +```javascript +var ${1:p} = new Proxy(${2:target}, ${3:handler}); +``` diff --git a/snippets/js/es6/proxies/es6-proxy.sublime-snippet b/snippets/js/es6/proxies/es6-proxy.sublime-snippet new file mode 100644 index 0000000..407c33a --- /dev/null +++ b/snippets/js/es6/proxies/es6-proxy.sublime-snippet @@ -0,0 +1,7 @@ + + + je.proxy + je - ES6 Proxy + diff --git a/snippets/js/es6/reflect-api/README.md b/snippets/js/es6/reflect-api/README.md new file mode 100644 index 0000000..46fee76 --- /dev/null +++ b/snippets/js/es6/reflect-api/README.md @@ -0,0 +1,85 @@ +## ECMA Script 2015 Snippets + +### [je.rapply] ES6 Reflect Apply + +```javascript +Reflect.apply(${1:target}, ${2:thisArgument}, ${3:argumentsList}); +``` + +### [je.rconstruct] ES6 Reflect Construct + +```javascript +Reflect.construct(${1:target}, ${2:argumentsList}${3:, ${4:newTarget}}); +``` + +### [je.rdproperty] ES6 Reflect Define Property + +```javascript +Reflect.defineProperty(${1:target}, ${2:propertyKey}, ${3:attributes}); +``` + +### [je.rdelproperty] ES6 Reflect Delete Property + +```javascript +Reflect.deleteProperty(${1:target}, ${2:propertyKey}); +``` + +### [je.renumerate] ES6 Reflect Enumerate + +```javascript +Reflect.enumerate(${1:target}); +``` + +### [je.rget] ES6 Reflect Get + +```javascript +Reflect.get(${1:target}, ${2:propertyKey}${3:, ${4:receiver}}); +``` + +### [je.rgopdescriptor] ES6 Reflect Get Property Descriptor + +```javascript +Reflect.getOwnPropertyDescriptor(${1:target}, ${2:propertyKey}); +``` + +### [je.rgprototypeof] ES6 Reflect Get Prototype Of + +```javascript +Reflect.getPrototypeOf(${1:target}); +``` + +### [je.rhas] ES6 Reflect Has + +```javascript +Reflect.has(${1:target}, ${propertyKey}); +``` + +### [je.riextensible] ES6 Reflect Is Extensible + +```javascript +Reflect.isExtensible(${1:target}); +``` + +### [je.rokeys] ES6 Reflect Own Keys + +```javascript +Reflect.ownKeys(${1:target}); +``` + +### [je.rpextensions] ES6 Reflect Prevent Extensions + +```javascript +Reflect.preventExtensions(${1:target}); +``` + +### [je.rset] ES6 Reflect Set + +```javascript +Reflect.set(${1:target}, ${2:propertyKey}, ${3:value}${4:, ${5:receiver}}); +``` + +### [je.rsprototypeof] ES6 Reflect Set Prototype Of + +```javascript +Reflect.setPrototypeOf(${1:target}, ${prototype}); +``` diff --git a/snippets/js/es6/reflect-api/es6-reflect-apply.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-apply.sublime-snippet new file mode 100644 index 0000000..8b76711 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-apply.sublime-snippet @@ -0,0 +1,7 @@ + + + je.rapply + je - ES6 Reflect Apply + diff --git a/snippets/js/es6/reflect-api/es6-reflect-construct.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-construct.sublime-snippet new file mode 100644 index 0000000..aaa499b --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-construct.sublime-snippet @@ -0,0 +1,7 @@ + + + je.rconstruct + je - ES6 Reflect Construct + diff --git a/snippets/js/es6/reflect-api/es6-reflect-defineProperty.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-defineProperty.sublime-snippet new file mode 100644 index 0000000..0faac12 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-defineProperty.sublime-snippet @@ -0,0 +1,7 @@ + + + je.rdproperty + je - ES6 Reflect Define Property + diff --git a/snippets/js/es6/reflect-api/es6-reflect-deleteProperty.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-deleteProperty.sublime-snippet new file mode 100644 index 0000000..d3ba95b --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-deleteProperty.sublime-snippet @@ -0,0 +1,7 @@ + + + je.rdelproperty + je - ES6 Reflect Delete Property + diff --git a/snippets/js/es6/reflect-api/es6-reflect-enumerate.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-enumerate.sublime-snippet new file mode 100644 index 0000000..692d742 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-enumerate.sublime-snippet @@ -0,0 +1,7 @@ + + + je.renumerate + je - ES6 Reflect Enumerate + diff --git a/snippets/js/es6/reflect-api/es6-reflect-get.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-get.sublime-snippet new file mode 100644 index 0000000..2c6ffb0 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-get.sublime-snippet @@ -0,0 +1,7 @@ + + + je.rget + je - ES6 Reflect Get + diff --git a/snippets/js/es6/reflect-api/es6-reflect-getOwnProperty.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-getOwnProperty.sublime-snippet new file mode 100644 index 0000000..5dda007 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-getOwnProperty.sublime-snippet @@ -0,0 +1,7 @@ + + + je.rgopdescriptor + je - ES6 Reflect Get Property Descriptor + diff --git a/snippets/js/es6/reflect-api/es6-reflect-getPrototypeOf.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-getPrototypeOf.sublime-snippet new file mode 100644 index 0000000..8e63b63 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-getPrototypeOf.sublime-snippet @@ -0,0 +1,7 @@ + + + je.rgprototypeof + je - ES6 Reflect Get Prototype Of + diff --git a/snippets/js/es6/reflect-api/es6-reflect-has.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-has.sublime-snippet new file mode 100644 index 0000000..e8b4fb1 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-has.sublime-snippet @@ -0,0 +1,7 @@ + + + je.rhas + je - ES6 Reflect Has + diff --git a/snippets/js/es6/reflect-api/es6-reflect-isExtensible.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-isExtensible.sublime-snippet new file mode 100644 index 0000000..6f74911 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-isExtensible.sublime-snippet @@ -0,0 +1,7 @@ + + + je.riextensible + je - ES6 Reflect Is Extensible + diff --git a/snippets/js/es6/reflect-api/es6-reflect-ownKeys.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-ownKeys.sublime-snippet new file mode 100644 index 0000000..afe2950 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-ownKeys.sublime-snippet @@ -0,0 +1,7 @@ + + + je.rokeys + je - ES6 Reflect Own Keys + diff --git a/snippets/js/es6/reflect-api/es6-reflect-preventExtensions.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-preventExtensions.sublime-snippet new file mode 100644 index 0000000..774f54d --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-preventExtensions.sublime-snippet @@ -0,0 +1,7 @@ + + + je.rpextensions + je - ES6 Reflect Prevent Extensions + diff --git a/snippets/js/es6/reflect-api/es6-reflect-set.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-set.sublime-snippet new file mode 100644 index 0000000..d036eba --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-set.sublime-snippet @@ -0,0 +1,7 @@ + + + je.rset + je - ES6 Reflect Set + diff --git a/snippets/js/es6/reflect-api/es6-reflect-setPrototypeOf.sublime-snippet b/snippets/js/es6/reflect-api/es6-reflect-setPrototypeOf.sublime-snippet new file mode 100644 index 0000000..1af78e9 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-setPrototypeOf.sublime-snippet @@ -0,0 +1,7 @@ + + + je.rsprototypeof + je - ES6 Reflect Set Prototype Of + diff --git a/snippets/js/es6/template-strings/README.md b/snippets/js/es6/template-strings/README.md new file mode 100644 index 0000000..27cf066 --- /dev/null +++ b/snippets/js/es6/template-strings/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.string] ES6 Template String + +```javascript +\$\{${1:var}\}$2 +``` diff --git a/snippets/js/es6/template-strings/es6-template-string.sublime-snippet b/snippets/js/es6/template-strings/es6-template-string.sublime-snippet new file mode 100644 index 0000000..02ec71d --- /dev/null +++ b/snippets/js/es6/template-strings/es6-template-string.sublime-snippet @@ -0,0 +1,7 @@ + + + je.string + je - ES6 Template String + diff --git a/snippets/js/jquery/utilities/jq-utilities-type.sublime-snippet b/snippets/js/jquery/utilities/jq-utilities-type.sublime-snippet deleted file mode 100644 index 8e6bf8f..0000000 --- a/snippets/js/jquery/utilities/jq-utilities-type.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - jqtype - jq - type - diff --git a/snippets/js/libraries/README.md b/snippets/js/libraries/README.md new file mode 100644 index 0000000..555b2ca --- /dev/null +++ b/snippets/js/libraries/README.md @@ -0,0 +1,4 @@ +# JavaScript Libraries Snippets + +- [jQuery](jquery/) +- [ReactJS](react/) diff --git a/snippets/js/jquery/README.md b/snippets/js/libraries/jquery/README.md similarity index 99% rename from snippets/js/jquery/README.md rename to snippets/js/libraries/jquery/README.md index bcb0f97..84198a4 100644 --- a/snippets/js/jquery/README.md +++ b/snippets/js/libraries/jquery/README.md @@ -1,6 +1,6 @@ # JQuery Snippets -## Prefix `jq*` +## Prefix `jq.*` - [Ajax](ajax/) - ajaxComplete diff --git a/snippets/js/jquery/ajax/README.md b/snippets/js/libraries/jquery/ajax/README.md similarity index 72% rename from snippets/js/jquery/ajax/README.md rename to snippets/js/libraries/jquery/ajax/README.md index 81a68ec..cd0c243 100644 --- a/snippets/js/jquery/ajax/README.md +++ b/snippets/js/libraries/jquery/ajax/README.md @@ -1,90 +1,90 @@ ## Ajax -### [jqa] ajax +### [jq.a] ajax ```javascript ${1:\$}.ajax(${2:{settings}}); ``` -### [jqacomplete] ajaxComplete +### [jq.acomplete] ajaxComplete ```javascript ${1:\$(document)}.ajaxComplete(${2:handler}); ``` -### [jqaerror] ajaxError +### [jq.aerror] ajaxError ```javascript ${1:\$(document)}.ajaxError(${2:handler}); ``` -### [jqgjson] getJSON +### [jq.gjson] getJSON ```javascript ${1:\$}.getJSON(${2:url}${3:, data}${4:, success}); ``` -### [jqgscript] getScript +### [jq.gscript] getScript ```javascript ${1:\$}.getScript(${2:url}${3:, success}); ``` -### [jqjget] jQuery get +### [jq.jget] jQuery get ```javascript ${1:\$}.get(${2:url}${3:, data}${4:, success}${5:, dataType}); ``` -### [jqload] load +### [jq.load] load ```javascript ${1:\$(document)}.load(${2:url}${3:, data}${4:, complete}); ``` -### [jqpost] post +### [jq.post] post ```javascript ${1:\$}.post(${2:url}${3:, data}${4:, success}${5:, dataType}); ``` -### [jqaprefilter] ajaxPrefilter +### [jq.aprefilter] ajaxPrefilter ```javascript ${1:\$}.ajaxPrefilter(${2:dataTypes,}${3:handler}); ``` -### [jqasend] ajaxSend +### [jq.asend] ajaxSend ```javascript ${1:\$(document)}.ajaxSend(${2:handler}); ``` -### [jqasetup] ajaxSetup +### [jq.asetup] ajaxSetup ```javascript ${1:\$}.ajaxSetup(${2:options}); ``` -### [jqastart] ajaxStart +### [jq.astart] ajaxStart ```javascript ${1:\$(document)}.ajaxStart(${2:handler}); ``` -### [jqastop] ajaxStop +### [jq.astop] ajaxStop ```javascript ${1:\$(document)}.ajaxStop(${2:handler}); ``` -### [jqasuccess] ajaxSuccess +### [jq.asuccess] ajaxSuccess ```javascript ${1:\$(document)}.ajaxSuccess(${2:handler}); ``` -### [jqatransport] ajaxTransport +### [jq.atransport] ajaxTransport ```javascript ${1:\$}.ajaxTransport(${2:dataType}, ${3:handlerv}); diff --git a/snippets/js/jquery/ajax/jq-ajax-1.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-1.sublime-snippet similarity index 79% rename from snippets/js/jquery/ajax/jq-ajax-1.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-1.sublime-snippet index b5253b9..3e1cb75 100644 --- a/snippets/js/jquery/ajax/jq-ajax-1.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-1.sublime-snippet @@ -2,6 +2,6 @@ - jqa + jq.a jq - ajax diff --git a/snippets/js/jquery/ajax/jq-ajax-complete.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-complete.sublime-snippet similarity index 78% rename from snippets/js/jquery/ajax/jq-ajax-complete.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-complete.sublime-snippet index 65b4f22..00155e5 100644 --- a/snippets/js/jquery/ajax/jq-ajax-complete.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-complete.sublime-snippet @@ -2,6 +2,6 @@ - jqacomplete + jq.acomplete jq - ajaxComplete diff --git a/snippets/js/jquery/ajax/jq-ajax-error.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-error.sublime-snippet similarity index 79% rename from snippets/js/jquery/ajax/jq-ajax-error.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-error.sublime-snippet index 33ded9f..cbc37e4 100644 --- a/snippets/js/jquery/ajax/jq-ajax-error.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-error.sublime-snippet @@ -2,6 +2,6 @@ - jqaerror + jq.aerror jq - ajaxError diff --git a/snippets/js/jquery/ajax/jq-ajax-get-json.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-get-json.sublime-snippet similarity index 80% rename from snippets/js/jquery/ajax/jq-ajax-get-json.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-get-json.sublime-snippet index 9a9e407..11885fc 100644 --- a/snippets/js/jquery/ajax/jq-ajax-get-json.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-get-json.sublime-snippet @@ -2,6 +2,6 @@ - jqgjson + jq.gjson jq - getJSON diff --git a/snippets/js/jquery/ajax/jq-ajax-get-script.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-get-script.sublime-snippet similarity index 79% rename from snippets/js/jquery/ajax/jq-ajax-get-script.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-get-script.sublime-snippet index 6e02a82..27ba7c4 100644 --- a/snippets/js/jquery/ajax/jq-ajax-get-script.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-get-script.sublime-snippet @@ -2,6 +2,6 @@ - jqgscript + jq.gscript jq - getScript diff --git a/snippets/js/jquery/ajax/jq-ajax-get.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-get.sublime-snippet similarity index 82% rename from snippets/js/jquery/ajax/jq-ajax-get.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-get.sublime-snippet index 78b2217..d2f9816 100644 --- a/snippets/js/jquery/ajax/jq-ajax-get.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-get.sublime-snippet @@ -2,6 +2,6 @@ - jqjget + jq.jget jq - jQuery get diff --git a/snippets/js/jquery/ajax/jq-ajax-load.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-load.sublime-snippet similarity index 81% rename from snippets/js/jquery/ajax/jq-ajax-load.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-load.sublime-snippet index 29c47be..0987742 100644 --- a/snippets/js/jquery/ajax/jq-ajax-load.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-load.sublime-snippet @@ -2,6 +2,6 @@ - jqload + jq.load jq - load diff --git a/snippets/js/jquery/ajax/jq-ajax-post.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-post.sublime-snippet similarity index 81% rename from snippets/js/jquery/ajax/jq-ajax-post.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-post.sublime-snippet index e9eff58..7a95543 100644 --- a/snippets/js/jquery/ajax/jq-ajax-post.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-post.sublime-snippet @@ -2,6 +2,6 @@ - jqpost + jq.post jq - post diff --git a/snippets/js/jquery/ajax/jq-ajax-prefilter.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-prefilter.sublime-snippet similarity index 79% rename from snippets/js/jquery/ajax/jq-ajax-prefilter.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-prefilter.sublime-snippet index 387dbe5..b4b5a4a 100644 --- a/snippets/js/jquery/ajax/jq-ajax-prefilter.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-prefilter.sublime-snippet @@ -2,6 +2,6 @@ - jqaprefilter + jq.aprefilter jq - ajaxPrefilter diff --git a/snippets/js/jquery/ajax/jq-ajax-send.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-send.sublime-snippet similarity index 79% rename from snippets/js/jquery/ajax/jq-ajax-send.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-send.sublime-snippet index cbae5cc..27b21b5 100644 --- a/snippets/js/jquery/ajax/jq-ajax-send.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-send.sublime-snippet @@ -2,6 +2,6 @@ - jqasend + jq.asend jq - ajaxSend diff --git a/snippets/js/jquery/ajax/jq-ajax-setup.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-setup.sublime-snippet similarity index 78% rename from snippets/js/jquery/ajax/jq-ajax-setup.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-setup.sublime-snippet index 191f47e..f1a0349 100644 --- a/snippets/js/jquery/ajax/jq-ajax-setup.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-setup.sublime-snippet @@ -2,6 +2,6 @@ - jqasetup + jq.asetup jq - ajaxSetup diff --git a/snippets/js/jquery/ajax/jq-ajax-start.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-start.sublime-snippet similarity index 79% rename from snippets/js/jquery/ajax/jq-ajax-start.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-start.sublime-snippet index b6a5c03..d5e800e 100644 --- a/snippets/js/jquery/ajax/jq-ajax-start.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-start.sublime-snippet @@ -2,6 +2,6 @@ - jqastart + jq.astart jq - ajaxStart diff --git a/snippets/js/jquery/ajax/jq-ajax-stop.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-stop.sublime-snippet similarity index 79% rename from snippets/js/jquery/ajax/jq-ajax-stop.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-stop.sublime-snippet index e3ad417..f633bcb 100644 --- a/snippets/js/jquery/ajax/jq-ajax-stop.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-stop.sublime-snippet @@ -2,6 +2,6 @@ - jqastop + jq.astop jq - ajaxStop diff --git a/snippets/js/jquery/ajax/jq-ajax-success.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-success.sublime-snippet similarity index 79% rename from snippets/js/jquery/ajax/jq-ajax-success.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-success.sublime-snippet index 975d8f9..37506f7 100644 --- a/snippets/js/jquery/ajax/jq-ajax-success.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-success.sublime-snippet @@ -2,6 +2,6 @@ - jqasuccess + jq.asuccess jq - ajaxSuccess diff --git a/snippets/js/jquery/ajax/jq-ajax-transport.sublime-snippet b/snippets/js/libraries/jquery/ajax/jq-ajax-transport.sublime-snippet similarity index 79% rename from snippets/js/jquery/ajax/jq-ajax-transport.sublime-snippet rename to snippets/js/libraries/jquery/ajax/jq-ajax-transport.sublime-snippet index 4919acc..b04eece 100644 --- a/snippets/js/jquery/ajax/jq-ajax-transport.sublime-snippet +++ b/snippets/js/libraries/jquery/ajax/jq-ajax-transport.sublime-snippet @@ -2,6 +2,6 @@ - jqatransport + jq.atransport jq - ajaxTransport diff --git a/snippets/js/jquery/attributes/README.md b/snippets/js/libraries/jquery/attributes/README.md similarity index 74% rename from snippets/js/jquery/attributes/README.md rename to snippets/js/libraries/jquery/attributes/README.md index 83dcf46..d19e749 100644 --- a/snippets/js/jquery/attributes/README.md +++ b/snippets/js/libraries/jquery/attributes/README.md @@ -1,54 +1,54 @@ ## Attributes -### [jqaddclass] addClass +### [jq.addclass] addClass ```javascript ${1:\$(document)}.addClass(${2:className}); ``` -### [jqattr] attr +### [jq.attr] attr ```javascript ${1:\$(document)}.attr(${2:attributeName}${3:, value}); ``` -### [jqhasclass] hasClass +### [jq.hasclass] hasClass ```javascript ${1:\$(document)}.hasClass(${2:className}); ``` -### [jqhtml] html +### [jq.html] html ```javascript ${1:\$(document)}.html(${2:htmlString}); ``` -### [jqprop] prop +### [jq.prop] prop ```javascript ${1:\$(document)}.prop(${2:propertyName}${3:, value}); ``` -### [jqrattr] removeAttr +### [jq.rattr] removeAttr ```javascript ${1:\$(document)}.removeAttr(${2:attributeName}); ``` -### [jqrclass] removeClass +### [jq.rclass] removeClass ```javascript ${1:\$(document)}.removeClass(${2:[className]}); ``` -### [jqrprop] removeProp +### [jq.rprop] removeProp ```javascript ${1:\$(document)}.removeProp(${2:propertyName}); ``` -### [jqtclass] toggleClass +### [jq.tclass] toggleClass ```javascript ${1:\$(document)}.toggleClass(${2:className}${2:, state}); diff --git a/snippets/js/jquery/attributes/jq-attributes-add-class.sublime-snippet b/snippets/js/libraries/jquery/attributes/jq-attributes-add-class.sublime-snippet similarity index 78% rename from snippets/js/jquery/attributes/jq-attributes-add-class.sublime-snippet rename to snippets/js/libraries/jquery/attributes/jq-attributes-add-class.sublime-snippet index d589260..b4fae2f 100644 --- a/snippets/js/jquery/attributes/jq-attributes-add-class.sublime-snippet +++ b/snippets/js/libraries/jquery/attributes/jq-attributes-add-class.sublime-snippet @@ -2,6 +2,6 @@ - jqaddclass + jq.addclass jq - addClass diff --git a/snippets/js/jquery/attributes/jq-attributes-attr.sublime-snippet b/snippets/js/libraries/jquery/attributes/jq-attributes-attr.sublime-snippet similarity index 81% rename from snippets/js/jquery/attributes/jq-attributes-attr.sublime-snippet rename to snippets/js/libraries/jquery/attributes/jq-attributes-attr.sublime-snippet index 786c400..06ea0a2 100644 --- a/snippets/js/jquery/attributes/jq-attributes-attr.sublime-snippet +++ b/snippets/js/libraries/jquery/attributes/jq-attributes-attr.sublime-snippet @@ -2,6 +2,6 @@ - jqattr + jq.attr jq - attr diff --git a/snippets/js/jquery/attributes/jq-attributes-has-class.sublime-snippet b/snippets/js/libraries/jquery/attributes/jq-attributes-has-class.sublime-snippet similarity index 78% rename from snippets/js/jquery/attributes/jq-attributes-has-class.sublime-snippet rename to snippets/js/libraries/jquery/attributes/jq-attributes-has-class.sublime-snippet index e1b6c87..b799e9c 100644 --- a/snippets/js/jquery/attributes/jq-attributes-has-class.sublime-snippet +++ b/snippets/js/libraries/jquery/attributes/jq-attributes-has-class.sublime-snippet @@ -2,6 +2,6 @@ - jqhasclass + jq.hasclass jq - hasClass diff --git a/snippets/js/jquery/attributes/jq-attributes-html.sublime-snippet b/snippets/js/libraries/jquery/attributes/jq-attributes-html.sublime-snippet similarity index 79% rename from snippets/js/jquery/attributes/jq-attributes-html.sublime-snippet rename to snippets/js/libraries/jquery/attributes/jq-attributes-html.sublime-snippet index e98530d..29d3c4d 100644 --- a/snippets/js/jquery/attributes/jq-attributes-html.sublime-snippet +++ b/snippets/js/libraries/jquery/attributes/jq-attributes-html.sublime-snippet @@ -2,6 +2,6 @@ - jqhtml + jq.html jq - html diff --git a/snippets/js/jquery/attributes/jq-attributes-prop.sublime-snippet b/snippets/js/libraries/jquery/attributes/jq-attributes-prop.sublime-snippet similarity index 81% rename from snippets/js/jquery/attributes/jq-attributes-prop.sublime-snippet rename to snippets/js/libraries/jquery/attributes/jq-attributes-prop.sublime-snippet index 7b1e55d..b40045d 100644 --- a/snippets/js/jquery/attributes/jq-attributes-prop.sublime-snippet +++ b/snippets/js/libraries/jquery/attributes/jq-attributes-prop.sublime-snippet @@ -2,6 +2,6 @@ - jqprop + jq.prop jq - prop diff --git a/snippets/js/jquery/attributes/jq-attributes-remove-attr.sublime-snippet b/snippets/js/libraries/jquery/attributes/jq-attributes-remove-attr.sublime-snippet similarity index 80% rename from snippets/js/jquery/attributes/jq-attributes-remove-attr.sublime-snippet rename to snippets/js/libraries/jquery/attributes/jq-attributes-remove-attr.sublime-snippet index 5075d09..488a62c 100644 --- a/snippets/js/jquery/attributes/jq-attributes-remove-attr.sublime-snippet +++ b/snippets/js/libraries/jquery/attributes/jq-attributes-remove-attr.sublime-snippet @@ -2,6 +2,6 @@ - jqrattr + jq.rattr jq - removeAttr diff --git a/snippets/js/jquery/attributes/jq-attributes-remove-class.sublime-snippet b/snippets/js/libraries/jquery/attributes/jq-attributes-remove-class.sublime-snippet similarity index 80% rename from snippets/js/jquery/attributes/jq-attributes-remove-class.sublime-snippet rename to snippets/js/libraries/jquery/attributes/jq-attributes-remove-class.sublime-snippet index 2106791..5f62d4a 100644 --- a/snippets/js/jquery/attributes/jq-attributes-remove-class.sublime-snippet +++ b/snippets/js/libraries/jquery/attributes/jq-attributes-remove-class.sublime-snippet @@ -2,6 +2,6 @@ - jqrclass + jq.rclass jq - removeClass diff --git a/snippets/js/jquery/attributes/jq-attributes-remove-prop.sublime-snippet b/snippets/js/libraries/jquery/attributes/jq-attributes-remove-prop.sublime-snippet similarity index 80% rename from snippets/js/jquery/attributes/jq-attributes-remove-prop.sublime-snippet rename to snippets/js/libraries/jquery/attributes/jq-attributes-remove-prop.sublime-snippet index e757ba1..d2e0403 100644 --- a/snippets/js/jquery/attributes/jq-attributes-remove-prop.sublime-snippet +++ b/snippets/js/libraries/jquery/attributes/jq-attributes-remove-prop.sublime-snippet @@ -2,6 +2,6 @@ - jqrprop + jq.rprop jq - removeProp diff --git a/snippets/js/jquery/attributes/jq-attributes-toggle-class.sublime-snippet b/snippets/js/libraries/jquery/attributes/jq-attributes-toggle-class.sublime-snippet similarity index 81% rename from snippets/js/jquery/attributes/jq-attributes-toggle-class.sublime-snippet rename to snippets/js/libraries/jquery/attributes/jq-attributes-toggle-class.sublime-snippet index feaec62..2a0e0dd 100644 --- a/snippets/js/jquery/attributes/jq-attributes-toggle-class.sublime-snippet +++ b/snippets/js/libraries/jquery/attributes/jq-attributes-toggle-class.sublime-snippet @@ -2,6 +2,6 @@ - jqtclass + jq.tclass jq - toggleClass diff --git a/snippets/js/jquery/callbacks/README.md b/snippets/js/libraries/jquery/callbacks/README.md similarity index 79% rename from snippets/js/jquery/callbacks/README.md rename to snippets/js/libraries/jquery/callbacks/README.md index 2aad888..e4bd722 100644 --- a/snippets/js/jquery/callbacks/README.md +++ b/snippets/js/libraries/jquery/callbacks/README.md @@ -1,72 +1,72 @@ ## Callbacks -### [jqcbadd] add +### [jq.cbadd] add ```javascript ${1:var callbacks = \$.Callbacks();}${2}${3:callbacks}.add(${4:callbacks}); ``` -### [jqcbdisable] disable +### [jq.cbdisable] disable ```javascript ${1:var callbacks = \$.Callbacks();}${2}${3:callbacks}.disable(); ``` -### [jqcbdisabled] disabled +### [jq.cbdisabled] disabled ```javascript ${1:var callbacks = \$.Callbacks();}${2}${3:callbacks}.disabled(); ``` -### [jqcbempty] empty +### [jq.cbempty] empty ```javascript ${1:var callbacks = \$.Callbacks();}${2}${3:callbacks}.empty(); ``` -### [jqcbfirewith] fireWith +### [jq.cbfirewith] fireWith ```javascript ${1:var callbacks = \$.Callbacks();}${2}${3:callbacks}.fireWith(${4:context}${5:, args}); ``` -### [jqcbfire] fire +### [jq.cbfire] fire ```javascript ${1:var callbacks = \$.Callbacks();}${2}${3:callbacks}.fire(${4:arguments}); ``` -### [jqcbfired] fired +### [jq.cbfired] fired ```javascript ${1:var callbacks = \$.Callbacks();}${2}${3:callbacks}.fired(); ``` -### [jqcbhas] has +### [jq.cbhas] has ```javascript ${1:var callbacks = \$.Callbacks();}${2}${3:callbacks}.has(${4:callback}); ``` -### [jqcblock] lock +### [jq.cblock] lock ```javascript ${1:var callbacks = \$.Callbacks();}${2}${3:callbacks}.lock(); ``` -### [jqcblocked] locked +### [jq.cblocked] locked ```javascript ${1:var callbacks = \$.Callbacks();}${2}${3:callbacks}.locked(); ``` -### [jqcbremove] remove +### [jq.cbremove] remove ```javascript ${1:var callbacks = \$.Callbacks();}${2}${3:callbacks}.remove(${4:callbacks}); ``` -### [jqcb] callbacks +### [jq.cb] callbacks ```javascript ${1:\$}.Callbacks(${2:flags}); diff --git a/snippets/js/jquery/callbacks/jq-callbacks-add.sublime-snippet b/snippets/js/libraries/jquery/callbacks/jq-callbacks-add.sublime-snippet similarity index 82% rename from snippets/js/jquery/callbacks/jq-callbacks-add.sublime-snippet rename to snippets/js/libraries/jquery/callbacks/jq-callbacks-add.sublime-snippet index 7abbb00..d1f35fa 100644 --- a/snippets/js/jquery/callbacks/jq-callbacks-add.sublime-snippet +++ b/snippets/js/libraries/jquery/callbacks/jq-callbacks-add.sublime-snippet @@ -2,6 +2,6 @@ - jqcbadd + jq.cbadd jq - add diff --git a/snippets/js/jquery/callbacks/jq-callbacks-disable.sublime-snippet b/snippets/js/libraries/jquery/callbacks/jq-callbacks-disable.sublime-snippet similarity index 80% rename from snippets/js/jquery/callbacks/jq-callbacks-disable.sublime-snippet rename to snippets/js/libraries/jquery/callbacks/jq-callbacks-disable.sublime-snippet index 9d3781c..ba3efa1 100644 --- a/snippets/js/jquery/callbacks/jq-callbacks-disable.sublime-snippet +++ b/snippets/js/libraries/jquery/callbacks/jq-callbacks-disable.sublime-snippet @@ -2,6 +2,6 @@ - jqcbdisable + jq.cbdisable jq - disable diff --git a/snippets/js/jquery/callbacks/jq-callbacks-disabled.sublime-snippet b/snippets/js/libraries/jquery/callbacks/jq-callbacks-disabled.sublime-snippet similarity index 80% rename from snippets/js/jquery/callbacks/jq-callbacks-disabled.sublime-snippet rename to snippets/js/libraries/jquery/callbacks/jq-callbacks-disabled.sublime-snippet index d602b0a..a8590f0 100644 --- a/snippets/js/jquery/callbacks/jq-callbacks-disabled.sublime-snippet +++ b/snippets/js/libraries/jquery/callbacks/jq-callbacks-disabled.sublime-snippet @@ -2,6 +2,6 @@ - jqcbdisabled + jq.cbdisabled jq - disabled diff --git a/snippets/js/jquery/callbacks/jq-callbacks-empty.sublime-snippet b/snippets/js/libraries/jquery/callbacks/jq-callbacks-empty.sublime-snippet similarity index 80% rename from snippets/js/jquery/callbacks/jq-callbacks-empty.sublime-snippet rename to snippets/js/libraries/jquery/callbacks/jq-callbacks-empty.sublime-snippet index 252fb82..9eec776 100644 --- a/snippets/js/jquery/callbacks/jq-callbacks-empty.sublime-snippet +++ b/snippets/js/libraries/jquery/callbacks/jq-callbacks-empty.sublime-snippet @@ -2,6 +2,6 @@ - jqcbempty + jq.cbempty jq - empty diff --git a/snippets/js/jquery/callbacks/jq-callbacks-fire-with.sublime-snippet b/snippets/js/libraries/jquery/callbacks/jq-callbacks-fire-with.sublime-snippet similarity index 82% rename from snippets/js/jquery/callbacks/jq-callbacks-fire-with.sublime-snippet rename to snippets/js/libraries/jquery/callbacks/jq-callbacks-fire-with.sublime-snippet index af411d2..0d9af79 100644 --- a/snippets/js/jquery/callbacks/jq-callbacks-fire-with.sublime-snippet +++ b/snippets/js/libraries/jquery/callbacks/jq-callbacks-fire-with.sublime-snippet @@ -2,6 +2,6 @@ - jqcbfirewith + jq.cbfirewith jq - fireWith diff --git a/snippets/js/jquery/callbacks/jq-callbacks-fire.sublime-snippet b/snippets/js/libraries/jquery/callbacks/jq-callbacks-fire.sublime-snippet similarity index 82% rename from snippets/js/jquery/callbacks/jq-callbacks-fire.sublime-snippet rename to snippets/js/libraries/jquery/callbacks/jq-callbacks-fire.sublime-snippet index 541663c..9c17ce4 100644 --- a/snippets/js/jquery/callbacks/jq-callbacks-fire.sublime-snippet +++ b/snippets/js/libraries/jquery/callbacks/jq-callbacks-fire.sublime-snippet @@ -2,6 +2,6 @@ - jqcbfire + jq.cbfire jq - fire diff --git a/snippets/js/jquery/callbacks/jq-callbacks-fired.sublime-snippet b/snippets/js/libraries/jquery/callbacks/jq-callbacks-fired.sublime-snippet similarity index 80% rename from snippets/js/jquery/callbacks/jq-callbacks-fired.sublime-snippet rename to snippets/js/libraries/jquery/callbacks/jq-callbacks-fired.sublime-snippet index 1f75b84..8d3f2cd 100644 --- a/snippets/js/jquery/callbacks/jq-callbacks-fired.sublime-snippet +++ b/snippets/js/libraries/jquery/callbacks/jq-callbacks-fired.sublime-snippet @@ -2,6 +2,6 @@ - jqcbfired + jq.cbfired jq - fired diff --git a/snippets/js/jquery/callbacks/jq-callbacks-has.sublime-snippet b/snippets/js/libraries/jquery/callbacks/jq-callbacks-has.sublime-snippet similarity index 82% rename from snippets/js/jquery/callbacks/jq-callbacks-has.sublime-snippet rename to snippets/js/libraries/jquery/callbacks/jq-callbacks-has.sublime-snippet index 85feec1..0db6033 100644 --- a/snippets/js/jquery/callbacks/jq-callbacks-has.sublime-snippet +++ b/snippets/js/libraries/jquery/callbacks/jq-callbacks-has.sublime-snippet @@ -2,6 +2,6 @@ - jqcbhas + jq.cbhas jq - has diff --git a/snippets/js/jquery/callbacks/jq-callbacks-lock.sublime-snippet b/snippets/js/libraries/jquery/callbacks/jq-callbacks-lock.sublime-snippet similarity index 81% rename from snippets/js/jquery/callbacks/jq-callbacks-lock.sublime-snippet rename to snippets/js/libraries/jquery/callbacks/jq-callbacks-lock.sublime-snippet index e1c8844..a573ca7 100644 --- a/snippets/js/jquery/callbacks/jq-callbacks-lock.sublime-snippet +++ b/snippets/js/libraries/jquery/callbacks/jq-callbacks-lock.sublime-snippet @@ -2,6 +2,6 @@ - jqcblock + jq.cblock jq - lock diff --git a/snippets/js/jquery/callbacks/jq-callbacks-locked.sublime-snippet b/snippets/js/libraries/jquery/callbacks/jq-callbacks-locked.sublime-snippet similarity index 80% rename from snippets/js/jquery/callbacks/jq-callbacks-locked.sublime-snippet rename to snippets/js/libraries/jquery/callbacks/jq-callbacks-locked.sublime-snippet index ac5b4dd..080ca96 100644 --- a/snippets/js/jquery/callbacks/jq-callbacks-locked.sublime-snippet +++ b/snippets/js/libraries/jquery/callbacks/jq-callbacks-locked.sublime-snippet @@ -2,6 +2,6 @@ - jqcblocked + jq.cblocked jq - locked diff --git a/snippets/js/jquery/callbacks/jq-callbacks-remove.sublime-snippet b/snippets/js/libraries/jquery/callbacks/jq-callbacks-remove.sublime-snippet similarity index 81% rename from snippets/js/jquery/callbacks/jq-callbacks-remove.sublime-snippet rename to snippets/js/libraries/jquery/callbacks/jq-callbacks-remove.sublime-snippet index c747d43..0daf356 100644 --- a/snippets/js/jquery/callbacks/jq-callbacks-remove.sublime-snippet +++ b/snippets/js/libraries/jquery/callbacks/jq-callbacks-remove.sublime-snippet @@ -2,6 +2,6 @@ - jqcbremove + jq.cbremove jq - remove diff --git a/snippets/js/jquery/callbacks/jq-callbacks.sublime-snippet b/snippets/js/libraries/jquery/callbacks/jq-callbacks.sublime-snippet similarity index 79% rename from snippets/js/jquery/callbacks/jq-callbacks.sublime-snippet rename to snippets/js/libraries/jquery/callbacks/jq-callbacks.sublime-snippet index 20ef9cf..e00ca03 100644 --- a/snippets/js/jquery/callbacks/jq-callbacks.sublime-snippet +++ b/snippets/js/libraries/jquery/callbacks/jq-callbacks.sublime-snippet @@ -2,6 +2,6 @@ - jqcb + jq.cb jq - callbacks diff --git a/snippets/js/jquery/core/README.md b/snippets/js/libraries/jquery/core/README.md similarity index 70% rename from snippets/js/jquery/core/README.md rename to snippets/js/libraries/jquery/core/README.md index 142250b..ff232d6 100644 --- a/snippets/js/jquery/core/README.md +++ b/snippets/js/libraries/jquery/core/README.md @@ -1,24 +1,24 @@ ## Core -### [jqholdready] holdReady +### [jq.holdready] holdReady ```javascript ${1:\$}.holdReady(${2:hold}); ``` -### [jqjq] jQuery +### [jq.jq] jQuery ```javascript ${1:\$}(${2:selector}${3:, context}); ``` -### [jqnoc] noConflict +### [jq.noc] noConflict ```javascript ${1:\$}.noConflict(${2:removeAll}); ``` -### [jqwhen] when +### [jq.when] when ```javascript ${1:\$}.when(${2:deferreds}); diff --git a/snippets/js/jquery/core/jq-core-hold-heady.sublime-snippet b/snippets/js/libraries/jquery/core/jq-core-hold-heady.sublime-snippet similarity index 76% rename from snippets/js/jquery/core/jq-core-hold-heady.sublime-snippet rename to snippets/js/libraries/jquery/core/jq-core-hold-heady.sublime-snippet index 44e1314..537db21 100644 --- a/snippets/js/jquery/core/jq-core-hold-heady.sublime-snippet +++ b/snippets/js/libraries/jquery/core/jq-core-hold-heady.sublime-snippet @@ -2,6 +2,6 @@ - jqholdready + jq.holdready jq - holdReady diff --git a/snippets/js/jquery/core/jq-core-jquery.sublime-snippet b/snippets/js/libraries/jquery/core/jq-core-jquery.sublime-snippet similarity index 80% rename from snippets/js/jquery/core/jq-core-jquery.sublime-snippet rename to snippets/js/libraries/jquery/core/jq-core-jquery.sublime-snippet index 5d8cbbf..7db178c 100644 --- a/snippets/js/jquery/core/jq-core-jquery.sublime-snippet +++ b/snippets/js/libraries/jquery/core/jq-core-jquery.sublime-snippet @@ -2,6 +2,6 @@ - jqjq + jq.jq jq - jQuery diff --git a/snippets/js/jquery/core/jq-core-no-conflict.sublime-snippet b/snippets/js/libraries/jquery/core/jq-core-no-conflict.sublime-snippet similarity index 80% rename from snippets/js/jquery/core/jq-core-no-conflict.sublime-snippet rename to snippets/js/libraries/jquery/core/jq-core-no-conflict.sublime-snippet index b892250..76fce1c 100644 --- a/snippets/js/jquery/core/jq-core-no-conflict.sublime-snippet +++ b/snippets/js/libraries/jquery/core/jq-core-no-conflict.sublime-snippet @@ -2,6 +2,6 @@ - jqnoc + jq.noc jq - noConflict diff --git a/snippets/js/jquery/core/jq-core-when.sublime-snippet b/snippets/js/libraries/jquery/core/jq-core-when.sublime-snippet similarity index 78% rename from snippets/js/jquery/core/jq-core-when.sublime-snippet rename to snippets/js/libraries/jquery/core/jq-core-when.sublime-snippet index 206a770..b660eed 100644 --- a/snippets/js/jquery/core/jq-core-when.sublime-snippet +++ b/snippets/js/libraries/jquery/core/jq-core-when.sublime-snippet @@ -2,6 +2,6 @@ - jqwhen + jq.when jq - when diff --git a/snippets/js/jquery/css/README.md b/snippets/js/libraries/jquery/css/README.md similarity index 72% rename from snippets/js/jquery/css/README.md rename to snippets/js/libraries/jquery/css/README.md index 98c8284..3b0c3d9 100644 --- a/snippets/js/jquery/css/README.md +++ b/snippets/js/libraries/jquery/css/README.md @@ -1,18 +1,18 @@ ## CSS -### [jqcssh] cssHooks +### [jq.cssh] cssHooks ```javascript ${1:\$}.cssHooks; ``` -### [jqcssn] cssNumber +### [jq.cssn] cssNumber ```javascript ${1:\$}.cssNumber.${2:widows} = ${3}; ``` -### [jqcss] css +### [jq.css] css ```javascript ${1:\$(document)}.css(${2:{propertyName}}); diff --git a/snippets/js/jquery/css/jq-css-hooks.sublime-snippet b/snippets/js/libraries/jquery/css/jq-css-hooks.sublime-snippet similarity index 76% rename from snippets/js/jquery/css/jq-css-hooks.sublime-snippet rename to snippets/js/libraries/jquery/css/jq-css-hooks.sublime-snippet index 593db5e..1e0e5eb 100644 --- a/snippets/js/jquery/css/jq-css-hooks.sublime-snippet +++ b/snippets/js/libraries/jquery/css/jq-css-hooks.sublime-snippet @@ -2,6 +2,6 @@ - jqcssh + jq.cssh jq - cssHooks diff --git a/snippets/js/jquery/css/jq-css-number.sublime-snippet b/snippets/js/libraries/jquery/css/jq-css-number.sublime-snippet similarity index 79% rename from snippets/js/jquery/css/jq-css-number.sublime-snippet rename to snippets/js/libraries/jquery/css/jq-css-number.sublime-snippet index 2f121c5..1dcff7a 100644 --- a/snippets/js/jquery/css/jq-css-number.sublime-snippet +++ b/snippets/js/libraries/jquery/css/jq-css-number.sublime-snippet @@ -2,6 +2,6 @@ - jqcssn + jq.cssn jq - cssNumber diff --git a/snippets/js/jquery/css/jq-css.sublime-snippet b/snippets/js/libraries/jquery/css/jq-css.sublime-snippet similarity index 80% rename from snippets/js/jquery/css/jq-css.sublime-snippet rename to snippets/js/libraries/jquery/css/jq-css.sublime-snippet index bdc059f..f580071 100644 --- a/snippets/js/jquery/css/jq-css.sublime-snippet +++ b/snippets/js/libraries/jquery/css/jq-css.sublime-snippet @@ -2,6 +2,6 @@ - jqcss + jq.css jq - css diff --git a/snippets/js/jquery/data/README.md b/snippets/js/libraries/jquery/data/README.md similarity index 71% rename from snippets/js/jquery/data/README.md rename to snippets/js/libraries/jquery/data/README.md index 94ff0a7..9ad41c2 100644 --- a/snippets/js/jquery/data/README.md +++ b/snippets/js/libraries/jquery/data/README.md @@ -1,30 +1,30 @@ ## Data -### [jqhasdata] hasData +### [jq.hasdata] hasData ```javascript ${1:\$}.hasData(${2:element}); ``` -### [jqjdata] jQuery data +### [jq.jdata] jQuery data ```javascript ${1:\$}.data(${2:element}${3:, key}${4:, value}); ``` -### [jqjrdata] jQuery removeData +### [jq.jrdata] jQuery removeData ```javascript ${1:\$}.removeData(${2:element}${3:, name}); ``` -### [jqrdata] removeData +### [jq.rdata] removeData ```javascript ${1:\$(document)}.removeData(${2:name}); ``` -### [jqdata] data +### [jq.data] data ```javascript ${1:\$(document)}.data(${2:key}${3:, value}); diff --git a/snippets/js/jquery/data/jq-data-has-data.sublime-snippet b/snippets/js/libraries/jquery/data/jq-data-has-data.sublime-snippet similarity index 77% rename from snippets/js/jquery/data/jq-data-has-data.sublime-snippet rename to snippets/js/libraries/jquery/data/jq-data-has-data.sublime-snippet index 44f2bde..21da064 100644 --- a/snippets/js/jquery/data/jq-data-has-data.sublime-snippet +++ b/snippets/js/libraries/jquery/data/jq-data-has-data.sublime-snippet @@ -2,6 +2,6 @@ - jqhasdata + jq.hasdata jq - hasData diff --git a/snippets/js/jquery/data/jq-data-jquery.sublime-snippet b/snippets/js/libraries/jquery/data/jq-data-jquery.sublime-snippet similarity index 80% rename from snippets/js/jquery/data/jq-data-jquery.sublime-snippet rename to snippets/js/libraries/jquery/data/jq-data-jquery.sublime-snippet index f43783a..0cb7e82 100644 --- a/snippets/js/jquery/data/jq-data-jquery.sublime-snippet +++ b/snippets/js/libraries/jquery/data/jq-data-jquery.sublime-snippet @@ -2,6 +2,6 @@ - jqjdata + jq.jdata jq - jQuery data diff --git a/snippets/js/jquery/data/jq-data-remove-data-jquery.sublime-snippet b/snippets/js/libraries/jquery/data/jq-data-remove-data-jquery.sublime-snippet similarity index 80% rename from snippets/js/jquery/data/jq-data-remove-data-jquery.sublime-snippet rename to snippets/js/libraries/jquery/data/jq-data-remove-data-jquery.sublime-snippet index 2801875..4385e22 100644 --- a/snippets/js/jquery/data/jq-data-remove-data-jquery.sublime-snippet +++ b/snippets/js/libraries/jquery/data/jq-data-remove-data-jquery.sublime-snippet @@ -2,6 +2,6 @@ - jqjrdata + jq.jrdata jq - jQuery removeData diff --git a/snippets/js/jquery/data/jq-data-remove-data.sublime-snippet b/snippets/js/libraries/jquery/data/jq-data-remove-data.sublime-snippet similarity index 79% rename from snippets/js/jquery/data/jq-data-remove-data.sublime-snippet rename to snippets/js/libraries/jquery/data/jq-data-remove-data.sublime-snippet index 4643ae2..48bce04 100644 --- a/snippets/js/jquery/data/jq-data-remove-data.sublime-snippet +++ b/snippets/js/libraries/jquery/data/jq-data-remove-data.sublime-snippet @@ -2,6 +2,6 @@ - jqrdata + jq.rdata jq - removeData diff --git a/snippets/js/jquery/data/jq-data.sublime-snippet b/snippets/js/libraries/jquery/data/jq-data.sublime-snippet similarity index 80% rename from snippets/js/jquery/data/jq-data.sublime-snippet rename to snippets/js/libraries/jquery/data/jq-data.sublime-snippet index a2a249f..6434156 100644 --- a/snippets/js/jquery/data/jq-data.sublime-snippet +++ b/snippets/js/libraries/jquery/data/jq-data.sublime-snippet @@ -2,6 +2,6 @@ - jqdata + jq.data jq - data diff --git a/snippets/js/jquery/deferred/README.md b/snippets/js/libraries/jquery/deferred/README.md similarity index 73% rename from snippets/js/jquery/deferred/README.md rename to snippets/js/libraries/jquery/deferred/README.md index c9d8522..f75cbd2 100644 --- a/snippets/js/jquery/deferred/README.md +++ b/snippets/js/libraries/jquery/deferred/README.md @@ -1,90 +1,90 @@ ## Deferred -### [jqalways] always +### [jq.always] always ```javascript ${1:\$.get("")}.always(${2:alwaysCallbacks}${3:,alwaysCallbacks}); ``` -### [jqdone] done +### [jq.done] done ```javascript ${1:\$.get("")}.done(${2:doneCallbacks}${3:,doneCallbacks}); ``` -### [jqfail] fail +### [jq.fail] fail ```javascript ${1:\$.get("")}.fail(${2:failCallbacks}${3:,failCallbacks}); ``` -### [jqnotifywith] notifyWith +### [jq.notifywith] notifyWith ```javascript ${1:\$.then()}.notifyWith(${2:context}${3:, args}); ``` -### [jqnotify] notify +### [jq.notify] notify ```javascript ${1:\$.then()}.notify(${2:args}); ``` -### [jqprogress] progress +### [jq.progress] progress ```javascript ${1:\$.then()}.progress(${2:progressCallbacks}${3:, progressCallbacks}); ``` -### [jqdpromise] deferred promise +### [jq.dpromise] deferred promise ```javascript ${1:\$.then()}.promise(${2:target}); ``` -### [jqrejectwith] rejectWith +### [jq.rejectwith] rejectWith ```javascript ${1:\$.then()}.rejectWith(${2:context}${3:, args}); ``` -### [jqreject] reject +### [jq.reject] reject ```javascript ${1:\$.then()}.reject(${2:args}); ``` -### [jqresolvewith] resolveWith +### [jq.resolvewith] resolveWith ```javascript ${1:\$.then()}.resolveWith(${2:context}${3:, args}); ``` -### [jqstate] state +### [jq.state] state ```javascript ${1:\$.resolve()}.state(); ``` -### [jqthen] then +### [jq.then] then ```javascript ${1:\$.get()}.then(${2:doneFilter}${3:, failFilter}${4:, progressFilter}); ``` -### [jqd] deferred +### [jq.d] deferred ```javascript ${1:\$}.Deferred(${2:beforeStart}); ``` -### [jqpromise] promise +### [jq.promise] promise ```javascript ${1:\$(document)}.promise(${2:type}${3:, target}); ``` -### [jqresolve] resolve +### [jq.resolve] resolve ```javascript ${1:\$.then()}.resolve(${2:args}); diff --git a/snippets/js/jquery/deferred/jq-deferred-always.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-always.sublime-snippet similarity index 81% rename from snippets/js/jquery/deferred/jq-deferred-always.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-always.sublime-snippet index 6e3df16..d79b3ca 100644 --- a/snippets/js/jquery/deferred/jq-deferred-always.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-always.sublime-snippet @@ -2,6 +2,6 @@ - jqalways + jq.always jq - always diff --git a/snippets/js/jquery/deferred/jq-deferred-done.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-done.sublime-snippet similarity index 81% rename from snippets/js/jquery/deferred/jq-deferred-done.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-done.sublime-snippet index 7f38a99..c15df6e 100644 --- a/snippets/js/jquery/deferred/jq-deferred-done.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-done.sublime-snippet @@ -2,6 +2,6 @@ - jqdone + jq.done jq - done diff --git a/snippets/js/jquery/deferred/jq-deferred-fail.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-fail.sublime-snippet similarity index 81% rename from snippets/js/jquery/deferred/jq-deferred-fail.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-fail.sublime-snippet index 88f70b2..e574656 100644 --- a/snippets/js/jquery/deferred/jq-deferred-fail.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-fail.sublime-snippet @@ -2,6 +2,6 @@ - jqfail + jq.fail jq - fail diff --git a/snippets/js/jquery/deferred/jq-deferred-notify-with.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-notify-with.sublime-snippet similarity index 78% rename from snippets/js/jquery/deferred/jq-deferred-notify-with.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-notify-with.sublime-snippet index 1591443..544a206 100644 --- a/snippets/js/jquery/deferred/jq-deferred-notify-with.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-notify-with.sublime-snippet @@ -2,6 +2,6 @@ - jqnotifywith + jq.notifywith jq - notifyWith diff --git a/snippets/js/jquery/deferred/jq-deferred-notify.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-notify.sublime-snippet similarity index 77% rename from snippets/js/jquery/deferred/jq-deferred-notify.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-notify.sublime-snippet index 1183538..b71330a 100644 --- a/snippets/js/jquery/deferred/jq-deferred-notify.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-notify.sublime-snippet @@ -2,6 +2,6 @@ - jqnotify + jq.notify jq - notify diff --git a/snippets/js/jquery/deferred/jq-deferred-progress.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-progress.sublime-snippet similarity index 81% rename from snippets/js/jquery/deferred/jq-deferred-progress.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-progress.sublime-snippet index 5709c0d..9729cb4 100644 --- a/snippets/js/jquery/deferred/jq-deferred-progress.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-progress.sublime-snippet @@ -2,6 +2,6 @@ - jqprogress + jq.progress jq - progress diff --git a/snippets/js/jquery/deferred/jq-deferred-promise.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-promise.sublime-snippet similarity index 77% rename from snippets/js/jquery/deferred/jq-deferred-promise.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-promise.sublime-snippet index 53df7bd..10c0516 100644 --- a/snippets/js/jquery/deferred/jq-deferred-promise.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-promise.sublime-snippet @@ -2,6 +2,6 @@ - jqdpromise + jq.dpromise jq - promise diff --git a/snippets/js/jquery/deferred/jq-deferred-reject-with.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-reject-with.sublime-snippet similarity index 78% rename from snippets/js/jquery/deferred/jq-deferred-reject-with.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-reject-with.sublime-snippet index b5efb2f..431a2ed 100644 --- a/snippets/js/jquery/deferred/jq-deferred-reject-with.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-reject-with.sublime-snippet @@ -2,6 +2,6 @@ - jqrejectwith + jq.rejectwith jq - rejectWith diff --git a/snippets/js/jquery/deferred/jq-deferred-reject.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-reject.sublime-snippet similarity index 77% rename from snippets/js/jquery/deferred/jq-deferred-reject.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-reject.sublime-snippet index 284b6c1..5288fc7 100644 --- a/snippets/js/jquery/deferred/jq-deferred-reject.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-reject.sublime-snippet @@ -2,6 +2,6 @@ - jqreject + jq.reject jq - reject diff --git a/snippets/js/jquery/deferred/jq-deferred-resolve-with.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-resolve-with.sublime-snippet similarity index 78% rename from snippets/js/jquery/deferred/jq-deferred-resolve-with.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-resolve-with.sublime-snippet index 4425b3a..624dd6d 100644 --- a/snippets/js/jquery/deferred/jq-deferred-resolve-with.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-resolve-with.sublime-snippet @@ -2,6 +2,6 @@ - jqresolvewith + jq.resolvewith jq - resolveWith diff --git a/snippets/js/jquery/deferred/jq-deferred-resolve.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-resolve.sublime-snippet similarity index 77% rename from snippets/js/jquery/deferred/jq-deferred-resolve.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-resolve.sublime-snippet index e36e5a3..0e7211a 100644 --- a/snippets/js/jquery/deferred/jq-deferred-resolve.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-resolve.sublime-snippet @@ -2,6 +2,6 @@ - jqresolve + jq.resolve jq - resolve diff --git a/snippets/js/jquery/deferred/jq-deferred-state.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-state.sublime-snippet similarity index 77% rename from snippets/js/jquery/deferred/jq-deferred-state.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-state.sublime-snippet index 42eae40..8796fb8 100644 --- a/snippets/js/jquery/deferred/jq-deferred-state.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-state.sublime-snippet @@ -2,6 +2,6 @@ - jqstate + jq.state jq - state diff --git a/snippets/js/jquery/deferred/jq-deferred-then.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred-then.sublime-snippet similarity index 82% rename from snippets/js/jquery/deferred/jq-deferred-then.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred-then.sublime-snippet index 68f6c16..617a0c0 100644 --- a/snippets/js/jquery/deferred/jq-deferred-then.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred-then.sublime-snippet @@ -2,6 +2,6 @@ - jqthen + jq.then jq - then diff --git a/snippets/js/jquery/deferred/jq-deferred.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-deferred.sublime-snippet similarity index 80% rename from snippets/js/jquery/deferred/jq-deferred.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-deferred.sublime-snippet index 50019f3..c72d664 100644 --- a/snippets/js/jquery/deferred/jq-deferred.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-deferred.sublime-snippet @@ -2,6 +2,6 @@ - jqd + jq.d jq - deferred diff --git a/snippets/js/jquery/deferred/jq-promise.sublime-snippet b/snippets/js/libraries/jquery/deferred/jq-promise.sublime-snippet similarity index 79% rename from snippets/js/jquery/deferred/jq-promise.sublime-snippet rename to snippets/js/libraries/jquery/deferred/jq-promise.sublime-snippet index 6db4f6a..a0a754a 100644 --- a/snippets/js/jquery/deferred/jq-promise.sublime-snippet +++ b/snippets/js/libraries/jquery/deferred/jq-promise.sublime-snippet @@ -2,6 +2,6 @@ - jqpromise + jq.promise jq - promise diff --git a/snippets/js/jquery/dimensions/README.md b/snippets/js/libraries/jquery/dimensions/README.md similarity index 69% rename from snippets/js/jquery/dimensions/README.md rename to snippets/js/libraries/jquery/dimensions/README.md index 7031034..8b9f432 100644 --- a/snippets/js/jquery/dimensions/README.md +++ b/snippets/js/libraries/jquery/dimensions/README.md @@ -1,36 +1,36 @@ ## Dimensions -### [jqheight] height +### [jq.height] height ```javascript ${1:\$(document)}.height(); ``` -### [jqiheight] innerHeight +### [jq.iheight] innerHeight ```javascript ${1:\$(document)}.innerHeight(); ``` -### [jqiwidth] innerWidth +### [jq.iwidth] innerWidth ```javascript ${1:\$(document)}.innerWidth(); ``` -### [jqoheight] outerHeight +### [jq.oheight] outerHeight ```javascript ${1:\$(document)}.outerHeight(${2:includeMargin}); ``` -### [jqowidth] outerWidth +### [jq.owidth] outerWidth ```javascript ${1:\$(document)}.outerWidth(${2:includeMargin}); ``` -### [jqwidth] width +### [jq.width] width ```javascript ${1:\$(document)}.width(); diff --git a/snippets/js/jquery/dimensions/jq-dimensions-height.sublime-snippet b/snippets/js/libraries/jquery/dimensions/jq-dimensions-height.sublime-snippet similarity index 77% rename from snippets/js/jquery/dimensions/jq-dimensions-height.sublime-snippet rename to snippets/js/libraries/jquery/dimensions/jq-dimensions-height.sublime-snippet index 0ff887b..d1fe754 100644 --- a/snippets/js/jquery/dimensions/jq-dimensions-height.sublime-snippet +++ b/snippets/js/libraries/jquery/dimensions/jq-dimensions-height.sublime-snippet @@ -2,6 +2,6 @@ - jqheight + jq.height jq - height diff --git a/snippets/js/jquery/dimensions/jq-dimensions-inner-height.sublime-snippet b/snippets/js/libraries/jquery/dimensions/jq-dimensions-inner-height.sublime-snippet similarity index 78% rename from snippets/js/jquery/dimensions/jq-dimensions-inner-height.sublime-snippet rename to snippets/js/libraries/jquery/dimensions/jq-dimensions-inner-height.sublime-snippet index 5519c59..479d64e 100644 --- a/snippets/js/jquery/dimensions/jq-dimensions-inner-height.sublime-snippet +++ b/snippets/js/libraries/jquery/dimensions/jq-dimensions-inner-height.sublime-snippet @@ -2,6 +2,6 @@ - jqiheight + jq.iheight jq - innerHeight diff --git a/snippets/js/jquery/dimensions/jq-dimensions-inner-width.sublime-snippet b/snippets/js/libraries/jquery/dimensions/jq-dimensions-inner-width.sublime-snippet similarity index 78% rename from snippets/js/jquery/dimensions/jq-dimensions-inner-width.sublime-snippet rename to snippets/js/libraries/jquery/dimensions/jq-dimensions-inner-width.sublime-snippet index 40f8ac5..817b7ab 100644 --- a/snippets/js/jquery/dimensions/jq-dimensions-inner-width.sublime-snippet +++ b/snippets/js/libraries/jquery/dimensions/jq-dimensions-inner-width.sublime-snippet @@ -2,6 +2,6 @@ - jqiwidth + jq.iwidth jq - innerWidth diff --git a/snippets/js/jquery/dimensions/jq-dimensions-outer-height.sublime-snippet b/snippets/js/libraries/jquery/dimensions/jq-dimensions-outer-height.sublime-snippet similarity index 80% rename from snippets/js/jquery/dimensions/jq-dimensions-outer-height.sublime-snippet rename to snippets/js/libraries/jquery/dimensions/jq-dimensions-outer-height.sublime-snippet index a1670b6..dc64004 100644 --- a/snippets/js/jquery/dimensions/jq-dimensions-outer-height.sublime-snippet +++ b/snippets/js/libraries/jquery/dimensions/jq-dimensions-outer-height.sublime-snippet @@ -2,6 +2,6 @@ - jqoheight + jq.oheight jq - outerHeight diff --git a/snippets/js/jquery/dimensions/jq-dimensions-outer-width.sublime-snippet b/snippets/js/libraries/jquery/dimensions/jq-dimensions-outer-width.sublime-snippet similarity index 80% rename from snippets/js/jquery/dimensions/jq-dimensions-outer-width.sublime-snippet rename to snippets/js/libraries/jquery/dimensions/jq-dimensions-outer-width.sublime-snippet index 2f6be45..23381dd 100644 --- a/snippets/js/jquery/dimensions/jq-dimensions-outer-width.sublime-snippet +++ b/snippets/js/libraries/jquery/dimensions/jq-dimensions-outer-width.sublime-snippet @@ -2,6 +2,6 @@ - jqowidth + jq.owidth jq - outerWidth diff --git a/snippets/js/jquery/dimensions/jq-dimensions-width.sublime-snippet b/snippets/js/libraries/jquery/dimensions/jq-dimensions-width.sublime-snippet similarity index 77% rename from snippets/js/jquery/dimensions/jq-dimensions-width.sublime-snippet rename to snippets/js/libraries/jquery/dimensions/jq-dimensions-width.sublime-snippet index 0c767ff..b573ce4 100644 --- a/snippets/js/jquery/dimensions/jq-dimensions-width.sublime-snippet +++ b/snippets/js/libraries/jquery/dimensions/jq-dimensions-width.sublime-snippet @@ -2,6 +2,6 @@ - jqwidth + jq.width jq - width diff --git a/snippets/js/jquery/effects/README.md b/snippets/js/libraries/jquery/effects/README.md similarity index 77% rename from snippets/js/jquery/effects/README.md rename to snippets/js/libraries/jquery/effects/README.md index 99d0c5b..b10b048 100644 --- a/snippets/js/jquery/effects/README.md +++ b/snippets/js/libraries/jquery/effects/README.md @@ -1,102 +1,102 @@ ## Effects -### [jqanimate] animate +### [jq.animate] animate ```javascript ${1:\$("div")}.animate(${2:properties}${3:,duration}${4:,easing}${5:,complete}); ``` -### [jqcqueue] clearQueue +### [jq.cqueue] clearQueue ```javascript ${1:\$("div")}.clearQueue(${2:queueName}); ``` -### [jqdelay] delay +### [jq.delay] delay ```javascript ${1:\$("div")}.delay(${2:duration}${3:,queueName}); ``` -### [jqdequeue] dequeue +### [jq.dequeue] dequeue ```javascript ${1:\$("div")}.dequeue(${2:queueName}); ``` -### [jqfadein] fadeIn +### [jq.fadein] fadeIn ```javascript ${1:\$("div")}.fadeIn(${2:duration}${3:,easing}${4:,complete}); ``` -### [jqfadeout] fadeOut +### [jq.fadeout] fadeOut ```javascript ${1:\$("div")}.fadeOut(${2:duration}${3:,easing}${4:,complete}); ``` -### [jqfadetoggle] fadeToggle +### [jq.fadetoggle] fadeToggle ```javascript ${1:\$("div")}.fadeToggle(${2:duration}${3:,easing}${4:,complete}); ``` -### [jqfadeto] fadeTo +### [jq.fadeto] fadeTo ```javascript ${1:\$("div")}.fadeTo(${2:duration}, ${3:opacity}${4:,easing}${5:,complete}); ``` -### [jqfinish] finish +### [jq.finish] finish ```javascript ${1:\$("div")}.finish(${2:queue}); ``` -### [jqhide] hide +### [jq.hide] hide ```javascript ${1:\$("div")}.hide(${2:duration}${3:,easing}${4:,complete}); ``` -### [jqqueue] queue +### [jq.queue] queue ```javascript ${1:\$("div")}.queue(${2:queueName}); ``` -### [jqshow] show +### [jq.show] show ```javascript ${1:\$("div")}.show(${2:duration}${3:,easing}${4:,complete}); ``` -### [jqsdown] slideDown +### [jq.sdown] slideDown ```javascript ${1:\$("div")}.slideDown(${2:duration}${3:,easing}${4:,complete}); ``` -### [jqstoggle] slideToggle +### [jq.stoggle] slideToggle ```javascript ${1:\$("div")}.slideToggle(${2:duration}${3:,easing}${4:,complete}); ``` -### [jqsup] slideUp +### [jq.sup] slideUp ```javascript ${1:\$("div")}.slideUp(${2:duration}${3:,easing}${4:,complete}); ``` -### [jqstop] stop +### [jq.stop] stop ```javascript ${1:\$("div")}.stop(${2:queue}${3:,clearQueue}${4:,jumpToEnd}); ``` -### [jqtoggle] toggle +### [jq.toggle] toggle ```javascript ${1:\$("div")}.toggle(${2:duration}${3:,easing}${4:,complete}); diff --git a/snippets/js/jquery/effects/jq-effects-animate.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-animate.sublime-snippet similarity index 82% rename from snippets/js/jquery/effects/jq-effects-animate.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-animate.sublime-snippet index d8cd978..a25608d 100644 --- a/snippets/js/jquery/effects/jq-effects-animate.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-animate.sublime-snippet @@ -2,6 +2,6 @@ - jqanimate + jq.animate jq - animate diff --git a/snippets/js/jquery/effects/jq-effects-clear-queue.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-clear-queue.sublime-snippet similarity index 79% rename from snippets/js/jquery/effects/jq-effects-clear-queue.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-clear-queue.sublime-snippet index 6496ed5..06d48a6 100644 --- a/snippets/js/jquery/effects/jq-effects-clear-queue.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-clear-queue.sublime-snippet @@ -2,6 +2,6 @@ - jqcqueue + jq.cqueue jq - clearQueue diff --git a/snippets/js/jquery/effects/jq-effects-delay.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-delay.sublime-snippet similarity index 80% rename from snippets/js/jquery/effects/jq-effects-delay.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-delay.sublime-snippet index 1fec283..0be19a8 100644 --- a/snippets/js/jquery/effects/jq-effects-delay.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-delay.sublime-snippet @@ -2,6 +2,6 @@ - jqdelay + jq.delay jq - delay diff --git a/snippets/js/jquery/effects/jq-effects-dequeue.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-dequeue.sublime-snippet similarity index 78% rename from snippets/js/jquery/effects/jq-effects-dequeue.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-dequeue.sublime-snippet index 7d66a07..e7c42d7 100644 --- a/snippets/js/jquery/effects/jq-effects-dequeue.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-dequeue.sublime-snippet @@ -2,6 +2,6 @@ - jqdequeue + jq.dequeue jq - dequeue diff --git a/snippets/js/jquery/effects/jq-effects-fade-in.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-fade-in.sublime-snippet similarity index 81% rename from snippets/js/jquery/effects/jq-effects-fade-in.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-fade-in.sublime-snippet index 46121b6..47c012c 100644 --- a/snippets/js/jquery/effects/jq-effects-fade-in.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-fade-in.sublime-snippet @@ -2,6 +2,6 @@ - jqfadein + jq.fadein jq - fadeIn diff --git a/snippets/js/jquery/effects/jq-effects-fade-out.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-fade-out.sublime-snippet similarity index 81% rename from snippets/js/jquery/effects/jq-effects-fade-out.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-fade-out.sublime-snippet index d2e959a..7397416 100644 --- a/snippets/js/jquery/effects/jq-effects-fade-out.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-fade-out.sublime-snippet @@ -2,6 +2,6 @@ - jqfadeout + jq.fadeout jq - fadeOut diff --git a/snippets/js/jquery/effects/jq-effects-fade-to.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-fade-to.sublime-snippet similarity index 80% rename from snippets/js/jquery/effects/jq-effects-fade-to.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-fade-to.sublime-snippet index 2e51c3f..a603e2a 100644 --- a/snippets/js/jquery/effects/jq-effects-fade-to.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-fade-to.sublime-snippet @@ -2,6 +2,6 @@ - jqfadetoggle + jq.fadetoggle jq - fadeToggle diff --git a/snippets/js/jquery/effects/jq-effects-fade-toggle.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-fade-toggle.sublime-snippet similarity index 82% rename from snippets/js/jquery/effects/jq-effects-fade-toggle.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-fade-toggle.sublime-snippet index 47001d4..9955198 100644 --- a/snippets/js/jquery/effects/jq-effects-fade-toggle.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-fade-toggle.sublime-snippet @@ -2,6 +2,6 @@ - jqfadeto + jq.fadeto jq - fadeTo diff --git a/snippets/js/jquery/effects/jq-effects-finish.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-finish.sublime-snippet similarity index 78% rename from snippets/js/jquery/effects/jq-effects-finish.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-finish.sublime-snippet index 91a993a..bf03107 100644 --- a/snippets/js/jquery/effects/jq-effects-finish.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-finish.sublime-snippet @@ -2,6 +2,6 @@ - jqfinish + jq.finish jq - finish diff --git a/snippets/js/jquery/effects/jq-effects-hide.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-hide.sublime-snippet similarity index 81% rename from snippets/js/jquery/effects/jq-effects-hide.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-hide.sublime-snippet index 55ef26f..4ba2893 100644 --- a/snippets/js/jquery/effects/jq-effects-hide.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-hide.sublime-snippet @@ -2,6 +2,6 @@ - jqhide + jq.hide jq - hide diff --git a/snippets/js/jquery/effects/jq-effects-queue.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-queue.sublime-snippet similarity index 78% rename from snippets/js/jquery/effects/jq-effects-queue.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-queue.sublime-snippet index e7330fd..bdae6e0 100644 --- a/snippets/js/jquery/effects/jq-effects-queue.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-queue.sublime-snippet @@ -2,6 +2,6 @@ - jqqueue + jq.queue jq - queue diff --git a/snippets/js/jquery/effects/jq-effects-show.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-show.sublime-snippet similarity index 81% rename from snippets/js/jquery/effects/jq-effects-show.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-show.sublime-snippet index 6525fc4..180b355 100644 --- a/snippets/js/jquery/effects/jq-effects-show.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-show.sublime-snippet @@ -2,6 +2,6 @@ - jqshow + jq.show jq - show diff --git a/snippets/js/jquery/effects/jq-effects-slide-down.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-slide-down.sublime-snippet similarity index 82% rename from snippets/js/jquery/effects/jq-effects-slide-down.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-slide-down.sublime-snippet index d37e729..4e12fcd 100644 --- a/snippets/js/jquery/effects/jq-effects-slide-down.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-slide-down.sublime-snippet @@ -2,6 +2,6 @@ - jqsdown + jq.sdown jq - slideDown diff --git a/snippets/js/jquery/effects/jq-effects-slide-toggle.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-slide-toggle.sublime-snippet similarity index 81% rename from snippets/js/jquery/effects/jq-effects-slide-toggle.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-slide-toggle.sublime-snippet index 264bf90..271328f 100644 --- a/snippets/js/jquery/effects/jq-effects-slide-toggle.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-slide-toggle.sublime-snippet @@ -2,6 +2,6 @@ - jqstoggle + jq.stoggle jq - slideToggle diff --git a/snippets/js/jquery/effects/jq-effects-slide-up.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-slide-up.sublime-snippet similarity index 82% rename from snippets/js/jquery/effects/jq-effects-slide-up.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-slide-up.sublime-snippet index 7c9d628..0425c20 100644 --- a/snippets/js/jquery/effects/jq-effects-slide-up.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-slide-up.sublime-snippet @@ -2,6 +2,6 @@ - jqsup + jq.sup jq - slideUp diff --git a/snippets/js/jquery/effects/jq-effects-stop.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-stop.sublime-snippet similarity index 81% rename from snippets/js/jquery/effects/jq-effects-stop.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-stop.sublime-snippet index 319bcdd..9318f07 100644 --- a/snippets/js/jquery/effects/jq-effects-stop.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-stop.sublime-snippet @@ -2,6 +2,6 @@ - jqstop + jq.stop jq - stop diff --git a/snippets/js/jquery/effects/jq-effects-toggle.sublime-snippet b/snippets/js/libraries/jquery/effects/jq-effects-toggle.sublime-snippet similarity index 81% rename from snippets/js/jquery/effects/jq-effects-toggle.sublime-snippet rename to snippets/js/libraries/jquery/effects/jq-effects-toggle.sublime-snippet index 2fac51f..d11205e 100644 --- a/snippets/js/jquery/effects/jq-effects-toggle.sublime-snippet +++ b/snippets/js/libraries/jquery/effects/jq-effects-toggle.sublime-snippet @@ -2,6 +2,6 @@ - jqtoggle + jq.toggle jq - toggle diff --git a/snippets/js/jquery/events/README.md b/snippets/js/libraries/jquery/events/README.md similarity index 72% rename from snippets/js/jquery/events/README.md rename to snippets/js/libraries/jquery/events/README.md index c03d96e..5011af7 100644 --- a/snippets/js/jquery/events/README.md +++ b/snippets/js/libraries/jquery/events/README.md @@ -1,270 +1,270 @@ ## Events -### [jqbind] bind +### [jq.bind] bind ```javascript ${1:\$(document)}.bind(${2:eventType}${3:,eventData}${4:,handler}); ``` -### [jqclick] click +### [jq.click] click ```javascript ${1:\$(document)}.click(${2:eventData}${3:,handler}); ``` -### [jqcmenu] contextmenu +### [jq.cmenu] contextmenu ```javascript ${1:\$(document)}.contextmenu(${2:eventData}${3:,handler}); ``` -### [jqctarget] currentTarget +### [jq.ctarget] currentTarget ```javascript ${1:\event}.currentTarget; ``` -### [jqedata] data +### [jq.edata] data ```javascript ${1:\event}.data; ``` -### [jqdclick] dblclick +### [jq.dclick] dblclick ```javascript ${1:\$(document)}.dblclick(${2:eventData}${3:,handler}); ``` -### [jqdtarget] delegateTarget +### [jq.dtarget] delegateTarget ```javascript ${1:\event}.delegateTarget; ``` -### [jqdelegate] delegate +### [jq.delegate] delegate ```javascript ${1:\$(document)}.delegate(${2:selector}${3:,eventType}${4:,handler}); ``` -### [jqhover] hover +### [jq.hover] hover ```javascript ${1:\event}.hover(${2:handlerIn}${3:, handlerOut}); ``` -### [jqidprevented] isDefaultPrevented +### [jq.idprevented] isDefaultPrevented ```javascript ${1:\event}.isDefaultPrevented(); ``` -### [jqiips] isImmediatePropagationStopped +### [jq.iips] isImmediatePropagationStopped ```javascript ${1:\event}.isImmediatePropagationStopped(); ``` -### [jqips] isPropagationStopped +### [jq.ips] isPropagationStopped ```javascript ${1:\event}.isPropagationStopped(); ``` -### [jqkdown] keydown +### [jq.kdown] keydown ```javascript ${1:\event}.keydown(${2:eventData}${3:, handler}); ``` -### [jqkpress] keypress +### [jq.kpress] keypress ```javascript ${1:\event}.keypress(${2:eventData}${3:, handler}); ``` -### [jqkup] keyup +### [jq.kup] keyup ```javascript ${1:\event}.keyup(${2:eventData}${3:, handler}); ``` -### [jqmkey] metaKey +### [jq.mkey] metaKey ```javascript ${1:\event}.metaKey; ``` -### [jqmdown] mousedown +### [jq.mdown] mousedown ```javascript ${1:\$(document)}.mousedown(${2:eventData}${3:, handler}); ``` -### [jqmenter] mouseenter +### [jq.menter] mouseenter ```javascript ${1:\$(document)}.mouseenter(${2:eventData}${3:, handler}); ``` -### [jqmleave] mouseleave +### [jq.mleave] mouseleave ```javascript ${1:\$(document)}.mouseleave(${2:eventData}${3:, handler}); ``` -### [jqmmove] mousemove +### [jq.mmove] mousemove ```javascript ${1:\$(document)}.mousemove(${2:eventData}${3:, handler}); ``` -### [jqmout] mouseout +### [jq.mout] mouseout ```javascript ${1:\$(document)}.mouseout(${2:eventData}${3:, handler}); ``` -### [jqmover] mouseover +### [jq.mover] mouseover ```javascript ${1:\$(document)}.mouseover(${2:eventData}${3:, handler}); ``` -### [jqmup] mouseup +### [jq.mup] mouseup ```javascript ${1:\$(document)}.mouseup(${2:eventData}${3:, handler}); ``` -### [jqns] namespace +### [jq.ns] namespace ```javascript ${1:\event}.namespace; ``` -### [jqoff] off +### [jq.off] off ```javascript ${1:\$(document)}.off(${2:events}${3:, selector}${4:, handler}); ``` -### [jqon] on +### [jq.on] on ```javascript ${1:\$(document)}.on(${2:events}${3:, selector}${4:, data}${5:, handler}); ``` -### [jqone] one +### [jq.one] one ```javascript ${1:\$(document)}.one(${2:events}${3:, selector}${4:, data}${5:, handler}); ``` -### [jqpx] pageX +### [jq.px] pageX ```javascript ${1:\event}.pageX; ``` -### [jqpy] pageY +### [jq.py] pageY ```javascript ${1:\event}.pageY; ``` -### [jqpd] preventDefault +### [jq.pd] preventDefault ```javascript ${1:\event}.preventDefault(); ``` -### [jqready] ready +### [jq.ready] ready ```javascript ${1:\$(document)}.ready(${2:handler}); ``` -### [jqrtarget] relatedTarget +### [jq.rtarget] relatedTarget ```javascript ${1:\event}.relatedTarget; ``` -### [jqresize] resize +### [jq.resize] resize ```javascript ${1:\$(window)}.resize(${2:eventData}${3:, handler}); ``` -### [jqresult] result +### [jq.result] result ```javascript ${1:\event}.result; ``` -### [jqscroll] scroll +### [jq.scroll] scroll ```javascript ${1:\$(window)}.scroll(${2:eventData}${3:, handler}); ``` -### [jqsip] stopImmediatePropagation +### [jq.sip] stopImmediatePropagation ```javascript ${1:\event}.stopImmediatePropagation(); ``` -### [jqsp] stopPropagation +### [jq.sp] stopPropagation ```javascript ${1:\event}.stopPropagation(); ``` -### [jqtarget] target +### [jq.target] target ```javascript ${1:\event}.target; ``` -### [jqtstamp] timeStamp +### [jq.tstamp] timeStamp ```javascript ${1:\event}.timeStamp; ``` -### [jqthandler] triggerHandler +### [jq.thandler] triggerHandler ```javascript ${1:\$(document)}.triggerHandler(${2:eventType}${3:, extraParameters}); ``` -### [jqtrigger] trigger +### [jq.trigger] trigger ```javascript ${1:\$(document)}.trigger(${2:eventType}${3:, extraParameters}); ``` -### [jqtype] type +### [jq.type] type ```javascript ${1:\event}.type; ``` -### [jqunbind] unbind +### [jq.unbind] unbind ```javascript ${1:\$(document)}.unbind(${2:eventType}${3:, handler}); ``` -### [jqundelegate] undelegate +### [jq.undelegate] undelegate ```javascript ${1:\$(document)}.undelegate(${2:selector}${3:, eventType}${4:, handler}); ``` -### [jqwhich] which +### [jq.which] which ```javascript ${1:\event}.which; diff --git a/snippets/js/jquery/events/jq-events-bind.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-bind.sublime-snippet similarity index 82% rename from snippets/js/jquery/events/jq-events-bind.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-bind.sublime-snippet index 2302133..e347218 100644 --- a/snippets/js/jquery/events/jq-events-bind.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-bind.sublime-snippet @@ -2,6 +2,6 @@ - jqbind + jq.bind jq - bind diff --git a/snippets/js/jquery/events/jq-events-click.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-click.sublime-snippet similarity index 80% rename from snippets/js/jquery/events/jq-events-click.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-click.sublime-snippet index c40d6ff..99e8e67 100644 --- a/snippets/js/jquery/events/jq-events-click.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-click.sublime-snippet @@ -2,6 +2,6 @@ - jqclick + jq.click jq - click diff --git a/snippets/js/jquery/events/jq-events-context-menu.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-context-menu.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-context-menu.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-context-menu.sublime-snippet index 1b06efe..dd96a61 100644 --- a/snippets/js/jquery/events/jq-events-context-menu.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-context-menu.sublime-snippet @@ -2,6 +2,6 @@ - jqjqcmenu + jq.jqcmenu jq - contextmenu diff --git a/snippets/js/jquery/events/jq-events-current-target.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-current-target.sublime-snippet similarity index 77% rename from snippets/js/jquery/events/jq-events-current-target.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-current-target.sublime-snippet index dc7fd2e..18a0116 100644 --- a/snippets/js/jquery/events/jq-events-current-target.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-current-target.sublime-snippet @@ -2,6 +2,6 @@ - jqctarget + jq.ctarget jq - currentTarget diff --git a/snippets/js/jquery/events/jq-events-data.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-data.sublime-snippet similarity index 76% rename from snippets/js/jquery/events/jq-events-data.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-data.sublime-snippet index 67b3d75..e0b5008 100644 --- a/snippets/js/jquery/events/jq-events-data.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-data.sublime-snippet @@ -2,6 +2,6 @@ - jqedata + jq.edata jq - Event data diff --git a/snippets/js/jquery/events/jq-events-dbl-click.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-dbl-click.sublime-snippet similarity index 80% rename from snippets/js/jquery/events/jq-events-dbl-click.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-dbl-click.sublime-snippet index fc494dd..ede4e91 100644 --- a/snippets/js/jquery/events/jq-events-dbl-click.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-dbl-click.sublime-snippet @@ -2,6 +2,6 @@ - jqdclick + jq.dclick jq - dblclick diff --git a/snippets/js/jquery/events/jq-events-delegate-target.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-delegate-target.sublime-snippet similarity index 77% rename from snippets/js/jquery/events/jq-events-delegate-target.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-delegate-target.sublime-snippet index 355e58c..1ea239b 100644 --- a/snippets/js/jquery/events/jq-events-delegate-target.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-delegate-target.sublime-snippet @@ -2,6 +2,6 @@ - jqdtarget + jq.dtarget jq - delegateTarget diff --git a/snippets/js/jquery/events/jq-events-delegate.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-delegate.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-delegate.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-delegate.sublime-snippet index 3c8fcd1..88714ec 100644 --- a/snippets/js/jquery/events/jq-events-delegate.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-delegate.sublime-snippet @@ -2,6 +2,6 @@ - jqdelegate + jq.delegate jq - delegate diff --git a/snippets/js/jquery/events/jq-events-hover.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-hover.sublime-snippet similarity index 80% rename from snippets/js/jquery/events/jq-events-hover.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-hover.sublime-snippet index ec43680..17f3af0 100644 --- a/snippets/js/jquery/events/jq-events-hover.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-hover.sublime-snippet @@ -2,6 +2,6 @@ - jqhover + jq.hover jq - hover diff --git a/snippets/js/jquery/events/jq-events-is-default-prevented.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-is-default-prevented.sublime-snippet similarity index 77% rename from snippets/js/jquery/events/jq-events-is-default-prevented.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-is-default-prevented.sublime-snippet index fed5d43..e100d4d 100644 --- a/snippets/js/jquery/events/jq-events-is-default-prevented.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-is-default-prevented.sublime-snippet @@ -2,6 +2,6 @@ - jqidprevented + jq.idprevented jq - isDefaultPrevented diff --git a/snippets/js/jquery/events/jq-events-is-immediate-propagation-stopped.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-is-immediate-propagation-stopped.sublime-snippet similarity index 82% rename from snippets/js/jquery/events/jq-events-is-immediate-propagation-stopped.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-is-immediate-propagation-stopped.sublime-snippet index 4cfb67c..f24361a 100644 --- a/snippets/js/jquery/events/jq-events-is-immediate-propagation-stopped.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-is-immediate-propagation-stopped.sublime-snippet @@ -2,6 +2,6 @@ - jqiips + jq.iips jq - isImmediatePropagationStopped diff --git a/snippets/js/jquery/events/jq-events-is-propagation-stopped.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-is-propagation-stopped.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-is-propagation-stopped.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-is-propagation-stopped.sublime-snippet index 899dad0..b11c81d 100644 --- a/snippets/js/jquery/events/jq-events-is-propagation-stopped.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-is-propagation-stopped.sublime-snippet @@ -2,6 +2,6 @@ - jqips + jq.ips jq - isPropagationStopped diff --git a/snippets/js/jquery/events/jq-events-key-down.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-key-down.sublime-snippet similarity index 80% rename from snippets/js/jquery/events/jq-events-key-down.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-key-down.sublime-snippet index 523f3e5..1a0a8d4 100644 --- a/snippets/js/jquery/events/jq-events-key-down.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-key-down.sublime-snippet @@ -2,6 +2,6 @@ - jqkdown + jq.kdown jq - keydown diff --git a/snippets/js/jquery/events/jq-events-key-press.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-key-press.sublime-snippet similarity index 80% rename from snippets/js/jquery/events/jq-events-key-press.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-key-press.sublime-snippet index 60999a8..1f69a77 100644 --- a/snippets/js/jquery/events/jq-events-key-press.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-key-press.sublime-snippet @@ -2,6 +2,6 @@ - jqkpress + jq.kpress jq - keypress diff --git a/snippets/js/jquery/events/jq-events-key-up.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-key-up.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-key-up.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-key-up.sublime-snippet index 8e9264a..0cc9739 100644 --- a/snippets/js/jquery/events/jq-events-key-up.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-key-up.sublime-snippet @@ -2,6 +2,6 @@ - jqkup + jq.kup jq - keyup diff --git a/snippets/js/jquery/events/jq-events-meta-key.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-meta-key.sublime-snippet similarity index 77% rename from snippets/js/jquery/events/jq-events-meta-key.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-meta-key.sublime-snippet index 958a1cb..d3f2426 100644 --- a/snippets/js/jquery/events/jq-events-meta-key.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-meta-key.sublime-snippet @@ -2,6 +2,6 @@ - jqmkey + jq.mkey jq - metaKey diff --git a/snippets/js/jquery/events/jq-events-mouse-down.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-mouse-down.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-mouse-down.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-mouse-down.sublime-snippet index d67b5b5..f47d325 100644 --- a/snippets/js/jquery/events/jq-events-mouse-down.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-mouse-down.sublime-snippet @@ -2,6 +2,6 @@ - jqmdown + jq.mdown jq - mousedown diff --git a/snippets/js/jquery/events/jq-events-mouse-enter.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-mouse-enter.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-mouse-enter.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-mouse-enter.sublime-snippet index ada638e..1fdb58f 100644 --- a/snippets/js/jquery/events/jq-events-mouse-enter.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-mouse-enter.sublime-snippet @@ -2,6 +2,6 @@ - jqmenter + jq.menter jq - mouseenter diff --git a/snippets/js/jquery/events/jq-events-mouse-leave.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-mouse-leave.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-mouse-leave.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-mouse-leave.sublime-snippet index 942c0a9..0c9e0e3 100644 --- a/snippets/js/jquery/events/jq-events-mouse-leave.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-mouse-leave.sublime-snippet @@ -2,6 +2,6 @@ - jqmleave + jq.mleave jq - mouseleave diff --git a/snippets/js/jquery/events/jq-events-mouse-move.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-mouse-move.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-mouse-move.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-mouse-move.sublime-snippet index c425a1f..a9dab05 100644 --- a/snippets/js/jquery/events/jq-events-mouse-move.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-mouse-move.sublime-snippet @@ -2,6 +2,6 @@ - jqmmove + jq.mmove jq - mousemove diff --git a/snippets/js/jquery/events/jq-events-mouse-out.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-mouse-out.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-mouse-out.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-mouse-out.sublime-snippet index 0170d81..53709f4 100644 --- a/snippets/js/jquery/events/jq-events-mouse-out.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-mouse-out.sublime-snippet @@ -2,6 +2,6 @@ - jqmout + jq.mout jq - mouseout diff --git a/snippets/js/jquery/events/jq-events-mouse-over.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-mouse-over.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-mouse-over.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-mouse-over.sublime-snippet index 5298069..b050c7c 100644 --- a/snippets/js/jquery/events/jq-events-mouse-over.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-mouse-over.sublime-snippet @@ -2,6 +2,6 @@ - jqmover + jq.mover jq - mouseover diff --git a/snippets/js/jquery/events/jq-events-mouse-up.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-mouse-up.sublime-snippet similarity index 82% rename from snippets/js/jquery/events/jq-events-mouse-up.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-mouse-up.sublime-snippet index 125e567..2a4a82d 100644 --- a/snippets/js/jquery/events/jq-events-mouse-up.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-mouse-up.sublime-snippet @@ -2,6 +2,6 @@ - jqmup + jq.mup jq - mouseup diff --git a/snippets/js/jquery/events/jq-events-namespace.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-namespace.sublime-snippet similarity index 78% rename from snippets/js/jquery/events/jq-events-namespace.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-namespace.sublime-snippet index 0052221..bd166cd 100644 --- a/snippets/js/jquery/events/jq-events-namespace.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-namespace.sublime-snippet @@ -2,6 +2,6 @@ - jqns + jq.ns jq - namespace diff --git a/snippets/js/jquery/events/jq-events-off.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-off.sublime-snippet similarity index 82% rename from snippets/js/jquery/events/jq-events-off.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-off.sublime-snippet index f3c5409..e2bb471 100644 --- a/snippets/js/jquery/events/jq-events-off.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-off.sublime-snippet @@ -2,6 +2,6 @@ - jqoff + jq.off jq - off diff --git a/snippets/js/jquery/events/jq-events-on.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-on.sublime-snippet similarity index 83% rename from snippets/js/jquery/events/jq-events-on.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-on.sublime-snippet index 57ea344..6da2cfa 100644 --- a/snippets/js/jquery/events/jq-events-on.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-on.sublime-snippet @@ -2,6 +2,6 @@ - jqon + jq.on jq - on diff --git a/snippets/js/jquery/events/jq-events-one.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-one.sublime-snippet similarity index 83% rename from snippets/js/jquery/events/jq-events-one.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-one.sublime-snippet index c49c198..0684227 100644 --- a/snippets/js/jquery/events/jq-events-one.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-one.sublime-snippet @@ -2,6 +2,6 @@ - jqone + jq.one jq - one diff --git a/snippets/js/jquery/events/jq-events-page-x.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-page-x.sublime-snippet similarity index 77% rename from snippets/js/jquery/events/jq-events-page-x.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-page-x.sublime-snippet index f7ed56b..9ff7c8d 100644 --- a/snippets/js/jquery/events/jq-events-page-x.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-page-x.sublime-snippet @@ -2,6 +2,6 @@ - jqpx + jq.px jq - pageX diff --git a/snippets/js/jquery/events/jq-events-page-y.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-page-y.sublime-snippet similarity index 77% rename from snippets/js/jquery/events/jq-events-page-y.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-page-y.sublime-snippet index 717586d..b65415e 100644 --- a/snippets/js/jquery/events/jq-events-page-y.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-page-y.sublime-snippet @@ -2,6 +2,6 @@ - jqpy + jq.py jq - pageY diff --git a/snippets/js/jquery/events/jq-events-prevent-default.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-prevent-default.sublime-snippet similarity index 80% rename from snippets/js/jquery/events/jq-events-prevent-default.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-prevent-default.sublime-snippet index 637602f..f7d4ffc 100644 --- a/snippets/js/jquery/events/jq-events-prevent-default.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-prevent-default.sublime-snippet @@ -2,6 +2,6 @@ - jqpd + jq.pd jq - preventDefault diff --git a/snippets/js/jquery/events/jq-events-ready.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-ready.sublime-snippet similarity index 78% rename from snippets/js/jquery/events/jq-events-ready.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-ready.sublime-snippet index 7851079..9d70be2 100644 --- a/snippets/js/jquery/events/jq-events-ready.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-ready.sublime-snippet @@ -2,6 +2,6 @@ - jqready + jq.ready jq - ready diff --git a/snippets/js/jquery/events/jq-events-related-target.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-related-target.sublime-snippet similarity index 77% rename from snippets/js/jquery/events/jq-events-related-target.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-related-target.sublime-snippet index 1a4f652..5484d67 100644 --- a/snippets/js/jquery/events/jq-events-related-target.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-related-target.sublime-snippet @@ -2,6 +2,6 @@ - jqrtarget + jq.rtarget jq - relatedTarget diff --git a/snippets/js/jquery/events/jq-events-resize.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-resize.sublime-snippet similarity index 80% rename from snippets/js/jquery/events/jq-events-resize.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-resize.sublime-snippet index 397215e..7f10b7d 100644 --- a/snippets/js/jquery/events/jq-events-resize.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-resize.sublime-snippet @@ -2,6 +2,6 @@ - jqresize + jq.resize jq - resize diff --git a/snippets/js/jquery/events/jq-events-result.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-result.sublime-snippet similarity index 75% rename from snippets/js/jquery/events/jq-events-result.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-result.sublime-snippet index c407537..f09b8e2 100644 --- a/snippets/js/jquery/events/jq-events-result.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-result.sublime-snippet @@ -2,6 +2,6 @@ - jqresult + jq.result jq - result diff --git a/snippets/js/jquery/events/jq-events-scroll.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-scroll.sublime-snippet similarity index 80% rename from snippets/js/jquery/events/jq-events-scroll.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-scroll.sublime-snippet index 96d51ed..9677107 100644 --- a/snippets/js/jquery/events/jq-events-scroll.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-scroll.sublime-snippet @@ -2,6 +2,6 @@ - jqscroll + jq.scroll jq - scroll diff --git a/snippets/js/jquery/events/jq-events-stop-immediate-propagation.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-stop-immediate-propagation.sublime-snippet similarity index 82% rename from snippets/js/jquery/events/jq-events-stop-immediate-propagation.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-stop-immediate-propagation.sublime-snippet index 8100bb0..8bf59b6 100644 --- a/snippets/js/jquery/events/jq-events-stop-immediate-propagation.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-stop-immediate-propagation.sublime-snippet @@ -2,6 +2,6 @@ - jqsip + jq.sip jq - stopImmediatePropagation diff --git a/snippets/js/jquery/events/jq-events-stop-propagation.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-stop-propagation.sublime-snippet similarity index 80% rename from snippets/js/jquery/events/jq-events-stop-propagation.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-stop-propagation.sublime-snippet index 0a68d16..60ab9cd 100644 --- a/snippets/js/jquery/events/jq-events-stop-propagation.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-stop-propagation.sublime-snippet @@ -2,6 +2,6 @@ - jqsp + jq.sp jq - stopPropagation diff --git a/snippets/js/jquery/events/jq-events-target.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-target.sublime-snippet similarity index 75% rename from snippets/js/jquery/events/jq-events-target.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-target.sublime-snippet index a343641..09cb760 100644 --- a/snippets/js/jquery/events/jq-events-target.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-target.sublime-snippet @@ -2,6 +2,6 @@ - jqtarget + jq.target jq - target diff --git a/snippets/js/jquery/events/jq-events-time-stamp.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-time-stamp.sublime-snippet similarity index 76% rename from snippets/js/jquery/events/jq-events-time-stamp.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-time-stamp.sublime-snippet index 937657a..7cc52ff 100644 --- a/snippets/js/jquery/events/jq-events-time-stamp.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-time-stamp.sublime-snippet @@ -2,6 +2,6 @@ - jqtstamp + jq.tstamp jq - timeStamp diff --git a/snippets/js/jquery/events/jq-events-trigger-handler.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-trigger-handler.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-trigger-handler.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-trigger-handler.sublime-snippet index 9a07e40..6dfa185 100644 --- a/snippets/js/jquery/events/jq-events-trigger-handler.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-trigger-handler.sublime-snippet @@ -2,6 +2,6 @@ - jqthandler + jq.thandler jq - triggerHandler diff --git a/snippets/js/jquery/events/jq-events-trigger.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-trigger.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-trigger.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-trigger.sublime-snippet index 9d46310..072256d 100644 --- a/snippets/js/jquery/events/jq-events-trigger.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-trigger.sublime-snippet @@ -2,6 +2,6 @@ - jqtrigger + jq.trigger jq - trigger diff --git a/snippets/js/jquery/events/jq-events-type.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-type.sublime-snippet similarity index 76% rename from snippets/js/jquery/events/jq-events-type.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-type.sublime-snippet index 3d3ae87..e00893c 100644 --- a/snippets/js/jquery/events/jq-events-type.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-type.sublime-snippet @@ -2,6 +2,6 @@ - jqtype + jq.type jq - type diff --git a/snippets/js/jquery/events/jq-events-unbind.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-unbind.sublime-snippet similarity index 80% rename from snippets/js/jquery/events/jq-events-unbind.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-unbind.sublime-snippet index d718e32..f86df5c 100644 --- a/snippets/js/jquery/events/jq-events-unbind.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-unbind.sublime-snippet @@ -2,6 +2,6 @@ - jqunbind + jq.unbind jq - unbind diff --git a/snippets/js/jquery/events/jq-events-undelegate.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-undelegate.sublime-snippet similarity index 81% rename from snippets/js/jquery/events/jq-events-undelegate.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-undelegate.sublime-snippet index c763fbd..6e925b1 100644 --- a/snippets/js/jquery/events/jq-events-undelegate.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-undelegate.sublime-snippet @@ -2,6 +2,6 @@ - jqundelegate + jq.undelegate jq - undelegate diff --git a/snippets/js/jquery/events/jq-events-which.sublime-snippet b/snippets/js/libraries/jquery/events/jq-events-which.sublime-snippet similarity index 76% rename from snippets/js/jquery/events/jq-events-which.sublime-snippet rename to snippets/js/libraries/jquery/events/jq-events-which.sublime-snippet index f6881e8..d9b992e 100644 --- a/snippets/js/jquery/events/jq-events-which.sublime-snippet +++ b/snippets/js/libraries/jquery/events/jq-events-which.sublime-snippet @@ -2,6 +2,6 @@ - jqwhich + jq.which jq - which diff --git a/snippets/js/jquery/forms/README.md b/snippets/js/libraries/jquery/forms/README.md similarity index 74% rename from snippets/js/jquery/forms/README.md rename to snippets/js/libraries/jquery/forms/README.md index 40e9bd8..1d3f84a 100644 --- a/snippets/js/jquery/forms/README.md +++ b/snippets/js/libraries/jquery/forms/README.md @@ -1,66 +1,66 @@ ## Forms -### [jqblur] blur +### [jq.blur] blur ```javascript ${1:\$(document)}.blur(${2:eventData}${3:,handler}); ``` -### [jqchange] change +### [jq.change] change ```javascript ${1:\$(document)}.change(${2:eventData}${3:,handler}); ``` -### [jqfocusin] focusin +### [jq.focusin] focusin ```javascript ${1:\$(document)}.focusin(${2:eventData}${3:,handler}); ``` -### [jqfocusout] focusout +### [jq.focusout] focusout ```javascript ${1:\$(document)}.focusout(${2:eventData}${3:,handler}); ``` -### [jqfocus] focus +### [jq.focus] focus ```javascript ${1:\$(document)}.focus(${2:eventData}${3:,handler}); ``` -### [jqparam] param +### [jq.param] param ```javascript ${1:\$}.param(${2:obj}${3:,traditional}); ``` -### [jqselect] select +### [jq.select] select ```javascript ${1:\$(document)}.select(${2:eventData}${3:,handler}); ``` -### [jqserarray] serializeArray +### [jq.serarray] serializeArray ```javascript ${1:\$(this)}.serializeArray(); ``` -### [jqser] serialize +### [jq.ser] serialize ```javascript ${1:\$(this)}.serialize(); ``` -### [jqsubmit] submit +### [jq.submit] submit ```javascript ${1:\$(document)}.submit(${2:eventData}${3:,handler}); ``` -### [jqval] val +### [jq.val] val ```javascript ${1:\$(this)}.val(); diff --git a/snippets/js/jquery/forms/jq-forms-blur.sublime-snippet b/snippets/js/libraries/jquery/forms/jq-forms-blur.sublime-snippet similarity index 80% rename from snippets/js/jquery/forms/jq-forms-blur.sublime-snippet rename to snippets/js/libraries/jquery/forms/jq-forms-blur.sublime-snippet index 3ee9ac8..e9f7704 100644 --- a/snippets/js/jquery/forms/jq-forms-blur.sublime-snippet +++ b/snippets/js/libraries/jquery/forms/jq-forms-blur.sublime-snippet @@ -2,6 +2,6 @@ - jqblur + jq.blur jq - blur diff --git a/snippets/js/jquery/forms/jq-forms-change.sublime-snippet b/snippets/js/libraries/jquery/forms/jq-forms-change.sublime-snippet similarity index 80% rename from snippets/js/jquery/forms/jq-forms-change.sublime-snippet rename to snippets/js/libraries/jquery/forms/jq-forms-change.sublime-snippet index 5ff3e49..f711b1e 100644 --- a/snippets/js/jquery/forms/jq-forms-change.sublime-snippet +++ b/snippets/js/libraries/jquery/forms/jq-forms-change.sublime-snippet @@ -2,6 +2,6 @@ - jqchange + jq.change jq - change diff --git a/snippets/js/jquery/forms/jq-forms-focus-in.sublime-snippet b/snippets/js/libraries/jquery/forms/jq-forms-focus-in.sublime-snippet similarity index 80% rename from snippets/js/jquery/forms/jq-forms-focus-in.sublime-snippet rename to snippets/js/libraries/jquery/forms/jq-forms-focus-in.sublime-snippet index 9b1caad..cef399d 100644 --- a/snippets/js/jquery/forms/jq-forms-focus-in.sublime-snippet +++ b/snippets/js/libraries/jquery/forms/jq-forms-focus-in.sublime-snippet @@ -2,6 +2,6 @@ - jqfocusin + jq.focusin jq - focusin diff --git a/snippets/js/jquery/forms/jq-forms-focus-out.sublime-snippet b/snippets/js/libraries/jquery/forms/jq-forms-focus-out.sublime-snippet similarity index 80% rename from snippets/js/jquery/forms/jq-forms-focus-out.sublime-snippet rename to snippets/js/libraries/jquery/forms/jq-forms-focus-out.sublime-snippet index 3623d88..673129c 100644 --- a/snippets/js/jquery/forms/jq-forms-focus-out.sublime-snippet +++ b/snippets/js/libraries/jquery/forms/jq-forms-focus-out.sublime-snippet @@ -2,6 +2,6 @@ - jqfocusout + jq.focusout jq - focusout diff --git a/snippets/js/jquery/forms/jq-forms-focus.sublime-snippet b/snippets/js/libraries/jquery/forms/jq-forms-focus.sublime-snippet similarity index 80% rename from snippets/js/jquery/forms/jq-forms-focus.sublime-snippet rename to snippets/js/libraries/jquery/forms/jq-forms-focus.sublime-snippet index b532c01..e3b5baa 100644 --- a/snippets/js/jquery/forms/jq-forms-focus.sublime-snippet +++ b/snippets/js/libraries/jquery/forms/jq-forms-focus.sublime-snippet @@ -2,6 +2,6 @@ - jqfocus + jq.focus jq - focus diff --git a/snippets/js/jquery/forms/jq-forms-param.sublime-snippet b/snippets/js/libraries/jquery/forms/jq-forms-param.sublime-snippet similarity index 79% rename from snippets/js/jquery/forms/jq-forms-param.sublime-snippet rename to snippets/js/libraries/jquery/forms/jq-forms-param.sublime-snippet index 6c32871..1b088a1 100644 --- a/snippets/js/jquery/forms/jq-forms-param.sublime-snippet +++ b/snippets/js/libraries/jquery/forms/jq-forms-param.sublime-snippet @@ -2,6 +2,6 @@ - jqparam + jq.param jq - param diff --git a/snippets/js/jquery/forms/jq-forms-select.sublime-snippet b/snippets/js/libraries/jquery/forms/jq-forms-select.sublime-snippet similarity index 80% rename from snippets/js/jquery/forms/jq-forms-select.sublime-snippet rename to snippets/js/libraries/jquery/forms/jq-forms-select.sublime-snippet index e0710c6..e9419a3 100644 --- a/snippets/js/jquery/forms/jq-forms-select.sublime-snippet +++ b/snippets/js/libraries/jquery/forms/jq-forms-select.sublime-snippet @@ -2,6 +2,6 @@ - jqselect + jq.select jq - select diff --git a/snippets/js/jquery/forms/jq-forms-serialize-array.sublime-snippet b/snippets/js/libraries/jquery/forms/jq-forms-serialize-array.sublime-snippet similarity index 77% rename from snippets/js/jquery/forms/jq-forms-serialize-array.sublime-snippet rename to snippets/js/libraries/jquery/forms/jq-forms-serialize-array.sublime-snippet index 2932db1..b7b5c38 100644 --- a/snippets/js/jquery/forms/jq-forms-serialize-array.sublime-snippet +++ b/snippets/js/libraries/jquery/forms/jq-forms-serialize-array.sublime-snippet @@ -2,6 +2,6 @@ - jqserarray + jq.serarray jq - serializeArray diff --git a/snippets/js/jquery/forms/jq-forms-serialize.sublime-snippet b/snippets/js/libraries/jquery/forms/jq-forms-serialize.sublime-snippet similarity index 78% rename from snippets/js/jquery/forms/jq-forms-serialize.sublime-snippet rename to snippets/js/libraries/jquery/forms/jq-forms-serialize.sublime-snippet index 11a255e..e80e3f6 100644 --- a/snippets/js/jquery/forms/jq-forms-serialize.sublime-snippet +++ b/snippets/js/libraries/jquery/forms/jq-forms-serialize.sublime-snippet @@ -2,6 +2,6 @@ - jqser + jq.ser jq - serialize diff --git a/snippets/js/jquery/forms/jq-forms-submit.sublime-snippet b/snippets/js/libraries/jquery/forms/jq-forms-submit.sublime-snippet similarity index 80% rename from snippets/js/jquery/forms/jq-forms-submit.sublime-snippet rename to snippets/js/libraries/jquery/forms/jq-forms-submit.sublime-snippet index fa8180a..8767db4 100644 --- a/snippets/js/jquery/forms/jq-forms-submit.sublime-snippet +++ b/snippets/js/libraries/jquery/forms/jq-forms-submit.sublime-snippet @@ -2,6 +2,6 @@ - jqsubmit + jq.submit jq - submit diff --git a/snippets/js/jquery/forms/jq-forms-val.sublime-snippet b/snippets/js/libraries/jquery/forms/jq-forms-val.sublime-snippet similarity index 77% rename from snippets/js/jquery/forms/jq-forms-val.sublime-snippet rename to snippets/js/libraries/jquery/forms/jq-forms-val.sublime-snippet index 4562cea..d3c0833 100644 --- a/snippets/js/jquery/forms/jq-forms-val.sublime-snippet +++ b/snippets/js/libraries/jquery/forms/jq-forms-val.sublime-snippet @@ -2,6 +2,6 @@ - jqval + jq.val jq - val diff --git a/snippets/js/jquery/internals/README.md b/snippets/js/libraries/jquery/internals/README.md similarity index 75% rename from snippets/js/jquery/internals/README.md rename to snippets/js/libraries/jquery/internals/README.md index e75474a..7189d64 100644 --- a/snippets/js/jquery/internals/README.md +++ b/snippets/js/libraries/jquery/internals/README.md @@ -1,12 +1,12 @@ ## Internals -### [jqerror] error +### [jq.error] error ```javascript ${1:\$}.error(${2:message}); ``` -### [jqpstack] pushStack +### [jq.pstack] pushStack ```javascript ${1:\$([])}.pushStack(${2:elements}${3:,name}${4:,arguments}); diff --git a/snippets/js/jquery/internals/jq-internals-error.sublime-snippet b/snippets/js/libraries/jquery/internals/jq-internals-error.sublime-snippet similarity index 77% rename from snippets/js/jquery/internals/jq-internals-error.sublime-snippet rename to snippets/js/libraries/jquery/internals/jq-internals-error.sublime-snippet index a1cfc73..576a155 100644 --- a/snippets/js/jquery/internals/jq-internals-error.sublime-snippet +++ b/snippets/js/libraries/jquery/internals/jq-internals-error.sublime-snippet @@ -2,6 +2,6 @@ - jqerror + jq.error jq - error diff --git a/snippets/js/jquery/internals/jq-internals-push-stack.sublime-snippet b/snippets/js/libraries/jquery/internals/jq-internals-push-stack.sublime-snippet similarity index 81% rename from snippets/js/jquery/internals/jq-internals-push-stack.sublime-snippet rename to snippets/js/libraries/jquery/internals/jq-internals-push-stack.sublime-snippet index 3027e70..730ecd6 100644 --- a/snippets/js/jquery/internals/jq-internals-push-stack.sublime-snippet +++ b/snippets/js/libraries/jquery/internals/jq-internals-push-stack.sublime-snippet @@ -2,6 +2,6 @@ - jqpstack + jq.pstack jq - pushStack diff --git a/snippets/js/jquery/manipulation/README.md b/snippets/js/libraries/jquery/manipulation/README.md similarity index 71% rename from snippets/js/jquery/manipulation/README.md rename to snippets/js/libraries/jquery/manipulation/README.md index 8e93985..33f3752 100644 --- a/snippets/js/jquery/manipulation/README.md +++ b/snippets/js/libraries/jquery/manipulation/README.md @@ -1,114 +1,114 @@ ## Manipulation -### [jqafter] after +### [jq.after] after ```javascript ${1:\$(this)}.after(${2:content}${3:,content}); ``` -### [jqappendto] appendTo +### [jq.appendto] appendTo ```javascript ${1:\$(this)}.appendTo(${2:content}${3:,content}); ``` -### [jqappend] append +### [jq.append] append ```javascript ${1:\$(this)}.append(${2:content}${3:,content}); ``` -### [jqbefore] before +### [jq.before] before ```javascript ${1:\$(this)}.before(${2:content}${3:,content}); ``` -### [jqclone] clone +### [jq.clone] clone ```javascript ${1:\$(this)}.clone(${2:withDataAndEvents}${3:,deepWithDataAndEvents}); ``` -### [jqdetach] detach +### [jq.detach] detach ```javascript ${1:\$(this)}.detach(${2:selector}); ``` -### [jqempty] empty +### [jq.empty] empty ```javascript ${1:\$(this)}.empty(); ``` -### [jqiafter] insertAfter +### [jq.iafter] insertAfter ```javascript ${1:\$(this)}.insertAfter(${2:target}); ``` -### [jqibefore] insertBefore +### [jq.ibefore] insertBefore ```javascript ${1:\$(this)}.insertBefore(${2:target}); ``` -### [jqprependto] prependTo +### [jq.prependto] prependTo ```javascript ${1:\$(this)}.prependTo(${2:target}); ``` -### [jqprepend] prepend +### [jq.prepend] prepend ```javascript ${1:\$(this)}.prepend(${2:content}${3:,content}); ``` -### [jqremove] remove +### [jq.remove] remove ```javascript ${1:\$(this)}.remove(${2:selector}); ``` -### [jqreplaceall] replaceAll +### [jq.replaceall] replaceAll ```javascript ${1:\$(this)}.replaceAll(${2:target}); ``` -### [jqreplacewith] replaceWith +### [jq.replacewith] replaceWith ```javascript ${1:\$(this)}.replaceWith(${2:newContent}); ``` -### [jqtext] text +### [jq.text] text ```javascript ${1:\$(this)}.text(); ``` -### [jqunwrap] unwrap +### [jq.unwrap] unwrap ```javascript ${1:\$(this)}.unwrap(); ``` -### [jqwall] wrapAll +### [jq.wall] wrapAll ```javascript ${1:\$(this)}.wrapAll(${2:wrappingElement}); ``` -### [jqwinner] wrapInner +### [jq.winner] wrapInner ```javascript ${1:\$(this)}.wrapInner(${2:wrappingElement}); ``` -### [jqwrap] wrap +### [jq.wrap] wrap ```javascript ${1:\$(this)}.wrap(${2:wrappingElement}); diff --git a/snippets/js/jquery/manipulation/jq-manipulation-after.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-after.sublime-snippet similarity index 80% rename from snippets/js/jquery/manipulation/jq-manipulation-after.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-after.sublime-snippet index 8733d77..268c04d 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-after.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-after.sublime-snippet @@ -2,6 +2,6 @@ - jqafter + jq.after jq - after diff --git a/snippets/js/jquery/manipulation/jq-manipulation-append-to.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-append-to.sublime-snippet similarity index 79% rename from snippets/js/jquery/manipulation/jq-manipulation-append-to.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-append-to.sublime-snippet index 7a27338..66e0d99 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-append-to.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-append-to.sublime-snippet @@ -2,6 +2,6 @@ - jqappendto + jq.appendto jq - appendTo diff --git a/snippets/js/jquery/manipulation/jq-manipulation-append.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-append.sublime-snippet similarity index 79% rename from snippets/js/jquery/manipulation/jq-manipulation-append.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-append.sublime-snippet index 5600b1c..73c42e7 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-append.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-append.sublime-snippet @@ -2,6 +2,6 @@ - jqappend + jq.append jq - append diff --git a/snippets/js/jquery/manipulation/jq-manipulation-before.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-before.sublime-snippet similarity index 79% rename from snippets/js/jquery/manipulation/jq-manipulation-before.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-before.sublime-snippet index c3d7895..63fb292 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-before.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-before.sublime-snippet @@ -2,6 +2,6 @@ - jqbefore + jq.before jq - before diff --git a/snippets/js/jquery/manipulation/jq-manipulation-clone.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-clone.sublime-snippet similarity index 82% rename from snippets/js/jquery/manipulation/jq-manipulation-clone.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-clone.sublime-snippet index a61fac1..ff7aaa6 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-clone.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-clone.sublime-snippet @@ -2,6 +2,6 @@ - jqclone + jq.clone jq - clone diff --git a/snippets/js/jquery/manipulation/jq-manipulation-detach.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-detach.sublime-snippet similarity index 78% rename from snippets/js/jquery/manipulation/jq-manipulation-detach.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-detach.sublime-snippet index dd35a26..61c1b0e 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-detach.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-detach.sublime-snippet @@ -2,6 +2,6 @@ - jqdetach + jq.detach jq - detach diff --git a/snippets/js/jquery/manipulation/jq-manipulation-empty.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-empty.sublime-snippet similarity index 76% rename from snippets/js/jquery/manipulation/jq-manipulation-empty.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-empty.sublime-snippet index 4d1460c..e4cca83 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-empty.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-empty.sublime-snippet @@ -2,6 +2,6 @@ - jqempty + jq.empty jq - empty diff --git a/snippets/js/jquery/manipulation/jq-manipulation-insert-after.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-insert-after.sublime-snippet similarity index 79% rename from snippets/js/jquery/manipulation/jq-manipulation-insert-after.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-insert-after.sublime-snippet index c2fd5c0..cb21bfd 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-insert-after.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-insert-after.sublime-snippet @@ -2,6 +2,6 @@ - jqiafter + jq.iafter jq - insertAfter diff --git a/snippets/js/jquery/manipulation/jq-manipulation-insert-before.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-insert-before.sublime-snippet similarity index 79% rename from snippets/js/jquery/manipulation/jq-manipulation-insert-before.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-insert-before.sublime-snippet index 7ee51d9..cb06942 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-insert-before.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-insert-before.sublime-snippet @@ -2,6 +2,6 @@ - jqibefore + jq.ibefore jq - insertBefore diff --git a/snippets/js/jquery/manipulation/jq-manipulation-prepend-to.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-prepend-to.sublime-snippet similarity index 77% rename from snippets/js/jquery/manipulation/jq-manipulation-prepend-to.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-prepend-to.sublime-snippet index 70a44e0..0a7fa4d 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-prepend-to.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-prepend-to.sublime-snippet @@ -2,6 +2,6 @@ - jqprependto + jq.prependto jq - prependTo diff --git a/snippets/js/jquery/manipulation/jq-manipulation-prepend.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-prepend.sublime-snippet similarity index 79% rename from snippets/js/jquery/manipulation/jq-manipulation-prepend.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-prepend.sublime-snippet index 87a3e08..566e367 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-prepend.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-prepend.sublime-snippet @@ -2,6 +2,6 @@ - jqprepend + jq.prepend jq - prepend diff --git a/snippets/js/jquery/manipulation/jq-manipulation-remove.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-remove.sublime-snippet similarity index 78% rename from snippets/js/jquery/manipulation/jq-manipulation-remove.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-remove.sublime-snippet index 2ea9d07..920b1a0 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-remove.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-remove.sublime-snippet @@ -2,6 +2,6 @@ - jqremove + jq.remove jq - remove diff --git a/snippets/js/jquery/manipulation/jq-manipulation-replace-all.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-replace-all.sublime-snippet similarity index 77% rename from snippets/js/jquery/manipulation/jq-manipulation-replace-all.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-replace-all.sublime-snippet index fa62f65..2e20b26 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-replace-all.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-replace-all.sublime-snippet @@ -2,6 +2,6 @@ - jqreplaceall + jq.replaceall jq - replaceAll diff --git a/snippets/js/jquery/manipulation/jq-manipulation-replace-with.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-replace-with.sublime-snippet similarity index 77% rename from snippets/js/jquery/manipulation/jq-manipulation-replace-with.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-replace-with.sublime-snippet index 8120b08..5143876 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-replace-with.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-replace-with.sublime-snippet @@ -2,6 +2,6 @@ - jqreplacewith + jq.replacewith jq - replaceWith diff --git a/snippets/js/jquery/manipulation/jq-manipulation-text.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-text.sublime-snippet similarity index 76% rename from snippets/js/jquery/manipulation/jq-manipulation-text.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-text.sublime-snippet index e5eabff..4cf14a4 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-text.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-text.sublime-snippet @@ -2,6 +2,6 @@ - jqtext + jq.text jq - text diff --git a/snippets/js/jquery/manipulation/jq-manipulation-unwrap.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-unwrap.sublime-snippet similarity index 76% rename from snippets/js/jquery/manipulation/jq-manipulation-unwrap.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-unwrap.sublime-snippet index ea15d87..0dd185e 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-unwrap.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-unwrap.sublime-snippet @@ -2,6 +2,6 @@ - jqunwrap + jq.unwrap jq - unwrap diff --git a/snippets/js/jquery/manipulation/jq-manipulation-wrap-all.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-wrap-all.sublime-snippet similarity index 80% rename from snippets/js/jquery/manipulation/jq-manipulation-wrap-all.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-wrap-all.sublime-snippet index 15a3a14..7bced98 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-wrap-all.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-wrap-all.sublime-snippet @@ -2,6 +2,6 @@ - jqwall + jq.wall jq - wrapAll diff --git a/snippets/js/jquery/manipulation/jq-manipulation-wrap-inner.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-wrap-inner.sublime-snippet similarity index 79% rename from snippets/js/jquery/manipulation/jq-manipulation-wrap-inner.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-wrap-inner.sublime-snippet index 4f25994..6381d31 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-wrap-inner.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-wrap-inner.sublime-snippet @@ -2,6 +2,6 @@ - jqwinner + jq.winner jq - wrapInner diff --git a/snippets/js/jquery/manipulation/jq-manipulation-wrap.sublime-snippet b/snippets/js/libraries/jquery/manipulation/jq-manipulation-wrap.sublime-snippet similarity index 79% rename from snippets/js/jquery/manipulation/jq-manipulation-wrap.sublime-snippet rename to snippets/js/libraries/jquery/manipulation/jq-manipulation-wrap.sublime-snippet index 651ab71..fcc083e 100644 --- a/snippets/js/jquery/manipulation/jq-manipulation-wrap.sublime-snippet +++ b/snippets/js/libraries/jquery/manipulation/jq-manipulation-wrap.sublime-snippet @@ -2,6 +2,6 @@ - jqwrap + jq.wrap jq - wrap diff --git a/snippets/js/jquery/miscellaneous/README.md b/snippets/js/libraries/jquery/miscellaneous/README.md similarity index 72% rename from snippets/js/jquery/miscellaneous/README.md rename to snippets/js/libraries/jquery/miscellaneous/README.md index f063126..4b5cab9 100644 --- a/snippets/js/jquery/miscellaneous/README.md +++ b/snippets/js/libraries/jquery/miscellaneous/README.md @@ -1,18 +1,18 @@ ## Miscellaneous -### [jqget] get +### [jq.get] get ```javascript ${1:\$(this)}.get(${2:index}); ``` -### [jqindex] index +### [jq.index] index ```javascript ${1:\$(this)}.index(${2:selector}); ``` -### [jqtoarray] toArray +### [jq.toarray] toArray ```javascript ${1:\$(this)}.toArray(); diff --git a/snippets/js/jquery/miscellaneous/jq-miscellaneous-get.sublime-snippet b/snippets/js/libraries/jquery/miscellaneous/jq-miscellaneous-get.sublime-snippet similarity index 78% rename from snippets/js/jquery/miscellaneous/jq-miscellaneous-get.sublime-snippet rename to snippets/js/libraries/jquery/miscellaneous/jq-miscellaneous-get.sublime-snippet index 147170c..861f936 100644 --- a/snippets/js/jquery/miscellaneous/jq-miscellaneous-get.sublime-snippet +++ b/snippets/js/libraries/jquery/miscellaneous/jq-miscellaneous-get.sublime-snippet @@ -2,6 +2,6 @@ - jqget + jq.get jq - get diff --git a/snippets/js/jquery/miscellaneous/jq-miscellaneous-index.sublime-snippet b/snippets/js/libraries/jquery/miscellaneous/jq-miscellaneous-index.sublime-snippet similarity index 78% rename from snippets/js/jquery/miscellaneous/jq-miscellaneous-index.sublime-snippet rename to snippets/js/libraries/jquery/miscellaneous/jq-miscellaneous-index.sublime-snippet index 045ef5a..b3a7c1c 100644 --- a/snippets/js/jquery/miscellaneous/jq-miscellaneous-index.sublime-snippet +++ b/snippets/js/libraries/jquery/miscellaneous/jq-miscellaneous-index.sublime-snippet @@ -2,6 +2,6 @@ - jqindex + jq.index jq - index diff --git a/snippets/js/jquery/miscellaneous/jq-miscellaneous-to-array.sublime-snippet b/snippets/js/libraries/jquery/miscellaneous/jq-miscellaneous-to-array.sublime-snippet similarity index 76% rename from snippets/js/jquery/miscellaneous/jq-miscellaneous-to-array.sublime-snippet rename to snippets/js/libraries/jquery/miscellaneous/jq-miscellaneous-to-array.sublime-snippet index c28553e..fdfa039 100644 --- a/snippets/js/jquery/miscellaneous/jq-miscellaneous-to-array.sublime-snippet +++ b/snippets/js/libraries/jquery/miscellaneous/jq-miscellaneous-to-array.sublime-snippet @@ -2,6 +2,6 @@ - jqtoarray + jq.toarray jq - toArray diff --git a/snippets/js/jquery/offset/README.md b/snippets/js/libraries/jquery/offset/README.md similarity index 66% rename from snippets/js/jquery/offset/README.md rename to snippets/js/libraries/jquery/offset/README.md index fe6f767..ce9c853 100644 --- a/snippets/js/jquery/offset/README.md +++ b/snippets/js/libraries/jquery/offset/README.md @@ -1,30 +1,30 @@ ## Offset -### [jqoparent] offsetParent +### [jq.oparent] offsetParent ```javascript ${1:\$(this)}.offsetParent(); ``` -### [jqpos] position +### [jq.pos] position ```javascript ${1:\$(this)}.position(); ``` -### [jqscleft] scrollLeft +### [jq.scleft] scrollLeft ```javascript ${1:\$(this)}.scrollLeft(); ``` -### [jqsctop] scrollTop +### [jq.sctop] scrollTop ```javascript ${1:\$(this)}.scrollTop(); ``` -### [jqoset] offset +### [jq.oset] offset ```javascript ${1:\$(this)}.offset(); diff --git a/snippets/js/jquery/offset/jq-offset-parent.sublime-snippet b/snippets/js/libraries/jquery/offset/jq-offset-parent.sublime-snippet similarity index 77% rename from snippets/js/jquery/offset/jq-offset-parent.sublime-snippet rename to snippets/js/libraries/jquery/offset/jq-offset-parent.sublime-snippet index eadbc5d..74c2623 100644 --- a/snippets/js/jquery/offset/jq-offset-parent.sublime-snippet +++ b/snippets/js/libraries/jquery/offset/jq-offset-parent.sublime-snippet @@ -2,6 +2,6 @@ - jqoparent + jq.oparent jq - offsetParent diff --git a/snippets/js/jquery/offset/jq-offset-position.sublime-snippet b/snippets/js/libraries/jquery/offset/jq-offset-position.sublime-snippet similarity index 78% rename from snippets/js/jquery/offset/jq-offset-position.sublime-snippet rename to snippets/js/libraries/jquery/offset/jq-offset-position.sublime-snippet index 7695144..06528f8 100644 --- a/snippets/js/jquery/offset/jq-offset-position.sublime-snippet +++ b/snippets/js/libraries/jquery/offset/jq-offset-position.sublime-snippet @@ -2,6 +2,6 @@ - jqpos + jq.pos jq - position diff --git a/snippets/js/jquery/offset/jq-offset-scroll-left.sublime-snippet b/snippets/js/libraries/jquery/offset/jq-offset-scroll-left.sublime-snippet similarity index 77% rename from snippets/js/jquery/offset/jq-offset-scroll-left.sublime-snippet rename to snippets/js/libraries/jquery/offset/jq-offset-scroll-left.sublime-snippet index e16038d..f88575f 100644 --- a/snippets/js/jquery/offset/jq-offset-scroll-left.sublime-snippet +++ b/snippets/js/libraries/jquery/offset/jq-offset-scroll-left.sublime-snippet @@ -2,6 +2,6 @@ - jqscleft + jq.scleft jq - scrollLeft diff --git a/snippets/js/jquery/offset/jq-offset-scroll-top.sublime-snippet b/snippets/js/libraries/jquery/offset/jq-offset-scroll-top.sublime-snippet similarity index 77% rename from snippets/js/jquery/offset/jq-offset-scroll-top.sublime-snippet rename to snippets/js/libraries/jquery/offset/jq-offset-scroll-top.sublime-snippet index 244dc94..732afa6 100644 --- a/snippets/js/jquery/offset/jq-offset-scroll-top.sublime-snippet +++ b/snippets/js/libraries/jquery/offset/jq-offset-scroll-top.sublime-snippet @@ -2,6 +2,6 @@ - jqsctop + jq.sctop jq - scrollTop diff --git a/snippets/js/jquery/offset/jq-offset.sublime-snippet b/snippets/js/libraries/jquery/offset/jq-offset.sublime-snippet similarity index 77% rename from snippets/js/jquery/offset/jq-offset.sublime-snippet rename to snippets/js/libraries/jquery/offset/jq-offset.sublime-snippet index f94f0a3..8d0dcb3 100644 --- a/snippets/js/jquery/offset/jq-offset.sublime-snippet +++ b/snippets/js/libraries/jquery/offset/jq-offset.sublime-snippet @@ -2,6 +2,6 @@ - jqoset + jq.oset jq - offset diff --git a/snippets/js/jquery/properties/README.md b/snippets/js/libraries/jquery/properties/README.md similarity index 68% rename from snippets/js/jquery/properties/README.md rename to snippets/js/libraries/jquery/properties/README.md index f0423d8..73e4091 100644 --- a/snippets/js/jquery/properties/README.md +++ b/snippets/js/libraries/jquery/properties/README.md @@ -1,24 +1,24 @@ ## Properties -### [jqfxi] fx.interval +### [jq.fxi] fx.interval ```javascript ${1:\$}.fx.interval = ${2:500}; ``` -### [jqfxo] fx.off +### [jq.fxo] fx.off ```javascript ${1:\$}.fx.off = ${2:true}; ``` -### [jqjprop] jquery +### [jq.jprop] jquery ```javascript ${1:\$.fn}.jquery; ``` -### [jqlen] length +### [jq.len] length ```javascript ${1:\$([])}.length; diff --git a/snippets/js/jquery/properties/jq-properties-fx-interval.sublime-snippet b/snippets/js/libraries/jquery/properties/jq-properties-fx-interval.sublime-snippet similarity index 79% rename from snippets/js/jquery/properties/jq-properties-fx-interval.sublime-snippet rename to snippets/js/libraries/jquery/properties/jq-properties-fx-interval.sublime-snippet index 214d608..674d1f7 100644 --- a/snippets/js/jquery/properties/jq-properties-fx-interval.sublime-snippet +++ b/snippets/js/libraries/jquery/properties/jq-properties-fx-interval.sublime-snippet @@ -2,6 +2,6 @@ - jqfxi + jq.fxi jq - fx.interval diff --git a/snippets/js/jquery/properties/jq-properties-fx-off.sublime-snippet b/snippets/js/libraries/jquery/properties/jq-properties-fx-off.sublime-snippet similarity index 78% rename from snippets/js/jquery/properties/jq-properties-fx-off.sublime-snippet rename to snippets/js/libraries/jquery/properties/jq-properties-fx-off.sublime-snippet index f18bac7..8b93bdd 100644 --- a/snippets/js/jquery/properties/jq-properties-fx-off.sublime-snippet +++ b/snippets/js/libraries/jquery/properties/jq-properties-fx-off.sublime-snippet @@ -2,6 +2,6 @@ - jqfxo + jq.fxo jq - fx.off diff --git a/snippets/js/jquery/properties/jq-properties-jquery.sublime-snippet b/snippets/js/libraries/jquery/properties/jq-properties-jquery.sublime-snippet similarity index 76% rename from snippets/js/jquery/properties/jq-properties-jquery.sublime-snippet rename to snippets/js/libraries/jquery/properties/jq-properties-jquery.sublime-snippet index 5590efc..b241a1a 100644 --- a/snippets/js/jquery/properties/jq-properties-jquery.sublime-snippet +++ b/snippets/js/libraries/jquery/properties/jq-properties-jquery.sublime-snippet @@ -2,6 +2,6 @@ - jqjprop + jq.jprop jq - jquery diff --git a/snippets/js/jquery/properties/jq-properties-length.sublime-snippet b/snippets/js/libraries/jquery/properties/jq-properties-length.sublime-snippet similarity index 77% rename from snippets/js/jquery/properties/jq-properties-length.sublime-snippet rename to snippets/js/libraries/jquery/properties/jq-properties-length.sublime-snippet index e2c0d00..9e824de 100644 --- a/snippets/js/jquery/properties/jq-properties-length.sublime-snippet +++ b/snippets/js/libraries/jquery/properties/jq-properties-length.sublime-snippet @@ -2,6 +2,6 @@ - jqlen + jq.len jq - length diff --git a/snippets/js/jquery/selectors/README.md b/snippets/js/libraries/jquery/selectors/README.md similarity index 69% rename from snippets/js/jquery/selectors/README.md rename to snippets/js/libraries/jquery/selectors/README.md index 8b2bbf5..efe275f 100644 --- a/snippets/js/jquery/selectors/README.md +++ b/snippets/js/libraries/jquery/selectors/README.md @@ -1,378 +1,378 @@ ## Selectors -### [jqall] all +### [jq.all] all ```javascript ${1:\$}("*"); ``` -### [jq:a] :animated +### [jq.:a] :animated ```javascript ${1:\$}("${2}:animated"); ``` -### [jq[]|] Attribute Contains Prefix +### [jq.[]|] Attribute Contains Prefix ```javascript ${1:\$}("${2}[${3:attribute}|='${4:value}']"); ``` -### [jq[]*] Attribute Contains +### [jq.[]*] Attribute Contains ```javascript ${1:\$}("${2}[${3:attribute}*='${4:value}']"); ``` -### [jq[]~] Attribute Contains Word +### [jq.[]~] Attribute Contains Word ```javascript ${1:\$}("${2}[${3:attribute}~='${4:value}']"); ``` -### [jq[]$] Attribute Ends With +### [jq.[]$] Attribute Ends With ```javascript ${1:\$}("${2}[${3:attribute}$='${4:value}']"); ``` -### [jq[]=] Attribute Equals +### [jq.[]=] Attribute Equals ```javascript ${1:\$}("${2}[${3:attribute}='${4:value}']"); ``` -### [jq[]!] Attribute Not Equal +### [jq.[]!] Attribute Not Equal ```javascript ${1:\$}("${2}[${3:attribute}!='${4:value}']"); ``` -### [jq[]^] Attribute Starts With +### [jq.[]^] Attribute Starts With ```javascript ${1:\$}("${2}[${3:attribute}^='${4:value}']"); ``` -### [jq:b] button +### [jq.:b] button ```javascript ${1:\$}(":button"); ``` -### [jq:c] checkbox +### [jq.:c] checkbox ```javascript ${1:\$}("${2}:checkbox"); ``` -### [jq:ch] checked +### [jq.:ch] checked ```javascript ${1:\$}("${2}:checked"); ``` -### [jq:chi] child +### [jq.:chi] child ```javascript ${1:\$}("${2:parent} > ${3:child}"); ``` -### [jq:cl] class +### [jq.:cl] class ```javascript ${1:\$}(".${2:class}"); ``` -### [jq:co] contains +### [jq.:co] contains ```javascript ${1:\$}("${2}:contains('${3:text}')"); ``` -### [jqdes] descendant +### [jq.des] descendant ```javascript ${1:\$}("${2:ancestor} ${3:descendant}"); ``` -### [jq:d] disabled +### [jq.:d] disabled ```javascript ${1:\$}("${2}:disabled"); ``` -### [jq$] element +### [jq.$] element ```javascript ${1:\$}("${2}"); ``` -### [jq:e] empty +### [jq.:e] empty ```javascript ${1:\$}("${2}:empty"); ``` -### [jq:en] enabled +### [jq.:en] enabled ```javascript ${1:\$}("${2}:enabled"); ``` -### [jq:eq] eq +### [jq.:eq] eq ```javascript ${1:\$}("${2}:eq(${3:indexFromEnd})"); ``` -### [jq:ev] even +### [jq.:ev] even ```javascript ${1:\$}("${2}:even"); ``` -### [jq:f] :file +### [jq.:f] :file ```javascript ${1:\$}("${2}:file"); ``` -### [jq:fc] :first-child +### [jq.:fc] :first-child ```javascript ${1:\$}("${2}:first-child"); ``` -### [jq:ft] :first-of-type +### [jq.:ft] :first-of-type ```javascript ${1:\$}("${2}:first-of-type"); ``` -### [jq:fi] :first +### [jq.:fi] :first ```javascript ${1:\$}("${2}:first"); ``` -### [jq:fo] :focus +### [jq.:fo] :focus ```javascript ${1:\$}("${2}:focus"); ``` -### [jq:gt] :gt +### [jq.:gt] :gt ```javascript ${1:\$}("${2}:gt(${3:indexFromEnd})"); ``` -### [jq[]] Has Attribute +### [jq.[]] Has Attribute ```javascript ${1:\$}("${2}[${3:attribute}]"); ``` -### [jq:h] :has +### [jq.:h] :has ```javascript ${1:\$}("${2}:has(${3:selector})"); ``` -### [jq:he] :header +### [jq.:he] :header ```javascript ${1:\$}(":header"); ``` -### [jq:hi] :hidden +### [jq.:hi] :hidden ```javascript ${1:\$}("${2}:hidden"); ``` -### [jqid] id +### [jq.id] id ```javascript ${1:\$}("#${2}"); ``` -### [jq:i] :image +### [jq.:i] :image ```javascript ${1:\$}("${2}:image"); ``` -### [jq:in] :input +### [jq.:in] :input ```javascript ${1:\$}("${2}:input"); ``` -### [jq:l] :lang +### [jq.:l] :lang ```javascript ${1:\$}("${2}:lang(${3:language})"); ``` -### [jq:lc] :last-child +### [jq.:lc] :last-child ```javascript ${1:\$}("${2}:last-child"); ``` -### [jq:lt] :last-of-type +### [jq.:lty] :last-of-type ```javascript ${1:\$}("${2}:last-of-type"); ``` -### [jq:la] :last +### [jq.:la] :last ```javascript ${1:\$}("${2}:last"); ``` -### [jq:lt] :lt +### [jq.:lt] :lt ```javascript ${1:\$}("${2}:lt(${3:indexFromEnd})"); ``` -### [jq[][]] Multiple Attribute +### [jq.[][]] Multiple Attribute ```javascript ${1:\$}("${2}[${3}][${4}]"); ``` -### [jq,] Multiple +### [jq.,] Multiple ```javascript ${1:\$}("${2:selector1}, ${3:selector2}, ${3:selectorN}"); ``` -### [jq+] Next Adjacent +### [jq.+] Next Adjacent ```javascript ${1:\$}("${2:prev} + ${3:next}"); ``` -### [jq~] Next Siblings +### [jq.~] Next Siblings ```javascript ${1:\$}("${2:prev} ~ ${3:siblings}"); ``` -### [jq:not] not +### [jq.:not] not ```javascript ${1:\$}("${2}:not(${3:selector})"); ``` -### [jq:nc] :nth-child +### [jq.:nc] :nth-child ```javascript ${1:\$}("${2}:nth-child(${3:index})"); ``` -### [jq:nlc] :nth-last-child +### [jq.:nlc] :nth-last-child ```javascript ${1:\$}("${2}:nth-last-child(${3:index})"); ``` -### [jq:nlt] :nth-last-of-type +### [jq.:nlt] :nth-last-of-type ```javascript ${1:\$}("${2}:nth-last-of-type(${3:index})"); ``` -### [jq:nt] :nth-of-type +### [jq.:nt] :nth-of-type ```javascript ${1:\$}("${2}:nth-of-type(${3:index})"); ``` -### [jq:o] :odd +### [jq.:o] :odd ```javascript ${1:\$}("${2}:odd(${3:index})"); ``` -### [jq:oc] :only-child +### [jq.:oc] :only-child ```javascript ${1:\$}("${2}:only-child"); ``` -### [jq:ot] :only-of-type +### [jq.:ot] :only-of-type ```javascript ${1:\$}("${2}:only-of-type"); ``` -### [jq:p] :parent +### [jq.:p] :parent ```javascript ${1:\$}("${2}:parent"); ``` -### [jq:pa] :password +### [jq.:pa] :password ```javascript ${1:\$}("${2}:password"); ``` -### [jq:r] :radio +### [jq.:r] :radio ```javascript ${1:\$}("${2}:radio"); ``` -### [jq:re] :reset +### [jq.:re] :reset ```javascript ${1:\$}("${2}:reset"); ``` -### [jq:ro] :root +### [jq.:ro] :root ```javascript ${1:\$}("${2}:root"); ``` -### [jq:s] :selected +### [jq.:s] :selected ```javascript ${1:\$}("${2}:selected"); ``` -### [jq:su] :submit +### [jq.:su] :submit ```javascript ${1:\$}("${2}:submit"); ``` -### [jq:t] :target +### [jq.:t] :target ```javascript ${1:\$}("${2}:target"); ``` -### [jq:tx] :text +### [jq.:tx] :text ```javascript ${1:\$}("${2}:text"); ``` -### [jq:v] :visible +### [jq.:v] :visible ```javascript ${1:\$}("${2}:visible"); ``` -### [jq] animate +### [jq.] animate ```javascript diff --git a/snippets/js/jquery/selectors/jq-selectors-all.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-all.sublime-snippet similarity index 76% rename from snippets/js/jquery/selectors/jq-selectors-all.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-all.sublime-snippet index 351ec92..63d784f 100644 --- a/snippets/js/jquery/selectors/jq-selectors-all.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-all.sublime-snippet @@ -2,6 +2,6 @@ - jqall + jq.all jq - all diff --git a/snippets/js/jquery/selectors/jq-selectors-animated.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-animated.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-animated.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-animated.sublime-snippet index 7e9d9f3..719f7c1 100644 --- a/snippets/js/jquery/selectors/jq-selectors-animated.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-animated.sublime-snippet @@ -2,6 +2,6 @@ - jq:a + jq.:a jq - :animated diff --git a/snippets/js/jquery/selectors/jq-selectors-attribute-contains-prefix-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-contains-prefix-selector.sublime-snippet similarity index 82% rename from snippets/js/jquery/selectors/jq-selectors-attribute-contains-prefix-selector.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-attribute-contains-prefix-selector.sublime-snippet index 9d16586..0f376fc 100644 --- a/snippets/js/jquery/selectors/jq-selectors-attribute-contains-prefix-selector.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-contains-prefix-selector.sublime-snippet @@ -2,6 +2,6 @@ - jq[]| + jq.[]| jq - Attribute Contains Prefix diff --git a/snippets/js/jquery/selectors/jq-selectors-attribute-contains-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-contains-selector.sublime-snippet similarity index 82% rename from snippets/js/jquery/selectors/jq-selectors-attribute-contains-selector.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-attribute-contains-selector.sublime-snippet index cd000f2..8697595 100644 --- a/snippets/js/jquery/selectors/jq-selectors-attribute-contains-selector.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-contains-selector.sublime-snippet @@ -2,6 +2,6 @@ - jq[]* + jq.[]* jq - Attribute Contains diff --git a/snippets/js/jquery/selectors/jq-selectors-attribute-contains-word-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-contains-word-selector.sublime-snippet similarity index 82% rename from snippets/js/jquery/selectors/jq-selectors-attribute-contains-word-selector.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-attribute-contains-word-selector.sublime-snippet index d123304..a772b78 100644 --- a/snippets/js/jquery/selectors/jq-selectors-attribute-contains-word-selector.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-contains-word-selector.sublime-snippet @@ -2,6 +2,6 @@ - jq[]~ + jq.[]~ jq - Attribute Contains Word diff --git a/snippets/js/jquery/selectors/jq-selectors-attribute-ends-with-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-ends-with-selector.sublime-snippet similarity index 82% rename from snippets/js/jquery/selectors/jq-selectors-attribute-ends-with-selector.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-attribute-ends-with-selector.sublime-snippet index beb74c1..28f6f8c 100644 --- a/snippets/js/jquery/selectors/jq-selectors-attribute-ends-with-selector.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-ends-with-selector.sublime-snippet @@ -2,6 +2,6 @@ - jq[]$ + jq.[]$ jq - Attribute Ends With diff --git a/snippets/js/jquery/selectors/jq-selectors-attribute-equals-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-equals-selector.sublime-snippet similarity index 81% rename from snippets/js/jquery/selectors/jq-selectors-attribute-equals-selector.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-attribute-equals-selector.sublime-snippet index d922e12..ced4897 100644 --- a/snippets/js/jquery/selectors/jq-selectors-attribute-equals-selector.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-equals-selector.sublime-snippet @@ -2,6 +2,6 @@ - jq[]= + jq.[]= jq - Attribute Equals diff --git a/snippets/js/jquery/selectors/jq-selectors-attribute-not-equal-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-not-equal-selector.sublime-snippet similarity index 82% rename from snippets/js/jquery/selectors/jq-selectors-attribute-not-equal-selector.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-attribute-not-equal-selector.sublime-snippet index d8d2005..86b6932 100644 --- a/snippets/js/jquery/selectors/jq-selectors-attribute-not-equal-selector.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-not-equal-selector.sublime-snippet @@ -2,6 +2,6 @@ - jq[]! + jq.[]! jq - Attribute Not Equal diff --git a/snippets/js/jquery/selectors/jq-selectors-attribute-starts-with-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-starts-with-selector.sublime-snippet similarity index 82% rename from snippets/js/jquery/selectors/jq-selectors-attribute-starts-with-selector.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-attribute-starts-with-selector.sublime-snippet index 094077f..482e51a 100644 --- a/snippets/js/jquery/selectors/jq-selectors-attribute-starts-with-selector.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-attribute-starts-with-selector.sublime-snippet @@ -2,6 +2,6 @@ - jq[]^ + jq.[]^ jq - Attribute Starts With diff --git a/snippets/js/jquery/selectors/jq-selectors-button.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-button.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-button.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-button.sublime-snippet index 54db6fb..cc734a8 100644 --- a/snippets/js/jquery/selectors/jq-selectors-button.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-button.sublime-snippet @@ -2,6 +2,6 @@ - jq:b + jq.:b jq - :button diff --git a/snippets/js/jquery/selectors/jq-selectors-checkbox.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-checkbox.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-checkbox.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-checkbox.sublime-snippet index e28a109..a51f22f 100644 --- a/snippets/js/jquery/selectors/jq-selectors-checkbox.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-checkbox.sublime-snippet @@ -2,6 +2,6 @@ - jq:c + jq.:c jq - :checkbox diff --git a/snippets/js/jquery/selectors/jq-selectors-checked.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-checked.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-checked.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-checked.sublime-snippet index ee3a6d6..e0c638c 100644 --- a/snippets/js/jquery/selectors/jq-selectors-checked.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-checked.sublime-snippet @@ -2,6 +2,6 @@ - jq:ch + jq.:ch jq - :checked diff --git a/snippets/js/jquery/selectors/jq-selectors-child.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-child.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-child.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-child.sublime-snippet index a7fbd5b..f91c93d 100644 --- a/snippets/js/jquery/selectors/jq-selectors-child.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-child.sublime-snippet @@ -2,6 +2,6 @@ ${3:child}"); ]]> - jq:chi + jq.:chi jq - :child diff --git a/snippets/js/jquery/selectors/jq-selectors-class.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-class.sublime-snippet similarity index 77% rename from snippets/js/jquery/selectors/jq-selectors-class.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-class.sublime-snippet index 67e88c0..78ccaa3 100644 --- a/snippets/js/jquery/selectors/jq-selectors-class.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-class.sublime-snippet @@ -2,6 +2,6 @@ - jq:cl + jq.:cl jq - class diff --git a/snippets/js/jquery/selectors/jq-selectors-contains.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-contains.sublime-snippet similarity index 80% rename from snippets/js/jquery/selectors/jq-selectors-contains.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-contains.sublime-snippet index ea9fff3..95393aa 100644 --- a/snippets/js/jquery/selectors/jq-selectors-contains.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-contains.sublime-snippet @@ -2,6 +2,6 @@ - jq:co + jq.:co jq - :contains diff --git a/snippets/js/jquery/selectors/jq-selectors-descendant.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-descendant.sublime-snippet similarity index 80% rename from snippets/js/jquery/selectors/jq-selectors-descendant.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-descendant.sublime-snippet index ffab53b..7f1c8c9 100644 --- a/snippets/js/jquery/selectors/jq-selectors-descendant.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-descendant.sublime-snippet @@ -2,6 +2,6 @@ - jqdes + jq.des jq - descendant diff --git a/snippets/js/jquery/selectors/jq-selectors-disabled.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-disabled.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-disabled.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-disabled.sublime-snippet index 2d76902..ead5d39 100644 --- a/snippets/js/jquery/selectors/jq-selectors-disabled.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-disabled.sublime-snippet @@ -2,6 +2,6 @@ - jq:d + jq.:d jq - :disabled diff --git a/snippets/js/jquery/selectors/jq-selectors-element.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-element.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-element.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-element.sublime-snippet index bc70ea3..9a80c4b 100644 --- a/snippets/js/jquery/selectors/jq-selectors-element.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-element.sublime-snippet @@ -2,6 +2,6 @@ - jq$ + jq.$ jq - element diff --git a/snippets/js/jquery/selectors/jq-selectors-empty.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-empty.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-empty.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-empty.sublime-snippet index c84e667..5bc20dc 100644 --- a/snippets/js/jquery/selectors/jq-selectors-empty.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-empty.sublime-snippet @@ -2,6 +2,6 @@ - jq:e + jq.:e jq - :empty diff --git a/snippets/js/jquery/selectors/jq-selectors-enabled.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-enabled.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-enabled.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-enabled.sublime-snippet index b4ef927..d2339ad 100644 --- a/snippets/js/jquery/selectors/jq-selectors-enabled.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-enabled.sublime-snippet @@ -2,6 +2,6 @@ - jq:en + jq.:en jq - :enabled diff --git a/snippets/js/jquery/selectors/jq-selectors-eq.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-eq.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-eq.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-eq.sublime-snippet index 83cabea..61b8199 100644 --- a/snippets/js/jquery/selectors/jq-selectors-eq.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-eq.sublime-snippet @@ -2,6 +2,6 @@ - jq:eq + jq.:eq jq - :eq diff --git a/snippets/js/jquery/selectors/jq-selectors-even.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-even.sublime-snippet similarity index 77% rename from snippets/js/jquery/selectors/jq-selectors-even.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-even.sublime-snippet index 383994d..7837a0c 100644 --- a/snippets/js/jquery/selectors/jq-selectors-even.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-even.sublime-snippet @@ -2,6 +2,6 @@ - jq:ev + jq.:ev jq - :even diff --git a/snippets/js/jquery/selectors/jq-selectors-file.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-file.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-file.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-file.sublime-snippet index f63505d..78fabb0 100644 --- a/snippets/js/jquery/selectors/jq-selectors-file.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-file.sublime-snippet @@ -2,6 +2,6 @@ - jq:f + jq.:f jq - :file diff --git a/snippets/js/jquery/selectors/jq-selectors-first-child.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-first-child.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-first-child.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-first-child.sublime-snippet index 1c6724c..85c52a9 100644 --- a/snippets/js/jquery/selectors/jq-selectors-first-child.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-first-child.sublime-snippet @@ -2,6 +2,6 @@ - jq:fc + jq.:fc jq - :first-child diff --git a/snippets/js/jquery/selectors/jq-selectors-first-of-type.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-first-of-type.sublime-snippet similarity index 80% rename from snippets/js/jquery/selectors/jq-selectors-first-of-type.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-first-of-type.sublime-snippet index 792d8df..9f86f13 100644 --- a/snippets/js/jquery/selectors/jq-selectors-first-of-type.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-first-of-type.sublime-snippet @@ -2,6 +2,6 @@ - jq:ft + jq.:ft jq - :first-of-type diff --git a/snippets/js/jquery/selectors/jq-selectors-first.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-first.sublime-snippet similarity index 77% rename from snippets/js/jquery/selectors/jq-selectors-first.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-first.sublime-snippet index 55ab854..896cc24 100644 --- a/snippets/js/jquery/selectors/jq-selectors-first.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-first.sublime-snippet @@ -2,6 +2,6 @@ - jq:fi + jq.:fi jq - :first diff --git a/snippets/js/jquery/selectors/jq-selectors-focus.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-focus.sublime-snippet similarity index 77% rename from snippets/js/jquery/selectors/jq-selectors-focus.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-focus.sublime-snippet index ff543d9..d3f196e 100644 --- a/snippets/js/jquery/selectors/jq-selectors-focus.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-focus.sublime-snippet @@ -2,6 +2,6 @@ - jq:fo + jq.:fo jq - :focus diff --git a/snippets/js/jquery/selectors/jq-selectors-gt.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-gt.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-gt.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-gt.sublime-snippet index 4fee5c1..aaac9cf 100644 --- a/snippets/js/jquery/selectors/jq-selectors-gt.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-gt.sublime-snippet @@ -2,6 +2,6 @@ - jq:gt + jq.:gt jq - :gt diff --git a/snippets/js/jquery/selectors/jq-selectors-has-attribute-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-has-attribute-selector.sublime-snippet similarity index 80% rename from snippets/js/jquery/selectors/jq-selectors-has-attribute-selector.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-has-attribute-selector.sublime-snippet index 13267a6..a5fb0fa 100644 --- a/snippets/js/jquery/selectors/jq-selectors-has-attribute-selector.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-has-attribute-selector.sublime-snippet @@ -2,6 +2,6 @@ - jq[] + jq.[] jq - Has Attribute diff --git a/snippets/js/jquery/selectors/jq-selectors-has.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-has.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-has.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-has.sublime-snippet index 943eee2..cf950ae 100644 --- a/snippets/js/jquery/selectors/jq-selectors-has.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-has.sublime-snippet @@ -2,6 +2,6 @@ - jq:h + jq.:h jq - :has diff --git a/snippets/js/jquery/selectors/jq-selectors-header.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-header.sublime-snippet similarity index 77% rename from snippets/js/jquery/selectors/jq-selectors-header.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-header.sublime-snippet index b380d9b..51e1fce 100644 --- a/snippets/js/jquery/selectors/jq-selectors-header.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-header.sublime-snippet @@ -2,6 +2,6 @@ - jq:he + jq.:he jq - :header diff --git a/snippets/js/jquery/selectors/jq-selectors-hidden.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-hidden.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-hidden.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-hidden.sublime-snippet index 189bc50..27bf1c4 100644 --- a/snippets/js/jquery/selectors/jq-selectors-hidden.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-hidden.sublime-snippet @@ -2,6 +2,6 @@ - jq:hi + jq.:hi jq - :hidden diff --git a/snippets/js/jquery/selectors/jq-selectors-id.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-id.sublime-snippet similarity index 77% rename from snippets/js/jquery/selectors/jq-selectors-id.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-id.sublime-snippet index b065555..639fa7b 100644 --- a/snippets/js/jquery/selectors/jq-selectors-id.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-id.sublime-snippet @@ -2,6 +2,6 @@ - jqid + jq.id jq - id diff --git a/snippets/js/jquery/selectors/jq-selectors-image.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-image.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-image.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-image.sublime-snippet index 26007f0..b07b6fc 100644 --- a/snippets/js/jquery/selectors/jq-selectors-image.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-image.sublime-snippet @@ -2,6 +2,6 @@ - jq:i + jq.:i jq - :image diff --git a/snippets/js/jquery/selectors/jq-selectors-input.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-input.sublime-snippet similarity index 77% rename from snippets/js/jquery/selectors/jq-selectors-input.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-input.sublime-snippet index e4e0629..be13b34 100644 --- a/snippets/js/jquery/selectors/jq-selectors-input.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-input.sublime-snippet @@ -2,6 +2,6 @@ - jq:in + jq.:in jq - :input diff --git a/snippets/js/jquery/selectors/jq-selectors-lang.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-lang.sublime-snippet similarity index 80% rename from snippets/js/jquery/selectors/jq-selectors-lang.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-lang.sublime-snippet index 6e293a8..ec6c91a 100644 --- a/snippets/js/jquery/selectors/jq-selectors-lang.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-lang.sublime-snippet @@ -2,6 +2,6 @@ - jq:l + jq.:l jq - :lang diff --git a/snippets/js/jquery/selectors/jq-selectors-last-child.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-last-child.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-last-child.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-last-child.sublime-snippet index fe6eb8f..747592d 100644 --- a/snippets/js/jquery/selectors/jq-selectors-last-child.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-last-child.sublime-snippet @@ -2,6 +2,6 @@ - jq:lc + jq.:lc jq - :last-child diff --git a/snippets/js/jquery/selectors/jq-selectors-last-of-type.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-last-of-type.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-last-of-type.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-last-of-type.sublime-snippet index 200a5a2..67a3de1 100644 --- a/snippets/js/jquery/selectors/jq-selectors-last-of-type.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-last-of-type.sublime-snippet @@ -2,6 +2,6 @@ - jq:lt + jq.:lty jq - :last-of-type diff --git a/snippets/js/jquery/selectors/jq-selectors-last.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-last.sublime-snippet similarity index 77% rename from snippets/js/jquery/selectors/jq-selectors-last.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-last.sublime-snippet index 81f714b..55b4362 100644 --- a/snippets/js/jquery/selectors/jq-selectors-last.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-last.sublime-snippet @@ -2,6 +2,6 @@ - jq:la + jq.:la jq - :last diff --git a/snippets/js/jquery/selectors/jq-selectors-lt.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-lt.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-lt.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-lt.sublime-snippet index 69352f0..0d46fea 100644 --- a/snippets/js/jquery/selectors/jq-selectors-lt.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-lt.sublime-snippet @@ -2,6 +2,6 @@ - jq:lt + jq.:lt jq - :lt diff --git a/snippets/js/jquery/selectors/jq-selectors-multiple-attribute-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-multiple-attribute-selector.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-multiple-attribute-selector.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-multiple-attribute-selector.sublime-snippet index 13b1f03..8ce525b 100644 --- a/snippets/js/jquery/selectors/jq-selectors-multiple-attribute-selector.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-multiple-attribute-selector.sublime-snippet @@ -2,6 +2,6 @@ - jq[][] + jq.[][] jq - Multiple Attribute diff --git a/snippets/js/jquery/selectors/jq-selectors-multiple-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-multiple-selector.sublime-snippet similarity index 83% rename from snippets/js/jquery/selectors/jq-selectors-multiple-selector.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-multiple-selector.sublime-snippet index 8147348..3c1dd8b 100644 --- a/snippets/js/jquery/selectors/jq-selectors-multiple-selector.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-multiple-selector.sublime-snippet @@ -2,6 +2,6 @@ - jq, + jq., jq - Multiple diff --git a/snippets/js/jquery/selectors/jq-selectors-next-adjacent-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-next-adjacent-selector.sublime-snippet similarity index 81% rename from snippets/js/jquery/selectors/jq-selectors-next-adjacent-selector.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-next-adjacent-selector.sublime-snippet index 29d4456..4644479 100644 --- a/snippets/js/jquery/selectors/jq-selectors-next-adjacent-selector.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-next-adjacent-selector.sublime-snippet @@ -2,6 +2,6 @@ - jq+ + jq.+ jq - Next Adjacent diff --git a/snippets/js/jquery/selectors/jq-selectors-next-siblings-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-next-siblings-selector.sublime-snippet similarity index 80% rename from snippets/js/jquery/selectors/jq-selectors-next-siblings-selector.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-next-siblings-selector.sublime-snippet index 3fb6bde..ef59340 100644 --- a/snippets/js/jquery/selectors/jq-selectors-next-siblings-selector.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-next-siblings-selector.sublime-snippet @@ -2,6 +2,6 @@ - jq-snss + jq.snss jq - Next Siblings diff --git a/snippets/js/jquery/selectors/jq-selectors-not.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-not.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-not.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-not.sublime-snippet index 09cbef6..d309a7d 100644 --- a/snippets/js/jquery/selectors/jq-selectors-not.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-not.sublime-snippet @@ -2,6 +2,6 @@ - jq:not + jq.:not jq - :not diff --git a/snippets/js/jquery/selectors/jq-selectors-nth-child.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-nth-child.sublime-snippet similarity index 80% rename from snippets/js/jquery/selectors/jq-selectors-nth-child.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-nth-child.sublime-snippet index d0277cd..d9a8365 100644 --- a/snippets/js/jquery/selectors/jq-selectors-nth-child.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-nth-child.sublime-snippet @@ -2,6 +2,6 @@ - jq:nc + jq.:nc jq - :nth-child diff --git a/snippets/js/jquery/selectors/jq-selectors-nth-last-child.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-nth-last-child.sublime-snippet similarity index 81% rename from snippets/js/jquery/selectors/jq-selectors-nth-last-child.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-nth-last-child.sublime-snippet index ab2550c..8db3ffb 100644 --- a/snippets/js/jquery/selectors/jq-selectors-nth-last-child.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-nth-last-child.sublime-snippet @@ -2,6 +2,6 @@ - jq:nlc + jq.:nlc jq - :nth-last-child diff --git a/snippets/js/jquery/selectors/jq-selectors-nth-last-of-type.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-nth-last-of-type.sublime-snippet similarity index 81% rename from snippets/js/jquery/selectors/jq-selectors-nth-last-of-type.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-nth-last-of-type.sublime-snippet index 8dc7767..911a1f6 100644 --- a/snippets/js/jquery/selectors/jq-selectors-nth-last-of-type.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-nth-last-of-type.sublime-snippet @@ -2,6 +2,6 @@ - jq:nlt + jq.:nlt jq - :nth-last-of-type diff --git a/snippets/js/jquery/selectors/jq-selectors-nth-of-type.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-nth-of-type.sublime-snippet similarity index 80% rename from snippets/js/jquery/selectors/jq-selectors-nth-of-type.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-nth-of-type.sublime-snippet index b5c21ef..b73b90a 100644 --- a/snippets/js/jquery/selectors/jq-selectors-nth-of-type.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-nth-of-type.sublime-snippet @@ -2,6 +2,6 @@ - jq:nt + jq.:nt jq - :nth-of-type diff --git a/snippets/js/jquery/selectors/jq-selectors-odd.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-odd.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-odd.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-odd.sublime-snippet index 1e7893e..0579f7d 100644 --- a/snippets/js/jquery/selectors/jq-selectors-odd.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-odd.sublime-snippet @@ -2,6 +2,6 @@ - jq:o + jq.:o jq - :odd diff --git a/snippets/js/jquery/selectors/jq-selectors-only-child.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-only-child.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-only-child.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-only-child.sublime-snippet index fec6865..9f4098e 100644 --- a/snippets/js/jquery/selectors/jq-selectors-only-child.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-only-child.sublime-snippet @@ -2,6 +2,6 @@ - jq:oc + jq.:oc jq - :only-child diff --git a/snippets/js/jquery/selectors/jq-selectors-only-of-type.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-only-of-type.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-only-of-type.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-only-of-type.sublime-snippet index de5fa6d..7a44f9a 100644 --- a/snippets/js/jquery/selectors/jq-selectors-only-of-type.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-only-of-type.sublime-snippet @@ -2,6 +2,6 @@ - jq:ot + jq.:ot jq - :only-of-type diff --git a/snippets/js/jquery/selectors/jq-selectors-parent.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-parent.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-parent.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-parent.sublime-snippet index 4c6dabb..b87bb82 100644 --- a/snippets/js/jquery/selectors/jq-selectors-parent.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-parent.sublime-snippet @@ -2,6 +2,6 @@ - jq:p + jq.:p jq - :parent diff --git a/snippets/js/jquery/selectors/jq-selectors-password.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-password.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-password.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-password.sublime-snippet index 40b5c67..0638597 100644 --- a/snippets/js/jquery/selectors/jq-selectors-password.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-password.sublime-snippet @@ -2,6 +2,6 @@ - jq:pa + jq.:pa jq - :password diff --git a/snippets/js/jquery/selectors/jq-selectors-radio.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-radio.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-radio.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-radio.sublime-snippet index 954797b..dc78044 100644 --- a/snippets/js/jquery/selectors/jq-selectors-radio.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-radio.sublime-snippet @@ -2,6 +2,6 @@ - jq:r + jq.:r jq - :radio diff --git a/snippets/js/jquery/selectors/jq-selectors-reset.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-reset.sublime-snippet similarity index 77% rename from snippets/js/jquery/selectors/jq-selectors-reset.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-reset.sublime-snippet index c4cc565..5c5739d 100644 --- a/snippets/js/jquery/selectors/jq-selectors-reset.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-reset.sublime-snippet @@ -2,6 +2,6 @@ - jq:re + jq.:re jq - :reset diff --git a/snippets/js/jquery/selectors/jq-selectors-root.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-root.sublime-snippet similarity index 77% rename from snippets/js/jquery/selectors/jq-selectors-root.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-root.sublime-snippet index a8d5e19..8546f16 100644 --- a/snippets/js/jquery/selectors/jq-selectors-root.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-root.sublime-snippet @@ -2,6 +2,6 @@ - jq:ro + jq.:ro jq - :root diff --git a/snippets/js/jquery/selectors/jq-selectors-selected.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-selected.sublime-snippet similarity index 79% rename from snippets/js/jquery/selectors/jq-selectors-selected.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-selected.sublime-snippet index e074dc2..001f652 100644 --- a/snippets/js/jquery/selectors/jq-selectors-selected.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-selected.sublime-snippet @@ -2,6 +2,6 @@ - jq:s + jq.:s jq - :selected diff --git a/snippets/js/jquery/selectors/jq-selectors-submit.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-submit.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-submit.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-submit.sublime-snippet index 7b2b66e..423c342 100644 --- a/snippets/js/jquery/selectors/jq-selectors-submit.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-submit.sublime-snippet @@ -2,6 +2,6 @@ - jq:su + jq.:su jq - :submit diff --git a/snippets/js/jquery/selectors/jq-selectors-target.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-target.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-target.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-target.sublime-snippet index c930908..26ea13d 100644 --- a/snippets/js/jquery/selectors/jq-selectors-target.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-target.sublime-snippet @@ -2,6 +2,6 @@ - jq:t + jq.:t jq - :target diff --git a/snippets/js/jquery/selectors/jq-selectors-text.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-text.sublime-snippet similarity index 77% rename from snippets/js/jquery/selectors/jq-selectors-text.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-text.sublime-snippet index 5e9fcbb..2c85544 100644 --- a/snippets/js/jquery/selectors/jq-selectors-text.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-text.sublime-snippet @@ -2,6 +2,6 @@ - jq:tx + jq.:tx jq - :text diff --git a/snippets/js/jquery/selectors/jq-selectors-visible.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-visible.sublime-snippet similarity index 78% rename from snippets/js/jquery/selectors/jq-selectors-visible.sublime-snippet rename to snippets/js/libraries/jquery/selectors/jq-selectors-visible.sublime-snippet index 55cc82a..1d1eff5 100644 --- a/snippets/js/jquery/selectors/jq-selectors-visible.sublime-snippet +++ b/snippets/js/libraries/jquery/selectors/jq-selectors-visible.sublime-snippet @@ -2,6 +2,6 @@ - jq:v + jq.:v jq - :visible diff --git a/snippets/js/jquery/traversing/README.md b/snippets/js/libraries/jquery/traversing/README.md similarity index 72% rename from snippets/js/jquery/traversing/README.md rename to snippets/js/libraries/jquery/traversing/README.md index f99b5e3..ca1a2f9 100644 --- a/snippets/js/jquery/traversing/README.md +++ b/snippets/js/libraries/jquery/traversing/README.md @@ -1,162 +1,162 @@ ## Traversing -### [jqaddback] addBack +### [jq.addback] addBack ```javascript ${1:\$(this)}.addBack(${2:selector}); ``` -### [jqadd] add +### [jq.add] add ```javascript ${1:\$(this)}.add(${2:selector}${3:, context}); ``` -### [jqchildren] children +### [jq.children] children ```javascript ${1:\$(this)}.children(${2:selector}); ``` -### [jqclosest] closest +### [jq.closest] closest ```javascript ${1:\$(this)}.closest(${2:selector}${3:, context}); ``` -### [jqcontents] contents +### [jq.contents] contents ```javascript ${1:\$(this)}.contents(); ``` -### [jqeach] each +### [jq.each] each ```javascript ${1:\$(this)}.each(${2:function}); ``` -### [jqend] end +### [jq.end] end ```javascript ${1:\$(this)}.end(); ``` -### [jqeq] eq +### [jq.eq] eq ```javascript ${1:\$(this)}.eq(${2:indexFromEnd}); ``` -### [jqfilter] filter +### [jq.filter] filter ```javascript ${1:\$(this)}.filter(${2:elements}); ``` -### [jqfind] find +### [jq.find] find ```javascript ${1:\$(this)}.find(${2:element}); ``` -### [jqfirst] first +### [jq.first] first ```javascript ${1:\$(this)}.first(); ``` -### [jqhas] has +### [jq.has] has ```javascript ${1:\$(this)}.has(${2:selector}); ``` -### [jqis] is +### [jq.is] is ```javascript ${1:\$(this)}.is(${2:selector}); ``` -### [jqlast] last +### [jq.last] last ```javascript ${1:\$(this)}.last(); ``` -### [jqmap] map +### [jq.map] map ```javascript ${1:\$(this)}.map(${2:callback}); ``` -### [jqnextall] nextAll +### [jq.nextall] nextAll ```javascript ${1:\$(this)}.nextAll(${2:selector}); ``` -### [jqnextuntil] nextUntil +### [jq.nextuntil] nextUntil ```javascript ${1:\$(this)}.nextUntil(${2:element}${3:, filter}); ``` -### [jqnext] next +### [jq.next] next ```javascript ${1:\$(this)}.next(${2:selector}); ``` -### [jqnot] not +### [jq.not] not ```javascript ${1:\$(this)}.not(${2:selection}); ``` -### [jqparent] parent +### [jq.parent] parent ```javascript ${1:\$(this)}.parent(${2:selector}); ``` -### [jqpuntil] parentsUntil +### [jq.puntil] parentsUntil ```javascript ${1:\$(this)}.parentsUntil(${2:selector}${3:, selector}); ``` -### [jqparents] parents +### [jq.parents] parents ```javascript ${1:\$(this)}.parents(${2:selector}); ``` -### [jqprevall] prevAll +### [jq.prevall] prevAll ```javascript ${1:\$(this)}.prevAll(${2:selector}); ``` -### [jqprevuntil] prevUntil +### [jq.prevuntil] prevUntil ```javascript ${1:\$(this)}.prevUntil(${2:selector}${3:, filter}); ``` -### [jqprev] prev +### [jq.prev] prev ```javascript ${1:\$(this)}.prev(${2:selector}); ``` -### [jqsiblings] siblings +### [jq.siblings] siblings ```javascript ${1:\$(this)}.siblings(${2:selector}); ``` -### [jqslice] slice +### [jq.slice] slice ```javascript ${1:\$(this)}.slice(${2:start}${3:, end}); diff --git a/snippets/js/jquery/traversing/jq-traversing-add-back.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-add-back.sublime-snippet similarity index 78% rename from snippets/js/jquery/traversing/jq-traversing-add-back.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-add-back.sublime-snippet index b66b95a..07873da 100644 --- a/snippets/js/jquery/traversing/jq-traversing-add-back.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-add-back.sublime-snippet @@ -2,6 +2,6 @@ - jqaddback + jq.addback jq - addBack diff --git a/snippets/js/jquery/traversing/jq-traversing-add.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-add.sublime-snippet similarity index 80% rename from snippets/js/jquery/traversing/jq-traversing-add.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-add.sublime-snippet index 0166b9a..91a8d8d 100644 --- a/snippets/js/jquery/traversing/jq-traversing-add.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-add.sublime-snippet @@ -2,6 +2,6 @@ - jqadd + jq.add jq - add diff --git a/snippets/js/jquery/traversing/jq-traversing-children.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-children.sublime-snippet similarity index 77% rename from snippets/js/jquery/traversing/jq-traversing-children.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-children.sublime-snippet index 218498d..2f5ae9f 100644 --- a/snippets/js/jquery/traversing/jq-traversing-children.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-children.sublime-snippet @@ -2,6 +2,6 @@ - jqchildren + jq.children jq - children diff --git a/snippets/js/jquery/traversing/jq-traversing-closest.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-closest.sublime-snippet similarity index 79% rename from snippets/js/jquery/traversing/jq-traversing-closest.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-closest.sublime-snippet index 6ef5e8f..92f3879 100644 --- a/snippets/js/jquery/traversing/jq-traversing-closest.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-closest.sublime-snippet @@ -2,6 +2,6 @@ - jqclosest + jq.closest jq - closest diff --git a/snippets/js/jquery/traversing/jq-traversing-contents.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-contents.sublime-snippet similarity index 76% rename from snippets/js/jquery/traversing/jq-traversing-contents.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-contents.sublime-snippet index 47358ea..2107582 100644 --- a/snippets/js/jquery/traversing/jq-traversing-contents.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-contents.sublime-snippet @@ -2,6 +2,6 @@ - jqcontents + jq.contents jq - contents diff --git a/snippets/js/jquery/traversing/jq-traversing-each.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-each.sublime-snippet similarity index 78% rename from snippets/js/jquery/traversing/jq-traversing-each.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-each.sublime-snippet index cf3c593..4d75beb 100644 --- a/snippets/js/jquery/traversing/jq-traversing-each.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-each.sublime-snippet @@ -2,6 +2,6 @@ - jqeach + jq.each jq - each diff --git a/snippets/js/jquery/traversing/jq-traversing-end.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-end.sublime-snippet similarity index 77% rename from snippets/js/jquery/traversing/jq-traversing-end.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-end.sublime-snippet index bd41dae..b568d4e 100644 --- a/snippets/js/jquery/traversing/jq-traversing-end.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-end.sublime-snippet @@ -2,6 +2,6 @@ - jqend + jq.end jq - end diff --git a/snippets/js/jquery/traversing/jq-traversing-eq.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-eq.sublime-snippet similarity index 79% rename from snippets/js/jquery/traversing/jq-traversing-eq.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-eq.sublime-snippet index 173b5ca..9390d58 100644 --- a/snippets/js/jquery/traversing/jq-traversing-eq.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-eq.sublime-snippet @@ -2,6 +2,6 @@ - jqeq + jq.eq jq - eq diff --git a/snippets/js/jquery/traversing/jq-traversing-filter.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-filter.sublime-snippet similarity index 78% rename from snippets/js/jquery/traversing/jq-traversing-filter.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-filter.sublime-snippet index 70113ef..44944e8 100644 --- a/snippets/js/jquery/traversing/jq-traversing-filter.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-filter.sublime-snippet @@ -2,6 +2,6 @@ - jqfilter + jq.filter jq - filter diff --git a/snippets/js/jquery/traversing/jq-traversing-find.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-find.sublime-snippet similarity index 78% rename from snippets/js/jquery/traversing/jq-traversing-find.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-find.sublime-snippet index 477756e..687894a 100644 --- a/snippets/js/jquery/traversing/jq-traversing-find.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-find.sublime-snippet @@ -2,6 +2,6 @@ - jqfind + jq.find jq - find diff --git a/snippets/js/jquery/traversing/jq-traversing-first.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-first.sublime-snippet similarity index 76% rename from snippets/js/jquery/traversing/jq-traversing-first.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-first.sublime-snippet index 7eb0f0e..7f274d4 100644 --- a/snippets/js/jquery/traversing/jq-traversing-first.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-first.sublime-snippet @@ -2,6 +2,6 @@ - jqfirst + jq.first jq - first diff --git a/snippets/js/jquery/traversing/jq-traversing-has.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-has.sublime-snippet similarity index 79% rename from snippets/js/jquery/traversing/jq-traversing-has.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-has.sublime-snippet index d17970e..ec0193d 100644 --- a/snippets/js/jquery/traversing/jq-traversing-has.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-has.sublime-snippet @@ -2,6 +2,6 @@ - jqhas + jq.has jq - has diff --git a/snippets/js/jquery/traversing/jq-traversing-is.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-is.sublime-snippet similarity index 79% rename from snippets/js/jquery/traversing/jq-traversing-is.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-is.sublime-snippet index 546a8fd..4947aa3 100644 --- a/snippets/js/jquery/traversing/jq-traversing-is.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-is.sublime-snippet @@ -2,6 +2,6 @@ - jqis + jq.is jq - is diff --git a/snippets/js/jquery/traversing/jq-traversing-last.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-last.sublime-snippet similarity index 76% rename from snippets/js/jquery/traversing/jq-traversing-last.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-last.sublime-snippet index d825845..b6f1548 100644 --- a/snippets/js/jquery/traversing/jq-traversing-last.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-last.sublime-snippet @@ -2,6 +2,6 @@ - jqlast + jq.last jq - last diff --git a/snippets/js/jquery/traversing/jq-traversing-map.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-map.sublime-snippet similarity index 79% rename from snippets/js/jquery/traversing/jq-traversing-map.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-map.sublime-snippet index 9996ba7..aa11989 100644 --- a/snippets/js/jquery/traversing/jq-traversing-map.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-map.sublime-snippet @@ -2,6 +2,6 @@ - jqmap + jq.map jq - map diff --git a/snippets/js/jquery/traversing/jq-traversing-next-all.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-next-all.sublime-snippet similarity index 78% rename from snippets/js/jquery/traversing/jq-traversing-next-all.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-next-all.sublime-snippet index 893884a..deb2d08 100644 --- a/snippets/js/jquery/traversing/jq-traversing-next-all.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-next-all.sublime-snippet @@ -2,6 +2,6 @@ - jqnextall + jq.nextall jq - nextAll diff --git a/snippets/js/jquery/traversing/jq-traversing-next-until.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-next-until.sublime-snippet similarity index 79% rename from snippets/js/jquery/traversing/jq-traversing-next-until.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-next-until.sublime-snippet index b51dbc9..a38fdbd 100644 --- a/snippets/js/jquery/traversing/jq-traversing-next-until.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-next-until.sublime-snippet @@ -2,6 +2,6 @@ - jqnextuntil + jq.nextuntil jq - nextUntil diff --git a/snippets/js/jquery/traversing/jq-traversing-next.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-next.sublime-snippet similarity index 78% rename from snippets/js/jquery/traversing/jq-traversing-next.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-next.sublime-snippet index 907476a..84d9fd7 100644 --- a/snippets/js/jquery/traversing/jq-traversing-next.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-next.sublime-snippet @@ -2,6 +2,6 @@ - jqnext + jq.next jq - next diff --git a/snippets/js/jquery/traversing/jq-traversing-not.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-not.sublime-snippet similarity index 79% rename from snippets/js/jquery/traversing/jq-traversing-not.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-not.sublime-snippet index cafc008..cbed8d6 100644 --- a/snippets/js/jquery/traversing/jq-traversing-not.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-not.sublime-snippet @@ -2,6 +2,6 @@ - jqnot + jq.not jq - not diff --git a/snippets/js/jquery/traversing/jq-traversing-parent.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-parent.sublime-snippet similarity index 78% rename from snippets/js/jquery/traversing/jq-traversing-parent.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-parent.sublime-snippet index f487320..750a1e4 100644 --- a/snippets/js/jquery/traversing/jq-traversing-parent.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-parent.sublime-snippet @@ -2,6 +2,6 @@ - jqparent + jq.parent jq - parent diff --git a/snippets/js/jquery/traversing/jq-traversing-parents-until.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-parents-until.sublime-snippet similarity index 81% rename from snippets/js/jquery/traversing/jq-traversing-parents-until.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-parents-until.sublime-snippet index 3f26e00..1a7c6ac 100644 --- a/snippets/js/jquery/traversing/jq-traversing-parents-until.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-parents-until.sublime-snippet @@ -2,6 +2,6 @@ - jqpuntil + jq.puntil jq - parentsUntil diff --git a/snippets/js/jquery/traversing/jq-traversing-parents.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-parents.sublime-snippet similarity index 78% rename from snippets/js/jquery/traversing/jq-traversing-parents.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-parents.sublime-snippet index 43ceaec..2705909 100644 --- a/snippets/js/jquery/traversing/jq-traversing-parents.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-parents.sublime-snippet @@ -2,6 +2,6 @@ - jqparents + jq.parents jq - parents diff --git a/snippets/js/jquery/traversing/jq-traversing-prev-all.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-prev-all.sublime-snippet similarity index 78% rename from snippets/js/jquery/traversing/jq-traversing-prev-all.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-prev-all.sublime-snippet index 694efb7..62be706 100644 --- a/snippets/js/jquery/traversing/jq-traversing-prev-all.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-prev-all.sublime-snippet @@ -2,6 +2,6 @@ - jqprevall + jq.prevall jq - prevAll diff --git a/snippets/js/jquery/traversing/jq-traversing-prev-until.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-prev-until.sublime-snippet similarity index 79% rename from snippets/js/jquery/traversing/jq-traversing-prev-until.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-prev-until.sublime-snippet index 5d60091..5f7d489 100644 --- a/snippets/js/jquery/traversing/jq-traversing-prev-until.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-prev-until.sublime-snippet @@ -2,6 +2,6 @@ - jqprevuntil + jq.prevuntil jq - prevUntil diff --git a/snippets/js/jquery/traversing/jq-traversing-prev.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-prev.sublime-snippet similarity index 78% rename from snippets/js/jquery/traversing/jq-traversing-prev.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-prev.sublime-snippet index 32e6d0c..b28f18b 100644 --- a/snippets/js/jquery/traversing/jq-traversing-prev.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-prev.sublime-snippet @@ -2,6 +2,6 @@ - jqprev + jq.prev jq - prev diff --git a/snippets/js/jquery/traversing/jq-traversing-siblings.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-siblings.sublime-snippet similarity index 80% rename from snippets/js/jquery/traversing/jq-traversing-siblings.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-siblings.sublime-snippet index 2a5fee3..cbc403e 100644 --- a/snippets/js/jquery/traversing/jq-traversing-siblings.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-siblings.sublime-snippet @@ -2,6 +2,6 @@ - jq-ts + jq.ts jq - siblings diff --git a/snippets/js/jquery/traversing/jq-traversing-slice.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-slice.sublime-snippet similarity index 80% rename from snippets/js/jquery/traversing/jq-traversing-slice.sublime-snippet rename to snippets/js/libraries/jquery/traversing/jq-traversing-slice.sublime-snippet index b2cf87a..3e0774b 100644 --- a/snippets/js/jquery/traversing/jq-traversing-slice.sublime-snippet +++ b/snippets/js/libraries/jquery/traversing/jq-traversing-slice.sublime-snippet @@ -2,6 +2,6 @@ - jq-tsl + jq.tsl jq - slice diff --git a/snippets/js/jquery/utilities/README.md b/snippets/js/libraries/jquery/utilities/README.md similarity index 69% rename from snippets/js/jquery/utilities/README.md rename to snippets/js/libraries/jquery/utilities/README.md index 77ca2d6..cae27d3 100644 --- a/snippets/js/jquery/utilities/README.md +++ b/snippets/js/libraries/jquery/utilities/README.md @@ -1,150 +1,150 @@ ## Utilities -### [jqcontains] contains +### [jq.contains] contains ```javascript ${1:\$}.contains(${2:container}${3:, contained}); ``` -### [jqjeach] jQuery each +### [jq.jeach] jQuery each ```javascript ${1:\$}.each(${2:array}${3:, callback}); ``` -### [jqextend] extend +### [jq.extend] extend ```javascript ${1:\$}.extend(${2:deep}${3:, target}${4:, object1}${5:, objectN}); ``` -### [jqfnextend] fn.extend +### [jq.fnextend] fn.extend ```javascript ${1:\$}.fn.extend(${2:object}); ``` -### [jqgeval] globalEval +### [jq.geval] globalEval ```javascript ${1:\$}.globalEval(${2:code}); ``` -### [jqgrep] grep +### [jq.grep] grep ```javascript ${1:\$}.grep(${2:array}${3:, function}${4:, invert}); ``` -### [jqinarray] inArray +### [jq.inarray] inArray ```javascript ${1:\$}.inArray(${2:value}${3:, array}${4:, fromIndex}); ``` -### [jqieobject] isEmptyObject +### [jq.ieobject] isEmptyObject ```javascript ${1:\$}.isEmptyObject(${2:object}); ``` -### [jqifunction] isFunction +### [jq.ifunction] isFunction ```javascript ${1:\$}.isFunction(${2:object}); ``` -### [jqinumeric] isNumeric +### [jq.inumeric] isNumeric ```javascript ${1:\$}.isNumeric(${2:value}); ``` -### [jqipobject] isPlainObject +### [jq.ipobject] isPlainObject ```javascript ${1:\$}.isPlainObject(${2:object}); ``` -### [jqiwindow] isWindow +### [jq.iwindow] isWindow ```javascript ${1:\$}.isWindow(${2:object}); ``` -### [jqixmldoc] isXMLDoc +### [jq.ixmldoc] isXMLDoc ```javascript ${1:\$}.isXMLDoc(${2:node}); ``` -### [jqmarray] makeArray +### [jq.marray] makeArray ```javascript ${1:\$}.makeArray(${2:obj}); ``` -### [jqjmap] jQuery map +### [jq.jmap] jQuery map ```javascript ${1:\$}.map(${2:object}${3:, callback}); ``` -### [jqmerge] merge +### [jq.merge] merge ```javascript ${1:\$}.merge(${2:first}${3:, second}); ``` -### [jqnoop] noop +### [jq.noop] noop ```javascript ${1:\$}.noop(); ``` -### [jqnow] now +### [jq.now] now ```javascript ${1:\$}.now(); ``` -### [jqparse] parseHTML +### [jq.parseh] parseHTML ```javascript ${1:\$}.parseHTML(${2:data}${3:, context}${4:, keepScripts}); ``` -### [jqparse] parseJSON +### [jq.parsej] parseJSON ```javascript ${1:\$}.parseJSON(${2:json}); ``` -### [jqparse] parseXML +### [jq.parsex] parseXML ```javascript ${1:\$}.parseXML(${2:data}); ``` -### [jqproxy] proxy +### [jq.proxy] proxy ```javascript ${1:\$}.proxy(${2:context}${3:, name}${4:, additionalArguments}); ``` -### [jqtrim] trim +### [jq.trim] trim ```javascript ${1:\$}.trim(${2:str}); ``` -### [jqtype] type +### [jq.jtype] jQuery type ```javascript ${1:\$}.type(${2:obj}); ``` -### [jqunique] unique +### [jq.unique] unique ```javascript ${1:\$}.unique(${2:array}); diff --git a/snippets/js/jquery/utilities/jq-utilities-contains.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-contains.sublime-snippet similarity index 79% rename from snippets/js/jquery/utilities/jq-utilities-contains.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-contains.sublime-snippet index 1e0e1c0..74c9bd1 100644 --- a/snippets/js/jquery/utilities/jq-utilities-contains.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-contains.sublime-snippet @@ -2,6 +2,6 @@ - jqcontains + jq.contains jq - contains diff --git a/snippets/js/jquery/utilities/jq-utilities-each.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-each.sublime-snippet similarity index 79% rename from snippets/js/jquery/utilities/jq-utilities-each.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-each.sublime-snippet index 3b00b43..1e5e593 100644 --- a/snippets/js/jquery/utilities/jq-utilities-each.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-each.sublime-snippet @@ -2,6 +2,6 @@ - jqjeach + jq.jeach jq - jQuery each diff --git a/snippets/js/jquery/utilities/jq-utilities-extend.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-extend.sublime-snippet similarity index 81% rename from snippets/js/jquery/utilities/jq-utilities-extend.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-extend.sublime-snippet index 5d200fa..33d3d3f 100644 --- a/snippets/js/jquery/utilities/jq-utilities-extend.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-extend.sublime-snippet @@ -2,6 +2,6 @@ - jqextend + jq.extend jq - extend diff --git a/snippets/js/jquery/utilities/jq-utilities-fn-extend.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-fn-extend.sublime-snippet similarity index 77% rename from snippets/js/jquery/utilities/jq-utilities-fn-extend.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-fn-extend.sublime-snippet index 8bc2f12..7f722ec 100644 --- a/snippets/js/jquery/utilities/jq-utilities-fn-extend.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-fn-extend.sublime-snippet @@ -2,6 +2,6 @@ - jqfnextend + jq.fnextend jq - fn.extend diff --git a/snippets/js/jquery/utilities/jq-utilities-global-eval.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-global-eval.sublime-snippet similarity index 78% rename from snippets/js/jquery/utilities/jq-utilities-global-eval.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-global-eval.sublime-snippet index 5efa790..957cdb5 100644 --- a/snippets/js/jquery/utilities/jq-utilities-global-eval.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-global-eval.sublime-snippet @@ -2,6 +2,6 @@ - jqgeval + jq.geval jq - globalEval diff --git a/snippets/js/jquery/utilities/jq-utilities-grep.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-grep.sublime-snippet similarity index 80% rename from snippets/js/jquery/utilities/jq-utilities-grep.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-grep.sublime-snippet index f805e73..662560c 100644 --- a/snippets/js/jquery/utilities/jq-utilities-grep.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-grep.sublime-snippet @@ -2,6 +2,6 @@ - jqgrep + jq.grep jq - grep diff --git a/snippets/js/jquery/utilities/jq-utilities-in-array.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-in-array.sublime-snippet similarity index 80% rename from snippets/js/jquery/utilities/jq-utilities-in-array.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-in-array.sublime-snippet index fe585dd..4e02860 100644 --- a/snippets/js/jquery/utilities/jq-utilities-in-array.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-in-array.sublime-snippet @@ -2,6 +2,6 @@ - jqinarray + jq.inarray jq - inArray diff --git a/snippets/js/jquery/utilities/jq-utilities-is-empty-object.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-is-empty-object.sublime-snippet similarity index 78% rename from snippets/js/jquery/utilities/jq-utilities-is-empty-object.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-is-empty-object.sublime-snippet index 2916399..bed7c01 100644 --- a/snippets/js/jquery/utilities/jq-utilities-is-empty-object.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-is-empty-object.sublime-snippet @@ -2,6 +2,6 @@ - jqieobject + jq.ieobject jq - isEmptyObject diff --git a/snippets/js/jquery/utilities/jq-utilities-is-function.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-is-function.sublime-snippet similarity index 77% rename from snippets/js/jquery/utilities/jq-utilities-is-function.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-is-function.sublime-snippet index b3330cf..6e67307 100644 --- a/snippets/js/jquery/utilities/jq-utilities-is-function.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-is-function.sublime-snippet @@ -2,6 +2,6 @@ - jqifunction + jq.ifunction jq - isFunction diff --git a/snippets/js/jquery/utilities/jq-utilities-is-numeric.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-is-numeric.sublime-snippet similarity index 77% rename from snippets/js/jquery/utilities/jq-utilities-is-numeric.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-is-numeric.sublime-snippet index 743e308..a858bde 100644 --- a/snippets/js/jquery/utilities/jq-utilities-is-numeric.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-is-numeric.sublime-snippet @@ -2,6 +2,6 @@ - jqinumeric + jq.inumeric jq - isNumeric diff --git a/snippets/js/jquery/utilities/jq-utilities-is-plain-object.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-is-plain-object.sublime-snippet similarity index 78% rename from snippets/js/jquery/utilities/jq-utilities-is-plain-object.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-is-plain-object.sublime-snippet index 508d5d1..a6cfe75 100644 --- a/snippets/js/jquery/utilities/jq-utilities-is-plain-object.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-is-plain-object.sublime-snippet @@ -2,6 +2,6 @@ - jqipobject + jq.ipobject jq - isPlainObject diff --git a/snippets/js/jquery/utilities/jq-utilities-is-window.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-is-window.sublime-snippet similarity index 77% rename from snippets/js/jquery/utilities/jq-utilities-is-window.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-is-window.sublime-snippet index 2fc923b..b9f584f 100644 --- a/snippets/js/jquery/utilities/jq-utilities-is-window.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-is-window.sublime-snippet @@ -2,6 +2,6 @@ - jqiwindow + jq.iwindow jq - isWindow diff --git a/snippets/js/jquery/utilities/jq-utilities-is-xml-doc.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-is-xml-doc.sublime-snippet similarity index 77% rename from snippets/js/jquery/utilities/jq-utilities-is-xml-doc.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-is-xml-doc.sublime-snippet index 38a6473..183f744 100644 --- a/snippets/js/jquery/utilities/jq-utilities-is-xml-doc.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-is-xml-doc.sublime-snippet @@ -2,6 +2,6 @@ - jqixmldoc + jq.ixmldoc jq - isXMLDoc diff --git a/snippets/js/jquery/utilities/jq-utilities-make-array.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-make-array.sublime-snippet similarity index 77% rename from snippets/js/jquery/utilities/jq-utilities-make-array.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-make-array.sublime-snippet index 0f400a6..74ebbd9 100644 --- a/snippets/js/jquery/utilities/jq-utilities-make-array.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-make-array.sublime-snippet @@ -2,6 +2,6 @@ - jqmarray + jq.marray jq - makeArray diff --git a/snippets/js/jquery/utilities/jq-utilities-map.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-map.sublime-snippet similarity index 80% rename from snippets/js/jquery/utilities/jq-utilities-map.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-map.sublime-snippet index 992842a..3d3e0a7 100644 --- a/snippets/js/jquery/utilities/jq-utilities-map.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-map.sublime-snippet @@ -2,6 +2,6 @@ - jqjmap + jq.jmap jq - jQuery map diff --git a/snippets/js/jquery/utilities/jq-utilities-merge.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-merge.sublime-snippet similarity index 79% rename from snippets/js/jquery/utilities/jq-utilities-merge.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-merge.sublime-snippet index b0c3d0e..cba017f 100644 --- a/snippets/js/jquery/utilities/jq-utilities-merge.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-merge.sublime-snippet @@ -2,6 +2,6 @@ - jqmerge + jq.merge jq - merge diff --git a/snippets/js/jquery/utilities/jq-utilities-noop.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-noop.sublime-snippet similarity index 76% rename from snippets/js/jquery/utilities/jq-utilities-noop.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-noop.sublime-snippet index c422baa..c76481c 100644 --- a/snippets/js/jquery/utilities/jq-utilities-noop.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-noop.sublime-snippet @@ -2,6 +2,6 @@ - jqnoop + jq.noop jq - noop diff --git a/snippets/js/jquery/utilities/jq-utilities-now.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-now.sublime-snippet similarity index 76% rename from snippets/js/jquery/utilities/jq-utilities-now.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-now.sublime-snippet index 041254d..48cd8b6 100644 --- a/snippets/js/jquery/utilities/jq-utilities-now.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-now.sublime-snippet @@ -2,6 +2,6 @@ - jqnow + jq.now jq - now diff --git a/snippets/js/jquery/utilities/jq-utilities-parse-html.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-parse-html.sublime-snippet similarity index 81% rename from snippets/js/jquery/utilities/jq-utilities-parse-html.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-parse-html.sublime-snippet index 09b552d..6e7f011 100644 --- a/snippets/js/jquery/utilities/jq-utilities-parse-html.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-parse-html.sublime-snippet @@ -2,6 +2,6 @@ - jqparse + jq.parseh jq - parseHTML diff --git a/snippets/js/jquery/utilities/jq-utilities-parse-json.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-parse-json.sublime-snippet similarity index 77% rename from snippets/js/jquery/utilities/jq-utilities-parse-json.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-parse-json.sublime-snippet index a6b38c0..90c1594 100644 --- a/snippets/js/jquery/utilities/jq-utilities-parse-json.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-parse-json.sublime-snippet @@ -2,6 +2,6 @@ - jqparse + jq.parsej jq - parseJSON diff --git a/snippets/js/jquery/utilities/jq-utilities-parse-xml.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-parse-xml.sublime-snippet similarity index 77% rename from snippets/js/jquery/utilities/jq-utilities-parse-xml.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-parse-xml.sublime-snippet index 9375238..5803b4f 100644 --- a/snippets/js/jquery/utilities/jq-utilities-parse-xml.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-parse-xml.sublime-snippet @@ -2,6 +2,6 @@ - jqparse + jq.parsex jq - parseXML diff --git a/snippets/js/jquery/utilities/jq-utilities-proxy.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-proxy.sublime-snippet similarity index 81% rename from snippets/js/jquery/utilities/jq-utilities-proxy.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-proxy.sublime-snippet index 79b3deb..e0ae47f 100644 --- a/snippets/js/jquery/utilities/jq-utilities-proxy.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-proxy.sublime-snippet @@ -2,6 +2,6 @@ - jqproxy + jq.proxy jq - proxy diff --git a/snippets/js/jquery/utilities/jq-utilities-trim.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-trim.sublime-snippet similarity index 77% rename from snippets/js/jquery/utilities/jq-utilities-trim.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-trim.sublime-snippet index 9949e92..e33ba11 100644 --- a/snippets/js/jquery/utilities/jq-utilities-trim.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-trim.sublime-snippet @@ -2,6 +2,6 @@ - jqtrim + jq.trim jq - trim diff --git a/snippets/js/libraries/jquery/utilities/jq-utilities-type.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-type.sublime-snippet new file mode 100644 index 0000000..da1bc19 --- /dev/null +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-type.sublime-snippet @@ -0,0 +1,7 @@ + + + jq.jtype + jq - jQuery type + diff --git a/snippets/js/jquery/utilities/jq-utilities-unique.sublime-snippet b/snippets/js/libraries/jquery/utilities/jq-utilities-unique.sublime-snippet similarity index 77% rename from snippets/js/jquery/utilities/jq-utilities-unique.sublime-snippet rename to snippets/js/libraries/jquery/utilities/jq-utilities-unique.sublime-snippet index a1ce97d..5c5d640 100644 --- a/snippets/js/jquery/utilities/jq-utilities-unique.sublime-snippet +++ b/snippets/js/libraries/jquery/utilities/jq-utilities-unique.sublime-snippet @@ -2,6 +2,6 @@ - jqunique + jq.unique jq - unique diff --git a/snippets/js/jquery/zothers/README.md b/snippets/js/libraries/jquery/zothers/README.md similarity index 98% rename from snippets/js/jquery/zothers/README.md rename to snippets/js/libraries/jquery/zothers/README.md index f9e44bc..da39de0 100644 --- a/snippets/js/jquery/zothers/README.md +++ b/snippets/js/libraries/jquery/zothers/README.md @@ -1,6 +1,6 @@ ## Others -### [jqb] jQuery Boilerplate +### [jq.b] jQuery Boilerplate ```javascript /** diff --git a/snippets/js/jquery/zothers/jq-boilerplate.sublime-snippet b/snippets/js/libraries/jquery/zothers/jq-boilerplate.sublime-snippet similarity index 98% rename from snippets/js/jquery/zothers/jq-boilerplate.sublime-snippet rename to snippets/js/libraries/jquery/zothers/jq-boilerplate.sublime-snippet index 5002079..10c549a 100644 --- a/snippets/js/jquery/zothers/jq-boilerplate.sublime-snippet +++ b/snippets/js/libraries/jquery/zothers/jq-boilerplate.sublime-snippet @@ -69,6 +69,6 @@ ${5:// the semi-colon before function invocation is a safety net against concate })( jQuery, window, document ); ]]> - jqb + jq.b jq - jQuery Boilerplate diff --git a/snippets/js/libraries/react/README.md b/snippets/js/libraries/react/README.md new file mode 100644 index 0000000..c4964ba --- /dev/null +++ b/snippets/js/libraries/react/README.md @@ -0,0 +1,12 @@ +# ReactJS Snippets + +## Prefix `jr.*` + +- [Component](component/) +- [Events](events/) +- [Lifecycle](lifecycle/) +- [PropTypes](prop-types/) +- [ReactDOM](react-dom/) +- [Spec](spec/) +- [Test Utils](test-utils/) +- [Top Level](top-level/) diff --git a/snippets/js/libraries/react/component/README.md b/snippets/js/libraries/react/component/README.md new file mode 100644 index 0000000..cde5434 --- /dev/null +++ b/snippets/js/libraries/react/component/README.md @@ -0,0 +1,37 @@ +## ReactJS Snippets + +### [jr.fupdate] forceUpdate + +```javascript +this.forceUpdate(); +``` + +### [jr.imounted] isMounted + +```javascript +this.isMounted(); +``` + +### [jr.rprops] replaceProps + +```javascript +this.replaceProps(${0}); +``` + +### [jr.rstate] replaceState + +```javascript +this.replaceState({$0}); +``` + +### [jr.sprops] setProps + +```javascript +this.setProps(${0}); +``` + +### [jr.setstate] setState + +```javascript +this.setState({$0}); +``` diff --git a/snippets/js/libraries/react/component/react-component-force-update.sublime-snippet b/snippets/js/libraries/react/component/react-component-force-update.sublime-snippet new file mode 100644 index 0000000..f9449fe --- /dev/null +++ b/snippets/js/libraries/react/component/react-component-force-update.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.fupdate + jr - forceUpdate + diff --git a/snippets/js/libraries/react/component/react-component-is-mounted.sublime-snippet b/snippets/js/libraries/react/component/react-component-is-mounted.sublime-snippet new file mode 100644 index 0000000..efb40d3 --- /dev/null +++ b/snippets/js/libraries/react/component/react-component-is-mounted.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.imounted + jr - isMounted + diff --git a/snippets/js/libraries/react/component/react-component-replace-props.sublime-snippet b/snippets/js/libraries/react/component/react-component-replace-props.sublime-snippet new file mode 100644 index 0000000..bb9642d --- /dev/null +++ b/snippets/js/libraries/react/component/react-component-replace-props.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.rprops + jr - replaceProps + diff --git a/snippets/js/libraries/react/component/react-component-replace-state.sublime-snippet b/snippets/js/libraries/react/component/react-component-replace-state.sublime-snippet new file mode 100644 index 0000000..04ebb1c --- /dev/null +++ b/snippets/js/libraries/react/component/react-component-replace-state.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.rstate + jr - replaceState + diff --git a/snippets/js/libraries/react/component/react-component-set-props.sublime-snippet b/snippets/js/libraries/react/component/react-component-set-props.sublime-snippet new file mode 100644 index 0000000..95006ec --- /dev/null +++ b/snippets/js/libraries/react/component/react-component-set-props.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.sprops + jr - setProps + diff --git a/snippets/js/libraries/react/component/react-component-set-state.sublime-snippet b/snippets/js/libraries/react/component/react-component-set-state.sublime-snippet new file mode 100644 index 0000000..7639522 --- /dev/null +++ b/snippets/js/libraries/react/component/react-component-set-state.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.setstate + jr - setState + diff --git a/snippets/js/libraries/react/events/README.md b/snippets/js/libraries/react/events/README.md new file mode 100644 index 0000000..ccad0ec --- /dev/null +++ b/snippets/js/libraries/react/events/README.md @@ -0,0 +1,206 @@ +## ReactJS Snippets + +### [jr.onbl] onBlur + +```javascript +onBlur$0 +``` + +### [jr.onch] onChange + +```javascript +onChange$0 +``` + +### [jr.oncl] onClick + +```javascript +onClick$0 +``` + +### [jr.oncm] onContextMenu + +```javascript +onContextMenu$0 +``` + +### [jr.onco] onCopy + +```javascript +onCopy$0 +``` + +### [jr.onct] onCut + +```javascript +onCut$0 +``` + +### [jr.ondc] onDoubleClick + +```javascript +onDoubleClick$0 +``` + +### [jr.onde] onDragEnd + +```javascript +onDragEnd$0 +``` + +### [jr.onden] onDragEnter + +```javascript +onDragEnter$0 +``` + +### [jr.ondex] onDragExit + +```javascript +onDragExit$0 +``` + +### [jr.ondl] onDragLeave + +```javascript +onDragLeave$0 +``` + +### [jr.ondo] onDragOver + +```javascript +onDragOver$0 +``` + +### [jr.onds] onDragStart + +```javascript +onDragStart$0 +``` + +### [jr.ondr] onDrop + +```javascript +onDrop$0 +``` + +### [jr.onfo] onFocus + +```javascript +onFocus$0 +``` + +### [jr.onin] onInput + +```javascript +onInput$0 +``` + +### [jr.onkd] onKeyDown + +```javascript +onKeyDown$0 +``` + +### [jr.onkp] onKeyPress + +```javascript +onKeyPress$0 +``` + +### [jr.onku] onKeyUp + +```javascript +onKeyUp$0 +``` + +### [jr.onmd] onMouseDown + +```javascript +onMouseDown$0 +``` + +### [jr.onme] onMouseEnter + +```javascript +onMouseEnter$0 +``` + +### [jr.onml] onMouseLeave + +```javascript +onMouseLeave$0 +``` + +### [jr.onmm] onMouseMove + +```javascript +onMouseMove$0 +``` + +### [jr.onmo] onMouseOut + +```javascript +onMouseOut$0 +``` + +### [jr.onmov] onMouseOver + +```javascript +onMouseOver$0 +``` + +### [jr.onmu] onMouseUp + +```javascript +onMouseUp$0 +``` + +### [jr.onpa] onPaste + +```javascript +onPaste$0 +``` + +### [jr.onsc] onScroll + +```javascript +onScroll$0 +``` + +### [jr.onsu] onSubmit + +```javascript +onSubmit$0 +``` + +### [jr.ontc] onTouchCancel + +```javascript +onTouchCancel$0 +``` + +### [jr.onte] onTouchEnd + +```javascript +onTouchEnd$0 +``` + +### [jr.ontm] onTouchMove + +```javascript +onTouchMove$0 +``` + +### [jr.onts] onTouchStart + +```javascript +onTouchStart$0 +``` + +### [jr.onwh] onWheel + +```javascript +onWheel$0 +``` + diff --git a/snippets/js/libraries/react/events/onBlur.sublime-snippet b/snippets/js/libraries/react/events/onBlur.sublime-snippet new file mode 100644 index 0000000..88dd12b --- /dev/null +++ b/snippets/js/libraries/react/events/onBlur.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onbl +jr - onBlur + diff --git a/snippets/js/libraries/react/events/onChange.sublime-snippet b/snippets/js/libraries/react/events/onChange.sublime-snippet new file mode 100644 index 0000000..a62f232 --- /dev/null +++ b/snippets/js/libraries/react/events/onChange.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onch +jr - onChange + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onClick.sublime-snippet b/snippets/js/libraries/react/events/onClick.sublime-snippet new file mode 100644 index 0000000..b61296b --- /dev/null +++ b/snippets/js/libraries/react/events/onClick.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.oncl +jr - onClick + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onContextMenu.sublime-snippet b/snippets/js/libraries/react/events/onContextMenu.sublime-snippet new file mode 100644 index 0000000..c57d324 --- /dev/null +++ b/snippets/js/libraries/react/events/onContextMenu.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.oncm +jr - onContextMenu + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onCopy.sublime-snippet b/snippets/js/libraries/react/events/onCopy.sublime-snippet new file mode 100644 index 0000000..a3c757a --- /dev/null +++ b/snippets/js/libraries/react/events/onCopy.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onco +jr - onCopy + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onCut.sublime-snippet b/snippets/js/libraries/react/events/onCut.sublime-snippet new file mode 100644 index 0000000..dde9bed --- /dev/null +++ b/snippets/js/libraries/react/events/onCut.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onct +jr - onCut + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onDoubleClick.sublime-snippet b/snippets/js/libraries/react/events/onDoubleClick.sublime-snippet new file mode 100644 index 0000000..98b1e64 --- /dev/null +++ b/snippets/js/libraries/react/events/onDoubleClick.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.ondc +jr - onDoubleClick + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onDragEnd.sublime-snippet b/snippets/js/libraries/react/events/onDragEnd.sublime-snippet new file mode 100644 index 0000000..0d83a54 --- /dev/null +++ b/snippets/js/libraries/react/events/onDragEnd.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onde +jr - onDragEnd + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onDragEnter.sublime-snippet b/snippets/js/libraries/react/events/onDragEnter.sublime-snippet new file mode 100644 index 0000000..80bcf22 --- /dev/null +++ b/snippets/js/libraries/react/events/onDragEnter.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onden +jr - onDragEnter + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onDragExit.sublime-snippet b/snippets/js/libraries/react/events/onDragExit.sublime-snippet new file mode 100644 index 0000000..dbfd795 --- /dev/null +++ b/snippets/js/libraries/react/events/onDragExit.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.ondex +jr - onDragExit + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onDragLeave.sublime-snippet b/snippets/js/libraries/react/events/onDragLeave.sublime-snippet new file mode 100644 index 0000000..396980b --- /dev/null +++ b/snippets/js/libraries/react/events/onDragLeave.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.ondl +jr - onDragLeave + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onDragOver.sublime-snippet b/snippets/js/libraries/react/events/onDragOver.sublime-snippet new file mode 100644 index 0000000..44b5d3b --- /dev/null +++ b/snippets/js/libraries/react/events/onDragOver.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.ondo +jr - onDragOver + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onDragStart.sublime-snippet b/snippets/js/libraries/react/events/onDragStart.sublime-snippet new file mode 100644 index 0000000..89847fd --- /dev/null +++ b/snippets/js/libraries/react/events/onDragStart.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onds +jr - onDragStart + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onDrop.sublime-snippet b/snippets/js/libraries/react/events/onDrop.sublime-snippet new file mode 100644 index 0000000..dec11c1 --- /dev/null +++ b/snippets/js/libraries/react/events/onDrop.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.ondr +jr - onDrop + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onFocus.sublime-snippet b/snippets/js/libraries/react/events/onFocus.sublime-snippet new file mode 100644 index 0000000..fca5c39 --- /dev/null +++ b/snippets/js/libraries/react/events/onFocus.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onfo +jr - onFocus + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onInput.sublime-snippet b/snippets/js/libraries/react/events/onInput.sublime-snippet new file mode 100644 index 0000000..aec31ec --- /dev/null +++ b/snippets/js/libraries/react/events/onInput.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onin +jr - onInput + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onKeyDown.sublime-snippet b/snippets/js/libraries/react/events/onKeyDown.sublime-snippet new file mode 100644 index 0000000..3107b38 --- /dev/null +++ b/snippets/js/libraries/react/events/onKeyDown.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onkd +jr - onKeyDown + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onKeyPress.sublime-snippet b/snippets/js/libraries/react/events/onKeyPress.sublime-snippet new file mode 100644 index 0000000..883ddcb --- /dev/null +++ b/snippets/js/libraries/react/events/onKeyPress.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onkp +jr - onKeyPress + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onKeyUp.sublime-snippet b/snippets/js/libraries/react/events/onKeyUp.sublime-snippet new file mode 100644 index 0000000..5ab1d8a --- /dev/null +++ b/snippets/js/libraries/react/events/onKeyUp.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onku +jr - onKeyUp + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onMouseDown.sublime-snippet b/snippets/js/libraries/react/events/onMouseDown.sublime-snippet new file mode 100644 index 0000000..8914352 --- /dev/null +++ b/snippets/js/libraries/react/events/onMouseDown.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onmd +jr - onMouseDown + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onMouseEnter.sublime-snippet b/snippets/js/libraries/react/events/onMouseEnter.sublime-snippet new file mode 100644 index 0000000..95d20ff --- /dev/null +++ b/snippets/js/libraries/react/events/onMouseEnter.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onme +jr - onMouseEnter + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onMouseLeave.sublime-snippet b/snippets/js/libraries/react/events/onMouseLeave.sublime-snippet new file mode 100644 index 0000000..70106ae --- /dev/null +++ b/snippets/js/libraries/react/events/onMouseLeave.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onml +jr - onMouseLeave + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onMouseMove.sublime-snippet b/snippets/js/libraries/react/events/onMouseMove.sublime-snippet new file mode 100644 index 0000000..ea96e71 --- /dev/null +++ b/snippets/js/libraries/react/events/onMouseMove.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onmm +jr - onMouseMove + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onMouseOut.sublime-snippet b/snippets/js/libraries/react/events/onMouseOut.sublime-snippet new file mode 100644 index 0000000..656364e --- /dev/null +++ b/snippets/js/libraries/react/events/onMouseOut.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onmo +jr - onMouseOut + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onMouseOver.sublime-snippet b/snippets/js/libraries/react/events/onMouseOver.sublime-snippet new file mode 100644 index 0000000..705ec72 --- /dev/null +++ b/snippets/js/libraries/react/events/onMouseOver.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onmov +jr - onMouseOver + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onMouseUp.sublime-snippet b/snippets/js/libraries/react/events/onMouseUp.sublime-snippet new file mode 100644 index 0000000..80fab22 --- /dev/null +++ b/snippets/js/libraries/react/events/onMouseUp.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onmu +jr - onMouseUp + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onPaste.sublime-snippet b/snippets/js/libraries/react/events/onPaste.sublime-snippet new file mode 100644 index 0000000..f0c7c7c --- /dev/null +++ b/snippets/js/libraries/react/events/onPaste.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onpa +jr - onPaste + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onScroll.sublime-snippet b/snippets/js/libraries/react/events/onScroll.sublime-snippet new file mode 100644 index 0000000..33c8b90 --- /dev/null +++ b/snippets/js/libraries/react/events/onScroll.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onsc +jr - onScroll + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onSubmit.sublime-snippet b/snippets/js/libraries/react/events/onSubmit.sublime-snippet new file mode 100644 index 0000000..4f6c828 --- /dev/null +++ b/snippets/js/libraries/react/events/onSubmit.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onsu +jr - onSubmit + diff --git a/snippets/js/libraries/react/events/onTouchCancel.sublime-snippet b/snippets/js/libraries/react/events/onTouchCancel.sublime-snippet new file mode 100644 index 0000000..1b8e3cc --- /dev/null +++ b/snippets/js/libraries/react/events/onTouchCancel.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.ontc +jr - onTouchCancel + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onTouchEnd.sublime-snippet b/snippets/js/libraries/react/events/onTouchEnd.sublime-snippet new file mode 100644 index 0000000..78fcc6c --- /dev/null +++ b/snippets/js/libraries/react/events/onTouchEnd.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onte +jr - onTouchEnd + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onTouchMove.sublime-snippet b/snippets/js/libraries/react/events/onTouchMove.sublime-snippet new file mode 100644 index 0000000..77b7285 --- /dev/null +++ b/snippets/js/libraries/react/events/onTouchMove.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.ontm +jr - onTouchMove + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onTouchStart.sublime-snippet b/snippets/js/libraries/react/events/onTouchStart.sublime-snippet new file mode 100644 index 0000000..569e81b --- /dev/null +++ b/snippets/js/libraries/react/events/onTouchStart.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onts +jr - onTouchStart + \ No newline at end of file diff --git a/snippets/js/libraries/react/events/onWheel.sublime-snippet b/snippets/js/libraries/react/events/onWheel.sublime-snippet new file mode 100644 index 0000000..cb10463 --- /dev/null +++ b/snippets/js/libraries/react/events/onWheel.sublime-snippet @@ -0,0 +1,8 @@ + + + +jr.onwh +jr - onWheel + diff --git a/snippets/js/libraries/react/lifecycle/README.md b/snippets/js/libraries/react/lifecycle/README.md new file mode 100644 index 0000000..8c36f74 --- /dev/null +++ b/snippets/js/libraries/react/lifecycle/README.md @@ -0,0 +1,59 @@ +## ReactJS Snippets + +### [jr.cdmount] componentDidMount + +```javascript +componentDidMount: function () { + // invoked once (client-only), after initial 'render' + // good for AJAX, setTimeout, setInterval +} +``` + +### [jr.cdupdate] componentDidUpdate + +```javascript +componentDidUpdate: function (prevProps, prevState) { + // invoked immediately after DOM updates, not for initial 'render' +} +``` + +### [jr.cwmount] componentWillMount + +```javascript +componentWillMount: function () { + // invoked once, before initial 'render' +} +``` + +### [jr.cwrprops] componentWillReceiveProps + +```javascript +componentWillReceiveProps: function (nextProps) { + // invoked when component is receiving props, not for initial 'render' +} +``` + +### [jr.cwunmount] componentWillUnmount + +```javascript +componentWillUnmount: function () { + // invoked immediately before a component is unmounted from the DOM +} +``` + +### [jr.cwupdate] componentWillUpdate + +```javascript +componentWillUpdate: function (nextProps, nextState) { + // invoked immediately before rendering with new props or state, not for initial 'render' + // see componentWillReceiveProps if you need to call setState +} +``` + +### [jr.scupdate] shouldComponentUpdate + +```javascript +shouldComponentUpdate: function (nextProps, nextState) { + // invoked before rendering with new props, not for initial 'render' +} +``` diff --git a/snippets/js/libraries/react/lifecycle/react-lifecycle-component-did-mount.sublime-snippet b/snippets/js/libraries/react/lifecycle/react-lifecycle-component-did-mount.sublime-snippet new file mode 100644 index 0000000..8e17855 --- /dev/null +++ b/snippets/js/libraries/react/lifecycle/react-lifecycle-component-did-mount.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.cdmount + jr - componentDidMount + diff --git a/snippets/js/libraries/react/lifecycle/react-lifecycle-component-did-update.sublime-snippet b/snippets/js/libraries/react/lifecycle/react-lifecycle-component-did-update.sublime-snippet new file mode 100644 index 0000000..4b879b5 --- /dev/null +++ b/snippets/js/libraries/react/lifecycle/react-lifecycle-component-did-update.sublime-snippet @@ -0,0 +1,9 @@ + + + jr.cdupdate + jr - componentDidUpdate + diff --git a/snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-mount.sublime-snippet b/snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-mount.sublime-snippet new file mode 100644 index 0000000..4d997e3 --- /dev/null +++ b/snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-mount.sublime-snippet @@ -0,0 +1,9 @@ + + + jr.cwmount + jr - componentWillMount + diff --git a/snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-receive-props.sublime-snippet b/snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-receive-props.sublime-snippet new file mode 100644 index 0000000..1236cb1 --- /dev/null +++ b/snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-receive-props.sublime-snippet @@ -0,0 +1,9 @@ + + + jr.cwrprops + jr - componentWillReceiveProps + diff --git a/snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-unmount.sublime-snippet b/snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-unmount.sublime-snippet new file mode 100644 index 0000000..9e09e64 --- /dev/null +++ b/snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-unmount.sublime-snippet @@ -0,0 +1,9 @@ + + + jr.cwunmount + jr - componentWillUnmount + diff --git a/snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-update.sublime-snippet b/snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-update.sublime-snippet new file mode 100644 index 0000000..9f21882 --- /dev/null +++ b/snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-update.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.cwupdate + jr - componentWillUpdate + diff --git a/snippets/js/libraries/react/lifecycle/react-lifecycle-should-component-update.sublime-snippet b/snippets/js/libraries/react/lifecycle/react-lifecycle-should-component-update.sublime-snippet new file mode 100644 index 0000000..92a092e --- /dev/null +++ b/snippets/js/libraries/react/lifecycle/react-lifecycle-should-component-update.sublime-snippet @@ -0,0 +1,9 @@ + + + jr.scupdate + jr - shouldComponentUpdate + diff --git a/snippets/js/libraries/react/prop-types/README.md b/snippets/js/libraries/react/prop-types/README.md new file mode 100644 index 0000000..4c4e719 --- /dev/null +++ b/snippets/js/libraries/react/prop-types/README.md @@ -0,0 +1,154 @@ +## ReactJS Snippets + +### [jr.ptany] PropTypes.any + +```javascript +{ + requiredAny: React.PropTypes.any.isRequired +} +``` + +### [jr.ptarrayof] PropTypes.arrayOf + +```javascript +{ + optionalArrayOf: React.PropTypes.arrayOf(React.PropTypes.string), + requiredArrayOf: React.PropTypes.arrayOf(React.PropTypes.string).isRequired +} +``` + +### [jr.ptarray] PropTypes.array + +```javascript +{ + optionalArray: React.PropTypes.array, + requiredArray: React.PropTypes.array.isRequired +} +``` + +### [jr.ptbool] PropTypes.bool + +```javascript +{ + optionalBoolean: React.PropTypes.bool, + requiredBoolean: React.PropTypes.bool.isRequired +} +``` + +### [jr.ptelement] PropTypes.element + +```javascript +{ + optionalElement: React.PropTypes.element, + requiredElement: React.PropTypes.element.isRequired +} +``` + +### [jr.ptfunc] PropTypes.func + +```javascript +{ + optionalFunction: React.PropTypes.func, + requiredFunction: React.PropTypes.func.isRequired +} +``` + +### [jr.ptiof] PropTypes.instanceOf + +```javascript +{ + optionalClass: React.PropTypes.instanceOf(MyClass), + requiredClass: React.PropTypes.instanceOf(MyClass).isRequired +} +``` + +### [jr.ptnode] PropTypes.node + +```javascript +{ + optionalNode: React.PropTypes.node, + requiredNode: React.PropTypes.node.isRequired +}; +``` + +### [jr.ptnumber] PropTypes.number + +```javascript +{ + optionalNumber: React.PropTypes.number, + requiredNumber: React.PropTypes.number.isRequired +} +``` + +### [jr.ptobjectof] PropTypes.objectOf + +```javascript +{ + optionalObjectOf: React.PropTypes.objectOf(React.PropTypes.string), + requiredObjectOf: React.PropTypes.objectOf(React.PropTypes.string).isRequired +} +``` + +### [jr.ptobject] PropTypes.object + +```javascript +{ + optionalObject: React.PropTypes.object, + requiredObject: React.PropTypes.object.isRequired +} +``` + +### [jr.ptootype] PropTypes.oneOfType + +```javascript +{ + optionalUnion: React.PropTypes.oneOfType([ + React.PropTypes.bool, + React.PropTypes.string + ]), + + requiredUnion: React.PropTypes.oneOfType([ + React.PropTypes.bool, + React.PropTypes.string + ]).isRequired, +} +``` + +### [jr.ptoneof] PropTypes.oneOf + +```javascript +{ + optionalEnum: React.PropTypes.oneOf(['Thing 1', 'Thing 2']), + optionalEnum: React.PropTypes.oneOf(['Thing 1', 'Thing 2']).isRequired +} +``` + +### [jr.ptshape] PropTypes.shape + +```javascript +{ + optionalObjectWithShape: React.PropTypes.shape({ + age: React.PropTypes.number, + name: React.PropTypes.string + }), + + requiredObjectWithShape: React.PropTypes.shape({ + age: React.PropTypes.number, + name: React.PropTypes.string + }).isRequired, + + requiredObjectWithRequiredShape: React.PropTypes.shape({ + age: React.PropTypes.number.isRequired, + name: React.PropTypes.string.isRequired + }).isRequired, +} +``` + +### [jr.ptstring] PropTypes.string + +```javascript +{ + optionalString: React.PropTypes.string, + requiredString: React.PropTypes.string.isRequired +} +``` diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-any.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-any.sublime-snippet new file mode 100644 index 0000000..71feb57 --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-any.sublime-snippet @@ -0,0 +1,9 @@ + + + jr.ptany + jr - PropTypes.any + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-array-of.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-array-of.sublime-snippet new file mode 100644 index 0000000..3d48c9b --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-array-of.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptarrayof + jr - PropTypes.arrayOf + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-array.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-array.sublime-snippet new file mode 100644 index 0000000..eba8634 --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-array.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptarray + jr - PropTypes.array + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-bool.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-bool.sublime-snippet new file mode 100644 index 0000000..2161b53 --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-bool.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptbool + jr - PropTypes.bool + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-element.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-element.sublime-snippet new file mode 100644 index 0000000..f676eff --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-element.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptelement + jr - PropTypes.element + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-func.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-func.sublime-snippet new file mode 100644 index 0000000..525de6e --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-func.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptfunc + jr - PropTypes.func + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-instance-of.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-instance-of.sublime-snippet new file mode 100644 index 0000000..0b17b35 --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-instance-of.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptiof + jr - PropTypes.instanceOf + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-node.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-node.sublime-snippet new file mode 100644 index 0000000..7b37b2f --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-node.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptnode + jr - PropTypes.node + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-number.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-number.sublime-snippet new file mode 100644 index 0000000..c33a687 --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-number.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptnumber + jr - PropTypes.number + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-object-of.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-object-of.sublime-snippet new file mode 100644 index 0000000..8b485f2 --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-object-of.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptobjectof + jr - PropTypes.objectOf + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-object.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-object.sublime-snippet new file mode 100644 index 0000000..88b9550 --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-object.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptobject + jr - PropTypes.object + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-one-of-type.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-one-of-type.sublime-snippet new file mode 100644 index 0000000..4f69317 --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-one-of-type.sublime-snippet @@ -0,0 +1,17 @@ + + + jr.ptootype + jr - PropTypes.oneOfType + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-one-of.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-one-of.sublime-snippet new file mode 100644 index 0000000..849a76b --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-one-of.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptoneof + jr - PropTypes.oneOf + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-shape.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-shape.sublime-snippet new file mode 100644 index 0000000..f0bac2c --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-shape.sublime-snippet @@ -0,0 +1,22 @@ + + + jr.ptshape + jr - PropTypes.shape + diff --git a/snippets/js/libraries/react/prop-types/react-prop-types-string.sublime-snippet b/snippets/js/libraries/react/prop-types/react-prop-types-string.sublime-snippet new file mode 100644 index 0000000..45f8454 --- /dev/null +++ b/snippets/js/libraries/react/prop-types/react-prop-types-string.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptstring + jr - PropTypes.string + diff --git a/snippets/js/libraries/react/react-dom/README.md b/snippets/js/libraries/react/react-dom/README.md new file mode 100644 index 0000000..225f64d --- /dev/null +++ b/snippets/js/libraries/react/react-dom/README.md @@ -0,0 +1,31 @@ +## ReactJS Snippets + +### [jr.fdnode] findDOMNode + +```javascript +ReactDOM.findDOMNode(${1:componentRef}); +``` + +### [jr.rsmarkup] renderStaticMarkup + +```javascript +ReactDOMServer.renderStaticMarkup(${1:ReactElement element}); +``` + +### [jr.rtstring] renderToString + +```javascript +ReactDOMServer.renderToString(${1:ReactElement element}); +``` + +### [jr.render] render + +```javascript +ReactDOM.render(${1:reactElement}, ${1:domContainerNode}); +``` + +### [jr.ucanode] unmountComponentAtNode + +```javascript +ReactDOM.unmountComponentAtNode(${1:DOMElement container}); +``` diff --git a/snippets/js/libraries/react/react-dom/react-react-dom-find-dom-node.sublime-snippet b/snippets/js/libraries/react/react-dom/react-react-dom-find-dom-node.sublime-snippet new file mode 100644 index 0000000..fe0c194 --- /dev/null +++ b/snippets/js/libraries/react/react-dom/react-react-dom-find-dom-node.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.fdnode + jr - findDOMNode + diff --git a/snippets/js/libraries/react/react-dom/react-react-dom-render-static-markup.sublime-snippet b/snippets/js/libraries/react/react-dom/react-react-dom-render-static-markup.sublime-snippet new file mode 100644 index 0000000..ebb9e9a --- /dev/null +++ b/snippets/js/libraries/react/react-dom/react-react-dom-render-static-markup.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.rsmarkup + jr - renderStaticMarkup + diff --git a/snippets/js/libraries/react/react-dom/react-react-dom-render-to-string.sublime-snippet b/snippets/js/libraries/react/react-dom/react-react-dom-render-to-string.sublime-snippet new file mode 100644 index 0000000..b779b05 --- /dev/null +++ b/snippets/js/libraries/react/react-dom/react-react-dom-render-to-string.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.rtstring + jr - renderToString + diff --git a/snippets/js/libraries/react/react-dom/react-react-dom-render.sublime-snippet b/snippets/js/libraries/react/react-dom/react-react-dom-render.sublime-snippet new file mode 100644 index 0000000..c546d02 --- /dev/null +++ b/snippets/js/libraries/react/react-dom/react-react-dom-render.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.render + jr - render + diff --git a/snippets/js/libraries/react/react-dom/react-react-dom-unmount-component-at-node.sublime-snippet b/snippets/js/libraries/react/react-dom/react-react-dom-unmount-component-at-node.sublime-snippet new file mode 100644 index 0000000..d2d38bc --- /dev/null +++ b/snippets/js/libraries/react/react-dom/react-react-dom-unmount-component-at-node.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.ucanode + jr - unmountComponentAtNode + diff --git a/snippets/js/libraries/react/spec/README.md b/snippets/js/libraries/react/spec/README.md new file mode 100644 index 0000000..802f6a6 --- /dev/null +++ b/snippets/js/libraries/react/spec/README.md @@ -0,0 +1,55 @@ +## ReactJS Snippets + +### [jr.dname] displayName + +```javascript +displayName: "MyComponent" +``` + +### [jr.gdprops] getDefaultProps + +```javascript +getDefaultProps: function () { + return ${1:\{ key: value \}}; +} +``` + +### [jr.gistate] getInitialState + +```javascript +getInitialState: function () { + return ${1:\{ key: value \}}; +} +``` + +### [jr.mixins] mixins + +```javascript +mixins: [ AMixinObject, AnotherMixinObject ]; +``` + +### [jr.ptypes] propTypes + +```javascript +propTypes: { + myProp: React.PropTypes.bool +} +``` + +### [jr.srender] render + +```javascript +render: function () { + return ${1}; +} +``` + +### [jr.statics] statics + +```javascript +statics: { + customMethod: function(foo) { + return foo === 'bar'; + } +} +``` diff --git a/snippets/js/libraries/react/spec/react-spec-display-name.sublime-snippet b/snippets/js/libraries/react/spec/react-spec-display-name.sublime-snippet new file mode 100644 index 0000000..c823caf --- /dev/null +++ b/snippets/js/libraries/react/spec/react-spec-display-name.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.dname + jr - displayName + diff --git a/snippets/js/libraries/react/spec/react-spec-get-default-props.sublime-snippet b/snippets/js/libraries/react/spec/react-spec-get-default-props.sublime-snippet new file mode 100644 index 0000000..830b1c7 --- /dev/null +++ b/snippets/js/libraries/react/spec/react-spec-get-default-props.sublime-snippet @@ -0,0 +1,9 @@ + + + jr.gdprops + jr - getDefaultProps + diff --git a/snippets/js/libraries/react/spec/react-spec-getInitial-state.sublime-snippet b/snippets/js/libraries/react/spec/react-spec-getInitial-state.sublime-snippet new file mode 100644 index 0000000..0bf5112 --- /dev/null +++ b/snippets/js/libraries/react/spec/react-spec-getInitial-state.sublime-snippet @@ -0,0 +1,9 @@ + + + jr.gistate + jr - getInitialState + diff --git a/snippets/js/libraries/react/spec/react-spec-mixins.sublime-snippet b/snippets/js/libraries/react/spec/react-spec-mixins.sublime-snippet new file mode 100644 index 0000000..963015b --- /dev/null +++ b/snippets/js/libraries/react/spec/react-spec-mixins.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.mixins + jr - mixins + diff --git a/snippets/js/libraries/react/spec/react-spec-prop-types.sublime-snippet b/snippets/js/libraries/react/spec/react-spec-prop-types.sublime-snippet new file mode 100644 index 0000000..3f110e8 --- /dev/null +++ b/snippets/js/libraries/react/spec/react-spec-prop-types.sublime-snippet @@ -0,0 +1,9 @@ + + + jr.ptypes + jr - propTypes + diff --git a/snippets/js/libraries/react/spec/react-spec-render.sublime-snippet b/snippets/js/libraries/react/spec/react-spec-render.sublime-snippet new file mode 100644 index 0000000..99551c6 --- /dev/null +++ b/snippets/js/libraries/react/spec/react-spec-render.sublime-snippet @@ -0,0 +1,9 @@ + + + jr.srender + jr - render + diff --git a/snippets/js/libraries/react/spec/react-spec-statics.sublime-snippet b/snippets/js/libraries/react/spec/react-spec-statics.sublime-snippet new file mode 100644 index 0000000..a37751f --- /dev/null +++ b/snippets/js/libraries/react/spec/react-spec-statics.sublime-snippet @@ -0,0 +1,11 @@ + + + jr.statics + jr - statics + diff --git a/snippets/js/libraries/react/test-utils/README.md b/snippets/js/libraries/react/test-utils/README.md new file mode 100644 index 0000000..5c4bf2f --- /dev/null +++ b/snippets/js/libraries/react/test-utils/README.md @@ -0,0 +1,403 @@ +# ReactJS Snippets + +## key: `jr.z.testutils` + +### findAllInRenderedTree + +```javascript +var CompositeComponent = React.createClass({ + render () { + return
; + } +}); + +var componentTree = TestUtils.renderIntoDocument( + +); + +var allDivs = TestUtils.findAllInRenderedTree( + componentTree, + (c) => c.tagName === 'DIV' +) + +expect(allDivs).toBeAn('array'); +expect(allDivs.length).toBe(2); +``` + +### findRenderedComponentWithType + +```javascript +var MyCompositeComponent = React.createClass({ + render () { return } +}); + +var TargetComponent = React.createClass({ + render () { return
} +}); + +var componentTree = TestUtils.renderIntoDocument( + +); + +var onlyTargetComponent = TestUtils.findRenderedComponentWithType( + componentTree, + TargetComponent +); + +expect(onlyTargetComponent).toBeAn('object'); +expect(onlyTargetComponent).toNotBeAn('array'); +expect(TestUtils.isCompositeComponentWithType( + onlyTargetComponent, + TargetComponent +)).toBe(true); +``` + +### findRenderedDOMComponentWithClass + +```javascript +var MyCompositeComponent = React.createClass({ + render () { + return ; + } +}); + +var MyNestedComponent = React.createClass({ + render () { + return
; + } +}); + +var componentTree = TestUtils.renderIntoDocument(); + +var singleComponentWithMatchedClass = TestUtils.findRenderedDOMComponentWithClass( + componentTree, + 'nested' +); + +expect(singleComponentWithMatchedClass).toBeAn('object'); +expect(singleComponentWithMatchedClass).toNotBeAn('array'); +expect(singleComponentWithMatchedClass.className).toBe('nested'); +``` + +### findRenderedDOMComponentWithTag + +```javascript +var MyCompositeComponent = React.createClass({ + render () { + return ; + } +}); + +var MyNestedComponent = React.createClass({ + render () { + return
; + } +}); + +var componentTree = TestUtils.renderIntoDocument(); + +var onlyDiv = TestUtils.findRenderedDOMComponentWithTag( + componentTree, + 'div' +); + +expect(onlyDiv).toBeAn('object'); +expect(onlyDiv).toNotBeAn('array'); +expect(onlyDiv.tagName).toBe('DIV'); +``` + +### isCompositeComponentWithType + +```javascript +var CompositeComponent = React.createClass({ + render () { + return
; + } +}); + +var subject = TestUtils.renderIntoDocument( + +); + +expect( + TestUtils.isCompositeComponentWithType( + subject, + CompositeComponent + ) +).toBe(true); +``` + +### isCompositeComponent + +```javascript +var subject = TestUtils.renderIntoDocument( + +); + +expect( + TestUtils.isCompositeComponent(subject) +).toBe(true); +``` + +### isDOMComponent + +```javascript +var subject = TestUtils.renderIntoDocument(
); + +expect( + TestUtils.isDOMComponent(subject) +).toBe(true); +``` + +### isElementOfType + +```javascript +var MyComponent = React.createClass({ + render () { + return
; + } +}); + +expect( + TestUtils.isElementOfType(, MyComponent) +).toBe(true); +``` + +### isElement + +```javascript +expect(TestUtils.isElement(
)).toBe(true); +``` + +### mockComponent + +```javascript +mockComponent +``` + +### renderIntoDocument + +```javascript +var componentTree = TestUtils.renderIntoDocument(
); + +console.log('You mounted a component tree with a ' + componentTree.tagName + ' at the root!'); +``` + +### scryRenderedComponentsWithType + +```javascript +var MyCompositeComponent = React.createClass({ + render () { + return ( +
+ +
+ +
+ ) + } +}); + +var Target = React.createClass({ + render () { + return
; + } +}); + +var componentTree = TestUtils.renderIntoDocument( + +); + +var allTargetComponents = TestUtils.scryRenderedComponentsWithType( + componentTree, + Target +); + +expect(allTargetComponents).toBeAn('array'); +expect(allTargetComponents.length).toBe(2); +``` + +### scryRenderedDOMComponentsWithClass + +```javascript +var CompositeComponent = React.createClass({ + render () { + return ( +
+
+
+
+
+ ); + } +}); + +var componentTree = TestUtils.renderIntoDocument( + +); + +var allDOMComponentsWithMatchingClass = TestUtils.scryRenderedDOMComponentsWithClass( + componentTree, + 'target' +); + +expect(allDOMComponentsWithMatchingClass).toBeAn('array'); +expect(allDOMComponentsWithMatchingClass.length).toBe(2); +``` + +### scryRenderedDOMComponentsWithTag + +```javascript +var CompositeComponent = React.createClass({ + render () { + return
; + } +}); + +var componentTree = TestUtils.renderIntoDocument( + +); + +var allDivs = TestUtils.scryRenderedDOMComponentsWithTag( + componentTree, + 'DIV' +); + +expect(allDivs).toBeAn('array'); +expect(allDivs.length).toBe(2); +``` + +### Shallow rendering (basics) + +```javascript +// 1. create a renderer +var renderer = TestUtils.createRenderer(); + +// 2. render component into renderer +renderer.render(); + +// 3. capture renderer output +var subject = renderer.getRenderOutput(); + +// 4. make assertions +expect(subject.type).toBe('div'); +``` + +### Shallow rendering (child-count) + +```javascript +var renderer = TestUtils.createRenderer(); + +renderer.render( + +); + +var subject = renderer.getRenderOutput(); + +var childCount = React.Children.count(subject.props.children); + +expect(childCount).toBe(3); // => true +``` + +### Shallow rendering (child-equality) + +```javascript +var renderer = TestUtils.createRenderer(); + +renderer.render( + +
Thing 1
+
Thing 2
+
+); + +var subject = renderer.getRenderOutput(); + +expect(subject.props.children).toEqual([ +
Thing 1
, +
Thing 2
+]); // => true +``` + +### Shallow rendering (events) + +```javascript +var renderer = TestUtils.createRenderer(); + +var spy = expect.createSpy(); + +renderer.render(); + +var subject = renderer.getRenderOutput(); + +expect(spy.call.length).toEqual(1); // => true +``` + +### Shallow rendering (props) + +```javascript +var renderer = TestUtils.createRenderer(); + +renderer.render(); + +var subject = renderer.getRenderOutput(); + +expect(subject.props.className).toBe('my-component'); // => true +``` + +### Shallow rendering (state changes) + +```javascript +var renderer = TestUtils.createRenderer(); + +renderer.render(); + +// test initial rendering +var result = renderer.getRenderOutput(); + +expect(result.props.children).toEqual(0); + + +// test post-click rendering +result.props.onClick(); + +var clickedResult = renderer.getRenderOutput(); + +expect(clickedResult.props.children).toEqual(1); +``` + +### Shallow rendering (type) + +```javascript +var renderer = TestUtils.createRenderer(); + +renderer.render(); + +var subject = renderer.getRenderOutput(); + +expect(subject.type).toBe('div'); // => true +``` + +### Simulate (basic) + +```javascript +var subject = TestUtils.renderIntoDocument( +
+); + +TestUtils.Simulate.click(subject); +``` + +### Simulate (with data) + +```javascript +function handleChange (event) { + console.log('A change was simulated with key: ' + event.key); +} + +var subject = TestUtils.renderIntoDocument( + +); + +TestUtils.Simulate.change(subject, { key: "Enter" }); +``` diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-find-all-in-rendered-tree.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-find-all-in-rendered-tree.sublime-snippet new file mode 100644 index 0000000..3e2c242 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-find-all-in-rendered-tree.sublime-snippet @@ -0,0 +1,23 @@ + +
; + } +}); + +var componentTree = TestUtils.renderIntoDocument( + +); + +var allDivs = TestUtils.findAllInRenderedTree( + componentTree, + (c) => c.tagName === 'DIV' +) + +expect(allDivs).toBeAn('array'); +expect(allDivs.length).toBe(2); +]]>
+ jr.z.testutils + jr - findAllInRenderedTree +
diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-find-rendered-component-with-type.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-find-rendered-component-with-type.sublime-snippet new file mode 100644 index 0000000..53c3bcb --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-find-rendered-component-with-type.sublime-snippet @@ -0,0 +1,29 @@ + + } +}); + +var TargetComponent = React.createClass({ + render () { return
} +}); + +var componentTree = TestUtils.renderIntoDocument( + +); + +var onlyTargetComponent = TestUtils.findRenderedComponentWithType( + componentTree, + TargetComponent +); + +expect(onlyTargetComponent).toBeAn('object'); +expect(onlyTargetComponent).toNotBeAn('array'); +expect(TestUtils.isCompositeComponentWithType( + onlyTargetComponent, + TargetComponent +)).toBe(true); +]]> + jr.z.testutils + jr - findRenderedComponentWithType + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-find-rendered-dom-component-with-class.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-find-rendered-dom-component-with-class.sublime-snippet new file mode 100644 index 0000000..a835ffe --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-find-rendered-dom-component-with-class.sublime-snippet @@ -0,0 +1,28 @@ + + ; + } +}); + +var MyNestedComponent = React.createClass({ + render () { + return
; + } +}); + +var componentTree = TestUtils.renderIntoDocument(); + +var singleComponentWithMatchedClass = TestUtils.findRenderedDOMComponentWithClass( + componentTree, + 'nested' +); + +expect(singleComponentWithMatchedClass).toBeAn('object'); +expect(singleComponentWithMatchedClass).toNotBeAn('array'); +expect(singleComponentWithMatchedClass.className).toBe('nested'); +]]> + jr.z.testutils + jr - findRenderedDOMComponentWithClass + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-find-rendered-dom-component-with-tag.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-find-rendered-dom-component-with-tag.sublime-snippet new file mode 100644 index 0000000..42df064 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-find-rendered-dom-component-with-tag.sublime-snippet @@ -0,0 +1,28 @@ + + ; + } +}); + +var MyNestedComponent = React.createClass({ + render () { + return
; + } +}); + +var componentTree = TestUtils.renderIntoDocument(); + +var onlyDiv = TestUtils.findRenderedDOMComponentWithTag( + componentTree, + 'div' +); + +expect(onlyDiv).toBeAn('object'); +expect(onlyDiv).toNotBeAn('array'); +expect(onlyDiv.tagName).toBe('DIV'); +]]> + jr.z.testutils + jr - findRenderedDOMComponentWithTag + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-is-composite-component-with-type.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-is-composite-component-with-type.sublime-snippet new file mode 100644 index 0000000..3500006 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-is-composite-component-with-type.sublime-snippet @@ -0,0 +1,22 @@ + + ; + } +}); + +var subject = TestUtils.renderIntoDocument( + +); + +expect( + TestUtils.isCompositeComponentWithType( + subject, + CompositeComponent + ) +).toBe(true); +]]> + jr.z.testutils + jr - isCompositeComponentWithType + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-is-composite-component.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-is-composite-component.sublime-snippet new file mode 100644 index 0000000..1f91348 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-is-composite-component.sublime-snippet @@ -0,0 +1,13 @@ + + +); + +expect( + TestUtils.isCompositeComponent(subject) +).toBe(true); +]]> + jr.z.testutils + jr - isCompositeComponent + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-is-dom-component.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-is-dom-component.sublime-snippet new file mode 100644 index 0000000..8fe2814 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-is-dom-component.sublime-snippet @@ -0,0 +1,11 @@ + + ); + +expect( + TestUtils.isDOMComponent(subject) +).toBe(true); +]]> + jr.z.testutils + jr - isDOMComponent + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-is-element-of-type.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-is-element-of-type.sublime-snippet new file mode 100644 index 0000000..761d0fa --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-is-element-of-type.sublime-snippet @@ -0,0 +1,15 @@ + + ; + } +}); + +expect( + TestUtils.isElementOfType(, MyComponent) +).toBe(true); +]]> + jr.z.testutils + jr - isElementOfType + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-is-element.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-is-element.sublime-snippet new file mode 100644 index 0000000..8b345fb --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-is-element.sublime-snippet @@ -0,0 +1,7 @@ + + )).toBe(true); +]]> + jr.z.testutils + jr - isElement + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-mock-component.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-mock-component.sublime-snippet new file mode 100644 index 0000000..a540b2b --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-mock-component.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.z.testutils + jr - mockComponent + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-render-into-document.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-render-into-document.sublime-snippet new file mode 100644 index 0000000..c7533f0 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-render-into-document.sublime-snippet @@ -0,0 +1,9 @@ + +
); + +console.log('You mounted a component tree with a ' + componentTree.tagName + ' at the root!'); +]]>
+ jr.z.testutils + jr - renderIntoDocument +
diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-scry-rendered-components-with-type.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-scry-rendered-components-with-type.sublime-snippet new file mode 100644 index 0000000..aa3c8ad --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-scry-rendered-components-with-type.sublime-snippet @@ -0,0 +1,35 @@ + + + +
+ +
+ ) + } +}); + +var Target = React.createClass({ + render () { + return
; + } +}); + +var componentTree = TestUtils.renderIntoDocument( + +); + +var allTargetComponents = TestUtils.scryRenderedComponentsWithType( + componentTree, + Target +); + +expect(allTargetComponents).toBeAn('array'); +expect(allTargetComponents.length).toBe(2); +]]> + jr.z.testutils + jr - scryRenderedComponentsWithType + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-scry-rendered-dom-components-with-class.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-scry-rendered-dom-components-with-class.sublime-snippet new file mode 100644 index 0000000..6a6af90 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-scry-rendered-dom-components-with-class.sublime-snippet @@ -0,0 +1,29 @@ + + +
+
+
+
+ ); + } +}); + +var componentTree = TestUtils.renderIntoDocument( + +); + +var allDOMComponentsWithMatchingClass = TestUtils.scryRenderedDOMComponentsWithClass( + componentTree, + 'target' +); + +expect(allDOMComponentsWithMatchingClass).toBeAn('array'); +expect(allDOMComponentsWithMatchingClass.length).toBe(2); +]]>
+ jr.tsrdcwclass + jr - scryRenderedDOMComponentsWithClass +
diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-scry-rendered-dom-components-with-tag.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-scry-rendered-dom-components-with-tag.sublime-snippet new file mode 100644 index 0000000..b4ea32e --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-scry-rendered-dom-components-with-tag.sublime-snippet @@ -0,0 +1,23 @@ + +
; + } +}); + +var componentTree = TestUtils.renderIntoDocument( + +); + +var allDivs = TestUtils.scryRenderedDOMComponentsWithTag( + componentTree, + 'DIV' +); + +expect(allDivs).toBeAn('array'); +expect(allDivs.length).toBe(2); +]]>
+ jr.z.testutils + jr - scryRenderedDOMComponentsWithTag +
diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-basic.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-basic.sublime-snippet new file mode 100644 index 0000000..5ed04b8 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-basic.sublime-snippet @@ -0,0 +1,17 @@ + + ); + +// 3. capture renderer output +var subject = renderer.getRenderOutput(); + +// 4. make assertions +expect(subject.type).toBe('div'); +]]> + jr.z.testutils + jr - Shallow rendering (basics) + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-child-count.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-child-count.sublime-snippet new file mode 100644 index 0000000..29dee15 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-child-count.sublime-snippet @@ -0,0 +1,17 @@ + + +); + +var subject = renderer.getRenderOutput(); + +var childCount = React.Children.count(subject.props.children); + +expect(childCount).toBe(3); // => true +]]> + jr.z.testutils + jr - Shallow rendering (child-count) + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-child-equality.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-child-equality.sublime-snippet new file mode 100644 index 0000000..b96dfa6 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-child-equality.sublime-snippet @@ -0,0 +1,21 @@ + + +
Thing 1
+
Thing 2
+ +); + +var subject = renderer.getRenderOutput(); + +expect(subject.props.children).toEqual([ +
Thing 1
, +
Thing 2
+]); // => true +]]>
+ jr.z.testutils + jr - Shallow rendering (child-equality) +
diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-events.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-events.sublime-snippet new file mode 100644 index 0000000..617d5bf --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-events.sublime-snippet @@ -0,0 +1,15 @@ + + ); + +var subject = renderer.getRenderOutput(); + +expect(spy.call.length).toEqual(1); // => true +]]> + jr.z.testutils + jr - Shallow rendering (events) + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-props.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-props.sublime-snippet new file mode 100644 index 0000000..fb0a86e --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-props.sublime-snippet @@ -0,0 +1,13 @@ + + ); + +var subject = renderer.getRenderOutput(); + +expect(subject.props.className).toBe('my-component'); // => true +]]> + jr.z.testutils + jr - Shallow rendering (props) + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-state-changes.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-state-changes.sublime-snippet new file mode 100644 index 0000000..e6faaeb --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-state-changes.sublime-snippet @@ -0,0 +1,22 @@ + + ); + +// test initial rendering +var result = renderer.getRenderOutput(); + +expect(result.props.children).toEqual(0); + + +// test post-click rendering +result.props.onClick(); + +var clickedResult = renderer.getRenderOutput(); + +expect(clickedResult.props.children).toEqual(1); +]]> + jr.z.testutils + jr - Shallow rendering (state changes) + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-type.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-type.sublime-snippet new file mode 100644 index 0000000..1d2fbaa --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-type.sublime-snippet @@ -0,0 +1,13 @@ + + ); + +var subject = renderer.getRenderOutput(); + +expect(subject.type).toBe('div'); // => true +]]> + jr.z.testutils + jr - Shallow rendering (type) + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-simulate-basic.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-simulate-basic.sublime-snippet new file mode 100644 index 0000000..c4f6532 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-simulate-basic.sublime-snippet @@ -0,0 +1,11 @@ + + +); + +TestUtils.Simulate.click(subject); +]]> + jr.z.testutils + jr - Simulate (basic) + diff --git a/snippets/js/libraries/react/test-utils/react-test-utils-simulate-with-data.sublime-snippet b/snippets/js/libraries/react/test-utils/react-test-utils-simulate-with-data.sublime-snippet new file mode 100644 index 0000000..81734aa --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-simulate-with-data.sublime-snippet @@ -0,0 +1,15 @@ + + +); + +TestUtils.Simulate.change(subject, { key: "Enter" }); +]]> + jr.z.testutils + jr - Simulate (with data) + diff --git a/snippets/js/libraries/react/top-level/README.md b/snippets/js/libraries/react/top-level/README.md new file mode 100644 index 0000000..6d04db3 --- /dev/null +++ b/snippets/js/libraries/react/top-level/README.md @@ -0,0 +1,68 @@ +## ReactJS Snippets + +### [jr.chcount] children.count + +```javascript +React.Children.count(this.props.children); +``` + +### [jr.chfeach] children.forEach + +```javascript +React.Children.forEach(this.props.children, (child, i) => { + ${1:console.log(child + ' at index: ' + i);} +}) +``` + +### [jr.chmap] children.map + +```javascript +React.Children.map(this.props.children, (child, i) => { + ${1} + return child; +}); +``` + +### [jr.clelement] cloneElement + +```javascript +React.cloneElement(${1:element}, ${2:props}, ${3:...children}); +``` + +### [jr.component] component + +```javascript +class ${1:MyComponent} extends React.Component { + render () { + return ${2}; + } +} +``` + +### [jr.cclass] createClass + +```javascript +var ${1:MyComponent} = React.createClass({ + render: function () { + return ${2}; + } +}); +``` + +### [jr.celement] createElement + +```javascript +React.createElement(${1:MyComponent}, ${2:props}, ${3:...children}); +``` + +### [jr.cfactory] createFactory + +```javascript +React.createFactory(${1:MyComponentClass}); +``` + +### [jr.ivelement] isValidElement + +```javascript +React.isValidElement(${1:MyComponent}); +``` diff --git a/snippets/js/libraries/react/top-level/react-top-level-children-count.sublime-snippet b/snippets/js/libraries/react/top-level/react-top-level-children-count.sublime-snippet new file mode 100644 index 0000000..e6249b3 --- /dev/null +++ b/snippets/js/libraries/react/top-level/react-top-level-children-count.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.chcount + jr - children.count + diff --git a/snippets/js/libraries/react/top-level/react-top-level-children-for-each.sublime-snippet b/snippets/js/libraries/react/top-level/react-top-level-children-for-each.sublime-snippet new file mode 100644 index 0000000..af2e7e2 --- /dev/null +++ b/snippets/js/libraries/react/top-level/react-top-level-children-for-each.sublime-snippet @@ -0,0 +1,9 @@ + + { + ${1:console.log(child + ' at index: ' + i);} +}) +]]> + jr.chfeach + jr - children.forEach + diff --git a/snippets/js/libraries/react/top-level/react-top-level-children-map.sublime-snippet b/snippets/js/libraries/react/top-level/react-top-level-children-map.sublime-snippet new file mode 100644 index 0000000..ae06fc6 --- /dev/null +++ b/snippets/js/libraries/react/top-level/react-top-level-children-map.sublime-snippet @@ -0,0 +1,10 @@ + + { + ${1} + return child; +}); +]]> + jr.chmap + jr - children.map + diff --git a/snippets/js/libraries/react/top-level/react-top-level-clone-element.sublime-snippet b/snippets/js/libraries/react/top-level/react-top-level-clone-element.sublime-snippet new file mode 100644 index 0000000..fda2f41 --- /dev/null +++ b/snippets/js/libraries/react/top-level/react-top-level-clone-element.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.clelement + jr - cloneElement + diff --git a/snippets/js/libraries/react/top-level/react-top-level-component.sublime-snippet b/snippets/js/libraries/react/top-level/react-top-level-component.sublime-snippet new file mode 100644 index 0000000..2b1d2d2 --- /dev/null +++ b/snippets/js/libraries/react/top-level/react-top-level-component.sublime-snippet @@ -0,0 +1,11 @@ + + + jr.component + jr - component + diff --git a/snippets/js/libraries/react/top-level/react-top-level-create-class.sublime-snippet b/snippets/js/libraries/react/top-level/react-top-level-create-class.sublime-snippet new file mode 100644 index 0000000..87ac8e8 --- /dev/null +++ b/snippets/js/libraries/react/top-level/react-top-level-create-class.sublime-snippet @@ -0,0 +1,11 @@ + + + jr.cclass + jr - createClass + diff --git a/snippets/js/libraries/react/top-level/react-top-level-create-element.sublime-snippet b/snippets/js/libraries/react/top-level/react-top-level-create-element.sublime-snippet new file mode 100644 index 0000000..887632a --- /dev/null +++ b/snippets/js/libraries/react/top-level/react-top-level-create-element.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.celement + jr - createElement + diff --git a/snippets/js/libraries/react/top-level/react-top-level-create-factory.sublime-snippet b/snippets/js/libraries/react/top-level/react-top-level-create-factory.sublime-snippet new file mode 100644 index 0000000..1a2689b --- /dev/null +++ b/snippets/js/libraries/react/top-level/react-top-level-create-factory.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.cfactory + jr - createFactory + diff --git a/snippets/js/libraries/react/top-level/react-top-level-is-valid-element.sublime-snippet b/snippets/js/libraries/react/top-level/react-top-level-is-valid-element.sublime-snippet new file mode 100644 index 0000000..4463e1a --- /dev/null +++ b/snippets/js/libraries/react/top-level/react-top-level-is-valid-element.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.ivelement + jr - isValidElement + diff --git a/snippets/js/patterns/README.md b/snippets/js/patterns/README.md new file mode 100644 index 0000000..12eee18 --- /dev/null +++ b/snippets/js/patterns/README.md @@ -0,0 +1,26 @@ +# JavaScript Patterns Snippets + +- [Design patterns](design-patterns/) + - Command + - Constructor + - Decorator + - Facade + - Factory + - Flyweight + - Mediator + - Mixin + - Module + - Observer + - Prototype + - Revealing Module + - Singleton +- [UMD](umd/) + - AMD Web Global + - AMD Web + - CommonJS Adapter + - CommonJS Strict Global + - CommonJS Strict + - jQuery Plugin + - Node Adapter + - Return Exports Global + - Return Exports diff --git a/snippets/js/patterns/design-patterns/README.md b/snippets/js/patterns/design-patterns/README.md new file mode 100644 index 0000000..0e8df75 --- /dev/null +++ b/snippets/js/patterns/design-patterns/README.md @@ -0,0 +1,299 @@ +# JavaScript Design Patterns Snippets + +## Prefix `jdp.*` + +### [jdp.command] Command + +```javascript +(function(){ + + var ${1:carManager} = { + + ${2:requestInfo}: function( ${2:model}, ${3:id} ){ + return ${4:"The information for " + ${2:model} + " with ID " + ${3:id} + " is foobar"}; + }, + + ${5:buyVehicle}: function( ${5:model}, ${6:id} ){ + return ${7:"You have successfully purchased Item " + ${6:id} + ", a " + ${5:model}}; + }, + + ${8:arrangeViewing}: function( ${9:model}, ${10:id} ){ + return ${11:"You have successfully booked a viewing of " + ${9:model} + " ( " + ${10:id} + " ) "}; + } + + }; + + ${1:carManager}.${12:execute} = function ( ${13:name} ) { + return ${1:carManager}[${13:name}] && ${1:carManager}[${13:name}].apply( ${1:carManager}, [].slice.call(arguments, 1) ); + }; + + ${1:carManager}.${12:execute}( "${14:buyVehicle}", "${15:Ford Escort}", "${16:453543}" ); + +})(); +``` + +### [jdp.constructor] Contructor + +```javascript +var ${1:ConstructorName} = (function() { + 'use strict'; + function ${1:ConstructorName}(${2:args}) { + // enforces new + if (!(this instanceof ${1:ConstructorName})) { + return new ${1:ConstructorName}(${2:args}); + } + ${3:// constructor body + } + } + ${4:${1:ConstructorName}.prototype.${5:methodName} = function(${6:args}) \{ + ${7:// method body + } + \}}; + return ${1:ConstructorName}; +}()); +``` + +### [jdp.decorator] Decorator + +```javascript +function ${1:vehicle}( ${2:vehicleType} ){ + this.${2:vehicleType} = ${2:vehicleType} || '${3:car}', + this.${4:model} = '${5:default}', + this.${6:license} = '${7:00000-000}' +} + +var ${8:testInstance} = new ${1:vehicle}('${3:car}'); +var ${9:truck} = new ${1:vehicle}('truck'); + +${9:truck}.${10:setModel} = function( ${11:modelName} ){ + this.${4:model} = ${11:modelName}; +} +${9:truck}.${12:setColor} = function( ${13:color} ){ + this.${13:color} = ${13:color}; +} + +${9:truck}.${10:setModel}('${14:CAT}'); +${9:truck}.${12:setColor}('${15:blue}'); + +var ${16:secondInstance} = new ${1:vehicle}('${3:car}'); +``` + +### [jdp.facade] Facade + +```javascript +var ${1:MyModule} = ( function( window, undefined ) { + + function ${1:MyModule}() { + + function ${2:someMethod}() { + ${3:alert( 'some method' );} + } + + function ${4:someOtherMethod}() { + ${5:alert( 'some other method' );} + } + + return { + ${2:someMethod} : function() { + ${2:someMethod}(); + } + }; + } + +} )( window ); +``` + +### [jdp.factory] Factory + +```javascript +function ${1:Animal}(${2:name}) { + ${9} +} + +function ${3:Rabbit}(${2:name}) { + var ${4:rabbit} = ${1:Animal}(${2:name}) + + var ${5:parentRun} = ${4:rabbit}.${6:run} + + ${4:rabbit}.${7:jump} = function() { + ${10:alert(${2:name} + " jumped!");} + } + + ${4:rabbit}.${6:run} = function() { + ${5:parentRun}.call(this) + ${11:alert("fast");} + } + + return ${4:rabbit} +} + +${4:rabbit} = ${3:Rabbit}("${8:rab}"); +``` + +### [jdp.flyweight] Flyweight + +```javascript +${0:'use strict';} + +var ${1:Flyweight} = function (${2:intrinisicState}) { + this.${2:intrinisicState} = ${2:intrinisicState}; +}; + +${1:Flyweight}.prototype.operation = function (${4:extrinsicState}) { + ${3:// Perform some action using intrinsic and extrinsic state} + return this.${2:intrinisicState} * ${4:extrinsicState}; +}; + +module.exports = ${1:Flyweight}; +``` + +### [jdp.mediator] Mediator + +```javascript +var mediator = (function(){ + var subscribe = function(channel, fn){ + if(!mediator.channels[channel]) mediator.channels[channel] = []; + mediator.channels[channel].push({ context : this, callback : fn }); + return this; + }; + var publish = function(channel){ + if(!mediator.channels[channel]) return false; + var args = Array.prototype.slice.call(arguments, 1); + for(var i = 0, l = mediator.channels[channel].length; i < l; i++){ + var subscription = mediator.channels[channel][i]; + subscription.callback.apply(subscription.context.args); + }; + return this; + }; + return { + channels : {}, + publish : publish, + subscribe : subscribe, + installTo : function(obj){ + obj.subscribe = subscribe; + obj.publish = publish; + } + }; +}());${1} +``` + +### [jdp.mixin] Mixin + +```javascript +var ${1:Circle} = function() {}; +${1:Circle}.prototype = { + ${2:area}: function() { + ${3:return Math.PI * this.radius * this.radius}; + }, + ${4:grow}: function() { + ${5:this.radius++;} + }, + ${6:shrink}: function() { + ${7:this.radius--;} + } +};${8} +``` + +### [jdp.module] Module + +```javascript +var ${1:moduleName} = (function() { + 'use strict'; + var ${1:moduleName} = { + init: { + $2 + } + }; + return ${1:moduleName}; +}()); +``` + +### [jdp.observer] Observer + +```javascript +var ${1:Publisher} = { + ${2:subscribers}: { + ${6:any}: [] + }, + + ${3:subscribe}: function(fn, type) { + + type = type || "${6:any}"; + if (typeof this.${2:subscribers}[type] === "undefined") { + this.${2:subscribers}[type] = []; + } + + this.${2:subscribers}[type].push(fn); + }, + + ${4:unsubscribe}: function(fn, type) { + if (typeof this.${2:subscribers}[type] !== undefined) { + this.${2:subscribers}[type].pull(fn); + } + }, + + ${5:publish}: function(type, obj) { + var ${2:subscribers} = this.${2:subscribers}[type]; + + for (var i = 0, max = ${2:subscribers}.length; i < max; i++) { + ${2:subscribers}[i](obj); + } + } +}; + + +${7://var paper = Object.create(${1:Publisher}); +//var joe = { +// shout : function(obj){ +// console.log("oh i got issue" + obj); +// } +//}; + +//paper.${3:subscribe}(joe.shout, "new issue"); +//paper.${5:publish}("new issue", 27);} +``` + +### [jdp.prototype] Prototype + +```javascript +function ${1:Car}() { + // constructor... +} +${2:${1:Car}.prototype.${3:drive} = function () \{ + ${4: // body... + } +\};} +return ${1:Car}; +${0} +``` + +### [jdp.rmodule] Revealing Module + +```javascript +var ${1:revealingModuleName} = (function() { + 'use strict'; + function ${2:methodName}() { + ${3} + } + return { + ${2:methodName}:${2:methodName} + }; +}()); +``` + +### [jdp.singleton] Singleton + +```javascript +var ${1:name} = (function() { + 'use strict'; + var instance; + ${1:name} = function(${2:args}) { + if (instance) { + return instance; + } + instance = this; + ${3:// your code goes here + } + }; + return ${1:name}; +``` diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-command.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-command.sublime-snippet new file mode 100644 index 0000000..32b66c1 --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-command.sublime-snippet @@ -0,0 +1,31 @@ + + + jdp.command + jdp - Command + diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-constructor.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-constructor.sublime-snippet new file mode 100644 index 0000000..1174f19 --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-constructor.sublime-snippet @@ -0,0 +1,20 @@ + + + jdp.constructor + jdp - Constructor + diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-decorator.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-decorator.sublime-snippet new file mode 100644 index 0000000..9f8ab10 --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-decorator.sublime-snippet @@ -0,0 +1,26 @@ + + + jdp.decorator + jdp - Decorator + diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-facade.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-facade.sublime-snippet new file mode 100644 index 0000000..b4d2468 --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-facade.sublime-snippet @@ -0,0 +1,26 @@ + + + jdp.facade + jdp - Facade + diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-factory.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-factory.sublime-snippet new file mode 100644 index 0000000..7039336 --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-factory.sublime-snippet @@ -0,0 +1,28 @@ + + + jdp.factory + jdp - Factory + diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-flyweight.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-flyweight.sublime-snippet new file mode 100644 index 0000000..e34d30e --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-flyweight.sublime-snippet @@ -0,0 +1,18 @@ + + + jdp.flyweight + jdp - Flyweight + diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-mediator.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-mediator.sublime-snippet new file mode 100644 index 0000000..d334868 --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-mediator.sublime-snippet @@ -0,0 +1,31 @@ + + + jdp.mediator + jdp - Mediator + diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-mixin.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-mixin.sublime-snippet new file mode 100644 index 0000000..1c78143 --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-mixin.sublime-snippet @@ -0,0 +1,18 @@ + + + jdp.mixin + jdp - Mixin + diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-module.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-module.sublime-snippet new file mode 100644 index 0000000..f790ad6 --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-module.sublime-snippet @@ -0,0 +1,15 @@ + + + jdp.module + jdp - Module + diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-observer.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-observer.sublime-snippet new file mode 100644 index 0000000..820c9b2 --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-observer.sublime-snippet @@ -0,0 +1,46 @@ + + + jdp.observer + jdp - Observer + diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-prototype.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-prototype.sublime-snippet new file mode 100644 index 0000000..69edd7c --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-prototype.sublime-snippet @@ -0,0 +1,14 @@ + + + jdp.prototype + jdp - Prototype + diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-revealing-module.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-revealing-module.sublime-snippet new file mode 100644 index 0000000..d3344e5 --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-revealing-module.sublime-snippet @@ -0,0 +1,15 @@ + + + jdp.rmodule + jdp - Revealing Module + diff --git a/snippets/js/patterns/design-patterns/js-design-patterns-singleton.sublime-snippet b/snippets/js/patterns/design-patterns/js-design-patterns-singleton.sublime-snippet new file mode 100644 index 0000000..032923d --- /dev/null +++ b/snippets/js/patterns/design-patterns/js-design-patterns-singleton.sublime-snippet @@ -0,0 +1,17 @@ + + + jdp.singleton + jdp - Singleton + diff --git a/snippets/js/patterns/umd/README.md b/snippets/js/patterns/umd/README.md new file mode 100644 index 0000000..0b93aad --- /dev/null +++ b/snippets/js/patterns/umd/README.md @@ -0,0 +1,412 @@ +# Universal Module Definition - JavaScript Snippets + +## Prefix `jumd.*` + +### [jumd.awg] AMD Web Global + +```javascript +${1:// Uses AMD or browser globals to create a module. This example creates a +// global even when AMD is used. This is useful if you have some scripts +// that are loaded by an AMD loader, but they still want access to globals. +// If you do not need to export a global for the AMD case, see amdWeb.js. + +// If you want something that will also work in Node, and still export a +// global in the AMD case, see returnExportsGlobal.js +// If you want to support other stricter CommonJS environments, +// or if you need to create a circular dependency, see commonJsStrictGlobal.js + +// Defines a module "amdWebGlobal" that depends another module called "b". +// Note that the name of the module is implied by the file name. It is best +// if the file name and the exported global have matching names. + +// If the 'b' module also uses this type of boilerplate, then +// in the browser, it will create a global .b that is used below. +} + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + ${2:// AMD. Register as an anonymous module. + } + define(['b'], function (b) { + ${3:// Also create a global in case some scripts + // that are loaded still are looking for + // a global even when an AMD loader is in use. + } + return (root.amdWebGlobal = factory(b)); + }); + } else { + ${4:// Browser globals + } + root.amdWebGlobal = factory(root.b); + } +}(this, function (b) { + ${5://use b in some fashion. + + // Just return a value to define the module export. + // This example returns an object, but the module + // can return a function as the exported value. + } + return {}; +}));${6} +``` + +### [jumd.aw] AMD Web + +```javascript +${1:// Uses AMD or browser globals to create a module. + +// If you want something that will also work in Node, see returnExports.js +// If you want to support other stricter CommonJS environments, +// or if you need to create a circular dependency, see commonJsStrict.js + +// Defines a module "amdWeb" that depends on another module called "b". +// Note that the name of the module is implied by the file name. It is best +// if the file name and the exported global have matching names. + +// If the 'b' module also uses this type of boilerplate, then +// in the browser, it will create a global .b that is used below. + +// If you do not want to support the browser global path, then you +// can remove the `root` use and the passing of `this` as the first arg to +// the top function. +} + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + ${2:// AMD. Register as an anonymous module. + } + define(['b'], factory); + } else { + ${3:// Browser globals + } + root.amdWeb = factory(root.b); + } +}(this, function (b) { + ${4://use b in some fashion. + + // Just return a value to define the module export. + // This example returns an object, but the module + // can return a function as the exported value. + } + return {}; +}));${5} +``` + +### [jumd.ca] CommonJS Adapter + +```javascript +${1:// Defines a module that works in CommonJS and AMD. + +// This version can be used as common boilerplate for a library module +// that you only want to expose to CommonJS and AMD loaders. It will not work +// well for defining browser globals. + +// If you only want to target Node and AMD or a CommonJS environment that +// supports assignment to module.exports and you are not defining a module +// that has a circular dependency, see nodeAdapter.js + +// Help Node out by setting up define. +} +if (typeof exports === 'object' && typeof exports.nodeName !== 'string' && typeof define !== 'function') { + var define = function (factory) { + factory(require, exports, module); + }; +} + +define(function (require, exports, module) { + var b = require('b'); + + ${2:// Only attach properties to the exports object to define + // the module's properties. + } + exports.action = function () {}; +});${3} +``` + +### [jumd.csg] CommonJS Strict Global + +```javascript +${1:// Uses CommonJS, AMD or browser globals to create a module. This example +// creates a global even when AMD is used. This is useful if you have some +// scripts that are loaded by an AMD loader, but they still want access to +// globals. If you do not need to export a global for the AMD case, see +// commonjsStrict.js. + +// If you just want to support Node, or other CommonJS-like environments that +// support module.exports, and you are not creating a module that has a +// circular dependency, then see returnExportsGlobal.js instead. It will allow +// you to export a function as the module value. + +// Defines a module "commonJsStrictGlobal" that depends another module called +// "b". Note that the name of the module is implied by the file name. It is +// best if the file name and the exported global have matching names. + +// If the 'b' module also uses this type of boilerplate, then +// in the browser, it will create a global .b that is used below. +} + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + ${2:// AMD. Register as an anonymous module. + } + define(['exports', 'b'], function (exports, b) { + factory((root.commonJsStrictGlobal = exports), b); + }); + } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') { + ${3:// CommonJS + } + factory(exports, require('b')); + } else { + ${4:// Browser globals + } + factory((root.commonJsStrictGlobal = {}), root.b); + } +}(this, function (exports, b) { + ${5://use b in some fashion. + + // attach properties to the exports object to define + // the exported module properties. + } + exports.action = function () {}; +}));${6} +``` + +### [jumd.cs] CommonJS Strict + +```javascript +${1:// Uses CommonJS, AMD or browser globals to create a module. + +// If you just want to support Node, or other CommonJS-like environments that +// support module.exports, and you are not creating a module that has a +// circular dependency, then see returnExports.js instead. It will allow +// you to export a function as the module value. + +// Defines a module "commonJsStrict" that depends another module called "b". +// Note that the name of the module is implied by the file name. It is best +// if the file name and the exported global have matching names. + +// If the 'b' module also uses this type of boilerplate, then +// in the browser, it will create a global .b that is used below. + +// If you do not want to support the browser global path, then you +// can remove the `root` use and the passing `this` as the first arg to +// the top function. +} + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + ${2:// AMD. Register as an anonymous module. + } + define(['exports', 'b'], factory); + } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') { + ${3:// CommonJS + } + factory(exports, require('b')); + } else { + ${4:// Browser globals + } + factory((root.commonJsStrict = {}), root.b); + } +}(this, function (exports, b) { + ${5://use b in some fashion. + + // attach properties to the exports object to define + // the exported module properties. + } + exports.action = function () {}; +}));${6} +``` + +### [jumd.jp] jQuery plugin + +```javascript +${1:// Uses CommonJS, AMD or browser globals to create a jQuery plugin. +} + +(function (factory) { + if (typeof define === 'function' && define.amd) { + ${2:// AMD. Register as an anonymous module. + } + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + ${3:// Node/CommonJS + } + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + ${4:// require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + } + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + factory(jQuery); + return jQuery; + }; + } else { + ${5:// Browser globals + } + factory(jQuery); + } +}(function ($) { + $.fn.jqueryPlugin = function () { return true; }; +}));${6} +``` + +### [jumd.na] Node Adapter + +```javascript +${1:// Defines a module that works in Node and AMD. + +// This version can be used as common boilerplate for a library module +// that you only want to expose to Node and AMD loaders. It will not work +// well for defining browser globals. + +// If you need a version of this file that works CommonJS-like environments +// that do not support module.exports or if you want to define a module +// with a circular dependency, see commonjsAdapter.js +} + +(function(define) { + + define(function (require, exports, module) { + var b = require('b'); + + return function () {}; + }); + +}( ${2:// Help Node out by setting up define. +} + typeof module === 'object' && module.exports && typeof define !== 'function' ? + function (factory) { module.exports = factory(require, exports, module); } : + define +));${3} +``` + +### [jumd.reg] Return Exports Global + +```javascript +${1:// Uses Node, AMD or browser globals to create a module. This example creates +// a global even when AMD is used. This is useful if you have some scripts +// that are loaded by an AMD loader, but they still want access to globals. +// If you do not need to export a global for the AMD case, +// see returnExports.js. + +// If you want something that will work in other stricter CommonJS environments, +// or if you need to create a circular dependency, see commonJsStrictGlobal.js + +// Defines a module "returnExportsGlobal" that depends another module called +// "b". Note that the name of the module is implied by the file name. It is +// best if the file name and the exported global have matching names. + +// If the 'b' module also uses this type of boilerplate, then +// in the browser, it will create a global .b that is used below. +} + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + ${2:// AMD. Register as an anonymous module. + } + define(['b'], function (b) { + return (root.returnExportsGlobal = factory(b)); + }); + } else if (typeof module === 'object' && module.exports) { + ${3:// Node. Does not work with strict CommonJS, but + // only CommonJS-like enviroments that support module.exports, + // like Node. + } + module.exports = factory(require('b')); + } else { + ${4:// Browser globals + } + root.returnExportsGlobal = factory(root.b); + } +}(this, function (b) { + ${5://use b in some fashion. + + // Just return a value to define the module export. + // This example returns an object, but the module + // can return a function as the exported value. + } + return {}; +}));${6} +``` + +### [jumd.re] Return Exports + +```javascript +${1:// Uses Node, AMD or browser globals to create a module. + +// If you want something that will work in other stricter CommonJS environments, +// or if you need to create a circular dependency, see commonJsStrict.js + +// Defines a module "returnExports" that depends another module called "b". +// Note that the name of the module is implied by the file name. It is best +// if the file name and the exported global have matching names. + +// If the 'b' module also uses this type of boilerplate, then +// in the browser, it will create a global .b that is used below. + +// If you do not want to support the browser global path, then you +// can remove the `root` use and the passing `this` as the first arg to +// the top function. +} + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + ${2:// AMD. Register as an anonymous module. + } + define(['b'], factory); + } else if (typeof module === 'object' && module.exports) { + ${3:// Node. Does not work with strict CommonJS, but + // only CommonJS-like environments that support module.exports, + // like Node. + } + module.exports = factory(require('b')); + } else { + ${4:// Browser globals (root is window) + } + root.returnExports = factory(root.b); + } +}(this, function (b) { + ${5://use b in some fashion. + + // Just return a value to define the module export. + // This example returns an object, but the module + // can return a function as the exported value. + } + return {}; +})); + + +${6:// if the module has no dependencies, the above pattern can be simplified to +} +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + ${7:// AMD. Register as an anonymous module. + } + define([], factory); + } else if (typeof module === 'object' && module.exports) { + ${8:// Node. Does not work with strict CommonJS, but + // only CommonJS-like environments that support module.exports, + // like Node. + } + module.exports = factory(); + } else { + ${9:// Browser globals (root is window) + } + root.returnExports = factory(); + } +}(this, function () { + ${10:// Just return a value to define the module export. + // This example returns an object, but the module + // can return a function as the exported value. + } + return {}; +}));${11} +``` diff --git a/snippets/js/patterns/umd/js-umd-amd-web-global.sublime-snippet b/snippets/js/patterns/umd/js-umd-amd-web-global.sublime-snippet new file mode 100644 index 0000000..13793fc --- /dev/null +++ b/snippets/js/patterns/umd/js-umd-amd-web-global.sublime-snippet @@ -0,0 +1,44 @@ + + + jumd.awg + jumd - AMD Web Global + diff --git a/snippets/js/patterns/umd/js-umd-amd-web.sublime-snippet b/snippets/js/patterns/umd/js-umd-amd-web.sublime-snippet new file mode 100644 index 0000000..7de8f7a --- /dev/null +++ b/snippets/js/patterns/umd/js-umd-amd-web.sublime-snippet @@ -0,0 +1,39 @@ + + + jumd.aw + jumd - AMD Web + diff --git a/snippets/js/patterns/umd/js-umd-commonjs-adapter.sublime-snippet b/snippets/js/patterns/umd/js-umd-commonjs-adapter.sublime-snippet new file mode 100644 index 0000000..becb0b9 --- /dev/null +++ b/snippets/js/patterns/umd/js-umd-commonjs-adapter.sublime-snippet @@ -0,0 +1,30 @@ + + + jumd.ca + jumd - CommonJS Adapter + diff --git a/snippets/js/patterns/umd/js-umd-commonjs-strict-global.sublime-snippet b/snippets/js/patterns/umd/js-umd-commonjs-strict-global.sublime-snippet new file mode 100644 index 0000000..1c2b23d --- /dev/null +++ b/snippets/js/patterns/umd/js-umd-commonjs-strict-global.sublime-snippet @@ -0,0 +1,44 @@ + + + jumd.csg + jumd - CommonJS Strict Global + diff --git a/snippets/js/patterns/umd/js-umd-commonjs-strict.sublime-snippet b/snippets/js/patterns/umd/js-umd-commonjs-strict.sublime-snippet new file mode 100644 index 0000000..69438f4 --- /dev/null +++ b/snippets/js/patterns/umd/js-umd-commonjs-strict.sublime-snippet @@ -0,0 +1,42 @@ + + + jumd.cs + jumd - CommonJS Strict + diff --git a/snippets/js/patterns/umd/js-umd-jquery-plugin.sublime-snippet b/snippets/js/patterns/umd/js-umd-jquery-plugin.sublime-snippet new file mode 100644 index 0000000..0606c70 --- /dev/null +++ b/snippets/js/patterns/umd/js-umd-jquery-plugin.sublime-snippet @@ -0,0 +1,37 @@ + + + jumd.jp + jumd - jQuery plugin + diff --git a/snippets/js/patterns/umd/js-umd-node-adapter.sublime-snippet b/snippets/js/patterns/umd/js-umd-node-adapter.sublime-snippet new file mode 100644 index 0000000..2131401 --- /dev/null +++ b/snippets/js/patterns/umd/js-umd-node-adapter.sublime-snippet @@ -0,0 +1,29 @@ + + + jumd.na + jumd - Node Adapter + diff --git a/snippets/js/patterns/umd/js-umd-return-exports-global.sublime-snippet b/snippets/js/patterns/umd/js-umd-return-exports-global.sublime-snippet new file mode 100644 index 0000000..4566d87 --- /dev/null +++ b/snippets/js/patterns/umd/js-umd-return-exports-global.sublime-snippet @@ -0,0 +1,45 @@ + + + jumd.reg + jumd - Return Exports Global + diff --git a/snippets/js/patterns/umd/js-umd-return-exports.sublime-snippet b/snippets/js/patterns/umd/js-umd-return-exports.sublime-snippet new file mode 100644 index 0000000..61058d8 --- /dev/null +++ b/snippets/js/patterns/umd/js-umd-return-exports.sublime-snippet @@ -0,0 +1,65 @@ + + + jumd.re + jumd - Return Exports + diff --git a/snippets/js/tests/README.md b/snippets/js/tests/README.md new file mode 100644 index 0000000..4fb464c --- /dev/null +++ b/snippets/js/tests/README.md @@ -0,0 +1,103 @@ +# Tests JavaScript Snippets + +- [Common](common/) + - afterEach + - after + - beforeEach + - before + - describe + - it +- [Chai](chai/) + - Assert + - equal + - lengthOf + - typeOf + - Expect + - to.be.a + - to.equal + - to.have.length + - to.have.property + - Should + - be.a + - equal + - have.length + - have.property +- [Jasmine](jasmine/) + - Expect + - toBeCloseTo + - toBeContain + - toBeDefined + - toBeFalsy + - toBeGreaterThan + - toBeLessThan + - toBeNaN + - toBeNull + - toBeTruthy + - toBeUndefined + - toBe + - toEqual + - toHaveBeenCalledTimes + - toHaveBeenCalledWith + - toHaveBeenCalled + - toMatch + - toThrowError + - toThrow +- [Mocha](mocha/) + - config + - globals + - grep + - growl + - ignoreLeaks + - invert + - reporter + - run + - setup + - ui +- [Node](node/) + - assert + - ok + - deepEqual + - deepStrictEqual + - doesNotThrow + - equal + - fail + - ifError + - notDeepEqual + - notDeepStrictEqual + - notEqual + - notStrictEqual + - strictEqual + - throws +- [QUnit](qunit/) + - begin + - config + - done + - dump.parse + - expect + - extend + - log + - moduleDone + - moduleStart + - module + - only + - push + - skip + - stack + - testDone + - testStart + - test + - Assert + - async + - deepEqual + - equal + - notDeepEqual + - notEqual + - notOk + - notPropEqual + - notStrictEqual + - ok + - propEqual + - strictEqual + - throws +- [Sinon](sinon/) + - diff --git a/snippets/js/tests/chai/README.md b/snippets/js/tests/chai/README.md new file mode 100644 index 0000000..ffba503 --- /dev/null +++ b/snippets/js/tests/chai/README.md @@ -0,0 +1,69 @@ +# Chai JavaScript Snippets + +## Prefix `tc.*` + +### [tc.a.e] equal + +```javascript +assert.equal(${1:actual}, ${1:expected} ${2:, message}); +``` + +### [tc.a.lo] lengthOf + +```javascript +assert.lengthOf(${1:actual}, ${1:expected} ${2:, message}); +``` + +### [tc.a.to] typeOf + +```javascript +assert.typeOf(${1:actual}, ${1:expected} ${2:, message}); +``` + +### [tc.e.tba] to.be.a + +```javascript +expect(${1}).to.be.a(${2}); +``` + +### [tc.e.te] to.equal + +```javascript +expect(${1}).to.equal(${2}); +``` + +### [tc.e.thl] to.have.length + +```javascript +expect(${1}).to.have.length(${2}); +``` + +### [tc.e.thp] to.have.property + +```javascript +expect(${1}).to.have.property(${2}).with.length(${3}); +``` + +### [tc.s.ba] be.a + +```javascript +${1}.should.be.a(${2}); +``` + +### [tc.s.e] equal + +```javascript +${1}.should.equal(${2}); +``` + +### [tc.s.hl] have.length + +```javascript +${1}.should.have.length(${2}); +``` + +### [tc.s.hp] have.property + +```javascript +${1}.should.have.property(${2}).with.length(${3}); +``` diff --git a/snippets/js/tests/chai/bdd-chai-expect-to-be-a.sublime-snippet b/snippets/js/tests/chai/bdd-chai-expect-to-be-a.sublime-snippet new file mode 100644 index 0000000..5bd7c8f --- /dev/null +++ b/snippets/js/tests/chai/bdd-chai-expect-to-be-a.sublime-snippet @@ -0,0 +1,7 @@ + + + tc.e.tba + tc - Expect to.be.a + diff --git a/snippets/js/tests/chai/bdd-chai-expect-to-equal.sublime-snippet b/snippets/js/tests/chai/bdd-chai-expect-to-equal.sublime-snippet new file mode 100644 index 0000000..c6dfd3b --- /dev/null +++ b/snippets/js/tests/chai/bdd-chai-expect-to-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tc.e.te + tc - Expect to.equal + diff --git a/snippets/js/tests/chai/bdd-chai-expect-to-have-length.sublime-snippet b/snippets/js/tests/chai/bdd-chai-expect-to-have-length.sublime-snippet new file mode 100644 index 0000000..415beea --- /dev/null +++ b/snippets/js/tests/chai/bdd-chai-expect-to-have-length.sublime-snippet @@ -0,0 +1,7 @@ + + + tc.e.thl + tc - Expect to.have.length + diff --git a/snippets/js/tests/chai/bdd-chai-expect-to-have-property.sublime-snippet b/snippets/js/tests/chai/bdd-chai-expect-to-have-property.sublime-snippet new file mode 100644 index 0000000..d497b1e --- /dev/null +++ b/snippets/js/tests/chai/bdd-chai-expect-to-have-property.sublime-snippet @@ -0,0 +1,7 @@ + + + tc.e.thp + tc - Expect to.have.property + diff --git a/snippets/js/tests/chai/bdd-chai-should-be-a.sublime-snippet b/snippets/js/tests/chai/bdd-chai-should-be-a.sublime-snippet new file mode 100644 index 0000000..3e33c4b --- /dev/null +++ b/snippets/js/tests/chai/bdd-chai-should-be-a.sublime-snippet @@ -0,0 +1,7 @@ + + + tc.s.ba + tc - Should be.a + diff --git a/snippets/js/tests/chai/bdd-chai-should-equal.sublime-snippet b/snippets/js/tests/chai/bdd-chai-should-equal.sublime-snippet new file mode 100644 index 0000000..dea741c --- /dev/null +++ b/snippets/js/tests/chai/bdd-chai-should-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tc.s.e + tc - Should equal + diff --git a/snippets/js/tests/chai/bdd-chai-should-have-length.sublime-snippet b/snippets/js/tests/chai/bdd-chai-should-have-length.sublime-snippet new file mode 100644 index 0000000..5ad7366 --- /dev/null +++ b/snippets/js/tests/chai/bdd-chai-should-have-length.sublime-snippet @@ -0,0 +1,7 @@ + + + tc.s.hl + tc - Should have.length + diff --git a/snippets/js/tests/chai/bdd-chai-should-have-property.sublime-snippet b/snippets/js/tests/chai/bdd-chai-should-have-property.sublime-snippet new file mode 100644 index 0000000..204de14 --- /dev/null +++ b/snippets/js/tests/chai/bdd-chai-should-have-property.sublime-snippet @@ -0,0 +1,7 @@ + + + tc.s.hp + tc - Should have.property + diff --git a/snippets/js/tests/chai/tdd-chai-assert-equal.sublime-snippet b/snippets/js/tests/chai/tdd-chai-assert-equal.sublime-snippet new file mode 100644 index 0000000..6b15d46 --- /dev/null +++ b/snippets/js/tests/chai/tdd-chai-assert-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tc.a.e + tc - Assert equal + diff --git a/snippets/js/tests/chai/tdd-chai-assert-length-of.sublime-snippet b/snippets/js/tests/chai/tdd-chai-assert-length-of.sublime-snippet new file mode 100644 index 0000000..3d03cbf --- /dev/null +++ b/snippets/js/tests/chai/tdd-chai-assert-length-of.sublime-snippet @@ -0,0 +1,7 @@ + + + tc.a.lo + tc - Assert lengthOf + diff --git a/snippets/js/tests/chai/tdd-chai-assert-type-of.sublime-snippet b/snippets/js/tests/chai/tdd-chai-assert-type-of.sublime-snippet new file mode 100644 index 0000000..65d3cfe --- /dev/null +++ b/snippets/js/tests/chai/tdd-chai-assert-type-of.sublime-snippet @@ -0,0 +1,7 @@ + + + tc.a.to + tc - Assert typeOf + diff --git a/snippets/js/tests/common/README.md b/snippets/js/tests/common/README.md new file mode 100644 index 0000000..b6d5bf5 --- /dev/null +++ b/snippets/js/tests/common/README.md @@ -0,0 +1,51 @@ +# Tests Common Snippets + +## Prefix `t.*` + +### [t.aftereach] afterEach + +```javascript +afterEach(function() { + ${1} +}); +``` + +### [t.after] after + +```javascript +after(function() { + ${1} +}); +``` + +### [t.beforeeach] beforeEach + +```javascript +beforeEach(${1:'some description', }function${2: namedFun}() { + ${3:beforeEach hook} +}); +``` + +### [t.before] before + +```javascript +before(function() { + ${1} +}); +``` + +### [t.describe] describe + +```javascript +describe("$1", function() { + $2 +}); +``` + +### [t.it] it + +```javascript +it("${1}", function() { + ${2} +}); +``` diff --git a/snippets/js/bdd/structure/bdd-after-each.sublime-snippet b/snippets/js/tests/common/tests-structure-after-each.sublime-snippet similarity index 52% rename from snippets/js/bdd/structure/bdd-after-each.sublime-snippet rename to snippets/js/tests/common/tests-structure-after-each.sublime-snippet index 9365aef..6587ca4 100644 --- a/snippets/js/bdd/structure/bdd-after-each.sublime-snippet +++ b/snippets/js/tests/common/tests-structure-after-each.sublime-snippet @@ -4,6 +4,6 @@ afterEach(function() { ${1} }); ]]> - baftereach - b - afterEach + t.aftereach + t - afterEach diff --git a/snippets/js/tests/common/tests-structure-after.sublime-snippet b/snippets/js/tests/common/tests-structure-after.sublime-snippet new file mode 100644 index 0000000..0fef7a3 --- /dev/null +++ b/snippets/js/tests/common/tests-structure-after.sublime-snippet @@ -0,0 +1,9 @@ + + + t.after + t - after + diff --git a/snippets/js/tests/common/tests-structure-before-each.sublime-snippet b/snippets/js/tests/common/tests-structure-before-each.sublime-snippet new file mode 100644 index 0000000..57ab682 --- /dev/null +++ b/snippets/js/tests/common/tests-structure-before-each.sublime-snippet @@ -0,0 +1,9 @@ + + + t.beforeeach + t - beforeEach + diff --git a/snippets/js/tests/common/tests-structure-before.sublime-snippet b/snippets/js/tests/common/tests-structure-before.sublime-snippet new file mode 100644 index 0000000..5363453 --- /dev/null +++ b/snippets/js/tests/common/tests-structure-before.sublime-snippet @@ -0,0 +1,9 @@ + + + t.before + t - before + diff --git a/snippets/js/bdd/structure/bdd-describe.sublime-snippet b/snippets/js/tests/common/tests-structure-describe.sublime-snippet similarity index 53% rename from snippets/js/bdd/structure/bdd-describe.sublime-snippet rename to snippets/js/tests/common/tests-structure-describe.sublime-snippet index 655dd96..a8930a5 100644 --- a/snippets/js/bdd/structure/bdd-describe.sublime-snippet +++ b/snippets/js/tests/common/tests-structure-describe.sublime-snippet @@ -4,6 +4,6 @@ describe("$1", function() { $2 }); ]]> - bdescribe - b - describe + t.describe + t - describe diff --git a/snippets/js/bdd/structure/bdd-it.sublime-snippet b/snippets/js/tests/common/tests-structure-it.sublime-snippet similarity index 57% rename from snippets/js/bdd/structure/bdd-it.sublime-snippet rename to snippets/js/tests/common/tests-structure-it.sublime-snippet index f82f04d..0f70f9f 100644 --- a/snippets/js/bdd/structure/bdd-it.sublime-snippet +++ b/snippets/js/tests/common/tests-structure-it.sublime-snippet @@ -4,6 +4,6 @@ it("${1}", function() { ${2} }); ]]> - bit - b - it + t.it + t - it diff --git a/snippets/js/bdd/expect/README.md b/snippets/js/tests/jasmine/README.md similarity index 62% rename from snippets/js/bdd/expect/README.md rename to snippets/js/tests/jasmine/README.md index 4dc2e29..ab088ee 100644 --- a/snippets/js/bdd/expect/README.md +++ b/snippets/js/tests/jasmine/README.md @@ -1,108 +1,110 @@ -## BDD Expect Snippets +# Jasmine JavaScript Snippets -### [bcloseto] toBeCloseTo +## Prefix `tj.*` + +### [tj.closeto] toBeCloseTo ```javascript expect(${1}).toBeCloseTo(${2}, ${3}); ``` -### [bcontain] toBeContain +### [tj.contain] toBeContain ```javascript expect(${1}).toBeContain(${2}); ``` -### [bdefined] toBeDefined +### [tj.defined] toBeDefined ```javascript expect(${1}).toBeDefined(); ``` -### [bfalsy] toBeFalsy +### [tj.falsy] toBeFalsy ```javascript expect(${1}).toBeFalsy(); ``` -### [bgreaterthan] toBeGreaterThan +### [tj.greaterthan] toBeGreaterThan ```javascript expect(${1}).toBeGreaterThan(${2}); ``` -### [blessthan] toBeLessThan +### [tj.lessthan] toBeLessThan ```javascript expect(${1}).toBeLessThan(${2}); ``` -### [bnan] toBeNaN +### [tj.nan] toBeNaN ```javascript expect(${1}).toBeNaN(); ``` -### [bnull] toBeNull +### [tj.null] toBeNull ```javascript expect(${1}).toBeNull(); ``` -### [btruthy] toBeTruthy +### [tj.truthy] toBeTruthy ```javascript expect(${1}).toBeTruthy(); ``` -### [bundefined] toBeUndefined +### [tj.undefined] toBeUndefined ```javascript expect(${1}).toBeUndefined(); ``` -### [btobe] toBe +### [tj.tobe] toBe ```javascript expect(${1}).toBe(${2}); ``` -### [bequal] toEqual +### [tj.equal] toEqual ```javascript expect(${1}).toEqual(${2}); ``` -### [bhbctimes] toHaveBeenCalledTimes +### [tj.hbctimes] toHaveBeenCalledTimes ```javascript expect(${1}).toHaveBeenCalledTimes(${2}); ``` -### [bhbcwith] toHaveBeenCalledWith +### [tj.hbcwith] toHaveBeenCalledWith ```javascript expect(${1}).toHaveBeenCalledWith(${2}, ${3}); ``` -### [bhbc] toHaveBeenCalled +### [tj.hbc] toHaveBeenCalled ```javascript expect(${1}).toHaveBeenCalled(); ``` -### [bmatch] toMatch +### [tj.match] toMatch ```javascript expect(${1}).toMatch(${2}); ``` -### [bthrowerror] toThrowError +### [tj.throwerror] toThrowError ```javascript expect(${1}).toThrowError(${2}); ``` -### [bthrow] toThrow +### [tj.throw] toThrow ```javascript expect(${1}).toThrow(${2}); diff --git a/snippets/js/bdd/expect/bdd-expect-to-be-close-to.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-be-close-to.sublime-snippet similarity index 50% rename from snippets/js/bdd/expect/bdd-expect-to-be-close-to.sublime-snippet rename to snippets/js/tests/jasmine/bdd-expect-to-be-close-to.sublime-snippet index bb1155a..37e07d9 100644 --- a/snippets/js/bdd/expect/bdd-expect-to-be-close-to.sublime-snippet +++ b/snippets/js/tests/jasmine/bdd-expect-to-be-close-to.sublime-snippet @@ -2,6 +2,6 @@ - bcloseto - b - Expect toBeCloseTo + tj.closeto + tj - Expect toBeCloseTo diff --git a/snippets/js/tests/jasmine/bdd-expect-to-be-contain.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-be-contain.sublime-snippet new file mode 100644 index 0000000..f71fa7d --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-be-contain.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.contain + tj - Expect toBeContain + diff --git a/snippets/js/tests/jasmine/bdd-expect-to-be-defined.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-be-defined.sublime-snippet new file mode 100644 index 0000000..17da382 --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-be-defined.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.defined + tj - Expect toBeDefined + diff --git a/snippets/js/tests/jasmine/bdd-expect-to-be-falsy.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-be-falsy.sublime-snippet new file mode 100644 index 0000000..46eab6c --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-be-falsy.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.falsy + tj - Expect toBeFalsy + diff --git a/snippets/js/tests/jasmine/bdd-expect-to-be-greater-than.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-be-greater-than.sublime-snippet new file mode 100644 index 0000000..ce5a357 --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-be-greater-than.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.greaterthan + tj - Expect toBeGreaterThan + diff --git a/snippets/js/tests/jasmine/bdd-expect-to-be-less-than.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-be-less-than.sublime-snippet new file mode 100644 index 0000000..0630f79 --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-be-less-than.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.lessthan + tj - Expect toBeLessThan + diff --git a/snippets/js/tests/jasmine/bdd-expect-to-be-nan.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-be-nan.sublime-snippet new file mode 100644 index 0000000..3dec5e3 --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-be-nan.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.nan + tj - Expect toBeNaN + diff --git a/snippets/js/tests/jasmine/bdd-expect-to-be-null.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-be-null.sublime-snippet new file mode 100644 index 0000000..b076fe1 --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-be-null.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.null + tj - Expect toBeNull + diff --git a/snippets/js/tests/jasmine/bdd-expect-to-be-truthy.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-be-truthy.sublime-snippet new file mode 100644 index 0000000..7b8966d --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-be-truthy.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.truthy + tj - Expect toBeTruthy + diff --git a/snippets/js/tests/jasmine/bdd-expect-to-be-undefined.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-be-undefined.sublime-snippet new file mode 100644 index 0000000..58b94e4 --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-be-undefined.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.undefined + tj - Expect toBeUndefined + diff --git a/snippets/js/bdd/expect/bdd-expect-to-be.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-be.sublime-snippet similarity index 50% rename from snippets/js/bdd/expect/bdd-expect-to-be.sublime-snippet rename to snippets/js/tests/jasmine/bdd-expect-to-be.sublime-snippet index d76c408..dbcb066 100644 --- a/snippets/js/bdd/expect/bdd-expect-to-be.sublime-snippet +++ b/snippets/js/tests/jasmine/bdd-expect-to-be.sublime-snippet @@ -2,6 +2,6 @@ - btobe - b - Expect toBe + tj.tobe + tj - Expect toBe diff --git a/snippets/js/tests/jasmine/bdd-expect-to-equal.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-equal.sublime-snippet new file mode 100644 index 0000000..a78d57a --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.equal + tj - Expect toEqual + diff --git a/snippets/js/tests/jasmine/bdd-expect-to-have-been-called-times.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-have-been-called-times.sublime-snippet new file mode 100644 index 0000000..af81b05 --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-have-been-called-times.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.hbctimes + tj - Expect toHaveBeenCalledTimes + diff --git a/snippets/js/bdd/expect/bdd-expect-to-have-been-called-with.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-have-been-called-with.sublime-snippet similarity index 50% rename from snippets/js/bdd/expect/bdd-expect-to-have-been-called-with.sublime-snippet rename to snippets/js/tests/jasmine/bdd-expect-to-have-been-called-with.sublime-snippet index ca1e0f6..40a8449 100644 --- a/snippets/js/bdd/expect/bdd-expect-to-have-been-called-with.sublime-snippet +++ b/snippets/js/tests/jasmine/bdd-expect-to-have-been-called-with.sublime-snippet @@ -2,6 +2,6 @@ - bhbcwith - b - Expect toHaveBeenCalledWith + tj.hbcwith + tj - Expect toHaveBeenCalledWith diff --git a/snippets/js/tests/jasmine/bdd-expect-to-have-been-called.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-have-been-called.sublime-snippet new file mode 100644 index 0000000..aefb764 --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-have-been-called.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.hbc + tj - Expect toHaveBeenCalled + diff --git a/snippets/js/tests/jasmine/bdd-expect-to-match.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-match.sublime-snippet new file mode 100644 index 0000000..b8308ac --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-match.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.match + tj - Expect toMatch + diff --git a/snippets/js/tests/jasmine/bdd-expect-to-throw-error.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-throw-error.sublime-snippet new file mode 100644 index 0000000..2f5582f --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-throw-error.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.throwerror + tj - Expect toThrowError + diff --git a/snippets/js/tests/jasmine/bdd-expect-to-throw.sublime-snippet b/snippets/js/tests/jasmine/bdd-expect-to-throw.sublime-snippet new file mode 100644 index 0000000..47e3753 --- /dev/null +++ b/snippets/js/tests/jasmine/bdd-expect-to-throw.sublime-snippet @@ -0,0 +1,7 @@ + + + tj.throw + tj - Expect toThrow + diff --git a/snippets/js/tests/mocha/README.md b/snippets/js/tests/mocha/README.md new file mode 100644 index 0000000..3cef811 --- /dev/null +++ b/snippets/js/tests/mocha/README.md @@ -0,0 +1,69 @@ +# Mocha JavaScript Snippets + +## Prefix `tm.*` + +### [tm.config] config + +```javascript +${1:var} ${2:mocha} = new ${3:Mocha}({ + ${4:ui: ${5:'tdd'},} + ${6:grep: ${7:''},} + ${7:timeout: ${8:''},} + ${9:bail: ${10:''},} + ${11:reporter: ${12:'list'}} +}); +``` + +### [tm.globals] globals + +```javascript +mocha.globals(${1}); +``` + +### [tm.grep] grep + +```javascript +mocha.grep(${1}); +``` + +### [tm.growl] growl + +```javascript +mocha.growl(${1}); +``` + +### [tm.ileaks] ignoreLeaks + +```javascript +mocha.ignoreLeaks(${1}); +``` + +### [tm.invert] invert + +```javascript +mocha.invert(${1}); +``` + +### [tm.reporter] reporter + +```javascript +mocha.reporter(${1:list}).run(); +``` + +### [tm.run] run + +```javascript +mocha.run(); +``` + +### [tm.setup] setup + +```javascript +mocha.setup(${1}); +``` + +### [tm.ui] ui + +```javascript +mocha.ui(${1:tdd}).run(); +``` diff --git a/snippets/js/tests/mocha/mocha-config.sublime-snippet b/snippets/js/tests/mocha/mocha-config.sublime-snippet new file mode 100644 index 0000000..50dd362 --- /dev/null +++ b/snippets/js/tests/mocha/mocha-config.sublime-snippet @@ -0,0 +1,13 @@ + + + tm.config + tm - config + diff --git a/snippets/js/tests/mocha/mocha-globals.sublime-snippet b/snippets/js/tests/mocha/mocha-globals.sublime-snippet new file mode 100644 index 0000000..74cbd85 --- /dev/null +++ b/snippets/js/tests/mocha/mocha-globals.sublime-snippet @@ -0,0 +1,7 @@ + + + tm.globals + tm - globals + diff --git a/snippets/js/tests/mocha/mocha-grep.sublime-snippet b/snippets/js/tests/mocha/mocha-grep.sublime-snippet new file mode 100644 index 0000000..1218bc2 --- /dev/null +++ b/snippets/js/tests/mocha/mocha-grep.sublime-snippet @@ -0,0 +1,7 @@ + + + tm.grep + tm - grep + diff --git a/snippets/js/tests/mocha/mocha-growl.sublime-snippet b/snippets/js/tests/mocha/mocha-growl.sublime-snippet new file mode 100644 index 0000000..2c5deca --- /dev/null +++ b/snippets/js/tests/mocha/mocha-growl.sublime-snippet @@ -0,0 +1,7 @@ + + + tm.growl + tm - growl + diff --git a/snippets/js/tests/mocha/mocha-ignore-leaks.sublime-snippet b/snippets/js/tests/mocha/mocha-ignore-leaks.sublime-snippet new file mode 100644 index 0000000..0a7d950 --- /dev/null +++ b/snippets/js/tests/mocha/mocha-ignore-leaks.sublime-snippet @@ -0,0 +1,7 @@ + + + tm.ileaks + tm - ignoreLeaks + diff --git a/snippets/js/tests/mocha/mocha-invert.sublime-snippet b/snippets/js/tests/mocha/mocha-invert.sublime-snippet new file mode 100644 index 0000000..0b813ed --- /dev/null +++ b/snippets/js/tests/mocha/mocha-invert.sublime-snippet @@ -0,0 +1,7 @@ + + + tm.invert + tm - invert + diff --git a/snippets/js/tests/mocha/mocha-reporter.sublime-snippet b/snippets/js/tests/mocha/mocha-reporter.sublime-snippet new file mode 100644 index 0000000..2d9ca7e --- /dev/null +++ b/snippets/js/tests/mocha/mocha-reporter.sublime-snippet @@ -0,0 +1,7 @@ + + + tm.reporter + tm - reporter + diff --git a/snippets/js/tests/mocha/mocha-run.sublime-snippet b/snippets/js/tests/mocha/mocha-run.sublime-snippet new file mode 100644 index 0000000..2d34c3c --- /dev/null +++ b/snippets/js/tests/mocha/mocha-run.sublime-snippet @@ -0,0 +1,7 @@ + + + tm.run + tm - run + diff --git a/snippets/js/tests/mocha/mocha-setup.sublime-snippet b/snippets/js/tests/mocha/mocha-setup.sublime-snippet new file mode 100644 index 0000000..8a9d407 --- /dev/null +++ b/snippets/js/tests/mocha/mocha-setup.sublime-snippet @@ -0,0 +1,7 @@ + + + tm.setup + tm - setup + diff --git a/snippets/js/tests/mocha/mocha-ui.sublime-snippet b/snippets/js/tests/mocha/mocha-ui.sublime-snippet new file mode 100644 index 0000000..3c3233a --- /dev/null +++ b/snippets/js/tests/mocha/mocha-ui.sublime-snippet @@ -0,0 +1,7 @@ + + + tm.ui + tm - ui + diff --git a/snippets/js/tests/node/README.md b/snippets/js/tests/node/README.md new file mode 100644 index 0000000..e0125a4 --- /dev/null +++ b/snippets/js/tests/node/README.md @@ -0,0 +1,87 @@ +# Node.js JavaScript Snippets + +## Prefix `tn.*` + +### [tn.dequal] deepEqual + +```javascript +assert.deepEqual(${1:actual}, ${1:expected} ${2:, message}); +``` + +### [tn.dsequal] deepStrictEqual + +```javascript +assert.deepStrictEqual(${1:actual}, ${2:expected} ${3:, message}); +``` + +### [tn.dnthrow] doesNotThrow + +```javascript +assert.doesNotThrow(${1:block} ${2:, error} ${3:, message}); +``` + +### [tn.equal] equal + +```javascript +assert.equal(${1:actual}, ${2:expected} ${3:, message}); +``` + +### [tn.fail] fail + +```javascript +assert.fail(${1:actual}, ${2:expected}, ${3:message}, ${4:operator}); +``` + +### [tn.iferror] ifError + +```javascript +assert.ifError(${1:value}); +``` + +### [tn.ndequal] notDeepEqual + +```javascript +assert.notDeepEqual(${1:actual}, ${1:expected} ${2:, message}); +``` + +### [tn.ndsequal] notDeepStrictEqual + +```javascript +assert.notDeepStrictEqual(${1:actual}, ${1:expected} ${2:, message}); +``` + +### [tn.nequal] notEqual + +```javascript +assert.notEqual(${1:actual}, ${1:expected} ${2:, message}); +``` + +### [tn.nsequal] notStrictEqual + +```javascript +assert.notStrictEqual(${1:actual}, ${1:expected} ${2:, message}); +``` + +### [tn.ok] ok + +```javascript +assert.ok(${1:value}${2:, message}); +``` + +### [tn.sequal] strictEqual + +```javascript +assert.strictEqual(${1:actual}, ${1:expected} ${2:, message}); +``` + +### [tn.throws] throws + +```javascript +assert.throws(${1:block}, ${1:error} ${2:, message}); +``` + +### [tn.a] Assert + +```javascript +assert(${1:true}${2:, message}); +``` diff --git a/snippets/js/tests/node/tdd-assert-deep-equal.sublime-snippet b/snippets/js/tests/node/tdd-assert-deep-equal.sublime-snippet new file mode 100644 index 0000000..af17ec0 --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-deep-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.dequal + tn - Assert deepEqual + diff --git a/snippets/js/tests/node/tdd-assert-deep-strict-equal.sublime-snippet b/snippets/js/tests/node/tdd-assert-deep-strict-equal.sublime-snippet new file mode 100644 index 0000000..bfe0830 --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-deep-strict-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.dsequal + tn - Assert deepStrictEqual + diff --git a/snippets/js/tests/node/tdd-assert-does-not-throw.sublime-snippet b/snippets/js/tests/node/tdd-assert-does-not-throw.sublime-snippet new file mode 100644 index 0000000..8539669 --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-does-not-throw.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.dnthrow + tn - Assert doesNotThrow + diff --git a/snippets/js/tests/node/tdd-assert-equal.sublime-snippet b/snippets/js/tests/node/tdd-assert-equal.sublime-snippet new file mode 100644 index 0000000..f3ddc18 --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.equal + tn - Assert equal + diff --git a/snippets/js/tests/node/tdd-assert-fail.sublime-snippet b/snippets/js/tests/node/tdd-assert-fail.sublime-snippet new file mode 100644 index 0000000..95e979c --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-fail.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.fail + tn - Assert fail + diff --git a/snippets/js/tests/node/tdd-assert-if-error.sublime-snippet b/snippets/js/tests/node/tdd-assert-if-error.sublime-snippet new file mode 100644 index 0000000..ffb5993 --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-if-error.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.iferror + tn - Assert ifError + diff --git a/snippets/js/tests/node/tdd-assert-not-deep-equal.sublime-snippet b/snippets/js/tests/node/tdd-assert-not-deep-equal.sublime-snippet new file mode 100644 index 0000000..f28ab88 --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-not-deep-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.ndequal + tn - Assert notDeepEqual + diff --git a/snippets/js/tests/node/tdd-assert-not-deep-strict-equal.sublime-snippet b/snippets/js/tests/node/tdd-assert-not-deep-strict-equal.sublime-snippet new file mode 100644 index 0000000..3d0d8ad --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-not-deep-strict-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.ndsequal + tn - Assert notDeepStrictEqual + diff --git a/snippets/js/tests/node/tdd-assert-not-equal.sublime-snippet b/snippets/js/tests/node/tdd-assert-not-equal.sublime-snippet new file mode 100644 index 0000000..d8b5d32 --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-not-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.nequal + tn - Assert notEqual + diff --git a/snippets/js/tests/node/tdd-assert-not-strict-equal.sublime-snippet b/snippets/js/tests/node/tdd-assert-not-strict-equal.sublime-snippet new file mode 100644 index 0000000..9ff4229 --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-not-strict-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.nsequal + tn - Assert notStrictEqual + diff --git a/snippets/js/tests/node/tdd-assert-ok.sublime-snippet b/snippets/js/tests/node/tdd-assert-ok.sublime-snippet new file mode 100644 index 0000000..4e5959c --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-ok.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.ok + tn - Assert ok + diff --git a/snippets/js/tests/node/tdd-assert-strict-equal.sublime-snippet b/snippets/js/tests/node/tdd-assert-strict-equal.sublime-snippet new file mode 100644 index 0000000..b251938 --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-strict-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.sequal + tn - Assert strictEqual + diff --git a/snippets/js/tests/node/tdd-assert-throws.sublime-snippet b/snippets/js/tests/node/tdd-assert-throws.sublime-snippet new file mode 100644 index 0000000..d1c7ed9 --- /dev/null +++ b/snippets/js/tests/node/tdd-assert-throws.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.throws + tn - Assert throws + diff --git a/snippets/js/tests/node/tdd-assert.sublime-snippet b/snippets/js/tests/node/tdd-assert.sublime-snippet new file mode 100644 index 0000000..2666f5b --- /dev/null +++ b/snippets/js/tests/node/tdd-assert.sublime-snippet @@ -0,0 +1,7 @@ + + + tn.a + tn - Assert + diff --git a/snippets/js/tests/qunit/README.md b/snippets/js/tests/qunit/README.md new file mode 100644 index 0000000..93101ab --- /dev/null +++ b/snippets/js/tests/qunit/README.md @@ -0,0 +1,177 @@ +# QUnit JavaScript Snippets + +## Prefix `tq.*` + +### [tq.async] async + +```javascript +assert.async(${1:acceptCallCount}); +``` + +### [tq.dequal] deepEqual + +```javascript +assert.deepEqual(${1:actual}, ${2:expected} ${3:, message}); +``` + +### [tq.equal] equal + +```javascript +assert.equal(${1:actual}, ${2:expected} ${3:, message}); +``` + +### [tq.ndequal] notDeepEqual + +```javascript +assert.notDeepEqual(${1:actual}, ${2:expected} ${3:, message}); +``` + +### [tq.nequal] notEqual + +```javascript +assert.notEqual(${1:actual}, ${2:expected} ${3:, message}); +``` + +### [tq.nok] notOk + +```javascript +assert.notOk(${1:state} ${2:, message}); +``` + +### [tq.npequal] notPropEqual + +```javascript +assert.notPropEqual(${1:actual}, ${2:expected} ${3:, message}); +``` + +### [tq.nsequal] notStrictEqual + +```javascript +assert.notStrictEqual(${1:actual}, ${2:expected} ${3:, message}); +``` + +### [tq.ok] ok + +```javascript +assert.ok(${1:state} ${2:, message}); +``` + +### [tq.pequal] propEqual + +```javascript +assert.propEqual(${1:actual}, ${2:expected} ${3:, message}); +``` + +### [tq.sequal] strictEqual + +```javascript +assert.strictEqual(${1:actual}, ${2:expected} ${3:, message}); +``` + +### [tq.throws] throws + +```javascript +assert.throws(${1:block}${2:, expected}${3:, message}); +``` + +### [tq.begin] QUnit.begin + +```javascript +QUnit.begin(${1:callback}) +``` + +### [tq.config] QUnit.config + +```javascript +QUnit.config.${1:urlConfig} +``` + +### [tq.done] QUnit.done + +```javascript +QUnit.done(${1:callback}); +``` + +### [tq.dparse] QUnit.dump.parse + +```javascript +QUnit.dump.parse(${1:data}); +``` + +### [tq.expect] Expect + +```javascript +QUnit.expect(${1:amount}); +``` + +### [tq.extend] QUnit.extend + +```javascript +QUnit.extend(${1:target}, ${2:mixin}); +``` + +### [tq.log] QUnit.log + +```javascript +QUnit.log(${1:callback}); +``` + +### [tq.mdone] QUnit.moduleDone + +```javascript +QUnit.moduleDone(${1:callback}); +``` + +### [tq.mstart] QUnit.moduleStart + +```javascript +QUnit.moduleStart(${1:callback}); +``` + +### [tq.module] QUnit.module + +```javascript +QUnit.module(${1:name}${2:, hooks}${3:, nested}); +``` + +### [tq.only] QUnit.only + +```javascript +QUnit.only(${1:name}, ${2:callback}); +``` + +### [tq.push] push + +```javascript +${1:this}.push(${2:result}, ${3:actual}, ${4:expected}, ${5:message}); +``` + +### [tq.skip] QUnit.skip + +```javascript +QUnit.skip(${1:name}); +``` + +### [tq.stack] QUnit.stack + +```javascript +QUnit.stack(${1:offset}); +``` + +### [tq.tdone] QUnit.testDone + +```javascript +QUnit.testDone(${1:callback}); +``` + +### [tq.tstart] QUnit.testStart + +```javascript +QUnit.testStart(${1:callback}); +``` + +### [tq.test] Test + +```javascript +QUnit.test(${1:name}, ${2:callback}); +``` diff --git a/snippets/js/tests/qunit/qunit-assert-async.sublime-snippet b/snippets/js/tests/qunit/qunit-assert-async.sublime-snippet new file mode 100644 index 0000000..8988a74 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-assert-async.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.async + tq - Assert async + diff --git a/snippets/js/tests/qunit/qunit-assert-deep-equal.sublime-snippet b/snippets/js/tests/qunit/qunit-assert-deep-equal.sublime-snippet new file mode 100644 index 0000000..cc1fee3 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-assert-deep-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.dequal + tq - Assert deepEqual + diff --git a/snippets/js/tests/qunit/qunit-assert-equal.sublime-snippet b/snippets/js/tests/qunit/qunit-assert-equal.sublime-snippet new file mode 100644 index 0000000..bc36bc0 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-assert-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.equal + tq - Assert equal + diff --git a/snippets/js/tests/qunit/qunit-assert-not-deep-equal.sublime-snippet b/snippets/js/tests/qunit/qunit-assert-not-deep-equal.sublime-snippet new file mode 100644 index 0000000..9e47193 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-assert-not-deep-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.ndequal + tq - notDeepEqual + diff --git a/snippets/js/tests/qunit/qunit-assert-not-equal.sublime-snippet b/snippets/js/tests/qunit/qunit-assert-not-equal.sublime-snippet new file mode 100644 index 0000000..b5fa3d8 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-assert-not-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.nequal + tq - notEqual + diff --git a/snippets/js/tests/qunit/qunit-assert-not-ok.sublime-snippet b/snippets/js/tests/qunit/qunit-assert-not-ok.sublime-snippet new file mode 100644 index 0000000..fd71326 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-assert-not-ok.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.nok + tq - notOk + diff --git a/snippets/js/tests/qunit/qunit-assert-not-prop-equal.sublime-snippet b/snippets/js/tests/qunit/qunit-assert-not-prop-equal.sublime-snippet new file mode 100644 index 0000000..80373d5 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-assert-not-prop-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.npequal + tq - notPropEqual + diff --git a/snippets/js/tests/qunit/qunit-assert-not-strict-equal.sublime-snippet b/snippets/js/tests/qunit/qunit-assert-not-strict-equal.sublime-snippet new file mode 100644 index 0000000..94fa53c --- /dev/null +++ b/snippets/js/tests/qunit/qunit-assert-not-strict-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.nsequal + tq - notStrictEqual + diff --git a/snippets/js/tests/qunit/qunit-assert-ok.sublime-snippet b/snippets/js/tests/qunit/qunit-assert-ok.sublime-snippet new file mode 100644 index 0000000..db2e673 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-assert-ok.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.ok + tq - ok + diff --git a/snippets/js/tests/qunit/qunit-assert-prop-equal.sublime-snippet b/snippets/js/tests/qunit/qunit-assert-prop-equal.sublime-snippet new file mode 100644 index 0000000..39da22e --- /dev/null +++ b/snippets/js/tests/qunit/qunit-assert-prop-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.pequal + tq - propEqual + diff --git a/snippets/js/tests/qunit/qunit-assert-strict-equal.sublime-snippet b/snippets/js/tests/qunit/qunit-assert-strict-equal.sublime-snippet new file mode 100644 index 0000000..da4081c --- /dev/null +++ b/snippets/js/tests/qunit/qunit-assert-strict-equal.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.sequal + tq - strictEqual + diff --git a/snippets/js/tests/qunit/qunit-assert-throws.sublime-snippet b/snippets/js/tests/qunit/qunit-assert-throws.sublime-snippet new file mode 100644 index 0000000..d75a139 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-assert-throws.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.throws + tq - throws + diff --git a/snippets/js/tests/qunit/qunit-begin.sublime-snippet b/snippets/js/tests/qunit/qunit-begin.sublime-snippet new file mode 100644 index 0000000..6c96de9 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-begin.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.begin + tq - QUnit.begin + diff --git a/snippets/js/tests/qunit/qunit-config.sublime-snippet b/snippets/js/tests/qunit/qunit-config.sublime-snippet new file mode 100644 index 0000000..b597513 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-config.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.config + tq - QUnit.config + diff --git a/snippets/js/tests/qunit/qunit-done.sublime-snippet b/snippets/js/tests/qunit/qunit-done.sublime-snippet new file mode 100644 index 0000000..68f5eb3 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-done.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.done + tq - QUnit.done + diff --git a/snippets/js/tests/qunit/qunit-dump-parse.sublime-snippet b/snippets/js/tests/qunit/qunit-dump-parse.sublime-snippet new file mode 100644 index 0000000..6e1bf82 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-dump-parse.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.dparse + tq - QUnit.dump.parse + diff --git a/snippets/js/tests/qunit/qunit-expect.sublime-snippet b/snippets/js/tests/qunit/qunit-expect.sublime-snippet new file mode 100644 index 0000000..52b6cd2 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-expect.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.expect + tq - Expect + diff --git a/snippets/js/tests/qunit/qunit-extend.sublime-snippet b/snippets/js/tests/qunit/qunit-extend.sublime-snippet new file mode 100644 index 0000000..d40a2b8 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-extend.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.extend + tq - QUnit.extend + diff --git a/snippets/js/tests/qunit/qunit-log.sublime-snippet b/snippets/js/tests/qunit/qunit-log.sublime-snippet new file mode 100644 index 0000000..36c8b71 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-log.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.log + tq - QUnit.log + diff --git a/snippets/js/tests/qunit/qunit-module-done.sublime-snippet b/snippets/js/tests/qunit/qunit-module-done.sublime-snippet new file mode 100644 index 0000000..90522b0 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-module-done.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.mdone + tq - QUnit.moduleDone + diff --git a/snippets/js/tests/qunit/qunit-module-start.sublime-snippet b/snippets/js/tests/qunit/qunit-module-start.sublime-snippet new file mode 100644 index 0000000..0105640 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-module-start.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.mstart + tq - QUnit.moduleStart + diff --git a/snippets/js/tests/qunit/qunit-module.sublime-snippet b/snippets/js/tests/qunit/qunit-module.sublime-snippet new file mode 100644 index 0000000..609ba4b --- /dev/null +++ b/snippets/js/tests/qunit/qunit-module.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.module + tq - QUnit.module + diff --git a/snippets/js/tests/qunit/qunit-only.sublime-snippet b/snippets/js/tests/qunit/qunit-only.sublime-snippet new file mode 100644 index 0000000..73dc59f --- /dev/null +++ b/snippets/js/tests/qunit/qunit-only.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.only + tq - QUnit.only + diff --git a/snippets/js/tests/qunit/qunit-push.sublime-snippet b/snippets/js/tests/qunit/qunit-push.sublime-snippet new file mode 100644 index 0000000..92e19d1 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-push.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.push + tq - push + diff --git a/snippets/js/tests/qunit/qunit-skip.sublime-snippet b/snippets/js/tests/qunit/qunit-skip.sublime-snippet new file mode 100644 index 0000000..c899b4c --- /dev/null +++ b/snippets/js/tests/qunit/qunit-skip.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.skip + tq - QUnit.skip + diff --git a/snippets/js/tests/qunit/qunit-stack.sublime-snippet b/snippets/js/tests/qunit/qunit-stack.sublime-snippet new file mode 100644 index 0000000..710517f --- /dev/null +++ b/snippets/js/tests/qunit/qunit-stack.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.stack + tq - QUnit.stack + diff --git a/snippets/js/tests/qunit/qunit-test-done.sublime-snippet b/snippets/js/tests/qunit/qunit-test-done.sublime-snippet new file mode 100644 index 0000000..449c903 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-test-done.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.tdone + tq - QUnit.testDone + diff --git a/snippets/js/tests/qunit/qunit-test-start.sublime-snippet b/snippets/js/tests/qunit/qunit-test-start.sublime-snippet new file mode 100644 index 0000000..5948b7b --- /dev/null +++ b/snippets/js/tests/qunit/qunit-test-start.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.tstart + tq - QUnit.testStart + diff --git a/snippets/js/tests/qunit/qunit-test.sublime-snippet b/snippets/js/tests/qunit/qunit-test.sublime-snippet new file mode 100644 index 0000000..995ec58 --- /dev/null +++ b/snippets/js/tests/qunit/qunit-test.sublime-snippet @@ -0,0 +1,7 @@ + + + tq.test + tq - Test + diff --git a/snippets/js/tests/sinon/README.md b/snippets/js/tests/sinon/README.md new file mode 100644 index 0000000..3a73841 --- /dev/null +++ b/snippets/js/tests/sinon/README.md @@ -0,0 +1,28 @@ +# Sinon JavaScript Snippets + +## Prefix `ts.*` + +- [Assertions](assertions/) + - alwaysCalledOn + - alwaysCalledWithExactly + - alwaysCalledWithMatch + - alwaysCalledWith + - alwaysThrew + - callCount + - callOrder + - calledOn + - calledOnce + - calledThrice + - calledTwice + - calledWithExactly + - calledWithMatch + - calledWith + - called + - expose + - failException + - fail + - neverCalledWithMatch + - neverCalledWith + - notCalled + - pass + - threw diff --git a/snippets/js/tests/sinon/assertions/README.md b/snippets/js/tests/sinon/assertions/README.md new file mode 100644 index 0000000..9a8582d --- /dev/null +++ b/snippets/js/tests/sinon/assertions/README.md @@ -0,0 +1,141 @@ +# Sinon JavaScript Snippets + +## Assertions + +### [ts.acon] alwaysCalledOn + +```javascript +sinon.assert.alwaysCalledOn(${1:spy}, ${2:obj}); +``` + +### [ts.acalledwe] alwaysCalledWithExactly + +```javascript +sinon.assert.alwaysCalledWithExactly(${1:spy}, ${2:arg1}${3:, arg2}${4:, ...}); +``` + +### [ts.acalledwm] alwaysCalledWithMatch + +```javascript +sinon.assert.alwaysCalledWithMatch(${1:spy}, ${2:arg1}${3:, arg2}${4:, ...}); +``` + +### [ts.acalledw] alwaysCalledWith + +```javascript +sinon.assert.alwaysCalledWith(${1:spy}, ${2:arg1}${3:, arg2}${4:, ...}); +``` + +### [ts.athrew] alwaysThrew + +```javascript +sinon.assert.alwaysThrew(${1:spy}, ${2:exception}); +``` + +### [ts.ccount] callCount + +```javascript +sinon.assert.callCount(${1:spy}, ${2:num}); +``` + +### [ts.corder] callOrder + +```javascript +sinon.assert.callOrder(${1:spy1}, ${2:spy2}${3:, ...}); +``` + +### [ts.con] calledOn + +```javascript +sinon.assert.calledOn(${1:spy}, ${2:obj}); +``` + +### [ts.calledo] calledOnce + +```javascript +sinon.assert.calledOnce(${1:spy}); +``` + +### [ts.calledth] calledThrice + +```javascript +sinon.assert.calledThrice(${1:spy}); +``` + +### [ts.calledt] calledTwice + +```javascript +sinon.assert.calledTwice(${1:spy}); +``` + +### [ts.calledwe] calledWithExactly + +```javascript +sinon.assert.calledWithExactly(${1:spy}, ${2:arg1}${3:, arg2}${4:, ...}); +``` + +### [ts.calledwm] calledWithMatch + +```javascript +sinon.assert.calledWithMatch(${1:spy}, ${2:arg1}${3:, arg2}${4:, ...}); +``` + +### [ts.] calledWith + +```javascript +sinon.assert.calledWith(${1:spy}, ${2:arg1}${3:, arg2}${4:, ...}); +``` + +### [ts.called] called + +```javascript +sinon.assert.called(${1:spy}); +``` + +### [ts.expose] expose + +```javascript +sinon.assert.expose(${1:object}, ${2:options}); +``` + +### [ts.faile] failException + +```javascript +sinon.assert.failException; +``` + +### [ts.afail] fail + +```javascript +sinon.assert.fail(${1:message}); +``` + +### [ts.ncalledwm] neverCalledWithMatch + +```javascript +sinon.assert.neverCalledWithMatch(${1:spy}, ${2:arg1}${3:, arg2}${4:, ...}); +``` + +### [ts.ncalledw] neverCalledWith + +```javascript +sinon.assert.neverCalledWith(${1:spy}, ${2:arg1}${3:, arg2}${4:, ...}); +``` + +### [ts.ncalled] notCalled + +```javascript +sinon.assert.notCalled(${1:spy}); +``` + +### [ts.pass] pass + +```javascript +sinon.assert.pass(${1:assertion}); +``` + +### [ts.threw] threw + +```javascript +sinon.assert.threw(${1:spy}, ${2:exception}); +``` diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-always-called-on.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-always-called-on.sublime-snippet new file mode 100644 index 0000000..d9e5791 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-always-called-on.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.acon + ts - Assert alwaysCalledOn + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-always-called-with-exactly.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-always-called-with-exactly.sublime-snippet new file mode 100644 index 0000000..86b8966 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-always-called-with-exactly.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.acalledwe + ts - Assert alwaysCalledWithExactly + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-always-called-with-match.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-always-called-with-match.sublime-snippet new file mode 100644 index 0000000..84c4a72 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-always-called-with-match.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.acalledwm + ts - Assert alwaysCalledWithMatch + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-always-called-with.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-always-called-with.sublime-snippet new file mode 100644 index 0000000..68a530a --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-always-called-with.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.acalledw + ts - Assert alwaysCalledWith + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-always-threw.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-always-threw.sublime-snippet new file mode 100644 index 0000000..567a871 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-always-threw.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.athrew + ts - Assert alwaysThrew + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-call-count.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-call-count.sublime-snippet new file mode 100644 index 0000000..90f6347 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-call-count.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.ccount + ts - Assert callCount + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-call-order.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-call-order.sublime-snippet new file mode 100644 index 0000000..19ba411 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-call-order.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.corder + ts - Assert callOrder + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-called-on.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-called-on.sublime-snippet new file mode 100644 index 0000000..5b802c1 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-called-on.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.con + ts - Assert calledOn + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-called-once.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-called-once.sublime-snippet new file mode 100644 index 0000000..4d75f00 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-called-once.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.calledo + ts - Assert calledOnce + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-called-thrice.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-called-thrice.sublime-snippet new file mode 100644 index 0000000..8307fa9 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-called-thrice.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.calledth + ts - Assert calledThrice + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-called-twice.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-called-twice.sublime-snippet new file mode 100644 index 0000000..df83a33 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-called-twice.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.calledt + ts - Assert calledTwice + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-called-with-exactly.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-called-with-exactly.sublime-snippet new file mode 100644 index 0000000..f939c6e --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-called-with-exactly.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.calledwe + ts - Assert calledWithExactly + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-called-with-match.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-called-with-match.sublime-snippet new file mode 100644 index 0000000..5a418a5 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-called-with-match.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.calledwm + ts - Assert calledWithMatch + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-called-with.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-called-with.sublime-snippet new file mode 100644 index 0000000..49b01bd --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-called-with.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.calledw + ts - Assert calledWith + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-called.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-called.sublime-snippet new file mode 100644 index 0000000..40a8a90 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-called.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.called + ts - Assert called + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-expose.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-expose.sublime-snippet new file mode 100644 index 0000000..9062ec9 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-expose.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.expose + ts - Assert expose + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-fail-exception.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-fail-exception.sublime-snippet new file mode 100644 index 0000000..d3263dd --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-fail-exception.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.faile + ts - Assert failException + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-fail.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-fail.sublime-snippet new file mode 100644 index 0000000..cdceb0e --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-fail.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.afail + ts - Assert fail + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-never-called-with-match.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-never-called-with-match.sublime-snippet new file mode 100644 index 0000000..2fe32c9 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-never-called-with-match.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.ncalledwm + ts - Assert neverCalledWithMatch + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-never-called-with.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-never-called-with.sublime-snippet new file mode 100644 index 0000000..f18777d --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-never-called-with.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.ncalledw + ts - Assert neverCalledWith + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-not-called.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-not-called.sublime-snippet new file mode 100644 index 0000000..6af31de --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-not-called.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.ncalled + ts - Assert notCalled + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-pass.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-pass.sublime-snippet new file mode 100644 index 0000000..5649376 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-pass.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.pass + ts - Assert pass + diff --git a/snippets/js/tests/sinon/assertions/sinon-assert-threw.sublime-snippet b/snippets/js/tests/sinon/assertions/sinon-assert-threw.sublime-snippet new file mode 100644 index 0000000..686c748 --- /dev/null +++ b/snippets/js/tests/sinon/assertions/sinon-assert-threw.sublime-snippet @@ -0,0 +1,7 @@ + + + ts.threw + ts - Assert threw + diff --git a/snippets/js/vanilla/README.md b/snippets/js/vanilla/README.md index 0b327a4..e435b07 100644 --- a/snippets/js/vanilla/README.md +++ b/snippets/js/vanilla/README.md @@ -1,7 +1,10 @@ # JavaScript Snippets -## Prefix `j*` +## Prefix `j.*` +- [Conditional](conditional/) + - if-else + - switch - [Console](console/) - console.dir - console.error @@ -41,6 +44,9 @@ - forEach - for in - for +- [Statements](statements/) + - new + - require - [Timer](timer/) - setInterval - setTimeout diff --git a/snippets/js/vanilla/conditional/README.md b/snippets/js/vanilla/conditional/README.md new file mode 100644 index 0000000..661b057 --- /dev/null +++ b/snippets/js/vanilla/conditional/README.md @@ -0,0 +1,31 @@ +## JavaScript Conditional Snippets + +### [j.ifelse] if else + +```javascript +if (${1:condition}) { + ${2:expression} +} +else { + ${3:second expression} +} +``` + +### [j.switch] switch + +```javascript +switch (${1:expression}) { + case ${2:value1}: + ${3:instructions} + break; + case ${4:value2}: + ${5:instructions} + break; + case ${6:valueN}: + ${7:instructions} + break; + default: + ${8:instructions} + break; +} +``` diff --git a/snippets/js/vanilla/conditional/js-if-else.sublime-snippet b/snippets/js/vanilla/conditional/js-if-else.sublime-snippet new file mode 100644 index 0000000..cc8bd13 --- /dev/null +++ b/snippets/js/vanilla/conditional/js-if-else.sublime-snippet @@ -0,0 +1,12 @@ + + + j.ifelse + j - if else + diff --git a/snippets/js/vanilla/conditional/js-switch.sublime-snippet b/snippets/js/vanilla/conditional/js-switch.sublime-snippet new file mode 100644 index 0000000..5705318 --- /dev/null +++ b/snippets/js/vanilla/conditional/js-switch.sublime-snippet @@ -0,0 +1,20 @@ + + + j.switch + j - switch + diff --git a/snippets/js/vanilla/console/README.md b/snippets/js/vanilla/console/README.md index 63207f6..febdce9 100644 --- a/snippets/js/vanilla/console/README.md +++ b/snippets/js/vanilla/console/README.md @@ -1,30 +1,30 @@ ## JavaScript Console Snippets -### [jcd] console.dir +### [j.cd] console.dir ```javascript console.dir(${1:obj}); ``` -### [jce] console.error +### [j.ce] console.error ```javascript console.error(${1:obj}); ``` -### [jci] console.info +### [j.ci] console.info ```javascript console.info(${1:obj}); ``` -### [jcl] console.log +### [j.cl] console.log ```javascript console.log(${1:obj}); ``` -### [jcw] console.warn +### [j.cw] console.warn ```javascript console.warn(${1:obj}); diff --git a/snippets/js/vanilla/console/js-console-dir.sublime-snippet b/snippets/js/vanilla/console/js-console-dir.sublime-snippet index eb221e2..d0a6dba 100644 --- a/snippets/js/vanilla/console/js-console-dir.sublime-snippet +++ b/snippets/js/vanilla/console/js-console-dir.sublime-snippet @@ -2,6 +2,6 @@ - jcd + j.cd j - console.dir diff --git a/snippets/js/vanilla/console/js-console-error.sublime-snippet b/snippets/js/vanilla/console/js-console-error.sublime-snippet index f4fd889..fb9fddd 100644 --- a/snippets/js/vanilla/console/js-console-error.sublime-snippet +++ b/snippets/js/vanilla/console/js-console-error.sublime-snippet @@ -2,6 +2,6 @@ - jce + j.ce j - console.error diff --git a/snippets/js/vanilla/console/js-console-info.sublime-snippet b/snippets/js/vanilla/console/js-console-info.sublime-snippet index 9b584ba..b99f9e2 100644 --- a/snippets/js/vanilla/console/js-console-info.sublime-snippet +++ b/snippets/js/vanilla/console/js-console-info.sublime-snippet @@ -2,6 +2,6 @@ - jci + j.ci j - console.info diff --git a/snippets/js/vanilla/console/js-console-log.sublime-snippet b/snippets/js/vanilla/console/js-console-log.sublime-snippet index c875fb7..e59d39c 100644 --- a/snippets/js/vanilla/console/js-console-log.sublime-snippet +++ b/snippets/js/vanilla/console/js-console-log.sublime-snippet @@ -2,6 +2,6 @@ - jcl + j.cl j - console.log diff --git a/snippets/js/vanilla/console/js-console-warn.sublime-snippet b/snippets/js/vanilla/console/js-console-warn.sublime-snippet index cb4a3be..3aec28a 100644 --- a/snippets/js/vanilla/console/js-console-warn.sublime-snippet +++ b/snippets/js/vanilla/console/js-console-warn.sublime-snippet @@ -2,6 +2,6 @@ - jcw + j.cw j - console.warn diff --git a/snippets/js/vanilla/dom/README.md b/snippets/js/vanilla/dom/README.md index fd0eda1..907c070 100644 --- a/snippets/js/vanilla/dom/README.md +++ b/snippets/js/vanilla/dom/README.md @@ -1,6 +1,6 @@ ## JavaScript DOM Snippets -### [jael] addEventListener +### [j.ael] addEventListener ```javascript ${1:document}.addEventListener('${2:event}', function(event) { @@ -8,103 +8,103 @@ ${1:document}.addEventListener('${2:event}', function(event) { }); ``` -### [jac] appendChild +### [j.ac] appendChild ```javascript ${1:document}.appendChild(${2:element}); ``` -### [jcla] classList.add +### [j.cla] classList.add ```javascript ${1:document}.classList.add('${2:class}'); ``` -### [jclr] classList.remove +### [j.clr] classList.remove ```javascript ${1:document}.classList.remove('${2:class}'); ``` -### [jclt] classList.toggle +### [j.clt] classList.toggle ```javascript ${1:document}.classList.toggle('${2:class}'); ``` -### [jcdf] createDocumentFragment +### [j.cdf] createDocumentFragment ```javascript ${1:document}.createDocumentFragment(${2:element}); ``` -### [jcel] createElement +### [j.cel] createElement ```javascript ${1:document}.createElement(${2:element}); ``` -### [jgattr] getAttribute +### [j.gattr] getAttribute ```javascript ${1:document}.getAttribute('${2:attr}'); ``` -### [jgid] getElementById +### [j.gid] getElementById ```javascript ${1:document}.getElementById('${2:id}'); ``` -### [jgclass] getElementsByClassName +### [j.gclass] getElementsByClassName ```javascript ${1:document}.getElementsByClassName('${2:class}'); ``` -### [jgtag] getElementsByTagName +### [j.gtag] getElementsByTagName ```javascript ${1:document}.getElementsByTagName('${2:tag}'); ``` -### [jih] innerHTML +### [j.ih] innerHTML ```javascript ${1:document}.innerHTML = '${2:elem}'; ``` -### [jqsa] querySelectorAll +### [j.qsa] querySelectorAll ```javascript ${1:document}.querySelectorAll('${2:selector}'); ``` -### [jqs] querySelector +### [j.qs] querySelector ```javascript ${1:document}.querySelector('${2:selector}'); ``` -### [jrattr] removeAttribute +### [j.rattr] removeAttribute ```javascript ${1:document}.removeAttribute('${2:attr}'); ``` -### [jrc] removeChild +### [j.rc] removeChild ```javascript ${1:document}.removeChild(${2:element}); ``` -### [jsattr] setAttribute +### [j.sattr] setAttribute ```javascript ${1:document}.setAttribute('${2:attr}', ${3:value}); ``` -### [jtc] textContent +### [j.tc] textContent ```javascript ${1:document}.textContent = '${2:content}'; diff --git a/snippets/js/vanilla/dom/js-dom-add-event-listener.sublime-snippet b/snippets/js/vanilla/dom/js-dom-add-event-listener.sublime-snippet index e16e186..fdded62 100644 --- a/snippets/js/vanilla/dom/js-dom-add-event-listener.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-add-event-listener.sublime-snippet @@ -4,6 +4,6 @@ ${1:document}.addEventListener('${2:event}', function(event) { ${3} }); ]]> - j-ael + j.ael j - addEventListener diff --git a/snippets/js/vanilla/dom/js-dom-append-child.sublime-snippet b/snippets/js/vanilla/dom/js-dom-append-child.sublime-snippet index 353afee..de6548b 100644 --- a/snippets/js/vanilla/dom/js-dom-append-child.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-append-child.sublime-snippet @@ -2,6 +2,6 @@ - jac + j.ac j - appendChild diff --git a/snippets/js/vanilla/dom/js-dom-class-list-add.sublime-snippet b/snippets/js/vanilla/dom/js-dom-class-list-add.sublime-snippet index 5bb3e35..5e627e6 100644 --- a/snippets/js/vanilla/dom/js-dom-class-list-add.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-class-list-add.sublime-snippet @@ -2,6 +2,6 @@ - jcla + j.cla j - classList.add diff --git a/snippets/js/vanilla/dom/js-dom-class-list-remove.sublime-snippet b/snippets/js/vanilla/dom/js-dom-class-list-remove.sublime-snippet index 7c76adc..ed59b36 100644 --- a/snippets/js/vanilla/dom/js-dom-class-list-remove.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-class-list-remove.sublime-snippet @@ -2,6 +2,6 @@ - jclr + j.clr j - classList.remove diff --git a/snippets/js/vanilla/dom/js-dom-class-list-toggle.sublime-snippet b/snippets/js/vanilla/dom/js-dom-class-list-toggle.sublime-snippet index 16e1420..10ed059 100644 --- a/snippets/js/vanilla/dom/js-dom-class-list-toggle.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-class-list-toggle.sublime-snippet @@ -2,6 +2,6 @@ - jclt + j.clt j - classList.toggle diff --git a/snippets/js/vanilla/dom/js-dom-create-document-fragment.sublime-snippet b/snippets/js/vanilla/dom/js-dom-create-document-fragment.sublime-snippet index 8a29ed3..795828d 100644 --- a/snippets/js/vanilla/dom/js-dom-create-document-fragment.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-create-document-fragment.sublime-snippet @@ -2,6 +2,6 @@ - jcdf + j.cdf j - createDocumentFragment diff --git a/snippets/js/vanilla/dom/js-dom-create-element.sublime-snippet b/snippets/js/vanilla/dom/js-dom-create-element.sublime-snippet index cc7a5c3..cf019de 100644 --- a/snippets/js/vanilla/dom/js-dom-create-element.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-create-element.sublime-snippet @@ -2,6 +2,6 @@ - jcel + j.cel j - createElement diff --git a/snippets/js/vanilla/dom/js-dom-get-attribute.sublime-snippet b/snippets/js/vanilla/dom/js-dom-get-attribute.sublime-snippet index f0d2989..e6a9a5a 100644 --- a/snippets/js/vanilla/dom/js-dom-get-attribute.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-get-attribute.sublime-snippet @@ -2,6 +2,6 @@ - jgattr + j.gattr j - getAttribute diff --git a/snippets/js/vanilla/dom/js-dom-get-element-by-id.sublime-snippet b/snippets/js/vanilla/dom/js-dom-get-element-by-id.sublime-snippet index d2098fe..14afd16 100644 --- a/snippets/js/vanilla/dom/js-dom-get-element-by-id.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-get-element-by-id.sublime-snippet @@ -2,6 +2,6 @@ - jgid + j.gid j - getElementById diff --git a/snippets/js/vanilla/dom/js-dom-get-elements-by-class-name.sublime-snippet b/snippets/js/vanilla/dom/js-dom-get-elements-by-class-name.sublime-snippet index b529920..00e78fd 100644 --- a/snippets/js/vanilla/dom/js-dom-get-elements-by-class-name.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-get-elements-by-class-name.sublime-snippet @@ -2,6 +2,6 @@ - jgclass + j.gclass j - getElementsByClassName diff --git a/snippets/js/vanilla/dom/js-dom-get-elements-by-tag-name.sublime-snippet b/snippets/js/vanilla/dom/js-dom-get-elements-by-tag-name.sublime-snippet index 9a12f63..9038fbb 100644 --- a/snippets/js/vanilla/dom/js-dom-get-elements-by-tag-name.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-get-elements-by-tag-name.sublime-snippet @@ -2,6 +2,6 @@ - jgtag + j.gtag j - getElementsByTagName diff --git a/snippets/js/vanilla/dom/js-dom-inner-html.sublime-snippet b/snippets/js/vanilla/dom/js-dom-inner-html.sublime-snippet index b42aadc..55d8fda 100644 --- a/snippets/js/vanilla/dom/js-dom-inner-html.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-inner-html.sublime-snippet @@ -2,6 +2,6 @@ - jih + j.ih j - innerHTML diff --git a/snippets/js/vanilla/dom/js-dom-query-selector-all.sublime-snippet b/snippets/js/vanilla/dom/js-dom-query-selector-all.sublime-snippet index 68b9866..381c9ec 100644 --- a/snippets/js/vanilla/dom/js-dom-query-selector-all.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-query-selector-all.sublime-snippet @@ -2,6 +2,6 @@ - jqsa + j.qsa j - querySelectorAll diff --git a/snippets/js/vanilla/dom/js-dom-query-selector.sublime-snippet b/snippets/js/vanilla/dom/js-dom-query-selector.sublime-snippet index 7e414ad..e4639cd 100644 --- a/snippets/js/vanilla/dom/js-dom-query-selector.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-query-selector.sublime-snippet @@ -2,6 +2,6 @@ - jqs + j.qs j - querySelector diff --git a/snippets/js/vanilla/dom/js-dom-remove-attribute.sublime-snippet b/snippets/js/vanilla/dom/js-dom-remove-attribute.sublime-snippet index 5fe68ce..a54e80e 100644 --- a/snippets/js/vanilla/dom/js-dom-remove-attribute.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-remove-attribute.sublime-snippet @@ -2,6 +2,6 @@ - jrattr + j.rattr j - removeAttribute diff --git a/snippets/js/vanilla/dom/js-dom-remove-child.sublime-snippet b/snippets/js/vanilla/dom/js-dom-remove-child.sublime-snippet index 82a7a6c..d2ec106 100644 --- a/snippets/js/vanilla/dom/js-dom-remove-child.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-remove-child.sublime-snippet @@ -2,6 +2,6 @@ - jrc + j.rc j - removeChild diff --git a/snippets/js/vanilla/dom/js-dom-set-attribute.sublime-snippet b/snippets/js/vanilla/dom/js-dom-set-attribute.sublime-snippet index 1c97e83..ffcecc1 100644 --- a/snippets/js/vanilla/dom/js-dom-set-attribute.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-set-attribute.sublime-snippet @@ -2,6 +2,6 @@ - jsattr + j.sattr j - setAttribute diff --git a/snippets/js/vanilla/dom/js-dom-text-content.sublime-snippet b/snippets/js/vanilla/dom/js-dom-text-content.sublime-snippet index 07ec84b..2d67a94 100644 --- a/snippets/js/vanilla/dom/js-dom-text-content.sublime-snippet +++ b/snippets/js/vanilla/dom/js-dom-text-content.sublime-snippet @@ -2,6 +2,6 @@ - jtc + j.tc j - textContent diff --git a/snippets/js/vanilla/function/README.md b/snippets/js/vanilla/function/README.md index 16bea07..f8dca55 100644 --- a/snippets/js/vanilla/function/README.md +++ b/snippets/js/vanilla/function/README.md @@ -1,6 +1,6 @@ ## JavaScript Function Snippets -### [jafn] Anonymous Function +### [j.afn] Anonymous Function ```javascript function(${1:arguments}) { @@ -8,19 +8,19 @@ function(${1:arguments}) { } ``` -### [japply] Function apply +### [j.apply] Function apply ```javascript ${1:methodName}.apply(${2:context}, [${3:arguments}]) ``` -### [jcall] Function call +### [j.call] Function call ```javascript ${1:methodName}.call(${2:context}, ${3:arguments}) ``` -### [jiife] Immediately-invoked function expression +### [j.iife] Immediately-invoked function expression ```javascript (function(window, document, undefined) { @@ -28,7 +28,7 @@ ${1:methodName}.call(${2:context}, ${3:arguments}) })(window, document); ``` -### [jprot] Prototype +### [j.prot] Prototype ```javascript ${1:ClassName}.prototype.${2:methodName} = function(${3:arguments}) { @@ -36,7 +36,7 @@ ${1:ClassName}.prototype.${2:methodName} = function(${3:arguments}) { } ``` -### [jfn] Function +### [j.fn] Function ```javascript function ${1:methodName}(${2:arguments}) { diff --git a/snippets/js/vanilla/function/js-function-anonymous.sublime-snippet b/snippets/js/vanilla/function/js-function-anonymous.sublime-snippet index 6c71a51..8040059 100644 --- a/snippets/js/vanilla/function/js-function-anonymous.sublime-snippet +++ b/snippets/js/vanilla/function/js-function-anonymous.sublime-snippet @@ -4,6 +4,6 @@ function(${1:arguments}) { ${2} } ]]> - jafn + j.afn j - Anonymous Function diff --git a/snippets/js/vanilla/function/js-function-apply.sublime-snippet b/snippets/js/vanilla/function/js-function-apply.sublime-snippet index cf4b56e..1313db3 100644 --- a/snippets/js/vanilla/function/js-function-apply.sublime-snippet +++ b/snippets/js/vanilla/function/js-function-apply.sublime-snippet @@ -2,6 +2,6 @@ - japply + j.apply j - Function apply diff --git a/snippets/js/vanilla/function/js-function-call.sublime-snippet b/snippets/js/vanilla/function/js-function-call.sublime-snippet index a435e0c..46dd8b6 100644 --- a/snippets/js/vanilla/function/js-function-call.sublime-snippet +++ b/snippets/js/vanilla/function/js-function-call.sublime-snippet @@ -2,6 +2,6 @@ - jcall + j.call j - Function call diff --git a/snippets/js/vanilla/function/js-function-iife.sublime-snippet b/snippets/js/vanilla/function/js-function-iife.sublime-snippet index 80e5d07..e84d741 100644 --- a/snippets/js/vanilla/function/js-function-iife.sublime-snippet +++ b/snippets/js/vanilla/function/js-function-iife.sublime-snippet @@ -4,6 +4,6 @@ ${1} })(window, document); ]]> - j-iife + j.iife j - Immediately-invoked function expression diff --git a/snippets/js/vanilla/function/js-function-prototype.sublime-snippet b/snippets/js/vanilla/function/js-function-prototype.sublime-snippet index 697df56..73f4f49 100644 --- a/snippets/js/vanilla/function/js-function-prototype.sublime-snippet +++ b/snippets/js/vanilla/function/js-function-prototype.sublime-snippet @@ -4,6 +4,6 @@ ${1:ClassName}.prototype.${2:methodName} = function(${3:arguments}) { ${4} } ]]> - jprot + j.prot j - Prototype diff --git a/snippets/js/vanilla/function/js-function.sublime-snippet b/snippets/js/vanilla/function/js-function.sublime-snippet index 89a1fc2..461d810 100644 --- a/snippets/js/vanilla/function/js-function.sublime-snippet +++ b/snippets/js/vanilla/function/js-function.sublime-snippet @@ -4,6 +4,6 @@ function ${1:methodName}(${2:arguments}) { ${3} } ]]> - jfn + j.fn j - Function diff --git a/snippets/js/vanilla/json/README.md b/snippets/js/vanilla/json/README.md index bb5cf0c..3356ae3 100644 --- a/snippets/js/vanilla/json/README.md +++ b/snippets/js/vanilla/json/README.md @@ -1,12 +1,12 @@ ## JavaScript JSON Snippets -### [jjsonp] JSON.parse +### [j.jsonp] JSON.parse ```javascript JSON.parse(${1:obj}); ``` -### [jjsons] JSON.stringify +### [j.jsons] JSON.stringify ```javascript JSON.stringify(${1:obj}); diff --git a/snippets/js/vanilla/json/js-json-parse.sublime-snippet b/snippets/js/vanilla/json/js-json-parse.sublime-snippet index dc77961..3d64e78 100644 --- a/snippets/js/vanilla/json/js-json-parse.sublime-snippet +++ b/snippets/js/vanilla/json/js-json-parse.sublime-snippet @@ -2,6 +2,6 @@ - jjsonp + j.jsonp j - JSON.parse diff --git a/snippets/js/vanilla/json/js-json-stringify.sublime-snippet b/snippets/js/vanilla/json/js-json-stringify.sublime-snippet index aa520ae..dca57e8 100644 --- a/snippets/js/vanilla/json/js-json-stringify.sublime-snippet +++ b/snippets/js/vanilla/json/js-json-stringify.sublime-snippet @@ -2,6 +2,6 @@ - jjsons + j.jsons j - JSON.stringify diff --git a/snippets/js/vanilla/loop/README.md b/snippets/js/vanilla/loop/README.md index cdba312..afa8755 100644 --- a/snippets/js/vanilla/loop/README.md +++ b/snippets/js/vanilla/loop/README.md @@ -1,6 +1,14 @@ ## JavaScript Loop Snippets -### [jfore] forEach +### [j.dowhile] do while + +```javascript +do { + ${1:expression} +} while (${2:condition}); +``` + +### [j.fore] forEach ```javascript ${1:myArray}.forEach(function(${2:element}) { @@ -8,7 +16,7 @@ ${1:myArray}.forEach(function(${2:element}) { }); ``` -### [jfori] for in +### [j.fori] for in ```javascript for (${1:prop} in ${2:obj}) { @@ -18,10 +26,18 @@ for (${1:prop} in ${2:obj}) { } ``` -### [jfor] for +### [j.for] for ```javascript for (var i = ${1:0}, len = ${2:10}; i ${3:<=} len; i${4:++} ) { ${5} } ``` + +### [j.while] while + +```javascript +while (${1:condition}) { + ${2:expression} +} +``` diff --git a/snippets/js/vanilla/loop/js-loop-do-while.sublime-snippet b/snippets/js/vanilla/loop/js-loop-do-while.sublime-snippet new file mode 100644 index 0000000..2f00269 --- /dev/null +++ b/snippets/js/vanilla/loop/js-loop-do-while.sublime-snippet @@ -0,0 +1,9 @@ + + + j.dowhile + j - do while + diff --git a/snippets/js/vanilla/loop/js-loop-for-each.sublime-snippet b/snippets/js/vanilla/loop/js-loop-for-each.sublime-snippet index c327ee0..428fcd1 100644 --- a/snippets/js/vanilla/loop/js-loop-for-each.sublime-snippet +++ b/snippets/js/vanilla/loop/js-loop-for-each.sublime-snippet @@ -4,6 +4,6 @@ ${1:myArray}.forEach(function(${2:element}) { ${3} }); ]]> - jfore + j.fore j - forEach diff --git a/snippets/js/vanilla/loop/js-loop-for-in.sublime-snippet b/snippets/js/vanilla/loop/js-loop-for-in.sublime-snippet index 2372b03..09539ab 100644 --- a/snippets/js/vanilla/loop/js-loop-for-in.sublime-snippet +++ b/snippets/js/vanilla/loop/js-loop-for-in.sublime-snippet @@ -6,6 +6,6 @@ for (${1:prop} in ${2:obj}) { } } ]]> - jfori + j.fori j - for in diff --git a/snippets/js/vanilla/loop/js-loop-for.sublime-snippet b/snippets/js/vanilla/loop/js-loop-for.sublime-snippet index 238d362..c11095c 100644 --- a/snippets/js/vanilla/loop/js-loop-for.sublime-snippet +++ b/snippets/js/vanilla/loop/js-loop-for.sublime-snippet @@ -4,6 +4,6 @@ for (var i = ${1:0}, len = ${2:10}; i ${3:<=} len; i${4:++} ) { ${5} } ]]> - jfor + j.for j - for diff --git a/snippets/js/vanilla/loop/js-loop-while.sublime-snippet b/snippets/js/vanilla/loop/js-loop-while.sublime-snippet new file mode 100644 index 0000000..2a43e77 --- /dev/null +++ b/snippets/js/vanilla/loop/js-loop-while.sublime-snippet @@ -0,0 +1,9 @@ + + + j.while + j - while + diff --git a/snippets/js/vanilla/statements/README.md b/snippets/js/vanilla/statements/README.md new file mode 100644 index 0000000..ca24948 --- /dev/null +++ b/snippets/js/vanilla/statements/README.md @@ -0,0 +1,13 @@ +## JavaScript Statements Snippets + +### [j.new] new + +```javascript +${1:var} ${2:me} = new ${3:me}(${4}); +``` + +### [j.require] require + +```javascript +${1:var} ${2:me} = require('${3:me}'); +``` diff --git a/snippets/js/vanilla/statements/js-statements-new.sublime-snippet b/snippets/js/vanilla/statements/js-statements-new.sublime-snippet new file mode 100644 index 0000000..15580ba --- /dev/null +++ b/snippets/js/vanilla/statements/js-statements-new.sublime-snippet @@ -0,0 +1,7 @@ + + + j.new + j - New + diff --git a/snippets/js/vanilla/statements/js-statements-require.sublime-snippet b/snippets/js/vanilla/statements/js-statements-require.sublime-snippet new file mode 100644 index 0000000..6670361 --- /dev/null +++ b/snippets/js/vanilla/statements/js-statements-require.sublime-snippet @@ -0,0 +1,7 @@ + + + j.require + j - Require + diff --git a/snippets/js/vanilla/timer/README.md b/snippets/js/vanilla/timer/README.md index b9d0346..b216270 100644 --- a/snippets/js/vanilla/timer/README.md +++ b/snippets/js/vanilla/timer/README.md @@ -1,6 +1,6 @@ ## JavaScript Timer Snippets -### [jsinterval] setInterval +### [j.sinterval] setInterval ```javascript setInterval(function() { @@ -8,7 +8,7 @@ setInterval(function() { }, ${1:delay}); ``` -### [jstimeout] setTimeout +### [j.stimeout] setTimeout ```javascript setTimeout(function() { diff --git a/snippets/js/vanilla/timer/js-timer-set-interval.sublime-snippet b/snippets/js/vanilla/timer/js-timer-set-interval.sublime-snippet index 3369f11..6aa2b28 100644 --- a/snippets/js/vanilla/timer/js-timer-set-interval.sublime-snippet +++ b/snippets/js/vanilla/timer/js-timer-set-interval.sublime-snippet @@ -4,6 +4,6 @@ setInterval(function() { ${2} }, ${1:delay}); ]]> - jsinterval + j.sinterval j - setInterval diff --git a/snippets/js/vanilla/timer/js-timer-set-timeout.sublime-snippet b/snippets/js/vanilla/timer/js-timer-set-timeout.sublime-snippet index 7d1df06..6b0ad6c 100644 --- a/snippets/js/vanilla/timer/js-timer-set-timeout.sublime-snippet +++ b/snippets/js/vanilla/timer/js-timer-set-timeout.sublime-snippet @@ -1,9 +1,9 @@ - jstimeout + j.stimeout j - setTimeout diff --git a/snippets/regex/README.md b/snippets/regex/README.md new file mode 100644 index 0000000..05cf593 --- /dev/null +++ b/snippets/regex/README.md @@ -0,0 +1,41 @@ +# Regex Snippets + +## Prefix `r.*` + +### [r.bcnpj] Brazilian CNPJ + +**allow:** xx.xxx.xxx/xxxx-xx | xxxxxxxxxxxxxx + +```javascript +(^(\d{2}.\d{3}.\d{3}/\d{4}-\d{2})|(\d{14})\$) +``` + +### [r.bcpfcnpj] Brazilian CPF/CNPJ + +**allow:** xx.xxx.xxx/xxxx-xx | xxx.xxx.xxx-xx + +```javascript +(\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2})|(\d{3}\.\d{3}\.\d{3}\-\d{2}) +``` + +### [r.bcpf] Brazilian CPF + +**allow:** xxx.xxx.xxx-xx | xxxxxxxxxxxx + +```javascript +(^(\d{3}.\d{3}.\d{3}-\d{2})|(\d{11})\$) +``` + +### [r.bphone] Brazilian Phone + +**allow:** (xx) xxxx-xxxx | (xx) xxxx-xxxxx | xx-xxxx-xxxxx | xx xxxx-xxxx | xx xxxxxxxxx | xxxxxxxx | xxxx-xxxx + +```javascript +^(\(\d{2}\)?\s?|\d{2}(\-|\s))?\d{2,4}(\-|\s)?\d{4,5}\$ +``` + +### [r.email] E-mail + +```javascript +^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})\$ +``` diff --git a/snippets/regex/regex-brazilian-cnpj.sublime-snippet b/snippets/regex/regex-brazilian-cnpj.sublime-snippet new file mode 100644 index 0000000..0272313 --- /dev/null +++ b/snippets/regex/regex-brazilian-cnpj.sublime-snippet @@ -0,0 +1,7 @@ + + + r.bcnpj + r - Brazilian CNPJ + diff --git a/snippets/regex/regex-brazilian-cpf-cnpj.sublime-snippet b/snippets/regex/regex-brazilian-cpf-cnpj.sublime-snippet new file mode 100644 index 0000000..0f41f0d --- /dev/null +++ b/snippets/regex/regex-brazilian-cpf-cnpj.sublime-snippet @@ -0,0 +1,7 @@ + + + r.bcpfcnpj + r - Brazilian CPF/CNPJ + diff --git a/snippets/regex/regex-brazilian-cpf.sublime-snippet b/snippets/regex/regex-brazilian-cpf.sublime-snippet new file mode 100644 index 0000000..ab2a230 --- /dev/null +++ b/snippets/regex/regex-brazilian-cpf.sublime-snippet @@ -0,0 +1,7 @@ + + + r.bcpf + r - Brazilian CPF + diff --git a/snippets/regex/regex-brazilian-phone.sublime-snippet b/snippets/regex/regex-brazilian-phone.sublime-snippet new file mode 100644 index 0000000..5bba87f --- /dev/null +++ b/snippets/regex/regex-brazilian-phone.sublime-snippet @@ -0,0 +1,7 @@ + + + r.bphone + r - Brazilian Phone + diff --git a/snippets/regex/regex-email.sublime-snippet b/snippets/regex/regex-email.sublime-snippet new file mode 100644 index 0000000..dd877e6 --- /dev/null +++ b/snippets/regex/regex-email.sublime-snippet @@ -0,0 +1,7 @@ + + + r.email + r - E-mail + diff --git a/snippets/schema/README.md b/snippets/schema/README.md new file mode 100644 index 0000000..7b47ff6 --- /dev/null +++ b/snippets/schema/README.md @@ -0,0 +1,5 @@ +# Schema.org + +- [JSON-LD](json-ld/) +- [Microdata](microdata/) +- [RDFa](rdfa/) diff --git a/snippets/schema/json-ld/README.md b/snippets/schema/json-ld/README.md new file mode 100644 index 0000000..bdeea6f --- /dev/null +++ b/snippets/schema/json-ld/README.md @@ -0,0 +1,18 @@ +# JSON-LD Snippets + +## Prefix `sj.*` + +## Organization + +### [sj.logo] Logotype + +```html + +``` diff --git a/snippets/schema/json-ld/json-ld-logotype.sublime-snippet b/snippets/schema/json-ld/json-ld-logotype.sublime-snippet new file mode 100644 index 0000000..c65f18d --- /dev/null +++ b/snippets/schema/json-ld/json-ld-logotype.sublime-snippet @@ -0,0 +1,14 @@ + + +{ + "@context": "http://schema.org", + "@type": "Organization", + "url": "${1:http://www.example.com}", + "logo": "${2:http://www.example.com/images/logo.png}" +} + +]]> + sj.logo + sj - Logotype + diff --git a/snippets/schema/microdata/README.md b/snippets/schema/microdata/README.md index bc83a96..1a279c7 100644 --- a/snippets/schema/microdata/README.md +++ b/snippets/schema/microdata/README.md @@ -1,10 +1,10 @@ # Microdata Snippets -Prefix `m*` +## Prefix `sm.*` ## Organization -### [morg] http://schema.org/Organization +### [sm.org] http://schema.org/Organization ```html itemscope="itemscope" itemtype="http://schema.org/Organization" @@ -12,7 +12,7 @@ itemscope="itemscope" itemtype="http://schema.org/Organization" ## Action -### [maction] http://schema.org/Action +### [sm.action] http://schema.org/Action ```html itemscope="itemscope" itemtype="http://schema.org/Action" diff --git a/snippets/schema/microdata/microdata-action.sublime-snippet b/snippets/schema/microdata/microdata-action.sublime-snippet index c55922a..21433ee 100644 --- a/snippets/schema/microdata/microdata-action.sublime-snippet +++ b/snippets/schema/microdata/microdata-action.sublime-snippet @@ -2,6 +2,6 @@ - maction - m - Action + sm.action + sm - Action diff --git a/snippets/schema/microdata/microdata-organization.sublime-snippet b/snippets/schema/microdata/microdata-organization.sublime-snippet index be835f9..3e76237 100644 --- a/snippets/schema/microdata/microdata-organization.sublime-snippet +++ b/snippets/schema/microdata/microdata-organization.sublime-snippet @@ -2,6 +2,6 @@ - morg - m - Organization + sm.org + sm - Organization diff --git a/snippets/schema/rdfa/README.md b/snippets/schema/rdfa/README.md new file mode 100644 index 0000000..222ce11 --- /dev/null +++ b/snippets/schema/rdfa/README.md @@ -0,0 +1,25 @@ +# RDFa Snippets + +## Prefix `sr.*` + +### [sr.breadcrumb] Breadcrumb + +```html + +``` diff --git a/snippets/schema/rdfa/redfa-breadcrumb.sublime-snippet b/snippets/schema/rdfa/redfa-breadcrumb.sublime-snippet new file mode 100644 index 0000000..4881428 --- /dev/null +++ b/snippets/schema/rdfa/redfa-breadcrumb.sublime-snippet @@ -0,0 +1,23 @@ + + + + + ${2:Dresses} + › + + + + ${4:Real Dresses} + › + + + + ${6:Real Green Dresses} + › + +
+]]>
+ sr.breadcrumb + sr - Breadcrumb +
diff --git a/snippets/structured-data/json-ld/README.md b/snippets/structured-data/json-ld/README.md index 4f38cf6..a449e37 100644 --- a/snippets/structured-data/json-ld/README.md +++ b/snippets/structured-data/json-ld/README.md @@ -1,6 +1,6 @@ # JSON-LD -key: `zjsonld` +## key: `z.jsonld` ### Logotype diff --git a/snippets/structured-data/json-ld/structured-data-json-ld-logotype.sublime-snippet b/snippets/structured-data/json-ld/structured-data-json-ld-logotype.sublime-snippet index 7432bc1..12ecf78 100644 --- a/snippets/structured-data/json-ld/structured-data-json-ld-logotype.sublime-snippet +++ b/snippets/structured-data/json-ld/structured-data-json-ld-logotype.sublime-snippet @@ -9,6 +9,6 @@ } ]]> - zjsonld - Logotype + z.jsonld + jsonld - Logotype diff --git a/snippets/structured-data/microdata/README.md b/snippets/structured-data/microdata/README.md index c655836..3f88ac2 100644 --- a/snippets/structured-data/microdata/README.md +++ b/snippets/structured-data/microdata/README.md @@ -1,6 +1,6 @@ # Schema (microdata) -key: `zmicrodata` +## key: `z.microdata` ### Organization diff --git a/snippets/structured-data/microdata/creative-work/structured-data-microdata-article.sublime-snippet b/snippets/structured-data/microdata/creative-work/structured-data-microdata-article.sublime-snippet index bde0160..dc462a0 100644 --- a/snippets/structured-data/microdata/creative-work/structured-data-microdata-article.sublime-snippet +++ b/snippets/structured-data/microdata/creative-work/structured-data-microdata-article.sublime-snippet @@ -17,6 +17,6 @@
]]> - zmicrodata - Article + z.microdata + microdata - Article diff --git a/snippets/structured-data/microdata/creative-work/structured-data-microdata-book.sublime-snippet b/snippets/structured-data/microdata/creative-work/structured-data-microdata-book.sublime-snippet index 417aa5d..af7a860 100644 --- a/snippets/structured-data/microdata/creative-work/structured-data-microdata-book.sublime-snippet +++ b/snippets/structured-data/microdata/creative-work/structured-data-microdata-book.sublime-snippet @@ -26,6 +26,6 @@ ]]> - zmicrodata - Book + z.microdata + microdata - Book diff --git a/snippets/structured-data/microdata/creative-work/structured-data-microdata-game.sublime-snippet b/snippets/structured-data/microdata/creative-work/structured-data-microdata-game.sublime-snippet index ed28874..04f9fec 100644 --- a/snippets/structured-data/microdata/creative-work/structured-data-microdata-game.sublime-snippet +++ b/snippets/structured-data/microdata/creative-work/structured-data-microdata-game.sublime-snippet @@ -3,7 +3,7 @@
Approx. Retail: - $17.99 + \$17.99 Where To Buy
@@ -11,9 +11,9 @@

Game Description:

Own it all as a high-flying trader in the fast-paced world of real estate. Tour the city for the hottest properties: sites, stations and utilities are all up for grabs. Invest in houses and hotels, then watch the rent come pouring in! Make deals with other players and look out for bargains at auction. There are many ways to get what you want. For really speedy dealers, use the speed die for a quick and intense game of Monopoly. So get on Go and trade your way to success!

Includes gameboard, 8 tokens, 28 Title Deed cards, 16 Chance cards, 16 Community Chest cards, money pack, 32 houses, 12 hotels, 2 dice and instructions

•Features a speed die for a faster, more intense game
•Includes the new token that was voted No. 1: the cat

For

-3 to 5 players
.

Ages 8 and up.

Monopoly and all related characters are trademarks of Hasbro.

+3 to 5 players .

Ages 8 and up.

Monopoly and all related characters are trademarks of Hasbro.
]]> - zmicrodata - Game + z.microdata + microdata - Game diff --git a/snippets/structured-data/microdata/creative-work/structured-data-microdata-webpage.sublime-snippet b/snippets/structured-data/microdata/creative-work/structured-data-microdata-webpage.sublime-snippet index 46fe008..82a4593 100644 --- a/snippets/structured-data/microdata/creative-work/structured-data-microdata-webpage.sublime-snippet +++ b/snippets/structured-data/microdata/creative-work/structured-data-microdata-webpage.sublime-snippet @@ -48,6 +48,6 @@ Reviews: ... ]]> - zmicrodata - WebPage + z.microdata + microdata - WebPage diff --git a/snippets/structured-data/microdata/structured-data-microdata-organization.sublime-snippet b/snippets/structured-data/microdata/structured-data-microdata-organization.sublime-snippet index 1a09153..c8fdf05 100644 --- a/snippets/structured-data/microdata/structured-data-microdata-organization.sublime-snippet +++ b/snippets/structured-data/microdata/structured-data-microdata-organization.sublime-snippet @@ -26,6 +26,6 @@ List of Alumni: History: ]]> - zmicrodata - Organization + z.microdata + microdata - Organization diff --git a/snippets/structured-data/rdfa/README.md b/snippets/structured-data/rdfa/README.md index 11cd7d9..00eac13 100644 --- a/snippets/structured-data/rdfa/README.md +++ b/snippets/structured-data/rdfa/README.md @@ -1,6 +1,6 @@ # RDFa -key: `zrdfa` +## key: `z.rdfa` ### Breadcrumb diff --git a/snippets/structured-data/rdfa/structured-data-rfda-breadcrumb.sublime-snippet b/snippets/structured-data/rdfa/structured-data-rfda-breadcrumb.sublime-snippet index 61f6548..33ac668 100644 --- a/snippets/structured-data/rdfa/structured-data-rfda-breadcrumb.sublime-snippet +++ b/snippets/structured-data/rdfa/structured-data-rfda-breadcrumb.sublime-snippet @@ -18,6 +18,6 @@ ]]> - zrdfa - Breadcrumb + z.rdfa + rdfa - Breadcrumb diff --git a/source/__init__.pyc b/source/__init__.pyc new file mode 100644 index 0000000..5203163 Binary files /dev/null and b/source/__init__.pyc differ diff --git a/source/duplicates.py b/source/duplicates.py new file mode 100644 index 0000000..da822bf --- /dev/null +++ b/source/duplicates.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 + +def list_duplicates(seq): + seen = set() + seen_add = seen.add + # adds all elements it doesn't know yet to seen and all other to seen_twice + seen_twice = set( x for x in seq if x in seen or seen_add(x) ) + # turn the set into a list (as requested) + return list( seen_twice ) diff --git a/source/json_generator.py b/source/json_generator.py new file mode 100644 index 0000000..c6c1876 --- /dev/null +++ b/source/json_generator.py @@ -0,0 +1,38 @@ +#!/usr/bin/env python3 + +import os +import fnmatch +from json import dumps + +def write_json(data, filename): + try: + jsondata = dumps(data, indent=2, skipkeys=True, sort_keys=True) + fd = open(filename, 'w') + fd.write(jsondata) + fd.close() + except: + #print "ERROR writing %s"%filename + pass + +def get_dir(path, ext): + matches = [] + for root, dirnames, filenames in os.walk(path): + for filename in fnmatch.filter(filenames, ext): + matches.append(os.path.join(root, filename)) + return matches + +def get_json(path): + result = [] + for count, file in enumerate(get_dir( path, '*.sublime-snippet'), start=1): + with open(file) as line: + content = line.read() + + trigger = content.split('')[1].split('')[0] + description = content.split('')[1].split('')[0] + + result.append({'id':count, 'trigger':trigger, 'description':description}) + + return result + + +# write_json(get_json('../snippets/'), "../snippets.json") diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test.py b/tests/test.py new file mode 100644 index 0000000..1841095 --- /dev/null +++ b/tests/test.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python3 + +import sys +sys.path.append('source/') +from json_generator import get_json +from duplicates import list_duplicates +import json +import re +import unittest + +class TestDuplicatesMethods(unittest.TestCase): + + def test_duplicates(self): + json = get_json('snippets/') + triggers = [] + for snippet in json: + trigger = snippet['trigger'] + if re.search(r'z.', trigger) is None: + triggers.append(trigger) + + self.assertEqual(list_duplicates(triggers), []) + +if __name__ == '__main__': + unittest.main() diff --git a/tests/unittest_compat.py b/tests/unittest_compat.py new file mode 100644 index 0000000..e69de29 diff --git a/translations/pt_BR/README.md b/translations/pt_BR/README.md new file mode 100644 index 0000000..b4492ee --- /dev/null +++ b/translations/pt_BR/README.md @@ -0,0 +1,95 @@ +# Front-end Project Snippets + +[![Travis](https://img.shields.io/travis/w3dotdev/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/w3dotdev/sublime-front-end-snippets) +[![issues](https://img.shields.io/github/issues/w3dotdev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/w3dotdev/sublime-front-end-snippets/issues) +[![Package Control](https://img.shields.io/packagecontrol/dt/Front-end%20Project%20Snippets.svg?style=flat-square)](https://packagecontrol.io/packages/Front-end%20Project%20Snippets) +[![GitHub release](https://img.shields.io/github/release/w3dotdev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/w3dotdev/sublime-front-end-snippets/releases) +[![licence mit](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](http://hemersonvianna.mit-license.org/) + +![animation](https://cloud.githubusercontent.com/assets/1963897/12625364/a94decc8-c51a-11e5-8546-ca331af65982.gif) + +## Traduções + +* [ORIGINAL](https://github.com/w3dotdev/sublime-front-end-snippets/) + +## Instalação + +Se você já tem o [Package Control](http://wbond.net/sublime_packages/package_control) instalado, basta procurar por `Front-end Project Snippets`. Se você não tiver instalado no Sublime, você pode fazê-lo [aqui](http://wbond.net/sublime_packages/package_control/installation). + +Você pode baixar manualmente o pacote e colocá-lo dentro do seu diretório `Packages`. Ele vai funcionar, mas ele não será atualizado automaticamente. + +Você pode ver os snippets instalados em `Tools > Snippets...`, no Sublime Text. + +[Testado no windows] Quando o "."(ponto) é utilizado, o autocomplete desaparece. Para resolver esse problema, basta colocar em seu usuário `Preferences > Settings - User`, a propriedade `word_separators` com o valor sem "."(ponto). Você pode ver um exemplo [aqui](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/Preferences.sublime-settings). + +## Snippets e prefixos/chaves + +- [HTML - h.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/html/) + - [Microdata - hm.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/html/schema/microdata) + - [WAI-ARIA - hw.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/html/wai-aria) +- [CSS - c.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/css/) +- [JavaScript - j.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/vanilla) + - [EcmaScript 2015 - je.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/es6/) + - [Libraries](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/libraries) + - [jQuery - jq.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/libraries/jquery) + - [React - jr.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/libraries/react) + - [Patterns](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/patterns) + - [Design Patterns - jdp.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/patterns/design-patterns) + - [UMD - jumd.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/patterns/umd) + - [Tests](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/tests) + - [Common - t.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/tests/common) + - [Chai - tc.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/tests/chai) + - [Jasmine - tj.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/tests/jasmine) + - [Mocha - tm.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/tests/mocha) + - [Node - tn.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/tests/node) + - [QUnit - tq.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/tests/qunit) + - [Sinon - ts.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/js/tests/sinon) +- [Regex](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/regex/) +- [Schema.org](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/schema) + - [JSON-LD - sj.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/schema/json-ld) + - [Microdata - sm.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/schema/microdata) + - [RDFa - sr.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/schema/rdfa) +- [External - e.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/external/) +- [Comment](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/comment/) + - [HTML - hc.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/comment/html) + - [CSS - cc.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/comment/css) + - [JavaScript - jc.*](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/comment/js) +- [Structure data](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/structured-data) (***examples***) + - [Microdata - z.microdata](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/structured-data/microdata) + - [JSON-LD - z.jsonld](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/structured-data/json-ld) + - [RDFa - z.rdfa](https://github.com/w3dotdev/sublime-front-end-snippets/blob/master/snippets/structured-data/rdfa) + +## Referências + +* [@caiogondim](https://github.com/caiogondim) (Caio Gondim) + [https://github.com/caiogondim/js-patterns-sublime-snippets](https://github.com/caiogondim/js-patterns-sublime-snippets) +* [@zenorocha](https://github.com/zenorocha) (Zeno Rocha) + [https://github.com/zenorocha/sublime-javascript-snippets](https://github.com/zenorocha/sublime-javascript-snippets) +* [@joshnh](https://github.com/joshnh) (Joshua Hibbert) + [https://github.com/joshnh/CSS-Snippets](https://github.com/joshnh/CSS-Snippets) +* (Schema.org) [http://schema.org/](http://schema.org/) +* (jQuery) [https://api.jquery.com/](https://api.jquery.com/) +* (jQuery Boilerplate)[https://jqueryboilerplate.com/](https://jqueryboilerplate.com/) +* (JSDuck) [https://github.com/senchalabs/jsduck](https://github.com/senchalabs/jsduck) +* (idiomatic CSS) [https://github.com/necolas/idiomatic-css](https://github.com/necolas/idiomatic-css) +* (JS Design Patterns) [https://addyosmani.com/resources/essentialjsdesignpatterns/book/](https://addyosmani.com/resources/essentialjsdesignpatterns/book/) +* (Node.js Assert) [https://nodejs.org/api/assert.html](https://nodejs.org/api/assert.html) +* (Jasmine) [http://jasmine.github.io/2.0/introduction.html](http://jasmine.github.io/2.0/introduction.html) +* (ReactJS cheatsheet) [http://reactcheatsheet.com/](http://reactcheatsheet.com/) +* (ES6 Features) [https://github.com/lukehoban/es6features#readme](https://github.com/lukehoban/es6features#readme) + +## Contribuindo + +- Faça o fork! +- Crie a sua branch feature: `git checkout -b my-new-feature` +- Faça o commit das suas alterações: `git commit -m 'Add some feature'` +- Faça o push para o servidor: `git push origin my-new-feature` +- E realize o pull request + +## Log + +Verifique os [Releases](https://github.com/w3dotdev/sublime-front-end-snippets/releases) ver detalhado o log de alterações. + +## Licença + +[MIT license](http://hemersonvianna.mit-license.org/) © Hemerson Vianna