Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

ST2.0.1 RC MVC app example

  • Loading branch information...
commit 6fad0a321043744ce03bc3b679cd668842989278 1 parent 51f4e1a
Mitchell Simoens mitchellsimoens authored

Showing 1,368 changed files with 69,106 additions and 5 deletions. Show diff stats Hide diff stats

  1. +1 1  Ux/locale/override/st/Button.js
  2. +1 1  Ux/locale/override/st/Component.js
  3. +1 1  Ux/locale/override/st/Container.js
  4. +1 1  Ux/locale/override/st/TitleBar.js
  5. +1 1  Ux/locale/override/st/field/Field.js
  6. +1 0  st/mvc/.senchasdk
  7. +63 0 st/mvc/app.js
  8. +134 0 st/mvc/app.json
  9. +21 0 st/mvc/app/controller/Main.js
  10. +80 0 st/mvc/app/view/Main.js
  11. +76 0 st/mvc/index.html
  12. +126 0 st/mvc/packager.json
  13. +9,680 0 st/mvc/resources/css/app.css
  14. BIN  st/mvc/resources/icons/Icon.png
  15. BIN  st/mvc/resources/icons/Icon@2x.png
  16. BIN  st/mvc/resources/icons/Icon~ipad.png
  17. BIN  st/mvc/resources/icons/Icon~ipad@2x.png
  18. BIN  st/mvc/resources/icons/iTunesArtwork.png
  19. BIN  st/mvc/resources/icons/icon-spot~ipad.png
  20. BIN  st/mvc/resources/loading/Default-LandscapeLeft~ipad.png
  21. BIN  st/mvc/resources/loading/Default-LandscapeRight~ipad.png
  22. BIN  st/mvc/resources/loading/Default-Landscape~ipad.png
  23. BIN  st/mvc/resources/loading/Default-PortraitUpsideDown~ipad.png
  24. BIN  st/mvc/resources/loading/Default-Portrait~ipad.png
  25. BIN  st/mvc/resources/loading/Default.png
  26. BIN  st/mvc/resources/loading/Default@2x.png
  27. BIN  st/mvc/resources/loading/Default~ipad.png
  28. BIN  st/mvc/resources/loading/Homescreen.jpg
  29. BIN  st/mvc/resources/loading/Homescreen~ipad.jpg
  30. +19 0 st/mvc/resources/sass/app.scss
  31. +14 0 st/mvc/resources/sass/config.rb
  32. +73 0 st/mvc/sdk/command/sencha.js
  33. +314 0 st/mvc/sdk/command/src/Cli.js
  34. +179 0 st/mvc/sdk/command/src/Preprocessor.js
  35. +53 0 st/mvc/sdk/command/src/log/formatter/Cli.js
  36. +7 0 st/mvc/sdk/command/src/log/writer/Cli.js
  37. +71 0 st/mvc/sdk/command/src/module/Abstract.js
  38. +428 0 st/mvc/sdk/command/src/module/Application.js
  39. +316 0 st/mvc/sdk/command/src/module/FileSystem.js
  40. +71 0 st/mvc/sdk/command/src/module/Generate.js
  41. +156 0 st/mvc/sdk/command/src/module/Manifest.js
  42. +61 0 st/mvc/sdk/command/src/module/Package.js
  43. +82 0 st/mvc/sdk/command/src/module/Project.js
  44. +22 0 st/mvc/sdk/command/src/module/Test.js
  45. +66 0 st/mvc/sdk/command/src/module/generate/App.js
  46. +1 0  st/mvc/sdk/command/src/module/generate/App/.senchasdk.tpl
  47. +39 0 st/mvc/sdk/command/src/module/generate/App/app.js.tpl
  48. +134 0 st/mvc/sdk/command/src/module/generate/App/app.json.tpl
  49. +49 0 st/mvc/sdk/command/src/module/generate/App/app/view/Main.js.tpl
  50. +76 0 st/mvc/sdk/command/src/module/generate/App/index.html.tpl
  51. +126 0 st/mvc/sdk/command/src/module/generate/App/packager.json.tpl
  52. BIN  st/mvc/sdk/command/src/module/generate/App/resources/icons/Icon.png
  53. BIN  st/mvc/sdk/command/src/module/generate/App/resources/icons/Icon@2x.png
  54. BIN  st/mvc/sdk/command/src/module/generate/App/resources/icons/Icon~ipad.png
  55. BIN  st/mvc/sdk/command/src/module/generate/App/resources/icons/Icon~ipad@2x.png
  56. BIN  st/mvc/sdk/command/src/module/generate/App/resources/icons/iTunesArtwork.png
  57. BIN  st/mvc/sdk/command/src/module/generate/App/resources/icons/icon-spot~ipad.png
  58. BIN  st/mvc/sdk/command/src/module/generate/App/resources/loading/Default-LandscapeLeft~ipad.png
  59. BIN  st/mvc/sdk/command/src/module/generate/App/resources/loading/Default-LandscapeRight~ipad.png
  60. BIN  st/mvc/sdk/command/src/module/generate/App/resources/loading/Default-Landscape~ipad.png
  61. BIN  st/mvc/sdk/command/src/module/generate/App/resources/loading/Default-PortraitUpsideDown~ipad.png
  62. BIN  st/mvc/sdk/command/src/module/generate/App/resources/loading/Default-Portrait~ipad.png
  63. BIN  st/mvc/sdk/command/src/module/generate/App/resources/loading/Default.png
  64. BIN  st/mvc/sdk/command/src/module/generate/App/resources/loading/Default@2x.png
  65. BIN  st/mvc/sdk/command/src/module/generate/App/resources/loading/Default~ipad.png
  66. BIN  st/mvc/sdk/command/src/module/generate/App/resources/loading/Homescreen.jpg
  67. BIN  st/mvc/sdk/command/src/module/generate/App/resources/loading/Homescreen~ipad.jpg
  68. +19 0 st/mvc/sdk/command/src/module/generate/App/resources/sass/app.scss.tpl
  69. +14 0 st/mvc/sdk/command/src/module/generate/App/resources/sass/config.rb.tpl
  70. +21 0 st/mvc/sdk/command/src/module/generate/Controller.js
  71. +17 0 st/mvc/sdk/command/src/module/generate/Controller/controller.js.tpl
  72. +36 0 st/mvc/sdk/command/src/module/generate/Form.js
  73. +21 0 st/mvc/sdk/command/src/module/generate/Form/form.js.tpl
  74. +106 0 st/mvc/sdk/command/src/module/generate/Generator.js
  75. +45 0 st/mvc/sdk/command/src/module/generate/Model.js
  76. +9 0 st/mvc/sdk/command/src/module/generate/Model/model.js.tpl
  77. +21 0 st/mvc/sdk/command/src/module/generate/Profile.js
  78. +16 0 st/mvc/sdk/command/src/module/generate/Profile/profile.js.tpl
  79. +30 0 st/mvc/sdk/command/src/preprocessor/LineStack.js
  80. +121 0 st/mvc/sdk/command/src/preprocessor/Statement.js
  81. +38 0 st/mvc/sdk/command/src/preprocessor/statement/Debug.js
  82. +36 0 st/mvc/sdk/command/src/preprocessor/statement/Deprecated.js
  83. +18 0 st/mvc/sdk/command/src/preprocessor/statement/Else.js
  84. +28 0 st/mvc/sdk/command/src/preprocessor/statement/Elseif.js
  85. +20 0 st/mvc/sdk/command/src/preprocessor/statement/Feature.js
  86. +69 0 st/mvc/sdk/command/src/preprocessor/statement/If.js
  87. +20 0 st/mvc/sdk/command/templates/action.tpl
  88. +19 0 st/mvc/sdk/command/templates/actions.tpl
  89. +9 0 st/mvc/sdk/command/templates/cache.manifest.tpl
  90. +24 0 st/mvc/sdk/command/templates/modules.tpl
  91. +9 0 st/mvc/sdk/command/test/unit/helpers/preprocessor/after1.js
  92. +2 0  st/mvc/sdk/command/test/unit/helpers/preprocessor/after2.js
  93. +9 0 st/mvc/sdk/command/test/unit/helpers/preprocessor/after3.js
  94. +1 0  st/mvc/sdk/command/test/unit/helpers/preprocessor/after4.js
  95. 0  st/mvc/sdk/command/test/unit/helpers/preprocessor/after5.js
  96. +2 0  st/mvc/sdk/command/test/unit/helpers/preprocessor/after6.js
  97. +17 0 st/mvc/sdk/command/test/unit/helpers/preprocessor/before1.js
  98. +9 0 st/mvc/sdk/command/test/unit/helpers/preprocessor/before2.js
  99. +23 0 st/mvc/sdk/command/test/unit/helpers/preprocessor/before3.js
  100. +5 0 st/mvc/sdk/command/test/unit/helpers/preprocessor/before4.js
  101. +3 0  st/mvc/sdk/command/test/unit/helpers/preprocessor/before5.js
  102. +7 0 st/mvc/sdk/command/test/unit/helpers/preprocessor/before6.js
  103. +92 0 st/mvc/sdk/command/test/unit/specs/PreprocessorSpec.js
  104. +9 0 st/mvc/sdk/command/test/unit/specs/SampleSpec.js
  105. +14 0 st/mvc/sdk/command/test/unit/specs/preprocessor/statement/IfSpec.js
  106. +7 0 st/mvc/sdk/command/vendor/nodejs/node_modules/.bin/jasmine-node
  107. +323 0 st/mvc/sdk/command/vendor/nodejs/node_modules/.bin/uglifyjs
  108. +101 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/README.markdown
  109. +3 0  st/mvc/sdk/command/vendor/nodejs/node_modules/findit/examples/callback.js
  110. +9 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/examples/emitter.js
  111. +2 0  st/mvc/sdk/command/vendor/nodejs/node_modules/findit/examples/sync.js
  112. +142 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/index.js
  113. +1 0  st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/.npmignore
  114. +442 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/README.markdown
  115. +18 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/examples/join.js
  116. +12 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/examples/parseq.coffee
  117. +19 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/examples/parseq.js
  118. +16 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/examples/stat_all.coffee
  119. +17 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/examples/stat_all.js
  120. +520 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/index.js
  121. +1 0  st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/.npmignore
  122. +140 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/README.markdown
  123. +25 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/examples/add_do.js
  124. +67 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/examples/prompt.js
  125. +108 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/index.js
  126. +1 0  ...d/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/.npmignore
  127. +24 0 ...mand/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/LICENSE
  128. +247 0 ...dor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/README.markdown
  129. +16 0 ...or/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/examples/json.js
  130. +15 0 .../nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/examples/leaves.js
  131. +8 0 ...odejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/examples/negative.js
  132. +38 0 ...dejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/examples/stringify.js
  133. +322 0 ...and/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/index.js
  134. +18 0 ...vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/package.json
  135. +114 0 ...or/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/circular.js
  136. +35 0 ...vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/date.js
  137. +219 0 ...endor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/equal.js
  138. +17 0 ...or/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/instance.js
  139. +42 0 ...r/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/interface.js
  140. +47 0 ...vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/json.js
  141. +21 0 ...ndor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/leaves.js
  142. +203 0 .../nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/mutability.js
  143. +20 0 ...or/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/negative.js
  144. +15 0 .../vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/obj.js
  145. +41 0 ...vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/stop.js
  146. +36 0 ...r/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/stringify.js
  147. +54 0 .../nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/node_modules/traverse/test/super_deep.js
  148. +23 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/package.json
  149. +418 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/chainsaw/test/chainsaw.js
  150. +191 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/README.markdown
  151. +9 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/examples/chain.js
  152. +7 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/examples/map.js
  153. +253 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/index.js
  154. +1 0  ...nd/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/.npmignore
  155. +24 0 ...mmand/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/LICENSE
  156. +256 0 ...ndor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/README.markdown
  157. +16 0 ...dor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/examples/json.js
  158. +15 0 ...r/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/examples/leaves.js
  159. +8 0 ...nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/examples/negative.js
  160. +10 0 ...or/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/examples/scrub.js
  161. +38 0 ...odejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/examples/stringify.js
  162. +279 0 ...mand/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/index.js
  163. +18 0 .../vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/package.json
  164. +115 0 ...dor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/circular.js
  165. +35 0 .../vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/date.js
  166. +220 0 ...vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/equal.js
  167. +13 0 ...d/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/has.js
  168. +17 0 ...dor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/instance.js
  169. +42 0 ...or/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/interface.js
  170. +47 0 .../vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/json.js
  171. +29 0 .../vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/keys.js
  172. +21 0 ...endor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/leaves.js
  173. +92 0 ...dejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/lib/deep_equal.js
  174. +252 0 ...r/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/mutability.js
  175. +20 0 ...dor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/negative.js
  176. +15 0 ...d/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/obj.js
  177. +35 0 ...dor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/siblings.js
  178. +41 0 .../vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/stop.js
  179. +36 0 ...or/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/stringify.js
  180. +34 0 ...ndor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/subexpr.js
  181. +55 0 ...r/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/test/super_deep.js
  182. +22 0 ...r/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/node_modules/traverse/testling/leaves.js
  183. +33 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/package.json
  184. +250 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/test/hash.js
  185. +69 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/node_modules/hashish/test/property.js
  186. +33 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/package.json
  187. +35 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/test/readdir.js
  188. +946 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/test/seq.js
  189. +149 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/node_modules/seq/test/seq_.js
  190. +34 0 st/mvc/sdk/command/vendor/nodejs/node_modules/findit/package.json
  191. +142 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node.js
  192. +12 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/.npmignore
  193. +22 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/LICENSE
  194. +56 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/README.md
  195. +7 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/bin/jasmine-node
  196. +41 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/lib/jasmine-node/async-callback.js
  197. +86 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/lib/jasmine-node/autotest.js
  198. +174 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/lib/jasmine-node/cli.js
  199. +145 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/lib/jasmine-node/index.js
  200. +2,479 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/lib/jasmine-node/jasmine-2.0.0.rc1.js
  201. +275 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/lib/jasmine-node/reporter.js
  202. +70 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/lib/jasmine-node/requirejs-runner.js
  203. +48 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/lib/jasmine-node/requirejs-spec-loader.js
  204. +65 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/lib/jasmine-node/requirejs-wrapper-template.js
  205. +36 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/lib/jasmine-node/spec-collection.js
  206. +7 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/.bin/cake
  207. +7 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/.bin/coffee
  208. +9,823 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/.bin/r.js
  209. +11 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/.npmignore
  210. +22 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/LICENSE
  211. +51 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/README
  212. +78 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/Rakefile
  213. +7 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/bin/cake
  214. +7 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/bin/coffee
  215. +44 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/extras/jsl.conf
  216. +74 0 ...sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/browser.js
  217. +99 0 ...vc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/cake.js
  218. +150 0 ...mmand/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/coffee-script.js
  219. +442 0 ...sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/command.js
  220. +592 0 ...sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/grammar.js
  221. +72 0 ...sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/helpers.js
  222. +10 0 ...c/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/index.js
  223. +686 0 ...c/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/lexer.js
  224. +2,514 0 ...c/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/nodes.js
  225. +122 0 ...dk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/optparse.js
  226. +674 0 .../sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/parser.js
  227. +149 0 ...vc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/repl.js
  228. +301 0 ...dk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/rewriter.js
  229. +124 0 ...c/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/scope.js
  230. +31 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/coffee-script/package.json
  231. +3 0  st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/.gitmodules
  232. +1 0  st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/.npmignore
  233. +21 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/LICENSE
  234. +52 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/README.markdown
  235. +13,989 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/env.rhino.1.2.js
  236. +182 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/jasmine-html.js
  237. +166 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/jasmine.css
  238. +2,421 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/jasmine.js
  239. BIN  st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/jline.jar
  240. BIN  st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/js.jar
  241. +10 0 ...sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/.npmignore
  242. +57 0 .../sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/ChangeLog
  243. +22 0 ...dk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/LICENSE.BSD
  244. +28 0 .../sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/README.md
  245. +6 0 ...dor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/arguments.coffee
  246. +8 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/arguments.js
  247. +45 0 ...or/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/colorwheel.coffee
  248. +52 0 ...vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/colorwheel.js
  249. +8 0 ...dor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/countdown.coffee
  250. +8 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/countdown.js
  251. +64 0 ...dejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/cycle_multiple_urls.js
  252. +28 0 ...dor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/direction.coffee
  253. +34 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/direction.js
  254. +81 0 .../nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/extract-text.coffee
  255. +121 0 ...ndor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/extract-text.js
  256. +8 0 ...d/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/fibo.coffee
  257. +9 0 ...mmand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/fibo.js
  258. +36 0 ...vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/follow.coffee
  259. +37 0 ...and/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/follow.js
  260. +2 0  .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/hello.coffee
  261. +2 0  ...mand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/hello.js
  262. +13 0 ...dor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/ipgeocode.coffee
  263. +14 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/ipgeocode.js
  264. +17 0 ...dor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/loadspeed.coffee
  265. +20 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/loadspeed.js
  266. +13 0 ...vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/movies.coffee
  267. +14 0 ...and/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/movies.js
  268. +10 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/pizza.coffee
  269. +12 0 ...mand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/pizza.js
  270. +21 0 ...dor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/rasterize.coffee
  271. +22 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/rasterize.js
  272. +26 0 ...endor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/run-jasmine.js
  273. +24 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/run-qunit.js
  274. +17 0 ...or/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/seasonfood.coffee
  275. +19 0 ...vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/seasonfood.js
  276. +13 0 ...ndor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/technews.coffee
  277. +14 0 ...d/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/technews.js
  278. +8 0 ...vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/tweets.coffee
  279. +12 0 ...and/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/tweets.js
  280. +7 0 ...dor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/useragent.coffee
  281. +8 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/useragent.js
  282. +5 0 ...endor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/version.coffee
  283. +5 0 ...nd/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/version.js
  284. +40 0 ...endor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/waitfor.coffee
  285. +43 0 ...nd/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/waitfor.js
  286. +35 0 ...endor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/weather.coffee
  287. +42 0 ...nd/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/examples/weather.js
  288. +3 0  .../command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/phantomjs.pro
  289. +20 0 ...command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/INSTALL
  290. +674 0 ...command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/LICENSE
  291. +56 0 .../command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/README
  292. +41 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/csconverter.py
  293. +84 0 ...odejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/networkaccessmanager.py
  294. +384 0 ...mand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/phantom.py
  295. +98 0 ...or/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/plugincontroller.py
  296. +1 0  ...or/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/plugins/__init__.py
  297. +154 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/pyphantomjs.py
  298. +4,160 0 ...nd/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/resources.py
  299. +6 0 ...d/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/resources.qrc
  300. +8 0 ...js/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/resources/coffee-script.js
  301. BIN  ...ode_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/resources/pyphantomjs-icon.ico
  302. BIN  ...ode_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/resources/pyphantomjs-icon.png
  303. +14 0 ...dejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/tools/build_resources.sh
  304. +52 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/tools/setup.py
  305. +126 0 ...ommand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/utils.py
  306. +67 0 ...mand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/python/webpage.py
  307. +8 0 ...d/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/coffee-script.js
  308. +39 0 ...k/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/consts.h
  309. +61 0 ...nd/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/csconverter.cpp
  310. +47 0 ...mand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/csconverter.h
  311. +1 0  ...mmand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/gif/config.h
  312. +1,111 0 ...and/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/gif/egif_lib.c
  313. +20 0 ...ommand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/gif/gif.pri
  314. +120 0 ...mand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/gif/gif_err.c
  315. +160 0 ...and/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/gif/gif_hash.c
  316. +59 0 ...and/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/gif/gif_hash.h
  317. +336 0 ...mand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/gif/gif_lib.h
  318. +59 0 ...dor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/gif/gif_lib_private.h
  319. +443 0 ...and/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/gif/gifalloc.c
  320. +126 0 .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/gif/gifwriter.cpp
  321. +38 0 ...nd/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/gif/gifwriter.h
  322. +330 0 ...and/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/gif/quantize.c
  323. +64 0 ...k/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/main.cpp
  324. +119 0 .../nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/networkaccessmanager.cpp
  325. +53 0 ...or/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/networkaccessmanager.h
  326. +494 0 ...ommand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/phantom.cpp
  327. +117 0 .../command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/phantom.h
  328. BIN  ...vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/phantomjs-icon.png
  329. +32 0 ...mand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/phantomjs.pro
  330. +7 0 ...mand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/phantomjs.qrc
  331. BIN  .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/phantomjs_os2.ico
  332. +1 0  ...d/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/phantomjs_os2.rc
  333. BIN  .../vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/phantomjs_win.ico
  334. +1 0  ...d/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/phantomjs_win.rc
  335. +11 0 .../command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/usage.txt
  336. +74 0 .../command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/utils.cpp
  337. +50 0 ...dk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/utils.h
  338. +87 0 ...ommand/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/webpage.cpp
  339. +61 0 .../command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/phantomjs/src/webpage.h
  340. +15 0 st/mvc/sdk/command/vendor/nodejs/node_modules/jasmine-node/node_modules/jasmine-reporters/package.json
Sorry, we could not display the entire diff because too many files (1,368) changed.
2  Ux/locale/override/st/Button.js
@@ -7,7 +7,7 @@ Ext.define('Ux.locale.override.st.Button', {
7 7
8 8 setLocale : function(locale) {
9 9 var me = this,
10   - locales = me.locales,
  10 + locales = me.locales || me.getInitialConfig().locales,
11 11 text = locales.text,
12 12 manager = me.locale,
13 13 defaultText = '';
2  Ux/locale/override/st/Component.js
@@ -28,7 +28,7 @@ Ext.define('Ux.locale.override.st.Component', {
28 28
29 29 setLocale : function(locale) {
30 30 var me = this,
31   - locales = me.locales,
  31 + locales = me.locales || me.getInitialConfig().locales,
32 32 html = locales.html,
33 33 manager = me.locale,
34 34 defaultText = '';
2  Ux/locale/override/st/Container.js
@@ -8,7 +8,7 @@ Ext.define('Ux.locale.override.st.Container', {
8 8 setLocale : function(locale) {
9 9 var me = this,
10 10 tab = me.getTab(),
11   - locales = me.locales,
  11 + locales = me.locales || me.getInitialConfig().locales,
12 12 title = locales.title,
13 13 manager = me.locale,
14 14 defaultText = '';
2  Ux/locale/override/st/TitleBar.js
@@ -7,7 +7,7 @@ Ext.define('Ux.locale.override.st.TitleBar', {
7 7
8 8 setLocale : function(locale) {
9 9 var me = this,
10   - locales = me.locales,
  10 + locales = me.locales || me.getInitialConfig().locales,
11 11 title = locales.title,
12 12 manager = me.locale,
13 13 defaultText = '';
2  Ux/locale/override/st/field/Field.js
@@ -7,7 +7,7 @@ Ext.define('Ux.locale.override.st.field.Field', {
7 7
8 8 setLocale : function(locale) {
9 9 var me = this,
10   - locales = me.locales,
  10 + locales = me.locales || me.getInitialConfig().locales,
11 11 label = locales.label,
12 12 manager = me.locale,
13 13 defaultLabel = '';
1  st/mvc/.senchasdk
... ... @@ -0,0 +1 @@
  1 +sdk
63 st/mvc/app.js
... ... @@ -0,0 +1,63 @@
  1 +Ext.Loader.setPath({
  2 + Ux : '../../Ux'
  3 +});
  4 +
  5 +Ext.application({
  6 + name: 'Locale',
  7 +
  8 + requires: [
  9 + 'Ext.MessageBox',
  10 + 'Ext.Ajax',
  11 +
  12 + 'Ux.locale.Manager',
  13 + 'Ux.locale.override.st.Component',
  14 + 'Ux.locale.override.st.Button',
  15 + 'Ux.locale.override.st.Container',
  16 + 'Ux.locale.override.st.TitleBar',
  17 + 'Ux.locale.override.st.field.Field'
  18 + ],
  19 +
  20 + controllers : ['Main'],
  21 + views : ['Main'],
  22 +
  23 + icon: {
  24 + 57: 'resources/icons/Icon.png',
  25 + 72: 'resources/icons/Icon~ipad.png',
  26 + 114: 'resources/icons/Icon@2x.png',
  27 + 144: 'resources/icons/Icon~ipad@2x.png'
  28 + },
  29 +
  30 + phoneStartupScreen: 'resources/loading/Homescreen.jpg',
  31 + tabletStartupScreen: 'resources/loading/Homescreen~ipad.jpg',
  32 +
  33 + launch: function() {
  34 + Ux.locale.Manager.setConfig({
  35 + ajaxConfig : {
  36 + method : 'GET'
  37 + },
  38 + language : 'en',
  39 + tpl : 'http://localhost/UX.locale.Manager/st/locales/{locale}.json',
  40 + type : 'ajax'
  41 + });
  42 +
  43 + Ux.locale.Manager.init();
  44 +
  45 + // Destroy the #appLoadingIndicator element
  46 + Ext.fly('appLoadingIndicator').destroy();
  47 +
  48 + // Initialize the main view
  49 + Ext.Viewport.add(Ext.create('Locale.view.Main'));
  50 + },
  51 +
  52 + onUpdated: function() {
  53 + Ext.Msg.confirm(
  54 + "Application Update",
  55 + "This application has just successfully been updated to the latest version. Reload now?",
  56 + function(buttonId) {
  57 + if (buttonId === 'yes') {
  58 + window.location.reload();
  59 + }
  60 + }
  61 + );
  62 + }
  63 +});
134 st/mvc/app.json
... ... @@ -0,0 +1,134 @@
  1 +{
  2 + /**
  3 + * The application's namespace, used by Sencha Command to generate classes
  4 + */
  5 + "name": "Locale",
  6 +
  7 + /**
  8 + * The file path to this application's front HTML document, relative to this app.json file
  9 + */
  10 + "indexHtmlPath": "index.html",
  11 +
  12 + /**
  13 + * The absolute URL to this application in development environment, i.e: the URL to run this application
  14 + * on your web browser during development, e.g: "http://localhost/myapp/index.html".
  15 + *
  16 + * This value is needed when build to resolve your application's dependencies if it requires server-side resources
  17 + * that are not accessible via file system protocol.
  18 + */
  19 + "url": null,
  20 +
  21 + /**
  22 + * List of all JavaScript assets in the right execution order.
  23 + * Each item is an object with the following format:
  24 + * {
  25 + * "path": "path/to/script.js" // Relative path to this app.json file
  26 + * "update": "delta" // (Optional)
  27 + * // - If not specified, this file will only be loaded once, and
  28 + * // cached inside localStorage until this value is changed.
  29 + * // - "delta" to enable over-the-air delta update for this file
  30 + * // - "full" means full update will be made when this file changes
  31 + *
  32 + * }
  33 + */
  34 + "js": [
  35 + {
  36 + "path": "sdk/sencha-touch.js"
  37 + },
  38 + {
  39 + "path": "app.js",
  40 + "bundle": true, /* Indicates that all class dependencies are concatenated into this file when build */
  41 + "update": "delta"
  42 + }
  43 + ],
  44 +
  45 + /**
  46 + * List of all CSS assets in the right inclusion order.
  47 + * Each item is an object with the following format:
  48 + * {
  49 + * "path": "path/to/item.css" // Relative path to this app.json file
  50 + * "update": "delta" // (Optional)
  51 + * // - If not specified, this file will only be loaded once, and
  52 + * // cached inside localStorage until this value is changed to either one below
  53 + * // - "delta" to enable over-the-air delta update for this file
  54 + * // - "full" means full update will be made when this file changes
  55 + *
  56 + * }
  57 + */
  58 + "css": [
  59 + {
  60 + "path": "resources/css/app.css",
  61 + "update": "delta"
  62 + }
  63 + ],
  64 +
  65 + /**
  66 + * Used to automatically generate cache.manifest (HTML 5 application cache manifest) file when you build
  67 + */
  68 + "appCache": {
  69 + /**
  70 + * List of items in the CACHE MANIFEST section
  71 + */
  72 + "cache": [
  73 + "index.html"
  74 + ],
  75 + /**
  76 + * List of items in the NETWORK section
  77 + */
  78 + "network": [
  79 + "*"
  80 + ],
  81 + /**
  82 + * List of items in the FALLBACK section
  83 + */
  84 + "fallback": []
  85 + },
  86 +
  87 + /**
  88 + * Extra resources to be copied along when build
  89 + */
  90 + "resources": [
  91 + "resources/images",
  92 + "resources/icons",
  93 + "resources/loading"
  94 + ],
  95 +
  96 + /**
  97 + * File / directory name matchers to ignore when copying to the builds, must be valid regular expressions
  98 + */
  99 + "ignore": [
  100 + "\.svn$"
  101 + ],
  102 +
  103 + /**
  104 + * Directory path to store all previous production builds. Note that the content generated inside this directory
  105 + * must be kept intact for proper generation of deltas between updates
  106 + */
  107 + "archivePath": "archive",
  108 +
  109 + /**
  110 + * Default paths to build this application to for each environment
  111 + */
  112 + "buildPaths": {
  113 + "testing": "build/testing",
  114 + "production": "build/production",
  115 + "package": "build/package",
  116 + "native": "build/native"
  117 + },
  118 +
  119 + /**
  120 + * Build options
  121 + */
  122 + "buildOptions": {
  123 + "product": "touch",
  124 + "minVersion": 3,
  125 + "debug": false,
  126 + "logger": "no"
  127 + },
  128 +
  129 + /**
  130 + * Uniquely generated id for this application, used as prefix for localStorage keys.
  131 + * Normally you should never change this value.
  132 + */
  133 + "id": "7c5bf3c0-830d-11e1-9f67-e14caa31743a"
  134 +}
21 st/mvc/app/controller/Main.js
... ... @@ -0,0 +1,21 @@
  1 +Ext.define('Locale.controller.Main', {
  2 + extend: 'Ext.app.Controller',
  3 +
  4 + config : {
  5 + control : {
  6 + 'selectfield' : {
  7 + change : 'onLocalePick'
  8 + }
  9 + }
  10 + },
  11 +
  12 + onLocalePick : function(field, value) {
  13 + if (value.length > 2) {
  14 + var store = field.getStore(),
  15 + rec = store.findRecord('text', value),
  16 + abbr = rec.get(field.getValueField());
  17 + }
  18 +
  19 + Ux.locale.Manager.updateLocale(abbr);
  20 + }
  21 +});
80 st/mvc/app/view/Main.js
... ... @@ -0,0 +1,80 @@
  1 +Ext.define('Locale.view.Main', {
  2 + extend: 'Ext.Container',
  3 + requires: [
  4 + 'Ext.TitleBar',
  5 + 'Ext.tab.Panel',
  6 + 'Ext.Button',
  7 + 'Ext.field.Select'
  8 + ],
  9 +
  10 + config: {
  11 + layout : 'fit',
  12 + items : [
  13 + {
  14 + xtype : 'titlebar',
  15 + docked : 'bottom',
  16 + locales : {
  17 + title : 'misc.bottomTitle'
  18 + },
  19 + items : [
  20 + {
  21 + ui : 'decline',
  22 + locales : {
  23 + text : 'buttons.cancel'
  24 + }
  25 + },
  26 + {
  27 + ui : 'confirm',
  28 + locales : {
  29 + text : 'buttons.save'
  30 + }
  31 + },
  32 + {
  33 + xtype : 'selectfield',
  34 + align : 'right',
  35 + displayField : 'text',
  36 + valueField : 'abbr',
  37 + value : 'en',
  38 + store : {
  39 + fields : ['abbr', 'text'],
  40 + data : Ux.locale.Manager.getAvailable(true)
  41 + }
  42 + }
  43 + ]
  44 + },
  45 + {
  46 + xtype : 'tabpanel',
  47 + items : [
  48 + {
  49 + title : ' ',
  50 + locales : {
  51 + html : 'tabs.one.html',
  52 + title : 'tabs.one.title'
  53 + }
  54 + },
  55 + {
  56 + title : ' ',
  57 + locales : {
  58 + title : 'tabs.two.title'
  59 + },
  60 + items : [
  61 + {
  62 + xtype : 'textfield',
  63 + locales : {
  64 + label : 'fields.name'
  65 + }
  66 + }
  67 + ]
  68 + },
  69 + {
  70 + title : ' ',
  71 + locales : {
  72 + html : 'tabs.three.html',
  73 + title : 'tabs.three.title'
  74 + }
  75 + }
  76 + ]
  77 + }
  78 + ]
  79 + }
  80 +});
76 st/mvc/index.html
... ... @@ -0,0 +1,76 @@
  1 +<!DOCTYPE HTML>
  2 +<html manifest="" lang="en-US">
  3 +<head>
  4 + <meta charset="UTF-8">
  5 + <title>Locale</title>
  6 + <style type="text/css">
  7 + /**
  8 + * Example of an initial loading indicator.
  9 + * It is recommended to keep this as minimal as possible to provide instant feedback
  10 + * while other resources are still being loaded for the first time
  11 + */
  12 + html, body {
  13 + height: 100%;
  14 + }
  15 +
  16 + #appLoadingIndicator {
  17 + position: absolute;
  18 + top: 50%;
  19 + left: 50%;
  20 + margin-top: -10px;
  21 + margin-left: -50px;
  22 + width: 100px;
  23 + height: 20px;
  24 + }
  25 +
  26 + #appLoadingIndicator > * {
  27 + background-color: #FFFFFF;
  28 + float: left;
  29 + height: 20px;
  30 + margin-left: 11px;
  31 + width: 20px;
  32 + -webkit-animation-name: appLoadingIndicator;
  33 + -webkit-border-radius: 13px;
  34 + -webkit-animation-duration: 0.8s;
  35 + -webkit-animation-iteration-count: infinite;
  36 + -webkit-animation-direction: linear;
  37 + opacity: 0.3
  38 + }
  39 +
  40 + #appLoadingIndicator > :nth-child(1) {
  41 + -webkit-animation-delay: 0.18s;
  42 + }
  43 +
  44 + #appLoadingIndicator > :nth-child(2) {
  45 + -webkit-animation-delay: 0.42s;
  46 + }
  47 +
  48 + #appLoadingIndicator > :nth-child(3) {
  49 + -webkit-animation-delay: 0.54s;
  50 + }
  51 +
  52 + @-webkit-keyframes appLoadingIndicator{
  53 + 0% {
  54 + opacity: 0.3
  55 + }
  56 +
  57 + 50% {
  58 + opacity: 1;
  59 + background-color:#1985D0
  60 + }
  61 +
  62 + 100% {
  63 + opacity:0.3
  64 + }
  65 + }
  66 + </style>
  67 + <script id="microloader" type="text/javascript" src="sdk/microloader/development.js"></script>
  68 +</head>
  69 +<body>
  70 + <div id="appLoadingIndicator">
  71 + <div></div>
  72 + <div></div>
  73 + <div></div>
  74 + </div>
  75 +</body>
  76 +</html>
126 st/mvc/packager.json
... ... @@ -0,0 +1,126 @@
  1 +{
  2 + /**
  3 + * @cfg {String} applicationName
  4 + * @required
  5 + * This is the name of your application, which is displayed on the device when the app is installed. On IOS, this should match
  6 + * the name of your application in the Apple Provisioning Portal.
  7 + */
  8 + "applicationName":"My Application",
  9 +
  10 + /**
  11 + * @cfg {String} applicationId
  12 + * This is the name namespace for your application. On IOS, this should match the name of your application in the Apple Provisioning Portal.
  13 + */
  14 + "applicationId":"com.mycompany.myAppID",
  15 +
  16 + /**
  17 + * @cfg {String} versionString
  18 + * @required
  19 + * This is the version of your application.
  20 + */
  21 + "versionString":"1.0",
  22 +
  23 + /**
  24 + * @cfg {String} iconName
  25 + * This is file name of your icon. This should be in the same directory of this configuration file.
  26 + *
  27 + * For iOS, please refer to their documentation about icon sizes:
  28 + * https://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html
  29 + *
  30 + * For Android, please refer to the Google Launcher icons guide:
  31 + * http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html
  32 + */
  33 + "iconName":"resources/icons/Icon~ipad.png",
  34 +
  35 + /**
  36 + * @cfg {String} inputPath
  37 + * @required
  38 + * This is location of your Sencha Touch 2 application, relative to this configuration file.
  39 + */
  40 + "inputPath":"build/native",
  41 +
  42 + /**
  43 + * @cfg {String} outputPath
  44 + * @required
  45 + * This is where the built application file with be saved.
  46 + */
  47 + "outputPath":"build/",
  48 +
  49 + /**
  50 + * @cfg {String} configuration
  51 + * @required
  52 + * This is configuration for your application. `Debug` should always be used unless you are submitting your app to an online
  53 + * store - in which case `Release` should be specified.
  54 + */
  55 + "configuration":"Debug",
  56 +
  57 + /**
  58 + * @cfg {String} platform
  59 + * @required
  60 + * This is the platform where you will be running your application. Available options are:
  61 + * - iOSSimulator
  62 + * - iOS
  63 + * - Android
  64 + * - AndroidEmulator
  65 + */
  66 + "platform":"iOSSimulator",
  67 +
  68 + /**
  69 + * @cfg {String} deviceType
  70 + * @required
  71 + * This is device type that your application will be running on.
  72 + *
  73 + * If you are developing for Android, this is not necessary.
  74 + *
  75 + * Available options are:
  76 + * - iPhone
  77 + * - iPad
  78 + * - Universal
  79 + */
  80 + "deviceType":"Universal",
  81 +
  82 + /**
  83 + * @cfg {String} certificatePath
  84 + * This is the location of your certificate.
  85 + * This is required when you are developing for Android or you are developing on Windows.
  86 + */
  87 + "certificatePath":"/path/to/certificate.file",
  88 +
  89 + /**
  90 + * @cfg {String} certificateAlias
  91 + * This is the name of your certificate.
  92 + *
  93 + * IF you do not specify this on OSX, we will try and automatically find the certificate for you using the applicationId.
  94 + *
  95 + * This can be just a simple matcher. For example, if your certificate name is "iPhone Developer: Robert Dougan (ABCDEFGHIJ)", you
  96 + * can just put "iPhone Developer".
  97 + *
  98 + * When using a certificatePath on Windows, you do not need to specify this.
  99 + */
  100 + "certificateAlias":"",
  101 +
  102 + /**
  103 + * @cfg {String} sdkPath
  104 + * This is the path to the Android SDK, if you are developing an Android application.
  105 + */
  106 + "sdkPath":"/path/to/android-sdk",
  107 +
  108 + /**
  109 + * @cfg androidAPILevel
  110 + * This is android API level, the version of Android SDK to use, you can read more about it here: http://developer.android.com/guide/appendix/api-levels.html.
  111 + * Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)
  112 + */
  113 + "androidAPILevel":"15",
  114 +
  115 + /**
  116 + * @cfg orientations
  117 + * @required
  118 + * This is orientations that this application can run.
  119 + */
  120 + "orientations": [
  121 + "portrait",
  122 + "landscapeLeft",
  123 + "landscapeRight",
  124 + "portraitUpsideDown"
  125 + ]
  126 +}
9,680 st/mvc/resources/css/app.css
9,680 additions, 0 deletions not shown
BIN  st/mvc/resources/icons/Icon.png
BIN  st/mvc/resources/icons/Icon@2x.png
BIN  st/mvc/resources/icons/Icon~ipad.png
BIN  st/mvc/resources/icons/Icon~ipad@2x.png
BIN  st/mvc/resources/icons/iTunesArtwork.png
BIN  st/mvc/resources/icons/icon-spot~ipad.png
BIN  st/mvc/resources/loading/Default-LandscapeLeft~ipad.png
BIN  st/mvc/resources/loading/Default-LandscapeRight~ipad.png
BIN  st/mvc/resources/loading/Default-Landscape~ipad.png
BIN  st/mvc/resources/loading/Default-PortraitUpsideDown~ipad.png
BIN  st/mvc/resources/loading/Default-Portrait~ipad.png
BIN  st/mvc/resources/loading/Default.png
BIN  st/mvc/resources/loading/Default@2x.png
BIN  st/mvc/resources/loading/Default~ipad.png
BIN  st/mvc/resources/loading/Homescreen.jpg
BIN  st/mvc/resources/loading/Homescreen~ipad.jpg
19 st/mvc/resources/sass/app.scss
... ... @@ -0,0 +1,19 @@
  1 +@import 'sencha-touch/default/all';
  2 +
  3 +// You may remove any of the following modules that you
  4 +// do not use in order to create a smaller css file.
  5 +@include sencha-panel;
  6 +@include sencha-buttons;
  7 +@include sencha-sheet;
  8 +@include sencha-picker;
  9 +@include sencha-tabs;
  10 +@include sencha-toolbar;
  11 +@include sencha-toolbar-forms;
  12 +@include sencha-indexbar;
  13 +@include sencha-list;
  14 +@include sencha-layout;
  15 +@include sencha-carousel;
  16 +@include sencha-form;
  17 +@include sencha-msgbox;
  18 +
  19 +// Your custom code goes here...
14 st/mvc/resources/sass/config.rb
... ... @@ -0,0 +1,14 @@
  1 +# Get the directory that this configuration file exists in
  2 +dir = File.dirname(__FILE__)
  3 +
  4 +# Load the sencha-touch framework automatically.
  5 +load File.join(dir, '..', '..', 'sdk', 'resources', 'themes')
  6 +
  7 +# Compass configurations
  8 +sass_path = dir
  9 +css_path = File.join(dir, "..", "css")
  10 +
  11 +# Require any additional compass plugins here.
  12 +images_dir = File.join(dir, "..", "images")
  13 +output_style = :compressed
  14 +environment = :production
73 st/mvc/sdk/command/sencha.js
... ... @@ -0,0 +1,73 @@
  1 +/**
  2 + * Sencha Command
  3 + * @author Jacky Nguyen <jacky@sencha.com>
  4 + */
  5 +(function() {
  6 + var sdkToolsVersion = '2.0.0-beta2',
  7 + sdkToolsEnvName = 'SENCHA_SDK_TOOLS_' + sdkToolsVersion.replace(/[\.-]/g, '_').toUpperCase(),
  8 + coreFiles = [
  9 + "Ext.js",
  10 + "version/Version.js",
  11 + "lang/String.js",
  12 + "lang/Number.js",
  13 + "lang/Array.js",
  14 + "lang/Function.js",
  15 + "lang/Object.js",
  16 + "lang/Date.js",
  17 + "lang/JSON.js",
  18 + "class/Base.js",
  19 + "class/Class.js",
  20 + "class/ClassManager.js",
  21 + "class/Loader.js",
  22 + "lang/Error.js"
  23 + ],
  24 + path = require('path'),
  25 + currentPath = __dirname,
  26 + srcPath = path.resolve(currentPath, '../src'),
  27 + corePath = path.join(srcPath, 'core'),
  28 + sdkToolsPath = process.env[sdkToolsEnvName],
  29 + command;
  30 +
  31 + if (!sdkToolsPath) {
  32 + console.log('[ERROR] Sencha SDK Tools ' + sdkToolsVersion + ' cannot be found from your system ('+sdkToolsEnvName+
  33 + ' environment variable is not set). Please download and install version "'+
  34 + sdkToolsVersion+'" of the tools from http://www.sencha.com/products/sdk-tools . ' +
  35 + 'Close this terminal and open a new one after the installation is complete.');
  36 + return;
  37 + }
  38 +
  39 + coreFiles.forEach(function(file) {
  40 + require(path.join(corePath, file));
  41 + });
  42 +
  43 + Ext.Loader.setConfig({
  44 + paths: {
  45 + Ext: srcPath,
  46 + Command: path.join(currentPath, 'src')
  47 + }
  48 + });
  49 +
  50 + command = Ext.create('Command.Cli', {
  51 + version: '2.0.1',
  52 + currentPath: currentPath,
  53 + binPath: path.join(sdkToolsPath, 'bin'),
  54 + modules: {
  55 + 'app': 'Application',
  56 + 'fs': 'FileSystem',
  57 + 'manifest': 'Manifest',
  58 + 'test': 'Test',
  59 + 'generate': 'Generate',
  60 + 'package': 'Package'
  61 + },
  62 + logger: Ext.create('Ext.log.Logger', {
  63 + writers: {
  64 + cli: Ext.create('Command.log.writer.Cli', {
  65 + formatter: Ext.create('Command.log.formatter.Cli')
  66 + })
  67 + },
  68 + minPriority: 'verbose'
  69 + })
  70 + });
  71 +
  72 + command.run(Array.prototype.slice.call(process.argv, 2));
  73 +})();
314 st/mvc/sdk/command/src/Cli.js
... ... @@ -0,0 +1,314 @@
  1 +/**
  2 + * @class Command.Cli
  3 + * @author Jacky Nguyen <jacky@sencha.com>
  4 + */
  5 +Ext.define('Command.Cli', {
  6 + config: {
  7 + version: '',
  8 + logger: null,
  9 + currentPath: '',
  10 + binPath: '',
  11 + modules: {}
  12 + },
  13 +
  14 + modules: {},
  15 +
  16 + templates: {},
  17 +
  18 + ArgumentError: new Ext.Class({
  19 + extend: Error,
  20 + constructor: function(message){
  21 + this.message = message;
  22 + }
  23 + }),
  24 +
  25 + constructor: function(config) {
  26 + var platformName = process.platform;
  27 +
  28 + if (platformName === 'win32') {
  29 + platformName = 'win';
  30 + }
  31 + else if (platformName === 'darwin') {
  32 + platformName = 'osx';
  33 + }
  34 + else {
  35 + platformName = 'linux';
  36 +
  37 + if (/64/.test(process.arch)) {
  38 + platformName += '64';
  39 + }
  40 + }
  41 +
  42 + this.platformName = platformName;
  43 +
  44 + this.initConfig(config);
  45 + },
  46 +
  47 + applyVersion: function(version) {
  48 + return new Ext.Version(version);
  49 + },
  50 +
  51 + applyModules: function(modules) {
  52 + var classManager = Ext.ClassManager,
  53 + alias, name;
  54 +
  55 + for (alias in modules) {
  56 + if (modules.hasOwnProperty(alias)) {
  57 + name = modules[alias];
  58 + classManager.setAlias('Command.module.' + name, 'module.' + alias);
  59 + }
  60 + }
  61 +
  62 + return modules;
  63 + },
  64 +
  65 + run: function(args) {
  66 + var options = this.parseArguments(args),
  67 + targets = options.targets,
  68 + moduleName = targets.shift(),
  69 + action = targets.shift(),
  70 + module;
  71 +
  72 + if (!moduleName || !(module = this.getModule(moduleName))) {
  73 + return this.printUsage();
  74 + }
  75 +
  76 + if (!action || !module.hasAction(action)) {
  77 + return this.printUsage(moduleName);
  78 + }
  79 +
  80 + process.on('uncaughtException', function(e) {
  81 + this.error(e.message);
  82 + }.bind(this));
  83 +
  84 + try {
  85 + this.execute(module, action, options);
  86 + }
  87 + catch (e) {
  88 + this.error(e.message);
  89 +
  90 + if (e instanceof this.ArgumentError) {
  91 + this.printUsage(moduleName, action);
  92 + }
  93 + }
  94 + },
  95 +
  96 + getModule: function(name) {
  97 + var modules = this.modules,
  98 + module = modules[name];
  99 +
  100 + if (!module) {
  101 + try {
  102 + module = Ext.createByAlias('module.' + name, this);
  103 + }
  104 + catch (e) {
  105 + return null;
  106 + }
  107 +
  108 + modules[name] = module;
  109 + }
  110 +
  111 + return module;
  112 + },
  113 +
  114 + execute: function(module, action, options) {
  115 + var rules = module.getActionRules(action).slice(1),
  116 + args = [],
  117 + targets = options.targets,
  118 + i, ln, arg, value, name, longName, shortName, type, defaultValue;
  119 +
  120 + for (i = 0,ln = rules.length; i < ln; i++) {
  121 + arg = rules[i];
  122 +
  123 + longName = arg[0];
  124 + shortName = arg[1];
  125 + type = arg[3];
  126 + defaultValue = arg[4];
  127 + name = '--' + longName;
  128 +
  129 + if (options.hasOwnProperty(longName)) {
  130 + value = this.formatArgumentValue(options[longName], type, name);
  131 + }
  132 + else if (shortName && options.hasOwnProperty(shortName)) {
  133 + name = '-' + shortName;
  134 + value = this.formatArgumentValue(options[shortName], type, name);
  135 + }
  136 + else {
  137 + value = targets.shift();
  138 +
  139 + if (value !== undefined) {
  140 + value = this.formatArgumentValue(value, type, name);
  141 + }
  142 + else if (defaultValue !== undefined && defaultValue !== null) {
  143 + value = defaultValue;
  144 + }
  145 + else {
  146 + throw new this.ArgumentError("Missing required value for argument: '" + name + "'");
  147 + }
  148 + }
  149 +
  150 + args.push(value);
  151 + }
  152 +
  153 + module[action].apply(module, args);
  154 + },
  155 +
  156 + formatArgumentValue: function(value, type, name) {
  157 + var errorMessagePrefix = "Invalid value of: '" + value + "' for argument: '" + name + "', ";
  158 +
  159 + switch (type) {
  160 + case "number":
  161 + if (isNaN(value)) {
  162 + throw new this.ArgumentError(errorMessagePrefix + "must be a valid number");
  163 + }
  164 + return Number(value);
  165 + break;
  166 +
  167 + case "array":
  168 + if (typeof value != 'string') {
  169 + throw new this.ArgumentError(errorMessagePrefix + "must be a valid comma-separated list of items");
  170 + }
  171 + return value.split(',');
  172 + break;
  173 +
  174 + case "boolean":
  175 + if (value === "yes") {
  176 + value = true;
  177 + }
  178 + else if (value === "no") {
  179 + value = false;
  180 + }
  181 + return Boolean(value);
  182 + break;
  183 +
  184 + default:
  185 + return String(value);
  186 + }
  187 + },
  188 +
  189 + getTemplate: function(name) {
  190 + var templates = this.templates,
  191 + template = templates[name],
  192 + filePath;
  193 +
  194 + if (!template) {