uki 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/frameworks/uki/README.rdoc +6 -15
- data/frameworks/uki/examples/core-examples/aristo/aristo.js +59 -0
- data/frameworks/uki/examples/core-examples/attachment/attachment.js +18 -0
- data/frameworks/uki/examples/core-examples/controls/controls.js +59 -0
- data/frameworks/uki/examples/core-examples/dnd/dnd.js +70 -0
- data/frameworks/uki/examples/core-examples/flow/flow.js +41 -0
- data/frameworks/uki/examples/core-examples/list/list.js +78 -0
- data/frameworks/uki/examples/core-examples/popup/popup.js +41 -0
- data/frameworks/uki/examples/core-examples/resizeToContents/resizeToContents.js +34 -0
- data/frameworks/uki/examples/core-examples/scrollPane/scrollPane.js +28 -0
- data/frameworks/uki/examples/core-examples/slider/slider.js +23 -0
- data/frameworks/uki/examples/core-examples/splitPane/splitPane.js +35 -0
- data/frameworks/uki/examples/core-examples/splitPaneExtended/splitPaneExtended.js +39 -0
- data/frameworks/uki/examples/core-examples/stress/stress.js +33 -0
- data/frameworks/uki/examples/core-examples/table/library.js +1 -0
- data/frameworks/uki/examples/core-examples/table/searchable.js +71 -0
- data/frameworks/uki/examples/core-examples/table/table.js +92 -0
- data/frameworks/uki/examples/core-examples/toolbar/icon.png +0 -0
- data/frameworks/uki/examples/core-examples/toolbar/toolbar.js +44 -0
- data/frameworks/uki/examples/core-examples/twitter/bubble.png +0 -0
- data/frameworks/uki/examples/core-examples/twitter/i/bubble-c.png +0 -0
- data/frameworks/uki/examples/core-examples/twitter/i/bubble-h.png +0 -0
- data/frameworks/uki/examples/core-examples/twitter/i/bubble-m.png +0 -0
- data/frameworks/uki/examples/core-examples/twitter/i/bubble-v.png +0 -0
- data/frameworks/uki/examples/core-examples/twitter/i/loading.gif +0 -0
- data/frameworks/uki/examples/core-examples/twitter/tweets.json +1 -0
- data/frameworks/uki/examples/core-examples/twitter/twitter.js +175 -0
- data/frameworks/uki/examples/core-examples/wave/contacts.json +1 -0
- data/frameworks/uki/examples/core-examples/wave/i/body/normal-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/body/normal.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/a-down-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/a-down-v.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/a-down-v.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/a-down.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/a-normal-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/a-normal-v.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/a-normal-v.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/a-normal.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/down-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/down-v.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/down-v.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/down.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/normal-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/normal-v.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/normal-v.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/normal.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/plus-big-down-m.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/plus-big-down-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/plus-big-down.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/plus-big-normal-m.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/plus-big-normal-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/plus-big-normal.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/plus-down-m.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/plus-down-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/plus-down.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/plus-normal-m.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/plus-normal-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/plus-normal.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/search-button-normal-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/search-button-normal.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/toolbar-button-down-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/toolbar-button-down.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/toolbar-button-normal-v.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/toolbar-button-normal-v.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/button/toolbar-button-normal.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons-c/drawer.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons-c/inbox.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons-c/pencil.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons-c/skeleton.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons-c/trash.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons-c/who.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/blue.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/dots.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/download.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/drawer.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/eye-closed.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/eye.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/folder.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/nosound.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/play.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/reply.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/skeleton.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/sprite-m.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/sprite-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/sprite.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/trash.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/icons/unknown.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/blue-c.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/blue-c.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/blue-h.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/blue-h.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/blue-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/blue-v.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/blue-v.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/blue.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/white-c.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/white-c.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/white-h.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/white-h.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/white-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/white-v.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/white-v.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/panel/white.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/popup/normal-c.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/popup/normal-c.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/popup/normal-h.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/popup/normal-h.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/popup/normal-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/popup/normal-v.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/popup/normal-v.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/popup/normal.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/searchField/focus-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/searchField/focus-v.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/searchField/focus-v.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/searchField/focus.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/searchField/normal-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/searchField/normal-v.gif +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/searchField/normal-v.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/searchField/normal.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/toolbar/normal-m.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/i/toolbar/normal.png +0 -0
- data/frameworks/uki/examples/core-examples/wave/voloko.jpg +0 -0
- data/frameworks/uki/examples/core-examples/wave/wave-theme.js +269 -0
- data/frameworks/uki/examples/core-examples/wave/wave.html +29 -0
- data/frameworks/uki/examples/core-examples/wave/wave.js +102 -0
- data/frameworks/uki/examples/core-examples/wave/waves.json +1 -0
- data/frameworks/uki/examples/css/examples.css +23 -0
- data/frameworks/uki/examples/css/index.css +0 -0
- data/frameworks/uki/examples/css/reset.css +43 -0
- data/frameworks/uki/examples/more-examples/radioButton/radioButton.js +17 -0
- data/frameworks/uki/examples/more-examples/splitTable/library.js +1 -0
- data/frameworks/uki/examples/more-examples/splitTable/searchable.js +71 -0
- data/frameworks/uki/examples/more-examples/splitTable/splitTable.js +98 -0
- data/frameworks/uki/examples/more-examples/toggleButton/toggleButton.js +14 -0
- data/frameworks/uki/examples/more-examples/treeList/i/arrows.png +0 -0
- data/frameworks/uki/examples/more-examples/treeList/treeList.js +35 -0
- data/frameworks/uki/examples/views/example.haml +8 -0
- data/frameworks/uki/examples/views/exampleList.haml +24 -0
- data/frameworks/uki/server.rb +84 -0
- data/frameworks/uki/spec/support/spec.helper.js +37 -1
- data/frameworks/uki/src/uki-core/background/cssBox.js +1 -1
- data/frameworks/uki/src/uki-core/builder.js +15 -10
- data/frameworks/uki/src/uki-core/dom/dnd.js +2 -1
- data/frameworks/uki/src/uki-core/uki.js +1 -1
- data/frameworks/uki/src/uki-core/utils.js +10 -3
- data/frameworks/uki/src/uki-core/view/base.js +2 -2
- data/frameworks/uki/src/uki-theme/airport.js +14 -0
- data/frameworks/uki/src/uki-view/view/button.js +4 -6
- data/frameworks/uki/src/uki-view/view/label.js +3 -3
- data/frameworks/uki/src/uki-view/view/list.js +26 -16
- data/frameworks/uki/src/uki-view/view/slider.js +3 -3
- data/frameworks/uki/src/uki-view/view/splitPane.js +1 -1
- data/frameworks/uki/src/uki-view/view/table.js +3 -3
- data/frameworks/uki/src/uki-view/view/table/column.js +1 -1
- data/frameworks/uki/src/uki-view/view/textField.js +18 -7
- data/uki.gemspec +139 -6
- metadata +140 -7
- data/frameworks/uki/compiler.jar +0 -0
- data/frameworks/uki/run.rb +0 -2
- data/frameworks/uki/thin.yaml +0 -11
- data/frameworks/uki/uki.rb +0 -38
- data/frameworks/uki/uki.ru +0 -2
data/frameworks/uki/uki.rb
DELETED
@@ -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
|
data/frameworks/uki/uki.ru
DELETED