-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PS-2018.2.4 <shengyou@Kaith.local Update Laravel.xml Create SQL.xml, …
…React.xml, PHP.xml, Angular.xml, JavaScript.xml, Zen CSS.xml, AngularJS .xml, Twig.xml, Zen XSL.xml, HTTP Request.xml, xsl.xml, JavaScript Testing.xml, html_xml.xml, Zen HTML.xml, Vue.xml
- Loading branch information
Showing
16 changed files
with
4,973 additions
and
7 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
<templateSet group="AngularJS "> | ||
<template name="ngdcf" value="function compile(tElement, tAttrs, transclude) { $END$ return function (scope, element, attrs) { } }" description="A compile function" toReformat="false" toShortenFQNames="true"> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngdlf" value="function (scope, element, attrs$ctrl$) { $END$ }" description="A linking function in a directive." toReformat="true" toShortenFQNames="true"> | ||
<variable name="ctrl" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngdc" value="directive('$directiveName$', function factory($injectables$) { var directiveDefinitionObject = { $directiveAttrs$ compile: function compile(tElement, tAttrs, transclude) { $END$ return function (scope, element, attrs) { } } }; return directiveDefinitionObject; })" description="A directive with a compile function" toReformat="true" toShortenFQNames="true"> | ||
<variable name="directiveName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="injectables" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="directiveAttrs" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngdl" value=".directive('$directiveName$', function($directiveDeps$) { return function(scope, element, attrs$ctrl$) { $END$ } });" description="A directive with a linking function only." toReformat="true" toShortenFQNames="true"> | ||
<variable name="directiveName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="directiveDeps" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="ctrl" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngc" value="var $controllerName$ = function($scope, $injectables$) { $END$ } " description="Define a new Angular Controller. You can change the controller name and parameters." toReformat="true" toShortenFQNames="true"> | ||
<variable name="controllerName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="injectables" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngfor" value="angular.forEach($iterateOver$, function(value, key){ $END$ });" description="angular.foreach loop" toReformat="true" toShortenFQNames="true"> | ||
<variable name="iterateOver" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngindex" value="<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/$version$/angular.js"></script> </head> <body ng-app> $END$ </body> </html>" description="Simple way of bootstraping angular app for prototyping purposes" toReformat="true" toShortenFQNames="true"> | ||
<variable name="version" expression="" defaultValue="1.0.1" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngsa" value="<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/$version$/angular$suffix$.js"></script> $END$" description="Script tag importing base AngularJS file from CDN" toReformat="true" toShortenFQNames="true"> | ||
<variable name="version" expression="" defaultValue="1.0.1" alwaysStopAt="true" /> | ||
<variable name="suffix" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngst" value="<script type="text/ng-template" id="$id$"> $END$ </script>" description="A script tag holding Angular's template" toReformat="true" toShortenFQNames="true"> | ||
<variable name="id" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngb" value="{{$binding$}}$END$" description="A binding in AngularJS" toReformat="true" toShortenFQNames="true"> | ||
<variable name="binding" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngm" value="angular.module('$moduleName$',[$moduleDependencies$]); $END$" description="A new angular module without a config function." toReformat="true" toShortenFQNames="true"> | ||
<variable name="moduleName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="moduleDependencies" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngma" value="var $moduleName$ = angular.module('$moduleName$',[$moduleDeps$]); $END$" description="A new angular module without a config function and a variable assigment." toReformat="true" toShortenFQNames="true"> | ||
<variable name="moduleName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="moduleDeps" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngmc" value="var $moduleName$ = angular.module('$moduleName$',[$moduleDeps$], function($configDeps$){ $END$ });" description="A new angular module with a config function" toReformat="true" toShortenFQNames="true"> | ||
<variable name="moduleName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="moduleDeps" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="configDeps" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngmfa" value="factory('$factoryName$', function($dependencies$){ $END$ });" description="A factory in a module" toReformat="true" toShortenFQNames="true"> | ||
<variable name="factoryName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="dependencies" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngms" value="service('$serviceName$', function($injectables$) { $END$ });" description="Define an Angular Module Service to be attached to a previously defined module. You can change the service name and service injectables." toReformat="true" toShortenFQNames="true"> | ||
<variable name="serviceName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="injectables" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngmfi" value="filter('$filterName$', function($injectables$) { return function(input, $args$) { $END$ }; })" description="Define an Angular Module Filter to be attached to a previously defined module. You can change the filter name." toReformat="true" toShortenFQNames="true"> | ||
<variable name="filterName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="injectables" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="args" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngrw" value="$routeProvider.when('$url$', { templateUrl: '$templateUrl$', controller: '$controller$' }); $END$" description="Defines a when condition of an AngularJS route." toReformat="true" toShortenFQNames="true"> | ||
<variable name="url" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="templateUrl" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="controller" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngrwr" value="$routeProvider.when('$url$', { templateUrl: '$templateUrl$', controller: '$controller$', resolve: {$END$ } });" description="Defines a when condition of an AngularJS route with the resolve block." toReformat="true" toShortenFQNames="true"> | ||
<variable name="url" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="templateUrl" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="controller" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="ngro" value="$routeProvider.otherwise({redirectTo : '$url$'}); $END$" description="Defines an otherwise condition of an AngularJS route." toReformat="true" toShortenFQNames="true"> | ||
<variable name="url" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="$f" value="$scope.$functionName$ = function($args$) { $END$ };" description="Define a new $scope'd function (usually inside an AngularJS Controller). You can change the function name and arguments." toReformat="true" toShortenFQNames="true"> | ||
<variable name="functionName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="args" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="$v" value="$scope.$variable$ = $value$; $END$" description="Defines a new $scope'd variable inside an AngularJS controller." toReformat="true" toShortenFQNames="true"> | ||
<variable name="variable" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="value" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="$va" value="$scope.$variable$ = $variable$; $END$" description="Defines a new $scope'd variable inside an AngularJS controller and assigns a value from a contstructor arguments." toReformat="true" toShortenFQNames="true"> | ||
<variable name="variable" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="$w" value="$scope.$watch('$watchExpr$',function(newValue, oldValue){ $END$ });" description="Define a $watch for an expression. You can change the expression to be watched." toReformat="true" toShortenFQNames="true"> | ||
<variable name="watchExpr" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="$on" value="$scope.$on('$eventName$', function(event, $args$) { $END$ });" description="Define a $on for a $broadcast/$emit on the $scope inside an Angular Controller. You can change the event name to listen on." toReformat="true" toShortenFQNames="true"> | ||
<variable name="eventName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="args" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="$b" value="$scope.$broadcast('$eventName$', $eventArgs$); $END$" description="Define a $broadcast for a $scope inside an Angular Controller / Angular Controller Function. You can change the event name and optional event arguments." toReformat="false" toShortenFQNames="true"> | ||
<variable name="eventName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="eventArgs" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
<template name="$e" value="$scope.$emit('$eventName$', $eventArgs$); $END$" description="Define an $emit for a $scope inside an Angular Controller / Angular Controller Function. You can change the event name and optional event arguments." toReformat="true" toShortenFQNames="true"> | ||
<variable name="eventName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="eventArgs" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="JSP" value="false" /> | ||
</context> | ||
</template> | ||
</templateSet> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<templateSet group="HTTP Request"> | ||
<template name="gtr" value="GET http://$HOST$/$PATH$ $HEADER$: $HEADER_VALUE$ ###" description="GET http://example.com/get" toReformat="true" toShortenFQNames="false"> | ||
<variable name="HOST" expression="" defaultValue=""localhost:80"" alwaysStopAt="true" /> | ||
<variable name="PATH" expression="" defaultValue=""api/item"" alwaysStopAt="true" /> | ||
<variable name="HEADER" expression="" defaultValue=""Accept"" alwaysStopAt="true" /> | ||
<variable name="HEADER_VALUE" expression="" defaultValue=""application/json"" alwaysStopAt="true" /> | ||
<context /> | ||
</template> | ||
<template name="gtrp" value="GET http://$HOST$/$PATH$?$PARAM$=$VALUE$ $HEADER$: $HEADER_VALUE$ ###" description="GET http://example.com/get?id=99" toReformat="true" toShortenFQNames="false"> | ||
<variable name="HOST" expression="" defaultValue=""localhost:80"" alwaysStopAt="true" /> | ||
<variable name="PATH" expression="" defaultValue=""api/item"" alwaysStopAt="true" /> | ||
<variable name="PARAM" expression="" defaultValue=""id"" alwaysStopAt="true" /> | ||
<variable name="VALUE" expression="" defaultValue=""99"" alwaysStopAt="true" /> | ||
<variable name="HEADER" expression="" defaultValue=""Accept"" alwaysStopAt="true" /> | ||
<variable name="HEADER_VALUE" expression="" defaultValue=""application/json"" alwaysStopAt="true" /> | ||
<context /> | ||
</template> | ||
<template name="ptr" value="POST http://$HOST$/$PATH$ Content-Type: $HEADER_VALUE$ $BODY$ ###" description="POST http://example.com/add..." toReformat="true" toShortenFQNames="false"> | ||
<variable name="HOST" expression="" defaultValue=""localhost:80"" alwaysStopAt="true" /> | ||
<variable name="PATH" expression="" defaultValue=""api/item"" alwaysStopAt="true" /> | ||
<variable name="HEADER_VALUE" expression="" defaultValue=""application/json"" alwaysStopAt="true" /> | ||
<variable name="BODY" expression="" defaultValue=""{}"" alwaysStopAt="true" /> | ||
<context /> | ||
</template> | ||
<template name="ptrp" value="POST http://$HOST$/$PATH$ Content-Type: application/x-www-form-urlencoded $PARAM1$=$VALUE1$&$PARAM2$=$VALUE2$ ###" description="POST application/x-www-form-urlencoded" toReformat="true" toShortenFQNames="false"> | ||
<variable name="HOST" expression="" defaultValue=""localhost:80"" alwaysStopAt="true" /> | ||
<variable name="PATH" expression="" defaultValue=""api/item"" alwaysStopAt="true" /> | ||
<variable name="PARAM1" expression="" defaultValue=""id"" alwaysStopAt="true" /> | ||
<variable name="VALUE1" expression="" defaultValue=""99"" alwaysStopAt="true" /> | ||
<variable name="PARAM2" expression="" defaultValue=""content"" alwaysStopAt="true" /> | ||
<variable name="VALUE2" expression="" defaultValue=""new-element"" alwaysStopAt="true" /> | ||
<context /> | ||
</template> | ||
<template name="mptr" value="POST http://$HOST$/$PATH$ Content-Type: multipart/form-data; boundary=WebAppBoundary --WebAppBoundary Content-Disposition: form-data; name="$FIELD_NAME$" $BODY$ --WebAppBoundary-- ###" description="POST multipart/form-data" toReformat="true" toShortenFQNames="false"> | ||
<variable name="HOST" expression="" defaultValue=""localhost:80"" alwaysStopAt="true" /> | ||
<variable name="PATH" expression="" defaultValue=""api/item"" alwaysStopAt="true" /> | ||
<variable name="FIELD_NAME" expression="" defaultValue=""field-name"" alwaysStopAt="true" /> | ||
<variable name="BODY" expression="" defaultValue=""field-value"" alwaysStopAt="true" /> | ||
<context /> | ||
</template> | ||
<template name="fptr" value="POST http://$HOST$/$PATH$ Content-Type: multipart/form-data; boundary=WebAppBoundary --WebAppBoundary Content-Disposition: form-data; name="$FIELD_NAME$" filename="$FILE_NAME$" < $FILE_PATH$ --WebAppBoundary-- ###" description="POST file by multipart/form-data" toReformat="true" toShortenFQNames="false"> | ||
<variable name="HOST" expression="" defaultValue=""localhost:80"" alwaysStopAt="true" /> | ||
<variable name="PATH" expression="" defaultValue=""api/item"" alwaysStopAt="true" /> | ||
<variable name="FIELD_NAME" expression="" defaultValue=""field-name"" alwaysStopAt="true" /> | ||
<variable name="FILE_NAME" expression="" defaultValue=""file.txt"" alwaysStopAt="true" /> | ||
<variable name="FILE_PATH" expression="" defaultValue=""./relative/path/to/local_file.txt"" alwaysStopAt="true" /> | ||
<context /> | ||
</template> | ||
</templateSet> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<templateSet group="JavaScript Testing"> | ||
<template name="descr" value="describe('$NAME$', function() { $END$ });" description="Inserts describe() block" toReformat="true" toShortenFQNames="true"> | ||
<variable name="NAME" expression="jsMethodName()" defaultValue="" alwaysStopAt="true" /> | ||
<context /> | ||
</template> | ||
<template name="bfe" value="beforeEach(function() { $END$ });" description="Inserts beforeEach() block" toReformat="true" toShortenFQNames="true"> | ||
<context /> | ||
</template> | ||
<template name="it" value="it('should $NAME$', function() { $END$ }); " description="Inserts it() block" toReformat="true" toShortenFQNames="true"> | ||
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context /> | ||
</template> | ||
<template name="afe" value="afterEach(function() { $END$ });" description="Inserts afterEach() block" toReformat="true" toShortenFQNames="true"> | ||
<context /> | ||
</template> | ||
<template name="af" value="after(function() { $END$ });" description="Inserts after() block" toReformat="true" toShortenFQNames="true"> | ||
<context /> | ||
</template> | ||
<template name="bf" value="before(function() { $END$ });" description="Inserts before() block" toReformat="true" toShortenFQNames="true"> | ||
<context /> | ||
</template> | ||
</templateSet> |
Oops, something went wrong.