Skip to content
Alessandro Gubitosi edited this page Jun 27, 2014 · 2 revisions

These pages contains the definitions for the service application interface.
To convert service's file to javascript frontend use the following grep pattern:

search: ^define\( "(.+)",.+(\'.+\').*;
replace: var \1 = \2;

To convert the definitions into constants:

search: ^\tdefine\( \"(.+)\"\,(.+)(\'.+\') \);\r
replace: \tconst \1 =   \2\3;\r

Note: consider that you may also bring a version of definitions already ported in javascript following this Gist