From 5d310a0edda60577f4d294d8202bafed1a617e1d Mon Sep 17 00:00:00 2001 From: Hemerson Vianna Date: Mon, 1 Feb 2016 16:46:36 -0200 Subject: [PATCH 01/41] 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 02/41] 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 03/41] 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 04/41] 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 05/41] 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 06/41] 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 07/41] 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 08/41] 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 09/41] 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 10/41] 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 11/41] 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 12/41] 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 13/41] 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 14/41] 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 15/41] 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 16/41] 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 17/41] 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 18/41] 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 19/41] 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 20/41] 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 21/41] 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 22/41] 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 23/41] 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 24/41] 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 25/41] 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 26/41] 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 27/41] 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 28/41] 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 29/41] 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 30/41] 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 31/41] 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 32/41] 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 33/41] 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 34/41] 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 35/41] 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 36/41] 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 37/41] 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 38/41] 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 39/41] 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 40/41] 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 41/41] 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