From 546246fc850f27ff2764308fefc38a67f1bda1bf Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 26 Jan 2016 20:04:12 -0200 Subject: [PATCH 01/70] fix: python filename --- snippets.json | 269 +++++++++++++---------- source/{duplication.py => duplicates.py} | 0 tests/test.py | 2 +- 3 files changed, 158 insertions(+), 113 deletions(-) rename source/{duplication.py => duplicates.py} (100%) diff --git a/snippets.json b/snippets.json index e0158b4..d491c62 100644 --- a/snippets.json +++ b/snippets.json @@ -1532,17 +1532,17 @@ { "description": "jq - parseHTML", "id": 307, - "trigger": "zjqp" + "trigger": "jq.parseh" }, { "description": "jq - parseJSON", "id": 308, - "trigger": "zjqp" + "trigger": "jq.parsej" }, { "description": "jq - parseXML", "id": 309, - "trigger": "zjqp" + "trigger": "jq.parsex" }, { "description": "jq - proxy", @@ -1635,493 +1635,538 @@ "trigger": "jdp.singleton" }, { - "description": "tc - Expect to.be.a", + "description": "jumd - AMD Web Global", "id": 328, - "trigger": "tc.tobea" + "trigger": "jumd.awg" }, { - "description": "tc - Expect to.equal", + "description": "jumd - AMD Web", "id": 329, - "trigger": "tc.toequal" + "trigger": "jumd.aw" }, { - "description": "tc - Expect to.have.length", + "description": "jumd - CommonJS Adapter", "id": 330, - "trigger": "tc.tohl" + "trigger": "jumd.ca" }, { - "description": "tc - Expect to.have.property", + "description": "jumd - CommonJS Strict Global", "id": 331, - "trigger": "tc.tohp" + "trigger": "jumd.csg" }, { - "description": "tc - Should be.a", + "description": "jumd - CommonJS Strict", "id": 332, - "trigger": "tc.bea" + "trigger": "jumd.cs" }, { - "description": "tc - Should equal", + "description": "jumd - jQuery plugin", "id": 333, - "trigger": "tc.equal" + "trigger": "jumd.jp" }, { - "description": "tc - Should have.length", + "description": "jumd - Node Adapter", "id": 334, - "trigger": "tc.hlength" + "trigger": "jumd.na" }, { - "description": "tc - Should have.property", + "description": "jumd - Return Exports Global", "id": 335, - "trigger": "tc.hproperty" + "trigger": "jumd.reg" }, { - "description": "tc - Assert equal", + "description": "jumd - Return Exports", "id": 336, - "trigger": "tc.equal" + "trigger": "jumd.re" }, { - "description": "tc - Assert lengthOf", + "description": "tc - Expect to.be.a", "id": 337, - "trigger": "tc.lengthof" + "trigger": "tc.e.tba" }, { - "description": "tc - Assert typeOf", + "description": "tc - Expect to.equal", "id": 338, - "trigger": "tc.typeof" + "trigger": "tc.e.te" }, { - "description": "t - afterEach", + "description": "tc - Expect to.have.length", "id": 339, + "trigger": "tc.e.thl" + }, + { + "description": "tc - Expect to.have.property", + "id": 340, + "trigger": "tc.e.thp" + }, + { + "description": "tc - Should be.a", + "id": 341, + "trigger": "tc.s.ba" + }, + { + "description": "tc - Should equal", + "id": 342, + "trigger": "tc.s.e" + }, + { + "description": "tc - Should have.length", + "id": 343, + "trigger": "tc.s.hl" + }, + { + "description": "tc - Should have.property", + "id": 344, + "trigger": "tc.s.hp" + }, + { + "description": "tc - Assert equal", + "id": 345, + "trigger": "tc.a.e" + }, + { + "description": "tc - Assert lengthOf", + "id": 346, + "trigger": "tc.a.lo" + }, + { + "description": "tc - Assert typeOf", + "id": 347, + "trigger": "tc.a.to" + }, + { + "description": "t - afterEach", + "id": 348, "trigger": "t.aftereach" }, { "description": "t - after", - "id": 340, + "id": 349, "trigger": "t.after" }, { "description": "t - beforeEach", - "id": 341, + "id": 350, "trigger": "t.beforeeach" }, { "description": "t - before", - "id": 342, + "id": 351, "trigger": "t.before" }, { "description": "t - describe", - "id": 343, + "id": 352, "trigger": "t.describe" }, { "description": "t - it", - "id": 344, + "id": 353, "trigger": "t.it" }, { "description": "tj - Expect toBeCloseTo", - "id": 345, + "id": 354, "trigger": "tj.closeto" }, { "description": "tj - Expect toBeContain", - "id": 346, + "id": 355, "trigger": "tj.contain" }, { "description": "tj - Expect toBeDefined", - "id": 347, + "id": 356, "trigger": "tj.defined" }, { "description": "tj - Expect toBeFalsy", - "id": 348, + "id": 357, "trigger": "tj.falsy" }, { "description": "tj - Expect toBeGreaterThan", - "id": 349, + "id": 358, "trigger": "tj.greaterthan" }, { "description": "tj - Expect toBeLessThan", - "id": 350, + "id": 359, "trigger": "tj.lessthan" }, { "description": "tj - Expect toBeNaN", - "id": 351, + "id": 360, "trigger": "tj.nan" }, { "description": "tj - Expect toBeNull", - "id": 352, + "id": 361, "trigger": "tj.null" }, { "description": "tj - Expect toBeTruthy", - "id": 353, + "id": 362, "trigger": "tj.truthy" }, { "description": "tj - Expect toBeUndefined", - "id": 354, + "id": 363, "trigger": "tj.undefined" }, { "description": "tj - Expect toBe", - "id": 355, + "id": 364, "trigger": "tj.tobe" }, { "description": "tj - Expect toEqual", - "id": 356, + "id": 365, "trigger": "tj.equal" }, { "description": "tj - Expect toHaveBeenCalledTimes", - "id": 357, + "id": 366, "trigger": "tj.hbctimes" }, { "description": "tj - Expect toHaveBeenCalledWith", - "id": 358, + "id": 367, "trigger": "tj.hbcwith" }, { "description": "tj - Expect toHaveBeenCalled", - "id": 359, + "id": 368, "trigger": "tj.hbc" }, { "description": "tj - Expect toMatch", - "id": 360, + "id": 369, "trigger": "tj.match" }, { "description": "tj - Expect toThrowError", - "id": 361, + "id": 370, "trigger": "tj.throwerror" }, { "description": "tj - Expect toThrow", - "id": 362, + "id": 371, "trigger": "tj.throw" }, { "description": "tn - Assert deepEqual", - "id": 363, + "id": 372, "trigger": "tn.dequal" }, { "description": "tn - Assert deepStrictEqual", - "id": 364, + "id": 373, "trigger": "tn.dsequal" }, { "description": "tn - Assert doesNotThrow", - "id": 365, + "id": 374, "trigger": "tn.dnthrow" }, { "description": "tn - Assert equal", - "id": 366, + "id": 375, "trigger": "tn.equal" }, { "description": "tn - Assert fail", - "id": 367, + "id": 376, "trigger": "tn.fail" }, { "description": "tn - Assert ifError", - "id": 368, + "id": 377, "trigger": "tn.iferror" }, { "description": "tn - Assert notDeepEqual", - "id": 369, + "id": 378, "trigger": "tn.ndequal" }, { "description": "tn - Assert notDeepStrictEqual", - "id": 370, + "id": 379, "trigger": "tn.ndsequal" }, { "description": "tn - Assert notEqual", - "id": 371, + "id": 380, "trigger": "tn.nequal" }, { "description": "tn - Assert notStrictEqual", - "id": 372, + "id": 381, "trigger": "tn.nsequal" }, { "description": "tn - Assert ok", - "id": 373, + "id": 382, "trigger": "tn.ok" }, { "description": "tn - Assert strictEqual", - "id": 374, + "id": 383, "trigger": "tn.sequal" }, { "description": "tn - Assert throws", - "id": 375, + "id": 384, "trigger": "tn.throws" }, { "description": "tn - Assert", - "id": 376, + "id": 385, "trigger": "tn.a" }, { "description": "j - if else", - "id": 377, + "id": 386, "trigger": "jifelse" }, { "description": "j - switch", - "id": 378, + "id": 387, "trigger": "jswitch" }, { "description": "j - console.dir", - "id": 379, + "id": 388, "trigger": "jcd" }, { "description": "j - console.error", - "id": 380, + "id": 389, "trigger": "jce" }, { "description": "j - console.info", - "id": 381, + "id": 390, "trigger": "jci" }, { "description": "j - console.log", - "id": 382, + "id": 391, "trigger": "jcl" }, { "description": "j - console.warn", - "id": 383, + "id": 392, "trigger": "jcw" }, { "description": "j - addEventListener", - "id": 384, + "id": 393, "trigger": "j-ael" }, { "description": "j - appendChild", - "id": 385, + "id": 394, "trigger": "jac" }, { "description": "j - classList.add", - "id": 386, + "id": 395, "trigger": "jcla" }, { "description": "j - classList.remove", - "id": 387, + "id": 396, "trigger": "jclr" }, { "description": "j - classList.toggle", - "id": 388, + "id": 397, "trigger": "jclt" }, { "description": "j - createDocumentFragment", - "id": 389, + "id": 398, "trigger": "jcdf" }, { "description": "j - createElement", - "id": 390, + "id": 399, "trigger": "jcel" }, { "description": "j - getAttribute", - "id": 391, + "id": 400, "trigger": "jgattr" }, { "description": "j - getElementById", - "id": 392, + "id": 401, "trigger": "jgid" }, { "description": "j - getElementsByClassName", - "id": 393, + "id": 402, "trigger": "jgclass" }, { "description": "j - getElementsByTagName", - "id": 394, + "id": 403, "trigger": "jgtag" }, { "description": "j - innerHTML", - "id": 395, + "id": 404, "trigger": "jih" }, { "description": "j - querySelectorAll", - "id": 396, + "id": 405, "trigger": "jqsa" }, { "description": "j - querySelector", - "id": 397, + "id": 406, "trigger": "jqs" }, { "description": "j - removeAttribute", - "id": 398, + "id": 407, "trigger": "jrattr" }, { "description": "j - removeChild", - "id": 399, + "id": 408, "trigger": "jrc" }, { "description": "j - setAttribute", - "id": 400, + "id": 409, "trigger": "jsattr" }, { "description": "j - textContent", - "id": 401, + "id": 410, "trigger": "jtc" }, { "description": "j - Anonymous Function", - "id": 402, + "id": 411, "trigger": "jafn" }, { "description": "j - Function apply", - "id": 403, + "id": 412, "trigger": "japply" }, { "description": "j - Function call", - "id": 404, + "id": 413, "trigger": "jcall" }, { "description": "j - Immediately-invoked function expression", - "id": 405, + "id": 414, "trigger": "j-iife" }, { "description": "j - Prototype", - "id": 406, + "id": 415, "trigger": "jprot" }, { "description": "j - Function", - "id": 407, + "id": 416, "trigger": "jfn" }, { "description": "j - JSON.parse", - "id": 408, + "id": 417, "trigger": "jjsonp" }, { "description": "j - JSON.stringify", - "id": 409, + "id": 418, "trigger": "jjsons" }, { "description": "j - do while", - "id": 410, + "id": 419, "trigger": "jdowhile" }, { "description": "j - forEach", - "id": 411, + "id": 420, "trigger": "jfore" }, { "description": "j - for in", - "id": 412, + "id": 421, "trigger": "jfori" }, { "description": "j - for", - "id": 413, + "id": 422, "trigger": "jfor" }, { "description": "j - while", - "id": 414, + "id": 423, "trigger": "jwhile" }, { "description": "j - setInterval", - "id": 415, + "id": 424, "trigger": "jsinterval" }, { "description": "j - setTimeout", - "id": 416, + "id": 425, "trigger": "jstimeout" }, { "description": "sm - Action", - "id": 417, + "id": 426, "trigger": "sm.action" }, { "description": "sm - Organization", - "id": 418, + "id": 427, "trigger": "sm.org" }, { "description": "jsonld - Logotype", - "id": 419, + "id": 428, "trigger": "z.jsonld" }, { "description": "microdata - Organization", - "id": 420, + "id": 429, "trigger": "z.microdata" }, { "description": "microdata - Article", - "id": 421, + "id": 430, "trigger": "z.microdata" }, { "description": "microdata - Book", - "id": 422, + "id": 431, "trigger": "z.microdata" }, { "description": "microdata - Game", - "id": 423, + "id": 432, "trigger": "z.microdata" }, { "description": "microdata - WebPage", - "id": 424, + "id": 433, "trigger": "z.microdata" }, { "description": "rdfa - Breadcrumb", - "id": 425, + "id": 434, "trigger": "z.rdfa" } ] \ No newline at end of file diff --git a/source/duplication.py b/source/duplicates.py similarity index 100% rename from source/duplication.py rename to source/duplicates.py diff --git a/tests/test.py b/tests/test.py index 6b9b2ac..8d2ebb9 100644 --- a/tests/test.py +++ b/tests/test.py @@ -3,7 +3,7 @@ import sys sys.path.append('../source/') from json_generator import get_json -from duplication import list_duplicates +from duplicates import list_duplicates import json import re import unittest From c5d8d0fd1fc03d8becf74be5ec7952c4bafc247d Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 07:25:40 -0200 Subject: [PATCH 02/70] fix: empty snippets --- .../js/patterns/design-patterns/README.md | 72 ++++++++++++++++++- ...js-design-patterns-command.sublime-snippet | 24 +++++++ ...-design-patterns-decorator.sublime-snippet | 19 +++++ .../js-design-patterns-facade.sublime-snippet | 19 +++++ ...js-design-patterns-factory.sublime-snippet | 2 +- ...-design-patterns-flyweight.sublime-snippet | 2 +- ...s-design-patterns-mediator.sublime-snippet | 2 +- .../js-design-patterns-mixin.sublime-snippet | 2 +- ...s-design-patterns-observer.sublime-snippet | 2 +- ...-patterns-revealing-module.sublime-snippet | 10 ++- 10 files changed, 147 insertions(+), 7 deletions(-) diff --git a/snippets/js/patterns/design-patterns/README.md b/snippets/js/patterns/design-patterns/README.md index 73e5d36..e76acdd 100644 --- a/snippets/js/patterns/design-patterns/README.md +++ b/snippets/js/patterns/design-patterns/README.md @@ -5,7 +5,31 @@ ### [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 @@ -32,13 +56,51 @@ var ${1:ConstructorName} = (function() { ### [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 @@ -102,7 +164,15 @@ ${0} ### [jdp.rmodule] Revealing Module ```javascript - +var ${1:revealingModuleName} = (function() { + 'use strict'; + function ${2:methodName}() { + ${3} + } + return { + ${2:methodName}:${2:methodName} + }; +}()); ``` ### [jdp.singleton] Singleton 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 index bd6fe21..32b66c1 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-command.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-command.sublime-snippet @@ -1,6 +1,30 @@ jdp.command jdp - Command 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 index d5052eb..9f8ab10 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-decorator.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-decorator.sublime-snippet @@ -1,6 +1,25 @@ 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 index f6bb399..b4d2468 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-facade.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-facade.sublime-snippet @@ -1,6 +1,25 @@ 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 index a8d936a..57ff6b7 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-factory.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-factory.sublime-snippet @@ -1,6 +1,6 @@ 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 index 7dad98e..a17880e 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-flyweight.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-flyweight.sublime-snippet @@ -1,6 +1,6 @@ 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 index 3b260d8..b3f71b8 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-mediator.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-mediator.sublime-snippet @@ -1,6 +1,6 @@ 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 index 96eaaa6..a671ed0 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-mixin.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-mixin.sublime-snippet @@ -1,6 +1,6 @@ jdp.mixin jdp - Mixin 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 index 5b751c7..c08ea5c 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-observer.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-observer.sublime-snippet @@ -1,6 +1,6 @@ jdp.observer jdp - Observer 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 index a470c12..d3344e5 100644 --- 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 @@ -1,6 +1,14 @@ jdp.rmodule jdp - Revealing Module From a76c3af5bfead31f8c85cbfdfd9fc63d18dabb25 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 07:36:03 -0200 Subject: [PATCH 03/70] fix: js snippets keys --- snippets/js/vanilla/README.md | 2 +- snippets/js/vanilla/conditional/README.md | 4 +-- .../conditional/js-if-else.sublime-snippet | 2 +- .../conditional/js-switch.sublime-snippet | 2 +- snippets/js/vanilla/console/README.md | 10 +++--- .../console/js-console-dir.sublime-snippet | 2 +- .../console/js-console-error.sublime-snippet | 2 +- .../console/js-console-info.sublime-snippet | 2 +- .../console/js-console-log.sublime-snippet | 2 +- .../console/js-console-warn.sublime-snippet | 2 +- snippets/js/vanilla/dom/README.md | 36 +++++++++---------- .../js-dom-add-event-listener.sublime-snippet | 2 +- .../dom/js-dom-append-child.sublime-snippet | 2 +- .../dom/js-dom-class-list-add.sublime-snippet | 2 +- .../js-dom-class-list-remove.sublime-snippet | 2 +- .../js-dom-class-list-toggle.sublime-snippet | 2 +- ...m-create-document-fragment.sublime-snippet | 2 +- .../dom/js-dom-create-element.sublime-snippet | 2 +- .../dom/js-dom-get-attribute.sublime-snippet | 2 +- .../js-dom-get-element-by-id.sublime-snippet | 2 +- ...get-elements-by-class-name.sublime-snippet | 2 +- ...m-get-elements-by-tag-name.sublime-snippet | 2 +- .../dom/js-dom-inner-html.sublime-snippet | 2 +- .../js-dom-query-selector-all.sublime-snippet | 2 +- .../dom/js-dom-query-selector.sublime-snippet | 2 +- .../js-dom-remove-attribute.sublime-snippet | 2 +- .../dom/js-dom-remove-child.sublime-snippet | 2 +- .../dom/js-dom-set-attribute.sublime-snippet | 2 +- .../dom/js-dom-text-content.sublime-snippet | 2 +- snippets/js/vanilla/function/README.md | 12 +++---- .../js-function-anonymous.sublime-snippet | 2 +- .../js-function-apply.sublime-snippet | 2 +- .../function/js-function-call.sublime-snippet | 2 +- .../function/js-function-iife.sublime-snippet | 2 +- .../js-function-prototype.sublime-snippet | 2 +- .../function/js-function.sublime-snippet | 2 +- snippets/js/vanilla/json/README.md | 4 +-- .../json/js-json-parse.sublime-snippet | 2 +- .../json/js-json-stringify.sublime-snippet | 2 +- snippets/js/vanilla/loop/README.md | 10 +++--- .../loop/js-loop-do-while.sublime-snippet | 2 +- .../loop/js-loop-for-each.sublime-snippet | 2 +- .../loop/js-loop-for-in.sublime-snippet | 2 +- .../vanilla/loop/js-loop-for.sublime-snippet | 2 +- .../loop/js-loop-while.sublime-snippet | 2 +- snippets/js/vanilla/timer/README.md | 4 +-- .../js-timer-set-interval.sublime-snippet | 2 +- .../js-timer-set-timeout.sublime-snippet | 2 +- 48 files changed, 81 insertions(+), 81 deletions(-) diff --git a/snippets/js/vanilla/README.md b/snippets/js/vanilla/README.md index ee3ec42..2eccf79 100644 --- a/snippets/js/vanilla/README.md +++ b/snippets/js/vanilla/README.md @@ -1,6 +1,6 @@ # JavaScript Snippets -## Prefix `j*` +## Prefix `j.*` - [Conditional](conditional/) - if-else diff --git a/snippets/js/vanilla/conditional/README.md b/snippets/js/vanilla/conditional/README.md index 95f92ab..661b057 100644 --- a/snippets/js/vanilla/conditional/README.md +++ b/snippets/js/vanilla/conditional/README.md @@ -1,6 +1,6 @@ ## JavaScript Conditional Snippets -### [jifelse] if else +### [j.ifelse] if else ```javascript if (${1:condition}) { @@ -11,7 +11,7 @@ else { } ``` -### [jswitch] switch +### [j.switch] switch ```javascript switch (${1:expression}) { diff --git a/snippets/js/vanilla/conditional/js-if-else.sublime-snippet b/snippets/js/vanilla/conditional/js-if-else.sublime-snippet index 3f657f9..cc8bd13 100644 --- a/snippets/js/vanilla/conditional/js-if-else.sublime-snippet +++ b/snippets/js/vanilla/conditional/js-if-else.sublime-snippet @@ -7,6 +7,6 @@ else { ${3:second expression} } ]]> - jifelse + 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 index d8768c0..5705318 100644 --- a/snippets/js/vanilla/conditional/js-switch.sublime-snippet +++ b/snippets/js/vanilla/conditional/js-switch.sublime-snippet @@ -15,6 +15,6 @@ switch (${1:expression}) { break; } ]]> - jswitch + 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..0cbde27 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..8d04cbf 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 ef1ca7f..afa8755 100644 --- a/snippets/js/vanilla/loop/README.md +++ b/snippets/js/vanilla/loop/README.md @@ -1,6 +1,6 @@ ## JavaScript Loop Snippets -### [jdowhile] do while +### [j.dowhile] do while ```javascript do { @@ -8,7 +8,7 @@ do { } while (${2:condition}); ``` -### [jfore] forEach +### [j.fore] forEach ```javascript ${1:myArray}.forEach(function(${2:element}) { @@ -16,7 +16,7 @@ ${1:myArray}.forEach(function(${2:element}) { }); ``` -### [jfori] for in +### [j.fori] for in ```javascript for (${1:prop} in ${2:obj}) { @@ -26,7 +26,7 @@ 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:++} ) { @@ -34,7 +34,7 @@ for (var i = ${1:0}, len = ${2:10}; i ${3:<=} len; i${4:++} ) { } ``` -### [jwhile] while +### [j.while] while ```javascript while (${1:condition}) { diff --git a/snippets/js/vanilla/loop/js-loop-do-while.sublime-snippet b/snippets/js/vanilla/loop/js-loop-do-while.sublime-snippet index e36b0d7..2f00269 100644 --- a/snippets/js/vanilla/loop/js-loop-do-while.sublime-snippet +++ b/snippets/js/vanilla/loop/js-loop-do-while.sublime-snippet @@ -4,6 +4,6 @@ do { ${1:expression} } while (${2:condition}); ]]> - jdowhile + 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 index c7792f2..2a43e77 100644 --- a/snippets/js/vanilla/loop/js-loop-while.sublime-snippet +++ b/snippets/js/vanilla/loop/js-loop-while.sublime-snippet @@ -4,6 +4,6 @@ while (${1:condition}) { ${2:expression} } ]]> - jwhile + j.while j - while 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 2281d91..6b0ad6c 100644 --- a/snippets/js/vanilla/timer/js-timer-set-timeout.sublime-snippet +++ b/snippets/js/vanilla/timer/js-timer-set-timeout.sublime-snippet @@ -4,6 +4,6 @@ setTimeout(function() { ${2} }, ${1:delay}); ]]> - jstimeout + j.stimeout j - setTimeout From 202bd59fc698450badc0f1b0f574dbb3e9814ceb Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 07:44:27 -0200 Subject: [PATCH 04/70] update: snippets json --- .gitignore | 2 +- snippets.json | 80 +++++++++++++++++++++++++-------------------------- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/.gitignore b/.gitignore index b999ca6..86989b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ source/json_generator.pyc -source/duplication.pyc +source/duplicates.pyc diff --git a/snippets.json b/snippets.json index d491c62..7875fd8 100644 --- a/snippets.json +++ b/snippets.json @@ -1927,202 +1927,202 @@ { "description": "j - if else", "id": 386, - "trigger": "jifelse" + "trigger": "j.ifelse" }, { "description": "j - switch", "id": 387, - "trigger": "jswitch" + "trigger": "j.switch" }, { "description": "j - console.dir", "id": 388, - "trigger": "jcd" + "trigger": "j.cd" }, { "description": "j - console.error", "id": 389, - "trigger": "jce" + "trigger": "j.ce" }, { "description": "j - console.info", "id": 390, - "trigger": "jci" + "trigger": "j.ci" }, { "description": "j - console.log", "id": 391, - "trigger": "jcl" + "trigger": "j.cl" }, { "description": "j - console.warn", "id": 392, - "trigger": "jcw" + "trigger": "j.cw" }, { "description": "j - addEventListener", "id": 393, - "trigger": "j-ael" + "trigger": "j.-ael" }, { "description": "j - appendChild", "id": 394, - "trigger": "jac" + "trigger": "j.ac" }, { "description": "j - classList.add", "id": 395, - "trigger": "jcla" + "trigger": "j.cla" }, { "description": "j - classList.remove", "id": 396, - "trigger": "jclr" + "trigger": "j.clr" }, { "description": "j - classList.toggle", "id": 397, - "trigger": "jclt" + "trigger": "j.clt" }, { "description": "j - createDocumentFragment", "id": 398, - "trigger": "jcdf" + "trigger": "j.cdf" }, { "description": "j - createElement", "id": 399, - "trigger": "jcel" + "trigger": "j.cel" }, { "description": "j - getAttribute", "id": 400, - "trigger": "jgattr" + "trigger": "j.gattr" }, { "description": "j - getElementById", "id": 401, - "trigger": "jgid" + "trigger": "j.gid" }, { "description": "j - getElementsByClassName", "id": 402, - "trigger": "jgclass" + "trigger": "j.gclass" }, { "description": "j - getElementsByTagName", "id": 403, - "trigger": "jgtag" + "trigger": "j.gtag" }, { "description": "j - innerHTML", "id": 404, - "trigger": "jih" + "trigger": "j.ih" }, { "description": "j - querySelectorAll", "id": 405, - "trigger": "jqsa" + "trigger": "j.qsa" }, { "description": "j - querySelector", "id": 406, - "trigger": "jqs" + "trigger": "j.qs" }, { "description": "j - removeAttribute", "id": 407, - "trigger": "jrattr" + "trigger": "j.rattr" }, { "description": "j - removeChild", "id": 408, - "trigger": "jrc" + "trigger": "j.rc" }, { "description": "j - setAttribute", "id": 409, - "trigger": "jsattr" + "trigger": "j.sattr" }, { "description": "j - textContent", "id": 410, - "trigger": "jtc" + "trigger": "j.tc" }, { "description": "j - Anonymous Function", "id": 411, - "trigger": "jafn" + "trigger": "j.afn" }, { "description": "j - Function apply", "id": 412, - "trigger": "japply" + "trigger": "j.apply" }, { "description": "j - Function call", "id": 413, - "trigger": "jcall" + "trigger": "j.call" }, { "description": "j - Immediately-invoked function expression", "id": 414, - "trigger": "j-iife" + "trigger": "j.-iife" }, { "description": "j - Prototype", "id": 415, - "trigger": "jprot" + "trigger": "j.prot" }, { "description": "j - Function", "id": 416, - "trigger": "jfn" + "trigger": "j.fn" }, { "description": "j - JSON.parse", "id": 417, - "trigger": "jjsonp" + "trigger": "j.jsonp" }, { "description": "j - JSON.stringify", "id": 418, - "trigger": "jjsons" + "trigger": "j.jsons" }, { "description": "j - do while", "id": 419, - "trigger": "jdowhile" + "trigger": "j.dowhile" }, { "description": "j - forEach", "id": 420, - "trigger": "jfore" + "trigger": "j.fore" }, { "description": "j - for in", "id": 421, - "trigger": "jfori" + "trigger": "j.fori" }, { "description": "j - for", "id": 422, - "trigger": "jfor" + "trigger": "j.for" }, { "description": "j - while", "id": 423, - "trigger": "jwhile" + "trigger": "j.while" }, { "description": "j - setInterval", "id": 424, - "trigger": "jsinterval" + "trigger": "j.sinterval" }, { "description": "j - setTimeout", "id": 425, - "trigger": "jstimeout" + "trigger": "j.stimeout" }, { "description": "sm - Action", From 4e4062ddf1002b2d8e6bb9314c382f84bd4ecdcd Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 17:17:10 -0200 Subject: [PATCH 05/70] fix: to prevent .(dot) from cancelling autocomplete --- Preferences.sublime-settings | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Preferences.sublime-settings diff --git a/Preferences.sublime-settings b/Preferences.sublime-settings new file mode 100644 index 0000000..a2a75fd --- /dev/null +++ b/Preferences.sublime-settings @@ -0,0 +1,3 @@ +{ + "word_separators": "/\\()\"‘-:,;~!@#$%^&*|+=[]{}`~?" +} From bafd57b24005e693c599269281cb5794d3d7c7b1 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 17:24:17 -0200 Subject: [PATCH 06/70] fix: update main image --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a127738..cc5a33e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![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) -![animation](https://cloud.githubusercontent.com/assets/1963897/12556266/3a0effa0-c36c-11e5-999b-4f5568bffc0f.gif) +![animation](https://cloud.githubusercontent.com/assets/1963897/12625364/a94decc8-c51a-11e5-8546-ca331af65982.gif) ## Install From 13abaa01e3fb5f27f2fad063d156908899f1fe10 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 17:47:16 -0200 Subject: [PATCH 07/70] fix: trigger with syntax error --- .../jq-selectors-next-siblings-selector.sublime-snippet | 2 +- .../jquery/traversing/jq-traversing-siblings.sublime-snippet | 2 +- .../jquery/traversing/jq-traversing-slice.sublime-snippet | 2 +- .../js/vanilla/dom/js-dom-add-event-listener.sublime-snippet | 2 +- snippets/js/vanilla/function/js-function-iife.sublime-snippet | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/snippets/js/libraries/jquery/selectors/jq-selectors-next-siblings-selector.sublime-snippet b/snippets/js/libraries/jquery/selectors/jq-selectors-next-siblings-selector.sublime-snippet index 207df00..ef59340 100644 --- a/snippets/js/libraries/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/libraries/jquery/traversing/jq-traversing-siblings.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-siblings.sublime-snippet index 9fce593..cbc403e 100644 --- a/snippets/js/libraries/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/libraries/jquery/traversing/jq-traversing-slice.sublime-snippet b/snippets/js/libraries/jquery/traversing/jq-traversing-slice.sublime-snippet index 8aa2bf6..3e0774b 100644 --- a/snippets/js/libraries/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/vanilla/dom/js-dom-add-event-listener.sublime-snippet b/snippets/js/vanilla/dom/js-dom-add-event-listener.sublime-snippet index 0cbde27..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/function/js-function-iife.sublime-snippet b/snippets/js/vanilla/function/js-function-iife.sublime-snippet index 8d04cbf..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 From 4ff877da6889b35c1b0c92e95d25dc71005032c3 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 21:30:22 -0200 Subject: [PATCH 08/70] add: qunit snippets --- snippets/js/tests/qunit/README.md | 170 +++++++++++++++++- .../qunit/qunit-assert-async.sublime-snippet | 7 + .../qunit-assert-deep-equal.sublime-snippet | 7 + .../qunit/qunit-assert-equal.sublime-snippet | 7 + ...unit-assert-not-deep-equal.sublime-snippet | 7 + .../qunit-assert-not-equal.sublime-snippet | 7 + .../qunit/qunit-assert-not-ok.sublime-snippet | 7 + ...unit-assert-not-prop-equal.sublime-snippet | 7 + ...it-assert-not-strict-equal.sublime-snippet | 7 + .../qunit/qunit-assert-ok.sublime-snippet | 7 + .../qunit-assert-prop-equal.sublime-snippet | 7 + .../qunit-assert-strict-equal.sublime-snippet | 7 + .../qunit/qunit-assert-throws.sublime-snippet | 7 + .../tests/qunit/qunit-begin.sublime-snippet | 7 + .../tests/qunit/qunit-config.sublime-snippet | 7 + .../js/tests/qunit/qunit-done.sublime-snippet | 7 + .../qunit/qunit-dump-parse.sublime-snippet | 7 + .../tests/qunit/qunit-expect.sublime-snippet | 7 + .../tests/qunit/qunit-extend.sublime-snippet | 7 + .../js/tests/qunit/qunit-log.sublime-snippet | 7 + .../qunit/qunit-module-done.sublime-snippet | 7 + .../qunit/qunit-module-start.sublime-snippet | 7 + .../tests/qunit/qunit-module.sublime-snippet | 7 + .../js/tests/qunit/qunit-only.sublime-snippet | 7 + .../js/tests/qunit/qunit-push.sublime-snippet | 7 + .../js/tests/qunit/qunit-skip.sublime-snippet | 7 + .../tests/qunit/qunit-stack.sublime-snippet | 7 + .../qunit/qunit-test-done.sublime-snippet | 7 + .../qunit/qunit-test-start.sublime-snippet | 7 + .../js/tests/qunit/qunit-test.sublime-snippet | 7 + 30 files changed, 372 insertions(+), 1 deletion(-) create mode 100644 snippets/js/tests/qunit/qunit-assert-async.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-assert-deep-equal.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-assert-equal.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-assert-not-deep-equal.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-assert-not-equal.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-assert-not-ok.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-assert-not-prop-equal.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-assert-not-strict-equal.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-assert-ok.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-assert-prop-equal.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-assert-strict-equal.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-assert-throws.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-begin.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-config.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-done.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-dump-parse.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-expect.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-extend.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-log.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-module-done.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-module-start.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-module.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-only.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-push.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-skip.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-stack.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-test-done.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-test-start.sublime-snippet create mode 100644 snippets/js/tests/qunit/qunit-test.sublime-snippet diff --git a/snippets/js/tests/qunit/README.md b/snippets/js/tests/qunit/README.md index 9c61884..93101ab 100644 --- a/snippets/js/tests/qunit/README.md +++ b/snippets/js/tests/qunit/README.md @@ -2,8 +2,176 @@ ## Prefix `tq.*` -### [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 + From c8770bae62f22e2c3367af3150646b848671b0c9 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 21:31:04 -0200 Subject: [PATCH 09/70] fix: adjusting of parameters --- snippets/js/tests/node/tdd-assert-deep-equal.sublime-snippet | 2 +- .../js/tests/node/tdd-assert-not-deep-equal.sublime-snippet | 2 +- .../tests/node/tdd-assert-not-deep-strict-equal.sublime-snippet | 2 +- snippets/js/tests/node/tdd-assert-not-equal.sublime-snippet | 2 +- .../js/tests/node/tdd-assert-not-strict-equal.sublime-snippet | 2 +- snippets/js/tests/node/tdd-assert-strict-equal.sublime-snippet | 2 +- snippets/js/tests/node/tdd-assert-throws.sublime-snippet | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/snippets/js/tests/node/tdd-assert-deep-equal.sublime-snippet b/snippets/js/tests/node/tdd-assert-deep-equal.sublime-snippet index c5d6940..af17ec0 100644 --- a/snippets/js/tests/node/tdd-assert-deep-equal.sublime-snippet +++ b/snippets/js/tests/node/tdd-assert-deep-equal.sublime-snippet @@ -1,6 +1,6 @@ tn.dequal tn - Assert deepEqual 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 index b7f86e7..f28ab88 100644 --- a/snippets/js/tests/node/tdd-assert-not-deep-equal.sublime-snippet +++ b/snippets/js/tests/node/tdd-assert-not-deep-equal.sublime-snippet @@ -1,6 +1,6 @@ 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 index 165e118..3d0d8ad 100644 --- 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 @@ -1,6 +1,6 @@ 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 index bfa0eea..d8b5d32 100644 --- a/snippets/js/tests/node/tdd-assert-not-equal.sublime-snippet +++ b/snippets/js/tests/node/tdd-assert-not-equal.sublime-snippet @@ -1,6 +1,6 @@ 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 index e63676a..9ff4229 100644 --- a/snippets/js/tests/node/tdd-assert-not-strict-equal.sublime-snippet +++ b/snippets/js/tests/node/tdd-assert-not-strict-equal.sublime-snippet @@ -1,6 +1,6 @@ tn.nsequal tn - Assert notStrictEqual diff --git a/snippets/js/tests/node/tdd-assert-strict-equal.sublime-snippet b/snippets/js/tests/node/tdd-assert-strict-equal.sublime-snippet index 7acf52d..b251938 100644 --- a/snippets/js/tests/node/tdd-assert-strict-equal.sublime-snippet +++ b/snippets/js/tests/node/tdd-assert-strict-equal.sublime-snippet @@ -1,6 +1,6 @@ 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 index cd6e1f4..d1c7ed9 100644 --- a/snippets/js/tests/node/tdd-assert-throws.sublime-snippet +++ b/snippets/js/tests/node/tdd-assert-throws.sublime-snippet @@ -1,6 +1,6 @@ tn.throws tn - Assert throws From 15506c1a11f8d15d0b67c538833d0afe9208af8b Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 21:31:48 -0200 Subject: [PATCH 10/70] update: added <> --- Preferences.sublime-settings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Preferences.sublime-settings b/Preferences.sublime-settings index a2a75fd..be90725 100644 --- a/Preferences.sublime-settings +++ b/Preferences.sublime-settings @@ -1,3 +1,3 @@ { - "word_separators": "/\\()\"‘-:,;~!@#$%^&*|+=[]{}`~?" + "word_separators": "/\\()\"‘-:,;><~!@#$%^&*|+=[]{}`~?" } From 24cde391935271380625a5a29aab0186776eb9b9 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 21:32:15 -0200 Subject: [PATCH 11/70] update: test readme --- snippets/js/tests/README.md | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/snippets/js/tests/README.md b/snippets/js/tests/README.md index df996ed..ffbf874 100644 --- a/snippets/js/tests/README.md +++ b/snippets/js/tests/README.md @@ -60,6 +60,35 @@ - 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/) - From 392a1bbaa0919455eaeaab39e21de087dea3352c Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 21:52:22 -0200 Subject: [PATCH 12/70] update: badge tag --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cc5a33e..266c955 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![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) +[![Latest tag][tag-image]][tag-url] ![animation](https://cloud.githubusercontent.com/assets/1963897/12625364/a94decc8-c51a-11e5-8546-ca331af65982.gif) From 6514d2bc27eaf99667c236d7ef287099850c75f9 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 22:17:49 -0200 Subject: [PATCH 13/70] update: badges --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 266c955..eba9757 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ # 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) -[![Latest tag][tag-image]][tag-url] +[![Travis](https://img.shields.io/travis/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/brazilian-dev/sublime-front-end-snippets) +[![issues](https://img.shields.io/github/issues/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/brazilian-dev/sublime-front-end-snippets/issues) +[![Package Control](https://img.shields.io/packagecontrol/dt/Package%20Control.svg?style=flat-square)](https://packagecontrol.io/packages/Front-end%20Project%20Snippets) +[![GitHub release](https://img.shields.io/github/release/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/brazilian-dev/sublime-front-end-snippets/releases) +[![licence mit](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/LICENSE.md) ![animation](https://cloud.githubusercontent.com/assets/1963897/12625364/a94decc8-c51a-11e5-8546-ca331af65982.gif) From f33a18a3d49eb10b3f39448e99e231dc108bd231 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 27 Jan 2016 22:22:23 -0200 Subject: [PATCH 14/70] update: package controlvbadge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eba9757..9fcd712 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Travis](https://img.shields.io/travis/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/brazilian-dev/sublime-front-end-snippets) [![issues](https://img.shields.io/github/issues/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/brazilian-dev/sublime-front-end-snippets/issues) -[![Package Control](https://img.shields.io/packagecontrol/dt/Package%20Control.svg?style=flat-square)](https://packagecontrol.io/packages/Front-end%20Project%20Snippets) +[![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/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/brazilian-dev/sublime-front-end-snippets/releases) [![licence mit](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/LICENSE.md) From ab8e17598425256e60d20fd866444422bba00146 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 28 Jan 2016 05:00:23 -0200 Subject: [PATCH 15/70] add: sinon assertions snippets --- snippets/js/tests/sinon/README.md | 29 +++- snippets/js/tests/sinon/assertions/README.md | 141 ++++++++++++++++++ ...on-assert-always-called-on.sublime-snippet | 7 + ...always-called-with-exactly.sublime-snippet | 7 + ...t-always-called-with-match.sublime-snippet | 7 + ...-assert-always-called-with.sublime-snippet | 7 + .../sinon-assert-always-threw.sublime-snippet | 7 + .../sinon-assert-call-count.sublime-snippet | 7 + .../sinon-assert-call-order.sublime-snippet | 7 + .../sinon-assert-called-on.sublime-snippet | 7 + .../sinon-assert-called-once.sublime-snippet | 7 + ...sinon-assert-called-thrice.sublime-snippet | 7 + .../sinon-assert-called-twice.sublime-snippet | 7 + ...assert-called-with-exactly.sublime-snippet | 7 + ...n-assert-called-with-match.sublime-snippet | 7 + .../sinon-assert-called-with.sublime-snippet | 7 + .../sinon-assert-called.sublime-snippet | 7 + .../sinon-assert-expose.sublime-snippet | 7 + ...inon-assert-fail-exception.sublime-snippet | 7 + .../sinon-assert-fail.sublime-snippet | 7 + ...rt-never-called-with-match.sublime-snippet | 7 + ...n-assert-never-called-with.sublime-snippet | 7 + .../sinon-assert-not-called.sublime-snippet | 7 + .../sinon-assert-pass.sublime-snippet | 7 + .../sinon-assert-threw.sublime-snippet | 7 + 25 files changed, 326 insertions(+), 5 deletions(-) create mode 100644 snippets/js/tests/sinon/assertions/README.md create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-always-called-on.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-always-called-with-exactly.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-always-called-with-match.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-always-called-with.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-always-threw.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-call-count.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-call-order.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-called-on.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-called-once.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-called-thrice.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-called-twice.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-called-with-exactly.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-called-with-match.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-called-with.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-called.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-expose.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-fail-exception.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-fail.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-never-called-with-match.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-never-called-with.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-not-called.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-pass.sublime-snippet create mode 100644 snippets/js/tests/sinon/assertions/sinon-assert-threw.sublime-snippet diff --git a/snippets/js/tests/sinon/README.md b/snippets/js/tests/sinon/README.md index 4c773a3..3a73841 100644 --- a/snippets/js/tests/sinon/README.md +++ b/snippets/js/tests/sinon/README.md @@ -2,8 +2,27 @@ ## Prefix `ts.*` -### [ts.] - -```javascript - -``` +- [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 + From 41e55646c10f85b91c66e5405e92653be586f6c1 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 28 Jan 2016 05:21:19 -0200 Subject: [PATCH 16/70] add: regex snippets --- README.md | 3 +++ snippets/regex/README.md | 11 +++++++++++ snippets/regex/regex-cpf.sublime-snippet | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 snippets/regex/README.md create mode 100644 snippets/regex/regex-cpf.sublime-snippet diff --git a/README.md b/README.md index 9fcd712..c3e33c0 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,10 @@ You can see all installed snippets in `Tools > Snippets...`, in the sublime text - [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) @@ -36,6 +38,7 @@ You can see all installed snippets in `Tools > Snippets...`, in the sublime text - [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) diff --git a/snippets/regex/README.md b/snippets/regex/README.md new file mode 100644 index 0000000..47be2cf --- /dev/null +++ b/snippets/regex/README.md @@ -0,0 +1,11 @@ +# Regex Snippets + +## Prefix `r.*` + +### [r.cpf] CPF + +**allow:** 00000000000, 00000000000000, 000.000.000-00, 00.000.000/0000-00, 000000000-00 or 00000000/0000-00 + +```javascript +([0-9]{2}[\.]?[0-9]{3}[\.]?[0-9]{3}[\/]?[0-9]{4}[-]?[0-9]{2})|([0-9]{3}[\.]?[0-9]{3}[\.]?[0-9]{3}[-]?[0-9]{2}) +``` diff --git a/snippets/regex/regex-cpf.sublime-snippet b/snippets/regex/regex-cpf.sublime-snippet new file mode 100644 index 0000000..2e5c2a7 --- /dev/null +++ b/snippets/regex/regex-cpf.sublime-snippet @@ -0,0 +1,7 @@ + + + r.cpf + r - CPF + From fd125ecab06ec09fbb81e46f9e2bf9e7888a0507 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 28 Jan 2016 05:41:45 -0200 Subject: [PATCH 17/70] add: regex snippets - cnpj cpf phone --- snippets/regex/README.md | 36 +++++++++++++++++-- .../regex-brazilian-cnpj.sublime-snippet | 7 ++++ .../regex-brazilian-cpf-cnpj.sublime-snippet | 7 ++++ .../regex/regex-brazilian-cpf.sublime-snippet | 7 ++++ .../regex-brazilian-phone.sublime-snippet | 7 ++++ snippets/regex/regex-cpf.sublime-snippet | 7 ---- snippets/regex/regex-email.sublime-snippet | 7 ++++ 7 files changed, 68 insertions(+), 10 deletions(-) create mode 100644 snippets/regex/regex-brazilian-cnpj.sublime-snippet create mode 100644 snippets/regex/regex-brazilian-cpf-cnpj.sublime-snippet create mode 100644 snippets/regex/regex-brazilian-cpf.sublime-snippet create mode 100644 snippets/regex/regex-brazilian-phone.sublime-snippet delete mode 100644 snippets/regex/regex-cpf.sublime-snippet create mode 100644 snippets/regex/regex-email.sublime-snippet diff --git a/snippets/regex/README.md b/snippets/regex/README.md index 47be2cf..7a61bbb 100644 --- a/snippets/regex/README.md +++ b/snippets/regex/README.md @@ -2,10 +2,40 @@ ## Prefix `r.*` -### [r.cpf] CPF +### [r.bcnpj] Brazilian CNPJ -**allow:** 00000000000, 00000000000000, 000.000.000-00, 00.000.000/0000-00, 000000000-00 or 00000000/0000-00 +**allow:** xx.xxx.xxx/xxxx-xx | xxxxxxxxxxxxxx ```javascript -([0-9]{2}[\.]?[0-9]{3}[\.]?[0-9]{3}[\/]?[0-9]{4}[-]?[0-9]{2})|([0-9]{3}[\.]?[0-9]{3}[\.]?[0-9]{3}[-]?[0-9]{2}) +(^(\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] 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-cpf.sublime-snippet b/snippets/regex/regex-cpf.sublime-snippet deleted file mode 100644 index 2e5c2a7..0000000 --- a/snippets/regex/regex-cpf.sublime-snippet +++ /dev/null @@ -1,7 +0,0 @@ - - - r.cpf - r - CPF - 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 + From 17bf814b650f711196fbbfd701cd6f6c1b204d85 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 28 Jan 2016 05:43:13 -0200 Subject: [PATCH 18/70] update: snippets json --- snippets.json | 2388 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 1959 insertions(+), 429 deletions(-) diff --git a/snippets.json b/snippets.json index 7875fd8..3979432 100644 --- a/snippets.json +++ b/snippets.json @@ -120,2053 +120,3583 @@ "trigger": "hw.alertdialog" }, { - "description": "jq - ajax", + "description": "ES6 Arrow Function", "id": 25, + "trigger": "arrow" + }, + { + "description": "ES6 Class", + "id": 26, + "trigger": "class" + }, + { + "description": "ES6 Generator", + "id": 27, + "trigger": "generator" + }, + { + "description": "ES6 For Loop Iterator using Let", + "id": 28, + "trigger": "let:iterator" + }, + { + "description": "ES6 Let", + "id": 29, + "trigger": "let" + }, + { + "description": "ES6 Map", + "id": 30, + "trigger": "Map" + }, + { + "description": "ES6 WeakMap", + "id": 31, + "trigger": "WeakMap" + }, + { + "description": "ES6 Dynamic Module Import", + "id": 32, + "trigger": "System.import" + }, + { + "description": "ES6 Module Export Function", + "id": 33, + "trigger": "export:function" + }, + { + "description": "ES6 Module Export Variable", + "id": 34, + "trigger": "export:variable" + }, + { + "description": "ES6 Module Import", + "id": 35, + "trigger": "import" + }, + { + "description": "ES6 Loader Class", + "id": 36, + "trigger": "Loader" + }, + { + "description": "ES6 System Get Module", + "id": 37, + "trigger": "System.get" + }, + { + "description": "ES6 System Set Module", + "id": 38, + "trigger": "System.set" + }, + { + "description": "ES6 Object Literal", + "id": 39, + "trigger": "object" + }, + { + "description": "ES6 Promise", + "id": 40, + "trigger": "Promise" + }, + { + "description": "ES6 Proxy", + "id": 41, + "trigger": "Proxy" + }, + { + "description": "ES6 Reflect Apply", + "id": 42, + "trigger": "Reflect:apply" + }, + { + "description": "ES6 Reflect Construct", + "id": 43, + "trigger": "Reflect:construct" + }, + { + "description": "ES6 Reflect Define Property", + "id": 44, + "trigger": "Reflect:defineProperty" + }, + { + "description": "ES6 Reflect Delete Property", + "id": 45, + "trigger": "Reflect:deleteProperty" + }, + { + "description": "ES6 Reflect Enumerate", + "id": 46, + "trigger": "Reflect:enumerate" + }, + { + "description": "ES6 Reflect Get", + "id": 47, + "trigger": "Reflect:get" + }, + { + "description": "ES6 Reflect Get Property Descriptor", + "id": 48, + "trigger": "Reflect:getOwnPropertyDescriptor" + }, + { + "description": "ES6 Reflect Get Prototype Of", + "id": 49, + "trigger": "Reflect:getPrototypeOf" + }, + { + "description": "ES6 Reflect Has", + "id": 50, + "trigger": "Reflect:has" + }, + { + "description": "ES6 Reflect Is Extensible", + "id": 51, + "trigger": "Reflect:isExtensible" + }, + { + "description": "ES6 Reflect Own Keys", + "id": 52, + "trigger": "Reflect:ownKeys" + }, + { + "description": "ES6 Reflect Prevent Extensions", + "id": 53, + "trigger": "Reflect:preventExtensions" + }, + { + "description": "ES6 Reflect Set", + "id": 54, + "trigger": "Reflect:set" + }, + { + "description": "ES6 Reflect Set Prototype Of", + "id": 55, + "trigger": "Reflect:setPrototypeOf" + }, + { + "description": "ES6 Set", + "id": 56, + "trigger": "Set" + }, + { + "description": "ES6 WeakSet", + "id": 57, + "trigger": "WeakSet" + }, + { + "description": "ES6 Template String", + "id": 58, + "trigger": "string" + }, + { + "description": "jq - ajax", + "id": 59, "trigger": "jq.a" }, { "description": "jq - ajaxComplete", - "id": 26, + "id": 60, "trigger": "jq.acomplete" }, { "description": "jq - ajaxError", - "id": 27, + "id": 61, "trigger": "jq.aerror" }, { "description": "jq - getJSON", - "id": 28, + "id": 62, "trigger": "jq.gjson" }, { "description": "jq - getScript", - "id": 29, + "id": 63, "trigger": "jq.gscript" }, { "description": "jq - jQuery get", - "id": 30, + "id": 64, "trigger": "jq.jget" }, { "description": "jq - load", - "id": 31, + "id": 65, "trigger": "jq.load" }, { "description": "jq - post", - "id": 32, + "id": 66, "trigger": "jq.post" }, { "description": "jq - ajaxPrefilter", - "id": 33, + "id": 67, "trigger": "jq.aprefilter" }, { "description": "jq - ajaxSend", - "id": 34, + "id": 68, "trigger": "jq.asend" }, { "description": "jq - ajaxSetup", - "id": 35, + "id": 69, "trigger": "jq.asetup" }, { "description": "jq - ajaxStart", - "id": 36, + "id": 70, "trigger": "jq.astart" }, { "description": "jq - ajaxStop", - "id": 37, + "id": 71, "trigger": "jq.astop" }, { "description": "jq - ajaxSuccess", - "id": 38, + "id": 72, "trigger": "jq.asuccess" }, { "description": "jq - ajaxTransport", - "id": 39, + "id": 73, "trigger": "jq.atransport" }, { "description": "jq - addClass", - "id": 40, + "id": 74, "trigger": "jq.addclass" }, { "description": "jq - attr", - "id": 41, + "id": 75, "trigger": "jq.attr" }, { "description": "jq - hasClass", - "id": 42, + "id": 76, "trigger": "jq.hasclass" }, { "description": "jq - html", - "id": 43, + "id": 77, "trigger": "jq.html" }, { "description": "jq - prop", - "id": 44, + "id": 78, "trigger": "jq.prop" }, { "description": "jq - removeAttr", - "id": 45, + "id": 79, "trigger": "jq.rattr" }, { "description": "jq - removeClass", - "id": 46, + "id": 80, "trigger": "jq.rclass" }, { "description": "jq - removeProp", - "id": 47, + "id": 81, "trigger": "jq.rprop" }, { "description": "jq - toggleClass", - "id": 48, + "id": 82, "trigger": "jq.tclass" }, { "description": "jq - add", - "id": 49, + "id": 83, "trigger": "jq.cbadd" }, { "description": "jq - disable", - "id": 50, + "id": 84, "trigger": "jq.cbdisable" }, { "description": "jq - disabled", - "id": 51, + "id": 85, "trigger": "jq.cbdisabled" }, { "description": "jq - empty", - "id": 52, + "id": 86, "trigger": "jq.cbempty" }, { "description": "jq - fireWith", - "id": 53, + "id": 87, "trigger": "jq.cbfirewith" }, { "description": "jq - fire", - "id": 54, + "id": 88, "trigger": "jq.cbfire" }, { "description": "jq - fired", - "id": 55, + "id": 89, "trigger": "jq.cbfired" }, { "description": "jq - has", - "id": 56, + "id": 90, "trigger": "jq.cbhas" }, { "description": "jq - lock", - "id": 57, + "id": 91, "trigger": "jq.cblock" }, { "description": "jq - locked", - "id": 58, + "id": 92, "trigger": "jq.cblocked" }, { "description": "jq - remove", - "id": 59, + "id": 93, "trigger": "jq.cbremove" }, { "description": "jq - callbacks", - "id": 60, + "id": 94, "trigger": "jq.cb" }, { "description": "jq - holdReady", - "id": 61, + "id": 95, "trigger": "jq.holdready" }, { "description": "jq - jQuery", - "id": 62, + "id": 96, "trigger": "jq.jq" }, { "description": "jq - noConflict", - "id": 63, + "id": 97, "trigger": "jq.noc" }, { "description": "jq - when", - "id": 64, + "id": 98, "trigger": "jq.when" }, { "description": "jq - cssHooks", - "id": 65, + "id": 99, "trigger": "jq.cssh" }, { "description": "jq - cssNumber", - "id": 66, + "id": 100, "trigger": "jq.cssn" }, { "description": "jq - css", - "id": 67, + "id": 101, "trigger": "jq.css" }, { "description": "jq - hasData", - "id": 68, + "id": 102, "trigger": "jq.hasdata" }, { "description": "jq - jQuery data", - "id": 69, + "id": 103, "trigger": "jq.jdata" }, { "description": "jq - jQuery removeData", - "id": 70, + "id": 104, "trigger": "jq.jrdata" }, { "description": "jq - removeData", - "id": 71, + "id": 105, "trigger": "jq.rdata" }, { "description": "jq - data", - "id": 72, + "id": 106, "trigger": "jq.data" }, { "description": "jq - always", - "id": 73, + "id": 107, "trigger": "jq.always" }, { "description": "jq - done", - "id": 74, + "id": 108, "trigger": "jq.done" }, { "description": "jq - fail", - "id": 75, + "id": 109, "trigger": "jq.fail" }, { "description": "jq - notifyWith", - "id": 76, + "id": 110, "trigger": "jq.notifywith" }, { "description": "jq - notify", - "id": 77, + "id": 111, "trigger": "jq.notify" }, { "description": "jq - progress", - "id": 78, + "id": 112, "trigger": "jq.progress" }, { "description": "jq - promise", - "id": 79, + "id": 113, "trigger": "jq.dpromise" }, { "description": "jq - rejectWith", - "id": 80, + "id": 114, "trigger": "jq.rejectwith" }, { "description": "jq - reject", - "id": 81, + "id": 115, "trigger": "jq.reject" }, { "description": "jq - resolveWith", - "id": 82, + "id": 116, "trigger": "jq.resolvewith" }, { "description": "jq - resolve", - "id": 83, + "id": 117, "trigger": "jq.resolve" }, { "description": "jq - state", - "id": 84, + "id": 118, "trigger": "jq.state" }, { "description": "jq - then", - "id": 85, + "id": 119, "trigger": "jq.then" }, { "description": "jq - deferred", - "id": 86, + "id": 120, "trigger": "jq.d" }, { "description": "jq - promise", - "id": 87, + "id": 121, "trigger": "jq.promise" }, { "description": "jq - height", - "id": 88, + "id": 122, "trigger": "jq.height" }, { "description": "jq - innerHeight", - "id": 89, + "id": 123, "trigger": "jq.iheight" }, { "description": "jq - innerWidth", - "id": 90, + "id": 124, "trigger": "jq.iwidth" }, { "description": "jq - outerHeight", - "id": 91, + "id": 125, "trigger": "jq.oheight" }, { "description": "jq - outerWidth", - "id": 92, + "id": 126, "trigger": "jq.owidth" }, { "description": "jq - width", - "id": 93, + "id": 127, "trigger": "jq.width" }, { "description": "jq - animate", - "id": 94, + "id": 128, "trigger": "jq.animate" }, { "description": "jq - clearQueue", - "id": 95, + "id": 129, "trigger": "jq.cqueue" }, { "description": "jq - delay", - "id": 96, + "id": 130, "trigger": "jq.delay" }, { "description": "jq - dequeue", - "id": 97, + "id": 131, "trigger": "jq.dequeue" }, { "description": "jq - fadeIn", - "id": 98, + "id": 132, "trigger": "jq.fadein" }, { "description": "jq - fadeOut", - "id": 99, + "id": 133, "trigger": "jq.fadeout" }, { "description": "jq - fadeToggle", - "id": 100, + "id": 134, "trigger": "jq.fadetoggle" }, { "description": "jq - fadeTo", - "id": 101, + "id": 135, "trigger": "jq.fadeto" }, { "description": "jq - finish", - "id": 102, + "id": 136, "trigger": "jq.finish" }, { "description": "jq - hide", - "id": 103, + "id": 137, "trigger": "jq.hide" }, { "description": "jq - queue", - "id": 104, + "id": 138, "trigger": "jq.queue" }, { "description": "jq - show", - "id": 105, + "id": 139, "trigger": "jq.show" }, { "description": "jq - slideDown", - "id": 106, + "id": 140, "trigger": "jq.sdown" }, { "description": "jq - slideToggle", - "id": 107, + "id": 141, "trigger": "jq.stoggle" }, { "description": "jq - slideUp", - "id": 108, + "id": 142, "trigger": "jq.sup" }, { "description": "jq - stop", - "id": 109, + "id": 143, "trigger": "jq.stop" }, { "description": "jq - toggle", - "id": 110, + "id": 144, "trigger": "jq.toggle" }, { "description": "jq - bind", - "id": 111, + "id": 145, "trigger": "jq.bind" }, { "description": "jq - click", - "id": 112, + "id": 146, "trigger": "jq.click" }, { "description": "jq - contextmenu", - "id": 113, + "id": 147, "trigger": "jq.jqcmenu" }, { "description": "jq - currentTarget", - "id": 114, + "id": 148, "trigger": "jq.ctarget" }, { "description": "jq - Event data", - "id": 115, + "id": 149, "trigger": "jq.edata" }, { "description": "jq - dblclick", - "id": 116, + "id": 150, "trigger": "jq.dclick" }, { "description": "jq - delegateTarget", - "id": 117, + "id": 151, "trigger": "jq.dtarget" }, { "description": "jq - delegate", - "id": 118, + "id": 152, "trigger": "jq.delegate" }, { "description": "jq - hover", - "id": 119, + "id": 153, "trigger": "jq.hover" }, { "description": "jq - isDefaultPrevented", - "id": 120, + "id": 154, "trigger": "jq.idprevented" }, { "description": "jq - isImmediatePropagationStopped", - "id": 121, + "id": 155, "trigger": "jq.iips" }, { "description": "jq - isPropagationStopped", - "id": 122, + "id": 156, "trigger": "jq.ips" }, { "description": "jq - keydown", - "id": 123, + "id": 157, "trigger": "jq.kdown" }, { "description": "jq - keypress", - "id": 124, + "id": 158, "trigger": "jq.kpress" }, { "description": "jq - keyup", - "id": 125, + "id": 159, "trigger": "jq.kup" }, { "description": "jq - metaKey", - "id": 126, + "id": 160, "trigger": "jq.mkey" }, { "description": "jq - mousedown", - "id": 127, + "id": 161, "trigger": "jq.mdown" }, { "description": "jq - mouseenter", - "id": 128, + "id": 162, "trigger": "jq.menter" }, { "description": "jq - mouseleave", - "id": 129, + "id": 163, "trigger": "jq.mleave" }, { "description": "jq - mousemove", - "id": 130, + "id": 164, "trigger": "jq.mmove" }, { "description": "jq - mouseout", - "id": 131, + "id": 165, "trigger": "jq.mout" }, { "description": "jq - mouseover", - "id": 132, + "id": 166, "trigger": "jq.mover" }, { "description": "jq - mouseup", - "id": 133, + "id": 167, "trigger": "jq.mup" }, { "description": "jq - namespace", - "id": 134, + "id": 168, "trigger": "jq.ns" }, { "description": "jq - off", - "id": 135, + "id": 169, "trigger": "jq.off" }, { "description": "jq - on", - "id": 136, + "id": 170, "trigger": "jq.on" }, { "description": "jq - one", - "id": 137, + "id": 171, "trigger": "jq.one" }, { "description": "jq - pageX", - "id": 138, + "id": 172, "trigger": "jq.px" }, { "description": "jq - pageY", - "id": 139, + "id": 173, "trigger": "jq.py" }, { "description": "jq - preventDefault", - "id": 140, + "id": 174, "trigger": "jq.pd" }, { "description": "jq - ready", - "id": 141, + "id": 175, "trigger": "jq.ready" }, { "description": "jq - relatedTarget", - "id": 142, + "id": 176, "trigger": "jq.rtarget" }, { "description": "jq - resize", - "id": 143, + "id": 177, "trigger": "jq.resize" }, { "description": "jq - result", - "id": 144, + "id": 178, "trigger": "jq.result" }, { "description": "jq - scroll", - "id": 145, + "id": 179, "trigger": "jq.scroll" }, { "description": "jq - stopImmediatePropagation", - "id": 146, + "id": 180, "trigger": "jq.sip" }, { "description": "jq - stopPropagation", - "id": 147, + "id": 181, "trigger": "jq.sp" }, { "description": "jq - target", - "id": 148, + "id": 182, "trigger": "jq.target" }, { "description": "jq - timeStamp", - "id": 149, + "id": 183, "trigger": "jq.tstamp" }, { "description": "jq - triggerHandler", - "id": 150, + "id": 184, "trigger": "jq.thandler" }, { "description": "jq - trigger", - "id": 151, + "id": 185, "trigger": "jq.trigger" }, { "description": "jq - type", - "id": 152, + "id": 186, "trigger": "jq.type" }, { "description": "jq - unbind", - "id": 153, + "id": 187, "trigger": "jq.unbind" }, { "description": "jq - undelegate", - "id": 154, + "id": 188, "trigger": "jq.undelegate" }, { "description": "jq - which", - "id": 155, + "id": 189, "trigger": "jq.which" }, { "description": "jq - blur", - "id": 156, + "id": 190, "trigger": "jq.blur" }, { "description": "jq - change", - "id": 157, + "id": 191, "trigger": "jq.change" }, { "description": "jq - focusin", - "id": 158, + "id": 192, "trigger": "jq.focusin" }, { "description": "jq - focusout", - "id": 159, + "id": 193, "trigger": "jq.focusout" }, { "description": "jq - focus", - "id": 160, + "id": 194, "trigger": "jq.focus" }, { "description": "jq - param", - "id": 161, + "id": 195, "trigger": "jq.param" }, { "description": "jq - select", - "id": 162, + "id": 196, "trigger": "jq.select" }, { "description": "jq - serializeArray", - "id": 163, + "id": 197, "trigger": "jq.serarray" }, { "description": "jq - serialize", - "id": 164, + "id": 198, "trigger": "jq.ser" }, { "description": "jq - submit", - "id": 165, + "id": 199, "trigger": "jq.submit" }, { "description": "jq - val", - "id": 166, + "id": 200, "trigger": "jq.val" }, { "description": "jq - error", - "id": 167, + "id": 201, "trigger": "jq.error" }, { "description": "jq - pushStack", - "id": 168, + "id": 202, "trigger": "jq.pstack" }, { "description": "jq - after", - "id": 169, + "id": 203, "trigger": "jq.after" }, { "description": "jq - appendTo", - "id": 170, + "id": 204, "trigger": "jq.appendto" }, { "description": "jq - append", - "id": 171, + "id": 205, "trigger": "jq.append" }, { "description": "jq - before", - "id": 172, + "id": 206, "trigger": "jq.before" }, { "description": "jq - clone", - "id": 173, + "id": 207, "trigger": "jq.clone" }, { "description": "jq - detach", - "id": 174, + "id": 208, "trigger": "jq.detach" }, { "description": "jq - empty", - "id": 175, + "id": 209, "trigger": "jq.empty" }, { "description": "jq - insertAfter", - "id": 176, + "id": 210, "trigger": "jq.iafter" }, { "description": "jq - insertBefore", - "id": 177, + "id": 211, "trigger": "jq.ibefore" }, { "description": "jq - prependTo", - "id": 178, + "id": 212, "trigger": "jq.prependto" }, { "description": "jq - prepend", - "id": 179, + "id": 213, "trigger": "jq.prepend" }, { "description": "jq - remove", - "id": 180, + "id": 214, "trigger": "jq.remove" }, { "description": "jq - replaceAll", - "id": 181, + "id": 215, "trigger": "jq.replaceall" }, { "description": "jq - replaceWith", - "id": 182, + "id": 216, "trigger": "jq.replacewith" }, { "description": "jq - text", - "id": 183, + "id": 217, "trigger": "jq.text" }, { "description": "jq - unwrap", - "id": 184, + "id": 218, "trigger": "jq.unwrap" }, { "description": "jq - wrapAll", - "id": 185, + "id": 219, "trigger": "jq.wall" }, { "description": "jq - wrapInner", - "id": 186, + "id": 220, "trigger": "jq.winner" }, { "description": "jq - wrap", - "id": 187, + "id": 221, "trigger": "jq.wrap" }, { "description": "jq - get", - "id": 188, + "id": 222, "trigger": "jq.get" }, { "description": "jq - index", - "id": 189, + "id": 223, "trigger": "jq.index" }, { "description": "jq - toArray", - "id": 190, + "id": 224, "trigger": "jq.toarray" }, { "description": "jq - offsetParent", - "id": 191, + "id": 225, "trigger": "jq.oparent" }, { "description": "jq - position", - "id": 192, + "id": 226, "trigger": "jq.pos" }, { "description": "jq - scrollLeft", - "id": 193, + "id": 227, "trigger": "jq.scleft" }, { "description": "jq - scrollTop", - "id": 194, + "id": 228, "trigger": "jq.sctop" }, { "description": "jq - offset", - "id": 195, + "id": 229, "trigger": "jq.oset" }, { "description": "jq - fx.interval", - "id": 196, + "id": 230, "trigger": "jq.fxi" }, { "description": "jq - fx.off", - "id": 197, + "id": 231, "trigger": "jq.fxo" }, { "description": "jq - jquery", - "id": 198, + "id": 232, "trigger": "jq.jprop" }, { "description": "jq - length", - "id": 199, + "id": 233, "trigger": "jq.len" }, { "description": "jq - all", - "id": 200, + "id": 234, "trigger": "jq.all" }, { "description": "jq - :animated", - "id": 201, + "id": 235, "trigger": "jq.:a" }, { "description": "jq - Attribute Contains Prefix", - "id": 202, + "id": 236, "trigger": "jq.[]|" }, { "description": "jq - Attribute Contains", - "id": 203, + "id": 237, "trigger": "jq.[]*" }, { "description": "jq - Attribute Contains Word", - "id": 204, + "id": 238, "trigger": "jq.[]~" }, { "description": "jq - Attribute Ends With", - "id": 205, + "id": 239, "trigger": "jq.[]$" }, { "description": "jq - Attribute Equals", - "id": 206, + "id": 240, "trigger": "jq.[]=" }, { "description": "jq - Attribute Not Equal", - "id": 207, + "id": 241, "trigger": "jq.[]!" }, { "description": "jq - Attribute Starts With", - "id": 208, + "id": 242, "trigger": "jq.[]^" }, { "description": "jq - :button", - "id": 209, + "id": 243, "trigger": "jq.:b" }, { "description": "jq - :checkbox", - "id": 210, + "id": 244, "trigger": "jq.:c" }, { "description": "jq - :checked", - "id": 211, + "id": 245, "trigger": "jq.:ch" }, { "description": "jq - :child", - "id": 212, + "id": 246, "trigger": "jq.:chi" }, { "description": "jq - class", - "id": 213, + "id": 247, "trigger": "jq.:cl" }, { "description": "jq - :contains", - "id": 214, + "id": 248, "trigger": "jq.:co" }, { "description": "jq - descendant", - "id": 215, + "id": 249, "trigger": "jq.des" }, { "description": "jq - :disabled", - "id": 216, + "id": 250, "trigger": "jq.:d" }, { "description": "jq - element", - "id": 217, + "id": 251, "trigger": "jq.$" }, { "description": "jq - :empty", - "id": 218, + "id": 252, "trigger": "jq.:e" }, { "description": "jq - :enabled", - "id": 219, + "id": 253, "trigger": "jq.:en" }, { "description": "jq - :eq", - "id": 220, + "id": 254, "trigger": "jq.:eq" }, { "description": "jq - :even", - "id": 221, + "id": 255, "trigger": "jq.:ev" }, { "description": "jq - :file", - "id": 222, + "id": 256, "trigger": "jq.:f" }, { "description": "jq - :first-child", - "id": 223, + "id": 257, "trigger": "jq.:fc" }, { "description": "jq - :first-of-type", - "id": 224, + "id": 258, "trigger": "jq.:ft" }, { "description": "jq - :first", - "id": 225, + "id": 259, "trigger": "jq.:fi" }, { "description": "jq - :focus", - "id": 226, + "id": 260, "trigger": "jq.:fo" }, { "description": "jq - :gt", - "id": 227, + "id": 261, "trigger": "jq.:gt" }, { "description": "jq - Has Attribute", - "id": 228, + "id": 262, "trigger": "jq.[]" }, { "description": "jq - :has", - "id": 229, + "id": 263, "trigger": "jq.:h" }, { "description": "jq - :header", - "id": 230, + "id": 264, "trigger": "jq.:he" }, { "description": "jq - :hidden", - "id": 231, + "id": 265, "trigger": "jq.:hi" }, { "description": "jq - id", - "id": 232, + "id": 266, "trigger": "jq.id" }, { "description": "jq - :image", - "id": 233, + "id": 267, "trigger": "jq.:i" }, { "description": "jq - :input", - "id": 234, + "id": 268, "trigger": "jq.:in" }, { "description": "jq - :lang", - "id": 235, + "id": 269, "trigger": "jq.:l" }, { "description": "jq - :last-child", - "id": 236, + "id": 270, "trigger": "jq.:lc" }, { "description": "jq - :last-of-type", - "id": 237, + "id": 271, "trigger": "jq.:lty" }, { "description": "jq - :last", - "id": 238, + "id": 272, "trigger": "jq.:la" }, { "description": "jq - :lt", - "id": 239, + "id": 273, "trigger": "jq.:lt" }, { "description": "jq - Multiple Attribute", - "id": 240, + "id": 274, "trigger": "jq.[][]" }, { "description": "jq - Multiple", - "id": 241, + "id": 275, "trigger": "jq.," }, { "description": "jq - Next Adjacent", - "id": 242, + "id": 276, "trigger": "jq.+" }, { "description": "jq - Next Siblings", - "id": 243, - "trigger": "jq.-snss" + "id": 277, + "trigger": "jq.snss" }, { "description": "jq - :not", - "id": 244, + "id": 278, "trigger": "jq.:not" }, { "description": "jq - :nth-child", - "id": 245, + "id": 279, "trigger": "jq.:nc" }, { "description": "jq - :nth-last-child", - "id": 246, + "id": 280, "trigger": "jq.:nlc" }, { "description": "jq - :nth-last-of-type", - "id": 247, + "id": 281, "trigger": "jq.:nlt" }, { "description": "jq - :nth-of-type", - "id": 248, + "id": 282, "trigger": "jq.:nt" }, { "description": "jq - :odd", - "id": 249, + "id": 283, "trigger": "jq.:o" }, { "description": "jq - :only-child", - "id": 250, + "id": 284, "trigger": "jq.:oc" }, { "description": "jq - :only-of-type", - "id": 251, + "id": 285, "trigger": "jq.:ot" }, { "description": "jq - :parent", - "id": 252, + "id": 286, "trigger": "jq.:p" }, { "description": "jq - :password", - "id": 253, + "id": 287, "trigger": "jq.:pa" }, { "description": "jq - :radio", - "id": 254, + "id": 288, "trigger": "jq.:r" }, { "description": "jq - :reset", - "id": 255, + "id": 289, "trigger": "jq.:re" }, { "description": "jq - :root", - "id": 256, + "id": 290, "trigger": "jq.:ro" }, { "description": "jq - :selected", - "id": 257, + "id": 291, "trigger": "jq.:s" }, { "description": "jq - :submit", - "id": 258, + "id": 292, "trigger": "jq.:su" }, { "description": "jq - :target", - "id": 259, + "id": 293, "trigger": "jq.:t" }, { "description": "jq - :text", - "id": 260, + "id": 294, "trigger": "jq.:tx" }, { "description": "jq - :visible", - "id": 261, + "id": 295, "trigger": "jq.:v" }, { "description": "jq - addBack", - "id": 262, + "id": 296, "trigger": "jq.addback" }, { "description": "jq - add", - "id": 263, + "id": 297, "trigger": "jq.add" }, { "description": "jq - children", - "id": 264, + "id": 298, "trigger": "jq.children" }, { "description": "jq - closest", - "id": 265, + "id": 299, "trigger": "jq.closest" }, { "description": "jq - contents", - "id": 266, + "id": 300, "trigger": "jq.contents" }, { "description": "jq - each", - "id": 267, + "id": 301, "trigger": "jq.each" }, { "description": "jq - end", - "id": 268, + "id": 302, "trigger": "jq.end" }, { "description": "jq - eq", - "id": 269, + "id": 303, "trigger": "jq.eq" }, { "description": "jq - filter", - "id": 270, + "id": 304, "trigger": "jq.filter" }, { "description": "jq - find", - "id": 271, + "id": 305, "trigger": "jq.find" }, { "description": "jq - first", - "id": 272, + "id": 306, "trigger": "jq.first" }, { "description": "jq - has", - "id": 273, + "id": 307, "trigger": "jq.has" }, { "description": "jq - is", - "id": 274, + "id": 308, "trigger": "jq.is" }, { "description": "jq - last", - "id": 275, + "id": 309, "trigger": "jq.last" }, { "description": "jq - map", - "id": 276, + "id": 310, "trigger": "jq.map" }, { "description": "jq - nextAll", - "id": 277, + "id": 311, "trigger": "jq.nextall" }, { "description": "jq - nextUntil", - "id": 278, + "id": 312, "trigger": "jq.nextuntil" }, { "description": "jq - next", - "id": 279, + "id": 313, "trigger": "jq.next" }, { "description": "jq - not", - "id": 280, + "id": 314, "trigger": "jq.not" }, { "description": "jq - parent", - "id": 281, + "id": 315, "trigger": "jq.parent" }, { "description": "jq - parentsUntil", - "id": 282, + "id": 316, "trigger": "jq.puntil" }, { "description": "jq - parents", - "id": 283, + "id": 317, "trigger": "jq.parents" }, { "description": "jq - prevAll", - "id": 284, + "id": 318, "trigger": "jq.prevall" }, { "description": "jq - prevUntil", - "id": 285, + "id": 319, "trigger": "jq.prevuntil" }, { "description": "jq - prev", - "id": 286, + "id": 320, "trigger": "jq.prev" }, { "description": "jq - siblings", - "id": 287, - "trigger": "jq.-ts" + "id": 321, + "trigger": "jq.ts" }, { "description": "jq - slice", - "id": 288, - "trigger": "jq.-tsl" + "id": 322, + "trigger": "jq.tsl" }, { "description": "jq - contains", - "id": 289, + "id": 323, "trigger": "jq.contains" }, { "description": "jq - jQuery each", - "id": 290, + "id": 324, "trigger": "jq.jeach" }, { "description": "jq - extend", - "id": 291, + "id": 325, "trigger": "jq.extend" }, { "description": "jq - fn.extend", - "id": 292, + "id": 326, "trigger": "jq.fnextend" }, { "description": "jq - globalEval", - "id": 293, + "id": 327, "trigger": "jq.geval" }, { "description": "jq - grep", - "id": 294, + "id": 328, "trigger": "jq.grep" }, { "description": "jq - inArray", - "id": 295, + "id": 329, "trigger": "jq.inarray" }, { "description": "jq - isEmptyObject", - "id": 296, + "id": 330, "trigger": "jq.ieobject" }, { "description": "jq - isFunction", - "id": 297, + "id": 331, "trigger": "jq.ifunction" }, { "description": "jq - isNumeric", - "id": 298, + "id": 332, "trigger": "jq.inumeric" }, { "description": "jq - isPlainObject", - "id": 299, + "id": 333, "trigger": "jq.ipobject" }, { "description": "jq - isWindow", - "id": 300, + "id": 334, "trigger": "jq.iwindow" }, { "description": "jq - isXMLDoc", - "id": 301, + "id": 335, "trigger": "jq.ixmldoc" }, { "description": "jq - makeArray", - "id": 302, + "id": 336, "trigger": "jq.marray" }, { "description": "jq - jQuery map", - "id": 303, + "id": 337, "trigger": "jq.jmap" }, { "description": "jq - merge", - "id": 304, + "id": 338, "trigger": "jq.merge" }, { "description": "jq - noop", - "id": 305, + "id": 339, "trigger": "jq.noop" }, { "description": "jq - now", - "id": 306, + "id": 340, "trigger": "jq.now" }, { "description": "jq - parseHTML", - "id": 307, + "id": 341, "trigger": "jq.parseh" }, { - "description": "jq - parseJSON", - "id": 308, - "trigger": "jq.parsej" + "description": "jq - parseJSON", + "id": 342, + "trigger": "jq.parsej" + }, + { + "description": "jq - parseXML", + "id": 343, + "trigger": "jq.parsex" + }, + { + "description": "jq - proxy", + "id": 344, + "trigger": "jq.proxy" + }, + { + "description": "jq - trim", + "id": 345, + "trigger": "jq.trim" + }, + { + "description": "jq - jQuery type", + "id": 346, + "trigger": "jq.jtype" + }, + { + "description": "jq - unique", + "id": 347, + "trigger": "jq.unique" + }, + { + "description": "jq - jQuery Boilerplate", + "id": 348, + "trigger": "jq.b" + }, + { + "description": "ES6 React.Component class", + "id": 349, + "trigger": "6rec" + }, + { + "description": "React createClass template", + "id": 350, + "trigger": "rec" + }, + { + "description": "React mixins", + "id": 351, + "trigger": "mix" + }, + { + "description": "ES6 React componentDidMount", + "id": 352, + "trigger": "6cd" + }, + { + "description": "ES6 React componentWillMount", + "id": 353, + "trigger": "6cw" + }, + { + "description": "React componentWillUnmount", + "id": 354, + "trigger": "6cwu" + }, + { + "description": "React componentDidMount", + "id": 355, + "trigger": "cd" + }, + { + "description": "React componentWillMount", + "id": 356, + "trigger": "cw" + }, + { + "description": "React componentWillUnmount", + "id": 357, + "trigger": "cwu" + }, + { + "description": "React unmountComponent at node", + "id": 358, + "trigger": "unm" + }, + { + "description": "ES6 React componentDidUpdate", + "id": 359, + "trigger": "6cdu" + }, + { + "description": "ES6 React componentWillReceiveProps", + "id": 360, + "trigger": "6cwr" + }, + { + "description": "ES6 React componentWillUpdate", + "id": 361, + "trigger": "6cwup" + }, + { + "description": "ES6 React shouldComponentUpdate", + "id": 362, + "trigger": "6scu" + }, + { + "description": "React componentDidUpdate", + "id": 363, + "trigger": "cdu" + }, + { + "description": "React componentWillReceiveProps", + "id": 364, + "trigger": "cwr" + }, + { + "description": "React componentWillUpdate", + "id": 365, + "trigger": "cwup" + }, + { + "description": "React shouldComponentUpdate", + "id": 366, + "trigger": "scu" + }, + { + "description": "React ChildContextTypes", + "id": 367, + "trigger": "ctt" + }, + { + "description": "React contextTypes", + "id": 368, + "trigger": "cty" + }, + { + "description": "React getChildContext", + "id": 369, + "trigger": "gc" + }, + { + "description": "React withContext", + "id": 370, + "trigger": "rwc" + }, + { + "description": "React.createElement()", + "id": 371, + "trigger": "rc" + }, + { + "description": "onBlur", + "id": 372, + "trigger": "onbl" + }, + { + "description": "onChange", + "id": 373, + "trigger": "onch" + }, + { + "description": "onClick", + "id": 374, + "trigger": "oncl" + }, + { + "description": "onContextMenu", + "id": 375, + "trigger": "oncm" + }, + { + "description": "onCopy", + "id": 376, + "trigger": "onco" + }, + { + "description": "onCut", + "id": 377, + "trigger": "onct" + }, + { + "description": "onDoubleClick", + "id": 378, + "trigger": "ondc" + }, + { + "description": "onDragEnd", + "id": 379, + "trigger": "onde" + }, + { + "description": "onDragEnter", + "id": 380, + "trigger": "onden" + }, + { + "description": "onDragExit", + "id": 381, + "trigger": "ondex" + }, + { + "description": "onDragLeave", + "id": 382, + "trigger": "ondl" + }, + { + "description": "onDragOver", + "id": 383, + "trigger": "ondo" + }, + { + "description": "onDragStart", + "id": 384, + "trigger": "onds" + }, + { + "description": "onDrop", + "id": 385, + "trigger": "ondr" + }, + { + "description": "onFocus", + "id": 386, + "trigger": "onfo" + }, + { + "description": "onInput", + "id": 387, + "trigger": "onin" + }, + { + "description": "onKeyDown", + "id": 388, + "trigger": "onkd" + }, + { + "description": "onKeyPress", + "id": 389, + "trigger": "onkp" + }, + { + "description": "onKeyUp", + "id": 390, + "trigger": "onku" + }, + { + "description": "onMouseDown", + "id": 391, + "trigger": "onmd" + }, + { + "description": "onMouseEnter", + "id": 392, + "trigger": "onme" + }, + { + "description": "onMouseLeave", + "id": 393, + "trigger": "onml" + }, + { + "description": "onMouseMove", + "id": 394, + "trigger": "onmm" + }, + { + "description": "onMouseOut", + "id": 395, + "trigger": "onmo" + }, + { + "description": "onMouseOver", + "id": 396, + "trigger": "onmov" + }, + { + "description": "onMouseUp", + "id": 397, + "trigger": "onmu" + }, + { + "description": "onPaste", + "id": 398, + "trigger": "onpa" + }, + { + "description": "onScroll", + "id": 399, + "trigger": "onsc" + }, + { + "description": "onSubmit", + "id": 400, + "trigger": "onsu" + }, + { + "description": "onTouchCancel", + "id": 401, + "trigger": "ontc" + }, + { + "description": "onTouchEnd", + "id": 402, + "trigger": "onte" + }, + { + "description": "onTouchMove", + "id": 403, + "trigger": "ontm" + }, + { + "description": "onTouchStart", + "id": 404, + "trigger": "onts" + }, + { + "description": "onWheel", + "id": 405, + "trigger": "onwh" + }, + { + "description": "React getDefaultProps", + "id": 406, + "trigger": "gd" + }, + { + "description": "React.findDOMNode", + "id": 407, + "trigger": "fdn" + }, + { + "description": "React getInitialState", + "id": 408, + "trigger": "gi" + }, + { + "description": "React JSX", + "id": 409, + "trigger": "jsx" + }, + { + "description": "React JSX script src", + "id": 410, + "trigger": "jsx:src" + }, + { + "description": "React JSX script type", + "id": 411, + "trigger": "jsxt" + }, + { + "description": "propTypes", + "id": 412, + "trigger": "pt" + }, + { + "description": "React.PropTypes", + "id": 413, + "trigger": "rp" + }, + { + "description": "React.PropTypes.array", + "id": 414, + "trigger": "rpa" + }, + { + "description": "React.PropTypes.arrayOf", + "id": 415, + "trigger": "rpao" + }, + { + "description": "React.PropTypes.boolean", + "id": 416, + "trigger": "rpb" + }, + { + "description": "React.PropTypes.element", + "id": 417, + "trigger": "rpe" + }, + { + "description": "React.PropTypes.func", + "id": 418, + "trigger": "rpf" + }, + { + "description": "React.PropTypes.instanceOf", + "id": 419, + "trigger": "rpi" + }, + { + "description": "React.PropTypes.number", + "id": 420, + "trigger": "rpn" + }, + { + "description": "React.PropTypes.object", + "id": 421, + "trigger": "rpobj" + }, + { + "description": "React.PropTypes.oneOf", + "id": 422, + "trigger": "rpo" + }, + { + "description": "React.PropTypes.oneOfType", + "id": 423, + "trigger": "rpot" + }, + { + "description": "React.PropTypes.shape", + "id": 424, + "trigger": "rpsh" + }, + { + "description": "React.PropTypes.string", + "id": 425, + "trigger": "rps" + }, + { + "description": "React.addons.classSet", + "id": 426, + "trigger": "raCS" + }, + { + "description": "React.addons.cloneWithProps", + "id": 427, + "trigger": "rclone" + }, + { + "description": "React.addons.CSSTransitionGroup", + "id": 428, + "trigger": "raCSS" + }, + { + "description": "React.addons.LinkedStateMixin", + "id": 429, + "trigger": "raL" + }, + { + "description": "this.linkState", + "id": 430, + "trigger": "thisl" + }, + { + "description": "valueLink", + "id": 431, + "trigger": "vl" + }, + { + "description": "React.addons.CSSTransitionGroup.transitionName", + "id": 432, + "trigger": "tn" + }, + { + "description": "React.DOM.a", + "id": 433, + "trigger": "Ra" + }, + { + "description": "React.DOM.abbr", + "id": 434, + "trigger": "Rabbr" + }, + { + "description": "React.DOM.address", + "id": 435, + "trigger": "Raddress" + }, + { + "description": "React.DOM.area", + "id": 436, + "trigger": "Rarea" + }, + { + "description": "React.DOM.article", + "id": 437, + "trigger": "Rarticle" + }, + { + "description": "React.DOM.aside", + "id": 438, + "trigger": "Raside" + }, + { + "description": "React.DOM.audio", + "id": 439, + "trigger": "Raudio" + }, + { + "description": "React.DOM.b", + "id": 440, + "trigger": "Rb" + }, + { + "description": "React.DOM.base", + "id": 441, + "trigger": "Rbase" + }, + { + "description": "React.DOM.bdi", + "id": 442, + "trigger": "Rbdi" + }, + { + "description": "React.DOM.bdo", + "id": 443, + "trigger": "Rbdo" + }, + { + "description": "React.DOM.big", + "id": 444, + "trigger": "Rbig" + }, + { + "description": "React.DOM.blockquote", + "id": 445, + "trigger": "Rblockquote" + }, + { + "description": "React.DOM.body", + "id": 446, + "trigger": "Rbody" + }, + { + "description": "React.DOM.br", + "id": 447, + "trigger": "Rbr" + }, + { + "description": "React.DOM.button", + "id": 448, + "trigger": "Rbutton" + }, + { + "description": "React.DOM.canvas", + "id": 449, + "trigger": "Rcanvas" + }, + { + "description": "React.DOM.caption", + "id": 450, + "trigger": "Rcaption" + }, + { + "description": "React.DOM.circle", + "id": 451, + "trigger": "Rcircle" + }, + { + "description": "React.DOM.cite", + "id": 452, + "trigger": "Rcite" + }, + { + "description": "React.DOM.code", + "id": 453, + "trigger": "Rcode" + }, + { + "description": "React.DOM.col", + "id": 454, + "trigger": "Rcol" + }, + { + "description": "React.DOM.colgroup", + "id": 455, + "trigger": "Rcolgroup" + }, + { + "description": "React.DOM.data", + "id": 456, + "trigger": "Rdata" + }, + { + "description": "React.DOM.datalist", + "id": 457, + "trigger": "Rdatalist" + }, + { + "description": "React.DOM.dd", + "id": 458, + "trigger": "Rdd" + }, + { + "description": "React.DOM.defs", + "id": 459, + "trigger": "Rdefs" + }, + { + "description": "React.DOM.del", + "id": 460, + "trigger": "Rdel" + }, + { + "description": "React.DOM.details", + "id": 461, + "trigger": "Rdetails" + }, + { + "description": "React.DOM.dfn", + "id": 462, + "trigger": "Rdfn" + }, + { + "description": "React.DOM.div", + "id": 463, + "trigger": "Rdiv" + }, + { + "description": "React.DOM.dl", + "id": 464, + "trigger": "Rdl" + }, + { + "description": "React.DOM.dt", + "id": 465, + "trigger": "Rdt" + }, + { + "description": "React.DOM.em", + "id": 466, + "trigger": "Rem" + }, + { + "description": "React.DOM.embed", + "id": 467, + "trigger": "Rembed" + }, + { + "description": "React.DOM.fieldset", + "id": 468, + "trigger": "Rfieldset" + }, + { + "description": "React.DOM.figcaption", + "id": 469, + "trigger": "Rfigcaption" + }, + { + "description": "React.DOM.figure", + "id": 470, + "trigger": "Rfigure" + }, + { + "description": "React.DOM.footer", + "id": 471, + "trigger": "Rfooter" + }, + { + "description": "React.DOM.form", + "id": 472, + "trigger": "Rform" + }, + { + "description": "React.DOM.g", + "id": 473, + "trigger": "Rg" + }, + { + "description": "React.DOM.h1", + "id": 474, + "trigger": "Rh1" + }, + { + "description": "React.DOM.h2", + "id": 475, + "trigger": "Rh2" + }, + { + "description": "React.DOM.h3", + "id": 476, + "trigger": "Rh3" + }, + { + "description": "React.DOM.h4", + "id": 477, + "trigger": "Rh4" + }, + { + "description": "React.DOM.h5", + "id": 478, + "trigger": "Rh5" + }, + { + "description": "React.DOM.h6", + "id": 479, + "trigger": "Rh6" + }, + { + "description": "React.DOM.head", + "id": 480, + "trigger": "Rhead" + }, + { + "description": "React.DOM.header", + "id": 481, + "trigger": "Rheader" + }, + { + "description": "React.DOM.hr", + "id": 482, + "trigger": "Rhr" + }, + { + "description": "React.DOM.html", + "id": 483, + "trigger": "Rhtml" + }, + { + "description": "React.DOM.i", + "id": 484, + "trigger": "Ri" + }, + { + "description": "React.DOM.iframe", + "id": 485, + "trigger": "Riframe" + }, + { + "description": "React.DOM.img", + "id": 486, + "trigger": "Rimg" + }, + { + "description": "React.DOM.input", + "id": 487, + "trigger": "Rinput" + }, + { + "description": "React.DOM.ins", + "id": 488, + "trigger": "Rins" + }, + { + "description": "React.DOM.kbd", + "id": 489, + "trigger": "Rkbd" + }, + { + "description": "React.DOM.keygen", + "id": 490, + "trigger": "Rkeygen" + }, + { + "description": "React.DOM.label", + "id": 491, + "trigger": "Rlabel" + }, + { + "description": "React.DOM.legend", + "id": 492, + "trigger": "Rlegend" + }, + { + "description": "React.DOM.li", + "id": 493, + "trigger": "Rli" + }, + { + "description": "React.DOM.line", + "id": 494, + "trigger": "Rline" + }, + { + "description": "React.DOM.linearGradient", + "id": 495, + "trigger": "RlinearGradient" + }, + { + "description": "React.DOM.link", + "id": 496, + "trigger": "Rlink" + }, + { + "description": "React.DOM.main", + "id": 497, + "trigger": "Rmain" + }, + { + "description": "React.DOM.map", + "id": 498, + "trigger": "Rmap" + }, + { + "description": "React.DOM.mark", + "id": 499, + "trigger": "Rmark" + }, + { + "description": "React.DOM.menu", + "id": 500, + "trigger": "Rmenu" + }, + { + "description": "React.DOM.menuitem", + "id": 501, + "trigger": "Rmenuitem" + }, + { + "description": "React.DOM.meta", + "id": 502, + "trigger": "Rmeta" + }, + { + "description": "React.DOM.meter", + "id": 503, + "trigger": "Rmeter" + }, + { + "description": "React.DOM.nav", + "id": 504, + "trigger": "Rnav" + }, + { + "description": "React.DOM.noscript", + "id": 505, + "trigger": "Rnoscript" + }, + { + "description": "React.DOM.object", + "id": 506, + "trigger": "Robject" + }, + { + "description": "React.DOM.ol", + "id": 507, + "trigger": "Rol" + }, + { + "description": "React.DOM.optgroup", + "id": 508, + "trigger": "Roptgroup" + }, + { + "description": "React.DOM.option", + "id": 509, + "trigger": "Roption" + }, + { + "description": "React.DOM.output", + "id": 510, + "trigger": "Routput" + }, + { + "description": "React.DOM.p", + "id": 511, + "trigger": "Rp" + }, + { + "description": "React.DOM.param", + "id": 512, + "trigger": "Rparam" + }, + { + "description": "React.DOM.path", + "id": 513, + "trigger": "Rpath" + }, + { + "description": "React.DOM.polygon", + "id": 514, + "trigger": "Rpolygon" + }, + { + "description": "React.DOM.polyline", + "id": 515, + "trigger": "Rpolyline" + }, + { + "description": "React.DOM.pre", + "id": 516, + "trigger": "Rpre" + }, + { + "description": "React.DOM.progress", + "id": 517, + "trigger": "Rprogress" + }, + { + "description": "React.DOM.q", + "id": 518, + "trigger": "Rq" + }, + { + "description": "React.DOM.radialGradient", + "id": 519, + "trigger": "RradialGradient" + }, + { + "description": "React.DOM.rect", + "id": 520, + "trigger": "Rrect" + }, + { + "description": "React.DOM.rp", + "id": 521, + "trigger": "Rrp" + }, + { + "description": "React.DOM.rt", + "id": 522, + "trigger": "Rrt" + }, + { + "description": "React.DOM.ruby", + "id": 523, + "trigger": "Rruby" + }, + { + "description": "React.DOM.s", + "id": 524, + "trigger": "Rs" + }, + { + "description": "React.DOM.samp", + "id": 525, + "trigger": "Rsamp" + }, + { + "description": "React.DOM.script", + "id": 526, + "trigger": "Rscript" + }, + { + "description": "React.DOM.section", + "id": 527, + "trigger": "Rsection" + }, + { + "description": "React.DOM.select", + "id": 528, + "trigger": "Rselect" + }, + { + "description": "React.DOM.small", + "id": 529, + "trigger": "Rsmall" + }, + { + "description": "React.DOM.source", + "id": 530, + "trigger": "Rsource" + }, + { + "description": "React.DOM.span", + "id": 531, + "trigger": "Rspan" + }, + { + "description": "React.DOM.stop", + "id": 532, + "trigger": "Rstop" + }, + { + "description": "React.DOM.strong", + "id": 533, + "trigger": "Rstrong" + }, + { + "description": "React.DOM.style", + "id": 534, + "trigger": "Rstyle" + }, + { + "description": "React.DOM.sub", + "id": 535, + "trigger": "Rsub" + }, + { + "description": "React.DOM.summary", + "id": 536, + "trigger": "Rsummary" + }, + { + "description": "React.DOM.sup", + "id": 537, + "trigger": "Rsup" + }, + { + "description": "React.DOM.svg", + "id": 538, + "trigger": "Rsvg" + }, + { + "description": "React.DOM.table", + "id": 539, + "trigger": "Rtable" + }, + { + "description": "React.DOM.tbody", + "id": 540, + "trigger": "Rtbody" + }, + { + "description": "React.DOM.td", + "id": 541, + "trigger": "Rtd" + }, + { + "description": "React.DOM.text", + "id": 542, + "trigger": "Rtext" + }, + { + "description": "React.DOM.textarea", + "id": 543, + "trigger": "Rtextarea" + }, + { + "description": "React.DOM.tfoot", + "id": 544, + "trigger": "Rtfoot" + }, + { + "description": "React.DOM.th", + "id": 545, + "trigger": "Rth" + }, + { + "description": "React.DOM.thead", + "id": 546, + "trigger": "Rthead" + }, + { + "description": "React.DOM.time", + "id": 547, + "trigger": "Rtime" + }, + { + "description": "React.DOM.title", + "id": 548, + "trigger": "Rtitle" + }, + { + "description": "React.DOM.tr", + "id": 549, + "trigger": "Rtr" + }, + { + "description": "React.DOM.track", + "id": 550, + "trigger": "Rtrack" + }, + { + "description": "React.DOM.u", + "id": 551, + "trigger": "Ru" + }, + { + "description": "React.DOM.ul", + "id": 552, + "trigger": "Rul" + }, + { + "description": "React.DOM.video", + "id": 553, + "trigger": "Rvideo" + }, + { + "description": "React.DOM.wbr", + "id": 554, + "trigger": "Rwbr" + }, + { + "description": "React.render", + "id": 555, + "trigger": "ren" + }, + { + "description": "React render with React.DOM", + "id": 556, + "trigger": "rren" + }, + { + "description": "React this.setProps", + "id": 557, + "trigger": "sp" }, { - "description": "jq - parseXML", - "id": 309, - "trigger": "jq.parsex" + "description": "React this.setState", + "id": 558, + "trigger": "ss" }, { - "description": "jq - proxy", - "id": 310, - "trigger": "jq.proxy" + "description": "React this.context", + "id": 559, + "trigger": "thisc" }, { - "description": "jq - trim", - "id": 311, - "trigger": "jq.trim" + "description": "React this.props", + "id": 560, + "trigger": "thisp" }, { - "description": "jq - jQuery type", - "id": 312, - "trigger": "jq.jtype" + "description": "React this.refs", + "id": 561, + "trigger": "thisr" }, { - "description": "jq - unique", - "id": 313, - "trigger": "jq.unique" + "description": "React this.state", + "id": 562, + "trigger": "thiss" }, { - "description": "jq - jQuery Boilerplate", - "id": 314, - "trigger": "jq.b" + "description": "React this.transferPropsTo", + "id": 563, + "trigger": "thistr" }, { "description": "jdp - Command", - "id": 315, + "id": 564, "trigger": "jdp.command" }, { "description": "jdp - Constructor", - "id": 316, + "id": 565, "trigger": "jdp.constructor" }, { "description": "jdp - Decorator", - "id": 317, + "id": 566, "trigger": "jdp.decorator" }, { "description": "jdp - Facade", - "id": 318, + "id": 567, "trigger": "jdp.facade" }, { "description": "jdp - Factory", - "id": 319, + "id": 568, "trigger": "jdp.factory" }, { "description": "jdp - Flyweight", - "id": 320, + "id": 569, "trigger": "jdp.flyweight" }, { "description": "jdp - Mediator", - "id": 321, + "id": 570, "trigger": "jdp.mediator" }, { "description": "jdp - Mixin", - "id": 322, + "id": 571, "trigger": "jdp.mixin" }, { "description": "jdp - Module", - "id": 323, + "id": 572, "trigger": "jdp.module" }, { "description": "jdp - Observer", - "id": 324, + "id": 573, "trigger": "jdp.observer" }, { "description": "jdp - Prototype", - "id": 325, + "id": 574, "trigger": "jdp.prototype" }, { "description": "jdp - Revealing Module", - "id": 326, + "id": 575, "trigger": "jdp.rmodule" }, { "description": "jdp - Singleton", - "id": 327, + "id": 576, "trigger": "jdp.singleton" }, { "description": "jumd - AMD Web Global", - "id": 328, + "id": 577, "trigger": "jumd.awg" }, { "description": "jumd - AMD Web", - "id": 329, + "id": 578, "trigger": "jumd.aw" }, { "description": "jumd - CommonJS Adapter", - "id": 330, + "id": 579, "trigger": "jumd.ca" }, { "description": "jumd - CommonJS Strict Global", - "id": 331, + "id": 580, "trigger": "jumd.csg" }, { "description": "jumd - CommonJS Strict", - "id": 332, + "id": 581, "trigger": "jumd.cs" }, { "description": "jumd - jQuery plugin", - "id": 333, + "id": 582, "trigger": "jumd.jp" }, { "description": "jumd - Node Adapter", - "id": 334, + "id": 583, "trigger": "jumd.na" }, { "description": "jumd - Return Exports Global", - "id": 335, + "id": 584, "trigger": "jumd.reg" }, { "description": "jumd - Return Exports", - "id": 336, + "id": 585, "trigger": "jumd.re" }, { "description": "tc - Expect to.be.a", - "id": 337, + "id": 586, "trigger": "tc.e.tba" }, { "description": "tc - Expect to.equal", - "id": 338, + "id": 587, "trigger": "tc.e.te" }, { "description": "tc - Expect to.have.length", - "id": 339, + "id": 588, "trigger": "tc.e.thl" }, { "description": "tc - Expect to.have.property", - "id": 340, + "id": 589, "trigger": "tc.e.thp" }, { "description": "tc - Should be.a", - "id": 341, + "id": 590, "trigger": "tc.s.ba" }, { "description": "tc - Should equal", - "id": 342, + "id": 591, "trigger": "tc.s.e" }, { "description": "tc - Should have.length", - "id": 343, + "id": 592, "trigger": "tc.s.hl" }, { "description": "tc - Should have.property", - "id": 344, + "id": 593, "trigger": "tc.s.hp" }, { "description": "tc - Assert equal", - "id": 345, + "id": 594, "trigger": "tc.a.e" }, { "description": "tc - Assert lengthOf", - "id": 346, + "id": 595, "trigger": "tc.a.lo" }, { "description": "tc - Assert typeOf", - "id": 347, + "id": 596, "trigger": "tc.a.to" }, { "description": "t - afterEach", - "id": 348, + "id": 597, "trigger": "t.aftereach" }, { "description": "t - after", - "id": 349, + "id": 598, "trigger": "t.after" }, { "description": "t - beforeEach", - "id": 350, + "id": 599, "trigger": "t.beforeeach" }, { "description": "t - before", - "id": 351, + "id": 600, "trigger": "t.before" }, { "description": "t - describe", - "id": 352, + "id": 601, "trigger": "t.describe" }, { "description": "t - it", - "id": 353, + "id": 602, "trigger": "t.it" }, { "description": "tj - Expect toBeCloseTo", - "id": 354, + "id": 603, "trigger": "tj.closeto" }, { "description": "tj - Expect toBeContain", - "id": 355, + "id": 604, "trigger": "tj.contain" }, { "description": "tj - Expect toBeDefined", - "id": 356, + "id": 605, "trigger": "tj.defined" }, { "description": "tj - Expect toBeFalsy", - "id": 357, + "id": 606, "trigger": "tj.falsy" }, { "description": "tj - Expect toBeGreaterThan", - "id": 358, + "id": 607, "trigger": "tj.greaterthan" }, { "description": "tj - Expect toBeLessThan", - "id": 359, + "id": 608, "trigger": "tj.lessthan" }, { "description": "tj - Expect toBeNaN", - "id": 360, + "id": 609, "trigger": "tj.nan" }, { "description": "tj - Expect toBeNull", - "id": 361, + "id": 610, "trigger": "tj.null" }, { "description": "tj - Expect toBeTruthy", - "id": 362, + "id": 611, "trigger": "tj.truthy" }, { "description": "tj - Expect toBeUndefined", - "id": 363, + "id": 612, "trigger": "tj.undefined" }, { "description": "tj - Expect toBe", - "id": 364, + "id": 613, "trigger": "tj.tobe" }, { "description": "tj - Expect toEqual", - "id": 365, + "id": 614, "trigger": "tj.equal" }, { "description": "tj - Expect toHaveBeenCalledTimes", - "id": 366, + "id": 615, "trigger": "tj.hbctimes" }, { "description": "tj - Expect toHaveBeenCalledWith", - "id": 367, + "id": 616, "trigger": "tj.hbcwith" }, { "description": "tj - Expect toHaveBeenCalled", - "id": 368, + "id": 617, "trigger": "tj.hbc" }, { "description": "tj - Expect toMatch", - "id": 369, + "id": 618, "trigger": "tj.match" }, { "description": "tj - Expect toThrowError", - "id": 370, + "id": 619, "trigger": "tj.throwerror" }, { "description": "tj - Expect toThrow", - "id": 371, + "id": 620, "trigger": "tj.throw" }, { "description": "tn - Assert deepEqual", - "id": 372, + "id": 621, "trigger": "tn.dequal" }, { "description": "tn - Assert deepStrictEqual", - "id": 373, + "id": 622, "trigger": "tn.dsequal" }, { "description": "tn - Assert doesNotThrow", - "id": 374, + "id": 623, "trigger": "tn.dnthrow" }, { "description": "tn - Assert equal", - "id": 375, + "id": 624, "trigger": "tn.equal" }, { "description": "tn - Assert fail", - "id": 376, + "id": 625, "trigger": "tn.fail" }, { "description": "tn - Assert ifError", - "id": 377, + "id": 626, "trigger": "tn.iferror" }, { "description": "tn - Assert notDeepEqual", - "id": 378, + "id": 627, "trigger": "tn.ndequal" }, { "description": "tn - Assert notDeepStrictEqual", - "id": 379, + "id": 628, "trigger": "tn.ndsequal" }, { "description": "tn - Assert notEqual", - "id": 380, + "id": 629, "trigger": "tn.nequal" }, { "description": "tn - Assert notStrictEqual", - "id": 381, + "id": 630, "trigger": "tn.nsequal" }, { "description": "tn - Assert ok", - "id": 382, + "id": 631, "trigger": "tn.ok" }, { "description": "tn - Assert strictEqual", - "id": 383, + "id": 632, "trigger": "tn.sequal" }, { "description": "tn - Assert throws", - "id": 384, + "id": 633, "trigger": "tn.throws" }, { "description": "tn - Assert", - "id": 385, + "id": 634, "trigger": "tn.a" }, + { + "description": "tq - Assert async", + "id": 635, + "trigger": "tq.async" + }, + { + "description": "tq - Assert deepEqual", + "id": 636, + "trigger": "tq.dequal" + }, + { + "description": "tq - Assert equal", + "id": 637, + "trigger": "tq.equal" + }, + { + "description": "tq - notDeepEqual", + "id": 638, + "trigger": "tq.ndequal" + }, + { + "description": "tq - notEqual", + "id": 639, + "trigger": "tq.nequal" + }, + { + "description": "tq - notOk", + "id": 640, + "trigger": "tq.nok" + }, + { + "description": "tq - notPropEqual", + "id": 641, + "trigger": "tq.npequal" + }, + { + "description": "tq - notStrictEqual", + "id": 642, + "trigger": "tq.nsequal" + }, + { + "description": "tq - ok", + "id": 643, + "trigger": "tq.ok" + }, + { + "description": "tq - propEqual", + "id": 644, + "trigger": "tq.pequal" + }, + { + "description": "tq - strictEqual", + "id": 645, + "trigger": "tq.sequal" + }, + { + "description": "tq - throws", + "id": 646, + "trigger": "tq.throws" + }, + { + "description": "tq - QUnit.begin", + "id": 647, + "trigger": "tq.begin" + }, + { + "description": "tq - QUnit.config", + "id": 648, + "trigger": "tq.config" + }, + { + "description": "tq - QUnit.done", + "id": 649, + "trigger": "tq.done" + }, + { + "description": "tq - QUnit.dump.parse", + "id": 650, + "trigger": "tq.dparse" + }, + { + "description": "tq - Expect", + "id": 651, + "trigger": "tq.expect" + }, + { + "description": "tq - QUnit.extend", + "id": 652, + "trigger": "tq.extend" + }, + { + "description": "tq - QUnit.log", + "id": 653, + "trigger": "tq.log" + }, + { + "description": "tq - QUnit.moduleDone", + "id": 654, + "trigger": "tq.mdone" + }, + { + "description": "tq - QUnit.moduleStart", + "id": 655, + "trigger": "tq.mstart" + }, + { + "description": "tq - QUnit.module", + "id": 656, + "trigger": "tq.module" + }, + { + "description": "tq - QUnit.only", + "id": 657, + "trigger": "tq.only" + }, + { + "description": "tq - push", + "id": 658, + "trigger": "tq.push" + }, + { + "description": "tq - QUnit.skip", + "id": 659, + "trigger": "tq.skip" + }, + { + "description": "tq - QUnit.stack", + "id": 660, + "trigger": "tq.stack" + }, + { + "description": "tq - QUnit.testDone", + "id": 661, + "trigger": "tq.tdone" + }, + { + "description": "tq - QUnit.testStart", + "id": 662, + "trigger": "tq.tstart" + }, + { + "description": "tq - Test", + "id": 663, + "trigger": "tq.test" + }, + { + "description": "ts - Assert alwaysCalledOn", + "id": 664, + "trigger": "ts.acon" + }, + { + "description": "ts - Assert alwaysCalledWithExactly", + "id": 665, + "trigger": "ts.acalledwe" + }, + { + "description": "ts - Assert alwaysCalledWithMatch", + "id": 666, + "trigger": "ts.acalledwm" + }, + { + "description": "ts - Assert alwaysCalledWith", + "id": 667, + "trigger": "ts.acalledw" + }, + { + "description": "ts - Assert alwaysThrew", + "id": 668, + "trigger": "ts.athrew" + }, + { + "description": "ts - Assert callCount", + "id": 669, + "trigger": "ts.ccount" + }, + { + "description": "ts - Assert callOrder", + "id": 670, + "trigger": "ts.corder" + }, + { + "description": "ts - Assert calledOn", + "id": 671, + "trigger": "ts.con" + }, + { + "description": "ts - Assert calledOnce", + "id": 672, + "trigger": "ts.calledo" + }, + { + "description": "ts - Assert calledThrice", + "id": 673, + "trigger": "ts.calledth" + }, + { + "description": "ts - Assert calledTwice", + "id": 674, + "trigger": "ts.calledt" + }, + { + "description": "ts - Assert calledWithExactly", + "id": 675, + "trigger": "ts.calledwe" + }, + { + "description": "ts - Assert calledWithMatch", + "id": 676, + "trigger": "ts.calledwm" + }, + { + "description": "ts - Assert calledWith", + "id": 677, + "trigger": "ts.calledw" + }, + { + "description": "ts - Assert called", + "id": 678, + "trigger": "ts.called" + }, + { + "description": "ts - Assert expose", + "id": 679, + "trigger": "ts.expose" + }, + { + "description": "ts - Assert failException", + "id": 680, + "trigger": "ts.faile" + }, + { + "description": "ts - Assert fail", + "id": 681, + "trigger": "ts.afail" + }, + { + "description": "ts - Assert neverCalledWithMatch", + "id": 682, + "trigger": "ts.ncalledwm" + }, + { + "description": "ts - Assert neverCalledWith", + "id": 683, + "trigger": "ts.ncalledw" + }, + { + "description": "ts - Assert notCalled", + "id": 684, + "trigger": "ts.ncalled" + }, + { + "description": "ts - Assert pass", + "id": 685, + "trigger": "ts.pass" + }, + { + "description": "ts - Assert threw", + "id": 686, + "trigger": "ts.threw" + }, { "description": "j - if else", - "id": 386, + "id": 687, "trigger": "j.ifelse" }, { "description": "j - switch", - "id": 387, + "id": 688, "trigger": "j.switch" }, { "description": "j - console.dir", - "id": 388, + "id": 689, "trigger": "j.cd" }, { "description": "j - console.error", - "id": 389, + "id": 690, "trigger": "j.ce" }, { "description": "j - console.info", - "id": 390, + "id": 691, "trigger": "j.ci" }, { "description": "j - console.log", - "id": 391, + "id": 692, "trigger": "j.cl" }, { "description": "j - console.warn", - "id": 392, + "id": 693, "trigger": "j.cw" }, { "description": "j - addEventListener", - "id": 393, - "trigger": "j.-ael" + "id": 694, + "trigger": "j.ael" }, { "description": "j - appendChild", - "id": 394, + "id": 695, "trigger": "j.ac" }, { "description": "j - classList.add", - "id": 395, + "id": 696, "trigger": "j.cla" }, { "description": "j - classList.remove", - "id": 396, + "id": 697, "trigger": "j.clr" }, { "description": "j - classList.toggle", - "id": 397, + "id": 698, "trigger": "j.clt" }, { "description": "j - createDocumentFragment", - "id": 398, + "id": 699, "trigger": "j.cdf" }, { "description": "j - createElement", - "id": 399, + "id": 700, "trigger": "j.cel" }, { "description": "j - getAttribute", - "id": 400, + "id": 701, "trigger": "j.gattr" }, { "description": "j - getElementById", - "id": 401, + "id": 702, "trigger": "j.gid" }, { "description": "j - getElementsByClassName", - "id": 402, + "id": 703, "trigger": "j.gclass" }, { "description": "j - getElementsByTagName", - "id": 403, + "id": 704, "trigger": "j.gtag" }, { "description": "j - innerHTML", - "id": 404, + "id": 705, "trigger": "j.ih" }, { "description": "j - querySelectorAll", - "id": 405, + "id": 706, "trigger": "j.qsa" }, { "description": "j - querySelector", - "id": 406, + "id": 707, "trigger": "j.qs" }, { "description": "j - removeAttribute", - "id": 407, + "id": 708, "trigger": "j.rattr" }, { "description": "j - removeChild", - "id": 408, + "id": 709, "trigger": "j.rc" }, { "description": "j - setAttribute", - "id": 409, + "id": 710, "trigger": "j.sattr" }, { "description": "j - textContent", - "id": 410, + "id": 711, "trigger": "j.tc" }, { "description": "j - Anonymous Function", - "id": 411, + "id": 712, "trigger": "j.afn" }, { "description": "j - Function apply", - "id": 412, + "id": 713, "trigger": "j.apply" }, { "description": "j - Function call", - "id": 413, + "id": 714, "trigger": "j.call" }, { "description": "j - Immediately-invoked function expression", - "id": 414, - "trigger": "j.-iife" + "id": 715, + "trigger": "j.iife" }, { "description": "j - Prototype", - "id": 415, + "id": 716, "trigger": "j.prot" }, { "description": "j - Function", - "id": 416, + "id": 717, "trigger": "j.fn" }, { "description": "j - JSON.parse", - "id": 417, + "id": 718, "trigger": "j.jsonp" }, { "description": "j - JSON.stringify", - "id": 418, + "id": 719, "trigger": "j.jsons" }, { "description": "j - do while", - "id": 419, + "id": 720, "trigger": "j.dowhile" }, { "description": "j - forEach", - "id": 420, + "id": 721, "trigger": "j.fore" }, { "description": "j - for in", - "id": 421, + "id": 722, "trigger": "j.fori" }, { "description": "j - for", - "id": 422, + "id": 723, "trigger": "j.for" }, { "description": "j - while", - "id": 423, + "id": 724, "trigger": "j.while" }, { "description": "j - setInterval", - "id": 424, + "id": 725, "trigger": "j.sinterval" }, { "description": "j - setTimeout", - "id": 425, + "id": 726, "trigger": "j.stimeout" }, + { + "description": "r - Brazilian CNPJ", + "id": 727, + "trigger": "r.bcnpj" + }, + { + "description": "r - Brazilian CPF/CNPJ", + "id": 728, + "trigger": "r.bcpfcnpj" + }, + { + "description": "r - Brazilian CPF", + "id": 729, + "trigger": "r.bcpf" + }, + { + "description": "r - Brazilian Phone", + "id": 730, + "trigger": "r.bphone" + }, + { + "description": "r - E-mail", + "id": 731, + "trigger": "r.email" + }, { "description": "sm - Action", - "id": 426, + "id": 732, "trigger": "sm.action" }, { "description": "sm - Organization", - "id": 427, + "id": 733, "trigger": "sm.org" }, { "description": "jsonld - Logotype", - "id": 428, + "id": 734, "trigger": "z.jsonld" }, { "description": "microdata - Organization", - "id": 429, + "id": 735, "trigger": "z.microdata" }, { "description": "microdata - Article", - "id": 430, + "id": 736, "trigger": "z.microdata" }, { "description": "microdata - Book", - "id": 431, + "id": 737, "trigger": "z.microdata" }, { "description": "microdata - Game", - "id": 432, + "id": 738, "trigger": "z.microdata" }, { "description": "microdata - WebPage", - "id": 433, + "id": 739, "trigger": "z.microdata" }, { "description": "rdfa - Breadcrumb", - "id": 434, + "id": 740, "trigger": "z.rdfa" } ] \ No newline at end of file From 52b6f528b366d63ba6c2bc17c60564a515e0e5ba Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 28 Jan 2016 06:47:01 -0200 Subject: [PATCH 19/70] add: mocha snippets files --- snippets/js/tests/README.md | 11 +++- snippets/js/tests/mocha/README.md | 62 ++++++++++++++++++- .../tests/mocha/mocha-config.sublime-snippet | 13 ++++ .../tests/mocha/mocha-globals.sublime-snippet | 7 +++ .../js/tests/mocha/mocha-grep.sublime-snippet | 7 +++ .../tests/mocha/mocha-growl.sublime-snippet | 7 +++ .../mocha/mocha-ignore-leaks.sublime-snippet | 7 +++ .../tests/mocha/mocha-invert.sublime-snippet | 7 +++ .../mocha/mocha-reporter.sublime-snippet | 7 +++ .../js/tests/mocha/mocha-run.sublime-snippet | 7 +++ .../tests/mocha/mocha-setup.sublime-snippet | 7 +++ .../js/tests/mocha/mocha-ui.sublime-snippet | 7 +++ 12 files changed, 147 insertions(+), 2 deletions(-) create mode 100644 snippets/js/tests/mocha/mocha-config.sublime-snippet create mode 100644 snippets/js/tests/mocha/mocha-globals.sublime-snippet create mode 100644 snippets/js/tests/mocha/mocha-grep.sublime-snippet create mode 100644 snippets/js/tests/mocha/mocha-growl.sublime-snippet create mode 100644 snippets/js/tests/mocha/mocha-ignore-leaks.sublime-snippet create mode 100644 snippets/js/tests/mocha/mocha-invert.sublime-snippet create mode 100644 snippets/js/tests/mocha/mocha-reporter.sublime-snippet create mode 100644 snippets/js/tests/mocha/mocha-run.sublime-snippet create mode 100644 snippets/js/tests/mocha/mocha-setup.sublime-snippet create mode 100644 snippets/js/tests/mocha/mocha-ui.sublime-snippet diff --git a/snippets/js/tests/README.md b/snippets/js/tests/README.md index ffbf874..4fb464c 100644 --- a/snippets/js/tests/README.md +++ b/snippets/js/tests/README.md @@ -43,7 +43,16 @@ - toThrowError - toThrow - [Mocha](mocha/) - - + - config + - globals + - grep + - growl + - ignoreLeaks + - invert + - reporter + - run + - setup + - ui - [Node](node/) - assert - ok diff --git a/snippets/js/tests/mocha/README.md b/snippets/js/tests/mocha/README.md index 6c7bcb8..3cef811 100644 --- a/snippets/js/tests/mocha/README.md +++ b/snippets/js/tests/mocha/README.md @@ -2,8 +2,68 @@ ## Prefix `tm.*` -### [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 + From a121bb722916fa0307acec730c76feade9834fc9 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 28 Jan 2016 06:47:46 -0200 Subject: [PATCH 20/70] add: js statements snippets --- snippets/js/vanilla/README.md | 3 +++ snippets/js/vanilla/statements/README.md | 13 +++++++++++++ .../statements/js-statements-new.sublime-snippet | 7 +++++++ .../js-statements-require.sublime-snippet | 7 +++++++ 4 files changed, 30 insertions(+) create mode 100644 snippets/js/vanilla/statements/README.md create mode 100644 snippets/js/vanilla/statements/js-statements-new.sublime-snippet create mode 100644 snippets/js/vanilla/statements/js-statements-require.sublime-snippet diff --git a/snippets/js/vanilla/README.md b/snippets/js/vanilla/README.md index 2eccf79..e435b07 100644 --- a/snippets/js/vanilla/README.md +++ b/snippets/js/vanilla/README.md @@ -44,6 +44,9 @@ - forEach - for in - for +- [Statements](statements/) + - new + - require - [Timer](timer/) - setInterval - setTimeout 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 + From 3c7e09833a7644ea0c26fdbba90bd32510f1295f Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 28 Jan 2016 07:55:22 -0200 Subject: [PATCH 21/70] add: es2015 snippets folder --- snippets/js/es6/README.md | 3 +++ snippets/js/es6/arrows/README.md | 7 +++++++ snippets/js/es6/binary-and-octal-literals/README.md | 7 +++++++ snippets/js/es6/classes/README.md | 7 +++++++ snippets/js/es6/default-rest-spread/README.md | 7 +++++++ snippets/js/es6/destructuring/README.md | 7 +++++++ snippets/js/es6/enhanced-object-literals/README.md | 7 +++++++ snippets/js/es6/generators/README.md | 7 +++++++ snippets/js/es6/iterators-for-of/README.md | 7 +++++++ snippets/js/es6/let-const/README.md | 7 +++++++ snippets/js/es6/map-set-weakmap-weakset/README.md | 7 +++++++ .../js/es6/math-number-string-array-object-apis/README.md | 7 +++++++ snippets/js/es6/module-loaders/README.md | 7 +++++++ snippets/js/es6/modules/README.md | 7 +++++++ snippets/js/es6/promises/README.md | 7 +++++++ snippets/js/es6/proxies/README.md | 7 +++++++ snippets/js/es6/reflect-api/README.md | 7 +++++++ snippets/js/es6/subclassable-built-ins/README.md | 7 +++++++ snippets/js/es6/symbols/README.md | 7 +++++++ snippets/js/es6/tail-calls/README.md | 7 +++++++ snippets/js/es6/template-strings/README.md | 7 +++++++ snippets/js/es6/unicode/README.md | 7 +++++++ snippets/regex/README.md | 2 +- 23 files changed, 151 insertions(+), 1 deletion(-) create mode 100644 snippets/js/es6/README.md create mode 100644 snippets/js/es6/arrows/README.md create mode 100644 snippets/js/es6/binary-and-octal-literals/README.md create mode 100644 snippets/js/es6/classes/README.md create mode 100644 snippets/js/es6/default-rest-spread/README.md create mode 100644 snippets/js/es6/destructuring/README.md create mode 100644 snippets/js/es6/enhanced-object-literals/README.md create mode 100644 snippets/js/es6/generators/README.md create mode 100644 snippets/js/es6/iterators-for-of/README.md create mode 100644 snippets/js/es6/let-const/README.md create mode 100644 snippets/js/es6/map-set-weakmap-weakset/README.md create mode 100644 snippets/js/es6/math-number-string-array-object-apis/README.md create mode 100644 snippets/js/es6/module-loaders/README.md create mode 100644 snippets/js/es6/modules/README.md create mode 100644 snippets/js/es6/promises/README.md create mode 100644 snippets/js/es6/proxies/README.md create mode 100644 snippets/js/es6/reflect-api/README.md create mode 100644 snippets/js/es6/subclassable-built-ins/README.md create mode 100644 snippets/js/es6/symbols/README.md create mode 100644 snippets/js/es6/tail-calls/README.md create mode 100644 snippets/js/es6/template-strings/README.md create mode 100644 snippets/js/es6/unicode/README.md diff --git a/snippets/js/es6/README.md b/snippets/js/es6/README.md new file mode 100644 index 0000000..5aca3a5 --- /dev/null +++ b/snippets/js/es6/README.md @@ -0,0 +1,3 @@ +# ECMA Script 2015 Snippets + +- [](/) diff --git a/snippets/js/es6/arrows/README.md b/snippets/js/es6/arrows/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/arrows/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/binary-and-octal-literals/README.md b/snippets/js/es6/binary-and-octal-literals/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/binary-and-octal-literals/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/classes/README.md b/snippets/js/es6/classes/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/classes/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/default-rest-spread/README.md b/snippets/js/es6/default-rest-spread/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/default-rest-spread/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/destructuring/README.md b/snippets/js/es6/destructuring/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/destructuring/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` 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..e8e7671 --- /dev/null +++ b/snippets/js/es6/enhanced-object-literals/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/generators/README.md b/snippets/js/es6/generators/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/generators/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/iterators-for-of/README.md b/snippets/js/es6/iterators-for-of/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/iterators-for-of/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/let-const/README.md b/snippets/js/es6/let-const/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/let-const/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/map-set-weakmap-weakset/README.md b/snippets/js/es6/map-set-weakmap-weakset/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/map-set-weakmap-weakset/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` 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..e8e7671 --- /dev/null +++ b/snippets/js/es6/math-number-string-array-object-apis/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/module-loaders/README.md b/snippets/js/es6/module-loaders/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/module-loaders/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/modules/README.md b/snippets/js/es6/modules/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/modules/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/promises/README.md b/snippets/js/es6/promises/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/promises/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/proxies/README.md b/snippets/js/es6/proxies/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/proxies/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/reflect-api/README.md b/snippets/js/es6/reflect-api/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/reflect-api/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/subclassable-built-ins/README.md b/snippets/js/es6/subclassable-built-ins/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/subclassable-built-ins/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/symbols/README.md b/snippets/js/es6/symbols/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/symbols/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/tail-calls/README.md b/snippets/js/es6/tail-calls/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/tail-calls/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/template-strings/README.md b/snippets/js/es6/template-strings/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/template-strings/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/js/es6/unicode/README.md b/snippets/js/es6/unicode/README.md new file mode 100644 index 0000000..e8e7671 --- /dev/null +++ b/snippets/js/es6/unicode/README.md @@ -0,0 +1,7 @@ +## ECMA Script 2015 Snippets + +### [je.] parse + +```javascript + +``` diff --git a/snippets/regex/README.md b/snippets/regex/README.md index 7a61bbb..05cf593 100644 --- a/snippets/regex/README.md +++ b/snippets/regex/README.md @@ -18,7 +18,7 @@ (\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2})|(\d{3}\.\d{3}\.\d{3}\-\d{2}) ``` -### [r.bcpf] CPF +### [r.bcpf] Brazilian CPF **allow:** xxx.xxx.xxx-xx | xxxxxxxxxxxx From d25fa94806b831e35e7c4d806eda2386f2dabf7e Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 28 Jan 2016 08:55:46 -0200 Subject: [PATCH 22/70] update: readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c3e33c0..e70eb9f 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,11 @@ ## 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. ## Snippets and prefixes/keys From 341f5c5e338b70c1a1a5cdc9e600fbd110980125 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 28 Jan 2016 09:03:20 -0200 Subject: [PATCH 23/70] add: reactjs snippets folders --- snippets/js/libraries/react/README.md | 3 +++ snippets/js/libraries/react/component/README.md | 7 +++++++ snippets/js/libraries/react/lifecycle/README.md | 7 +++++++ snippets/js/libraries/react/misc/README.md | 7 +++++++ snippets/js/libraries/react/prop-types/README.md | 7 +++++++ snippets/js/libraries/react/react-dom/README.md | 7 +++++++ snippets/js/libraries/react/spec/README.md | 7 +++++++ snippets/js/libraries/react/test-utils/README.md | 7 +++++++ snippets/js/libraries/react/top-level/README.md | 7 +++++++ 9 files changed, 59 insertions(+) create mode 100644 snippets/js/libraries/react/README.md create mode 100644 snippets/js/libraries/react/component/README.md create mode 100644 snippets/js/libraries/react/lifecycle/README.md create mode 100644 snippets/js/libraries/react/misc/README.md create mode 100644 snippets/js/libraries/react/prop-types/README.md create mode 100644 snippets/js/libraries/react/react-dom/README.md create mode 100644 snippets/js/libraries/react/spec/README.md create mode 100644 snippets/js/libraries/react/test-utils/README.md create mode 100644 snippets/js/libraries/react/top-level/README.md diff --git a/snippets/js/libraries/react/README.md b/snippets/js/libraries/react/README.md new file mode 100644 index 0000000..fc9a7c1 --- /dev/null +++ b/snippets/js/libraries/react/README.md @@ -0,0 +1,3 @@ +# ReactJS Snippets + +- [](/) diff --git a/snippets/js/libraries/react/component/README.md b/snippets/js/libraries/react/component/README.md new file mode 100644 index 0000000..05385a4 --- /dev/null +++ b/snippets/js/libraries/react/component/README.md @@ -0,0 +1,7 @@ +## ReactJS Snippets + +### [jr.] parse + +```javascript + +``` diff --git a/snippets/js/libraries/react/lifecycle/README.md b/snippets/js/libraries/react/lifecycle/README.md new file mode 100644 index 0000000..05385a4 --- /dev/null +++ b/snippets/js/libraries/react/lifecycle/README.md @@ -0,0 +1,7 @@ +## ReactJS Snippets + +### [jr.] parse + +```javascript + +``` diff --git a/snippets/js/libraries/react/misc/README.md b/snippets/js/libraries/react/misc/README.md new file mode 100644 index 0000000..05385a4 --- /dev/null +++ b/snippets/js/libraries/react/misc/README.md @@ -0,0 +1,7 @@ +## ReactJS Snippets + +### [jr.] parse + +```javascript + +``` 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..05385a4 --- /dev/null +++ b/snippets/js/libraries/react/prop-types/README.md @@ -0,0 +1,7 @@ +## ReactJS Snippets + +### [jr.] parse + +```javascript + +``` 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..05385a4 --- /dev/null +++ b/snippets/js/libraries/react/react-dom/README.md @@ -0,0 +1,7 @@ +## ReactJS Snippets + +### [jr.] parse + +```javascript + +``` diff --git a/snippets/js/libraries/react/spec/README.md b/snippets/js/libraries/react/spec/README.md new file mode 100644 index 0000000..05385a4 --- /dev/null +++ b/snippets/js/libraries/react/spec/README.md @@ -0,0 +1,7 @@ +## ReactJS Snippets + +### [jr.] parse + +```javascript + +``` 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..05385a4 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/README.md @@ -0,0 +1,7 @@ +## ReactJS Snippets + +### [jr.] parse + +```javascript + +``` 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..05385a4 --- /dev/null +++ b/snippets/js/libraries/react/top-level/README.md @@ -0,0 +1,7 @@ +## ReactJS Snippets + +### [jr.] parse + +```javascript + +``` From 310fd5b53494fa5b9d5ff8a0c6d7f05e2f6e7abe Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 28 Jan 2016 15:54:58 -0200 Subject: [PATCH 24/70] add: reactjs snippets --- ...act-component-force-update.sublime-snippet | 7 ++++++ ...react-component-is-mounted.sublime-snippet | 7 ++++++ ...ct-component-replace-props.sublime-snippet | 7 ++++++ ...ct-component-replace-state.sublime-snippet | 7 ++++++ .../react-component-set-props.sublime-snippet | 7 ++++++ .../react-component-set-state.sublime-snippet | 7 ++++++ .../react/events/onBlur.sublime-snippet | 8 +++++++ .../react/events/onChange.sublime-snippet | 8 +++++++ .../react/events/onClick.sublime-snippet | 8 +++++++ .../events/onContextMenu.sublime-snippet | 8 +++++++ .../react/events/onCopy.sublime-snippet | 8 +++++++ .../react/events/onCut.sublime-snippet | 8 +++++++ .../events/onDoubleClick.sublime-snippet | 8 +++++++ .../react/events/onDragEnd.sublime-snippet | 8 +++++++ .../react/events/onDragEnter.sublime-snippet | 8 +++++++ .../react/events/onDragExit.sublime-snippet | 8 +++++++ .../react/events/onDragLeave.sublime-snippet | 8 +++++++ .../react/events/onDragOver.sublime-snippet | 8 +++++++ .../react/events/onDragStart.sublime-snippet | 8 +++++++ .../react/events/onDrop.sublime-snippet | 8 +++++++ .../react/events/onFocus.sublime-snippet | 8 +++++++ .../react/events/onInput.sublime-snippet | 8 +++++++ .../react/events/onKeyDown.sublime-snippet | 8 +++++++ .../react/events/onKeyPress.sublime-snippet | 8 +++++++ .../react/events/onKeyUp.sublime-snippet | 8 +++++++ .../react/events/onMouseDown.sublime-snippet | 8 +++++++ .../react/events/onMouseEnter.sublime-snippet | 8 +++++++ .../react/events/onMouseLeave.sublime-snippet | 8 +++++++ .../react/events/onMouseMove.sublime-snippet | 8 +++++++ .../react/events/onMouseOut.sublime-snippet | 8 +++++++ .../react/events/onMouseOver.sublime-snippet | 8 +++++++ .../react/events/onMouseUp.sublime-snippet | 8 +++++++ .../react/events/onPaste.sublime-snippet | 8 +++++++ .../react/events/onScroll.sublime-snippet | 8 +++++++ .../react/events/onSubmit.sublime-snippet | 8 +++++++ .../events/onTouchCancel.sublime-snippet | 8 +++++++ .../react/events/onTouchEnd.sublime-snippet | 8 +++++++ .../react/events/onTouchMove.sublime-snippet | 8 +++++++ .../react/events/onTouchStart.sublime-snippet | 8 +++++++ .../react/events/onWheel.sublime-snippet | 8 +++++++ ...ecycle-component-did-mount.sublime-snippet | 10 +++++++++ ...cycle-component-did-update.sublime-snippet | 9 ++++++++ ...cycle-component-will-mount.sublime-snippet | 9 ++++++++ ...mponent-will-receive-props.sublime-snippet | 9 ++++++++ ...cle-component-will-unmount.sublime-snippet | 9 ++++++++ ...ycle-component-will-update.sublime-snippet | 10 +++++++++ ...le-should-component-update.sublime-snippet | 9 ++++++++ .../react-prop-types-any.sublime-snippet | 9 ++++++++ .../react-prop-types-array-of.sublime-snippet | 10 +++++++++ .../react-prop-types-array.sublime-snippet | 10 +++++++++ .../react-prop-types-bool.sublime-snippet | 10 +++++++++ .../react-prop-types-element.sublime-snippet | 10 +++++++++ .../react-prop-types-func.sublime-snippet | 10 +++++++++ ...act-prop-types-instance-of.sublime-snippet | 10 +++++++++ .../react-prop-types-node.sublime-snippet | 10 +++++++++ .../react-prop-types-number.sublime-snippet | 10 +++++++++ ...react-prop-types-object-of.sublime-snippet | 10 +++++++++ .../react-prop-types-object.sublime-snippet | 10 +++++++++ ...act-prop-types-one-of-type.sublime-snippet | 17 ++++++++++++++ .../react-prop-types-one-of.sublime-snippet | 10 +++++++++ .../react-prop-types-shape.sublime-snippet | 22 +++++++++++++++++++ .../react-prop-types-string.sublime-snippet | 10 +++++++++ ...ct-react-dom-find-dom-node.sublime-snippet | 7 ++++++ ...t-dom-render-static-markup.sublime-snippet | 7 ++++++ ...react-dom-render-to-string.sublime-snippet | 7 ++++++ .../react-react-dom-render.sublime-snippet | 7 ++++++ ...-unmount-component-at-node.sublime-snippet | 7 ++++++ .../react-spec-display-name.sublime-snippet | 7 ++++++ ...act-spec-get-default-props.sublime-snippet | 9 ++++++++ ...eact-spec-getInitial-state.sublime-snippet | 9 ++++++++ .../spec/react-spec-mixins.sublime-snippet | 7 ++++++ .../react-spec-prop-types.sublime-snippet | 9 ++++++++ .../spec/react-spec-render.sublime-snippet | 9 ++++++++ .../spec/react-spec-statics.sublime-snippet | 11 ++++++++++ ...t-top-level-children-count.sublime-snippet | 7 ++++++ ...op-level-children-for-each.sublime-snippet | 9 ++++++++ ...act-top-level-children-map.sublime-snippet | 10 +++++++++ ...ct-top-level-clone-element.sublime-snippet | 7 ++++++ .../react-top-level-component.sublime-snippet | 11 ++++++++++ ...act-top-level-create-class.sublime-snippet | 11 ++++++++++ ...t-top-level-create-element.sublime-snippet | 7 ++++++ ...t-top-level-create-factory.sublime-snippet | 7 ++++++ ...top-level-is-valid-element.sublime-snippet | 7 ++++++ 83 files changed, 719 insertions(+) create mode 100644 snippets/js/libraries/react/component/react-component-force-update.sublime-snippet create mode 100644 snippets/js/libraries/react/component/react-component-is-mounted.sublime-snippet create mode 100644 snippets/js/libraries/react/component/react-component-replace-props.sublime-snippet create mode 100644 snippets/js/libraries/react/component/react-component-replace-state.sublime-snippet create mode 100644 snippets/js/libraries/react/component/react-component-set-props.sublime-snippet create mode 100644 snippets/js/libraries/react/component/react-component-set-state.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onBlur.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onChange.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onClick.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onContextMenu.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onCopy.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onCut.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onDoubleClick.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onDragEnd.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onDragEnter.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onDragExit.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onDragLeave.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onDragOver.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onDragStart.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onDrop.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onFocus.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onInput.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onKeyDown.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onKeyPress.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onKeyUp.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onMouseDown.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onMouseEnter.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onMouseLeave.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onMouseMove.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onMouseOut.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onMouseOver.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onMouseUp.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onPaste.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onScroll.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onSubmit.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onTouchCancel.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onTouchEnd.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onTouchMove.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onTouchStart.sublime-snippet create mode 100644 snippets/js/libraries/react/events/onWheel.sublime-snippet create mode 100644 snippets/js/libraries/react/lifecycle/react-lifecycle-component-did-mount.sublime-snippet create mode 100644 snippets/js/libraries/react/lifecycle/react-lifecycle-component-did-update.sublime-snippet create mode 100644 snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-mount.sublime-snippet create mode 100644 snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-receive-props.sublime-snippet create mode 100644 snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-unmount.sublime-snippet create mode 100644 snippets/js/libraries/react/lifecycle/react-lifecycle-component-will-update.sublime-snippet create mode 100644 snippets/js/libraries/react/lifecycle/react-lifecycle-should-component-update.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-any.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-array-of.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-array.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-bool.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-element.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-func.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-instance-of.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-node.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-number.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-object-of.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-object.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-one-of-type.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-one-of.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-shape.sublime-snippet create mode 100644 snippets/js/libraries/react/prop-types/react-prop-types-string.sublime-snippet create mode 100644 snippets/js/libraries/react/react-dom/react-react-dom-find-dom-node.sublime-snippet create mode 100644 snippets/js/libraries/react/react-dom/react-react-dom-render-static-markup.sublime-snippet create mode 100644 snippets/js/libraries/react/react-dom/react-react-dom-render-to-string.sublime-snippet create mode 100644 snippets/js/libraries/react/react-dom/react-react-dom-render.sublime-snippet create mode 100644 snippets/js/libraries/react/react-dom/react-react-dom-unmount-component-at-node.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/react-spec-display-name.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/react-spec-get-default-props.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/react-spec-getInitial-state.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/react-spec-mixins.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/react-spec-prop-types.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/react-spec-render.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/react-spec-statics.sublime-snippet create mode 100644 snippets/js/libraries/react/top-level/react-top-level-children-count.sublime-snippet create mode 100644 snippets/js/libraries/react/top-level/react-top-level-children-for-each.sublime-snippet create mode 100644 snippets/js/libraries/react/top-level/react-top-level-children-map.sublime-snippet create mode 100644 snippets/js/libraries/react/top-level/react-top-level-clone-element.sublime-snippet create mode 100644 snippets/js/libraries/react/top-level/react-top-level-component.sublime-snippet create mode 100644 snippets/js/libraries/react/top-level/react-top-level-create-class.sublime-snippet create mode 100644 snippets/js/libraries/react/top-level/react-top-level-create-element.sublime-snippet create mode 100644 snippets/js/libraries/react/top-level/react-top-level-create-factory.sublime-snippet create mode 100644 snippets/js/libraries/react/top-level/react-top-level-is-valid-element.sublime-snippet 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/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/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/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/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/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/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..8956417 --- /dev/null +++ b/snippets/js/libraries/react/top-level/react-top-level-children-count.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.ccount + 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..ea83885 --- /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.cfeach + 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..906f2a1 --- /dev/null +++ b/snippets/js/libraries/react/top-level/react-top-level-children-map.sublime-snippet @@ -0,0 +1,10 @@ + + { + ${1} + return child; +}) +]]> + jr.cmap + 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..1a0ca69 --- /dev/null +++ b/snippets/js/libraries/react/top-level/react-top-level-clone-element.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.cloneelement + 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 + From 33cc34eef4e5ecb9cdc736f6830d87993bc3f7d2 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 28 Jan 2016 16:42:04 -0200 Subject: [PATCH 25/70] add: react and es6 snippets --- README.md | 1 + .../js/es6/arrows/es6-arrows.sublime-snippet | 7 ++++ .../js/es6/classes/es6-class.sublime-snippet | 13 +++++++ .../README.md | 0 .../es6/collections/es6-map.sublime-snippet | 7 ++++ .../es6/collections/es6-set.sublime-snippet | 7 ++++ .../collections/es6-weak-map.sublime-snippet | 7 ++++ .../collections/es6-weak-set.sublime-snippet | 7 ++++ snippets/js/es6/destructuring/README.md | 7 ---- .../es6-object-literal.sublime-snippet | 13 +++++++ .../generators/es6-generators.sublime-snippet | 17 +++++++++ snippets/js/es6/iterators-for-of/README.md | 7 ---- snippets/js/es6/let-const/README.md | 7 ---- .../{default-rest-spread => let}/README.md | 0 .../js/es6/let/es6-let-for.sublime-snippet | 17 +++++++++ snippets/js/es6/let/es6-let.sublime-snippet | 7 ++++ .../js/es6/map-set-weakmap-weakset/README.md | 7 ---- .../es6.sublime-snippet | 28 +++++++++++++++ snippets/js/es6/module-loaders/README.md | 7 ---- .../es6-dynamic-import.sublime-snippet | 10 ++++++ .../es6-export-function.sublime-snippet | 10 ++++++ .../es6-export-variable.sublime-snippet | 8 +++++ .../js/es6/modules/es6-import.sublime-snippet | 8 +++++ .../modules/es6-loader-class.sublime-snippet | 10 ++++++ .../modules/es6-system-get.sublime-snippet | 8 +++++ .../modules/es6-system-set.sublime-snippet | 9 +++++ .../es6/promises/es6-promise.sublime-snippet | 10 ++++++ .../js/es6/proxies/es6-proxy.sublime-snippet | 8 +++++ .../es6-reflect-apply.sublime-snippet | 8 +++++ .../es6-reflect-construct.sublime-snippet | 8 +++++ ...es6-reflect-defineProperty.sublime-snippet | 8 +++++ ...es6-reflect-deleteProperty.sublime-snippet | 8 +++++ .../es6-reflect-enumerate.sublime-snippet | 8 +++++ .../es6-reflect-get.sublime-snippet | 8 +++++ ...es6-reflect-getOwnProperty.sublime-snippet | 8 +++++ ...es6-reflect-getPrototypeOf.sublime-snippet | 8 +++++ .../es6-reflect-has.sublime-snippet | 8 +++++ .../es6-reflect-isExtensible.sublime-snippet | 8 +++++ .../es6-reflect-ownKeys.sublime-snippet | 8 +++++ ...-reflect-preventExtensions.sublime-snippet | 8 +++++ .../es6-reflect-set.sublime-snippet | 8 +++++ ...es6-reflect-setPrototypeOf.sublime-snippet | 8 +++++ .../js/es6/subclassable-built-ins/README.md | 7 ---- snippets/js/es6/symbols/README.md | 7 ---- snippets/js/es6/tail-calls/README.md | 7 ---- .../es6-template-string.sublime-snippet | 8 +++++ snippets/js/es6/unicode/README.md | 7 ---- snippets/js/libraries/react/misc/README.md | 7 ---- ...-find-all-in-rendered-tree.sublime-snippet | 23 ++++++++++++ ...ndered-component-with-type.sublime-snippet | 29 +++++++++++++++ ...d-dom-component-with-class.sublime-snippet | 28 +++++++++++++++ ...red-dom-component-with-tag.sublime-snippet | 28 +++++++++++++++ ...posite-component-with-type.sublime-snippet | 22 ++++++++++++ ...ils-is-composite-component.sublime-snippet | 13 +++++++ ...est-utils-is-dom-component.sublime-snippet | 11 ++++++ ...t-utils-is-element-of-type.sublime-snippet | 15 ++++++++ ...eact-test-utils-is-element.sublime-snippet | 7 ++++ ...-test-utils-mock-component.sublime-snippet | 7 ++++ ...utils-render-into-document.sublime-snippet | 9 +++++ ...dered-components-with-type.sublime-snippet | 35 +++++++++++++++++++ ...-dom-components-with-class.sublime-snippet | 29 +++++++++++++++ ...ed-dom-components-with-tag.sublime-snippet | 23 ++++++++++++ ...ls-shallow-rendering-basic.sublime-snippet | 17 +++++++++ ...llow-rendering-child-count.sublime-snippet | 17 +++++++++ ...w-rendering-child-equality.sublime-snippet | 21 +++++++++++ ...s-shallow-rendering-events.sublime-snippet | 15 ++++++++ ...ls-shallow-rendering-props.sublime-snippet | 13 +++++++ ...ow-rendering-state-changes.sublime-snippet | 22 ++++++++++++ ...ils-shallow-rendering-type.sublime-snippet | 13 +++++++ ...-test-utils-simulate-basic.sublime-snippet | 11 ++++++ ...t-utils-simulate-with-data.sublime-snippet | 15 ++++++++ 71 files changed, 755 insertions(+), 70 deletions(-) create mode 100644 snippets/js/es6/arrows/es6-arrows.sublime-snippet create mode 100644 snippets/js/es6/classes/es6-class.sublime-snippet rename snippets/js/es6/{binary-and-octal-literals => collections}/README.md (100%) create mode 100644 snippets/js/es6/collections/es6-map.sublime-snippet create mode 100644 snippets/js/es6/collections/es6-set.sublime-snippet create mode 100644 snippets/js/es6/collections/es6-weak-map.sublime-snippet create mode 100644 snippets/js/es6/collections/es6-weak-set.sublime-snippet delete mode 100644 snippets/js/es6/destructuring/README.md create mode 100644 snippets/js/es6/enhanced-object-literals/es6-object-literal.sublime-snippet create mode 100644 snippets/js/es6/generators/es6-generators.sublime-snippet delete mode 100644 snippets/js/es6/iterators-for-of/README.md delete mode 100644 snippets/js/es6/let-const/README.md rename snippets/js/es6/{default-rest-spread => let}/README.md (100%) create mode 100644 snippets/js/es6/let/es6-let-for.sublime-snippet create mode 100644 snippets/js/es6/let/es6-let.sublime-snippet delete mode 100644 snippets/js/es6/map-set-weakmap-weakset/README.md create mode 100644 snippets/js/es6/math-number-string-array-object-apis/es6.sublime-snippet delete mode 100644 snippets/js/es6/module-loaders/README.md create mode 100644 snippets/js/es6/modules/es6-dynamic-import.sublime-snippet create mode 100644 snippets/js/es6/modules/es6-export-function.sublime-snippet create mode 100644 snippets/js/es6/modules/es6-export-variable.sublime-snippet create mode 100644 snippets/js/es6/modules/es6-import.sublime-snippet create mode 100644 snippets/js/es6/modules/es6-loader-class.sublime-snippet create mode 100644 snippets/js/es6/modules/es6-system-get.sublime-snippet create mode 100644 snippets/js/es6/modules/es6-system-set.sublime-snippet create mode 100644 snippets/js/es6/promises/es6-promise.sublime-snippet create mode 100644 snippets/js/es6/proxies/es6-proxy.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-apply.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-construct.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-defineProperty.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-deleteProperty.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-enumerate.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-get.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-getOwnProperty.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-getPrototypeOf.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-has.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-isExtensible.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-ownKeys.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-preventExtensions.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-set.sublime-snippet create mode 100644 snippets/js/es6/reflect-api/es6-reflect-setPrototypeOf.sublime-snippet delete mode 100644 snippets/js/es6/subclassable-built-ins/README.md delete mode 100644 snippets/js/es6/symbols/README.md delete mode 100644 snippets/js/es6/tail-calls/README.md create mode 100644 snippets/js/es6/template-strings/es6-template-string.sublime-snippet delete mode 100644 snippets/js/es6/unicode/README.md delete mode 100644 snippets/js/libraries/react/misc/README.md create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-find-all-in-rendered-tree.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-find-rendered-component-with-type.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-find-rendered-dom-component-with-class.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-find-rendered-dom-component-with-tag.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-is-composite-component-with-type.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-is-composite-component.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-is-dom-component.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-is-element-of-type.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-is-element.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-mock-component.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-render-into-document.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-scry-rendered-components-with-type.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-scry-rendered-dom-components-with-class.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-scry-rendered-dom-components-with-tag.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-basic.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-child-count.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-child-equality.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-events.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-props.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-state-changes.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-shallow-rendering-type.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-simulate-basic.sublime-snippet create mode 100644 snippets/js/libraries/react/test-utils/react-test-utils-simulate-with-data.sublime-snippet diff --git a/README.md b/README.md index e70eb9f..c514eff 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,7 @@ You can see all installed snippets in `Tools > Snippets...`, in the Sublime Text * (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/) ## Contributing 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/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/binary-and-octal-literals/README.md b/snippets/js/es6/collections/README.md similarity index 100% rename from snippets/js/es6/binary-and-octal-literals/README.md rename to snippets/js/es6/collections/README.md 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/destructuring/README.md b/snippets/js/es6/destructuring/README.md deleted file mode 100644 index e8e7671..0000000 --- a/snippets/js/es6/destructuring/README.md +++ /dev/null @@ -1,7 +0,0 @@ -## ECMA Script 2015 Snippets - -### [je.] parse - -```javascript - -``` 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/es6-generators.sublime-snippet b/snippets/js/es6/generators/es6-generators.sublime-snippet new file mode 100644 index 0000000..c6980aa --- /dev/null +++ b/snippets/js/es6/generators/es6-generators.sublime-snippet @@ -0,0 +1,17 @@ + + + je.generators + je - ES6 Generator + diff --git a/snippets/js/es6/iterators-for-of/README.md b/snippets/js/es6/iterators-for-of/README.md deleted file mode 100644 index e8e7671..0000000 --- a/snippets/js/es6/iterators-for-of/README.md +++ /dev/null @@ -1,7 +0,0 @@ -## ECMA Script 2015 Snippets - -### [je.] parse - -```javascript - -``` diff --git a/snippets/js/es6/let-const/README.md b/snippets/js/es6/let-const/README.md deleted file mode 100644 index e8e7671..0000000 --- a/snippets/js/es6/let-const/README.md +++ /dev/null @@ -1,7 +0,0 @@ -## ECMA Script 2015 Snippets - -### [je.] parse - -```javascript - -``` diff --git a/snippets/js/es6/default-rest-spread/README.md b/snippets/js/es6/let/README.md similarity index 100% rename from snippets/js/es6/default-rest-spread/README.md rename to snippets/js/es6/let/README.md 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/map-set-weakmap-weakset/README.md b/snippets/js/es6/map-set-weakmap-weakset/README.md deleted file mode 100644 index e8e7671..0000000 --- a/snippets/js/es6/map-set-weakmap-weakset/README.md +++ /dev/null @@ -1,7 +0,0 @@ -## ECMA Script 2015 Snippets - -### [je.] parse - -```javascript - -``` 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..5c5645d --- /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. + je - + diff --git a/snippets/js/es6/module-loaders/README.md b/snippets/js/es6/module-loaders/README.md deleted file mode 100644 index e8e7671..0000000 --- a/snippets/js/es6/module-loaders/README.md +++ /dev/null @@ -1,7 +0,0 @@ -## ECMA Script 2015 Snippets - -### [je.] parse - -```javascript - -``` 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..2b48601 --- /dev/null +++ b/snippets/js/es6/modules/es6-dynamic-import.sublime-snippet @@ -0,0 +1,10 @@ + + + System.import + source.js + 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..633478e --- /dev/null +++ b/snippets/js/es6/modules/es6-export-function.sublime-snippet @@ -0,0 +1,10 @@ + + + export:function + source.js + 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..5b11bd8 --- /dev/null +++ b/snippets/js/es6/modules/es6-export-variable.sublime-snippet @@ -0,0 +1,8 @@ + + + export:variable + source.js + 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..65167b1 --- /dev/null +++ b/snippets/js/es6/modules/es6-import.sublime-snippet @@ -0,0 +1,8 @@ + + + import + source.js + 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..e743146 --- /dev/null +++ b/snippets/js/es6/modules/es6-loader-class.sublime-snippet @@ -0,0 +1,10 @@ + + + Loader + source.js + 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..9a55d5f --- /dev/null +++ b/snippets/js/es6/modules/es6-system-get.sublime-snippet @@ -0,0 +1,8 @@ + + + System.get + source.js + 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..18ebc8f --- /dev/null +++ b/snippets/js/es6/modules/es6-system-set.sublime-snippet @@ -0,0 +1,9 @@ + + + System.set + source.js + ES6 System Set Module + 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..f2446be --- /dev/null +++ b/snippets/js/es6/promises/es6-promise.sublime-snippet @@ -0,0 +1,10 @@ + + { + $2 +}); +]]> + Promise + source.js + ES6 Promise + 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..d88c9a3 --- /dev/null +++ b/snippets/js/es6/proxies/es6-proxy.sublime-snippet @@ -0,0 +1,8 @@ + + + Proxy + source.js + ES6 Proxy + 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..29d6742 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-apply.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:apply + source.js + 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..20fc911 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-construct.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:construct + source.js + 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..71bfe2d --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-defineProperty.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:defineProperty + source.js + 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..84aa0a1 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-deleteProperty.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:deleteProperty + source.js + 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..972829b --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-enumerate.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:enumerate + source.js + 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..03ea315 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-get.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:get + source.js + 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..8447c34 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-getOwnProperty.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:getOwnPropertyDescriptor + source.js + 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..f1bad16 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-getPrototypeOf.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:getPrototypeOf + source.js + 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..dd74821 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-has.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:has + source.js + 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..a61c578 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-isExtensible.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:isExtensible + source.js + 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..d35f381 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-ownKeys.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:ownKeys + source.js + 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..4ee9f39 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-preventExtensions.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:preventExtensions + source.js + 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..587d5b3 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-set.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:set + source.js + 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..fac8047 --- /dev/null +++ b/snippets/js/es6/reflect-api/es6-reflect-setPrototypeOf.sublime-snippet @@ -0,0 +1,8 @@ + + + Reflect:setPrototypeOf + source.js + ES6 Reflect Set Prototype Of + diff --git a/snippets/js/es6/subclassable-built-ins/README.md b/snippets/js/es6/subclassable-built-ins/README.md deleted file mode 100644 index e8e7671..0000000 --- a/snippets/js/es6/subclassable-built-ins/README.md +++ /dev/null @@ -1,7 +0,0 @@ -## ECMA Script 2015 Snippets - -### [je.] parse - -```javascript - -``` diff --git a/snippets/js/es6/symbols/README.md b/snippets/js/es6/symbols/README.md deleted file mode 100644 index e8e7671..0000000 --- a/snippets/js/es6/symbols/README.md +++ /dev/null @@ -1,7 +0,0 @@ -## ECMA Script 2015 Snippets - -### [je.] parse - -```javascript - -``` diff --git a/snippets/js/es6/tail-calls/README.md b/snippets/js/es6/tail-calls/README.md deleted file mode 100644 index e8e7671..0000000 --- a/snippets/js/es6/tail-calls/README.md +++ /dev/null @@ -1,7 +0,0 @@ -## ECMA Script 2015 Snippets - -### [je.] parse - -```javascript - -``` 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..cd4580d --- /dev/null +++ b/snippets/js/es6/template-strings/es6-template-string.sublime-snippet @@ -0,0 +1,8 @@ + + + string + source.js + ES6 Template String + diff --git a/snippets/js/es6/unicode/README.md b/snippets/js/es6/unicode/README.md deleted file mode 100644 index e8e7671..0000000 --- a/snippets/js/es6/unicode/README.md +++ /dev/null @@ -1,7 +0,0 @@ -## ECMA Script 2015 Snippets - -### [je.] parse - -```javascript - -``` diff --git a/snippets/js/libraries/react/misc/README.md b/snippets/js/libraries/react/misc/README.md deleted file mode 100644 index 05385a4..0000000 --- a/snippets/js/libraries/react/misc/README.md +++ /dev/null @@ -1,7 +0,0 @@ -## ReactJS Snippets - -### [jr.] parse - -```javascript - -``` 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..241f6c6 --- /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.tfairtree + 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..cc432f1 --- /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.tfrcwtype + 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..441e6bc --- /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.tfrdcwclass + 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..88d3ab9 --- /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.tfrdcwtag + 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..f029906 --- /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.ticcwtype + 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..511fef5 --- /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.ticcomponent + 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..128127e --- /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.tidcomponent + 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..8639d29 --- /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.tieotype + 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..6d6d39c --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-is-element.sublime-snippet @@ -0,0 +1,7 @@ + + )).toBe(true); +]]> + jr.tielement + 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..9961ea0 --- /dev/null +++ b/snippets/js/libraries/react/test-utils/react-test-utils-mock-component.sublime-snippet @@ -0,0 +1,7 @@ + + + jr.tmcomponent + 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..845b296 --- /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.tridocument + 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..06a13d2 --- /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.tsrcwtype + 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..a16c8ea --- /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.tsrdcwtag + 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..3ebb137 --- /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.tsrbasic + 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..ef1714e --- /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.tsrccount + 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..e5c6528 --- /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.tsrcequality + 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..b74c353 --- /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.tsrevents + 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..948e26e --- /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.tsrprops + 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..5f63366 --- /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.tsrschanges + 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..467ae22 --- /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.tsrtype + 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..a685eaa --- /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.tsbasic + 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..8d2efde --- /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.tsdata + jr - Simulate (with data) + From 7cc339c3c7a03eb768b1b4ee931c32e61ba15524 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Fri, 29 Jan 2016 06:18:44 -0200 Subject: [PATCH 26/70] update: reactjs snippets information --- README.md | 1 + snippets/js/libraries/README.md | 1 + snippets/js/libraries/react/README.md | 11 +- .../js/libraries/react/component/README.md | 32 +- snippets/js/libraries/react/events/README.md | 206 +++++++++ .../js/libraries/react/lifecycle/README.md | 38 +- .../js/libraries/react/prop-types/README.md | 86 +++- .../js/libraries/react/react-dom/README.md | 26 +- snippets/js/libraries/react/spec/README.md | 38 +- .../js/libraries/react/test-utils/README.md | 400 +++++++++++++++++- ...-find-all-in-rendered-tree.sublime-snippet | 2 +- ...ndered-component-with-type.sublime-snippet | 2 +- ...d-dom-component-with-class.sublime-snippet | 2 +- ...red-dom-component-with-tag.sublime-snippet | 2 +- ...posite-component-with-type.sublime-snippet | 2 +- ...ils-is-composite-component.sublime-snippet | 2 +- ...est-utils-is-dom-component.sublime-snippet | 2 +- ...t-utils-is-element-of-type.sublime-snippet | 2 +- ...eact-test-utils-is-element.sublime-snippet | 2 +- ...-test-utils-mock-component.sublime-snippet | 2 +- ...utils-render-into-document.sublime-snippet | 2 +- ...dered-components-with-type.sublime-snippet | 2 +- ...ed-dom-components-with-tag.sublime-snippet | 2 +- ...ls-shallow-rendering-basic.sublime-snippet | 2 +- ...llow-rendering-child-count.sublime-snippet | 2 +- ...w-rendering-child-equality.sublime-snippet | 2 +- ...s-shallow-rendering-events.sublime-snippet | 2 +- ...ls-shallow-rendering-props.sublime-snippet | 2 +- ...ow-rendering-state-changes.sublime-snippet | 2 +- ...ils-shallow-rendering-type.sublime-snippet | 2 +- ...-test-utils-simulate-basic.sublime-snippet | 2 +- ...t-utils-simulate-with-data.sublime-snippet | 2 +- .../js/libraries/react/top-level/README.md | 63 ++- ...t-top-level-children-count.sublime-snippet | 4 +- ...op-level-children-for-each.sublime-snippet | 2 +- ...act-top-level-children-map.sublime-snippet | 4 +- ...ct-top-level-clone-element.sublime-snippet | 2 +- 37 files changed, 921 insertions(+), 37 deletions(-) create mode 100644 snippets/js/libraries/react/events/README.md diff --git a/README.md b/README.md index c514eff..8328aa2 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,7 @@ You can see all installed snippets in `Tools > Snippets...`, in the Sublime Text * (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 diff --git a/snippets/js/libraries/README.md b/snippets/js/libraries/README.md index 707c49c..555b2ca 100644 --- a/snippets/js/libraries/README.md +++ b/snippets/js/libraries/README.md @@ -1,3 +1,4 @@ # JavaScript Libraries Snippets - [jQuery](jquery/) +- [ReactJS](react/) diff --git a/snippets/js/libraries/react/README.md b/snippets/js/libraries/react/README.md index fc9a7c1..c4964ba 100644 --- a/snippets/js/libraries/react/README.md +++ b/snippets/js/libraries/react/README.md @@ -1,3 +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 index 05385a4..cde5434 100644 --- a/snippets/js/libraries/react/component/README.md +++ b/snippets/js/libraries/react/component/README.md @@ -1,7 +1,37 @@ ## ReactJS Snippets -### [jr.] parse +### [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/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/lifecycle/README.md b/snippets/js/libraries/react/lifecycle/README.md index 05385a4..33b5001 100644 --- a/snippets/js/libraries/react/lifecycle/README.md +++ b/snippets/js/libraries/react/lifecycle/README.md @@ -1,6 +1,42 @@ ## ReactJS Snippets -### [jr.] parse +### [jr.cdmount] componentDidMount + +```javascript + +``` + +### [jr.cdupdate] componentDidUpdate + +```javascript + +``` + +### [jr.cwmount] componentWillMount + +```javascript + +``` + +### [jr.cwrprops] componentWillReceiveProps + +```javascript + +``` + +### [jr.cwunmount] componentWillUnmount + +```javascript + +``` + +### [jr.cwupdate] componentWillUpdate + +```javascript + +``` + +### [jr.scupdate] shouldComponentUpdate ```javascript diff --git a/snippets/js/libraries/react/prop-types/README.md b/snippets/js/libraries/react/prop-types/README.md index 05385a4..b38482c 100644 --- a/snippets/js/libraries/react/prop-types/README.md +++ b/snippets/js/libraries/react/prop-types/README.md @@ -1,6 +1,90 @@ ## ReactJS Snippets -### [jr.] parse +### [jr.ptany] PropTypes.any + +```javascript + +``` + +### [jr.ptarrayof] PropTypes.arrayOf + +```javascript + +``` + +### [jr.ptarray] PropTypes.array + +```javascript + +``` + +### [jr.ptbool] PropTypes.bool + +```javascript + +``` + +### [jr.ptelement] PropTypes.element + +```javascript + +``` + +### [jr.ptfunc] PropTypes.func + +```javascript + +``` + +### [jr.ptiof] PropTypes.instanceOf + +```javascript + +``` + +### [jr.ptnode] PropTypes.node + +```javascript + +``` + +### [jr.ptnumber] PropTypes.number + +```javascript + +``` + +### [jr.ptobjectof] PropTypes.objectOf + +```javascript + +``` + +### [jr.ptobject] PropTypes.object + +```javascript + +``` + +### [jr.ptootype] PropTypes.oneOfType + +```javascript + +``` + +### [jr.ptoneof] PropTypes.oneOf + +```javascript + +``` + +### [jr.ptshape] PropTypes.shape + +```javascript + +``` + +### [jr.ptstring] PropTypes.string ```javascript diff --git a/snippets/js/libraries/react/react-dom/README.md b/snippets/js/libraries/react/react-dom/README.md index 05385a4..225f64d 100644 --- a/snippets/js/libraries/react/react-dom/README.md +++ b/snippets/js/libraries/react/react-dom/README.md @@ -1,7 +1,31 @@ ## ReactJS Snippets -### [jr.] parse +### [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/spec/README.md b/snippets/js/libraries/react/spec/README.md index 05385a4..0f29d28 100644 --- a/snippets/js/libraries/react/spec/README.md +++ b/snippets/js/libraries/react/spec/README.md @@ -1,6 +1,42 @@ ## ReactJS Snippets -### [jr.] parse +### [jr.dname] displayName + +```javascript + +``` + +### [jr.gdprops] getDefaultProps + +```javascript + +``` + +### [jr.gistate] getInitialState + +```javascript + +``` + +### [jr.mixins] mixins + +```javascript + +``` + +### [jr.ptypes] propTypes + +```javascript + +``` + +### [jr.srender] render + +```javascript + +``` + +### [jr.statics] statics ```javascript diff --git a/snippets/js/libraries/react/test-utils/README.md b/snippets/js/libraries/react/test-utils/README.md index 05385a4..5c4bf2f 100644 --- a/snippets/js/libraries/react/test-utils/README.md +++ b/snippets/js/libraries/react/test-utils/README.md @@ -1,7 +1,403 @@ -## ReactJS Snippets +# ReactJS Snippets -### [jr.] parse +## 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 index 241f6c6..3e2c242 100644 --- 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 @@ -18,6 +18,6 @@ var allDivs = TestUtils.findAllInRenderedTree( expect(allDivs).toBeAn('array'); expect(allDivs.length).toBe(2); ]]> - jr.tfairtree + 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 index cc432f1..53c3bcb 100644 --- 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 @@ -24,6 +24,6 @@ expect(TestUtils.isCompositeComponentWithType( TargetComponent )).toBe(true); ]]> - jr.tfrcwtype + 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 index 441e6bc..a835ffe 100644 --- 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 @@ -23,6 +23,6 @@ expect(singleComponentWithMatchedClass).toBeAn('object'); expect(singleComponentWithMatchedClass).toNotBeAn('array'); expect(singleComponentWithMatchedClass.className).toBe('nested'); ]]> - jr.tfrdcwclass + 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 index 88d3ab9..42df064 100644 --- 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 @@ -23,6 +23,6 @@ expect(onlyDiv).toBeAn('object'); expect(onlyDiv).toNotBeAn('array'); expect(onlyDiv.tagName).toBe('DIV'); ]]> - jr.tfrdcwtag + 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 index f029906..3500006 100644 --- 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 @@ -17,6 +17,6 @@ expect( ) ).toBe(true); ]]> - jr.ticcwtype + 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 index 511fef5..1f91348 100644 --- 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 @@ -8,6 +8,6 @@ expect( TestUtils.isCompositeComponent(subject) ).toBe(true); ]]> - jr.ticcomponent + 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 index 128127e..8fe2814 100644 --- 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 @@ -6,6 +6,6 @@ expect( TestUtils.isDOMComponent(subject) ).toBe(true); ]]> - jr.tidcomponent + 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 index 8639d29..761d0fa 100644 --- 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 @@ -10,6 +10,6 @@ expect( TestUtils.isElementOfType(, MyComponent) ).toBe(true); ]]> - jr.tieotype + 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 index 6d6d39c..8b345fb 100644 --- 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 @@ -2,6 +2,6 @@ )).toBe(true); ]]> - jr.tielement + 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 index 9961ea0..a540b2b 100644 --- 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 @@ -2,6 +2,6 @@ - jr.tmcomponent + 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 index 845b296..c7533f0 100644 --- 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 @@ -4,6 +4,6 @@ var componentTree = TestUtils.renderIntoDocument(
); console.log('You mounted a component tree with a ' + componentTree.tagName + ' at the root!'); ]]> - jr.tridocument + 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 index 06a13d2..aa3c8ad 100644 --- 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 @@ -30,6 +30,6 @@ var allTargetComponents = TestUtils.scryRenderedComponentsWithType( expect(allTargetComponents).toBeAn('array'); expect(allTargetComponents.length).toBe(2); ]]> - jr.tsrcwtype + jr.z.testutils jr - scryRenderedComponentsWithType 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 index a16c8ea..b4ea32e 100644 --- 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 @@ -18,6 +18,6 @@ var allDivs = TestUtils.scryRenderedDOMComponentsWithTag( expect(allDivs).toBeAn('array'); expect(allDivs.length).toBe(2); ]]> - jr.tsrdcwtag + 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 index 3ebb137..5ed04b8 100644 --- 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 @@ -12,6 +12,6 @@ var subject = renderer.getRenderOutput(); // 4. make assertions expect(subject.type).toBe('div'); ]]> - jr.tsrbasic + 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 index ef1714e..29dee15 100644 --- 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 @@ -12,6 +12,6 @@ var childCount = React.Children.count(subject.props.children); expect(childCount).toBe(3); // => true ]]> - jr.tsrccount + 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 index e5c6528..b96dfa6 100644 --- 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 @@ -16,6 +16,6 @@ expect(subject.props.children).toEqual([
Thing 2
]); // => true ]]> - jr.tsrcequality + 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 index b74c353..617d5bf 100644 --- 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 @@ -10,6 +10,6 @@ var subject = renderer.getRenderOutput(); expect(spy.call.length).toEqual(1); // => true ]]> - jr.tsrevents + 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 index 948e26e..fb0a86e 100644 --- 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 @@ -8,6 +8,6 @@ var subject = renderer.getRenderOutput(); expect(subject.props.className).toBe('my-component'); // => true ]]> - jr.tsrprops + 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 index 5f63366..e6faaeb 100644 --- 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 @@ -17,6 +17,6 @@ var clickedResult = renderer.getRenderOutput(); expect(clickedResult.props.children).toEqual(1); ]]> - jr.tsrschanges + 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 index 467ae22..1d2fbaa 100644 --- 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 @@ -8,6 +8,6 @@ var subject = renderer.getRenderOutput(); expect(subject.type).toBe('div'); // => true ]]> - jr.tsrtype + 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 index a685eaa..c4f6532 100644 --- 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 @@ -6,6 +6,6 @@ var subject = TestUtils.renderIntoDocument( TestUtils.Simulate.click(subject); ]]> - jr.tsbasic + 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 index 8d2efde..81734aa 100644 --- 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 @@ -10,6 +10,6 @@ var subject = TestUtils.renderIntoDocument( TestUtils.Simulate.change(subject, { key: "Enter" }); ]]> - jr.tsdata + 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 index 05385a4..6d04db3 100644 --- a/snippets/js/libraries/react/top-level/README.md +++ b/snippets/js/libraries/react/top-level/README.md @@ -1,7 +1,68 @@ ## ReactJS Snippets -### [jr.] parse +### [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 index 8956417..e6249b3 100644 --- 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 @@ -2,6 +2,6 @@ - jr.ccount - jr - Children.count + 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 index ea83885..af2e7e2 100644 --- 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 @@ -4,6 +4,6 @@ React.Children.forEach(this.props.children, (child, i) => { ${1:console.log(child + ' at index: ' + i);} }) ]]> - jr.cfeach + 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 index 906f2a1..ae06fc6 100644 --- 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 @@ -3,8 +3,8 @@ React.Children.map(this.props.children, (child, i) => { ${1} return child; -}) +}); ]]> - jr.cmap + 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 index 1a0ca69..fda2f41 100644 --- 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 @@ -2,6 +2,6 @@ - jr.cloneelement + jr.clelement jr - cloneElement From cccc1076c7775b5e454edf44811bf7e1a03b4ddf Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Fri, 29 Jan 2016 07:46:37 -0200 Subject: [PATCH 27/70] update: es6 snippets files --- snippets/js/es6/README.md | 13 ++- snippets/js/es6/arrows/README.md | 4 +- snippets/js/es6/classes/README.md | 8 +- snippets/js/es6/collections/README.md | 20 ++++- .../js/es6/enhanced-object-literals/README.md | 10 ++- snippets/js/es6/generators/README.md | 14 +++- .../generators/es6-generators.sublime-snippet | 2 +- snippets/js/es6/let/README.md | 18 ++++- .../README.md | 23 +++++- .../es6.sublime-snippet | 4 +- snippets/js/es6/modules/README.md | 44 +++++++++- .../es6-dynamic-import.sublime-snippet | 5 +- .../es6-export-function.sublime-snippet | 5 +- .../es6-export-variable.sublime-snippet | 5 +- .../js/es6/modules/es6-import.sublime-snippet | 5 +- .../modules/es6-loader-class.sublime-snippet | 5 +- .../modules/es6-system-get.sublime-snippet | 5 +- .../modules/es6-system-set.sublime-snippet | 6 +- snippets/js/es6/promises/README.md | 6 +- .../es6/promises/es6-promise.sublime-snippet | 5 +- snippets/js/es6/proxies/README.md | 4 +- .../js/es6/proxies/es6-proxy.sublime-snippet | 5 +- snippets/js/es6/reflect-api/README.md | 80 ++++++++++++++++++- .../es6-reflect-apply.sublime-snippet | 5 +- .../es6-reflect-construct.sublime-snippet | 7 +- ...es6-reflect-defineProperty.sublime-snippet | 7 +- ...es6-reflect-deleteProperty.sublime-snippet | 7 +- .../es6-reflect-enumerate.sublime-snippet | 7 +- .../es6-reflect-get.sublime-snippet | 7 +- ...es6-reflect-getOwnProperty.sublime-snippet | 7 +- ...es6-reflect-getPrototypeOf.sublime-snippet | 7 +- .../es6-reflect-has.sublime-snippet | 7 +- .../es6-reflect-isExtensible.sublime-snippet | 7 +- .../es6-reflect-ownKeys.sublime-snippet | 7 +- ...-reflect-preventExtensions.sublime-snippet | 7 +- .../es6-reflect-set.sublime-snippet | 5 +- ...es6-reflect-setPrototypeOf.sublime-snippet | 7 +- snippets/js/es6/template-strings/README.md | 4 +- .../es6-template-string.sublime-snippet | 5 +- 39 files changed, 292 insertions(+), 107 deletions(-) diff --git a/snippets/js/es6/README.md b/snippets/js/es6/README.md index 5aca3a5..9849ea4 100644 --- a/snippets/js/es6/README.md +++ b/snippets/js/es6/README.md @@ -1,3 +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 index e8e7671..79b56db 100644 --- a/snippets/js/es6/arrows/README.md +++ b/snippets/js/es6/arrows/README.md @@ -1,7 +1,7 @@ ## ECMA Script 2015 Snippets -### [je.] parse +### [je.arrow] ES6 Arrow Function ```javascript - +${1:var} => ${2:function} ``` diff --git a/snippets/js/es6/classes/README.md b/snippets/js/es6/classes/README.md index e8e7671..7113f05 100644 --- a/snippets/js/es6/classes/README.md +++ b/snippets/js/es6/classes/README.md @@ -1,7 +1,13 @@ ## ECMA Script 2015 Snippets -### [je.] parse +### [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/collections/README.md b/snippets/js/es6/collections/README.md index e8e7671..6c2a0f6 100644 --- a/snippets/js/es6/collections/README.md +++ b/snippets/js/es6/collections/README.md @@ -1,7 +1,25 @@ ## ECMA Script 2015 Snippets -### [je.] parse +### [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/enhanced-object-literals/README.md b/snippets/js/es6/enhanced-object-literals/README.md index e8e7671..e8d0fbd 100644 --- a/snippets/js/es6/enhanced-object-literals/README.md +++ b/snippets/js/es6/enhanced-object-literals/README.md @@ -1,7 +1,13 @@ ## ECMA Script 2015 Snippets -### [je.] parse +### [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/generators/README.md b/snippets/js/es6/generators/README.md index e8e7671..e5b4efe 100644 --- a/snippets/js/es6/generators/README.md +++ b/snippets/js/es6/generators/README.md @@ -1,7 +1,17 @@ ## ECMA Script 2015 Snippets -### [je.] parse +### [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 index c6980aa..3f73229 100644 --- a/snippets/js/es6/generators/es6-generators.sublime-snippet +++ b/snippets/js/es6/generators/es6-generators.sublime-snippet @@ -13,5 +13,5 @@ var ${1:generator} = { }; ]]> je.generators - je - ES6 Generator + je - ES6 Generators diff --git a/snippets/js/es6/let/README.md b/snippets/js/es6/let/README.md index e8e7671..c9937f7 100644 --- a/snippets/js/es6/let/README.md +++ b/snippets/js/es6/let/README.md @@ -1,7 +1,23 @@ ## ECMA Script 2015 Snippets -### [je.] parse +### [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/math-number-string-array-object-apis/README.md b/snippets/js/es6/math-number-string-array-object-apis/README.md index e8e7671..6fac579 100644 --- a/snippets/js/es6/math-number-string-array-object-apis/README.md +++ b/snippets/js/es6/math-number-string-array-object-apis/README.md @@ -1,7 +1,28 @@ ## ECMA Script 2015 Snippets -### [je.] parse +### [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 index 5c5645d..32da440 100644 --- 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 @@ -23,6 +23,6 @@ Array.of(1, 2, 3) // Similar to new Array(...), but without special one-arg beha Object.assign(Point, { origin: new Point(0,0) }) ]]> - je. - je - + je.z.math + je - Math diff --git a/snippets/js/es6/modules/README.md b/snippets/js/es6/modules/README.md index e8e7671..81fdd48 100644 --- a/snippets/js/es6/modules/README.md +++ b/snippets/js/es6/modules/README.md @@ -1,7 +1,49 @@ ## ECMA Script 2015 Snippets -### [je.] parse +### [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 index 2b48601..28e457a 100644 --- a/snippets/js/es6/modules/es6-dynamic-import.sublime-snippet +++ b/snippets/js/es6/modules/es6-dynamic-import.sublime-snippet @@ -4,7 +4,6 @@ System.import(${1:'my-module'})${2:.then(function(${3:m}) \{ $3 \})}; ]]> - System.import - source.js - ES6 Dynamic Module Import + 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 index 633478e..4e38398 100644 --- a/snippets/js/es6/modules/es6-export-function.sublime-snippet +++ b/snippets/js/es6/modules/es6-export-function.sublime-snippet @@ -4,7 +4,6 @@ export function ${2:name}(${3:args}) { $4 } ]]> - export:function - source.js - ES6 Module Export Function + 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 index 5b11bd8..5eab284 100644 --- a/snippets/js/es6/modules/es6-export-variable.sublime-snippet +++ b/snippets/js/es6/modules/es6-export-variable.sublime-snippet @@ -2,7 +2,6 @@ - export:variable - source.js - ES6 Module Export Variable + 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 index 65167b1..9f54056 100644 --- a/snippets/js/es6/modules/es6-import.sublime-snippet +++ b/snippets/js/es6/modules/es6-import.sublime-snippet @@ -2,7 +2,6 @@ - import - source.js - ES6 Module Import + 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 index e743146..ba0dc46 100644 --- a/snippets/js/es6/modules/es6-loader-class.sublime-snippet +++ b/snippets/js/es6/modules/es6-loader-class.sublime-snippet @@ -4,7 +4,6 @@ var ${1:loader} = new Loader({ ${2:global: fixup(window)} }); ]]> - Loader - source.js - ES6 Loader Class + 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 index 9a55d5f..67e5397 100644 --- a/snippets/js/es6/modules/es6-system-get.sublime-snippet +++ b/snippets/js/es6/modules/es6-system-get.sublime-snippet @@ -2,7 +2,6 @@ - System.get - source.js - ES6 System Get Module + 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 index 18ebc8f..8520a89 100644 --- a/snippets/js/es6/modules/es6-system-set.sublime-snippet +++ b/snippets/js/es6/modules/es6-system-set.sublime-snippet @@ -1,9 +1,7 @@ - System.set - source.js - ES6 System Set Module + je.sset + je - ES6 System Set Module diff --git a/snippets/js/es6/promises/README.md b/snippets/js/es6/promises/README.md index e8e7671..d8428ca 100644 --- a/snippets/js/es6/promises/README.md +++ b/snippets/js/es6/promises/README.md @@ -1,7 +1,9 @@ ## ECMA Script 2015 Snippets -### [je.] parse +### [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 index f2446be..60e0176 100644 --- a/snippets/js/es6/promises/es6-promise.sublime-snippet +++ b/snippets/js/es6/promises/es6-promise.sublime-snippet @@ -4,7 +4,6 @@ Promise((resolve, reject) => { $2 }); ]]> - Promise - source.js - ES6 Promise + je.promise + je - ES6 Promise diff --git a/snippets/js/es6/proxies/README.md b/snippets/js/es6/proxies/README.md index e8e7671..4b72a48 100644 --- a/snippets/js/es6/proxies/README.md +++ b/snippets/js/es6/proxies/README.md @@ -1,7 +1,7 @@ ## ECMA Script 2015 Snippets -### [je.] parse +### [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 index d88c9a3..407c33a 100644 --- a/snippets/js/es6/proxies/es6-proxy.sublime-snippet +++ b/snippets/js/es6/proxies/es6-proxy.sublime-snippet @@ -2,7 +2,6 @@ - Proxy - source.js - ES6 Proxy + je.proxy + je - ES6 Proxy diff --git a/snippets/js/es6/reflect-api/README.md b/snippets/js/es6/reflect-api/README.md index e8e7671..46fee76 100644 --- a/snippets/js/es6/reflect-api/README.md +++ b/snippets/js/es6/reflect-api/README.md @@ -1,7 +1,85 @@ ## ECMA Script 2015 Snippets -### [je.] parse +### [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 index 29d6742..8b76711 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-apply.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-apply.sublime-snippet @@ -2,7 +2,6 @@ - Reflect:apply - source.js - ES6 Reflect Apply + 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 index 20fc911..aaa499b 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-construct.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-construct.sublime-snippet @@ -1,8 +1,7 @@ - - Reflect:construct - source.js - ES6 Reflect Construct + 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 index 71bfe2d..0faac12 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-defineProperty.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-defineProperty.sublime-snippet @@ -1,8 +1,7 @@ - - Reflect:defineProperty - source.js - ES6 Reflect Define Property + 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 index 84aa0a1..d3ba95b 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-deleteProperty.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-deleteProperty.sublime-snippet @@ -1,8 +1,7 @@ - - Reflect:deleteProperty - source.js - ES6 Reflect Delete Property + 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 index 972829b..692d742 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-enumerate.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-enumerate.sublime-snippet @@ -1,8 +1,7 @@ - - Reflect:enumerate - source.js - ES6 Reflect Enumerate + 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 index 03ea315..2c6ffb0 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-get.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-get.sublime-snippet @@ -1,8 +1,7 @@ - - Reflect:get - source.js - ES6 Reflect Get + 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 index 8447c34..5dda007 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-getOwnProperty.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-getOwnProperty.sublime-snippet @@ -1,8 +1,7 @@ - - Reflect:getOwnPropertyDescriptor - source.js - ES6 Reflect Get Property Descriptor + 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 index f1bad16..8e63b63 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-getPrototypeOf.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-getPrototypeOf.sublime-snippet @@ -1,8 +1,7 @@ - - Reflect:getPrototypeOf - source.js - ES6 Reflect Get Prototype Of + 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 index dd74821..e8b4fb1 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-has.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-has.sublime-snippet @@ -1,8 +1,7 @@ - - Reflect:has - source.js - ES6 Reflect Has + 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 index a61c578..6f74911 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-isExtensible.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-isExtensible.sublime-snippet @@ -1,8 +1,7 @@ - - Reflect:isExtensible - source.js - ES6 Reflect Is Extensible + 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 index d35f381..afe2950 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-ownKeys.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-ownKeys.sublime-snippet @@ -1,8 +1,7 @@ - - Reflect:ownKeys - source.js - ES6 Reflect Own Keys + 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 index 4ee9f39..774f54d 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-preventExtensions.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-preventExtensions.sublime-snippet @@ -1,8 +1,7 @@ - - Reflect:preventExtensions - source.js - ES6 Reflect Prevent Extensions + 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 index 587d5b3..d036eba 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-set.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-set.sublime-snippet @@ -2,7 +2,6 @@ - Reflect:set - source.js - ES6 Reflect Set + 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 index fac8047..1af78e9 100644 --- a/snippets/js/es6/reflect-api/es6-reflect-setPrototypeOf.sublime-snippet +++ b/snippets/js/es6/reflect-api/es6-reflect-setPrototypeOf.sublime-snippet @@ -1,8 +1,7 @@ - - Reflect:setPrototypeOf - source.js - ES6 Reflect Set Prototype Of + 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 index e8e7671..27cf066 100644 --- a/snippets/js/es6/template-strings/README.md +++ b/snippets/js/es6/template-strings/README.md @@ -1,7 +1,7 @@ ## ECMA Script 2015 Snippets -### [je.] parse +### [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 index cd4580d..02ec71d 100644 --- a/snippets/js/es6/template-strings/es6-template-string.sublime-snippet +++ b/snippets/js/es6/template-strings/es6-template-string.sublime-snippet @@ -2,7 +2,6 @@ - string - source.js - ES6 Template String + je.string + je - ES6 Template String From c1dbbe32a88efd6bdb89eacfe20d42d71defaa6c Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Fri, 29 Jan 2016 07:47:14 -0200 Subject: [PATCH 28/70] update: test with z. --- tests/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.py b/tests/test.py index 8d2ebb9..572201c 100644 --- a/tests/test.py +++ b/tests/test.py @@ -16,7 +16,7 @@ def test_duplicates(self): for snippet in json: trigger = snippet['trigger'] - if re.match(r'^z', trigger) is None: + if re.search(r'z.', trigger) is None: triggers.append(trigger) self.assertEqual(list_duplicates(triggers), []) From 3d747f9ca3783da0fb834aea0f5bc331899c05f2 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Fri, 29 Jan 2016 07:47:48 -0200 Subject: [PATCH 29/70] update: snippets json 2016-01-29 --- snippets.json | 2104 +++++++++++++++++++------------------------------ 1 file changed, 812 insertions(+), 1292 deletions(-) diff --git a/snippets.json b/snippets.json index 3979432..0d2dd2a 100644 --- a/snippets.json +++ b/snippets.json @@ -120,3583 +120,3103 @@ "trigger": "hw.alertdialog" }, { - "description": "ES6 Arrow Function", + "description": "je - ES6 Arrow Function", "id": 25, - "trigger": "arrow" + "trigger": "je.arrow" }, { - "description": "ES6 Class", + "description": "je - ES6 Class", "id": 26, - "trigger": "class" + "trigger": "je.class" }, { - "description": "ES6 Generator", + "description": "je - ES6 Map", "id": 27, - "trigger": "generator" + "trigger": "je.map" }, { - "description": "ES6 For Loop Iterator using Let", + "description": "je - ES6 Set", "id": 28, - "trigger": "let:iterator" + "trigger": "je.set" }, { - "description": "ES6 Let", + "description": "je - ES6 WeakMap", "id": 29, - "trigger": "let" + "trigger": "je.wmap" }, { - "description": "ES6 Map", + "description": "je - ES6 WeakSet", "id": 30, - "trigger": "Map" + "trigger": "je.wset" }, { - "description": "ES6 WeakMap", + "description": "je - ES6 Object Literal", "id": 31, - "trigger": "WeakMap" + "trigger": "je.object" }, { - "description": "ES6 Dynamic Module Import", + "description": "je - ES6 Generators", "id": 32, - "trigger": "System.import" + "trigger": "je.generators" }, { - "description": "ES6 Module Export Function", + "description": "je - ES6 For Loop Iterator using Let", "id": 33, - "trigger": "export:function" + "trigger": "je.leti" }, { - "description": "ES6 Module Export Variable", + "description": "je - ES6 Let", "id": 34, - "trigger": "export:variable" + "trigger": "je.let" }, { - "description": "ES6 Module Import", + "description": "je - Math", "id": 35, - "trigger": "import" + "trigger": "je.z.math" }, { - "description": "ES6 Loader Class", + "description": "je - ES6 Dynamic Module Import", "id": 36, - "trigger": "Loader" + "trigger": "je.simport" }, { - "description": "ES6 System Get Module", + "description": "je - ES6 Module Export Function", "id": 37, - "trigger": "System.get" + "trigger": "je.efunction" }, { - "description": "ES6 System Set Module", + "description": "je - ES6 Module Export Variable", "id": 38, - "trigger": "System.set" + "trigger": "je.evariable" }, { - "description": "ES6 Object Literal", + "description": "je - ES6 Module Import", "id": 39, - "trigger": "object" + "trigger": "je.import" }, { - "description": "ES6 Promise", + "description": "je - ES6 Loader Class", "id": 40, - "trigger": "Promise" + "trigger": "je.loader" }, { - "description": "ES6 Proxy", + "description": "je - ES6 System Get Module", "id": 41, - "trigger": "Proxy" + "trigger": "je.sget" }, { - "description": "ES6 Reflect Apply", + "description": "je - ES6 System Set Module", "id": 42, - "trigger": "Reflect:apply" + "trigger": "je.sset" }, { - "description": "ES6 Reflect Construct", + "description": "je - ES6 Promise", "id": 43, - "trigger": "Reflect:construct" + "trigger": "je.promise" }, { - "description": "ES6 Reflect Define Property", + "description": "je - ES6 Proxy", "id": 44, - "trigger": "Reflect:defineProperty" + "trigger": "je.proxy" }, { - "description": "ES6 Reflect Delete Property", + "description": "je - ES6 Reflect Apply", "id": 45, - "trigger": "Reflect:deleteProperty" + "trigger": "je.rapply" }, { - "description": "ES6 Reflect Enumerate", + "description": "je - ES6 Reflect Construct", "id": 46, - "trigger": "Reflect:enumerate" + "trigger": "je.rconstruct" }, { - "description": "ES6 Reflect Get", + "description": "je - ES6 Reflect Define Property", "id": 47, - "trigger": "Reflect:get" + "trigger": "je.rdproperty" }, { - "description": "ES6 Reflect Get Property Descriptor", + "description": "je - ES6 Reflect Delete Property", "id": 48, - "trigger": "Reflect:getOwnPropertyDescriptor" + "trigger": "je.rdelproperty" }, { - "description": "ES6 Reflect Get Prototype Of", + "description": "je - ES6 Reflect Enumerate", "id": 49, - "trigger": "Reflect:getPrototypeOf" + "trigger": "je.renumerate" }, { - "description": "ES6 Reflect Has", + "description": "je - ES6 Reflect Get", "id": 50, - "trigger": "Reflect:has" + "trigger": "je.rget" }, { - "description": "ES6 Reflect Is Extensible", + "description": "je - ES6 Reflect Get Property Descriptor", "id": 51, - "trigger": "Reflect:isExtensible" + "trigger": "je.rgopdescriptor" }, { - "description": "ES6 Reflect Own Keys", + "description": "je - ES6 Reflect Get Prototype Of", "id": 52, - "trigger": "Reflect:ownKeys" + "trigger": "je.rgprototypeof" }, { - "description": "ES6 Reflect Prevent Extensions", + "description": "je - ES6 Reflect Has", "id": 53, - "trigger": "Reflect:preventExtensions" + "trigger": "je.rhas" }, { - "description": "ES6 Reflect Set", + "description": "je - ES6 Reflect Is Extensible", "id": 54, - "trigger": "Reflect:set" + "trigger": "je.riextensible" }, { - "description": "ES6 Reflect Set Prototype Of", + "description": "je - ES6 Reflect Own Keys", "id": 55, - "trigger": "Reflect:setPrototypeOf" + "trigger": "je.rokeys" }, { - "description": "ES6 Set", + "description": "je - ES6 Reflect Prevent Extensions", "id": 56, - "trigger": "Set" + "trigger": "je.rpextensions" }, { - "description": "ES6 WeakSet", + "description": "je - ES6 Reflect Set", "id": 57, - "trigger": "WeakSet" + "trigger": "je.rset" }, { - "description": "ES6 Template String", + "description": "je - ES6 Reflect Set Prototype Of", "id": 58, - "trigger": "string" + "trigger": "je.rsprototypeof" }, { - "description": "jq - ajax", + "description": "je - ES6 Template String", "id": 59, + "trigger": "je.string" + }, + { + "description": "jq - ajax", + "id": 60, "trigger": "jq.a" }, { "description": "jq - ajaxComplete", - "id": 60, + "id": 61, "trigger": "jq.acomplete" }, { "description": "jq - ajaxError", - "id": 61, + "id": 62, "trigger": "jq.aerror" }, { "description": "jq - getJSON", - "id": 62, + "id": 63, "trigger": "jq.gjson" }, { "description": "jq - getScript", - "id": 63, + "id": 64, "trigger": "jq.gscript" }, { "description": "jq - jQuery get", - "id": 64, + "id": 65, "trigger": "jq.jget" }, { "description": "jq - load", - "id": 65, + "id": 66, "trigger": "jq.load" }, { "description": "jq - post", - "id": 66, + "id": 67, "trigger": "jq.post" }, { "description": "jq - ajaxPrefilter", - "id": 67, + "id": 68, "trigger": "jq.aprefilter" }, { "description": "jq - ajaxSend", - "id": 68, + "id": 69, "trigger": "jq.asend" }, { "description": "jq - ajaxSetup", - "id": 69, + "id": 70, "trigger": "jq.asetup" }, { "description": "jq - ajaxStart", - "id": 70, + "id": 71, "trigger": "jq.astart" }, { "description": "jq - ajaxStop", - "id": 71, + "id": 72, "trigger": "jq.astop" }, { "description": "jq - ajaxSuccess", - "id": 72, + "id": 73, "trigger": "jq.asuccess" }, { "description": "jq - ajaxTransport", - "id": 73, + "id": 74, "trigger": "jq.atransport" }, { "description": "jq - addClass", - "id": 74, + "id": 75, "trigger": "jq.addclass" }, { "description": "jq - attr", - "id": 75, + "id": 76, "trigger": "jq.attr" }, { "description": "jq - hasClass", - "id": 76, + "id": 77, "trigger": "jq.hasclass" }, { "description": "jq - html", - "id": 77, + "id": 78, "trigger": "jq.html" }, { "description": "jq - prop", - "id": 78, + "id": 79, "trigger": "jq.prop" }, { "description": "jq - removeAttr", - "id": 79, + "id": 80, "trigger": "jq.rattr" }, { "description": "jq - removeClass", - "id": 80, + "id": 81, "trigger": "jq.rclass" }, { "description": "jq - removeProp", - "id": 81, + "id": 82, "trigger": "jq.rprop" }, { "description": "jq - toggleClass", - "id": 82, + "id": 83, "trigger": "jq.tclass" }, { "description": "jq - add", - "id": 83, + "id": 84, "trigger": "jq.cbadd" }, { "description": "jq - disable", - "id": 84, + "id": 85, "trigger": "jq.cbdisable" }, { "description": "jq - disabled", - "id": 85, + "id": 86, "trigger": "jq.cbdisabled" }, { "description": "jq - empty", - "id": 86, + "id": 87, "trigger": "jq.cbempty" }, { "description": "jq - fireWith", - "id": 87, + "id": 88, "trigger": "jq.cbfirewith" }, { "description": "jq - fire", - "id": 88, + "id": 89, "trigger": "jq.cbfire" }, { "description": "jq - fired", - "id": 89, + "id": 90, "trigger": "jq.cbfired" }, { "description": "jq - has", - "id": 90, + "id": 91, "trigger": "jq.cbhas" }, { "description": "jq - lock", - "id": 91, + "id": 92, "trigger": "jq.cblock" }, { "description": "jq - locked", - "id": 92, + "id": 93, "trigger": "jq.cblocked" }, { "description": "jq - remove", - "id": 93, + "id": 94, "trigger": "jq.cbremove" }, { "description": "jq - callbacks", - "id": 94, + "id": 95, "trigger": "jq.cb" }, { "description": "jq - holdReady", - "id": 95, + "id": 96, "trigger": "jq.holdready" }, { "description": "jq - jQuery", - "id": 96, + "id": 97, "trigger": "jq.jq" }, { "description": "jq - noConflict", - "id": 97, + "id": 98, "trigger": "jq.noc" }, { "description": "jq - when", - "id": 98, + "id": 99, "trigger": "jq.when" }, { "description": "jq - cssHooks", - "id": 99, + "id": 100, "trigger": "jq.cssh" }, { "description": "jq - cssNumber", - "id": 100, + "id": 101, "trigger": "jq.cssn" }, { "description": "jq - css", - "id": 101, + "id": 102, "trigger": "jq.css" }, { "description": "jq - hasData", - "id": 102, + "id": 103, "trigger": "jq.hasdata" }, { "description": "jq - jQuery data", - "id": 103, + "id": 104, "trigger": "jq.jdata" }, { "description": "jq - jQuery removeData", - "id": 104, + "id": 105, "trigger": "jq.jrdata" }, { "description": "jq - removeData", - "id": 105, + "id": 106, "trigger": "jq.rdata" }, { "description": "jq - data", - "id": 106, + "id": 107, "trigger": "jq.data" }, { "description": "jq - always", - "id": 107, + "id": 108, "trigger": "jq.always" }, { "description": "jq - done", - "id": 108, + "id": 109, "trigger": "jq.done" }, { "description": "jq - fail", - "id": 109, + "id": 110, "trigger": "jq.fail" }, { "description": "jq - notifyWith", - "id": 110, + "id": 111, "trigger": "jq.notifywith" }, { "description": "jq - notify", - "id": 111, + "id": 112, "trigger": "jq.notify" }, { "description": "jq - progress", - "id": 112, + "id": 113, "trigger": "jq.progress" }, { "description": "jq - promise", - "id": 113, + "id": 114, "trigger": "jq.dpromise" }, { "description": "jq - rejectWith", - "id": 114, + "id": 115, "trigger": "jq.rejectwith" }, { "description": "jq - reject", - "id": 115, + "id": 116, "trigger": "jq.reject" }, { "description": "jq - resolveWith", - "id": 116, + "id": 117, "trigger": "jq.resolvewith" }, { "description": "jq - resolve", - "id": 117, + "id": 118, "trigger": "jq.resolve" }, { "description": "jq - state", - "id": 118, + "id": 119, "trigger": "jq.state" }, { "description": "jq - then", - "id": 119, + "id": 120, "trigger": "jq.then" }, { "description": "jq - deferred", - "id": 120, + "id": 121, "trigger": "jq.d" }, { "description": "jq - promise", - "id": 121, + "id": 122, "trigger": "jq.promise" }, { "description": "jq - height", - "id": 122, + "id": 123, "trigger": "jq.height" }, { "description": "jq - innerHeight", - "id": 123, + "id": 124, "trigger": "jq.iheight" }, { "description": "jq - innerWidth", - "id": 124, + "id": 125, "trigger": "jq.iwidth" }, { "description": "jq - outerHeight", - "id": 125, + "id": 126, "trigger": "jq.oheight" }, { "description": "jq - outerWidth", - "id": 126, + "id": 127, "trigger": "jq.owidth" }, { "description": "jq - width", - "id": 127, + "id": 128, "trigger": "jq.width" }, { "description": "jq - animate", - "id": 128, + "id": 129, "trigger": "jq.animate" }, { "description": "jq - clearQueue", - "id": 129, + "id": 130, "trigger": "jq.cqueue" }, { "description": "jq - delay", - "id": 130, + "id": 131, "trigger": "jq.delay" }, { "description": "jq - dequeue", - "id": 131, + "id": 132, "trigger": "jq.dequeue" }, { "description": "jq - fadeIn", - "id": 132, + "id": 133, "trigger": "jq.fadein" }, { "description": "jq - fadeOut", - "id": 133, + "id": 134, "trigger": "jq.fadeout" }, { "description": "jq - fadeToggle", - "id": 134, + "id": 135, "trigger": "jq.fadetoggle" }, { "description": "jq - fadeTo", - "id": 135, + "id": 136, "trigger": "jq.fadeto" }, { "description": "jq - finish", - "id": 136, + "id": 137, "trigger": "jq.finish" }, { "description": "jq - hide", - "id": 137, + "id": 138, "trigger": "jq.hide" }, { "description": "jq - queue", - "id": 138, + "id": 139, "trigger": "jq.queue" }, { "description": "jq - show", - "id": 139, + "id": 140, "trigger": "jq.show" }, { "description": "jq - slideDown", - "id": 140, + "id": 141, "trigger": "jq.sdown" }, { "description": "jq - slideToggle", - "id": 141, + "id": 142, "trigger": "jq.stoggle" }, { "description": "jq - slideUp", - "id": 142, + "id": 143, "trigger": "jq.sup" }, { "description": "jq - stop", - "id": 143, + "id": 144, "trigger": "jq.stop" }, { "description": "jq - toggle", - "id": 144, + "id": 145, "trigger": "jq.toggle" }, { "description": "jq - bind", - "id": 145, + "id": 146, "trigger": "jq.bind" }, { "description": "jq - click", - "id": 146, + "id": 147, "trigger": "jq.click" }, { "description": "jq - contextmenu", - "id": 147, + "id": 148, "trigger": "jq.jqcmenu" }, { "description": "jq - currentTarget", - "id": 148, + "id": 149, "trigger": "jq.ctarget" }, { "description": "jq - Event data", - "id": 149, + "id": 150, "trigger": "jq.edata" }, { "description": "jq - dblclick", - "id": 150, + "id": 151, "trigger": "jq.dclick" }, { "description": "jq - delegateTarget", - "id": 151, + "id": 152, "trigger": "jq.dtarget" }, { "description": "jq - delegate", - "id": 152, + "id": 153, "trigger": "jq.delegate" }, { "description": "jq - hover", - "id": 153, + "id": 154, "trigger": "jq.hover" }, { "description": "jq - isDefaultPrevented", - "id": 154, + "id": 155, "trigger": "jq.idprevented" }, { "description": "jq - isImmediatePropagationStopped", - "id": 155, + "id": 156, "trigger": "jq.iips" }, { "description": "jq - isPropagationStopped", - "id": 156, + "id": 157, "trigger": "jq.ips" }, { "description": "jq - keydown", - "id": 157, + "id": 158, "trigger": "jq.kdown" }, { "description": "jq - keypress", - "id": 158, + "id": 159, "trigger": "jq.kpress" }, { "description": "jq - keyup", - "id": 159, + "id": 160, "trigger": "jq.kup" }, { "description": "jq - metaKey", - "id": 160, + "id": 161, "trigger": "jq.mkey" }, { "description": "jq - mousedown", - "id": 161, + "id": 162, "trigger": "jq.mdown" }, { "description": "jq - mouseenter", - "id": 162, + "id": 163, "trigger": "jq.menter" }, { "description": "jq - mouseleave", - "id": 163, + "id": 164, "trigger": "jq.mleave" }, { "description": "jq - mousemove", - "id": 164, + "id": 165, "trigger": "jq.mmove" }, { "description": "jq - mouseout", - "id": 165, + "id": 166, "trigger": "jq.mout" }, { "description": "jq - mouseover", - "id": 166, + "id": 167, "trigger": "jq.mover" }, { "description": "jq - mouseup", - "id": 167, + "id": 168, "trigger": "jq.mup" }, { "description": "jq - namespace", - "id": 168, + "id": 169, "trigger": "jq.ns" }, { "description": "jq - off", - "id": 169, + "id": 170, "trigger": "jq.off" }, { "description": "jq - on", - "id": 170, + "id": 171, "trigger": "jq.on" }, { "description": "jq - one", - "id": 171, + "id": 172, "trigger": "jq.one" }, { "description": "jq - pageX", - "id": 172, + "id": 173, "trigger": "jq.px" }, { "description": "jq - pageY", - "id": 173, + "id": 174, "trigger": "jq.py" }, { "description": "jq - preventDefault", - "id": 174, + "id": 175, "trigger": "jq.pd" }, { "description": "jq - ready", - "id": 175, + "id": 176, "trigger": "jq.ready" }, { "description": "jq - relatedTarget", - "id": 176, + "id": 177, "trigger": "jq.rtarget" }, { "description": "jq - resize", - "id": 177, + "id": 178, "trigger": "jq.resize" }, { "description": "jq - result", - "id": 178, + "id": 179, "trigger": "jq.result" }, { "description": "jq - scroll", - "id": 179, + "id": 180, "trigger": "jq.scroll" }, { "description": "jq - stopImmediatePropagation", - "id": 180, + "id": 181, "trigger": "jq.sip" }, { "description": "jq - stopPropagation", - "id": 181, + "id": 182, "trigger": "jq.sp" }, { "description": "jq - target", - "id": 182, + "id": 183, "trigger": "jq.target" }, { "description": "jq - timeStamp", - "id": 183, + "id": 184, "trigger": "jq.tstamp" }, { "description": "jq - triggerHandler", - "id": 184, + "id": 185, "trigger": "jq.thandler" }, { "description": "jq - trigger", - "id": 185, + "id": 186, "trigger": "jq.trigger" }, { "description": "jq - type", - "id": 186, + "id": 187, "trigger": "jq.type" }, { "description": "jq - unbind", - "id": 187, + "id": 188, "trigger": "jq.unbind" }, { "description": "jq - undelegate", - "id": 188, + "id": 189, "trigger": "jq.undelegate" }, { "description": "jq - which", - "id": 189, + "id": 190, "trigger": "jq.which" }, { "description": "jq - blur", - "id": 190, + "id": 191, "trigger": "jq.blur" }, { "description": "jq - change", - "id": 191, + "id": 192, "trigger": "jq.change" }, { "description": "jq - focusin", - "id": 192, + "id": 193, "trigger": "jq.focusin" }, { "description": "jq - focusout", - "id": 193, + "id": 194, "trigger": "jq.focusout" }, { "description": "jq - focus", - "id": 194, + "id": 195, "trigger": "jq.focus" }, { "description": "jq - param", - "id": 195, + "id": 196, "trigger": "jq.param" }, { "description": "jq - select", - "id": 196, + "id": 197, "trigger": "jq.select" }, { "description": "jq - serializeArray", - "id": 197, + "id": 198, "trigger": "jq.serarray" }, { "description": "jq - serialize", - "id": 198, + "id": 199, "trigger": "jq.ser" }, { "description": "jq - submit", - "id": 199, + "id": 200, "trigger": "jq.submit" }, { "description": "jq - val", - "id": 200, + "id": 201, "trigger": "jq.val" }, { "description": "jq - error", - "id": 201, + "id": 202, "trigger": "jq.error" }, { "description": "jq - pushStack", - "id": 202, + "id": 203, "trigger": "jq.pstack" }, { "description": "jq - after", - "id": 203, + "id": 204, "trigger": "jq.after" }, { "description": "jq - appendTo", - "id": 204, + "id": 205, "trigger": "jq.appendto" }, { "description": "jq - append", - "id": 205, + "id": 206, "trigger": "jq.append" }, { "description": "jq - before", - "id": 206, + "id": 207, "trigger": "jq.before" }, { "description": "jq - clone", - "id": 207, + "id": 208, "trigger": "jq.clone" }, { "description": "jq - detach", - "id": 208, + "id": 209, "trigger": "jq.detach" }, { "description": "jq - empty", - "id": 209, + "id": 210, "trigger": "jq.empty" }, { "description": "jq - insertAfter", - "id": 210, + "id": 211, "trigger": "jq.iafter" }, { "description": "jq - insertBefore", - "id": 211, + "id": 212, "trigger": "jq.ibefore" }, { "description": "jq - prependTo", - "id": 212, + "id": 213, "trigger": "jq.prependto" }, { "description": "jq - prepend", - "id": 213, + "id": 214, "trigger": "jq.prepend" }, { "description": "jq - remove", - "id": 214, + "id": 215, "trigger": "jq.remove" }, { "description": "jq - replaceAll", - "id": 215, + "id": 216, "trigger": "jq.replaceall" }, { "description": "jq - replaceWith", - "id": 216, + "id": 217, "trigger": "jq.replacewith" }, { "description": "jq - text", - "id": 217, + "id": 218, "trigger": "jq.text" }, { "description": "jq - unwrap", - "id": 218, + "id": 219, "trigger": "jq.unwrap" }, { "description": "jq - wrapAll", - "id": 219, + "id": 220, "trigger": "jq.wall" }, { "description": "jq - wrapInner", - "id": 220, + "id": 221, "trigger": "jq.winner" }, { "description": "jq - wrap", - "id": 221, + "id": 222, "trigger": "jq.wrap" }, { "description": "jq - get", - "id": 222, + "id": 223, "trigger": "jq.get" }, { "description": "jq - index", - "id": 223, + "id": 224, "trigger": "jq.index" }, { "description": "jq - toArray", - "id": 224, + "id": 225, "trigger": "jq.toarray" }, { "description": "jq - offsetParent", - "id": 225, + "id": 226, "trigger": "jq.oparent" }, { "description": "jq - position", - "id": 226, + "id": 227, "trigger": "jq.pos" }, { "description": "jq - scrollLeft", - "id": 227, + "id": 228, "trigger": "jq.scleft" }, { "description": "jq - scrollTop", - "id": 228, + "id": 229, "trigger": "jq.sctop" }, { "description": "jq - offset", - "id": 229, + "id": 230, "trigger": "jq.oset" }, { "description": "jq - fx.interval", - "id": 230, + "id": 231, "trigger": "jq.fxi" }, { "description": "jq - fx.off", - "id": 231, + "id": 232, "trigger": "jq.fxo" }, { "description": "jq - jquery", - "id": 232, + "id": 233, "trigger": "jq.jprop" }, { "description": "jq - length", - "id": 233, + "id": 234, "trigger": "jq.len" }, { "description": "jq - all", - "id": 234, + "id": 235, "trigger": "jq.all" }, { "description": "jq - :animated", - "id": 235, + "id": 236, "trigger": "jq.:a" }, { "description": "jq - Attribute Contains Prefix", - "id": 236, + "id": 237, "trigger": "jq.[]|" }, { "description": "jq - Attribute Contains", - "id": 237, + "id": 238, "trigger": "jq.[]*" }, { "description": "jq - Attribute Contains Word", - "id": 238, + "id": 239, "trigger": "jq.[]~" }, { "description": "jq - Attribute Ends With", - "id": 239, + "id": 240, "trigger": "jq.[]$" }, { "description": "jq - Attribute Equals", - "id": 240, + "id": 241, "trigger": "jq.[]=" }, { "description": "jq - Attribute Not Equal", - "id": 241, + "id": 242, "trigger": "jq.[]!" }, { "description": "jq - Attribute Starts With", - "id": 242, + "id": 243, "trigger": "jq.[]^" }, { "description": "jq - :button", - "id": 243, + "id": 244, "trigger": "jq.:b" }, { "description": "jq - :checkbox", - "id": 244, + "id": 245, "trigger": "jq.:c" }, { "description": "jq - :checked", - "id": 245, + "id": 246, "trigger": "jq.:ch" }, { "description": "jq - :child", - "id": 246, + "id": 247, "trigger": "jq.:chi" }, { "description": "jq - class", - "id": 247, + "id": 248, "trigger": "jq.:cl" }, { "description": "jq - :contains", - "id": 248, + "id": 249, "trigger": "jq.:co" }, { "description": "jq - descendant", - "id": 249, + "id": 250, "trigger": "jq.des" }, { "description": "jq - :disabled", - "id": 250, + "id": 251, "trigger": "jq.:d" }, { "description": "jq - element", - "id": 251, + "id": 252, "trigger": "jq.$" }, { "description": "jq - :empty", - "id": 252, + "id": 253, "trigger": "jq.:e" }, { "description": "jq - :enabled", - "id": 253, + "id": 254, "trigger": "jq.:en" }, { "description": "jq - :eq", - "id": 254, + "id": 255, "trigger": "jq.:eq" }, { "description": "jq - :even", - "id": 255, + "id": 256, "trigger": "jq.:ev" }, { "description": "jq - :file", - "id": 256, + "id": 257, "trigger": "jq.:f" }, { "description": "jq - :first-child", - "id": 257, + "id": 258, "trigger": "jq.:fc" }, { "description": "jq - :first-of-type", - "id": 258, + "id": 259, "trigger": "jq.:ft" }, { "description": "jq - :first", - "id": 259, + "id": 260, "trigger": "jq.:fi" }, { "description": "jq - :focus", - "id": 260, + "id": 261, "trigger": "jq.:fo" }, { "description": "jq - :gt", - "id": 261, + "id": 262, "trigger": "jq.:gt" }, { "description": "jq - Has Attribute", - "id": 262, + "id": 263, "trigger": "jq.[]" }, { "description": "jq - :has", - "id": 263, + "id": 264, "trigger": "jq.:h" }, { "description": "jq - :header", - "id": 264, + "id": 265, "trigger": "jq.:he" }, { "description": "jq - :hidden", - "id": 265, + "id": 266, "trigger": "jq.:hi" }, { "description": "jq - id", - "id": 266, + "id": 267, "trigger": "jq.id" }, { "description": "jq - :image", - "id": 267, + "id": 268, "trigger": "jq.:i" }, { "description": "jq - :input", - "id": 268, + "id": 269, "trigger": "jq.:in" }, { "description": "jq - :lang", - "id": 269, + "id": 270, "trigger": "jq.:l" }, { "description": "jq - :last-child", - "id": 270, + "id": 271, "trigger": "jq.:lc" }, { "description": "jq - :last-of-type", - "id": 271, + "id": 272, "trigger": "jq.:lty" }, { "description": "jq - :last", - "id": 272, + "id": 273, "trigger": "jq.:la" }, { "description": "jq - :lt", - "id": 273, + "id": 274, "trigger": "jq.:lt" }, { "description": "jq - Multiple Attribute", - "id": 274, + "id": 275, "trigger": "jq.[][]" }, { "description": "jq - Multiple", - "id": 275, + "id": 276, "trigger": "jq.," }, { "description": "jq - Next Adjacent", - "id": 276, + "id": 277, "trigger": "jq.+" }, { "description": "jq - Next Siblings", - "id": 277, + "id": 278, "trigger": "jq.snss" }, { "description": "jq - :not", - "id": 278, + "id": 279, "trigger": "jq.:not" }, { "description": "jq - :nth-child", - "id": 279, + "id": 280, "trigger": "jq.:nc" }, { "description": "jq - :nth-last-child", - "id": 280, + "id": 281, "trigger": "jq.:nlc" }, { "description": "jq - :nth-last-of-type", - "id": 281, + "id": 282, "trigger": "jq.:nlt" }, { "description": "jq - :nth-of-type", - "id": 282, + "id": 283, "trigger": "jq.:nt" }, { "description": "jq - :odd", - "id": 283, + "id": 284, "trigger": "jq.:o" }, { "description": "jq - :only-child", - "id": 284, + "id": 285, "trigger": "jq.:oc" }, { "description": "jq - :only-of-type", - "id": 285, + "id": 286, "trigger": "jq.:ot" }, { "description": "jq - :parent", - "id": 286, + "id": 287, "trigger": "jq.:p" }, { "description": "jq - :password", - "id": 287, + "id": 288, "trigger": "jq.:pa" }, { "description": "jq - :radio", - "id": 288, + "id": 289, "trigger": "jq.:r" }, { "description": "jq - :reset", - "id": 289, + "id": 290, "trigger": "jq.:re" }, { "description": "jq - :root", - "id": 290, + "id": 291, "trigger": "jq.:ro" }, { "description": "jq - :selected", - "id": 291, + "id": 292, "trigger": "jq.:s" }, { "description": "jq - :submit", - "id": 292, + "id": 293, "trigger": "jq.:su" }, { "description": "jq - :target", - "id": 293, + "id": 294, "trigger": "jq.:t" }, { "description": "jq - :text", - "id": 294, + "id": 295, "trigger": "jq.:tx" }, { "description": "jq - :visible", - "id": 295, + "id": 296, "trigger": "jq.:v" }, { "description": "jq - addBack", - "id": 296, + "id": 297, "trigger": "jq.addback" }, { "description": "jq - add", - "id": 297, + "id": 298, "trigger": "jq.add" }, { "description": "jq - children", - "id": 298, + "id": 299, "trigger": "jq.children" }, { "description": "jq - closest", - "id": 299, + "id": 300, "trigger": "jq.closest" }, { "description": "jq - contents", - "id": 300, + "id": 301, "trigger": "jq.contents" }, { "description": "jq - each", - "id": 301, + "id": 302, "trigger": "jq.each" }, { "description": "jq - end", - "id": 302, + "id": 303, "trigger": "jq.end" }, { "description": "jq - eq", - "id": 303, + "id": 304, "trigger": "jq.eq" }, { "description": "jq - filter", - "id": 304, + "id": 305, "trigger": "jq.filter" }, { "description": "jq - find", - "id": 305, + "id": 306, "trigger": "jq.find" }, { "description": "jq - first", - "id": 306, + "id": 307, "trigger": "jq.first" }, { "description": "jq - has", - "id": 307, + "id": 308, "trigger": "jq.has" }, { "description": "jq - is", - "id": 308, + "id": 309, "trigger": "jq.is" }, { "description": "jq - last", - "id": 309, + "id": 310, "trigger": "jq.last" }, { "description": "jq - map", - "id": 310, + "id": 311, "trigger": "jq.map" }, { "description": "jq - nextAll", - "id": 311, + "id": 312, "trigger": "jq.nextall" }, { "description": "jq - nextUntil", - "id": 312, + "id": 313, "trigger": "jq.nextuntil" }, { "description": "jq - next", - "id": 313, + "id": 314, "trigger": "jq.next" }, { "description": "jq - not", - "id": 314, + "id": 315, "trigger": "jq.not" }, { "description": "jq - parent", - "id": 315, + "id": 316, "trigger": "jq.parent" }, { "description": "jq - parentsUntil", - "id": 316, + "id": 317, "trigger": "jq.puntil" }, { "description": "jq - parents", - "id": 317, + "id": 318, "trigger": "jq.parents" }, { "description": "jq - prevAll", - "id": 318, + "id": 319, "trigger": "jq.prevall" }, { "description": "jq - prevUntil", - "id": 319, + "id": 320, "trigger": "jq.prevuntil" }, { "description": "jq - prev", - "id": 320, + "id": 321, "trigger": "jq.prev" }, { "description": "jq - siblings", - "id": 321, + "id": 322, "trigger": "jq.ts" }, { "description": "jq - slice", - "id": 322, + "id": 323, "trigger": "jq.tsl" }, { "description": "jq - contains", - "id": 323, + "id": 324, "trigger": "jq.contains" }, { "description": "jq - jQuery each", - "id": 324, + "id": 325, "trigger": "jq.jeach" }, { "description": "jq - extend", - "id": 325, + "id": 326, "trigger": "jq.extend" }, { "description": "jq - fn.extend", - "id": 326, + "id": 327, "trigger": "jq.fnextend" }, { "description": "jq - globalEval", - "id": 327, + "id": 328, "trigger": "jq.geval" }, { "description": "jq - grep", - "id": 328, + "id": 329, "trigger": "jq.grep" }, { "description": "jq - inArray", - "id": 329, + "id": 330, "trigger": "jq.inarray" }, { "description": "jq - isEmptyObject", - "id": 330, + "id": 331, "trigger": "jq.ieobject" }, { "description": "jq - isFunction", - "id": 331, + "id": 332, "trigger": "jq.ifunction" }, { "description": "jq - isNumeric", - "id": 332, + "id": 333, "trigger": "jq.inumeric" }, { "description": "jq - isPlainObject", - "id": 333, + "id": 334, "trigger": "jq.ipobject" }, { "description": "jq - isWindow", - "id": 334, + "id": 335, "trigger": "jq.iwindow" }, { "description": "jq - isXMLDoc", - "id": 335, + "id": 336, "trigger": "jq.ixmldoc" }, { "description": "jq - makeArray", - "id": 336, + "id": 337, "trigger": "jq.marray" }, { "description": "jq - jQuery map", - "id": 337, + "id": 338, "trigger": "jq.jmap" }, { "description": "jq - merge", - "id": 338, + "id": 339, "trigger": "jq.merge" }, { "description": "jq - noop", - "id": 339, + "id": 340, "trigger": "jq.noop" }, { "description": "jq - now", - "id": 340, + "id": 341, "trigger": "jq.now" }, { "description": "jq - parseHTML", - "id": 341, + "id": 342, "trigger": "jq.parseh" }, { "description": "jq - parseJSON", - "id": 342, + "id": 343, "trigger": "jq.parsej" }, { "description": "jq - parseXML", - "id": 343, + "id": 344, "trigger": "jq.parsex" }, { "description": "jq - proxy", - "id": 344, + "id": 345, "trigger": "jq.proxy" }, { "description": "jq - trim", - "id": 345, + "id": 346, "trigger": "jq.trim" }, { "description": "jq - jQuery type", - "id": 346, + "id": 347, "trigger": "jq.jtype" }, { "description": "jq - unique", - "id": 347, + "id": 348, "trigger": "jq.unique" }, { "description": "jq - jQuery Boilerplate", - "id": 348, - "trigger": "jq.b" - }, - { - "description": "ES6 React.Component class", "id": 349, - "trigger": "6rec" + "trigger": "jq.b" }, { - "description": "React createClass template", + "description": "jr - forceUpdate", "id": 350, - "trigger": "rec" + "trigger": "jr.fupdate" }, { - "description": "React mixins", + "description": "jr - isMounted", "id": 351, - "trigger": "mix" + "trigger": "jr.imounted" }, { - "description": "ES6 React componentDidMount", + "description": "jr - replaceProps", "id": 352, - "trigger": "6cd" + "trigger": "jr.rprops" }, { - "description": "ES6 React componentWillMount", + "description": "jr - replaceState", "id": 353, - "trigger": "6cw" + "trigger": "jr.rstate" }, { - "description": "React componentWillUnmount", + "description": "jr - setProps", "id": 354, - "trigger": "6cwu" + "trigger": "jr.sprops" }, { - "description": "React componentDidMount", + "description": "jr - setState", "id": 355, - "trigger": "cd" + "trigger": "jr.setstate" }, { - "description": "React componentWillMount", + "description": "jr - onBlur", "id": 356, - "trigger": "cw" + "trigger": "jr.onbl" }, { - "description": "React componentWillUnmount", + "description": "jr - onChange", "id": 357, - "trigger": "cwu" + "trigger": "jr.onch" }, { - "description": "React unmountComponent at node", + "description": "jr - onClick", "id": 358, - "trigger": "unm" + "trigger": "jr.oncl" }, { - "description": "ES6 React componentDidUpdate", + "description": "jr - onContextMenu", "id": 359, - "trigger": "6cdu" + "trigger": "jr.oncm" }, { - "description": "ES6 React componentWillReceiveProps", + "description": "jr - onCopy", "id": 360, - "trigger": "6cwr" + "trigger": "jr.onco" }, { - "description": "ES6 React componentWillUpdate", + "description": "jr - onCut", "id": 361, - "trigger": "6cwup" + "trigger": "jr.onct" }, { - "description": "ES6 React shouldComponentUpdate", + "description": "jr - onDoubleClick", "id": 362, - "trigger": "6scu" + "trigger": "jr.ondc" }, { - "description": "React componentDidUpdate", + "description": "jr - onDragEnd", "id": 363, - "trigger": "cdu" + "trigger": "jr.onde" }, { - "description": "React componentWillReceiveProps", + "description": "jr - onDragEnter", "id": 364, - "trigger": "cwr" + "trigger": "jr.onden" }, { - "description": "React componentWillUpdate", + "description": "jr - onDragExit", "id": 365, - "trigger": "cwup" + "trigger": "jr.ondex" }, { - "description": "React shouldComponentUpdate", + "description": "jr - onDragLeave", "id": 366, - "trigger": "scu" + "trigger": "jr.ondl" }, { - "description": "React ChildContextTypes", + "description": "jr - onDragOver", "id": 367, - "trigger": "ctt" + "trigger": "jr.ondo" }, { - "description": "React contextTypes", + "description": "jr - onDragStart", "id": 368, - "trigger": "cty" + "trigger": "jr.onds" }, { - "description": "React getChildContext", + "description": "jr - onDrop", "id": 369, - "trigger": "gc" + "trigger": "jr.ondr" }, { - "description": "React withContext", + "description": "jr - onFocus", "id": 370, - "trigger": "rwc" + "trigger": "jr.onfo" }, { - "description": "React.createElement()", + "description": "jr - onInput", "id": 371, - "trigger": "rc" + "trigger": "jr.onin" }, { - "description": "onBlur", + "description": "jr - onKeyDown", "id": 372, - "trigger": "onbl" + "trigger": "jr.onkd" }, { - "description": "onChange", + "description": "jr - onKeyPress", "id": 373, - "trigger": "onch" + "trigger": "jr.onkp" }, { - "description": "onClick", + "description": "jr - onKeyUp", "id": 374, - "trigger": "oncl" + "trigger": "jr.onku" }, { - "description": "onContextMenu", + "description": "jr - onMouseDown", "id": 375, - "trigger": "oncm" + "trigger": "jr.onmd" }, { - "description": "onCopy", + "description": "jr - onMouseEnter", "id": 376, - "trigger": "onco" + "trigger": "jr.onme" }, { - "description": "onCut", + "description": "jr - onMouseLeave", "id": 377, - "trigger": "onct" + "trigger": "jr.onml" }, { - "description": "onDoubleClick", + "description": "jr - onMouseMove", "id": 378, - "trigger": "ondc" + "trigger": "jr.onmm" }, { - "description": "onDragEnd", + "description": "jr - onMouseOut", "id": 379, - "trigger": "onde" + "trigger": "jr.onmo" }, { - "description": "onDragEnter", + "description": "jr - onMouseOver", "id": 380, - "trigger": "onden" + "trigger": "jr.onmov" }, { - "description": "onDragExit", + "description": "jr - onMouseUp", "id": 381, - "trigger": "ondex" + "trigger": "jr.onmu" }, { - "description": "onDragLeave", + "description": "jr - onPaste", "id": 382, - "trigger": "ondl" + "trigger": "jr.onpa" }, { - "description": "onDragOver", + "description": "jr - onScroll", "id": 383, - "trigger": "ondo" + "trigger": "jr.onsc" }, { - "description": "onDragStart", + "description": "jr - onSubmit", "id": 384, - "trigger": "onds" + "trigger": "jr.onsu" }, { - "description": "onDrop", + "description": "jr - onTouchCancel", "id": 385, - "trigger": "ondr" + "trigger": "jr.ontc" }, { - "description": "onFocus", + "description": "jr - onTouchEnd", "id": 386, - "trigger": "onfo" + "trigger": "jr.onte" }, { - "description": "onInput", + "description": "jr - onTouchMove", "id": 387, - "trigger": "onin" + "trigger": "jr.ontm" }, { - "description": "onKeyDown", + "description": "jr - onTouchStart", "id": 388, - "trigger": "onkd" + "trigger": "jr.onts" }, { - "description": "onKeyPress", + "description": "jr - onWheel", "id": 389, - "trigger": "onkp" + "trigger": "jr.onwh" }, { - "description": "onKeyUp", + "description": "jr - componentDidMount", "id": 390, - "trigger": "onku" + "trigger": "jr.cdmount" }, { - "description": "onMouseDown", + "description": "jr - componentDidUpdate", "id": 391, - "trigger": "onmd" + "trigger": "jr.cdupdate" }, { - "description": "onMouseEnter", + "description": "jr - componentWillMount", "id": 392, - "trigger": "onme" + "trigger": "jr.cwmount" }, { - "description": "onMouseLeave", + "description": "jr - componentWillReceiveProps", "id": 393, - "trigger": "onml" + "trigger": "jr.cwrprops" }, { - "description": "onMouseMove", + "description": "jr - componentWillUnmount", "id": 394, - "trigger": "onmm" + "trigger": "jr.cwunmount" }, { - "description": "onMouseOut", + "description": "jr - componentWillUpdate", "id": 395, - "trigger": "onmo" + "trigger": "jr.cwupdate" }, { - "description": "onMouseOver", + "description": "jr - shouldComponentUpdate", "id": 396, - "trigger": "onmov" + "trigger": "jr.scupdate" }, { - "description": "onMouseUp", + "description": "jr - PropTypes.any", "id": 397, - "trigger": "onmu" + "trigger": "jr.ptany" }, { - "description": "onPaste", + "description": "jr - PropTypes.arrayOf", "id": 398, - "trigger": "onpa" + "trigger": "jr.ptarrayof" }, { - "description": "onScroll", + "description": "jr - PropTypes.array", "id": 399, - "trigger": "onsc" + "trigger": "jr.ptarray" }, { - "description": "onSubmit", + "description": "jr - PropTypes.bool", "id": 400, - "trigger": "onsu" + "trigger": "jr.ptbool" }, { - "description": "onTouchCancel", + "description": "jr - PropTypes.element", "id": 401, - "trigger": "ontc" + "trigger": "jr.ptelement" }, { - "description": "onTouchEnd", + "description": "jr - PropTypes.func", "id": 402, - "trigger": "onte" + "trigger": "jr.ptfunc" }, { - "description": "onTouchMove", + "description": "jr - PropTypes.instanceOf", "id": 403, - "trigger": "ontm" + "trigger": "jr.ptiof" }, { - "description": "onTouchStart", + "description": "jr - PropTypes.node", "id": 404, - "trigger": "onts" + "trigger": "jr.ptnode" }, { - "description": "onWheel", + "description": "jr - PropTypes.number", "id": 405, - "trigger": "onwh" + "trigger": "jr.ptnumber" }, { - "description": "React getDefaultProps", + "description": "jr - PropTypes.objectOf", "id": 406, - "trigger": "gd" + "trigger": "jr.ptobjectof" }, { - "description": "React.findDOMNode", + "description": "jr - PropTypes.object", "id": 407, - "trigger": "fdn" + "trigger": "jr.ptobject" }, { - "description": "React getInitialState", + "description": "jr - PropTypes.oneOfType", "id": 408, - "trigger": "gi" + "trigger": "jr.ptootype" }, { - "description": "React JSX", + "description": "jr - PropTypes.oneOf", "id": 409, - "trigger": "jsx" + "trigger": "jr.ptoneof" }, { - "description": "React JSX script src", + "description": "jr - PropTypes.shape", "id": 410, - "trigger": "jsx:src" + "trigger": "jr.ptshape" }, { - "description": "React JSX script type", + "description": "jr - PropTypes.string", "id": 411, - "trigger": "jsxt" + "trigger": "jr.ptstring" }, { - "description": "propTypes", + "description": "jr - findDOMNode", "id": 412, - "trigger": "pt" + "trigger": "jr.fdnode" }, { - "description": "React.PropTypes", + "description": "jr - renderStaticMarkup", "id": 413, - "trigger": "rp" + "trigger": "jr.rsmarkup" }, { - "description": "React.PropTypes.array", + "description": "jr - renderToString", "id": 414, - "trigger": "rpa" + "trigger": "jr.rtstring" }, { - "description": "React.PropTypes.arrayOf", + "description": "jr - render", "id": 415, - "trigger": "rpao" + "trigger": "jr.render" }, { - "description": "React.PropTypes.boolean", + "description": "jr - unmountComponentAtNode", "id": 416, - "trigger": "rpb" + "trigger": "jr.ucanode" }, { - "description": "React.PropTypes.element", + "description": "jr - displayName", "id": 417, - "trigger": "rpe" + "trigger": "jr.dname" }, { - "description": "React.PropTypes.func", + "description": "jr - getDefaultProps", "id": 418, - "trigger": "rpf" + "trigger": "jr.gdprops" }, { - "description": "React.PropTypes.instanceOf", + "description": "jr - getInitialState", "id": 419, - "trigger": "rpi" + "trigger": "jr.gistate" }, { - "description": "React.PropTypes.number", + "description": "jr - mixins", "id": 420, - "trigger": "rpn" + "trigger": "jr.mixins" }, { - "description": "React.PropTypes.object", + "description": "jr - propTypes", "id": 421, - "trigger": "rpobj" + "trigger": "jr.ptypes" }, { - "description": "React.PropTypes.oneOf", + "description": "jr - render", "id": 422, - "trigger": "rpo" + "trigger": "jr.srender" }, { - "description": "React.PropTypes.oneOfType", + "description": "jr - statics", "id": 423, - "trigger": "rpot" + "trigger": "jr.statics" }, { - "description": "React.PropTypes.shape", + "description": "jr - findAllInRenderedTree", "id": 424, - "trigger": "rpsh" + "trigger": "jr.z.testutils" }, { - "description": "React.PropTypes.string", + "description": "jr - findRenderedComponentWithType", "id": 425, - "trigger": "rps" + "trigger": "jr.z.testutils" }, { - "description": "React.addons.classSet", + "description": "jr - findRenderedDOMComponentWithClass", "id": 426, - "trigger": "raCS" + "trigger": "jr.z.testutils" }, { - "description": "React.addons.cloneWithProps", + "description": "jr - findRenderedDOMComponentWithTag", "id": 427, - "trigger": "rclone" + "trigger": "jr.z.testutils" }, { - "description": "React.addons.CSSTransitionGroup", + "description": "jr - isCompositeComponentWithType", "id": 428, - "trigger": "raCSS" + "trigger": "jr.z.testutils" }, { - "description": "React.addons.LinkedStateMixin", + "description": "jr - isCompositeComponent", "id": 429, - "trigger": "raL" + "trigger": "jr.z.testutils" }, { - "description": "this.linkState", + "description": "jr - isDOMComponent", "id": 430, - "trigger": "thisl" + "trigger": "jr.z.testutils" }, { - "description": "valueLink", + "description": "jr - isElementOfType", "id": 431, - "trigger": "vl" + "trigger": "jr.z.testutils" }, { - "description": "React.addons.CSSTransitionGroup.transitionName", + "description": "jr - isElement", "id": 432, - "trigger": "tn" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.a", + "description": "jr - mockComponent", "id": 433, - "trigger": "Ra" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.abbr", + "description": "jr - renderIntoDocument", "id": 434, - "trigger": "Rabbr" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.address", + "description": "jr - scryRenderedComponentsWithType", "id": 435, - "trigger": "Raddress" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.area", + "description": "jr - scryRenderedDOMComponentsWithClass", "id": 436, - "trigger": "Rarea" + "trigger": "jr.tsrdcwclass" }, { - "description": "React.DOM.article", + "description": "jr - scryRenderedDOMComponentsWithTag", "id": 437, - "trigger": "Rarticle" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.aside", + "description": "jr - Shallow rendering (basics)", "id": 438, - "trigger": "Raside" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.audio", + "description": "jr - Shallow rendering (child-count)", "id": 439, - "trigger": "Raudio" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.b", + "description": "jr - Shallow rendering (child-equality)", "id": 440, - "trigger": "Rb" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.base", + "description": "jr - Shallow rendering (events)", "id": 441, - "trigger": "Rbase" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.bdi", + "description": "jr - Shallow rendering (props)", "id": 442, - "trigger": "Rbdi" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.bdo", + "description": "jr - Shallow rendering (state changes)", "id": 443, - "trigger": "Rbdo" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.big", + "description": "jr - Shallow rendering (type)", "id": 444, - "trigger": "Rbig" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.blockquote", + "description": "jr - Simulate (basic)", "id": 445, - "trigger": "Rblockquote" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.body", + "description": "jr - Simulate (with data)", "id": 446, - "trigger": "Rbody" + "trigger": "jr.z.testutils" }, { - "description": "React.DOM.br", + "description": "jr - children.count", "id": 447, - "trigger": "Rbr" + "trigger": "jr.chcount" }, { - "description": "React.DOM.button", + "description": "jr - children.forEach", "id": 448, - "trigger": "Rbutton" + "trigger": "jr.chfeach" }, { - "description": "React.DOM.canvas", + "description": "jr - children.map", "id": 449, - "trigger": "Rcanvas" + "trigger": "jr.chmap" }, { - "description": "React.DOM.caption", + "description": "jr - cloneElement", "id": 450, - "trigger": "Rcaption" + "trigger": "jr.clelement" }, { - "description": "React.DOM.circle", + "description": "jr - component", "id": 451, - "trigger": "Rcircle" + "trigger": "jr.component" }, { - "description": "React.DOM.cite", + "description": "jr - createClass", "id": 452, - "trigger": "Rcite" + "trigger": "jr.cclass" }, { - "description": "React.DOM.code", + "description": "jr - createElement", "id": 453, - "trigger": "Rcode" + "trigger": "jr.celement" }, { - "description": "React.DOM.col", + "description": "jr - createFactory", "id": 454, - "trigger": "Rcol" + "trigger": "jr.cfactory" }, { - "description": "React.DOM.colgroup", + "description": "jr - isValidElement", "id": 455, - "trigger": "Rcolgroup" - }, - { - "description": "React.DOM.data", - "id": 456, - "trigger": "Rdata" - }, - { - "description": "React.DOM.datalist", - "id": 457, - "trigger": "Rdatalist" - }, - { - "description": "React.DOM.dd", - "id": 458, - "trigger": "Rdd" - }, - { - "description": "React.DOM.defs", - "id": 459, - "trigger": "Rdefs" - }, - { - "description": "React.DOM.del", - "id": 460, - "trigger": "Rdel" - }, - { - "description": "React.DOM.details", - "id": 461, - "trigger": "Rdetails" - }, - { - "description": "React.DOM.dfn", - "id": 462, - "trigger": "Rdfn" - }, - { - "description": "React.DOM.div", - "id": 463, - "trigger": "Rdiv" - }, - { - "description": "React.DOM.dl", - "id": 464, - "trigger": "Rdl" - }, - { - "description": "React.DOM.dt", - "id": 465, - "trigger": "Rdt" - }, - { - "description": "React.DOM.em", - "id": 466, - "trigger": "Rem" - }, - { - "description": "React.DOM.embed", - "id": 467, - "trigger": "Rembed" - }, - { - "description": "React.DOM.fieldset", - "id": 468, - "trigger": "Rfieldset" - }, - { - "description": "React.DOM.figcaption", - "id": 469, - "trigger": "Rfigcaption" - }, - { - "description": "React.DOM.figure", - "id": 470, - "trigger": "Rfigure" - }, - { - "description": "React.DOM.footer", - "id": 471, - "trigger": "Rfooter" - }, - { - "description": "React.DOM.form", - "id": 472, - "trigger": "Rform" - }, - { - "description": "React.DOM.g", - "id": 473, - "trigger": "Rg" - }, - { - "description": "React.DOM.h1", - "id": 474, - "trigger": "Rh1" - }, - { - "description": "React.DOM.h2", - "id": 475, - "trigger": "Rh2" - }, - { - "description": "React.DOM.h3", - "id": 476, - "trigger": "Rh3" - }, - { - "description": "React.DOM.h4", - "id": 477, - "trigger": "Rh4" - }, - { - "description": "React.DOM.h5", - "id": 478, - "trigger": "Rh5" - }, - { - "description": "React.DOM.h6", - "id": 479, - "trigger": "Rh6" - }, - { - "description": "React.DOM.head", - "id": 480, - "trigger": "Rhead" - }, - { - "description": "React.DOM.header", - "id": 481, - "trigger": "Rheader" - }, - { - "description": "React.DOM.hr", - "id": 482, - "trigger": "Rhr" - }, - { - "description": "React.DOM.html", - "id": 483, - "trigger": "Rhtml" - }, - { - "description": "React.DOM.i", - "id": 484, - "trigger": "Ri" - }, - { - "description": "React.DOM.iframe", - "id": 485, - "trigger": "Riframe" - }, - { - "description": "React.DOM.img", - "id": 486, - "trigger": "Rimg" - }, - { - "description": "React.DOM.input", - "id": 487, - "trigger": "Rinput" - }, - { - "description": "React.DOM.ins", - "id": 488, - "trigger": "Rins" - }, - { - "description": "React.DOM.kbd", - "id": 489, - "trigger": "Rkbd" - }, - { - "description": "React.DOM.keygen", - "id": 490, - "trigger": "Rkeygen" - }, - { - "description": "React.DOM.label", - "id": 491, - "trigger": "Rlabel" - }, - { - "description": "React.DOM.legend", - "id": 492, - "trigger": "Rlegend" - }, - { - "description": "React.DOM.li", - "id": 493, - "trigger": "Rli" - }, - { - "description": "React.DOM.line", - "id": 494, - "trigger": "Rline" - }, - { - "description": "React.DOM.linearGradient", - "id": 495, - "trigger": "RlinearGradient" - }, - { - "description": "React.DOM.link", - "id": 496, - "trigger": "Rlink" - }, - { - "description": "React.DOM.main", - "id": 497, - "trigger": "Rmain" - }, - { - "description": "React.DOM.map", - "id": 498, - "trigger": "Rmap" - }, - { - "description": "React.DOM.mark", - "id": 499, - "trigger": "Rmark" - }, - { - "description": "React.DOM.menu", - "id": 500, - "trigger": "Rmenu" - }, - { - "description": "React.DOM.menuitem", - "id": 501, - "trigger": "Rmenuitem" - }, - { - "description": "React.DOM.meta", - "id": 502, - "trigger": "Rmeta" - }, - { - "description": "React.DOM.meter", - "id": 503, - "trigger": "Rmeter" - }, - { - "description": "React.DOM.nav", - "id": 504, - "trigger": "Rnav" - }, - { - "description": "React.DOM.noscript", - "id": 505, - "trigger": "Rnoscript" - }, - { - "description": "React.DOM.object", - "id": 506, - "trigger": "Robject" - }, - { - "description": "React.DOM.ol", - "id": 507, - "trigger": "Rol" - }, - { - "description": "React.DOM.optgroup", - "id": 508, - "trigger": "Roptgroup" - }, - { - "description": "React.DOM.option", - "id": 509, - "trigger": "Roption" - }, - { - "description": "React.DOM.output", - "id": 510, - "trigger": "Routput" - }, - { - "description": "React.DOM.p", - "id": 511, - "trigger": "Rp" - }, - { - "description": "React.DOM.param", - "id": 512, - "trigger": "Rparam" - }, - { - "description": "React.DOM.path", - "id": 513, - "trigger": "Rpath" - }, - { - "description": "React.DOM.polygon", - "id": 514, - "trigger": "Rpolygon" - }, - { - "description": "React.DOM.polyline", - "id": 515, - "trigger": "Rpolyline" - }, - { - "description": "React.DOM.pre", - "id": 516, - "trigger": "Rpre" - }, - { - "description": "React.DOM.progress", - "id": 517, - "trigger": "Rprogress" - }, - { - "description": "React.DOM.q", - "id": 518, - "trigger": "Rq" - }, - { - "description": "React.DOM.radialGradient", - "id": 519, - "trigger": "RradialGradient" - }, - { - "description": "React.DOM.rect", - "id": 520, - "trigger": "Rrect" - }, - { - "description": "React.DOM.rp", - "id": 521, - "trigger": "Rrp" - }, - { - "description": "React.DOM.rt", - "id": 522, - "trigger": "Rrt" - }, - { - "description": "React.DOM.ruby", - "id": 523, - "trigger": "Rruby" - }, - { - "description": "React.DOM.s", - "id": 524, - "trigger": "Rs" - }, - { - "description": "React.DOM.samp", - "id": 525, - "trigger": "Rsamp" - }, - { - "description": "React.DOM.script", - "id": 526, - "trigger": "Rscript" - }, - { - "description": "React.DOM.section", - "id": 527, - "trigger": "Rsection" - }, - { - "description": "React.DOM.select", - "id": 528, - "trigger": "Rselect" - }, - { - "description": "React.DOM.small", - "id": 529, - "trigger": "Rsmall" - }, - { - "description": "React.DOM.source", - "id": 530, - "trigger": "Rsource" - }, - { - "description": "React.DOM.span", - "id": 531, - "trigger": "Rspan" - }, - { - "description": "React.DOM.stop", - "id": 532, - "trigger": "Rstop" - }, - { - "description": "React.DOM.strong", - "id": 533, - "trigger": "Rstrong" - }, - { - "description": "React.DOM.style", - "id": 534, - "trigger": "Rstyle" - }, - { - "description": "React.DOM.sub", - "id": 535, - "trigger": "Rsub" - }, - { - "description": "React.DOM.summary", - "id": 536, - "trigger": "Rsummary" - }, - { - "description": "React.DOM.sup", - "id": 537, - "trigger": "Rsup" - }, - { - "description": "React.DOM.svg", - "id": 538, - "trigger": "Rsvg" - }, - { - "description": "React.DOM.table", - "id": 539, - "trigger": "Rtable" - }, - { - "description": "React.DOM.tbody", - "id": 540, - "trigger": "Rtbody" - }, - { - "description": "React.DOM.td", - "id": 541, - "trigger": "Rtd" - }, - { - "description": "React.DOM.text", - "id": 542, - "trigger": "Rtext" - }, - { - "description": "React.DOM.textarea", - "id": 543, - "trigger": "Rtextarea" - }, - { - "description": "React.DOM.tfoot", - "id": 544, - "trigger": "Rtfoot" - }, - { - "description": "React.DOM.th", - "id": 545, - "trigger": "Rth" - }, - { - "description": "React.DOM.thead", - "id": 546, - "trigger": "Rthead" - }, - { - "description": "React.DOM.time", - "id": 547, - "trigger": "Rtime" - }, - { - "description": "React.DOM.title", - "id": 548, - "trigger": "Rtitle" - }, - { - "description": "React.DOM.tr", - "id": 549, - "trigger": "Rtr" - }, - { - "description": "React.DOM.track", - "id": 550, - "trigger": "Rtrack" - }, - { - "description": "React.DOM.u", - "id": 551, - "trigger": "Ru" - }, - { - "description": "React.DOM.ul", - "id": 552, - "trigger": "Rul" - }, - { - "description": "React.DOM.video", - "id": 553, - "trigger": "Rvideo" - }, - { - "description": "React.DOM.wbr", - "id": 554, - "trigger": "Rwbr" - }, - { - "description": "React.render", - "id": 555, - "trigger": "ren" - }, - { - "description": "React render with React.DOM", - "id": 556, - "trigger": "rren" - }, - { - "description": "React this.setProps", - "id": 557, - "trigger": "sp" - }, - { - "description": "React this.setState", - "id": 558, - "trigger": "ss" - }, - { - "description": "React this.context", - "id": 559, - "trigger": "thisc" - }, - { - "description": "React this.props", - "id": 560, - "trigger": "thisp" - }, - { - "description": "React this.refs", - "id": 561, - "trigger": "thisr" - }, - { - "description": "React this.state", - "id": 562, - "trigger": "thiss" - }, - { - "description": "React this.transferPropsTo", - "id": 563, - "trigger": "thistr" + "trigger": "jr.ivelement" }, { "description": "jdp - Command", - "id": 564, + "id": 456, "trigger": "jdp.command" }, { "description": "jdp - Constructor", - "id": 565, + "id": 457, "trigger": "jdp.constructor" }, { "description": "jdp - Decorator", - "id": 566, + "id": 458, "trigger": "jdp.decorator" }, { "description": "jdp - Facade", - "id": 567, + "id": 459, "trigger": "jdp.facade" }, { "description": "jdp - Factory", - "id": 568, + "id": 460, "trigger": "jdp.factory" }, { "description": "jdp - Flyweight", - "id": 569, + "id": 461, "trigger": "jdp.flyweight" }, { "description": "jdp - Mediator", - "id": 570, + "id": 462, "trigger": "jdp.mediator" }, { "description": "jdp - Mixin", - "id": 571, + "id": 463, "trigger": "jdp.mixin" }, { "description": "jdp - Module", - "id": 572, + "id": 464, "trigger": "jdp.module" }, { "description": "jdp - Observer", - "id": 573, + "id": 465, "trigger": "jdp.observer" }, { "description": "jdp - Prototype", - "id": 574, + "id": 466, "trigger": "jdp.prototype" }, { "description": "jdp - Revealing Module", - "id": 575, + "id": 467, "trigger": "jdp.rmodule" }, { "description": "jdp - Singleton", - "id": 576, + "id": 468, "trigger": "jdp.singleton" }, { "description": "jumd - AMD Web Global", - "id": 577, + "id": 469, "trigger": "jumd.awg" }, { "description": "jumd - AMD Web", - "id": 578, + "id": 470, "trigger": "jumd.aw" }, { "description": "jumd - CommonJS Adapter", - "id": 579, + "id": 471, "trigger": "jumd.ca" }, { "description": "jumd - CommonJS Strict Global", - "id": 580, + "id": 472, "trigger": "jumd.csg" }, { "description": "jumd - CommonJS Strict", - "id": 581, + "id": 473, "trigger": "jumd.cs" }, { "description": "jumd - jQuery plugin", - "id": 582, + "id": 474, "trigger": "jumd.jp" }, { "description": "jumd - Node Adapter", - "id": 583, + "id": 475, "trigger": "jumd.na" }, { "description": "jumd - Return Exports Global", - "id": 584, + "id": 476, "trigger": "jumd.reg" }, { "description": "jumd - Return Exports", - "id": 585, + "id": 477, "trigger": "jumd.re" }, { "description": "tc - Expect to.be.a", - "id": 586, + "id": 478, "trigger": "tc.e.tba" }, { "description": "tc - Expect to.equal", - "id": 587, + "id": 479, "trigger": "tc.e.te" }, { "description": "tc - Expect to.have.length", - "id": 588, + "id": 480, "trigger": "tc.e.thl" }, { "description": "tc - Expect to.have.property", - "id": 589, + "id": 481, "trigger": "tc.e.thp" }, { "description": "tc - Should be.a", - "id": 590, + "id": 482, "trigger": "tc.s.ba" }, { "description": "tc - Should equal", - "id": 591, + "id": 483, "trigger": "tc.s.e" }, { "description": "tc - Should have.length", - "id": 592, + "id": 484, "trigger": "tc.s.hl" }, { "description": "tc - Should have.property", - "id": 593, + "id": 485, "trigger": "tc.s.hp" }, { "description": "tc - Assert equal", - "id": 594, + "id": 486, "trigger": "tc.a.e" }, { "description": "tc - Assert lengthOf", - "id": 595, + "id": 487, "trigger": "tc.a.lo" }, { "description": "tc - Assert typeOf", - "id": 596, + "id": 488, "trigger": "tc.a.to" }, { "description": "t - afterEach", - "id": 597, + "id": 489, "trigger": "t.aftereach" }, { "description": "t - after", - "id": 598, + "id": 490, "trigger": "t.after" }, { "description": "t - beforeEach", - "id": 599, + "id": 491, "trigger": "t.beforeeach" }, { "description": "t - before", - "id": 600, + "id": 492, "trigger": "t.before" }, { "description": "t - describe", - "id": 601, + "id": 493, "trigger": "t.describe" }, { "description": "t - it", - "id": 602, + "id": 494, "trigger": "t.it" }, { "description": "tj - Expect toBeCloseTo", - "id": 603, + "id": 495, "trigger": "tj.closeto" }, { "description": "tj - Expect toBeContain", - "id": 604, + "id": 496, "trigger": "tj.contain" }, { "description": "tj - Expect toBeDefined", - "id": 605, + "id": 497, "trigger": "tj.defined" }, { "description": "tj - Expect toBeFalsy", - "id": 606, + "id": 498, "trigger": "tj.falsy" }, { "description": "tj - Expect toBeGreaterThan", - "id": 607, + "id": 499, "trigger": "tj.greaterthan" }, { "description": "tj - Expect toBeLessThan", - "id": 608, + "id": 500, "trigger": "tj.lessthan" }, { "description": "tj - Expect toBeNaN", - "id": 609, + "id": 501, "trigger": "tj.nan" }, { "description": "tj - Expect toBeNull", - "id": 610, + "id": 502, "trigger": "tj.null" }, { "description": "tj - Expect toBeTruthy", - "id": 611, + "id": 503, "trigger": "tj.truthy" }, { "description": "tj - Expect toBeUndefined", - "id": 612, + "id": 504, "trigger": "tj.undefined" }, { "description": "tj - Expect toBe", - "id": 613, + "id": 505, "trigger": "tj.tobe" }, { "description": "tj - Expect toEqual", - "id": 614, + "id": 506, "trigger": "tj.equal" }, { "description": "tj - Expect toHaveBeenCalledTimes", - "id": 615, + "id": 507, "trigger": "tj.hbctimes" }, { "description": "tj - Expect toHaveBeenCalledWith", - "id": 616, + "id": 508, "trigger": "tj.hbcwith" }, { "description": "tj - Expect toHaveBeenCalled", - "id": 617, + "id": 509, "trigger": "tj.hbc" }, { "description": "tj - Expect toMatch", - "id": 618, + "id": 510, "trigger": "tj.match" }, { "description": "tj - Expect toThrowError", - "id": 619, + "id": 511, "trigger": "tj.throwerror" }, { "description": "tj - Expect toThrow", - "id": 620, + "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": 621, + "id": 523, "trigger": "tn.dequal" }, { "description": "tn - Assert deepStrictEqual", - "id": 622, + "id": 524, "trigger": "tn.dsequal" }, { "description": "tn - Assert doesNotThrow", - "id": 623, + "id": 525, "trigger": "tn.dnthrow" }, { "description": "tn - Assert equal", - "id": 624, + "id": 526, "trigger": "tn.equal" }, { "description": "tn - Assert fail", - "id": 625, + "id": 527, "trigger": "tn.fail" }, { "description": "tn - Assert ifError", - "id": 626, + "id": 528, "trigger": "tn.iferror" }, { "description": "tn - Assert notDeepEqual", - "id": 627, + "id": 529, "trigger": "tn.ndequal" }, { "description": "tn - Assert notDeepStrictEqual", - "id": 628, + "id": 530, "trigger": "tn.ndsequal" }, { "description": "tn - Assert notEqual", - "id": 629, + "id": 531, "trigger": "tn.nequal" }, { "description": "tn - Assert notStrictEqual", - "id": 630, + "id": 532, "trigger": "tn.nsequal" }, { "description": "tn - Assert ok", - "id": 631, + "id": 533, "trigger": "tn.ok" }, { "description": "tn - Assert strictEqual", - "id": 632, + "id": 534, "trigger": "tn.sequal" }, { "description": "tn - Assert throws", - "id": 633, + "id": 535, "trigger": "tn.throws" }, { "description": "tn - Assert", - "id": 634, + "id": 536, "trigger": "tn.a" }, { "description": "tq - Assert async", - "id": 635, + "id": 537, "trigger": "tq.async" }, { "description": "tq - Assert deepEqual", - "id": 636, + "id": 538, "trigger": "tq.dequal" }, { "description": "tq - Assert equal", - "id": 637, + "id": 539, "trigger": "tq.equal" }, { "description": "tq - notDeepEqual", - "id": 638, + "id": 540, "trigger": "tq.ndequal" }, { "description": "tq - notEqual", - "id": 639, + "id": 541, "trigger": "tq.nequal" }, { "description": "tq - notOk", - "id": 640, + "id": 542, "trigger": "tq.nok" }, { "description": "tq - notPropEqual", - "id": 641, + "id": 543, "trigger": "tq.npequal" }, { "description": "tq - notStrictEqual", - "id": 642, + "id": 544, "trigger": "tq.nsequal" }, { "description": "tq - ok", - "id": 643, + "id": 545, "trigger": "tq.ok" }, { "description": "tq - propEqual", - "id": 644, + "id": 546, "trigger": "tq.pequal" }, { "description": "tq - strictEqual", - "id": 645, + "id": 547, "trigger": "tq.sequal" }, { "description": "tq - throws", - "id": 646, + "id": 548, "trigger": "tq.throws" }, { "description": "tq - QUnit.begin", - "id": 647, + "id": 549, "trigger": "tq.begin" }, { "description": "tq - QUnit.config", - "id": 648, + "id": 550, "trigger": "tq.config" }, { "description": "tq - QUnit.done", - "id": 649, + "id": 551, "trigger": "tq.done" }, { "description": "tq - QUnit.dump.parse", - "id": 650, + "id": 552, "trigger": "tq.dparse" }, { "description": "tq - Expect", - "id": 651, + "id": 553, "trigger": "tq.expect" }, { "description": "tq - QUnit.extend", - "id": 652, + "id": 554, "trigger": "tq.extend" }, { "description": "tq - QUnit.log", - "id": 653, + "id": 555, "trigger": "tq.log" }, { "description": "tq - QUnit.moduleDone", - "id": 654, + "id": 556, "trigger": "tq.mdone" }, { "description": "tq - QUnit.moduleStart", - "id": 655, + "id": 557, "trigger": "tq.mstart" }, { "description": "tq - QUnit.module", - "id": 656, + "id": 558, "trigger": "tq.module" }, { "description": "tq - QUnit.only", - "id": 657, + "id": 559, "trigger": "tq.only" }, { "description": "tq - push", - "id": 658, + "id": 560, "trigger": "tq.push" }, { "description": "tq - QUnit.skip", - "id": 659, + "id": 561, "trigger": "tq.skip" }, { "description": "tq - QUnit.stack", - "id": 660, + "id": 562, "trigger": "tq.stack" }, { "description": "tq - QUnit.testDone", - "id": 661, + "id": 563, "trigger": "tq.tdone" }, { "description": "tq - QUnit.testStart", - "id": 662, + "id": 564, "trigger": "tq.tstart" }, { "description": "tq - Test", - "id": 663, + "id": 565, "trigger": "tq.test" }, { "description": "ts - Assert alwaysCalledOn", - "id": 664, + "id": 566, "trigger": "ts.acon" }, { "description": "ts - Assert alwaysCalledWithExactly", - "id": 665, + "id": 567, "trigger": "ts.acalledwe" }, { "description": "ts - Assert alwaysCalledWithMatch", - "id": 666, + "id": 568, "trigger": "ts.acalledwm" }, { "description": "ts - Assert alwaysCalledWith", - "id": 667, + "id": 569, "trigger": "ts.acalledw" }, { "description": "ts - Assert alwaysThrew", - "id": 668, + "id": 570, "trigger": "ts.athrew" }, { "description": "ts - Assert callCount", - "id": 669, + "id": 571, "trigger": "ts.ccount" }, { "description": "ts - Assert callOrder", - "id": 670, + "id": 572, "trigger": "ts.corder" }, { "description": "ts - Assert calledOn", - "id": 671, + "id": 573, "trigger": "ts.con" }, { "description": "ts - Assert calledOnce", - "id": 672, + "id": 574, "trigger": "ts.calledo" }, { "description": "ts - Assert calledThrice", - "id": 673, + "id": 575, "trigger": "ts.calledth" }, { "description": "ts - Assert calledTwice", - "id": 674, + "id": 576, "trigger": "ts.calledt" }, { "description": "ts - Assert calledWithExactly", - "id": 675, + "id": 577, "trigger": "ts.calledwe" }, { "description": "ts - Assert calledWithMatch", - "id": 676, + "id": 578, "trigger": "ts.calledwm" }, { "description": "ts - Assert calledWith", - "id": 677, + "id": 579, "trigger": "ts.calledw" }, { "description": "ts - Assert called", - "id": 678, + "id": 580, "trigger": "ts.called" }, { "description": "ts - Assert expose", - "id": 679, + "id": 581, "trigger": "ts.expose" }, { "description": "ts - Assert failException", - "id": 680, + "id": 582, "trigger": "ts.faile" }, { "description": "ts - Assert fail", - "id": 681, + "id": 583, "trigger": "ts.afail" }, { "description": "ts - Assert neverCalledWithMatch", - "id": 682, + "id": 584, "trigger": "ts.ncalledwm" }, { "description": "ts - Assert neverCalledWith", - "id": 683, + "id": 585, "trigger": "ts.ncalledw" }, { "description": "ts - Assert notCalled", - "id": 684, + "id": 586, "trigger": "ts.ncalled" }, { "description": "ts - Assert pass", - "id": 685, + "id": 587, "trigger": "ts.pass" }, { "description": "ts - Assert threw", - "id": 686, + "id": 588, "trigger": "ts.threw" }, { "description": "j - if else", - "id": 687, + "id": 589, "trigger": "j.ifelse" }, { "description": "j - switch", - "id": 688, + "id": 590, "trigger": "j.switch" }, { "description": "j - console.dir", - "id": 689, + "id": 591, "trigger": "j.cd" }, { "description": "j - console.error", - "id": 690, + "id": 592, "trigger": "j.ce" }, { "description": "j - console.info", - "id": 691, + "id": 593, "trigger": "j.ci" }, { "description": "j - console.log", - "id": 692, + "id": 594, "trigger": "j.cl" }, { "description": "j - console.warn", - "id": 693, + "id": 595, "trigger": "j.cw" }, { "description": "j - addEventListener", - "id": 694, + "id": 596, "trigger": "j.ael" }, { "description": "j - appendChild", - "id": 695, + "id": 597, "trigger": "j.ac" }, { "description": "j - classList.add", - "id": 696, + "id": 598, "trigger": "j.cla" }, { "description": "j - classList.remove", - "id": 697, + "id": 599, "trigger": "j.clr" }, { "description": "j - classList.toggle", - "id": 698, + "id": 600, "trigger": "j.clt" }, { "description": "j - createDocumentFragment", - "id": 699, + "id": 601, "trigger": "j.cdf" }, { "description": "j - createElement", - "id": 700, + "id": 602, "trigger": "j.cel" }, { "description": "j - getAttribute", - "id": 701, + "id": 603, "trigger": "j.gattr" }, { "description": "j - getElementById", - "id": 702, + "id": 604, "trigger": "j.gid" }, { "description": "j - getElementsByClassName", - "id": 703, + "id": 605, "trigger": "j.gclass" }, { "description": "j - getElementsByTagName", - "id": 704, + "id": 606, "trigger": "j.gtag" }, { "description": "j - innerHTML", - "id": 705, + "id": 607, "trigger": "j.ih" }, { "description": "j - querySelectorAll", - "id": 706, + "id": 608, "trigger": "j.qsa" }, { "description": "j - querySelector", - "id": 707, + "id": 609, "trigger": "j.qs" }, { "description": "j - removeAttribute", - "id": 708, + "id": 610, "trigger": "j.rattr" }, { "description": "j - removeChild", - "id": 709, + "id": 611, "trigger": "j.rc" }, { "description": "j - setAttribute", - "id": 710, + "id": 612, "trigger": "j.sattr" }, { "description": "j - textContent", - "id": 711, + "id": 613, "trigger": "j.tc" }, { "description": "j - Anonymous Function", - "id": 712, + "id": 614, "trigger": "j.afn" }, { "description": "j - Function apply", - "id": 713, + "id": 615, "trigger": "j.apply" }, { "description": "j - Function call", - "id": 714, + "id": 616, "trigger": "j.call" }, { "description": "j - Immediately-invoked function expression", - "id": 715, + "id": 617, "trigger": "j.iife" }, { "description": "j - Prototype", - "id": 716, + "id": 618, "trigger": "j.prot" }, { "description": "j - Function", - "id": 717, + "id": 619, "trigger": "j.fn" }, { "description": "j - JSON.parse", - "id": 718, + "id": 620, "trigger": "j.jsonp" }, { "description": "j - JSON.stringify", - "id": 719, + "id": 621, "trigger": "j.jsons" }, { "description": "j - do while", - "id": 720, + "id": 622, "trigger": "j.dowhile" }, { "description": "j - forEach", - "id": 721, + "id": 623, "trigger": "j.fore" }, { "description": "j - for in", - "id": 722, + "id": 624, "trigger": "j.fori" }, { "description": "j - for", - "id": 723, + "id": 625, "trigger": "j.for" }, { "description": "j - while", - "id": 724, + "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": 725, + "id": 629, "trigger": "j.sinterval" }, { "description": "j - setTimeout", - "id": 726, + "id": 630, "trigger": "j.stimeout" }, { "description": "r - Brazilian CNPJ", - "id": 727, + "id": 631, "trigger": "r.bcnpj" }, { "description": "r - Brazilian CPF/CNPJ", - "id": 728, + "id": 632, "trigger": "r.bcpfcnpj" }, { "description": "r - Brazilian CPF", - "id": 729, + "id": 633, "trigger": "r.bcpf" }, { "description": "r - Brazilian Phone", - "id": 730, + "id": 634, "trigger": "r.bphone" }, { "description": "r - E-mail", - "id": 731, + "id": 635, "trigger": "r.email" }, { "description": "sm - Action", - "id": 732, + "id": 636, "trigger": "sm.action" }, { "description": "sm - Organization", - "id": 733, + "id": 637, "trigger": "sm.org" }, { "description": "jsonld - Logotype", - "id": 734, + "id": 638, "trigger": "z.jsonld" }, { "description": "microdata - Organization", - "id": 735, + "id": 639, "trigger": "z.microdata" }, { "description": "microdata - Article", - "id": 736, + "id": 640, "trigger": "z.microdata" }, { "description": "microdata - Book", - "id": 737, + "id": 641, "trigger": "z.microdata" }, { "description": "microdata - Game", - "id": 738, + "id": 642, "trigger": "z.microdata" }, { "description": "microdata - WebPage", - "id": 739, + "id": 643, "trigger": "z.microdata" }, { "description": "rdfa - Breadcrumb", - "id": 740, + "id": 644, "trigger": "z.rdfa" } ] \ No newline at end of file From 5d310a0edda60577f4d294d8202bafed1a617e1d Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Mon, 1 Feb 2016 16:46:36 -0200 Subject: [PATCH 30/70] add: react propTypes snippets --- README.md | 2 +- .../libraries/react/spec/prop-types/README.md | 91 +++++++++++++++++++ .../react-prop-types-any.sublime-snippet | 9 ++ .../react-prop-types-array-of.sublime-snippet | 10 ++ .../react-prop-types-array.sublime-snippet | 10 ++ .../react-prop-types-bool.sublime-snippet | 10 ++ .../react-prop-types-element.sublime-snippet | 10 ++ .../react-prop-types-func.sublime-snippet | 10 ++ ...act-prop-types-instance-of.sublime-snippet | 10 ++ .../react-prop-types-node.sublime-snippet | 10 ++ .../react-prop-types-number.sublime-snippet | 10 ++ ...react-prop-types-object-of.sublime-snippet | 10 ++ .../react-prop-types-object.sublime-snippet | 10 ++ ...act-prop-types-one-of-type.sublime-snippet | 17 ++++ .../react-prop-types-one-of.sublime-snippet | 10 ++ .../react-prop-types-shape.sublime-snippet | 22 +++++ .../react-prop-types-string.sublime-snippet | 10 ++ 17 files changed, 260 insertions(+), 1 deletion(-) create mode 100644 snippets/js/libraries/react/spec/prop-types/README.md create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-any.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-array-of.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-array.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-bool.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-element.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-func.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-instance-of.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-node.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-number.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-object-of.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-object.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of-type.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-shape.sublime-snippet create mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-string.sublime-snippet diff --git a/README.md b/README.md index 8328aa2..7602387 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![issues](https://img.shields.io/github/issues/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/brazilian-dev/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/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/brazilian-dev/sublime-front-end-snippets/releases) -[![licence mit](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/LICENSE.md) +[![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) diff --git a/snippets/js/libraries/react/spec/prop-types/README.md b/snippets/js/libraries/react/spec/prop-types/README.md new file mode 100644 index 0000000..b38482c --- /dev/null +++ b/snippets/js/libraries/react/spec/prop-types/README.md @@ -0,0 +1,91 @@ +## ReactJS Snippets + +### [jr.ptany] PropTypes.any + +```javascript + +``` + +### [jr.ptarrayof] PropTypes.arrayOf + +```javascript + +``` + +### [jr.ptarray] PropTypes.array + +```javascript + +``` + +### [jr.ptbool] PropTypes.bool + +```javascript + +``` + +### [jr.ptelement] PropTypes.element + +```javascript + +``` + +### [jr.ptfunc] PropTypes.func + +```javascript + +``` + +### [jr.ptiof] PropTypes.instanceOf + +```javascript + +``` + +### [jr.ptnode] PropTypes.node + +```javascript + +``` + +### [jr.ptnumber] PropTypes.number + +```javascript + +``` + +### [jr.ptobjectof] PropTypes.objectOf + +```javascript + +``` + +### [jr.ptobject] PropTypes.object + +```javascript + +``` + +### [jr.ptootype] PropTypes.oneOfType + +```javascript + +``` + +### [jr.ptoneof] PropTypes.oneOf + +```javascript + +``` + +### [jr.ptshape] PropTypes.shape + +```javascript + +``` + +### [jr.ptstring] PropTypes.string + +```javascript + +``` diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-any.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-any.sublime-snippet new file mode 100644 index 0000000..71feb57 --- /dev/null +++ b/snippets/js/libraries/react/spec/prop-types/react-prop-types-any.sublime-snippet @@ -0,0 +1,9 @@ + + + jr.ptany + jr - PropTypes.any + diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-array-of.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-array-of.sublime-snippet new file mode 100644 index 0000000..3d48c9b --- /dev/null +++ b/snippets/js/libraries/react/spec/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/spec/prop-types/react-prop-types-array.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-array.sublime-snippet new file mode 100644 index 0000000..eba8634 --- /dev/null +++ b/snippets/js/libraries/react/spec/prop-types/react-prop-types-array.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptarray + jr - PropTypes.array + diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-bool.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-bool.sublime-snippet new file mode 100644 index 0000000..2161b53 --- /dev/null +++ b/snippets/js/libraries/react/spec/prop-types/react-prop-types-bool.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptbool + jr - PropTypes.bool + diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-element.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-element.sublime-snippet new file mode 100644 index 0000000..f676eff --- /dev/null +++ b/snippets/js/libraries/react/spec/prop-types/react-prop-types-element.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptelement + jr - PropTypes.element + diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-func.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-func.sublime-snippet new file mode 100644 index 0000000..525de6e --- /dev/null +++ b/snippets/js/libraries/react/spec/prop-types/react-prop-types-func.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptfunc + jr - PropTypes.func + diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-instance-of.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-instance-of.sublime-snippet new file mode 100644 index 0000000..0b17b35 --- /dev/null +++ b/snippets/js/libraries/react/spec/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/spec/prop-types/react-prop-types-node.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-node.sublime-snippet new file mode 100644 index 0000000..7b37b2f --- /dev/null +++ b/snippets/js/libraries/react/spec/prop-types/react-prop-types-node.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptnode + jr - PropTypes.node + diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-number.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-number.sublime-snippet new file mode 100644 index 0000000..c33a687 --- /dev/null +++ b/snippets/js/libraries/react/spec/prop-types/react-prop-types-number.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptnumber + jr - PropTypes.number + diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-object-of.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-object-of.sublime-snippet new file mode 100644 index 0000000..8b485f2 --- /dev/null +++ b/snippets/js/libraries/react/spec/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/spec/prop-types/react-prop-types-object.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-object.sublime-snippet new file mode 100644 index 0000000..88b9550 --- /dev/null +++ b/snippets/js/libraries/react/spec/prop-types/react-prop-types-object.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptobject + jr - PropTypes.object + diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of-type.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of-type.sublime-snippet new file mode 100644 index 0000000..4f69317 --- /dev/null +++ b/snippets/js/libraries/react/spec/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/spec/prop-types/react-prop-types-one-of.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of.sublime-snippet new file mode 100644 index 0000000..849a76b --- /dev/null +++ b/snippets/js/libraries/react/spec/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/spec/prop-types/react-prop-types-shape.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-shape.sublime-snippet new file mode 100644 index 0000000..f0bac2c --- /dev/null +++ b/snippets/js/libraries/react/spec/prop-types/react-prop-types-shape.sublime-snippet @@ -0,0 +1,22 @@ + + + jr.ptshape + jr - PropTypes.shape + diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-string.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-string.sublime-snippet new file mode 100644 index 0000000..45f8454 --- /dev/null +++ b/snippets/js/libraries/react/spec/prop-types/react-prop-types-string.sublime-snippet @@ -0,0 +1,10 @@ + + + jr.ptstring + jr - PropTypes.string + From f1dd8ff0a9b52862086b19ab3e9ceda128536184 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Mon, 1 Feb 2016 17:21:08 -0200 Subject: [PATCH 31/70] del: duplicate files --- .../libraries/react/spec/prop-types/README.md | 91 ------------------- .../react-prop-types-any.sublime-snippet | 9 -- .../react-prop-types-array-of.sublime-snippet | 10 -- .../react-prop-types-array.sublime-snippet | 10 -- .../react-prop-types-bool.sublime-snippet | 10 -- .../react-prop-types-element.sublime-snippet | 10 -- .../react-prop-types-func.sublime-snippet | 10 -- ...act-prop-types-instance-of.sublime-snippet | 10 -- .../react-prop-types-node.sublime-snippet | 10 -- .../react-prop-types-number.sublime-snippet | 10 -- ...react-prop-types-object-of.sublime-snippet | 10 -- .../react-prop-types-object.sublime-snippet | 10 -- ...act-prop-types-one-of-type.sublime-snippet | 17 ---- .../react-prop-types-one-of.sublime-snippet | 10 -- .../react-prop-types-shape.sublime-snippet | 22 ----- .../react-prop-types-string.sublime-snippet | 10 -- 16 files changed, 259 deletions(-) delete mode 100644 snippets/js/libraries/react/spec/prop-types/README.md delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-any.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-array-of.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-array.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-bool.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-element.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-func.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-instance-of.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-node.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-number.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-object-of.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-object.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of-type.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-shape.sublime-snippet delete mode 100644 snippets/js/libraries/react/spec/prop-types/react-prop-types-string.sublime-snippet diff --git a/snippets/js/libraries/react/spec/prop-types/README.md b/snippets/js/libraries/react/spec/prop-types/README.md deleted file mode 100644 index b38482c..0000000 --- a/snippets/js/libraries/react/spec/prop-types/README.md +++ /dev/null @@ -1,91 +0,0 @@ -## ReactJS Snippets - -### [jr.ptany] PropTypes.any - -```javascript - -``` - -### [jr.ptarrayof] PropTypes.arrayOf - -```javascript - -``` - -### [jr.ptarray] PropTypes.array - -```javascript - -``` - -### [jr.ptbool] PropTypes.bool - -```javascript - -``` - -### [jr.ptelement] PropTypes.element - -```javascript - -``` - -### [jr.ptfunc] PropTypes.func - -```javascript - -``` - -### [jr.ptiof] PropTypes.instanceOf - -```javascript - -``` - -### [jr.ptnode] PropTypes.node - -```javascript - -``` - -### [jr.ptnumber] PropTypes.number - -```javascript - -``` - -### [jr.ptobjectof] PropTypes.objectOf - -```javascript - -``` - -### [jr.ptobject] PropTypes.object - -```javascript - -``` - -### [jr.ptootype] PropTypes.oneOfType - -```javascript - -``` - -### [jr.ptoneof] PropTypes.oneOf - -```javascript - -``` - -### [jr.ptshape] PropTypes.shape - -```javascript - -``` - -### [jr.ptstring] PropTypes.string - -```javascript - -``` diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-any.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-any.sublime-snippet deleted file mode 100644 index 71feb57..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-any.sublime-snippet +++ /dev/null @@ -1,9 +0,0 @@ - - - jr.ptany - jr - PropTypes.any - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-array-of.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-array-of.sublime-snippet deleted file mode 100644 index 3d48c9b..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-array-of.sublime-snippet +++ /dev/null @@ -1,10 +0,0 @@ - - - jr.ptarrayof - jr - PropTypes.arrayOf - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-array.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-array.sublime-snippet deleted file mode 100644 index eba8634..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-array.sublime-snippet +++ /dev/null @@ -1,10 +0,0 @@ - - - jr.ptarray - jr - PropTypes.array - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-bool.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-bool.sublime-snippet deleted file mode 100644 index 2161b53..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-bool.sublime-snippet +++ /dev/null @@ -1,10 +0,0 @@ - - - jr.ptbool - jr - PropTypes.bool - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-element.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-element.sublime-snippet deleted file mode 100644 index f676eff..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-element.sublime-snippet +++ /dev/null @@ -1,10 +0,0 @@ - - - jr.ptelement - jr - PropTypes.element - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-func.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-func.sublime-snippet deleted file mode 100644 index 525de6e..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-func.sublime-snippet +++ /dev/null @@ -1,10 +0,0 @@ - - - jr.ptfunc - jr - PropTypes.func - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-instance-of.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-instance-of.sublime-snippet deleted file mode 100644 index 0b17b35..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-instance-of.sublime-snippet +++ /dev/null @@ -1,10 +0,0 @@ - - - jr.ptiof - jr - PropTypes.instanceOf - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-node.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-node.sublime-snippet deleted file mode 100644 index 7b37b2f..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-node.sublime-snippet +++ /dev/null @@ -1,10 +0,0 @@ - - - jr.ptnode - jr - PropTypes.node - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-number.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-number.sublime-snippet deleted file mode 100644 index c33a687..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-number.sublime-snippet +++ /dev/null @@ -1,10 +0,0 @@ - - - jr.ptnumber - jr - PropTypes.number - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-object-of.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-object-of.sublime-snippet deleted file mode 100644 index 8b485f2..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-object-of.sublime-snippet +++ /dev/null @@ -1,10 +0,0 @@ - - - jr.ptobjectof - jr - PropTypes.objectOf - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-object.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-object.sublime-snippet deleted file mode 100644 index 88b9550..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-object.sublime-snippet +++ /dev/null @@ -1,10 +0,0 @@ - - - jr.ptobject - jr - PropTypes.object - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of-type.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of-type.sublime-snippet deleted file mode 100644 index 4f69317..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of-type.sublime-snippet +++ /dev/null @@ -1,17 +0,0 @@ - - - jr.ptootype - jr - PropTypes.oneOfType - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of.sublime-snippet deleted file mode 100644 index 849a76b..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-one-of.sublime-snippet +++ /dev/null @@ -1,10 +0,0 @@ - - - jr.ptoneof - jr - PropTypes.oneOf - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-shape.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-shape.sublime-snippet deleted file mode 100644 index f0bac2c..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-shape.sublime-snippet +++ /dev/null @@ -1,22 +0,0 @@ - - - jr.ptshape - jr - PropTypes.shape - diff --git a/snippets/js/libraries/react/spec/prop-types/react-prop-types-string.sublime-snippet b/snippets/js/libraries/react/spec/prop-types/react-prop-types-string.sublime-snippet deleted file mode 100644 index 45f8454..0000000 --- a/snippets/js/libraries/react/spec/prop-types/react-prop-types-string.sublime-snippet +++ /dev/null @@ -1,10 +0,0 @@ - - - jr.ptstring - jr - PropTypes.string - From e685566c89315b8930c2bb98cc086babc7af03a7 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Mon, 1 Feb 2016 17:51:32 -0200 Subject: [PATCH 32/70] update: build --- .travis.yml | 4 +++- tests/test.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 81fc333..0108cc7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,5 +2,7 @@ language: python python: - "3.3" -#run tests +# command to install dependencies +#install: "pip install -r requirements.txt" +# command to run tests script: python -m unittest diff --git a/tests/test.py b/tests/test.py index 572201c..9168da9 100644 --- a/tests/test.py +++ b/tests/test.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import sys -sys.path.append('../source/') +sys.path.append('source/') from json_generator import get_json from duplicates import list_duplicates import json From e02c521076627bbb8a8d0ea765f916aaa26c681a Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Mon, 1 Feb 2016 17:56:45 -0200 Subject: [PATCH 33/70] fix: invalid syntax --- source/json_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/json_generator.py b/source/json_generator.py index c9cafa8..bbee81f 100644 --- a/source/json_generator.py +++ b/source/json_generator.py @@ -11,7 +11,7 @@ def write_json(data, filename): fd.write(jsondata) fd.close() except: - print 'ERROR writing', filename + print "ERROR writing", filename pass def get_dir(path, ext): From c73324d3268cfdd11ff9b0d327a5be68b0b03ad1 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Mon, 1 Feb 2016 18:02:30 -0200 Subject: [PATCH 34/70] fix: print function --- source/json_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/json_generator.py b/source/json_generator.py index bbee81f..0589d30 100644 --- a/source/json_generator.py +++ b/source/json_generator.py @@ -11,7 +11,7 @@ def write_json(data, filename): fd.write(jsondata) fd.close() except: - print "ERROR writing", filename + print "ERROR writing %s"%filename pass def get_dir(path, ext): From fdb19853ae709bbd5dfa0d41d09cf74555871ef8 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Mon, 1 Feb 2016 18:05:26 -0200 Subject: [PATCH 35/70] fix: test line --- source/json_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/json_generator.py b/source/json_generator.py index 0589d30..f67ec9c 100644 --- a/source/json_generator.py +++ b/source/json_generator.py @@ -11,7 +11,7 @@ def write_json(data, filename): fd.write(jsondata) fd.close() except: - print "ERROR writing %s"%filename + #print "ERROR writing %s"%filename pass def get_dir(path, ext): From a9a5123f2ed9b42f9382a62206ca5aef3044e46e Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Mon, 1 Feb 2016 18:34:59 -0200 Subject: [PATCH 36/70] update: failure test --- snippets/regex/regex-brazilian-cnpj.sublime-snippet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/regex/regex-brazilian-cnpj.sublime-snippet b/snippets/regex/regex-brazilian-cnpj.sublime-snippet index 0272313..d661b56 100644 --- a/snippets/regex/regex-brazilian-cnpj.sublime-snippet +++ b/snippets/regex/regex-brazilian-cnpj.sublime-snippet @@ -2,6 +2,6 @@ - r.bcnpj + r.bcpfcnpj r - Brazilian CNPJ From a9ae4cf77349e8d3b0afa6fc7d6af4be3ee17c76 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Mon, 1 Feb 2016 18:41:09 -0200 Subject: [PATCH 37/70] update: snippets json --- snippets.json | 4 ++-- snippets/regex/regex-brazilian-cnpj.sublime-snippet | 2 +- tests/test.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/snippets.json b/snippets.json index 0d2dd2a..72efb64 100644 --- a/snippets.json +++ b/snippets.json @@ -3152,7 +3152,7 @@ { "description": "r - Brazilian CNPJ", "id": 631, - "trigger": "r.bcnpj" + "trigger": "r.bcpfcnpj" }, { "description": "r - Brazilian CPF/CNPJ", @@ -3162,7 +3162,7 @@ { "description": "r - Brazilian CPF", "id": 633, - "trigger": "r.bcpf" + "trigger": "r.bcpfcnpj" }, { "description": "r - Brazilian Phone", diff --git a/snippets/regex/regex-brazilian-cnpj.sublime-snippet b/snippets/regex/regex-brazilian-cnpj.sublime-snippet index d661b56..0272313 100644 --- a/snippets/regex/regex-brazilian-cnpj.sublime-snippet +++ b/snippets/regex/regex-brazilian-cnpj.sublime-snippet @@ -2,6 +2,6 @@ - r.bcpfcnpj + r.bcnpj r - Brazilian CNPJ diff --git a/tests/test.py b/tests/test.py index 9168da9..572201c 100644 --- a/tests/test.py +++ b/tests/test.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import sys -sys.path.append('source/') +sys.path.append('../source/') from json_generator import get_json from duplicates import list_duplicates import json From 55750f3f6c2727a9c3e1b185e09f94817eea39be Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 2 Feb 2016 03:55:53 -0200 Subject: [PATCH 38/70] fix: test command --- .travis.yml | 2 +- tests/test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0108cc7..ea12960 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,4 @@ python: # command to install dependencies #install: "pip install -r requirements.txt" # command to run tests -script: python -m unittest +script: python tests\test.py diff --git a/tests/test.py b/tests/test.py index 572201c..9168da9 100644 --- a/tests/test.py +++ b/tests/test.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import sys -sys.path.append('../source/') +sys.path.append('source/') from json_generator import get_json from duplicates import list_duplicates import json From 35115f75b8d488cef8cbee528c2b769e9d64ff7b Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 2 Feb 2016 03:57:36 -0200 Subject: [PATCH 39/70] fix: invalid syntax --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ea12960..221b96f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,4 @@ python: # command to install dependencies #install: "pip install -r requirements.txt" # command to run tests -script: python tests\test.py +script: python tests/test.py From e649a05d3ce4e6ad51c5e363562f7b3981b83045 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 2 Feb 2016 04:00:04 -0200 Subject: [PATCH 40/70] update: failure test 2 --- snippets/regex/regex-brazilian-cnpj.sublime-snippet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/regex/regex-brazilian-cnpj.sublime-snippet b/snippets/regex/regex-brazilian-cnpj.sublime-snippet index 0272313..d661b56 100644 --- a/snippets/regex/regex-brazilian-cnpj.sublime-snippet +++ b/snippets/regex/regex-brazilian-cnpj.sublime-snippet @@ -2,6 +2,6 @@ - r.bcnpj + r.bcpfcnpj r - Brazilian CNPJ From dfaa4d903a7cbf1e6d4ba49ebbe368a95fafb1b3 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 2 Feb 2016 04:22:58 -0200 Subject: [PATCH 41/70] update: failure test 3 --- snippets.json | 2 +- source/__init__.py | 0 source/__init__.pyc | Bin 0 -> 114 bytes source/json_generator.py | 7 +++---- tests/test.py | 11 ++++++----- 5 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 source/__init__.py create mode 100644 source/__init__.pyc diff --git a/snippets.json b/snippets.json index 72efb64..a103015 100644 --- a/snippets.json +++ b/snippets.json @@ -3162,7 +3162,7 @@ { "description": "r - Brazilian CPF", "id": 633, - "trigger": "r.bcpfcnpj" + "trigger": "r.bcpf" }, { "description": "r - Brazilian Phone", diff --git a/source/__init__.py b/source/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/source/__init__.pyc b/source/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5203163fd858a4de4d4b6ba024dede8995052265 GIT binary patch literal 114 zcmZSn%*(Y@Vp&)+0~9aYnUievQjVv6%i li;`1g;^Q;(GE3s)^$IFWIDqmtx%nxjIjMFaQ;LC@0RZuf6sZ6J literal 0 HcmV?d00001 diff --git a/source/json_generator.py b/source/json_generator.py index f67ec9c..8cba047 100644 --- a/source/json_generator.py +++ b/source/json_generator.py @@ -21,9 +21,9 @@ def get_dir(path, ext): matches.append(os.path.join(root, filename)) return matches -def get_json(): +def get_json(path): result = [] - for count, file in enumerate(get_dir('../snippets/', '*.sublime-snippet'), start=1): + for count, file in enumerate(get_dir( path, '*.sublime-snippet'), start=1): line = open(file) content = line.read() trigger = content.split('')[1].split('')[0] @@ -34,5 +34,4 @@ def get_json(): return result -write_json(get_json(), "../snippets.json") - +write_json(get_json('../snippets/'), "../snippets.json") diff --git a/tests/test.py b/tests/test.py index 9168da9..248182d 100644 --- a/tests/test.py +++ b/tests/test.py @@ -1,9 +1,10 @@ #!/usr/bin/env python3 import sys -sys.path.append('source/') -from json_generator import get_json -from duplicates import list_duplicates +import os.path +sys.path.append(os.path.join(os.path.dirname(__file__), '..')) +from source.json_generator import get_json +from source.duplicates import list_duplicates import json import re import unittest @@ -11,9 +12,9 @@ class TestDuplicatesMethods(unittest.TestCase): def test_duplicates(self): - json = get_json() + json = get_json('snippets/') triggers = [] - + print json for snippet in json: trigger = snippet['trigger'] if re.search(r'z.', trigger) is None: From 97785b32ea1255a5d38dab945359432fc8961d96 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 2 Feb 2016 04:24:33 -0200 Subject: [PATCH 42/70] fix: invalid syntax --- tests/test.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test.py b/tests/test.py index 248182d..0da10e4 100644 --- a/tests/test.py +++ b/tests/test.py @@ -14,7 +14,6 @@ class TestDuplicatesMethods(unittest.TestCase): def test_duplicates(self): json = get_json('snippets/') triggers = [] - print json for snippet in json: trigger = snippet['trigger'] if re.search(r'z.', trigger) is None: From a5a21b4136e773fb2bee615cf5b7963e42e5c31f Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 2 Feb 2016 04:26:46 -0200 Subject: [PATCH 43/70] fix: write function --- source/json_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/json_generator.py b/source/json_generator.py index 8cba047..c3aa123 100644 --- a/source/json_generator.py +++ b/source/json_generator.py @@ -34,4 +34,4 @@ def get_json(path): return result -write_json(get_json('../snippets/'), "../snippets.json") +# write_json(get_json('../snippets/'), "../snippets.json") From 6e206864cf31264acae3dc897ca4e0b93b9a7f6d Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 2 Feb 2016 04:29:50 -0200 Subject: [PATCH 44/70] update: gitignore --- .gitignore | 3 +-- source/__init__.py | 0 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 source/__init__.py diff --git a/.gitignore b/.gitignore index 86989b8..0d20b64 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -source/json_generator.pyc -source/duplicates.pyc +*.pyc diff --git a/source/__init__.py b/source/__init__.py deleted file mode 100644 index e69de29..0000000 From 9c44e0b62584d5404fb4b3775d2e0dc6df0ffddb Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 2 Feb 2016 04:33:02 -0200 Subject: [PATCH 45/70] fix: magic number --- tests/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test.py b/tests/test.py index 0da10e4..8a39694 100644 --- a/tests/test.py +++ b/tests/test.py @@ -2,9 +2,9 @@ import sys import os.path -sys.path.append(os.path.join(os.path.dirname(__file__), '..')) -from source.json_generator import get_json -from source.duplicates import list_duplicates +sys.path.append(os.path.join(os.path.dirname(__file__), '../source')) +from json_generator import get_json +from duplicates import list_duplicates import json import re import unittest From e98279755e3e2544d04fd5897d6fd728d65d3d20 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 2 Feb 2016 04:43:20 -0200 Subject: [PATCH 46/70] fix: sudo permission --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 221b96f..6b29619 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,5 @@ +sudo: true + language: python python: - "3.3" From 3518670e5b7eefe1af1c5f6fd7b431fa60a31b89 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 2 Feb 2016 04:47:48 -0200 Subject: [PATCH 47/70] fix: test path --- tests/test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test.py b/tests/test.py index 8a39694..1841095 100644 --- a/tests/test.py +++ b/tests/test.py @@ -1,8 +1,7 @@ #!/usr/bin/env python3 import sys -import os.path -sys.path.append(os.path.join(os.path.dirname(__file__), '../source')) +sys.path.append('source/') from json_generator import get_json from duplicates import list_duplicates import json From 80e052d6f80566a06df9833a28402a07388a0ebc Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 2 Feb 2016 04:55:58 -0200 Subject: [PATCH 48/70] add: requirements text --- requirements.txt | 0 source/json_generator.py | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/source/json_generator.py b/source/json_generator.py index c3aa123..c6c1876 100644 --- a/source/json_generator.py +++ b/source/json_generator.py @@ -24,8 +24,9 @@ def get_dir(path, ext): def get_json(path): result = [] for count, file in enumerate(get_dir( path, '*.sublime-snippet'), start=1): - line = open(file) - content = line.read() + with open(file) as line: + content = line.read() + trigger = content.split('')[1].split('')[0] description = content.split('')[1].split('')[0] From ea9d7fd15b98ab3032d96f6546a7b9915dbfdf1f Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 2 Feb 2016 04:58:14 -0200 Subject: [PATCH 49/70] fix: success test --- snippets/regex/regex-brazilian-cnpj.sublime-snippet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/regex/regex-brazilian-cnpj.sublime-snippet b/snippets/regex/regex-brazilian-cnpj.sublime-snippet index d661b56..0272313 100644 --- a/snippets/regex/regex-brazilian-cnpj.sublime-snippet +++ b/snippets/regex/regex-brazilian-cnpj.sublime-snippet @@ -2,6 +2,6 @@ - r.bcpfcnpj + r.bcnpj r - Brazilian CNPJ From b7bc0efda0db7548e589ac3a3688afac93110b9f Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Sat, 6 Feb 2016 21:54:11 -0200 Subject: [PATCH 50/70] update: react documentation --- .../js/libraries/react/lifecycle/README.md | 30 ++++-- .../js/libraries/react/prop-types/README.md | 93 ++++++++++++++++--- snippets/js/libraries/react/spec/README.md | 26 ++++-- 3 files changed, 120 insertions(+), 29 deletions(-) diff --git a/snippets/js/libraries/react/lifecycle/README.md b/snippets/js/libraries/react/lifecycle/README.md index 33b5001..8c36f74 100644 --- a/snippets/js/libraries/react/lifecycle/README.md +++ b/snippets/js/libraries/react/lifecycle/README.md @@ -3,41 +3,57 @@ ### [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/prop-types/README.md b/snippets/js/libraries/react/prop-types/README.md index b38482c..4c4e719 100644 --- a/snippets/js/libraries/react/prop-types/README.md +++ b/snippets/js/libraries/react/prop-types/README.md @@ -3,89 +3,152 @@ ### [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/spec/README.md b/snippets/js/libraries/react/spec/README.md index 0f29d28..802f6a6 100644 --- a/snippets/js/libraries/react/spec/README.md +++ b/snippets/js/libraries/react/spec/README.md @@ -3,41 +3,53 @@ ### [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'; + } +} ``` From 7105b229974bc05e4bc1a6a09dacb16ea95b99ea Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Sat, 6 Feb 2016 23:14:05 -0200 Subject: [PATCH 51/70] update: completing the design patterns --- .../js/patterns/design-patterns/README.md | 110 +++++++++++++++++- ...js-design-patterns-factory.sublime-snippet | 23 +++- ...-design-patterns-flyweight.sublime-snippet | 13 ++- ...s-design-patterns-mediator.sublime-snippet | 26 ++++- .../js-design-patterns-mixin.sublime-snippet | 13 ++- ...s-design-patterns-observer.sublime-snippet | 41 ++++++- 6 files changed, 219 insertions(+), 7 deletions(-) diff --git a/snippets/js/patterns/design-patterns/README.md b/snippets/js/patterns/design-patterns/README.md index e76acdd..0e8df75 100644 --- a/snippets/js/patterns/design-patterns/README.md +++ b/snippets/js/patterns/design-patterns/README.md @@ -106,25 +106,92 @@ var ${1:MyModule} = ( function( window, undefined ) { ### [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 @@ -144,7 +211,46 @@ var ${1:moduleName} = (function() { ### [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 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 index 57ff6b7..7039336 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-factory.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-factory.sublime-snippet @@ -1,6 +1,27 @@ 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 index a17880e..e34d30e 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-flyweight.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-flyweight.sublime-snippet @@ -1,6 +1,17 @@ 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 index b3f71b8..d334868 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-mediator.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-mediator.sublime-snippet @@ -1,6 +1,30 @@ 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 index a671ed0..1c78143 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-mixin.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-mixin.sublime-snippet @@ -1,6 +1,17 @@ jdp.mixin jdp - Mixin 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 index c08ea5c..820c9b2 100644 --- a/snippets/js/patterns/design-patterns/js-design-patterns-observer.sublime-snippet +++ b/snippets/js/patterns/design-patterns/js-design-patterns-observer.sublime-snippet @@ -1,6 +1,45 @@ jdp.observer jdp - Observer From 52a6581116fccbd5611dfb4ff1aaaf8203d34c94 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Sun, 7 Feb 2016 15:07:16 -0200 Subject: [PATCH 52/70] add: json ld and rdfa snippets --- snippets/schema/README.md | 2 -- snippets/schema/json-ld/README.md | 11 +++++++-- .../json-ld/json-ld-logotype.sublime-snippet | 14 +++++++++++ snippets/schema/rdfa/README.md | 22 ++++++++++++++---- .../rdfa/redfa-breadcrumb.sublime-snippet | 23 +++++++++++++++++++ 5 files changed, 64 insertions(+), 8 deletions(-) create mode 100644 snippets/schema/json-ld/json-ld-logotype.sublime-snippet create mode 100644 snippets/schema/rdfa/redfa-breadcrumb.sublime-snippet diff --git a/snippets/schema/README.md b/snippets/schema/README.md index 920bf9f..7b47ff6 100644 --- a/snippets/schema/README.md +++ b/snippets/schema/README.md @@ -2,6 +2,4 @@ - [JSON-LD](json-ld/) - [Microdata](microdata/) - - Action - - Organization - [RDFa](rdfa/) diff --git a/snippets/schema/json-ld/README.md b/snippets/schema/json-ld/README.md index f493592..bdeea6f 100644 --- a/snippets/schema/json-ld/README.md +++ b/snippets/schema/json-ld/README.md @@ -4,8 +4,15 @@ ## Organization -### [sj.org] 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/rdfa/README.md b/snippets/schema/rdfa/README.md index f369f73..222ce11 100644 --- a/snippets/schema/rdfa/README.md +++ b/snippets/schema/rdfa/README.md @@ -2,10 +2,24 @@ ## Prefix `sr.*` -## Organization - -### [sr.org] Organization +### [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 + From 95c5211d8e791e2bb8a5376e3d8baa7d4b2bbb9e Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 10 Feb 2016 06:34:07 -0200 Subject: [PATCH 53/70] update: readme with instructions on autocomplete --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7602387..ff5ff39 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ You can manually download the package and place it within your `Packages` direct You can see all installed snippets in `Tools > Snippets...`, in the Sublime Text. +[Tested on windows] When the "."(dot) is used, the autocomplete disappears.. To resolve this problem, just put on in your user 'Preferences> Settings - User`, the property `word_separators` with the value without the "."(dot). You can see an example [here](Preferences.sublime-settings). + ## Snippets and prefixes/keys - [HTML - h.*](snippets/html/) From 6fb5275eb7318f8b64972ff1be558ba2bcd83847 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 10 Feb 2016 06:51:35 -0200 Subject: [PATCH 54/70] fix: adjusting text --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ff5ff39..3939556 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ You can manually download the package and place it within your `Packages` direct You can see all installed snippets in `Tools > Snippets...`, in the Sublime Text. -[Tested on windows] When the "."(dot) is used, the autocomplete disappears.. To resolve this problem, just put on in your user 'Preferences> Settings - User`, the property `word_separators` with the value without the "."(dot). You can see an example [here](Preferences.sublime-settings). +[Tested on windows] When the "."(dot) is used, the autocomplete disappears.. To resolve this problem, just put on in your user `Preferences > Settings - User`, and put the property `word_separators` with the value without the "."(dot). You can see an example [here](Preferences.sublime-settings). ## Snippets and prefixes/keys From 2033b969548ca4158b51998e05ca547fe454ac2c Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 10 Feb 2016 06:54:38 -0200 Subject: [PATCH 55/70] fix: text with error of syntax --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3939556..4c7bc85 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ You can manually download the package and place it within your `Packages` direct You can see all installed snippets in `Tools > Snippets...`, in the Sublime Text. -[Tested on windows] When the "."(dot) is used, the autocomplete disappears.. To resolve this problem, just put on in your user `Preferences > Settings - User`, and put the property `word_separators` with the value without the "."(dot). You can see an example [here](Preferences.sublime-settings). +[Tested on windows] When the "."(dot) is used, the autocomplete disappears.. To resolve this problem, just put on in your user `Preferences > Settings - User`, the property `word_separators` with the value without the "."(dot). You can see an example [here](Preferences.sublime-settings). ## Snippets and prefixes/keys From cdd328fa637d47c12faeba49e8ee8788212bb0b7 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 10 Feb 2016 15:30:21 -0200 Subject: [PATCH 56/70] update: readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c7bc85..ccf581d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ You can manually download the package and place it within your `Packages` direct You can see all installed snippets in `Tools > Snippets...`, in the Sublime Text. -[Tested on windows] When the "."(dot) is used, the autocomplete disappears.. To resolve this problem, just put on in your user `Preferences > Settings - User`, the property `word_separators` with the value without the "."(dot). You can see an example [here](Preferences.sublime-settings). +[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 From ec36813639069a0dfc30a9d6c6c0482d71ae91b9 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Fri, 12 Feb 2016 22:34:43 -0200 Subject: [PATCH 57/70] add: pt_BR translation --- README.md | 4 ++ translations/pt_BR/README.md | 95 ++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 translations/pt_BR/README.md diff --git a/README.md b/README.md index ccf581d..54c11f6 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,10 @@ ![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). diff --git a/translations/pt_BR/README.md b/translations/pt_BR/README.md new file mode 100644 index 0000000..137bd9f --- /dev/null +++ b/translations/pt_BR/README.md @@ -0,0 +1,95 @@ +# Front-end Project Snippets + +[![Travis](https://img.shields.io/travis/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/brazilian-dev/sublime-front-end-snippets) +[![issues](https://img.shields.io/github/issues/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/brazilian-dev/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/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/brazilian-dev/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/brazilian-dev/sublime-front-end-snippets/) + +## 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). + +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. + +[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/) + - [Microdata - hm.*](snippets/html/schema/microdata) + - [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 - hc.*](snippets/comment/html) + - [CSS - cc.*](snippets/comment/css) + - [JavaScript - jc.*](snippets/comment/js) +- [Structure data](snippets/structured-data) (***examples***) + - [Microdata - z.microdata](snippets/structured-data/microdata) + - [JSON-LD - z.jsonld](snippets/structured-data/json-ld) + - [RDFa - z.rdfa](snippets/structured-data/rdfa) + +## References + +* [@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) + +## Contributing + +- Fork it! +- Create your feature branch: `git checkout -b my-new-feature` +- Commit your changes: `git commit -m 'Add some feature'` +- Push to the branch: `git push origin my-new-feature` +- Submit a pull request + +## Log + +Check [Releases](https://github.com/brazilian-dev/sublime-front-end-snippets/releases) for detailed changelog. + +## License + +[MIT license](http://hemersonvianna.mit-license.org/) © Hemerson Vianna From 335cc46e2a0930cf4865628c893883b87b0b27b3 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Sat, 13 Feb 2016 23:21:40 -0200 Subject: [PATCH 58/70] update: pt_BR translation --- translations/pt_BR/README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/translations/pt_BR/README.md b/translations/pt_BR/README.md index 137bd9f..8b799b1 100644 --- a/translations/pt_BR/README.md +++ b/translations/pt_BR/README.md @@ -12,17 +12,17 @@ * [ORIGINAL](https://github.com/brazilian-dev/sublime-front-end-snippets/) -## Install +## Instalação -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). +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). -You can manually download the package and place it within your `Packages` directory. It will work, but it will not be automatically updated. +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. -You can see all installed snippets in `Tools > Snippets...`, in the Sublime Text. +Você pode ver os snippets instalados em `Tools > Snippets...`, no 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). +[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/brazilian-dev/sublime-front-end-snippets/blob/master/Preferences.sublime-settings). -## Snippets and prefixes/keys +## Snippets e prefixos/chaves - [HTML - h.*](snippets/html/) - [Microdata - hm.*](snippets/html/schema/microdata) @@ -59,7 +59,7 @@ You can see all installed snippets in `Tools > Snippets...`, in the Sublime Text - [JSON-LD - z.jsonld](snippets/structured-data/json-ld) - [RDFa - z.rdfa](snippets/structured-data/rdfa) -## References +## 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) @@ -78,18 +78,18 @@ You can see all installed snippets in `Tools > Snippets...`, in the Sublime Text * (ReactJS cheatsheet) [http://reactcheatsheet.com/](http://reactcheatsheet.com/) * (ES6 Features) [https://github.com/lukehoban/es6features#readme](https://github.com/lukehoban/es6features#readme) -## Contributing +## Contribuindo -- Fork it! -- Create your feature branch: `git checkout -b my-new-feature` -- Commit your changes: `git commit -m 'Add some feature'` -- Push to the branch: `git push origin my-new-feature` -- Submit a pull request +- 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 -Check [Releases](https://github.com/brazilian-dev/sublime-front-end-snippets/releases) for detailed changelog. +Verifique os [Releases](https://github.com/brazilian-dev/sublime-front-end-snippets/releases) ver detalhado o log de alterações. -## License +## Licença [MIT license](http://hemersonvianna.mit-license.org/) © Hemerson Vianna From 6bac2ced26ee23bb20142664abfaad500d783da2 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Sat, 13 Feb 2016 23:27:26 -0200 Subject: [PATCH 59/70] update: links pt_BR --- README.md | 2 +- translations/pt_BR/README.md | 70 ++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 54c11f6..a4c13b1 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ## 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 it will not be automatically updated. diff --git a/translations/pt_BR/README.md b/translations/pt_BR/README.md index 8b799b1..cd63fa1 100644 --- a/translations/pt_BR/README.md +++ b/translations/pt_BR/README.md @@ -14,7 +14,7 @@ ## 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). +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. @@ -24,40 +24,40 @@ Você pode ver os snippets instalados em `Tools > Snippets...`, no Sublime Text. ## Snippets e prefixos/chaves -- [HTML - h.*](snippets/html/) - - [Microdata - hm.*](snippets/html/schema/microdata) - - [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 - hc.*](snippets/comment/html) - - [CSS - cc.*](snippets/comment/css) - - [JavaScript - jc.*](snippets/comment/js) -- [Structure data](snippets/structured-data) (***examples***) - - [Microdata - z.microdata](snippets/structured-data/microdata) - - [JSON-LD - z.jsonld](snippets/structured-data/json-ld) - - [RDFa - z.rdfa](snippets/structured-data/rdfa) +- [HTML - h.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/html/) + - [Microdata - hm.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/html/schema/microdata) + - [WAI-ARIA - hw.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/html/wai-aria) +- [CSS - c.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/css/) +- [JavaScript - j.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/vanilla) + - [EcmaScript 2015 - je.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/es6/) + - [Libraries](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/libraries) + - [jQuery - jq.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/libraries/jquery) + - [React - jr.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/libraries/react) + - [Patterns](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/patterns) + - [Design Patterns - jdp.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/patterns/design-patterns) + - [UMD - jumd.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/patterns/umd) + - [Tests](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests) + - [Common - t.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/common) + - [Chai - tc.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/chai) + - [Jasmine - tj.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/jasmine) + - [Mocha - tm.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/mocha) + - [Node - tn.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/node) + - [QUnit - tq.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/qunit) + - [Sinon - ts.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/sinon) +- [Regex](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/regex/) +- [Schema.org](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/schema) + - [JSON-LD - sj.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/schema/json-ld) + - [Microdata - sm.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/schema/microdata) + - [RDFa - sr.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/schema/rdfa) +- [External - e.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/external/) +- [Comment](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/comment/) + - [HTML - hc.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/comment/html) + - [CSS - cc.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/comment/css) + - [JavaScript - jc.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/comment/js) +- [Structure data](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/structured-data) (***examples***) + - [Microdata - z.microdata](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/structured-data/microdata) + - [JSON-LD - z.jsonld](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/structured-data/json-ld) + - [RDFa - z.rdfa](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/structured-data/rdfa) ## Referências From e4a7537c9e052c4dbc21d7fc9d0d9768c0f78517 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 10 Mar 2016 04:30:21 -0300 Subject: [PATCH 60/70] fix: syntax --- Preferences.sublime-settings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Preferences.sublime-settings b/Preferences.sublime-settings index be90725..71ded4e 100644 --- a/Preferences.sublime-settings +++ b/Preferences.sublime-settings @@ -1,3 +1,3 @@ { - "word_separators": "/\\()\"‘-:,;><~!@#$%^&*|+=[]{}`~?" + "word_separators": "/\\()\"'-:,;><~!@#$%^&*|+=[]{}`~?" } From 665279e1bdf906960621f2b30dfa88112e39d825 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Wed, 16 Mar 2016 19:41:16 -0300 Subject: [PATCH 61/70] add: github templates --- .github/ISSUE_TEMPLATE.md | 18 ++++++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 20 ++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md 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} From eec50a139f63abf56535b46987460858a4bf6c0e Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Thu, 22 Feb 2018 14:27:08 -0300 Subject: [PATCH 62/70] feat: update readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a4c13b1..dd9d6a5 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Front-end Project Snippets -[![Travis](https://img.shields.io/travis/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/brazilian-dev/sublime-front-end-snippets) -[![issues](https://img.shields.io/github/issues/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/brazilian-dev/sublime-front-end-snippets/issues) +[![Travis](https://img.shields.io/travis/descco-support/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/descco-support/sublime-front-end-snippets) +[![issues](https://img.shields.io/github/issues/descco-support/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/descco-support/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/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/brazilian-dev/sublime-front-end-snippets/releases) +[![GitHub release](https://img.shields.io/github/release/descco-support/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/descco-support/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) @@ -88,7 +88,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/descco-support/sublime-front-end-snippets/releases) for detailed changelog. ## License From 3172316f3bb03b532ac4529482f3a668aadd5ffd Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 23 Jul 2019 09:21:58 -0300 Subject: [PATCH 63/70] feat: update badges in readme --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dd9d6a5..6e105b8 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,15 @@ # Front-end Project Snippets -[![Travis](https://img.shields.io/travis/descco-support/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/descco-support/sublime-front-end-snippets) -[![issues](https://img.shields.io/github/issues/descco-support/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/descco-support/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/descco-support/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/descco-support/sublime-front-end-snippets/releases) [![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/org-descco/foradabolha.github.io.svg)](https://github.com/org-descco/foradabolha.github.io/issues) +![GitHub package.json version](https://img.shields.io/github/package-json/v/org-descco/foradabolha.github.io.svg) +![GitHub Release Date](https://img.shields.io/github/release-date/org-descco/foradabolha.github.io.svg) +![GitHub top language](https://img.shields.io/github/languages/top/org-descco/foradabolha.github.io.svg) +![GitHub repo size](https://img.shields.io/github/repo-size/org-descco/foradabolha.github.io.svg) +![GitHub All Releases](https://img.shields.io/github/downloads/org-descco/foradabolha.github.io/total.svg) + +[![Travis](https://img.shields.io/travis/org-moon-world/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/org-moon-world/sublime-front-end-snippets)ets/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) ![animation](https://cloud.githubusercontent.com/assets/1963897/12625364/a94decc8-c51a-11e5-8546-ca331af65982.gif) @@ -88,7 +93,7 @@ You can see all installed snippets in `Tools > Snippets...`, in the Sublime Text ## Log -Check [Releases](https://github.com/descco-support/sublime-front-end-snippets/releases) for detailed changelog. +Check [Releases](https://github.com/org-moon-world/sublime-front-end-snippets/releases) for detailed changelog. ## License From 754394f5f3f38b253de25d25bd0a4c342420bc7e Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 23 Jul 2019 09:24:04 -0300 Subject: [PATCH 64/70] fix: update badges in readme --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6e105b8..8a7052d 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ # Front-end Project Snippets [![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/org-descco/foradabolha.github.io.svg)](https://github.com/org-descco/foradabolha.github.io/issues) -![GitHub package.json version](https://img.shields.io/github/package-json/v/org-descco/foradabolha.github.io.svg) -![GitHub Release Date](https://img.shields.io/github/release-date/org-descco/foradabolha.github.io.svg) -![GitHub top language](https://img.shields.io/github/languages/top/org-descco/foradabolha.github.io.svg) -![GitHub repo size](https://img.shields.io/github/repo-size/org-descco/foradabolha.github.io.svg) -![GitHub All Releases](https://img.shields.io/github/downloads/org-descco/foradabolha.github.io/total.svg) - -[![Travis](https://img.shields.io/travis/org-moon-world/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/org-moon-world/sublime-front-end-snippets)ets/issues) +[![GitHub issues](https://img.shields.io/github/issues/org-descco/sublime-front-end-snippets.svg)](https://github.com/org-descco/sublime-front-end-snippets/issues) +![GitHub package.json version](https://img.shields.io/github/package-json/v/org-descco/sublime-front-end-snippets.svg) +![GitHub Release Date](https://img.shields.io/github/release-date/org-descco/sublime-front-end-snippets.svg) +![GitHub top language](https://img.shields.io/github/languages/top/org-descco/sublime-front-end-snippets.svg) +![GitHub repo size](https://img.shields.io/github/repo-size/org-descco/sublime-front-end-snippets.svg) +![GitHub All Releases](https://img.shields.io/github/downloads/org-descco/sublime-front-end-snippets/total.svg) + +[![Travis](https://img.shields.io/travis/org-moon-world/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/org-moon-world/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) From ce9d211707e3a8153bd32f96ad6ed9290c50647b Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 23 Jul 2019 09:26:08 -0300 Subject: [PATCH 65/70] fix: readme --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8a7052d..5102bec 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Front-end Project Snippets [![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/org-descco/sublime-front-end-snippets.svg)](https://github.com/org-descco/sublime-front-end-snippets/issues) -![GitHub package.json version](https://img.shields.io/github/package-json/v/org-descco/sublime-front-end-snippets.svg) -![GitHub Release Date](https://img.shields.io/github/release-date/org-descco/sublime-front-end-snippets.svg) -![GitHub top language](https://img.shields.io/github/languages/top/org-descco/sublime-front-end-snippets.svg) -![GitHub repo size](https://img.shields.io/github/repo-size/org-descco/sublime-front-end-snippets.svg) -![GitHub All Releases](https://img.shields.io/github/downloads/org-descco/sublime-front-end-snippets/total.svg) +[![GitHub issues](https://img.shields.io/github/issues/org-moon-world/sublime-front-end-snippets.svg)](https://github.com/org-moon-world/sublime-front-end-snippets/issues) +![GitHub package.json version](https://img.shields.io/github/package-json/v/org-moon-world/sublime-front-end-snippets.svg) +![GitHub Release Date](https://img.shields.io/github/release-date/org-moon-world/sublime-front-end-snippets.svg) +![GitHub top language](https://img.shields.io/github/languages/top/org-moon-world/sublime-front-end-snippets.svg) +![GitHub repo size](https://img.shields.io/github/repo-size/org-moon-world/sublime-front-end-snippets.svg) +![GitHub All Releases](https://img.shields.io/github/downloads/org-moon-world/sublime-front-end-snippets/total.svg) [![Travis](https://img.shields.io/travis/org-moon-world/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/org-moon-world/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) From 423d6b41afe608207ed062c98f89c59c7a81e897 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 23 Jul 2019 09:27:18 -0300 Subject: [PATCH 66/70] fix: hide badge of package json --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5102bec..430f9af 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![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/org-moon-world/sublime-front-end-snippets.svg)](https://github.com/org-moon-world/sublime-front-end-snippets/issues) -![GitHub package.json version](https://img.shields.io/github/package-json/v/org-moon-world/sublime-front-end-snippets.svg) +# ![GitHub package.json version](https://img.shields.io/github/package-json/v/org-moon-world/sublime-front-end-snippets.svg) ![GitHub Release Date](https://img.shields.io/github/release-date/org-moon-world/sublime-front-end-snippets.svg) ![GitHub top language](https://img.shields.io/github/languages/top/org-moon-world/sublime-front-end-snippets.svg) ![GitHub repo size](https://img.shields.io/github/repo-size/org-moon-world/sublime-front-end-snippets.svg) From fd99e500405e0c207b9308e7f5755038fd2b1bfb Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 23 Jul 2019 09:30:22 -0300 Subject: [PATCH 67/70] fix: add comment --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 430f9af..1f5c1d2 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![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/org-moon-world/sublime-front-end-snippets.svg)](https://github.com/org-moon-world/sublime-front-end-snippets/issues) -# ![GitHub package.json version](https://img.shields.io/github/package-json/v/org-moon-world/sublime-front-end-snippets.svg) + ![GitHub Release Date](https://img.shields.io/github/release-date/org-moon-world/sublime-front-end-snippets.svg) ![GitHub top language](https://img.shields.io/github/languages/top/org-moon-world/sublime-front-end-snippets.svg) ![GitHub repo size](https://img.shields.io/github/repo-size/org-moon-world/sublime-front-end-snippets.svg) From 02768114b2041ece0aa01958f9dcad45dae4bce4 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 23 Jul 2019 09:31:00 -0300 Subject: [PATCH 68/70] fix: readme --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 1f5c1d2..6b99db5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![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/org-moon-world/sublime-front-end-snippets.svg)](https://github.com/org-moon-world/sublime-front-end-snippets/issues) - ![GitHub Release Date](https://img.shields.io/github/release-date/org-moon-world/sublime-front-end-snippets.svg) ![GitHub top language](https://img.shields.io/github/languages/top/org-moon-world/sublime-front-end-snippets.svg) ![GitHub repo size](https://img.shields.io/github/repo-size/org-moon-world/sublime-front-end-snippets.svg) From 67cbb7f22202a06e2c7f6c4ccf288e76287c5ed7 Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Tue, 23 Jul 2019 09:31:47 -0300 Subject: [PATCH 69/70] fix: remove spacing --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 6b99db5..abed309 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,6 @@ ![GitHub top language](https://img.shields.io/github/languages/top/org-moon-world/sublime-front-end-snippets.svg) ![GitHub repo size](https://img.shields.io/github/repo-size/org-moon-world/sublime-front-end-snippets.svg) ![GitHub All Releases](https://img.shields.io/github/downloads/org-moon-world/sublime-front-end-snippets/total.svg) - [![Travis](https://img.shields.io/travis/org-moon-world/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/org-moon-world/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) From 24788dcb18045c37287c4666dcf66102b102843e Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Sat, 11 Jul 2020 00:01:42 -0300 Subject: [PATCH 70/70] feat: update owner --- README.md | 14 +++---- translations/pt_BR/README.md | 80 ++++++++++++++++++------------------ 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index abed309..37d5858 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Front-end Project Snippets [![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/org-moon-world/sublime-front-end-snippets.svg)](https://github.com/org-moon-world/sublime-front-end-snippets/issues) -![GitHub Release Date](https://img.shields.io/github/release-date/org-moon-world/sublime-front-end-snippets.svg) -![GitHub top language](https://img.shields.io/github/languages/top/org-moon-world/sublime-front-end-snippets.svg) -![GitHub repo size](https://img.shields.io/github/repo-size/org-moon-world/sublime-front-end-snippets.svg) -![GitHub All Releases](https://img.shields.io/github/downloads/org-moon-world/sublime-front-end-snippets/total.svg) -[![Travis](https://img.shields.io/travis/org-moon-world/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/org-moon-world/sublime-front-end-snippets) +[![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) @@ -91,7 +91,7 @@ You can see all installed snippets in `Tools > Snippets...`, in the Sublime Text ## Log -Check [Releases](https://github.com/org-moon-world/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/translations/pt_BR/README.md b/translations/pt_BR/README.md index cd63fa1..b4492ee 100644 --- a/translations/pt_BR/README.md +++ b/translations/pt_BR/README.md @@ -1,16 +1,16 @@ # Front-end Project Snippets -[![Travis](https://img.shields.io/travis/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://travis-ci.org/brazilian-dev/sublime-front-end-snippets) -[![issues](https://img.shields.io/github/issues/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/brazilian-dev/sublime-front-end-snippets/issues) +[![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/brazilian-dev/sublime-front-end-snippets.svg?style=flat-square)](https://github.com/brazilian-dev/sublime-front-end-snippets/releases) +[![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/brazilian-dev/sublime-front-end-snippets/) +* [ORIGINAL](https://github.com/w3dotdev/sublime-front-end-snippets/) ## Instalação @@ -20,44 +20,44 @@ Você pode baixar manualmente o pacote e colocá-lo dentro do seu diretório `Pa 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/brazilian-dev/sublime-front-end-snippets/blob/master/Preferences.sublime-settings). +[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/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/html/) - - [Microdata - hm.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/html/schema/microdata) - - [WAI-ARIA - hw.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/html/wai-aria) -- [CSS - c.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/css/) -- [JavaScript - j.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/vanilla) - - [EcmaScript 2015 - je.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/es6/) - - [Libraries](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/libraries) - - [jQuery - jq.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/libraries/jquery) - - [React - jr.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/libraries/react) - - [Patterns](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/patterns) - - [Design Patterns - jdp.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/patterns/design-patterns) - - [UMD - jumd.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/patterns/umd) - - [Tests](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests) - - [Common - t.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/common) - - [Chai - tc.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/chai) - - [Jasmine - tj.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/jasmine) - - [Mocha - tm.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/mocha) - - [Node - tn.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/node) - - [QUnit - tq.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/qunit) - - [Sinon - ts.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/js/tests/sinon) -- [Regex](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/regex/) -- [Schema.org](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/schema) - - [JSON-LD - sj.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/schema/json-ld) - - [Microdata - sm.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/schema/microdata) - - [RDFa - sr.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/schema/rdfa) -- [External - e.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/external/) -- [Comment](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/comment/) - - [HTML - hc.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/comment/html) - - [CSS - cc.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/comment/css) - - [JavaScript - jc.*](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/comment/js) -- [Structure data](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/structured-data) (***examples***) - - [Microdata - z.microdata](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/structured-data/microdata) - - [JSON-LD - z.jsonld](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/structured-data/json-ld) - - [RDFa - z.rdfa](https://github.com/brazilian-dev/sublime-front-end-snippets/blob/master/snippets/structured-data/rdfa) +- [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 @@ -88,7 +88,7 @@ Você pode ver os snippets instalados em `Tools > Snippets...`, no Sublime Text. ## Log -Verifique os [Releases](https://github.com/brazilian-dev/sublime-front-end-snippets/releases) ver detalhado o log de alterações. +Verifique os [Releases](https://github.com/w3dotdev/sublime-front-end-snippets/releases) ver detalhado o log de alterações. ## Licença