Skip to content

Commit c499d69

Browse files
committed
Merge branch 'develop'
2 parents 1327ee4 + e2c80dc commit c499d69

File tree

4 files changed

+41
-2
lines changed

4 files changed

+41
-2
lines changed

CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,12 @@ All notable changes to the "uruit-react-snippets" extension will be documented i
44
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
55

66
## [Unreleased]
7-
- Initial release
7+
- Initial release
8+
9+
## [1.1.1] - 2017-07-04
10+
### Added
11+
- CHANGELOG.md
12+
- Troubleshooting section in README.md
13+
### Changed
14+
- Update `u-suite` snippet
15+

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,17 @@ ext install uruit-react-snippets
6969
```
7070

7171
## Troubleshooting
72+
7273
If the snippets prefixes do not show up when typing them, make sure you have the tab-completion enabled in your settings: `"editor.tabCompletion": true`.
7374

7475
Alternatively, you can choose *Insert Snippet* in the Command Palette (`Cmd+Shift+P` on Mac, `Ctrl+Shift+P` on Windows or Linux).
76+
77+
## Author
78+
79+
* [UruIT](https://github.com/UruIT)
80+
81+
### Contributors
82+
83+
* [Matias Delgado](https://github.com/matiasdelgado)
84+
* [Carloluis Rodríguez](https://github.com/carloluis)
85+

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "uruit-react-snippets",
33
"displayName": "UruIT React Snippets",
44
"description": "React Snippets with ECMAScript 6",
5-
"version": "1.1.1",
5+
"version": "1.1.2",
66
"publisher": "UruIT",
77
"icon": "images/uruit-logo.png",
88
"engines": {

snippets/snippets.json

+20
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,26 @@
288288
],
289289
"description": "Redux action"
290290
},
291+
"Redux reducer": {
292+
"prefix": "u-reducer",
293+
"body":[
294+
"import { $1 } from './$2.action';",
295+
"",
296+
"const DEFAULT_STATE = { $3 };",
297+
"",
298+
"export function homeReducer(state = DEFAULT_STATE, action) {",
299+
"\tswitch (action.type) {",
300+
"\t\tcase $1:",
301+
"\t\t\treturn {",
302+
"\t\t\t\t$0",
303+
"\t\t\t};",
304+
"\t\tdefault:",
305+
"\t\t\treturn state;",
306+
"\t}",
307+
"}"
308+
],
309+
"description": "Redux reducer"
310+
},
291311
"JSX Element className": {
292312
"prefix": "u-cn",
293313
"body": [

0 commit comments

Comments
 (0)