WS-2017.3.2 <martin@martins-imac-2.local Create JavaScript.xml

This commit is contained in:
Martin Donnelly 2018-01-15 11:51:28 +00:00
parent c3fb55f40a
commit c963aa2eff

18
templates/JavaScript.xml Normal file
View File

@ -0,0 +1,18 @@
<templateSet group="JavaScript">
<template name="log" value="console.log($END$)" description="Console log" toReformat="false" toShortenFQNames="true">
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="rcon" value="constructor(props){&#10; super(props);&#10; &#10; this.state = $END$;&#10; }&#10; " description="Constructor" toReformat="false" toShortenFQNames="true">
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="rcom" value="class $component_name$ extends Component {&#10; render(){&#10; return(&#10; &lt;div&gt;&#10; $END$&#10; &lt;/div&gt;&#10; );&#10; }&#10; &#10; ]" description="React Component" toReformat="false" toShortenFQNames="true">
<variable name="component_name" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
</templateSet>