Last active
June 14, 2018 09:00
-
-
Save Mr-Chilly/1b8851e8f641511bfd2dc811bb49a390 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2018-06-14T09:00:06.462Z","extensionVersion":"v2.9.2"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"metadata": { | |
"id": "2aa040bf-c73a-455d-8946-5c6cc83b8019", | |
"publisherId": "wmaurer.change-case", | |
"publisherDisplayName": "wmaurer" | |
}, | |
"name": "change-case", | |
"publisher": "wmaurer", | |
"version": "1.0.0" | |
}, | |
{ | |
"metadata": { | |
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd", | |
"publisherId": "Shan.code-settings-sync", | |
"publisherDisplayName": "Shan" | |
}, | |
"name": "code-settings-sync", | |
"publisher": "Shan", | |
"version": "2.9.2" | |
}, | |
{ | |
"metadata": { | |
"id": "6bb13c6e-925d-4b45-9bdb-9ad7a7829176", | |
"publisherId": "bijan.coderunner2-theme", | |
"publisherDisplayName": "bijan" | |
}, | |
"name": "coderunner2-theme", | |
"publisher": "bijan", | |
"version": "1.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "1ec62ca5-d7f9-4ddb-a882-e8d018c0aefd", | |
"publisherId": "msjsdiag.debugger-for-chrome", | |
"publisherDisplayName": "msjsdiag" | |
}, | |
"name": "debugger-for-chrome", | |
"publisher": "msjsdiag", | |
"version": "4.6.0" | |
}, | |
{ | |
"metadata": { | |
"id": "6d2b4ef2-1d6d-4a1f-91fb-29fcadfb4b0a", | |
"publisherId": "vector-of-bool.gitflow", | |
"publisherDisplayName": "vector-of-bool" | |
}, | |
"name": "gitflow", | |
"publisher": "vector-of-bool", | |
"version": "1.2.1" | |
}, | |
{ | |
"metadata": { | |
"id": "5960f38e-0bbe-4644-8f9c-9c8824e82511", | |
"publisherId": "donjayamanne.githistory", | |
"publisherDisplayName": "donjayamanne" | |
}, | |
"name": "githistory", | |
"publisher": "donjayamanne", | |
"version": "0.4.1" | |
}, | |
{ | |
"metadata": { | |
"id": "4de763bd-505d-4978-9575-2b7696ecf94e", | |
"publisherId": "eamodio.gitlens", | |
"publisherDisplayName": "eamodio" | |
}, | |
"name": "gitlens", | |
"publisher": "eamodio", | |
"version": "8.3.5" | |
}, | |
{ | |
"metadata": { | |
"id": "5db78037-f674-459f-a236-db622c427c5b", | |
"publisherId": "PKief.material-icon-theme", | |
"publisherDisplayName": "PKief" | |
}, | |
"name": "material-icon-theme", | |
"publisher": "PKief", | |
"version": "3.5.0" | |
}, | |
{ | |
"metadata": { | |
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90", | |
"publisherId": "esbenp.prettier-vscode", | |
"publisherDisplayName": "esbenp" | |
}, | |
"name": "prettier-vscode", | |
"publisher": "esbenp", | |
"version": "1.5.0" | |
}, | |
{ | |
"metadata": { | |
"id": "f8b5562e-a2d9-49ab-9f91-e7da91998a92", | |
"publisherId": "shinnn.stylelint", | |
"publisherDisplayName": "shinnn" | |
}, | |
"name": "stylelint", | |
"publisher": "shinnn", | |
"version": "0.36.3" | |
}, | |
{ | |
"metadata": { | |
"id": "15de929b-c739-49db-86bc-b968cc6b7a5b", | |
"publisherId": "AdamCaviness.theme-monokai-dark-soda", | |
"publisherDisplayName": "AdamCaviness" | |
}, | |
"name": "theme-monokai-dark-soda", | |
"publisher": "AdamCaviness", | |
"version": "0.0.5" | |
}, | |
{ | |
"metadata": { | |
"id": "ccf9294f-f78f-429a-8856-387624db2432", | |
"publisherId": "hnw.vscode-auto-open-markdown-preview", | |
"publisherDisplayName": "hnw" | |
}, | |
"name": "vscode-auto-open-markdown-preview", | |
"publisher": "hnw", | |
"version": "0.0.4" | |
}, | |
{ | |
"metadata": { | |
"id": "d7b592dd-41c9-4f2b-acf3-055ae65e55c6", | |
"publisherId": "dzannotti.vscode-babel-coloring", | |
"publisherDisplayName": "dzannotti" | |
}, | |
"name": "vscode-babel-coloring", | |
"publisher": "dzannotti", | |
"version": "0.0.4" | |
}, | |
{ | |
"metadata": { | |
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a", | |
"publisherId": "dbaeumer.vscode-eslint", | |
"publisherDisplayName": "dbaeumer" | |
}, | |
"name": "vscode-eslint", | |
"publisher": "dbaeumer", | |
"version": "1.4.12" | |
}, | |
{ | |
"metadata": { | |
"id": "beb68b20-7c55-471c-9b63-3486f9423566", | |
"publisherId": "mrmlnc.vscode-scss", | |
"publisherDisplayName": "mrmlnc" | |
}, | |
"name": "vscode-scss", | |
"publisher": "mrmlnc", | |
"version": "0.6.2" | |
}, | |
{ | |
"metadata": { | |
"id": "5a6dc0d5-dc02-4121-8e24-cad33a2ff0af", | |
"publisherId": "ms-vsliveshare.vsliveshare", | |
"publisherDisplayName": "ms-vsliveshare" | |
}, | |
"name": "vsliveshare", | |
"publisher": "ms-vsliveshare", | |
"version": "0.3.292" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c9a9fc61a2940b4575086201867a7b4e88d159403411b24289f9dab387e3aa0db2c225a0941b1a69ce8e8d8a03dd5a15c2b3f75729524b2d193afcd237caff29487bc9ee6d01db86a7979967909c1d3969632356aba7f0aec5f8ccf2941cb76640ff56d81f7f26f3e91967657c9cdb8281372149031ee3b3fa15a21f9f6975cf1172e48a10b8c6e934920938186f3dd2249dac00b9303dad6716f107859f2e1ea06b6507f59b93e9bb890bd10bc2f01a13d74741ff6a0e9ee8528e30bfcbf3e34c770529886ae35f2f196a7d16b14aaa4b647dbe41eadb0717fc53ef487dad11902fdfa90ef43ebaf0c46e957e0e65381a140f879196c5e4bb132ab38316fb480e3f56aad3ab9871cc0882574fde7b245ba9f0e2c6ce601b93a1a95de06b06edf7f92c488444b3be9cf39cb6628fdfa3542cfaf6d9213556f33f4b03061499631af1f0eb0127cbbd90380ce8053aea00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": ".", | |
"command": "" | |
}, | |
{ | |
"key": "oem_plus", | |
"command": "-extension.calculate", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+g", | |
"command": "git.checkout" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "material-icon-theme", | |
"version": "2.1.0" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.fontFamily": "dank mono", | |
"editor.fontLigatures": true, | |
"terminal.integrated.shell.windows": "C:\\WINDOWS\\sysnative\\cmd.exe", | |
"terminal.integrated.shellArgs.windows": [ | |
"/K", | |
"C:\\Users\\daniel.chilvers\\Downloads\\cmder\\vscode.bat" | |
], | |
"editor.fontSize": 17, | |
"editor.lineHeight": 18, | |
"workbench.iconTheme": "material-icon-theme", | |
"explorer.openEditors.visible": 0, | |
"editor.autoIndent": true, | |
"search.exclude": { | |
"**/node_modules": true, | |
"**/build": true | |
}, | |
"files.useExperimentalFileWatcher": true, | |
"search.location": "panel", | |
"editor.tabSize": 2, | |
"terminal.integrated.fontFamily": "dank mono", | |
"git.confirmSync": false, | |
"files.autoSave": "off", | |
"window.zoomLevel": -2, | |
"sync.gist": "1b8851e8f641511bfd2dc811bb49a390", | |
"sync.lastUpload": "2018-06-14T08:59:38.181Z", | |
"sync.autoDownload": true, | |
"sync.autoUpload": true, | |
"sync.lastDownload": "2018-02-15T14:47:48.974Z", | |
"sync.forceDownload": false, | |
"sync.host": "", | |
"sync.pathPrefix": "", | |
"sync.quietSync": true, | |
"sync.askGistName": false, | |
"files.associations": { | |
".stylelintrc": "json", | |
"*.js": "javascriptreact" | |
}, | |
"workbench.editor.enablePreview": false, | |
"eslint.autoFixOnSave": true, | |
"emmet.includeLanguages": { | |
"javascript": "jsx", | |
"typescript": "jsx", | |
"typescriptreact": "jsx", | |
"php": "html", | |
"xml": { | |
"attr_quotes": "single" | |
} | |
}, | |
// "emmet.showSuggestionsAsSnippets": true, | |
"emmet.triggerExpansionOnTab": true, | |
"typescript.tsserver.log": "verbose", | |
"git.enableSmartCommit": true, | |
"window.menuBarVisibility": "toggle", | |
"workbench.activityBar.visible": true, | |
"workbench.sideBar.location": "left", | |
"editor.smoothScrolling": true, | |
"editor.lightbulb.enabled": true, | |
"git.autofetch": true, | |
"material-icon-theme.folders.associations": { | |
"reducers": "Redux-reducer", | |
"actions": "Redux-actions", | |
}, | |
"gitlens.gitExplorer.enabled": false, | |
"gitlens.keymap": "chorded", | |
"sync.removeExtensions": true, | |
"sync.syncExtensions": true, | |
"gitlens.advanced.messages": { | |
"suppressResultsExplorerNotice": true, | |
"suppressShowKeyBindingsNotice": true | |
}, | |
"gitlens.historyExplorer.enabled": true, | |
"workbench.colorTheme": "Monokai Dark Soda", | |
"files.watcherExclude": { | |
"node_modules": true, | |
"pattern-lib": true, | |
"docs": true, | |
"build-tools": true, | |
".vscode": true, | |
"config": true, | |
"hooks": true, | |
"themes": true, | |
"member/build": true, | |
"member/src/clint": true, | |
"member/src/server": true, | |
"member/config": true, | |
"member/scripts": true, | |
"account/build": true, | |
"account/scripts": true, | |
"account/static": true, | |
"account/mock": true, | |
"account/config": true, | |
"account/src/clint": true, | |
"account/src/server": true, | |
"common/scripts": true, | |
"common/test": true, | |
"common/static": true, | |
"live/config": true, | |
"live/scripts": true, | |
"live/static": true, | |
"live/test": true, | |
"live/build": true, | |
"live/src/clint": true, | |
"live/src/server": true, | |
"shop/config": true, | |
"shop/scripts": true, | |
"shop/static": true, | |
"shop/test": true, | |
"shop/build": true, | |
"shop/src/clint": true, | |
"shop/src/server": true, | |
"planner/config": true, | |
"planner/scripts": true, | |
"planner/static": true, | |
"planner/test": true, | |
"planner/build": true, | |
"planner/src/clint": true, | |
"planner/src/server": true, | |
"yarn.lock": true, | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* | |
// Place your snippets for CSS here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ | |
"console.log('$1');", | |
"$2" | |
], | |
"description": "Log output to console" | |
} | |
*/ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* | |
// Place your snippets for JavaScript (Babel) here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $2, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ | |
"console.log('$1');", | |
"$2" | |
], | |
"description": "Log output to console" | |
} | |
*/ | |
"SWCompFunction": { | |
"prefix": "swCompFunc", | |
"body": [ | |
"/* global WP_COMPONENT_DEF */", | |
"import React, { PropTypes } from 'react';", | |
"import { withFunctionalClassName } from 'common/src/app/util/componentClassNameUtils';", | |
"import './$2.scss';", | |
"/**", | |
" * REPLACE ME -- add a description here --", | |
" */", | |
"const ${TM_FILENAME}$1 = (props, context, className) => {", | |
" return (", | |
" <div className={className}>", | |
" Hello, ${TM_FILENAME}$1", | |
" </div>", | |
" );", | |
"};", | |
"", | |
"${TM_FILENAME}$1.propTypes = {", | |
"", | |
"};", | |
"", | |
"export default withFunctionalClassName(", | |
" WP_COMPONENT_DEF", | |
")(${TM_FILENAME}$1);", | |
"" | |
], | |
"description": "Slimming World Stateless" | |
}, | |
"SWCompSimple": { | |
"prefix": "swCompSimple", | |
"body": [ | |
"/* global WP_COMPONENT_DEF */", | |
"import React, { PropTypes } from 'react';", | |
"import { withFunctionalClassName } from 'common/src/app/util/componentClassNameUtils';", | |
"import './$2.scss';", | |
"", | |
"/**", | |
" * REPLACE ME -- add a description here --", | |
" */", | |
"", | |
"const ${TM_FILENAME}$1 = (props, context, className) => (", | |
" <div className={className}>", | |
" Hello, ${TM_FILENAME}$1", | |
" </div>", | |
");", | |
"", | |
"${TM_FILENAME}$1.propTypes = {", | |
"", | |
"};", | |
"", | |
"export default withFunctionalClassName(", | |
" WP_COMPONENT_DEF", | |
")(${TM_FILENAME}$1);", | |
"" | |
], | |
"description": "Slimming World Simple Function" | |
}, | |
// "swCompFuncNoProps": { | |
// "prefix": "swCompFuncNoProps", | |
// "body": [ | |
// "global WP_COMPONENT_DEF */", | |
// "import React from 'react';", | |
// "import { withFunctionalClassName } from 'common/src/app/util/componentClassNameUtils';", | |
// "import './$2.scss';", | |
// "", | |
// "/**", | |
// " * REPLACE ME -- add a description here --", | |
// " */", | |
// "", | |
// "const ${TM_FILENAME}$1 = (props, context, className) => {", | |
// " return (", | |
// " <div className={className}>", | |
// " Hello, ${TM_FILENAME}$1", | |
// " </div>", | |
// " );", | |
// "};", | |
// "", | |
// "export default withFunctionalClassName(WP_COMPONENT_DEF)(${TM_FILENAME}$1);", | |
// "" | |
// ], | |
// "description": "SW Functional Component without props" | |
// }, | |
"swCompClass": { | |
"prefix": "swCompClass", | |
"body": [ | |
"/* global WP_COMPONENT_TYPE */", | |
"import React, { PureComponent, PropTypes } from 'react';", | |
"import ComponentType from 'common/src/app/data/enum/ComponentType';", | |
"import { componentClassNameProp } from 'common/src/app/util/componentClassNameUtils';", | |
"import './$2.scss';", | |
"", | |
"/**", | |
" * REPLACE ME ", | |
" */", | |
"", | |
"class ${TM_FILENAME}$1 extends PureComponent {", | |
" render() {", | |
" const { foo } = this.props;", | |
" ", | |
" return (", | |
" <div {...componentClassNameProp(WP_COMPONENT_TYPE, this)}>", | |
" </div>", | |
" );", | |
" }", | |
"}", | |
"", | |
"${TM_FILENAME}$1.propTypes = {", | |
" /**", | |
" * REPLACE ME -- replace this dummy prop with a real proptype", | |
"", | |
" */", | |
" foo: PropTypes.string,", | |
"};", | |
"export default ${TM_FILENAME}$1;", | |
"" | |
], | |
"description": "SW Class Component" | |
}, | |
"swIndex": { | |
"prefix": "swIndex", | |
"body": [ | |
"import ${TM_FILENAME}$1 from './${TM_FILENAME}$1';", | |
"", | |
"export default ${TM_FILENAME}$1;", | |
"" | |
], | |
"description": "SW simple component index.js" | |
}, | |
"swConnect": { | |
"prefix": "swConnect", | |
"body": [ | |
"import { connect } from 'react-redux';", | |
"import ${TM_FILENAME}$1 from './${TM_FILENAME}$1';", | |
"", | |
"export default connect(", | |
" null,", | |
" null", | |
")(${TM_FILENAME}$1);", | |
"" | |
], | |
"description": "SW component index.js with connect()" | |
}, | |
"swCompose": { | |
"prefix": "swCompose", | |
"body": [ | |
"import { connect } from 'react-redux';", | |
"import { compose } from 'redux';", | |
"import ${TM_FILENAME}$1 from './${TM_FILENAME}$1';", | |
"", | |
"const connector = connect(", | |
" null,", | |
" null", | |
");", | |
"", | |
"export default compose(", | |
" connector", | |
")(${TM_FILENAME}$1);", | |
"" | |
], | |
"description": "SW component index.js with compose()" | |
}, | |
"swScssComp": { | |
"prefix": "swScssComp", | |
"body": [ | |
"TYPE$-${TM_FILENAME}$1 {", | |
"", | |
"}", | |
"" | |
], | |
"description": "SW Component SCSS" | |
}, | |
"swAction": { | |
"prefix": "swAction", | |
"body": [ | |
"export const $ACTION_NAME$ = '$CAT_NAME$/$ACTION_NAME$';", | |
"export const $ACTION_NAME_CAMEL$ = createAction($ACTION_NAME$);" | |
], | |
"description": "SW createAction()" | |
}, | |
"swPresets": { | |
"prefix": "swPresets", | |
"body": [ | |
"import React from 'react';", | |
"import ${TM_FILENAME}$1 from './${TM_FILENAME}$1';", | |
"export default {", | |
" presets: [", | |
" {", | |
" name: '$PRESET_NAME$',", | |
" preset: (", | |
" <preset>", | |
" <${TM_FILENAME}$1 />", | |
" </preset>", | |
" ),", | |
" },", | |
" ],", | |
"};" | |
], | |
"description": "SW presets.js file" | |
}, | |
"swInit": { | |
"prefix": "swInit", | |
"body": [ | |
"import { compose } from 'redux';", | |
"import { withInitAction } from 'react-redux-component-init';", | |
"import ${TM_FILENAME}$1 from './${TM_FILENAME}$1';", | |
"", | |
"const addInitAction = withInitAction(", | |
" ({}, dispatch) => {", | |
" ", | |
" },", | |
");", | |
"", | |
"export default compose(", | |
" addInitAction", | |
")(${TM_FILENAME}$1);", | |
"" | |
], | |
"description": "SW component index.js with withInitAction()" | |
}, | |
"swInitConnect": { | |
"prefix": "swInitConnect", | |
"body": [ | |
"import { connect } from 'react-redux';", | |
"import { compose } from 'redux';", | |
"import { withInitAction } from 'react-redux-component-init';", | |
"import ${TM_FILENAME}$1 from './${TM_FILENAME}$1';", | |
"", | |
"const connector = connect(", | |
" null,", | |
" null", | |
");", | |
"const addInitAction = withInitAction(", | |
" ({}, dispatch) => {", | |
" ", | |
" },", | |
");", | |
"", | |
"export default compose(", | |
" connector, addInitAction", | |
")(${TM_FILENAME}$1);", | |
"" | |
], | |
"description": "SW component index.js with connect() and withInitAction()" | |
}, | |
// "swINavigation": { | |
// "prefix": "swINavigation", | |
// "body": [ | |
// "import ${TM_FILENAME}$1 from 'components/atoms/navigation/${TM_FILENAME}$1';" | |
// ], | |
// "description": "Import navigation components" | |
// }, | |
"swIContent": { | |
"prefix": "swIContent", | |
"body": [ | |
"import $1 from 'components/atoms/content/$1';" | |
], | |
"description": "Import content components" | |
}, | |
"swIForm": { | |
"prefix": "swIForm", | |
"body": [ | |
"import $1 from 'components/atoms/form/$1';" | |
], | |
"description": "Import form components" | |
}, | |
"swIcon": { | |
"prefix": "swIcon", | |
"body": [ | |
"import Icon from 'components/atoms/icons/Icon';" | |
], | |
"description": "Import Icon Component" | |
}, | |
"swAtom": { | |
"prefix": "swAtom", | |
"body": [ | |
"import $1 from 'components/atoms/$1';" | |
], | |
"description": "Create atom import" | |
}, | |
"swMolecule": { | |
"prefix": "swMolecule", | |
"body": [ | |
"import $1 from 'components/molecules/$1';" | |
], | |
"description": "Import molecule components" | |
}, | |
"swOrganism": { | |
"prefix": "swOrganism", | |
"body": [ | |
"import $1 from 'components/organisms/$1';" | |
], | |
"description": "Import molecule components" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* | |
// Place your snippets for JavaScript React here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $2, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ | |
"console.log('$1');", | |
"$2" | |
], | |
"description": "Log output to console" | |
} | |
*/ | |
"SWCompFunction": { | |
"prefix": "swCompFunc", | |
"body": [ | |
"/* global WP_COMPONENT_DEF */", | |
"import React, { PropTypes } from 'react';", | |
"import { withFunctionalClassName } from 'common/src/app/util/componentClassNameUtils';", | |
"import './$2.scss';", | |
"/**", | |
" * REPLACE ME -- add a description here --", | |
" */", | |
"const ${TM_FILENAME}$1 = (props, context, className) => {", | |
" return (", | |
" <div className={className}>", | |
" Hello, ${TM_FILENAME}$1", | |
" </div>", | |
" );", | |
"};", | |
"", | |
"${TM_FILENAME}$1.propTypes = {", | |
"", | |
"};", | |
"", | |
"export default withFunctionalClassName(", | |
" WP_COMPONENT_DEF", | |
")(${TM_FILENAME}$1);", | |
"" | |
], | |
"description": "Slimming World Stateless" | |
}, | |
"SWCompSimple": { | |
"prefix": "swCompSimple", | |
"body": [ | |
"/* global WP_COMPONENT_DEF */", | |
"import React, { PropTypes } from 'react';", | |
"import { withFunctionalClassName } from 'common/src/app/util/componentClassNameUtils';", | |
"import './$2.scss';", | |
"", | |
"/**", | |
" * REPLACE ME -- add a description here --", | |
" */", | |
"", | |
"const ${TM_FILENAME}$1 = (props, context, className) => (", | |
" <div className={className}>", | |
" Hello, ${TM_FILENAME}$1", | |
" </div>", | |
");", | |
"", | |
"${TM_FILENAME}$1.propTypes = {", | |
"", | |
"};", | |
"", | |
"export default withFunctionalClassName(", | |
" WP_COMPONENT_DEF", | |
")(${TM_FILENAME}$1);", | |
"" | |
], | |
"description": "Slimming World Simple Function" | |
}, | |
"swCompClass": { | |
"prefix": "swCompClass", | |
"body": [ | |
"/* global WP_COMPONENT_TYPE */", | |
"import React, { PureComponent, PropTypes } from 'react';", | |
"import ComponentType from 'common/src/app/data/enum/ComponentType';", | |
"import { componentClassNameProp } from 'common/src/app/util/componentClassNameUtils';", | |
"import './$2.scss';", | |
"", | |
"/**", | |
" * REPLACE ME ", | |
" */", | |
"", | |
"class ${TM_FILENAME}$1 extends PureComponent {", | |
" render() {", | |
" const { foo } = this.props;", | |
" ", | |
" return (", | |
" <div {...componentClassNameProp(WP_COMPONENT_TYPE, this)}>", | |
" </div>", | |
" );", | |
" }", | |
"}", | |
"", | |
"${TM_FILENAME}$1.propTypes = {", | |
" /**", | |
" * REPLACE ME -- replace this dummy prop with a real proptype", | |
"", | |
" */", | |
" foo: PropTypes.string,", | |
"};", | |
"export default ${TM_FILENAME}$1;", | |
"" | |
], | |
"description": "SW Class Component" | |
}, | |
"swIndex": { | |
"prefix": "swIndex", | |
"body": [ | |
"import ${TM_FILENAME}$1 from './${TM_FILENAME}$1';", | |
"", | |
"export default ${TM_FILENAME}$1;", | |
"" | |
], | |
"description": "SW simple component index.js" | |
}, | |
"swConnect": { | |
"prefix": "swConnect", | |
"body": [ | |
"import { connect } from 'react-redux';", | |
"import { compose } from 'redux';", | |
"import ${TM_FILENAME}$1 from './${TM_FILENAME}$1';", | |
"", | |
"const connector = connect(", | |
" () => {", | |
" return state => ({", | |
"", | |
" });", | |
" },", | |
" null", | |
")", | |
"", | |
"export default compose(", | |
" connector", | |
")(${TM_FILENAME}$1);", | |
"" | |
], | |
"description": "SW component index.js with connect()" | |
}, | |
"swAction": { | |
"prefix": "swAction", | |
"body": [ | |
"export const $ACTION_NAME$ = '$CAT_NAME$/$ACTION_NAME$';", | |
"export const $ACTION_NAME_CAMEL$ = createAction($ACTION_NAME$);" | |
], | |
"description": "SW createAction()" | |
}, | |
"swPresets": { | |
"prefix": "swPresets", | |
"body": [ | |
"import React from 'react';", | |
"import ${TM_FILENAME}$1 from './${TM_FILENAME}$1';", | |
"export default {", | |
" presets: [", | |
" {", | |
" name: '$PRESET_NAME$',", | |
" preset: (", | |
" <preset>", | |
" <${TM_FILENAME}$1 />", | |
" </preset>", | |
" ),", | |
" },", | |
" ],", | |
"};" | |
], | |
"description": "SW presets.js file" | |
}, | |
"swInit": { | |
"prefix": "swInit", | |
"body": [ | |
"import { compose } from 'redux';", | |
"import { withInitAction } from 'react-redux-component-init';", | |
"import ${TM_FILENAME}$1 from './${TM_FILENAME}$1';", | |
"", | |
"const addInitAction = withInitAction(", | |
" ({}, dispatch) => {", | |
" ", | |
" },", | |
");", | |
"", | |
"export default compose(", | |
" addInitAction", | |
")(${TM_FILENAME}$1);", | |
"" | |
], | |
"description": "SW component index.js with withInitAction()" | |
}, | |
"swInitConnect": { | |
"prefix": "swInitConnect", | |
"body": [ | |
"import { connect } from 'react-redux';", | |
"import { compose } from 'redux';", | |
"import { withInitAction } from 'react-redux-component-init';", | |
"import ${TM_FILENAME}$1 from './${TM_FILENAME}$1';", | |
"", | |
"const connector = connect(", | |
" () => {", | |
" return state => ({", | |
"", | |
" });", | |
" },", | |
" null", | |
")", | |
"", | |
"const addInitAction = withInitAction(", | |
" ({}, dispatch) => {", | |
" ", | |
" },", | |
");", | |
"", | |
"export default compose(", | |
" connector, addInitAction", | |
")(${TM_FILENAME}$1);", | |
"" | |
], | |
"description": "SW component index.js with connect() and withInitAction()" | |
}, | |
"swCommon": { | |
"prefix": "swCommon", | |
"body": [ | |
"import $2 from 'common/src/app$1';" | |
], | |
"description": "Create atom import" | |
}, | |
"swAtom": { | |
"prefix": "swAtom", | |
"body": [ | |
"import $2 from 'components/atoms$1';" | |
], | |
"description": "Create atom import" | |
}, | |
"swMolecule": { | |
"prefix": "swMolecule", | |
"body": [ | |
"import $2 from 'components/molecules$1';" | |
], | |
"description": "Import molecule components" | |
}, | |
"swOrganism": { | |
"prefix": "swOrganism", | |
"body": [ | |
"import $2 from 'components/organisms$1';" | |
], | |
"description": "Import molecule components" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* | |
// Place your snippets for Sass here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ | |
"console.log('$1');", | |
"$2" | |
], | |
"description": "Log output to console" | |
} | |
*/ | |
"swAtom": { | |
"prefix": "swAtom", | |
"body": [ | |
".atom-${TM_FILENAME} {", | |
"\t$1", | |
"}" | |
], | |
"description": "Atom class" | |
}, | |
"swMolecule": { | |
"prefix": "swMolecule", | |
"body": [ | |
".molecule-${TM_FILENAME} {", | |
"\t$1", | |
"}" | |
], | |
"description": "Molecule class" | |
}, | |
"swOrganism": { | |
"prefix": "swOrganism", | |
"body": [ | |
".organism-${TM_FILENAME} {", | |
"\t$1", | |
"}" | |
], | |
"description": "Organism class" | |
}, | |
"swTemplate": { | |
"prefix": "swTemplate", | |
"body": [ | |
".template-${TM_FILENAME} {", | |
"\t$1", | |
"}" | |
], | |
"description": "Template class" | |
}, | |
"swPage": { | |
"prefix": "swPage", | |
"body": [ | |
".page-${TM_FILENAME} {", | |
"\t$1", | |
"}" | |
], | |
"description": "Page class" | |
}, | |
"swImportmedia": { | |
"prefix": "media", | |
"body": [ | |
"@import 'theme/sizes/media-queries';" | |
], | |
"description": "Media import" | |
}, | |
"swImportsize": { | |
"prefix": "size", | |
"body": [ | |
"@import 'theme/variables/margins';" | |
], | |
"description": "Size import" | |
}, | |
"swImportcolors": { | |
"prefix": "colors", | |
"body": [ | |
"@import 'theme/variables/colors';" | |
], | |
"description": "Color import" | |
}, | |
"swIncludemedia": { | |
"prefix": "media query", | |
"body": [ | |
"@include media('$1') {", | |
" ", | |
"}" | |
], | |
"description": "input media query" | |
}, | |
"rem-size": { | |
"prefix": "remsize", | |
"body": [ | |
"rem-size($1)" | |
], | |
"description": "remsize funtion" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"version":"7.12.0","status":2,"welcomeShown":true} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment