Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' into cc

  • Loading branch information...
commit 81dabab0a85dc3ad645f73ff4300fa92ee1154b8 2 parents 98d391f + d991176
@nikhilk authored
Showing with 1,852 additions and 10,556 deletions.
  1. +1 −0  .gitignore
  2. +10 −8 License.txt
  3. +13 −0 Notice.txt
  4. +0 −27 bin/cleanup.bat
  5. +0 −86 bin/setup.bat
  6. +13 −0 docs/History.txt
  7. BIN  docs/Package.png
  8. BIN  docs/PackageLib.png
  9. BIN  ext/FxCopSdk.dll
  10. +0 −4 ext/MSBuildTasks/Info.txt
  11. BIN  ext/MSBuildTasks/MSBuild.Community.Tasks.v1.2.0.306.zip
  12. BIN  ext/Microsoft.Cci.dll
  13. BIN  old/AspNetWebServer.zip
  14. BIN  old/GadgetTemplate.zip
  15. BIN  old/Setup.zip
  16. BIN  old/VisualStudio.zip
  17. BIN  old/WindowsLib.zip
  18. +27 −22 samples/AroundMe/AroundMe.sln
  19. +77 −38 samples/AroundMe/AroundMe/AroundMe.csproj
  20. +8 −9 samples/AroundMe/{AroundMeWeb/Views/Home/Index.aspx → AroundMe/Content/AroundMe.htm}
  21. 0  samples/AroundMe/{AroundMeWeb → AroundMe}/Content/CloseButton.png
  22. 0  samples/AroundMe/{AroundMeWeb → AroundMe}/Content/Dot.png
  23. 0  samples/AroundMe/{AroundMeWeb → AroundMe}/Content/Flickr.png
  24. 0  samples/AroundMe/{AroundMeWeb → AroundMe}/Content/Heart.png
  25. 0  samples/AroundMe/{AroundMeWeb → AroundMe}/Content/Location.png
  26. 0  samples/AroundMe/{AroundMeWeb → AroundMe}/Content/PlaceHolder.png
  27. 0  samples/AroundMe/{AroundMeWeb → AroundMe}/Content/ProgressBar.gif
  28. 0  samples/AroundMe/{AroundMeWeb → AroundMe}/Content/Pushpin.png
  29. 0  samples/AroundMe/{AroundMeWeb → AroundMe}/Content/Reset.png
  30. 0  samples/AroundMe/{AroundMeWeb → AroundMe}/Content/Search.png
  31. 0  samples/AroundMe/{AroundMeWeb → AroundMe}/Content/Site.css
  32. 0  samples/AroundMe/{AroundMeWeb → AroundMe}/Content/Twitter.png
  33. +7 −3 samples/AroundMe/AroundMe/Page.cs
  34. +5 −5 samples/AroundMe/AroundMe/Properties/AssemblyInfo.cs
  35. +0 −6 samples/AroundMe/AroundMe/Properties/{AroundMe.ruleset → FxCop.ruleset}
  36. 0  ...ojectTemplates/ClassLibrary/ClassLibrary.script → samples/AroundMe/AroundMe/Properties/Script.template
  37. +6 −0 samples/AroundMe/AroundMe/packages.config
  38. +25 −0 samples/AroundMe/AroundMeTests.testsettings
  39. +8 −3 samples/AroundMe/AroundMeTests/AroundMeTests.csproj
  40. +8 −24 samples/AroundMe/AroundMeTests/DefaultTests.cs
  41. +4 −3 samples/AroundMe/AroundMeTests/Properties/AssemblyInfo.cs
  42. +0 −21 samples/AroundMe/AroundMeTests/Web/Default.htm
  43. +5 −1 samples/AroundMe/AroundMeTests/Web/QUnitExt.js
  44. +4 −0 samples/AroundMe/AroundMeTests/packages.config
  45. +0 −117 samples/AroundMe/AroundMeWeb/AroundMeWeb.csproj
  46. +0 −1,825 samples/AroundMe/AroundMeWeb/Content/Scripts/mscorlib.debug.js
  47. +0 −1  samples/AroundMe/AroundMeWeb/Content/Scripts/mscorlib.js
  48. +0 −24 samples/AroundMe/AroundMeWeb/Controllers/HomeController.cs
  49. +0 −42 samples/AroundMe/AroundMeWeb/DynamicViewPage.cs
  50. +0 −1  samples/AroundMe/AroundMeWeb/Global.asax
  51. +0 −29 samples/AroundMe/AroundMeWeb/Global.asax.cs
  52. +0 −16 samples/AroundMe/AroundMeWeb/Properties/AssemblyInfo.cs
  53. +0 −25 samples/AroundMe/AroundMeWeb/Views/web.config
  54. +0 −37 samples/AroundMe/AroundMeWeb/web.config
  55. +2 −2 samples/{BingMapsDemo/BingMapsWeb/Default.htm → AroundMe/MapDemo/Map.htm}
  56. +18 −0 samples/AroundMe/MapDemo/MapApplication.cs
  57. +57 −0 samples/AroundMe/MapDemo/MapDemo.csproj
  58. +3 −3 samples/{BingMapsDemo/BingMapsApp/BingMapsShell.cs → AroundMe/MapDemo/MapPage.cs}
  59. +22 −0 samples/AroundMe/MapDemo/Properties/AssemblyInfo.cs
  60. +0 −6 .../{FishTankDemo/FishTankApp/Properties/FishTankApp.ruleset → AroundMe/MapDemo/Properties/FxCop.ruleset}
  61. 0  .../ProjectTemplates/Application/Application.script → samples/AroundMe/MapDemo/Properties/Script.template
  62. +6 −0 samples/AroundMe/MapDemo/packages.config
  63. +4 −3 samples/AroundMe/Twitter/Properties/AssemblyInfo.cs
  64. +5 −0 {src/Tools/Templates/ProjectTemplates/ImportLibrary → samples/AroundMe/Twitter/Properties}/ScriptInfo.txt
  65. +0 −1  samples/AroundMe/Twitter/Twitter.cs
  66. +17 −17 samples/AroundMe/Twitter/Twitter.csproj
  67. +5 −0 samples/AroundMe/Twitter/packages.config
  68. BIN  samples/AroundMe/packages/nuget.exe
  69. +16 −0 samples/AroundMe/packages/nuget.targets
  70. +7 −0 samples/AroundMe/packages/repositories.config
  71. +0 −58 samples/BingMapsDemo/BingMapsApp/BingMapsApp.csproj
  72. +0 −20 samples/BingMapsDemo/BingMapsApp/BingMapsApplication.cs
  73. +0 −20 samples/BingMapsDemo/BingMapsApp/Properties/AssemblyInfo.cs
  74. +0 −26 samples/BingMapsDemo/BingMapsDemo.sln
  75. +0 −77 samples/BingMapsDemo/BingMapsWeb/BingMapsWeb.csproj
  76. 0  samples/{FishTankDemo/FishTankApp → FishTank}/Fish.cs
  77. 0  samples/{FishTankDemo/FishTankWeb/Fishes.png → FishTank/FishSprites.png}
  78. 0  samples/{FishTankDemo/FishTankApp → FishTank}/FishTank.cs
  79. +65 −0 samples/FishTank/FishTank.csproj
  80. +5 −10 samples/{FishTankDemo/FishTankWeb/Default.htm → FishTank/FishTank.htm}
  81. 0  samples/{FishTankDemo/FishTankWeb → FishTank}/FishTank.jpg
  82. +20 −0 samples/FishTank/FishTank.sln
  83. +2 −0  samples/{FishTankDemo/FishTankApp → FishTank}/FishTankApplication.cs
  84. +5 −5 samples/{FishTankDemo/FishTankApp → FishTank}/Properties/AssemblyInfo.cs
  85. +1 −1  ...tes/ProjectTemplates/jQueryApplication/Application.ruleset → samples/FishTank/Properties/FxCop.ruleset
  86. 0  samples/{FishTankDemo/FishTankApp/Properties/FishTankApp.script → FishTank/Properties/Script.template}
  87. +6 −0 samples/FishTank/packages.config
  88. BIN  samples/FishTank/packages/nuget.exe
  89. +16 −0 samples/FishTank/packages/nuget.targets
  90. +4 −0 samples/FishTank/packages/repositories.config
  91. +0 −55 samples/FishTankDemo/FishTankApp/FishTankApp.csproj
  92. +0 −45 samples/FishTankDemo/FishTankDemo.sln
  93. +0 −53 samples/PhotoDemo/Flickr/Flickr.csproj
  94. +0 −6 samples/PhotoDemo/Flickr/Properties/Flickr.script
  95. +0 −65 samples/PhotoDemo/Gallery/Gallery.csproj
  96. +0 −107 samples/PhotoDemo/Gallery/Properties/Gallery.ruleset
  97. +0 −6 samples/PhotoDemo/Gallery/Properties/Gallery.script
  98. +0 −21 samples/PhotoDemo/GalleryTests/Web/Gallery.htm
  99. +0 −112 samples/PhotoDemo/GalleryTests/Web/QUnit.css
  100. +0 −1,043 samples/PhotoDemo/GalleryTests/Web/QUnit.js
  101. +0 −4 samples/PhotoDemo/Interestingness/Content/Core.css
  102. +0 −6 samples/PhotoDemo/Interestingness/Content/Flyout.css
  103. +0 −11 samples/PhotoDemo/Interestingness/Content/Flyout.htm
  104. +0 −5 samples/PhotoDemo/Interestingness/Content/Gadget.css
  105. +0 −18 samples/PhotoDemo/Interestingness/Content/Gadget.htm
  106. BIN  samples/PhotoDemo/Interestingness/Content/Gadget.png
  107. +0 −23 samples/PhotoDemo/Interestingness/Content/Gadget.xml
  108. BIN  samples/PhotoDemo/Interestingness/Content/GadgetIcon.png
  109. BIN  samples/PhotoDemo/Interestingness/Content/Logo.png
  110. +0 −4 samples/PhotoDemo/Interestingness/Content/Settings.css
  111. +0 −19 samples/PhotoDemo/Interestingness/Content/Settings.htm
  112. +0 −112 samples/PhotoDemo/Interestingness/GadgetScriptlet.cs
  113. +0 −84 samples/PhotoDemo/Interestingness/Gallery.cs
  114. +0 −76 samples/PhotoDemo/Interestingness/Interestingness.csproj
  115. +0 −22 samples/PhotoDemo/Interestingness/Properties/AssemblyInfo.cs
  116. +0 −107 samples/PhotoDemo/Interestingness/Properties/Interestingness.ruleset
  117. +0 −44 samples/PhotoDemo/Interestingness/Properties/Interestingness.script
  118. +0 −36 samples/PhotoDemo/Interestingness/SettingsScriptlet.cs
  119. +0 −44 samples/PhotoDemo/PhotoDemo.sln
  120. +0 −1,137 samples/PhotoDemo/PhotoWeb/Content/Scripts/jquery.bbq.js
  121. +0 −486 samples/PhotoDemo/PhotoWeb/Content/Scripts/jquery.tmpl.js
  122. +0 −344 samples/PhotoDemo/PhotoWeb/Content/Site.css
  123. +0 −19 samples/PhotoDemo/PhotoWeb/Controllers/HomeController.cs
  124. +0 −1  samples/PhotoDemo/PhotoWeb/Global.asax
  125. +0 −34 samples/PhotoDemo/PhotoWeb/Global.asax.cs
  126. +0 −119 samples/PhotoDemo/PhotoWeb/PhotoWeb.csproj
  127. +0 −35 samples/PhotoDemo/PhotoWeb/Properties/AssemblyInfo.cs
  128. +0 −11 samples/PhotoDemo/PhotoWeb/Views/Shared/Error.aspx
  129. +0 −35 samples/PhotoDemo/PhotoWeb/Views/Web.config
  130. +0 −27 samples/PhotoDemo/PhotoWeb/web.config
  131. +0 −32 samples/PhotoGrid/PhotoGrid.sln
  132. +0 −25 samples/PhotoGrid/PhotoGrid/Properties/AssemblyInfo.cs
  133. +0 −108 samples/PhotoGrid/PhotoGrid/Properties/PhotoGrid.ruleset
  134. +0 −8 samples/PhotoGrid/PhotoGrid/Properties/PhotoGridDictionary.xml
  135. +0 −1,137 samples/PhotoGrid/PhotoGridWeb/Content/Scripts/jquery.bbq.js
  136. +0 −40 samples/PhotoGrid/PhotoGridWeb/Content/Scripts/jquery.isotope.min.js
  137. +0 −472 samples/PhotoGrid/PhotoGridWeb/Content/Scripts/jquery.lightbox-0.5.js
  138. +0 −486 samples/PhotoGrid/PhotoGridWeb/Content/Scripts/jquery.tmpl.js
  139. +0 −35 samples/PhotoGrid/PhotoGridWeb/Properties/AssemblyInfo.cs
  140. +0 −6 samples/PhotoGrid/PhotoGridWeb/web.config
  141. +29 −28 samples/{PhotoGrid → Photos}/PhotoGrid/PhotoGrid.csproj
  142. +2 −2 samples/{PhotoGrid → Photos}/PhotoGrid/PhotoGridPage.cs
  143. +22 −0 samples/Photos/PhotoGrid/Properties/AssemblyInfo.cs
  144. +0 −6 samples/{PhotoDemo/Flickr/Properties/Flickr.ruleset → Photos/PhotoGrid/Properties/FxCop.ruleset}
  145. 0  ...Templates/jQueryClassLibrary/ClassLibrary.script → samples/Photos/PhotoGrid/Properties/Script.template
  146. +7 −0 samples/Photos/PhotoGrid/packages.config
  147. +7 −8 samples/{PhotoDemo/Gallery → Photos/PhotoList}/GalleryPlugin.cs
  148. +3 −3 samples/{PhotoDemo/Gallery/Interestingness.cs → Photos/PhotoList/ListPage.cs}
  149. +69 −0 samples/Photos/PhotoList/PhotoList.csproj
  150. +4 −4 samples/{PhotoDemo/Gallery → Photos/PhotoList}/Properties/AssemblyInfo.cs
  151. +0 −6 .../{BingMapsDemo/BingMapsApp/Properties/BingMapsApp.ruleset → Photos/PhotoList/Properties/FxCop.ruleset}
  152. 0  ...ctTemplates/jQueryApplication/Application.script → samples/Photos/PhotoList/Properties/Script.template
  153. +2 −2 samples/{PhotoDemo/Gallery → Photos/PhotoList}/Tests/GalleryPluginTests.cs
  154. +6 −6 samples/{PhotoDemo/Gallery/Tests/MockPhotoService.cs → Photos/PhotoList/Tests/MockFlickrService.cs}
  155. +8 −0 samples/Photos/PhotoList/packages.config
  156. +25 −0 samples/Photos/PhotoListTests.testsettings
  157. +6 −9 samples/{PhotoDemo/GalleryTests → Photos/PhotoListTests}/GalleryPluginTests.cs
  158. +12 −6 samples/{PhotoDemo/GalleryTests/GalleryTests.csproj → Photos/PhotoListTests/PhotoListTests.csproj}
  159. +4 −4 samples/{PhotoDemo/GalleryTests → Photos/PhotoListTests}/Properties/AssemblyInfo.cs
  160. +23 −0 samples/Photos/PhotoListTests/Web/GalleryPluginTests.htm
  161. 0  {src/Tools/Testing/WebServer/Content → samples/Photos/PhotoListTests/Web}/QUnit.css
  162. 0  {src/Tools/Testing/WebServer/Content → samples/Photos/PhotoListTests/Web}/QUnit.js
  163. +2 −1  {src/Tools/Templates/ProjectTemplates/UnitTest → samples/Photos/PhotoListTests/Web}/QUnitExt.js
  164. +4 −0 samples/Photos/PhotoListTests/packages.config
  165. +55 −0 samples/Photos/Photos.sln
  166. +6 −34 samples/{PhotoDemo/Flickr → Photos/Photos/FlickrClient}/Flickr.cs
  167. +39 −0 samples/Photos/Photos/FlickrClient/Json.cs
  168. +9 −38 samples/{PhotoGrid/PhotoGrid/Flickr/FlickrService.cs → Photos/Photos/FlickrPhotoService.cs}
  169. +14 −0 samples/Photos/Photos/IPhotoService.cs
  170. +2 −2 samples/{PhotoGrid/PhotoGrid/Flickr → Photos/Photos}/Photo.cs
  171. +58 −0 samples/Photos/Photos/Photos.csproj
  172. +3 −3 samples/{PhotoDemo/Flickr → Photos/Photos}/Properties/AssemblyInfo.cs
  173. +101 −0 samples/Photos/Photos/Properties/FxCop.ruleset
  174. 0  ...es/{BingMapsDemo/BingMapsApp/Properties/BingMapsApp.script → Photos/Photos/Properties/Script.template}
  175. +6 −0 samples/Photos/Photos/packages.config
  176. 0  samples/{PhotoGrid/PhotoGridWeb → Photos/PhotosWeb}/Content/Images/lightbox-blank.gif
  177. 0  samples/{PhotoGrid/PhotoGridWeb → Photos/PhotosWeb}/Content/Images/lightbox-btn-close.gif
  178. 0  samples/{PhotoGrid/PhotoGridWeb → Photos/PhotosWeb}/Content/Images/lightbox-btn-next.gif
  179. 0  samples/{PhotoGrid/PhotoGridWeb → Photos/PhotosWeb}/Content/Images/lightbox-btn-prev.gif
  180. 0  samples/{PhotoGrid/PhotoGridWeb → Photos/PhotosWeb}/Content/Images/lightbox-ico-loading.gif
  181. 0  samples/{PhotoGrid/PhotoGridWeb → Photos/PhotosWeb}/Content/jquery.lightbox-0.5.css
  182. +7 −8 samples/{PhotoGrid/PhotoGridWeb/Default.htm → Photos/PhotosWeb/PhotoGrid.htm}
  183. +10 −13 samples/{PhotoDemo/PhotoWeb/Views/Home/Index.aspx → Photos/PhotosWeb/PhotoList.htm}
  184. +40 −25 samples/{PhotoGrid/PhotoGridWeb/PhotoGridWeb.csproj → Photos/PhotosWeb/PhotosWeb.csproj}
  185. +2 −4 samples/{BingMapsDemo/BingMapsWeb → Photos/PhotosWeb}/Properties/AssemblyInfo.cs
  186. +4 −0 samples/Photos/PhotosWeb/packages.config
  187. 0  samples/{PhotoGrid → Photos}/Plugins/Isotope.cs
  188. 0  samples/{PhotoGrid → Photos}/Plugins/LightBox.cs
  189. +20 −15 samples/{PhotoGrid → Photos}/Plugins/Plugins.csproj
  190. +3 −3 samples/{PhotoGrid → Photos}/Plugins/Properties/AssemblyInfo.cs
  191. +12 −0 samples/Photos/Plugins/Properties/ScriptInfo.txt
  192. +6 −0 samples/Photos/Plugins/packages.config
  193. BIN  samples/Photos/packages/nuget.exe
  194. +16 −0 samples/Photos/packages/nuget.targets
  195. +9 −0 samples/Photos/packages/repositories.config
  196. BIN  setup/DialogBackground.bmp
  197. BIN  setup/DialogHeader.bmp
  198. +0 −68 setup/License.rtf
  199. BIN  setup/ScriptSharp.ico
  200. +0 −430 setup/ScriptSharp.wxs
  201. +0 −2  setup/ScriptSharpLink.txt
  202. +0 −2  setup/ScriptSharpTwitterLink.txt
  203. +0 −24 setup/build.bat
  204. +12 −3 src/{Tools → Core}/Build/Build.csproj
  205. +86 −0 src/Core/Build/Generators/ResXCodeBuilder.cs
  206. 0  src/{Tools → Core}/Build/Properties/AssemblyInfo.cs
  207. +67 −0 src/Core/Build/ScriptSharp.targets
  208. +83 −0 src/Core/Build/Tasks/ResXCodeGeneratorTask.cs
  209. 0  src/{Tools → Core}/Build/Tasks/ScriptCompilerExecTask.cs
  210. +4 −10 src/{Tools → Core}/Build/Tasks/ScriptCompilerTask.cs
  211. 0  src/{Tools → Core}/Build/Tasks/ScriptPreprocessorTask.cs
  212. 0  src/{Tools → Core}/Compiler/Application.cs
  213. 0  src/{Tools → Core}/Compiler/Compiler.csproj
  214. 0  src/{Tools → Core}/Compiler/Properties/AssemblyInfo.cs
  215. 0  src/{Libraries → Core}/CoreLib/Action.cs
  216. 0  src/{Libraries → Core}/CoreLib/Arguments.cs
  217. 0  src/{Libraries → Core}/CoreLib/Array.cs
  218. 0  src/{Libraries → Core}/CoreLib/Boolean.cs
  219. 0  src/{Libraries → Core}/CoreLib/Byte.cs
  220. 0  src/{Libraries → Core}/CoreLib/Callback.cs
  221. 0  src/{Libraries → Core}/CoreLib/CancelEventArgs.cs
  222. 0  src/{Libraries → Core}/CoreLib/Char.cs
  223. 0  src/{Libraries → Core}/CoreLib/Collections/ArrayAggregator.cs
  224. 0  src/{Libraries → Core}/CoreLib/Collections/ArrayCallback.cs
  225. 0  src/{Libraries → Core}/CoreLib/Collections/ArrayFilterCallback.cs
  226. 0  src/{Libraries → Core}/CoreLib/Collections/ArrayGrouping.cs
  227. 0  src/{Libraries → Core}/CoreLib/Collections/ArrayItemAggregator.cs
  228. 0  src/{Libraries → Core}/CoreLib/Collections/ArrayItemCallback.cs
  229. 0  src/{Libraries → Core}/CoreLib/Collections/ArrayItemFilterCallback.cs
  230. 0  src/{Libraries → Core}/CoreLib/Collections/ArrayItemKeyGenerator.cs
  231. 0  src/{Libraries → Core}/CoreLib/Collections/ArrayItemMapCallback.cs
  232. +187 −187 src/{Libraries → Core}/CoreLib/Collections/ArrayList.cs
  233. 0  src/{Libraries → Core}/CoreLib/Collections/ArrayMapCallback.cs
  234. 0  src/{Libraries → Core}/CoreLib/Collections/Dictionary.cs
  235. 0  src/{Libraries → Core}/CoreLib/Collections/DictionaryEntry.cs
  236. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/CompareCallback.cs
  237. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/Dictionary.cs
  238. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/ICollection.cs
  239. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/IEnumerable.cs
  240. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/IEnumerator.cs
  241. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/IReadonlyCollection.cs
  242. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/KeyValuePair.cs
  243. +188 −188 src/{Libraries → Core}/CoreLib/Collections/Generic/List.cs
  244. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/ListAggregator.cs
  245. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/ListCallback.cs
  246. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/ListFilterCallback.cs
  247. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/ListGrouping.cs
  248. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/ListItemAggregator.cs
  249. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/ListItemCallback.cs
  250. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/ListItemFilterCallback.cs
  251. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/ListItemKeyGenerator.cs
  252. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/ListItemMapCallback.cs
  253. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/ListMapCallback.cs
  254. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/ObservableCollection.cs
  255. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/Queue.cs
  256. 0  src/{Libraries → Core}/CoreLib/Collections/Generic/Stack.cs
  257. 0  src/{Libraries → Core}/CoreLib/Collections/ICollection.cs
  258. 0  src/{Libraries → Core}/CoreLib/Collections/IEnumerable.cs
  259. 0  src/{Libraries → Core}/CoreLib/Collections/IEnumerator.cs
  260. 0  src/{Libraries → Core}/CoreLib/Collections/IReadonlyCollection.cs
  261. 0  src/{Libraries → Core}/CoreLib/Collections/ObservableCollection.cs
  262. 0  src/{Libraries → Core}/CoreLib/Collections/Queue.cs
  263. 0  src/{Libraries → Core}/CoreLib/Collections/Stack.cs
  264. 0  src/{Libraries → Core}/CoreLib/CompareCallback.cs
  265. 0  src/{Libraries → Core}/CoreLib/ComponentModel/DependencyAttribute.cs
  266. 0  src/{Libraries → Core}/CoreLib/ComponentModel/IApplication.cs
  267. 0  src/{Libraries → Core}/CoreLib/ComponentModel/IContainer.cs
  268. 0  src/{Libraries → Core}/CoreLib/ComponentModel/IEventManager.cs
  269. 0  src/{Libraries → Core}/CoreLib/ComponentModel/IInitializable.cs
  270. 0  src/{Libraries → Core}/CoreLib/ComponentModel/IObserver.cs
  271. 0  src/{Libraries → Core}/CoreLib/ComponentModel/Observable.cs
  272. 0  src/{Libraries → Core}/CoreLib/ComponentModel/ObserverManager.cs
  273. 0  src/{Libraries → Core}/CoreLib/CoreLib.csproj
  274. 0  src/{Libraries → Core}/CoreLib/Date.cs
  275. 0  src/{Libraries → Core}/CoreLib/Decimal.cs
  276. 0  src/{Libraries → Core}/CoreLib/Delegate.cs
  277. 0  src/{Libraries → Core}/CoreLib/Diagnostics/ConditionalAttribute.cs
  278. 0  src/{Libraries → Core}/CoreLib/Diagnostics/Debug.cs
  279. 0  src/{Libraries → Core}/CoreLib/Diagnostics/SuppressMessageAttribute.cs
  280. 0  src/{Libraries → Core}/CoreLib/Diagnostics/SyntaxValidationAttribute.cs
  281. 0  src/{Libraries → Core}/CoreLib/Double.cs
  282. 0  src/{Libraries → Core}/CoreLib/Enum.cs
  283. 0  src/{Libraries → Core}/CoreLib/EventArgs.cs
  284. 0  src/{Libraries → Core}/CoreLib/EventHandler.cs
  285. +61 −61 src/{Libraries → Core}/CoreLib/Exception.cs
  286. 0  src/{Libraries → Core}/CoreLib/Func.cs
  287. 0  src/{Libraries → Core}/CoreLib/Function.cs
  288. 0  src/{Libraries → Core}/CoreLib/Globalization/CultureInfo.cs
  289. 0  src/{Libraries → Core}/CoreLib/Globalization/DateFormatInfo.cs
  290. 0  src/{Libraries → Core}/CoreLib/Globalization/NumberFormatInfo.cs
  291. 0  src/{Libraries → Core}/CoreLib/IDisposable.cs
  292. 0  src/{Libraries → Core}/CoreLib/Int16.cs
  293. 0  src/{Libraries → Core}/CoreLib/Int32.cs
  294. 0  src/{Libraries → Core}/CoreLib/Int64.cs
  295. 0  src/{Libraries → Core}/CoreLib/Math.cs
  296. 0  src/{Libraries → Core}/CoreLib/Nullable.cs
  297. 0  src/{Libraries → Core}/CoreLib/Number.cs
  298. 0  src/{Libraries → Core}/CoreLib/Object.cs
  299. 0  src/{Libraries → Core}/CoreLib/Properties/AssemblyInfo.cs
  300. 0  src/{Libraries → Core}/CoreLib/Record.cs
Sorry, we could not display the entire diff because too many files (579) changed.
View
1  .gitignore
@@ -5,3 +5,4 @@ obj/
*.cache
*.trx
Scripts/
+packages/
View
18 License.txt
@@ -1,4 +1,7 @@
-
+ Script# Project
+ Copyright 2012, Script# Project
+ Copyright 2012, Nikhil Kothari
+
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
@@ -36,8 +39,7 @@
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
+ copyright notice that is included in or attached to the work.
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
@@ -105,20 +107,20 @@
excluding those notices that do not pertain to any part of
the Derivative Works; and
- (d) If the Work includes a "NOTICE" text file as part of its
+ (d) If the Work includes a "License.txt" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
+ within such License.txt file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
+ of the following places: within a License.txt text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
+ of the License.txt file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
+ or as an addendum to the License.txt text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
View
13 Notice.txt
@@ -0,0 +1,13 @@
+Script# Project
+Copyright 2012, Script# Project
+Copyright 2012, Nikhil Kothari
+
+Script# is licensed under the Apache License v2.0 (see License.txt).
+Script# also includes works distributed under the licenses listed below.
+
+Mono Cecil
+--------------
+Website: https://github.com/jbevain/cecil
+Copyright: Copyright (c) 2008 - 2011 Jb Evain
+License: The MIT License
+ http://opensource.org/licenses/mit-license.php
View
27 bin/cleanup.bat
@@ -1,27 +0,0 @@
-@echo off
-
-REM This script cleans up what setup.bat does.
-REM It must be run within an Administrator command prompt.
-
-@echo Cleaning GAC entries...
-gacutil /nologo /uf ScriptSharp
-gacutil /nologo /uf ScriptSharp.Build
-gacutil /nologo /uf ScriptSharp.Testing
-gacutil /nologo /uf ScriptSharp.VisualStudio
-
-set InstallDir=%ProgramFiles(x86)%
-if "%InstallDir%" == "" set InstallDir=%ProgramFiles%
-
-@echo Removing script# folder...
-rd /s /q "%InstallDir%\ScriptSharp\v1.0"
-
-if "%1" neq "includeTemplates" goto Done
-
-:Templates
-@echo Cleaning up templates...
-set IDEDir="%VSINSTALLDIR%"\Common7\IDE
-rd /s /q "%IDEDir%"\ProjectTemplates\CSharp\Script#
-rd /s /q "%IDEDir%"\ItemTemplates\CSharp\Script#
-%IDEDir%\devenv.exe /installvstemplates
-
-:Done
View
86 bin/setup.bat
@@ -1,86 +0,0 @@
-@echo off
-
-REM This script installs a script# build (over what the msi installs)
-REM It must be run within an Administrator command prompt.
-
-set InstallDir=%ProgramFiles(x86)%
-if "%InstallDir%" == "" set InstallDir=%ProgramFiles%
-
-mkdir "%InstallDir%\ScriptSharp\v1.0\Framework"
-mkdir "%InstallDir%\ScriptSharp\v1.0\CodeAnalysis"
-
-@echo Copying binaries...
-copy /y Debug\ssc.exe "%InstallDir%\ScriptSharp\v1.0"
-copy /y Debug\sspp.exe "%InstallDir%\ScriptSharp\v1.0"
-copy /y Debug\ScriptSharp.dll "%InstallDir%\ScriptSharp\v1.0"
-copy /y Debug\ScriptSharp.Build.dll "%InstallDir%\ScriptSharp\v1.0"
-copy /y Debug\ScriptSharp.Testing.dll "%InstallDir%\ScriptSharp\v1.0"
-copy /y Debug\ScriptSharp.VisualStudio.dll "%InstallDir%\ScriptSharp\v1.0"
-copy /y Debug\ScriptSharp.FxCop.dll "%InstallDir%\ScriptSharp\v1.0\CodeAnalysis"
-copy /y Debug\ScriptSharp.targets "%InstallDir%\ScriptSharp\v1.0"
-
-@echo Adding GAC entries...
-gacutil /nologo /if "%InstallDir%\ScriptSharp\v1.0\ScriptSharp.dll
-gacutil /nologo /if "%InstallDir%\ScriptSharp\v1.0\ScriptSharp.Build.dll
-gacutil /nologo /if "%InstallDir%\ScriptSharp\v1.0\ScriptSharp.Testing.dll"
-gacutil /nologo /if "%InstallDir%\ScriptSharp\v1.0\ScriptSharp.VisualStudio.dll"
-
-@echo Copying scripts...
-copy /y ref\mscorlib.js "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y ref\mscorlib.debug.js "%InstallDir%\ScriptSharp\v1.0\Framework"
-
-@echo Copying assemblies...
-copy /y Debug\mscorlib.dll "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\mscorlib.xml "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.Web.dll "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.Web.xml "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.Windows.dll "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.Windows.xml "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.dll "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.xml "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.txt "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.UI.dll "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.UI.xml "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.UI.txt "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.History.dll "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.History.xml "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.History.txt "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.Templating.dll "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.Templating.xml "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.Templating.txt "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.Validation.dll "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.Validation.xml "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.jQuery.Validation.txt "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.Knockout.dll "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.Knockout.xml "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.Knockout.txt "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.Microsoft.BingMaps.dll "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.Microsoft.BingMaps.xml "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.Microsoft.BingMaps.txt "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.Sharpen.Framework.dll "%InstallDir%\ScriptSharp\v1.0\Framework"
-copy /y Debug\Script.Sharpen.Framework.xml "%InstallDir%\ScriptSharp\v1.0\Framework"
-
-if "%1" neq "includeTemplates" goto Done
-
-:Templates
-@echo Setting up templates...
-set IDEDir="%VSINSTALLDIR%"Common7\IDE
-mkdir "%IDEDir%"\ProjectTemplates\CSharp\Script#
-mkdir "%IDEDir%"\ItemTemplates\CSharp\Script#
-copy /y Debug\Templates\Script#.VSTDIR %IDEDir%\ProjectTemplates\CSharp\Script#
-copy /y Debug\Templates\ProjectTemplates\ClassLibrary.zip %IDEDir%\ProjectTemplates\CSharp\Script#
-copy /y Debug\Templates\ProjectTemplates\jQueryClassLibrary.zip %IDEDir%\ProjectTemplates\CSharp\Script#
-copy /y Debug\Templates\ProjectTemplates\Gadget.zip %IDEDir%\ProjectTemplates\CSharp\Script#
-copy /y Debug\Templates\ProjectTemplates\UnitTest.zip %IDEDir%\ProjectTemplates\CSharp\Script#
-copy /y Debug\Templates\ProjectTemplates\ImportLibrary.zip %IDEDir%\ProjectTemplates\CSharp\Script#
-copy /y Debug\Templates\Script#.VSTDIR %IDEDir%\ItemTemplates\CSharp\Script#
-copy /y Debug\Templates\ItemTemplates\Class.zip %IDEDir%\ItemTemplates\CSharp\Script#
-copy /y Debug\Templates\ItemTemplates\Page.zip %IDEDir%\ItemTemplates\CSharp\Script#
-copy /y Debug\Templates\ItemTemplates\jQueryPage.zip %IDEDir%\ItemTemplates\CSharp\Script#
-copy /y Debug\Templates\ItemTemplates\jQueryPlugin.zip %IDEDir%\ItemTemplates\CSharp\Script#
-copy /y Debug\Templates\ItemTemplates\Resource.zip %IDEDir%\ItemTemplates\CSharp\Script#
-copy /y Debug\Templates\ItemTemplates\Scriptlet.zip %IDEDir%\ItemTemplates\CSharp\Script#
-copy /y Debug\Templates\ItemTemplates\TestClass.zip %IDEDir%\ItemTemplates\CSharp\Script#
-%IDEDir%\devenv.exe /installvstemplates
-
-:Done
View
13 docs/History.txt
@@ -26,6 +26,19 @@ v0.7.5.0 [in progress]
- [git #187] Support for writing 'new Image()'
- [git #189] Fixed jQuery.when metadata
- [git #201] Strongly typed some Knockout API (KnockoutMapping)
+ - Nuget packages for compiler, and individual import libraries
+ - VSIX-based approach for getting script# and associated templates
+ - Breaking changes:
+ - In a csproj, the TemplateFile property has been changed to ScriptTemplate
+ - When creating a project there is no prompt to setup a DeploymentPath
+ ... but for now, msbuild support continues to exist (via manual edit)
+ ... will potentially be replaced eventually.
+ - No more support for WebAppParitioning. If you were compiling multiple script
+ files out of a single c# project, this feature is gone. You can switch your
+ msbuild scripts to use the ScriptCompilerExecTask, instead of ScriptCompilerTask
+ and invoke the compiler multiple times for each script file, passing in exactly
+ the right set of sources for each script file to be generated.
+ - Removed Script.Windows.dll and gadget project
v0.7.4.0
- Fix/update bing maps metadata bug
View
BIN  docs/Package.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  docs/PackageLib.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  ext/FxCopSdk.dll
Binary file not shown
View
4 ext/MSBuildTasks/Info.txt
@@ -1,4 +0,0 @@
-MSBuild Community Tasks
-
-http://msbuildtasks.tigris.org/
-v1.2.0.306
View
BIN  ext/MSBuildTasks/MSBuild.Community.Tasks.v1.2.0.306.zip
Binary file not shown
View
BIN  ext/Microsoft.Cci.dll
Binary file not shown
View
BIN  old/AspNetWebServer.zip
Binary file not shown
View
BIN  old/GadgetTemplate.zip
Binary file not shown
View
BIN  old/Setup.zip
Binary file not shown
View
BIN  old/VisualStudio.zip
Binary file not shown
View
BIN  old/WindowsLib.zip
Binary file not shown
View
49 samples/AroundMe/AroundMe.sln
@@ -1,13 +1,18 @@

-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AroundMeWeb", "AroundMeWeb\AroundMeWeb.csproj", "{B190181B-16F9-40A8-B431-2D80DE63D081}"
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AroundMe", "AroundMe\AroundMe.csproj", "{C1AFF814-2C3A-4D04-88A4-5CF10D07AA56}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AroundMe", "AroundMe\AroundMe.csproj", "{DFF9B9D5-5CE0-448E-ADAF-47E26A72017E}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Twitter", "Twitter\Twitter.csproj", "{476312F9-5403-4C3A-848A-0F31213FC72E}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AroundMeTests", "AroundMeTests\AroundMeTests.csproj", "{1A55F098-B1B4-41BC-93F7-EE89A85B0AF6}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MapDemo", "MapDemo\MapDemo.csproj", "{2176DBB5-D8FD-493C-B896-59E7283E7127}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Twitter", "Twitter\Twitter.csproj", "{135E07CB-462D-4014-BD74-FF565C60A46D}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AroundMeTests", "AroundMeTests\AroundMeTests.csproj", "{E01AE039-4B10-4A3B-AB86-EBFC1E2F6B17}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F9ED6BAF-639F-4F4B-8E04-C6AE7EAE860A}"
+ ProjectSection(SolutionItems) = preProject
+ AroundMeTests.testsettings = AroundMeTests.testsettings
+ EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -15,22 +20,22 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {B190181B-16F9-40A8-B431-2D80DE63D081}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B190181B-16F9-40A8-B431-2D80DE63D081}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B190181B-16F9-40A8-B431-2D80DE63D081}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B190181B-16F9-40A8-B431-2D80DE63D081}.Release|Any CPU.Build.0 = Release|Any CPU
- {DFF9B9D5-5CE0-448E-ADAF-47E26A72017E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {DFF9B9D5-5CE0-448E-ADAF-47E26A72017E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {DFF9B9D5-5CE0-448E-ADAF-47E26A72017E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {DFF9B9D5-5CE0-448E-ADAF-47E26A72017E}.Release|Any CPU.Build.0 = Release|Any CPU
- {1A55F098-B1B4-41BC-93F7-EE89A85B0AF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1A55F098-B1B4-41BC-93F7-EE89A85B0AF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1A55F098-B1B4-41BC-93F7-EE89A85B0AF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1A55F098-B1B4-41BC-93F7-EE89A85B0AF6}.Release|Any CPU.Build.0 = Release|Any CPU
- {135E07CB-462D-4014-BD74-FF565C60A46D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {135E07CB-462D-4014-BD74-FF565C60A46D}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {135E07CB-462D-4014-BD74-FF565C60A46D}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {135E07CB-462D-4014-BD74-FF565C60A46D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2176DBB5-D8FD-493C-B896-59E7283E7127}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2176DBB5-D8FD-493C-B896-59E7283E7127}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2176DBB5-D8FD-493C-B896-59E7283E7127}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2176DBB5-D8FD-493C-B896-59E7283E7127}.Release|Any CPU.Build.0 = Release|Any CPU
+ {476312F9-5403-4C3A-848A-0F31213FC72E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {476312F9-5403-4C3A-848A-0F31213FC72E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {476312F9-5403-4C3A-848A-0F31213FC72E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {476312F9-5403-4C3A-848A-0F31213FC72E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C1AFF814-2C3A-4D04-88A4-5CF10D07AA56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C1AFF814-2C3A-4D04-88A4-5CF10D07AA56}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C1AFF814-2C3A-4D04-88A4-5CF10D07AA56}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C1AFF814-2C3A-4D04-88A4-5CF10D07AA56}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E01AE039-4B10-4A3B-AB86-EBFC1E2F6B17}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E01AE039-4B10-4A3B-AB86-EBFC1E2F6B17}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E01AE039-4B10-4A3B-AB86-EBFC1E2F6B17}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E01AE039-4B10-4A3B-AB86-EBFC1E2F6B17}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
View
115 samples/AroundMe/AroundMe/AroundMe.csproj
@@ -5,75 +5,114 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{DFF9B9D5-5CE0-448E-ADAF-47E26A72017E}</ProjectGuid>
+ <ProjectGuid>{C1AFF814-2C3A-4D04-88A4-5CF10D07AA56}</ProjectGuid>
<OutputType>Library</OutputType>
- <NoStdLib>True</NoStdLib>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <TargetFrameworkProfile />
- <LangVersion>ISO-2</LangVersion>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AroundMe</RootNamespace>
<AssemblyName>AroundMe</AssemblyName>
- <TemplateFile>Properties\AroundMe.script</TemplateFile>
- <CodeAnalysisRuleSet>Properties\AroundMe.ruleset</CodeAnalysisRuleSet>
- <ReferencePath>$(MSBuildProgramFiles32)\ScriptSharp\v1.0\Framework\</ReferencePath>
- <DeploymentPath>..\AroundMeWeb\Content\Scripts</DeploymentPath>
+ <ScriptTemplate>Properties\Script.template</ScriptTemplate>
+ <CodeAnalysisRuleSet>Properties\FxCop.ruleset</CodeAnalysisRuleSet>
+ <GenerateScript>True</GenerateScript>
+ <GenerateResources>True</GenerateResources>
+ <RestoreNugetPackages>true</RestoreNugetPackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>pdbonly</DebugType>
<OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;CODE_ANALYSIS</DefineConstants>
+ <DefineConstants>DEBUG;CODE_ANALYSIS;SCRIPTSHARP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0028, 1591, 1684</NoWarn>
- <DocumentationFile>
- </DocumentationFile>
+ <DocumentationFile>bin\Debug\AroundMe.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>pdbonly</DebugType>
<OutputPath>bin\Release\</OutputPath>
- <DefineConstants>CODE_ANALYSIS</DefineConstants>
+ <DefineConstants>CODE_ANALYSIS;SCRIPTSHARP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0028, 1591, 1684</NoWarn>
- <DocumentationFile>
- </DocumentationFile>
+ <DocumentationFile>bin\Release\AroundMe.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
- <Reference Include="mscorlib, Version=0.7.0.0, Culture=neutral, PublicKeyToken=8fc0e3af5abcb6c4, processorArchitecture=MSIL" />
- <Reference Include="Script.Microsoft.BingMaps, Version=0.7.0.0, Culture=neutral, processorArchitecture=MSIL" />
- <Reference Include="Script.Web" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Core\PropertyChangedEventArgs.cs" />
- <Compile Include="Core\Model.cs" />
- <Compile Include="Graphs\Graph.cs" />
- <Compile Include="Graphs\GraphEdge.cs" />
- <Compile Include="Graphs\GraphLayout.cs" />
- <Compile Include="Graphs\GraphNode.cs" />
+ <Compile Include="Page.cs" />
+ <Compile Include="PageModel.cs" />
<Compile Include="PhotoView.cs" />
<Compile Include="Services\Base58.cs" />
- <Compile Include="Services\HtmlStorageService.cs" />
- <Compile Include="Services\IStorageService.cs" />
<Compile Include="Services\FlickrService.cs" />
+ <Compile Include="Services\HtmlStorageService.cs" />
<Compile Include="Services\IFlickrService.cs" />
+ <Compile Include="Services\IStorageService.cs" />
<Compile Include="Tests\MockFlickrService.cs" />
<Compile Include="Tests\PageModelTests.cs" />
- <Content Include="Properties\AroundMe.ruleset" />
- <Content Include="Properties\AroundMe.script" />
- <Compile Include="PageModel.cs" />
- <Compile Include="Page.cs" />
+ <None Include="packages.config" />
+ <None Include="Properties\FxCop.ruleset" />
+ <None Include="Properties\Script.template" />
+ <Compile Include="Core\Model.cs" />
+ <Compile Include="Core\PropertyChangedEventArgs.cs" />
<Compile Include="Core\Utility.cs" />
<Compile Include="DataModel\Photo.cs" />
+ <Compile Include="Graphs\Graph.cs" />
+ <Compile Include="Graphs\GraphEdge.cs" />
+ <Compile Include="Graphs\GraphLayout.cs" />
+ <Compile Include="Graphs\GraphNode.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
+ <Reference Include="Script.Microsoft.BingMaps">
+ <HintPath>..\packages\ScriptSharp.Lib.BingMaps.0.7.5.0\lib\Script.Microsoft.BingMaps.dll</HintPath>
+ </Reference>
+ <Reference Include="Script.Web">
+ <HintPath>..\packages\ScriptSharp.Lib.HTML.0.7.5.0\lib\Script.Web.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
<ProjectReference Include="..\Twitter\Twitter.csproj">
- <Project>{135E07CB-462D-4014-BD74-FF565C60A46D}</Project>
+ <Project>{476312f9-5403-4c3a-848a-0f31213fc72e}</Project>
<Name>Twitter</Name>
</ProjectReference>
</ItemGroup>
- <Import Project="$(MSBuildProgramFiles32)\ScriptSharp\v1.0\ScriptSharp.targets" />
+ <ItemGroup />
+ <ItemGroup>
+ <Content Include="Content\AroundMe.htm">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Content\CloseButton.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Content\Dot.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Content\Flickr.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Content\Heart.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Content\Location.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Content\PlaceHolder.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Content\ProgressBar.gif">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Content\Pushpin.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Content\Reset.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Content\Search.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Content\Site.css">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Content\Twitter.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <Import Project="..\packages\ScriptSharp.0.7.5.0\tools\ScriptSharp.targets" Condition="Exists('..\packages\ScriptSharp.0.7.5.0\tools\ScriptSharp.targets')" />
+ <Import Project="..\packages\nuget.targets" />
</Project>
View
17 ...roundMe/AroundMeWeb/Views/Home/Index.aspx → ...es/AroundMe/AroundMe/Content/AroundMe.htm
@@ -1,15 +1,14 @@
-<%@ Page Language="C#" Inherits="System.Web.Mvc.DynamicViewPage" %>
-<!DOCTYPE html>
+<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Photos Around Me</title>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Schoolbell:regular" />
- <link rel="stylesheet" type="text/css" href="/Content/Site.css" />
+ <link rel="stylesheet" type="text/css" href="Site.css" />
</head>
-<body class="map"
- data-flickr-key="<%= Model.flickrApiKey %>"
- data-bingmaps-key="<%= Model.bingMapsKey %>"
- data-tile-url="<%= Model.tileUrl %>">
+<body class="map" data-app="true"
+ data-flickr-key="be9b6f66bd7a1c0c0f1465a1b7e8a764"
+ data-bingmaps-key="AvROonkHlY0PHW8zAWDFW5JX8tMeSxzUlkR23_uGzUpeGzrJxf-8tSxAvQmO_5PX"
+ data-tile-url="http://{0}.tile.cloudmade.com/24f82a695d3f4b3ab1ea69d9eb63fdb0/43793/256/{1}/{2}/{3}.png">
<div id="mapContainer"></div>
<div id="inputContainer">
<div id="titleLabel">Photos Around Me</div>
@@ -36,7 +35,7 @@
</div>
<script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
<script type="text/javascript" src="http://platform.twitter.com/anywhere.js?id=BDvnYA8jh6osbRb83Ybw&v=1"></script>
- <script type="text/javascript" src="/Content/Scripts/mscorlib.debug.js"></script>
- <script type="text/javascript" src="/Content/Scripts/AroundMe.debug.js"></script>
+ <script type="text/javascript" src="../mscorlib.debug.js"></script>
+ <script type="text/javascript" src="../AroundMe.debug.js"></script>
</body>
</html>
View
0  ...undMe/AroundMeWeb/Content/CloseButton.png → ...AroundMe/AroundMe/Content/CloseButton.png
File renamed without changes
View
0  samples/AroundMe/AroundMeWeb/Content/Dot.png → samples/AroundMe/AroundMe/Content/Dot.png
File renamed without changes
View
0  ...s/AroundMe/AroundMeWeb/Content/Flickr.png → samples/AroundMe/AroundMe/Content/Flickr.png
File renamed without changes
View
0  ...es/AroundMe/AroundMeWeb/Content/Heart.png → samples/AroundMe/AroundMe/Content/Heart.png
File renamed without changes
View
0  ...AroundMe/AroundMeWeb/Content/Location.png → ...es/AroundMe/AroundMe/Content/Location.png
File renamed without changes
View
0  ...undMe/AroundMeWeb/Content/PlaceHolder.png → ...AroundMe/AroundMe/Content/PlaceHolder.png
File renamed without changes
View
0  ...undMe/AroundMeWeb/Content/ProgressBar.gif → ...AroundMe/AroundMe/Content/ProgressBar.gif
File renamed without changes
View
0  .../AroundMe/AroundMeWeb/Content/Pushpin.png → ...les/AroundMe/AroundMe/Content/Pushpin.png
File renamed without changes
View
0  ...es/AroundMe/AroundMeWeb/Content/Reset.png → samples/AroundMe/AroundMe/Content/Reset.png
File renamed without changes
View
0  ...s/AroundMe/AroundMeWeb/Content/Search.png → samples/AroundMe/AroundMe/Content/Search.png
File renamed without changes
View
0  ...les/AroundMe/AroundMeWeb/Content/Site.css → samples/AroundMe/AroundMe/Content/Site.css
File renamed without changes
View
0  .../AroundMe/AroundMeWeb/Content/Twitter.png → ...les/AroundMe/AroundMe/Content/Twitter.png
File renamed without changes
View
10 samples/AroundMe/AroundMe/Page.cs
@@ -35,6 +35,10 @@ internal static class Page {
private static string _oldMode;
static Page() {
+ if (Document.Body.GetAttribute("data-app") == null) {
+ return;
+ }
+
string flickrKey = (string)Document.Body.GetAttribute("data-flickr-key");
Debug.Assert(String.IsNullOrEmpty(flickrKey) == false);
@@ -235,7 +239,7 @@ internal static class Page {
if (_currentPushpin == null) {
MapPushpinOptions pushpinOptions = new MapPushpinOptions();
- pushpinOptions.Icon = "/Content/Pushpin.png";
+ pushpinOptions.Icon = "Pushpin.png";
pushpinOptions.Anchor = new MapPoint(12, 14);
pushpinOptions.Width = 25;
pushpinOptions.Height = 28;
@@ -344,14 +348,14 @@ internal static class Page {
calloutOptions.Height = 50;
calloutOptions.ShowPointer = false;
calloutOptions.ShowCloseButton = false;
- calloutOptions.Offset = new MapPoint(-25, 25);
+ calloutOptions.Offset = new MapPoint(-25, -25);
calloutOptions.HtmlContent =
"<div class=\"photoInfobox\" style=\"background-image: url(" + photo.thumbnailUrl + ")\"" +
" title=\"" + photo.title.HtmlEncode() + "\"></div>";
calloutOptions.Visible = true;
MapPushpinOptions pushpinOptions = new MapPushpinOptions();
- pushpinOptions.Icon = "/Content/Dot.png";
+ pushpinOptions.Icon = "Dot.png";
pushpinOptions.Width = 10;
pushpinOptions.Height = 10;
pushpinOptions.Anchor = new MapPoint(5, 5);
View
10 samples/AroundMe/AroundMe/Properties/AssemblyInfo.cs
@@ -9,15 +9,15 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AroundMe")]
-[assembly: AssemblyDescription("Script# Around Me Sample")]
+[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyProduct("Script#")]
-[assembly: AssemblyCopyright("Copyright © Nikhil Kothari 2011")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Script# Samples")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
-[assembly: ScriptAssembly("aroundMe")]
+[assembly: ScriptAssembly("AroundMe")]
[assembly: ScriptNamespace("app")]
-
View
6 ...ndMe/AroundMe/Properties/AroundMe.ruleset → ...roundMe/AroundMe/Properties/FxCop.ruleset
@@ -1,12 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="Script# Rules" Description="General Script Rules" ToolsVersion="10.0">
- <RuleHintPaths>
- <Path>%ProgramFiles%\ScriptSharp\v1.0\CodeAnalysis</Path>
- </RuleHintPaths>
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
<Rule Id="CA1000" Action="Warning" />
<Rule Id="CA1001" Action="Warning" />
- <Rule Id="CA1002" Action="Warning" />
<Rule Id="CA1008" Action="Warning" />
<Rule Id="CA1009" Action="Warning" />
<Rule Id="CA1010" Action="Warning" />
@@ -85,7 +81,6 @@
<Rule Id="CA1819" Action="Warning" />
<Rule Id="CA1820" Action="Warning" />
<Rule Id="CA1821" Action="Warning" />
- <Rule Id="CA1823" Action="Warning" />
<Rule Id="CA2201" Action="Warning" />
<Rule Id="CA2202" Action="Warning" />
<Rule Id="CA2204" Action="Warning" />
@@ -102,6 +97,5 @@
<Rule Id="CA2226" Action="Warning" />
<Rule Id="CA2227" Action="Warning" />
<Rule Id="CA2233" Action="Warning" />
- <Rule Id="SS0001" Action="Warning" />
</Rules>
</RuleSet>
View
0  ...emplates/ClassLibrary/ClassLibrary.script → ...undMe/AroundMe/Properties/Script.template
File renamed without changes
View
6 samples/AroundMe/AroundMe/packages.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="ScriptSharp" version="0.7.5.0" targetFramework="net40" />
+ <package id="ScriptSharp.Lib.BingMaps" version="0.7.5.0" targetFramework="net40" />
+ <package id="ScriptSharp.Lib.HTML" version="0.7.5.0" targetFramework="net40" />
+</packages>
View
25 samples/AroundMe/AroundMeTests.testsettings
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<TestSettings name="AroundMeTests" id="5967c153-0913-4783-9c7f-b036c55bd667" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
+ <Description>These are default test settings for a local test run.</Description>
+ <Execution>
+ <TestTypeSpecific>
+ <UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b">
+ <AssemblyResolution>
+ <TestDirectory useLoadContext="true" />
+ </AssemblyResolution>
+ </UnitTestRunConfig>
+ <WebTestRunConfiguration testTypeId="4e7599fa-5ecb-43e9-a887-cd63cf72d207">
+ <Browser name="Internet Explorer 9.0" MaxConnections="6">
+ <Headers>
+ <Header name="User-Agent" value="Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)" />
+ <Header name="Accept" value="*/*" />
+ <Header name="Accept-Language" value="{{$IEAcceptLanguage}}" />
+ <Header name="Accept-Encoding" value="GZIP" />
+ </Headers>
+ </Browser>
+ </WebTestRunConfiguration>
+ </TestTypeSpecific>
+ <AgentRule name="LocalMachineDefaultRole">
+ </AgentRule>
+ </Execution>
+</TestSettings>
View
11 samples/AroundMe/AroundMeTests/AroundMeTests.csproj
@@ -5,7 +5,7 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{1A55F098-B1B4-41BC-93F7-EE89A85B0AF6}</ProjectGuid>
+ <ProjectGuid>{E01AE039-4B10-4A3B-AB86-EBFC1E2F6B17}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AroundMeTests</RootNamespace>
@@ -32,19 +32,24 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
+ <Reference Include="ScriptSharp.Testing, Version=0.7.0.0, Culture=neutral, PublicKeyToken=8fc0e3af5abcb6c4, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\ScriptSharp.Testing.0.7.5.0\lib\ScriptSharp.Testing.dll</HintPath>
+ </Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
- <Reference Include="ScriptSharp.Testing" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
- <Content Include="Web\Default.htm" />
<Content Include="Web\QUnit.css" />
<Content Include="Web\QUnit.js" />
<Content Include="Web\QUnitExt.js" />
<Compile Include="DefaultTests.cs" />
</ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
View
32 samples/AroundMe/AroundMeTests/DefaultTests.cs
@@ -11,8 +11,8 @@ namespace AroundMeTests {
[TestClass]
[DeploymentItem("AroundMeTests\\Web", "Web")]
- [DeploymentItem("AroundMeWeb\\Content\\Scripts\\mscorlib.debug.js", "Web")]
- [DeploymentItem("AroundMeWeb\\Content\\Scripts\\AroundMe.test.js", "Web")]
+ [DeploymentItem("AroundMe\\bin\\Debug\\mscorlib.debug.js", "Web")]
+ [DeploymentItem("AroundMe\\bin\\Debug\\AroundMe.test.js", "Web")]
public class DefaultTests {
private static WebTest _webTest;
@@ -39,33 +39,17 @@ public class DefaultTests {
_webTest.StopWebServer();
}
- #region Per-test Initialization/Cleanup
- // Use TestInitialize to run code before running each test
- // [TestInitialize()]
- // public void OnTestInitialize() {
- // }
- //
- // Use TestCleanup to run code after each test has run
- // [TestCleanup()]
- // public void OnTestCleanup() {
- // }
- //
- #endregion
-
[TestMethod]
public void TestMethod1() {
- Uri testUri = _webTest.GetTestUri("/Default.htm");
+ WebTestPageBuilder pageBuilder = new WebTestPageBuilder("DefaultTests");
+ string html =
+ pageBuilder.AddScripts("mscorlib.debug.js", "AroundMe.test.js")
+ .ToHtml();
- WebTestResult ieResult = _webTest.RunTest(testUri, WebBrowser.InternetExplorer);
- Assert.IsTrue(ieResult.Succeeded, "Internet Explorer:\r\n" + ieResult.Log);
+ Uri pageUri = _webTest.CreateContent("/DefaultTests.htm", html, "text/html");
- WebTestResult chromeResult = _webTest.RunTest(testUri, WebBrowser.Chrome);
+ WebTestResult chromeResult = _webTest.RunTest(pageUri, WebBrowser.Chrome);
Assert.IsTrue(chromeResult.Succeeded, "Chrome:\r\n" + chromeResult.Log);
-
- /*
- WebTestResult ffResult = _webTest.RunTest(testUri, WebBrowser.Firefox);
- Assert.IsTrue(ffResult.Succeeded, "Firefox:\r\n" + ffResult.Log);
- */
}
}
}
View
7 samples/AroundMe/AroundMeTests/Properties/AssemblyInfo.cs
@@ -9,10 +9,11 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AroundMeTests")]
-[assembly: AssemblyDescription("Script# Around Me Sample Tests")]
+[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyProduct("Script#")]
-[assembly: AssemblyCopyright("Copyright © Nikhil Kothari 2011")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("AroundMeTests")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.0.0.0")]
View
21 samples/AroundMe/AroundMeTests/Web/Default.htm
@@ -1,21 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
-<head>
- <title>AroundMeTests - UnitTest1</title>
- <link rel="stylesheet" href="QUnit.css" type="text/css"/>
- <script type="text/javascript" src="QUnit.js"></script>
- <script type="text/javascript" src="QUnitExt.js"></script>
-</head>
-<body>
- <!-- Include any markup you need in the page for use in the test -->
-
- <h1 id="qunit-header">AroundMeTests - UnitTest1 Results</h1>
- <h2 id="qunit-banner"></h2>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <br />
- <textarea id="qunit-log" rows="10" cols="100"></textarea>
-</body>
-<script type="text/javascript" src="mscorlib.debug.js"></script>
-<script type="text/javascript" src="AroundMe.test.js"></script>
-</html>
View
6 samples/AroundMe/AroundMeTests/Web/QUnitExt.js
@@ -21,9 +21,10 @@
QUnit.done = function(failures, total) {
appendLog('\r\nCompleted; ' + 'failures = ' + failures + '; total = ' + total);
- var logUrl = '/Log.axd/' + ((failures === 0) ? 'Success' : 'Failure');
+ var logUrl = '/log/' + ((failures === 0) ? 'success' : 'failure');
var xhr = new XMLHttpRequest();
xhr.open('POST', logUrl, /* async */ false);
+ xhr.setRequestHeader('Content-Type', 'text/plain');
xhr.send(logData);
}
@@ -33,6 +34,7 @@
QUnit.testDone = function(name, failures, total) {
appendLog(' Test Done: ' + name + '; failures = ' + failures + '; total = ' + total);
+ appendLog('');
}
QUnit.moduleStart = function(name, testEnv) {
@@ -43,6 +45,8 @@
QUnit.moduleDone = function(name, failures, total) {
if (name === currentModule) {
appendLog('Module Done: ' + name + '; failures = ' + failures + '; total = ' + total + '\r\n');
+ appendLog('');
+ appendLog('');
}
currentModule = null;
}
View
4 samples/AroundMe/AroundMeTests/packages.config
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="ScriptSharp.Testing" version="0.7.5.0" targetFramework="net40" />
+</packages>
View
117 samples/AroundMe/AroundMeWeb/AroundMeWeb.csproj
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>
- </ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{B190181B-16F9-40A8-B431-2D80DE63D081}</ProjectGuid>
- <ProjectTypeGuids>{F85E285D-A4E0-4152-9332-AB1D724D3325};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>AroundMeWeb</RootNamespace>
- <AssemblyName>AroundMeWeb</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <MvcBuildViews>false</MvcBuildViews>
- <UseIISExpress>false</UseIISExpress>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System" />
- <Reference Include="System.Drawing" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
- <Reference Include="System.Xml.Linq">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Web" />
- <Reference Include="System.Web.Extensions">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Web.Abstractions" />
- <Reference Include="System.Web.Routing" />
- <Reference Include="System.Xml" />
- <Reference Include="System.Configuration" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Controllers\HomeController.cs" />
- <Compile Include="Global.asax.cs">
- <DependentUpon>Global.asax</DependentUpon>
- </Compile>
- <Compile Include="DynamicViewPage.cs">
- <SubType>ASPXCodeBehind</SubType>
- </Compile>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <Content Include="Content\CloseButton.png" />
- <Content Include="Content\Flickr.png" />
- <Content Include="Content\Heart.png" />
- <Content Include="Content\Location.png" />
- <Content Include="Content\PlaceHolder.png" />
- <Content Include="Content\Pushpin.png" />
- <Content Include="Content\Reset.png" />
- <Content Include="Content\Scripts\AroundMe.debug.js" />
- <Content Include="Content\Scripts\AroundMe.js" />
- <Content Include="Content\Scripts\AroundMe.test.js" />
- <Content Include="Content\Scripts\mscorlib.debug.js" />
- <Content Include="Content\Scripts\mscorlib.js" />
- <Content Include="Content\Search.png" />
- <Content Include="Content\ProgressBar.gif" />
- <Content Include="Content\Site.css" />
- <Content Include="Content\Twitter.png" />
- <Content Include="Global.asax" />
- <Content Include="Views\Home\Index.aspx" />
- <Content Include="web.config" />
- <Content Include="Views\web.config" />
- </ItemGroup>
- <ItemGroup />
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target> -->
- <Target Name="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
- <AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)" />
- </Target>
- <ProjectExtensions>
- <VisualStudio>
- <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
- <WebProjectProperties>
- <UseIIS>False</UseIIS>
- <AutoAssignPort>False</AutoAssignPort>
- <DevelopmentServerPort>30530</DevelopmentServerPort>
- <DevelopmentServerVPath>/</DevelopmentServerVPath>
- <IISUrl>
- </IISUrl>
- <NTLMAuthentication>False</NTLMAuthentication>
- <UseCustomServer>False</UseCustomServer>
- <CustomServerUrl>
- </CustomServerUrl>
- <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
- </WebProjectProperties>
- </FlavorProperties>
- </VisualStudio>
- </ProjectExtensions>
-</Project>
View
1,825 samples/AroundMe/AroundMeWeb/Content/Scripts/mscorlib.debug.js
@@ -1,1825 +0,0 @@
-//! Script# Core Runtime
-//! More information at http://projects.nikhilk.net/ScriptSharp
-//!
-
-///////////////////////////////////////////////////////////////////////////////
-// Globals
-
-(function () {
- var globals = {
- version: '0.7.4.0',
-
- isUndefined: function (o) {
- return (o === undefined);
- },
-
- isNull: function (o) {
- return (o === null);
- },
-
- isNullOrUndefined: function (o) {
- return (o === null) || (o === undefined);
- },
-
- isValue: function (o) {
- return (o !== null) && (o !== undefined);
- }
- };
-
- var started = false;
- var startCallbacks = [];
-
- function onStartup(cb) {
- startCallbacks ? startCallbacks.push(cb) : setTimeout(cb, 0);
- }
- function startup() {
- if (startCallbacks) {
- var callbacks = startCallbacks;
- startCallbacks = null;
- for (var i = 0, l = callbacks.length; i < l; i++) {
- callbacks[i]();
- }
- }
- }
- if (document.addEventListener) {
- document.readyState == 'complete' ? startup() : document.addEventListener('DOMContentLoaded', startup, false);
- }
- else if (window.attachEvent) {
- window.attachEvent('onload', function () {
- startup();
- });
- }
-
- var ss = window.ss;
- if (!ss) {
- window.ss = ss = {
- init: onStartup,
- ready: onStartup
- };
- }
- for (var n in globals) {
- ss[n] = globals[n];
- }
-})();
-
-///////////////////////////////////////////////////////////////////////////////
-// Object Extensions
-
-Object.__typeName = 'Object';
-Object.__baseType = null;
-
-Object.clearKeys = function Object$clearKeys(d) {
- for (var n in d) {
- delete d[n];
- }
-}
-
-Object.keyExists = function Object$keyExists(d, key) {
- return d[key] !== undefined;
-}
-
-if (!Object.keys) {
- Object.keys = function Object$keys(d) {
- var keys = [];
- for (var n in d) {
- keys.push(n);
- }
- return keys;
- }
-
- Object.getKeyCount = function Object$getKeyCount(d) {
- var count = 0;
- for (var n in d) {
- count++;
- }
- return count;
- }
-}
-else {
- Object.getKeyCount = function Object$getKeyCount(d) {
- return Object.keys(d).length;
- }
-}
-
-///////////////////////////////////////////////////////////////////////////////
-// Boolean Extensions
-
-Boolean.__typeName = 'Boolean';
-
-Boolean.parse = function Boolean$parse(s) {
- return (s.toLowerCase() == 'true');
-}
-
-///////////////////////////////////////////////////////////////////////////////
-// Number Extensions
-
-Number.__typeName = 'Number';
-
-Number.parse = function Number$parse(s) {
- if (!s || !s.length) {
- return 0;
- }
- if ((s.indexOf('.') >= 0) || (s.indexOf('e') >= 0) ||
- s.endsWith('f') || s.endsWith('F')) {
- return parseFloat(s);
- }
- return parseInt(s, 10);
-}
-
-Number.prototype.format = function Number$format(format) {
- if (ss.isNullOrUndefined(format) || (format.length == 0) || (format == 'i')) {
- return this.toString();
- }
- return this._netFormat(format, false);
-}
-
-Number.prototype.localeFormat = function Number$format(format) {
- if (ss.isNullOrUndefined(format) || (format.length == 0) || (format == 'i')) {
- return this.toLocaleString();
- }
- return this._netFormat(format, true);
-}
-
-Number._commaFormat = function Number$_commaFormat(number, groups, decimal, comma) {
- var decimalPart = null;
- var decimalIndex = number.indexOf(decimal);
- if (decimalIndex > 0) {
- decimalPart = number.substr(decimalIndex);
- number = number.substr(0, decimalIndex);
- }
-
- var negative = number.startsWith('-');
- if (negative) {
- number = number.substr(1);
- }
-
- var groupIndex = 0;
- var groupSize = groups[groupIndex];
- if (number.length < groupSize) {
- return decimalPart ? number + decimalPart : number;
- }
-
- var index = number.length;
- var s = '';
- var done = false;
- while (!done) {
- var length = groupSize;
- var startIndex = index - length;
- if (startIndex < 0) {
- groupSize += startIndex;
- length += startIndex;
- startIndex = 0;
- done = true;
- }
- if (!length) {
- break;
- }
-
- var part = number.substr(startIndex, length);
- if (s.length) {
- s = part + comma + s;
- }
- else {
- s = part;
- }
- index -= length;
-
- if (groupIndex < groups.length - 1) {
- groupIndex++;
- groupSize = groups[groupIndex];
- }
- }
-
- if (negative) {
- s = '-' + s;
- }
- return decimalPart ? s + decimalPart : s;
-}
-
-Number.prototype._netFormat = function Number$_netFormat(format, useLocale) {
- var nf = useLocale ? ss.CultureInfo.CurrentCulture.numberFormat : ss.CultureInfo.InvariantCulture.numberFormat;
-
- var s = '';
- var precision = -1;
-
- if (format.length > 1) {
- precision = parseInt(format.substr(1));
- }
-
- var fs = format.charAt(0);
- switch (fs) {
- case 'd': case 'D':
- s = parseInt(Math.abs(this)).toString();
- if (precision != -1) {
- s = s.padLeft(precision, '0');
- }
- if (this < 0) {
- s = '-' + s;
- }
- break;
- case 'x': case 'X':
- s = parseInt(Math.abs(this)).toString(16);
- if (fs == 'X') {
- s = s.toUpperCase();
- }
- if (precision != -1) {
- s = s.padLeft(precision, '0');
- }
- break;
- case 'e': case 'E':
- if (precision == -1) {
- s = this.toExponential();
- }
- else {
- s = this.toExponential(precision);
- }
- if (fs == 'E') {
- s = s.toUpperCase();
- }
- break;
- case 'f': case 'F':
- case 'n': case 'N':
- if (precision == -1) {
- precision = nf.numberDecimalDigits;
- }
- s = this.toFixed(precision).toString();
- if (precision && (nf.numberDecimalSeparator != '.')) {
- var index = s.indexOf('.');
- s = s.substr(0, index) + nf.numberDecimalSeparator + s.substr(index + 1);
- }
- if ((fs == 'n') || (fs == 'N')) {
- s = Number._commaFormat(s, nf.numberGroupSizes, nf.numberDecimalSeparator, nf.numberGroupSeparator);
- }
- break;
- case 'c': case 'C':
- if (precision == -1) {
- precision = nf.currencyDecimalDigits;
- }
- s = Math.abs(this).toFixed(precision).toString();
- if (precision && (nf.currencyDecimalSeparator != '.')) {
- var index = s.indexOf('.');
- s = s.substr(0, index) + nf.currencyDecimalSeparator + s.substr(index + 1);
- }
- s = Number._commaFormat(s, nf.currencyGroupSizes, nf.currencyDecimalSeparator, nf.currencyGroupSeparator);
- if (this < 0) {
- s = String.format(nf.currencyNegativePattern, s);
- }
- else {
- s = String.format(nf.currencyPositivePattern, s);
- }
- break;
- case 'p': case 'P':
- if (precision == -1) {
- precision = nf.percentDecimalDigits;
- }
- s = (Math.abs(this) * 100.0).toFixed(precision).toString();
- if (precision && (nf.percentDecimalSeparator != '.')) {
- var index = s.indexOf('.');
- s = s.substr(0, index) + nf.percentDecimalSeparator + s.substr(index + 1);
- }
- s = Number._commaFormat(s, nf.percentGroupSizes, nf.percentDecimalSeparator, nf.percentGroupSeparator);
- if (this < 0) {
- s = String.format(nf.percentNegativePattern, s);
- }
- else {
- s = String.format(nf.percentPositivePattern, s);
- }
- break;
- }
-
- return s;
-}
-
-///////////////////////////////////////////////////////////////////////////////
-// String Extensions
-
-String.__typeName = 'String';
-String.Empty = '';
-
-String.compare = function String$compare(s1, s2, ignoreCase) {
- if (ignoreCase) {
- if (s1) {
- s1 = s1.toUpperCase();
- }
- if (s2) {
- s2 = s2.toUpperCase();
- }
- }
- s1 = s1 || '';
- s2 = s2 || '';
-
- if (s1 == s2) {
- return 0;
- }
- if (s1 < s2) {
- return -1;
- }
- return 1;
-}
-
-String.prototype.compareTo = function String$compareTo(s, ignoreCase) {
- return String.compare(this, s, ignoreCase);
-}
-
-String.concat = function String$concat() {
- if (arguments.length === 2) {
- return arguments[0] + arguments[1];
- }
- return Array.prototype.join.call(arguments, '');
-}
-
-String.prototype.endsWith = function String$endsWith(suffix) {
- if (!suffix.length) {
- return true;
- }
- if (suffix.length > this.length) {
- return false;
- }
- return (this.substr(this.length - suffix.length) == suffix);
-}
-
-String.equals = function String$equals1(s1, s2, ignoreCase) {
- return String.compare(s1, s2, ignoreCase) == 0;
-}
-
-String._format = function String$_format(format, values, useLocale) {
- if (!String._formatRE) {
- String._formatRE = /(\{[^\}^\{]+\})/g;
- }
-
- return format.replace(String._formatRE,
- function(str, m) {
- var index = parseInt(m.substr(1));
- var value = values[index + 1];
- if (ss.isNullOrUndefined(value)) {
- return '';
- }
- if (value.format) {
- var formatSpec = null;
- var formatIndex = m.indexOf(':');
- if (formatIndex > 0) {
- formatSpec = m.substring(formatIndex + 1, m.length - 1);
- }
- return useLocale ? value.localeFormat(formatSpec) : value.format(formatSpec);
- }
- else {
- return useLocale ? value.toLocaleString() : value.toString();
- }
- });
-}
-
-String.format = function String$format(format) {
- return String._format(format, arguments, /* useLocale */ false);
-}
-
-String.fromChar = function String$fromChar(ch, count) {
- var s = ch;
- for (var i = 1; i < count; i++) {
- s += ch;
- }
- return s;
-}
-
-String.prototype.htmlDecode = function String$htmlDecode() {
- var div = document.createElement('div');
- div.innerHTML = this;
- return div.textContent || div.innerText;
-}
-
-String.prototype.htmlEncode = function String$htmlEncode() {
- var div = document.createElement('div');
- div.appendChild(document.createTextNode(this));
- return div.innerHTML.replace(/\"/g, '&quot;');
-}
-
-String.prototype.indexOfAny = function String$indexOfAny(chars, startIndex, count) {
- var length = this.length;
- if (!length) {
- return -1;
- }
-
- startIndex = startIndex || 0;
- count = count || length;
-
- var endIndex = startIndex + count - 1;
- if (endIndex >= length) {
- endIndex = length - 1;
- }
-
- for (var i = startIndex; i <= endIndex; i++) {
- if (chars.indexOf(this.charAt(i)) >= 0) {
- return i;
- }
- }
- return -1;
-}
-
-String.prototype.insert = function String$insert(index, value) {
- if (!value) {
- return this;
- }
- if (!index) {
- return value + this;
- }
- var s1 = this.substr(0, index);
- var s2 = this.substr(index);
- return s1 + value + s2;
-}
-
-String.isNullOrEmpty = function String$isNullOrEmpty(s) {
- return !s || !s.length;
-}
-
-String.prototype.lastIndexOfAny = function String$lastIndexOfAny(chars, startIndex, count) {
- var length = this.length;
- if (!length) {
- return -1;
- }
-
- startIndex = startIndex || length - 1;
- count = count || length;
-
- var endIndex = startIndex - count + 1;
- if (endIndex < 0) {
- endIndex = 0;
- }
-
- for (var i = startIndex; i >= endIndex; i--) {
- if (chars.indexOf(this.charAt(i)) >= 0) {
- return i;
- }
- }
- return -1;
-}
-
-String.localeFormat = function String$localeFormat(format) {
- return String._format(format, arguments, /* useLocale */ true);
-}
-
-String.prototype.padLeft = function String$padLeft(totalWidth, ch) {
- if (this.length < totalWidth) {
- ch = ch || ' ';
- return String.fromChar(ch, totalWidth - this.length) + this;
- }
- return this;
-}
-
-String.prototype.padRight = function String$padRight(totalWidth, ch) {
- if (this.length < totalWidth) {
- ch = ch || ' ';
- return this + String.fromChar(ch, totalWidth - this.length);
- }
- return this;
-}
-
-String.prototype.remove = function String$remove(index, count) {
- if (!count || ((index + count) > this.length)) {
- return this.substr(0, index);
- }
- return this.substr(0, index) + this.substr(index + count);
-}
-
-String.prototype.replaceAll = function String$replaceAll(oldValue, newValue) {
- newValue = newValue || '';
- return this.split(oldValue).join(newValue);
-}
-
-String.prototype.startsWith = function String$startsWith(prefix) {
- if (!prefix.length) {
- return true;
- }
- if (prefix.length > this.length) {
- return false;
- }
- return (this.substr(0, prefix.length) == prefix);
-}
-
-if (!String.prototype.trim) {
- String.prototype.trim = function String$trim() {
- return this.trimEnd().trimStart();
- }
-}
-
-String.prototype.trimEnd = function String$trimEnd() {
- return this.replace(/\s*$/, '');
-}
-
-String.prototype.trimStart = function String$trimStart() {
- return this.replace(/^\s*/, '');
-}
-
-///////////////////////////////////////////////////////////////////////////////
-// Array Extensions
-
-Array.__typeName = 'Array';
-Array.__interfaces = [ ss.IEnumerable ];
-
-Array.prototype.add = function Array$add(item) {
- this[this.length] = item;
-}
-
-Array.prototype.addRange = function Array$addRange(items) {
- this.push.apply(this, items);
-}
-
-Array.prototype.aggregate = function Array$aggregate(seed, callback, instance) {
- var length = this.length;
- for (var i = 0; i < length; i++) {
- if (i in this) {
- seed = callback.call(instance, seed, this[i], i, this);
- }
- }
- return seed;
-}
-
-Array.prototype.clear = function Array$clear() {
- this.length = 0;
-}
-
-Array.prototype.clone = function Array$clone() {
- if (this.length === 1) {
- return [this[0]];
- }
- else {
- return Array.apply(null, this);
- }
-}
-
-Array.prototype.contains = function Array$contains(item) {
- var index = this.indexOf(item);
- return (index >= 0);
-}
-
-Array.prototype.dequeue = function Array$dequeue() {
- return this.shift();
-}
-
-Array.prototype.enqueue = function Array$enqueue(item) {
- // We record that this array instance is a queue, so we
- // can implement the right behavior in the peek method.
- this._queue = true;
- this.push(item);
-}
-
-Array.prototype.peek = function Array$peek() {
- if (this.length) {
- var index = this._queue ? 0 : this.length - 1;
- return this[index];
- }
- return null;
-}
-
-if (!Array.prototype.every) {
- Array.prototype.every = function Array$every(callback, instance) {
- var length = this.length;
- for (var i = 0; i < length; i++) {
- if (i in this && !callback.call(instance, this[i], i, this)) {
- return false;
- }
- }
- return true;
- }
-}
-
-Array.prototype.extract = function Array$extract(index, count) {
- if (!count) {
- return this.slice(index);
- }
- return this.slice(index, index + count);
-}
-
-if (!Array.prototype.filter) {
- Array.prototype.filter = function Array$filter(callback, instance) {
- var length = this.length;
- var filtered = [];
- for (var i = 0; i < length; i++) {
- if (i in this) {
- var val = this[i];
- if (callback.call(instance, val, i, this)) {
- filtered.push(val);
- }
- }
- }
- return filtered;
- }
-}
-
-if (!Array.prototype.forEach) {
- Array.prototype.forEach = function Array$forEach(callback, instance) {
- var length = this.length;
- for (var i = 0; i < length; i++) {
- if (i in this) {
- callback.call(instance, this[i], i, this);
- }
- }
- }
-}
-
-Array.prototype.getEnumerator = function Array$getEnumerator() {
- return new ss.ArrayEnumerator(this);
-}
-
-Array.prototype.groupBy = function Array$groupBy(callback, instance) {
- var length = this.length;
- var groups = [];
- var keys = {};
- for (var i = 0; i < length; i++) {
- if (i in this) {
- var key = callback.call(instance, this[i], i);
- if (String.isNullOrEmpty(key)) {
- continue;
- }
- var items = keys[key];
- if (!items) {
- items = [];
- items.key = key;
-
- keys[key] = items;
- groups.add(items);
- }
- items.add(this[i]);
- }
- }
- return groups;
-}
-
-Array.prototype.index = function Array$index(callback, instance) {
- var length = this.length;
- var items = {};
- for (var i = 0; i < length; i++) {
- if (i in this) {
- var key = callback.call(instance, this[i], i);
- if (String.isNullOrEmpty(key)) {
- continue;
- }
- items[key] = this[i];
- }
- }
- return items;
-}
-
-if (!Array.prototype.indexOf) {
- Array.prototype.indexOf = function Array$indexOf(item, startIndex) {
- startIndex = startIndex || 0;
- var length = this.length;
- if (length) {
- for (var index = startIndex; index < length; index++) {
- if (this[index] === item) {
- return index;
- }
- }
- }
- return -1;
- }
-}
-
-Array.prototype.insert = function Array$insert(index, item) {
- this.splice(index, 0, item);
-}
-
-Array.prototype.insertRange = function Array$insertRange(index, items) {
- if (index === 0) {
- this.unshift.apply(this, items);
- }
- else {
- for (var i = 0; i < items.length; i++) {
- this.splice(index + i, 0, items[i]);
- }
- }
-}
-
-if (!Array.prototype.map) {
- Array.prototype.map = function Array$map(callback, instance) {
- var length = this.length;
- var mapped = new Array(length);
- for (var i = 0; i < length; i++) {
- if (i in this) {
- mapped[i] = callback.call(instance, this[i], i, this);
- }
- }
- return mapped;
- }
-}
-
-Array.parse = function Array$parse(s) {
- return eval('(' + s + ')');
-}
-
-Array.prototype.remove = function Array$remove(item) {
- var index = this.indexOf(item);
- if (index >= 0) {
- this.splice(index, 1);
- return true;
- }
- return false;
-}
-
-Array.prototype.removeAt = function Array$removeAt(index) {
- this.splice(index, 1);
-}
-
-Array.prototype.removeRange = function Array$removeRange(index, count) {
- return this.splice(index, count);
-}
-
-if (!Array.prototype.some) {
- Array.prototype.some = function Array$some(callback, instance) {
- var length = this.length;
- for (var i = 0; i < length; i++) {
- if (i in this && callback.call(instance, this[i], i, this)) {
- return true;
- }
- }
- return false;
- }
-}
-
-Array.toArray = function Array$toArray(obj) {
- return Array.prototype.slice.call(obj);
-}
-
-///////////////////////////////////////////////////////////////////////////////
-// RegExp Extensions
-
-RegExp.__typeName = 'RegExp';
-
-RegExp.parse = function RegExp$parse(s) {
- if (s.startsWith('/')) {
- var endSlashIndex = s.lastIndexOf('/');
- if (endSlashIndex > 1) {
- var expression = s.substring(1, endSlashIndex);
- var flags = s.substr(endSlashIndex + 1);
- return new RegExp(expression, flags);
- }
- }
-
- return null;
-}
-
-///////////////////////////////////////////////////////////////////////////////
-// Date Extensions
-
-Date.__typeName = 'Date';
-
-Date.empty = null;
-
-Date.get_now = function Date$get_now() {
- return new Date();
-}
-
-Date.get_today = function Date$get_today() {
- var d = new Date();
- return new Date(d.getFullYear(), d.getMonth(), d.getDate());
-}
-
-Date.isEmpty = function Date$isEmpty(d) {
- return (d === null) || (d.valueOf() === 0);
-}
-
-Date.prototype.format = function Date$format(format) {
- if (ss.isNullOrUndefined(format) || (format.length == 0) || (format == 'i')) {
- return this.toString();
- }
- if (format == 'id') {
- return this.toDateString();