uki 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. data/VERSION +1 -1
  2. data/frameworks/uki/README.rdoc +6 -15
  3. data/frameworks/uki/examples/core-examples/aristo/aristo.js +59 -0
  4. data/frameworks/uki/examples/core-examples/attachment/attachment.js +18 -0
  5. data/frameworks/uki/examples/core-examples/controls/controls.js +59 -0
  6. data/frameworks/uki/examples/core-examples/dnd/dnd.js +70 -0
  7. data/frameworks/uki/examples/core-examples/flow/flow.js +41 -0
  8. data/frameworks/uki/examples/core-examples/list/list.js +78 -0
  9. data/frameworks/uki/examples/core-examples/popup/popup.js +41 -0
  10. data/frameworks/uki/examples/core-examples/resizeToContents/resizeToContents.js +34 -0
  11. data/frameworks/uki/examples/core-examples/scrollPane/scrollPane.js +28 -0
  12. data/frameworks/uki/examples/core-examples/slider/slider.js +23 -0
  13. data/frameworks/uki/examples/core-examples/splitPane/splitPane.js +35 -0
  14. data/frameworks/uki/examples/core-examples/splitPaneExtended/splitPaneExtended.js +39 -0
  15. data/frameworks/uki/examples/core-examples/stress/stress.js +33 -0
  16. data/frameworks/uki/examples/core-examples/table/library.js +1 -0
  17. data/frameworks/uki/examples/core-examples/table/searchable.js +71 -0
  18. data/frameworks/uki/examples/core-examples/table/table.js +92 -0
  19. data/frameworks/uki/examples/core-examples/toolbar/icon.png +0 -0
  20. data/frameworks/uki/examples/core-examples/toolbar/toolbar.js +44 -0
  21. data/frameworks/uki/examples/core-examples/twitter/bubble.png +0 -0
  22. data/frameworks/uki/examples/core-examples/twitter/i/bubble-c.png +0 -0
  23. data/frameworks/uki/examples/core-examples/twitter/i/bubble-h.png +0 -0
  24. data/frameworks/uki/examples/core-examples/twitter/i/bubble-m.png +0 -0
  25. data/frameworks/uki/examples/core-examples/twitter/i/bubble-v.png +0 -0
  26. data/frameworks/uki/examples/core-examples/twitter/i/loading.gif +0 -0
  27. data/frameworks/uki/examples/core-examples/twitter/tweets.json +1 -0
  28. data/frameworks/uki/examples/core-examples/twitter/twitter.js +175 -0
  29. data/frameworks/uki/examples/core-examples/wave/contacts.json +1 -0
  30. data/frameworks/uki/examples/core-examples/wave/i/body/normal-m.png +0 -0
  31. data/frameworks/uki/examples/core-examples/wave/i/body/normal.png +0 -0
  32. data/frameworks/uki/examples/core-examples/wave/i/button/a-down-m.png +0 -0
  33. data/frameworks/uki/examples/core-examples/wave/i/button/a-down-v.gif +0 -0
  34. data/frameworks/uki/examples/core-examples/wave/i/button/a-down-v.png +0 -0
  35. data/frameworks/uki/examples/core-examples/wave/i/button/a-down.png +0 -0
  36. data/frameworks/uki/examples/core-examples/wave/i/button/a-normal-m.png +0 -0
  37. data/frameworks/uki/examples/core-examples/wave/i/button/a-normal-v.gif +0 -0
  38. data/frameworks/uki/examples/core-examples/wave/i/button/a-normal-v.png +0 -0
  39. data/frameworks/uki/examples/core-examples/wave/i/button/a-normal.png +0 -0
  40. data/frameworks/uki/examples/core-examples/wave/i/button/down-m.png +0 -0
  41. data/frameworks/uki/examples/core-examples/wave/i/button/down-v.gif +0 -0
  42. data/frameworks/uki/examples/core-examples/wave/i/button/down-v.png +0 -0
  43. data/frameworks/uki/examples/core-examples/wave/i/button/down.png +0 -0
  44. data/frameworks/uki/examples/core-examples/wave/i/button/normal-m.png +0 -0
  45. data/frameworks/uki/examples/core-examples/wave/i/button/normal-v.gif +0 -0
  46. data/frameworks/uki/examples/core-examples/wave/i/button/normal-v.png +0 -0
  47. data/frameworks/uki/examples/core-examples/wave/i/button/normal.png +0 -0
  48. data/frameworks/uki/examples/core-examples/wave/i/button/plus-big-down-m.gif +0 -0
  49. data/frameworks/uki/examples/core-examples/wave/i/button/plus-big-down-m.png +0 -0
  50. data/frameworks/uki/examples/core-examples/wave/i/button/plus-big-down.png +0 -0
  51. data/frameworks/uki/examples/core-examples/wave/i/button/plus-big-normal-m.gif +0 -0
  52. data/frameworks/uki/examples/core-examples/wave/i/button/plus-big-normal-m.png +0 -0
  53. data/frameworks/uki/examples/core-examples/wave/i/button/plus-big-normal.png +0 -0
  54. data/frameworks/uki/examples/core-examples/wave/i/button/plus-down-m.gif +0 -0
  55. data/frameworks/uki/examples/core-examples/wave/i/button/plus-down-m.png +0 -0
  56. data/frameworks/uki/examples/core-examples/wave/i/button/plus-down.png +0 -0
  57. data/frameworks/uki/examples/core-examples/wave/i/button/plus-normal-m.gif +0 -0
  58. data/frameworks/uki/examples/core-examples/wave/i/button/plus-normal-m.png +0 -0
  59. data/frameworks/uki/examples/core-examples/wave/i/button/plus-normal.png +0 -0
  60. data/frameworks/uki/examples/core-examples/wave/i/button/search-button-normal-m.png +0 -0
  61. data/frameworks/uki/examples/core-examples/wave/i/button/search-button-normal.png +0 -0
  62. data/frameworks/uki/examples/core-examples/wave/i/button/toolbar-button-down-m.png +0 -0
  63. data/frameworks/uki/examples/core-examples/wave/i/button/toolbar-button-down.png +0 -0
  64. data/frameworks/uki/examples/core-examples/wave/i/button/toolbar-button-normal-v.gif +0 -0
  65. data/frameworks/uki/examples/core-examples/wave/i/button/toolbar-button-normal-v.png +0 -0
  66. data/frameworks/uki/examples/core-examples/wave/i/button/toolbar-button-normal.png +0 -0
  67. data/frameworks/uki/examples/core-examples/wave/i/icons-c/drawer.png +0 -0
  68. data/frameworks/uki/examples/core-examples/wave/i/icons-c/inbox.png +0 -0
  69. data/frameworks/uki/examples/core-examples/wave/i/icons-c/pencil.png +0 -0
  70. data/frameworks/uki/examples/core-examples/wave/i/icons-c/skeleton.png +0 -0
  71. data/frameworks/uki/examples/core-examples/wave/i/icons-c/trash.png +0 -0
  72. data/frameworks/uki/examples/core-examples/wave/i/icons-c/who.png +0 -0
  73. data/frameworks/uki/examples/core-examples/wave/i/icons/blue.png +0 -0
  74. data/frameworks/uki/examples/core-examples/wave/i/icons/dots.png +0 -0
  75. data/frameworks/uki/examples/core-examples/wave/i/icons/download.png +0 -0
  76. data/frameworks/uki/examples/core-examples/wave/i/icons/drawer.png +0 -0
  77. data/frameworks/uki/examples/core-examples/wave/i/icons/eye-closed.png +0 -0
  78. data/frameworks/uki/examples/core-examples/wave/i/icons/eye.png +0 -0
  79. data/frameworks/uki/examples/core-examples/wave/i/icons/folder.png +0 -0
  80. data/frameworks/uki/examples/core-examples/wave/i/icons/nosound.png +0 -0
  81. data/frameworks/uki/examples/core-examples/wave/i/icons/play.png +0 -0
  82. data/frameworks/uki/examples/core-examples/wave/i/icons/reply.png +0 -0
  83. data/frameworks/uki/examples/core-examples/wave/i/icons/skeleton.png +0 -0
  84. data/frameworks/uki/examples/core-examples/wave/i/icons/sprite-m.gif +0 -0
  85. data/frameworks/uki/examples/core-examples/wave/i/icons/sprite-m.png +0 -0
  86. data/frameworks/uki/examples/core-examples/wave/i/icons/sprite.png +0 -0
  87. data/frameworks/uki/examples/core-examples/wave/i/icons/trash.png +0 -0
  88. data/frameworks/uki/examples/core-examples/wave/i/icons/unknown.png +0 -0
  89. data/frameworks/uki/examples/core-examples/wave/i/panel/blue-c.gif +0 -0
  90. data/frameworks/uki/examples/core-examples/wave/i/panel/blue-c.png +0 -0
  91. data/frameworks/uki/examples/core-examples/wave/i/panel/blue-h.gif +0 -0
  92. data/frameworks/uki/examples/core-examples/wave/i/panel/blue-h.png +0 -0
  93. data/frameworks/uki/examples/core-examples/wave/i/panel/blue-m.png +0 -0
  94. data/frameworks/uki/examples/core-examples/wave/i/panel/blue-v.gif +0 -0
  95. data/frameworks/uki/examples/core-examples/wave/i/panel/blue-v.png +0 -0
  96. data/frameworks/uki/examples/core-examples/wave/i/panel/blue.png +0 -0
  97. data/frameworks/uki/examples/core-examples/wave/i/panel/white-c.gif +0 -0
  98. data/frameworks/uki/examples/core-examples/wave/i/panel/white-c.png +0 -0
  99. data/frameworks/uki/examples/core-examples/wave/i/panel/white-h.gif +0 -0
  100. data/frameworks/uki/examples/core-examples/wave/i/panel/white-h.png +0 -0
  101. data/frameworks/uki/examples/core-examples/wave/i/panel/white-m.png +0 -0
  102. data/frameworks/uki/examples/core-examples/wave/i/panel/white-v.gif +0 -0
  103. data/frameworks/uki/examples/core-examples/wave/i/panel/white-v.png +0 -0
  104. data/frameworks/uki/examples/core-examples/wave/i/panel/white.png +0 -0
  105. data/frameworks/uki/examples/core-examples/wave/i/popup/normal-c.gif +0 -0
  106. data/frameworks/uki/examples/core-examples/wave/i/popup/normal-c.png +0 -0
  107. data/frameworks/uki/examples/core-examples/wave/i/popup/normal-h.gif +0 -0
  108. data/frameworks/uki/examples/core-examples/wave/i/popup/normal-h.png +0 -0
  109. data/frameworks/uki/examples/core-examples/wave/i/popup/normal-m.png +0 -0
  110. data/frameworks/uki/examples/core-examples/wave/i/popup/normal-v.gif +0 -0
  111. data/frameworks/uki/examples/core-examples/wave/i/popup/normal-v.png +0 -0
  112. data/frameworks/uki/examples/core-examples/wave/i/popup/normal.png +0 -0
  113. data/frameworks/uki/examples/core-examples/wave/i/searchField/focus-m.png +0 -0
  114. data/frameworks/uki/examples/core-examples/wave/i/searchField/focus-v.gif +0 -0
  115. data/frameworks/uki/examples/core-examples/wave/i/searchField/focus-v.png +0 -0
  116. data/frameworks/uki/examples/core-examples/wave/i/searchField/focus.png +0 -0
  117. data/frameworks/uki/examples/core-examples/wave/i/searchField/normal-m.png +0 -0
  118. data/frameworks/uki/examples/core-examples/wave/i/searchField/normal-v.gif +0 -0
  119. data/frameworks/uki/examples/core-examples/wave/i/searchField/normal-v.png +0 -0
  120. data/frameworks/uki/examples/core-examples/wave/i/searchField/normal.png +0 -0
  121. data/frameworks/uki/examples/core-examples/wave/i/toolbar/normal-m.png +0 -0
  122. data/frameworks/uki/examples/core-examples/wave/i/toolbar/normal.png +0 -0
  123. data/frameworks/uki/examples/core-examples/wave/voloko.jpg +0 -0
  124. data/frameworks/uki/examples/core-examples/wave/wave-theme.js +269 -0
  125. data/frameworks/uki/examples/core-examples/wave/wave.html +29 -0
  126. data/frameworks/uki/examples/core-examples/wave/wave.js +102 -0
  127. data/frameworks/uki/examples/core-examples/wave/waves.json +1 -0
  128. data/frameworks/uki/examples/css/examples.css +23 -0
  129. data/frameworks/uki/examples/css/index.css +0 -0
  130. data/frameworks/uki/examples/css/reset.css +43 -0
  131. data/frameworks/uki/examples/more-examples/radioButton/radioButton.js +17 -0
  132. data/frameworks/uki/examples/more-examples/splitTable/library.js +1 -0
  133. data/frameworks/uki/examples/more-examples/splitTable/searchable.js +71 -0
  134. data/frameworks/uki/examples/more-examples/splitTable/splitTable.js +98 -0
  135. data/frameworks/uki/examples/more-examples/toggleButton/toggleButton.js +14 -0
  136. data/frameworks/uki/examples/more-examples/treeList/i/arrows.png +0 -0
  137. data/frameworks/uki/examples/more-examples/treeList/treeList.js +35 -0
  138. data/frameworks/uki/examples/views/example.haml +8 -0
  139. data/frameworks/uki/examples/views/exampleList.haml +24 -0
  140. data/frameworks/uki/server.rb +84 -0
  141. data/frameworks/uki/spec/support/spec.helper.js +37 -1
  142. data/frameworks/uki/src/uki-core/background/cssBox.js +1 -1
  143. data/frameworks/uki/src/uki-core/builder.js +15 -10
  144. data/frameworks/uki/src/uki-core/dom/dnd.js +2 -1
  145. data/frameworks/uki/src/uki-core/uki.js +1 -1
  146. data/frameworks/uki/src/uki-core/utils.js +10 -3
  147. data/frameworks/uki/src/uki-core/view/base.js +2 -2
  148. data/frameworks/uki/src/uki-theme/airport.js +14 -0
  149. data/frameworks/uki/src/uki-view/view/button.js +4 -6
  150. data/frameworks/uki/src/uki-view/view/label.js +3 -3
  151. data/frameworks/uki/src/uki-view/view/list.js +26 -16
  152. data/frameworks/uki/src/uki-view/view/slider.js +3 -3
  153. data/frameworks/uki/src/uki-view/view/splitPane.js +1 -1
  154. data/frameworks/uki/src/uki-view/view/table.js +3 -3
  155. data/frameworks/uki/src/uki-view/view/table/column.js +1 -1
  156. data/frameworks/uki/src/uki-view/view/textField.js +18 -7
  157. data/uki.gemspec +139 -6
  158. metadata +140 -7
  159. data/frameworks/uki/compiler.jar +0 -0
  160. data/frameworks/uki/run.rb +0 -2
  161. data/frameworks/uki/thin.yaml +0 -11
  162. data/frameworks/uki/uki.rb +0 -38
  163. data/frameworks/uki/uki.ru +0 -2
@@ -1,38 +0,0 @@
1
- require 'sinatra/base'
2
-
3
- class Uki < Sinatra::Base
4
- def process_path(path, included = {})
5
- code = File.read(path)
6
- base = File.dirname(path)
7
- code.gsub(%r{\n?\s*include\s*\(\s*['"]([^"']+)["']\s*\)\s*;?\s*\n?}) {
8
- include_path = File.expand_path(File.join(base, $1))
9
- unless included[include_path]
10
- included[include_path] = true
11
- process_path(include_path, included)
12
- else
13
- "\n"
14
- end
15
- }
16
- end
17
-
18
- get %r{^/(src)/.*\.cjs$} do
19
- path = request.path.sub(/\.cjs$/, '.js')
20
- response.header['Content-type'] = 'application/x-javascript; charset=UTF-8'
21
- process_path(File.join(File.dirname(__FILE__), path))
22
- end
23
-
24
- get %r{^/(src|tmp|spec)/.*} do
25
- path = request.path
26
- response.header['Content-type'] = 'image/png' if path.match(/\.png$/)
27
- response.header['Content-type'] = 'text/css' if path.match(/\.css$/)
28
- response.header['Content-type'] = 'image/jpeg' if path.match(/\.jpg$/)
29
- response.header['Content-type'] = 'text/javascript;charset=utf-8' if path.match(/\.js$/)
30
- response.header['Content-Encoding'] = 'gzip' if path.match(/\.gz/)
31
- if path.match(/.zip$/)
32
- response.header['Content-Type'] = 'application/x-zip-compressed'
33
- response.header['Content-Disposition'] = 'attachment; filename=tmp.zip'
34
- end
35
-
36
- File.read File.join(File.dirname(__FILE__), path)
37
- end
38
- end
@@ -1,2 +0,0 @@
1
- require 'uki'
2
- run Uki