intellijsettings-MAC/templates/JavaScript.xml

63 lines
3.5 KiB
XML

<templateSet group="JavaScript">
<template name="params" value="{&#10; 'name': '$NAME$',&#10; 'type': TYPES.VarChar,&#10; 'value': data.$NAME$,&#10; }$END$" description="" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="complete()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="paramn" value="{&#10; 'name': '$NAME$',&#10; 'type': TYPES.Int,&#10; 'value': $OBJECT$.$NAME$,&#10; }$END$" description="" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="OBJECT" expression="jsSuggestVariableName()" defaultValue="data" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="targetsource" value="[Target].$VAL$=[Source].$VAL$,$END$" description="Target to Source" toReformat="false" toShortenFQNames="true">
<variable name="VAL" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="importlog" value="import { newLogger } from '../helpers/logger';&#10;&#10;const log = newLogger('$NAME$');&#10;$END$" description="Import log" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="fileNameWithoutExtension()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="@apibodyno" value="@apiBody {Number} [$NAME$]&#10;$END$" description="ApiBody Number Optional" toReformat="true" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="@apibodyn" value="@apiBody {Number} $NAME$&#10;$END$" description="ApiBody Number Required" toReformat="true" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="@apibodyso" value="@apiBody {String} [$NAME$]&#10;$END$" description="ApiBody String Optional" toReformat="true" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="@apibodys" value="@apiBody {String} $NAME$&#10;$END$" description="ApiBody String Required" toReformat="true" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="@apibodybo" value="@apiBody {Boolean} [$NAME$]&#10;$END$" description="ApiBody Boolean Optional" toReformat="true" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="@apibodyb" value="@apiBody {Boolean} $NAME$&#10;$END$" description="ApiBody Boolean Required" toReformat="true" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
</templateSet>