From 0786ec4b66baa0c4f8e827350ef1f8bc3515d692 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 11 Jan 2016 21:24:35 +0000 Subject: [PATCH] Move typedInput icons and update boolean --- editor/images/bool.png | Bin 367 -> 0 bytes editor/images/{ => typedInput}/09.png | Bin editor/images/{ => typedInput}/az.png | Bin editor/images/typedInput/bool.png | Bin 0 -> 646 bytes editor/images/{ => typedInput}/json.png | Bin editor/images/{ => typedInput}/re.png | Bin editor/js/ui/typedInput.js | 10 +++++----- 7 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 editor/images/bool.png rename editor/images/{ => typedInput}/09.png (100%) rename editor/images/{ => typedInput}/az.png (100%) create mode 100644 editor/images/typedInput/bool.png rename editor/images/{ => typedInput}/json.png (100%) rename editor/images/{ => typedInput}/re.png (100%) diff --git a/editor/images/bool.png b/editor/images/bool.png deleted file mode 100644 index cd626f3b1e1d799f4d38d82fbf5932747eb49d9b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 367 zcmeAS@N?(olHy`uVBq!ia0vp^GC-`x!3HF+zxf>xq*#ibJVQ8upoSx*1IXtr@Q5sC zVBk*#Va65q%QJz3k|nMYCBgY=CFO}lsSM@i<$9TU*~Q6;1*v-ZMd`EO*+>Buz43H$ z42fucJH?ypkb!{1d?h`RgTDL^1^0Bk{&i5eg7e_qXjXHj7pgXs6s|pTioN2Xo9m;- zDEdjEds0eVnvo_8Q)7Oxc1?LhYx;2>i*R4J1BX9%d}?ZYmQwv7WxfDIY(l~&gZYX6 z8jrVbH#xk^IY4mNB&}HoE+yRMv$!R019%qv(fX5|g*?k_djtHDkxA18-#G8dvhq zTzR3}<72S>d(#5JW4YcfwF`Z`17|Q4pYJPAQx7ue*4k_y0cs z=Xsy=yw9aVg$n;0wG!M;44?;H(e@2*FoN&@DyTl(zyzi=a=FOo(rYO#jfb+WWqKSZS@qvX*_Q7aXQ*} z77@G>$$fFXzKu{FAJO0BV^!S0TtsjflZo}!46)ylw=ToaByKkwJ5q=XW7G}w3z;NQ z$1mZ-c$gtLjzvWTYeEJMbeY+&jlF}on<3T+s-@4<1nZcUSbs)3q>4YP2>+1A#Y0|AHpfcr%NN~twqQk zLL*OU?XMzOEsU*4(o2?#&BDw749iN0^~N(lgvY!T28FL|3H zi|gpdYuv#r;mQa-+KcVNqdhJ>Qe-DgXcg literal 0 HcmV?d00001 diff --git a/editor/images/json.png b/editor/images/typedInput/json.png similarity index 100% rename from editor/images/json.png rename to editor/images/typedInput/json.png diff --git a/editor/images/re.png b/editor/images/typedInput/re.png similarity index 100% rename from editor/images/re.png rename to editor/images/typedInput/re.png diff --git a/editor/js/ui/typedInput.js b/editor/js/ui/typedInput.js index fdb3c8661..294ce2517 100644 --- a/editor/js/ui/typedInput.js +++ b/editor/js/ui/typedInput.js @@ -18,11 +18,11 @@ msg: {value:"msg",label:"msg.",validate:/^[a-zA-Z_][a-zA-Z0-9_]*(\.[a-zA-Z_][a-zA-Z0-9_]+)*/i}, flow: {value:"flow",label:"flow.",validate:/^[a-zA-Z_][a-zA-Z0-9_]*(\.[a-zA-Z_][a-zA-Z0-9_]+)*/i}, global: {value:"global",label:"global.",validate:/^[a-zA-Z_][a-zA-Z0-9_]*(\.[a-zA-Z_][a-zA-Z0-9_]+)*/i}, - str: {value:"str",label:"string",icon:"red/images/az.png"}, - num: {value:"num",label:"number",icon:"red/images/09.png",validate:/^[+-]?[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?$/}, - bool: {value:"bool",label:"boolean",icon:"red/images/bool.png",options:["true","false"]}, - json: {value:"json",label:"JSON",icon:"red/images/json.png", validate: function(v) { try{JSON.parse(v);return true;}catch(e){return false;}}}, - re: {value:"re",label:"regular expression",icon:"red/images/re.png"} + str: {value:"str",label:"string",icon:"red/images/typedInput/az.png"}, + num: {value:"num",label:"number",icon:"red/images/typedInput/09.png",validate:/^[+-]?[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?$/}, + bool: {value:"bool",label:"boolean",icon:"red/images/typedInput/bool.png",options:["true","false"]}, + json: {value:"json",label:"JSON",icon:"red/images/typedInput/json.png", validate: function(v) { try{JSON.parse(v);return true;}catch(e){return false;}}}, + re: {value:"re",label:"regular expression",icon:"red/images/typedInput/re.png"} }; var nlsd = false;