63 lines
3.5 KiB
XML
63 lines
3.5 KiB
XML
<templateSet group="JavaScript">
|
|
<template name="params" value="{ 'name': '$NAME$', 'type': TYPES.VarChar, 'value': data.$NAME$, }$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="{ 'name': '$NAME$', 'type': TYPES.Int, 'value': $OBJECT$.$NAME$, }$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'; const log = newLogger('$NAME$'); $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$] $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$ $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$] $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$ $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$] $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$ $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> |