daftos 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.DS_Store +0 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -0
- data/Rakefile +4 -0
- data/VERSION +1 -1
- data/bin/daftos +14 -0
- data/daftos.gemspec +363 -0
- data/lib/.DS_Store +0 -0
- data/lib/apis/.DS_Store +0 -0
- data/lib/apis/filesystem_api.rb +68 -0
- data/lib/apps/.DS_Store +0 -0
- data/lib/apps/apps/body.html +6 -0
- data/lib/apps/apps/options.json +7 -0
- data/lib/apps/filebrowser/.DS_Store +0 -0
- data/lib/apps/filebrowser/body.html +32 -0
- data/lib/apps/filebrowser/coffee/filebrowser.coffee +51 -0
- data/lib/apps/filebrowser/js/.DS_Store +0 -0
- data/lib/apps/filebrowser/js/daftos.js +1 -0
- data/lib/apps/filebrowser/options.json +7 -0
- data/lib/apps/photobooth/.DS_Store +0 -0
- data/lib/apps/photobooth/body.html +1 -0
- data/lib/apps/photobooth/coffee/photobooth.coffee +37 -0
- data/lib/apps/photobooth/coffee/test.html +278 -0
- data/lib/apps/photobooth/css/style.css +30 -0
- data/lib/apps/photobooth/js/.DS_Store +0 -0
- data/lib/apps/photobooth/js/daftos.js +1 -0
- data/lib/apps/photobooth/options.json +26 -0
- data/lib/apps/photobrowser/body.html +2 -0
- data/lib/apps/photobrowser/coffee/photobrowser.coffee +18 -0
- data/lib/apps/photobrowser/js/.DS_Store +0 -0
- data/lib/apps/photobrowser/options.json +16 -0
- data/lib/apps/texteditor/body.html +1 -0
- data/lib/apps/texteditor/coffee/texteditor.coffee +31 -0
- data/lib/apps/texteditor/js/.DS_Store +0 -0
- data/lib/apps/texteditor/js/ace-compat-noconflict.js +1 -0
- data/lib/apps/texteditor/js/ace-compat-uncompressed-noconflict.js +480 -0
- data/lib/apps/texteditor/js/ace-compat-uncompressed.js +480 -0
- data/lib/apps/texteditor/js/ace-compat.js +1 -0
- data/lib/apps/texteditor/js/ace-noconflict.js +10 -0
- data/lib/apps/texteditor/js/ace-uncompressed-noconflict.js +19559 -0
- data/lib/apps/texteditor/js/ace-uncompressed.js +19559 -0
- data/lib/apps/texteditor/js/ace.js +10 -0
- data/lib/apps/texteditor/js/keybinding-emacs-noconflict.js +1 -0
- data/lib/apps/texteditor/js/keybinding-emacs-uncompressed-noconflict.js +150 -0
- data/lib/apps/texteditor/js/keybinding-emacs-uncompressed.js +150 -0
- data/lib/apps/texteditor/js/keybinding-emacs.js +1 -0
- data/lib/apps/texteditor/js/keybinding-vim-noconflict.js +1 -0
- data/lib/apps/texteditor/js/keybinding-vim-uncompressed-noconflict.js +138 -0
- data/lib/apps/texteditor/js/keybinding-vim-uncompressed.js +138 -0
- data/lib/apps/texteditor/js/keybinding-vim.js +1 -0
- data/lib/apps/texteditor/js/mode-c_cpp-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-c_cpp-uncompressed-noconflict.js +917 -0
- data/lib/apps/texteditor/js/mode-c_cpp-uncompressed.js +917 -0
- data/lib/apps/texteditor/js/mode-c_cpp.js +1 -0
- data/lib/apps/texteditor/js/mode-clojure-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-clojure-uncompressed-noconflict.js +422 -0
- data/lib/apps/texteditor/js/mode-clojure-uncompressed.js +422 -0
- data/lib/apps/texteditor/js/mode-clojure.js +1 -0
- data/lib/apps/texteditor/js/mode-coffee-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-coffee-uncompressed-noconflict.js +605 -0
- data/lib/apps/texteditor/js/mode-coffee-uncompressed.js +605 -0
- data/lib/apps/texteditor/js/mode-coffee.js +1 -0
- data/lib/apps/texteditor/js/mode-coldfusion-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-coldfusion-uncompressed-noconflict.js +2454 -0
- data/lib/apps/texteditor/js/mode-coldfusion-uncompressed.js +2454 -0
- data/lib/apps/texteditor/js/mode-coldfusion.js +1 -0
- data/lib/apps/texteditor/js/mode-csharp-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-csharp-uncompressed-noconflict.js +767 -0
- data/lib/apps/texteditor/js/mode-csharp-uncompressed.js +767 -0
- data/lib/apps/texteditor/js/mode-csharp.js +1 -0
- data/lib/apps/texteditor/js/mode-css-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-css-uncompressed-noconflict.js +640 -0
- data/lib/apps/texteditor/js/mode-css-uncompressed.js +640 -0
- data/lib/apps/texteditor/js/mode-css.js +1 -0
- data/lib/apps/texteditor/js/mode-golang-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-golang-uncompressed-noconflict.js +378 -0
- data/lib/apps/texteditor/js/mode-golang-uncompressed.js +378 -0
- data/lib/apps/texteditor/js/mode-golang.js +1 -0
- data/lib/apps/texteditor/js/mode-groovy-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-groovy-uncompressed-noconflict.js +1391 -0
- data/lib/apps/texteditor/js/mode-groovy-uncompressed.js +1391 -0
- data/lib/apps/texteditor/js/mode-groovy.js +1 -0
- data/lib/apps/texteditor/js/mode-haxe-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-haxe-uncompressed-noconflict.js +767 -0
- data/lib/apps/texteditor/js/mode-haxe-uncompressed.js +767 -0
- data/lib/apps/texteditor/js/mode-haxe.js +1 -0
- data/lib/apps/texteditor/js/mode-html-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-html-uncompressed-noconflict.js +2470 -0
- data/lib/apps/texteditor/js/mode-html-uncompressed.js +2470 -0
- data/lib/apps/texteditor/js/mode-html.js +1 -0
- data/lib/apps/texteditor/js/mode-java-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-java-uncompressed-noconflict.js +1393 -0
- data/lib/apps/texteditor/js/mode-java-uncompressed.js +1393 -0
- data/lib/apps/texteditor/js/mode-java.js +1 -0
- data/lib/apps/texteditor/js/mode-javascript-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-javascript-uncompressed-noconflict.js +1224 -0
- data/lib/apps/texteditor/js/mode-javascript-uncompressed.js +1224 -0
- data/lib/apps/texteditor/js/mode-javascript.js +1 -0
- data/lib/apps/texteditor/js/mode-json-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-json-uncompressed-noconflict.js +698 -0
- data/lib/apps/texteditor/js/mode-json-uncompressed.js +698 -0
- data/lib/apps/texteditor/js/mode-json.js +1 -0
- data/lib/apps/texteditor/js/mode-latex-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-latex-uncompressed-noconflict.js +95 -0
- data/lib/apps/texteditor/js/mode-latex-uncompressed.js +95 -0
- data/lib/apps/texteditor/js/mode-latex.js +1 -0
- data/lib/apps/texteditor/js/mode-less-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-less-uncompressed-noconflict.js +654 -0
- data/lib/apps/texteditor/js/mode-less-uncompressed.js +654 -0
- data/lib/apps/texteditor/js/mode-less.js +1 -0
- data/lib/apps/texteditor/js/mode-liquid-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-liquid-uncompressed-noconflict.js +1353 -0
- data/lib/apps/texteditor/js/mode-liquid-uncompressed.js +1353 -0
- data/lib/apps/texteditor/js/mode-liquid.js +1 -0
- data/lib/apps/texteditor/js/mode-lua-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-lua-uncompressed-noconflict.js +523 -0
- data/lib/apps/texteditor/js/mode-lua-uncompressed.js +523 -0
- data/lib/apps/texteditor/js/mode-lua.js +1 -0
- data/lib/apps/texteditor/js/mode-markdown-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-markdown-uncompressed-noconflict.js +2918 -0
- data/lib/apps/texteditor/js/mode-markdown-uncompressed.js +2918 -0
- data/lib/apps/texteditor/js/mode-markdown.js +1 -0
- data/lib/apps/texteditor/js/mode-ocaml-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-ocaml-uncompressed-noconflict.js +539 -0
- data/lib/apps/texteditor/js/mode-ocaml-uncompressed.js +539 -0
- data/lib/apps/texteditor/js/mode-ocaml.js +1 -0
- data/lib/apps/texteditor/js/mode-perl-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-perl-uncompressed-noconflict.js +573 -0
- data/lib/apps/texteditor/js/mode-perl-uncompressed.js +573 -0
- data/lib/apps/texteditor/js/mode-perl.js +1 -0
- data/lib/apps/texteditor/js/mode-pgsql-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-pgsql-uncompressed-noconflict.js +1104 -0
- data/lib/apps/texteditor/js/mode-pgsql-uncompressed.js +1104 -0
- data/lib/apps/texteditor/js/mode-pgsql.js +1 -0
- data/lib/apps/texteditor/js/mode-php-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-php-uncompressed-noconflict.js +1883 -0
- data/lib/apps/texteditor/js/mode-php-uncompressed.js +1883 -0
- data/lib/apps/texteditor/js/mode-php.js +1 -0
- data/lib/apps/texteditor/js/mode-powershell-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-powershell-uncompressed-noconflict.js +708 -0
- data/lib/apps/texteditor/js/mode-powershell-uncompressed.js +708 -0
- data/lib/apps/texteditor/js/mode-powershell.js +1 -0
- data/lib/apps/texteditor/js/mode-python-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-python-uncompressed-noconflict.js +506 -0
- data/lib/apps/texteditor/js/mode-python-uncompressed.js +506 -0
- data/lib/apps/texteditor/js/mode-python.js +1 -0
- data/lib/apps/texteditor/js/mode-ruby-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-ruby-uncompressed-noconflict.js +391 -0
- data/lib/apps/texteditor/js/mode-ruby-uncompressed.js +391 -0
- data/lib/apps/texteditor/js/mode-ruby.js +1 -0
- data/lib/apps/texteditor/js/mode-scad-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-scad-uncompressed-noconflict.js +905 -0
- data/lib/apps/texteditor/js/mode-scad-uncompressed.js +905 -0
- data/lib/apps/texteditor/js/mode-scad.js +1 -0
- data/lib/apps/texteditor/js/mode-scala-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-scala-uncompressed-noconflict.js +1393 -0
- data/lib/apps/texteditor/js/mode-scala-uncompressed.js +1393 -0
- data/lib/apps/texteditor/js/mode-scala.js +1 -0
- data/lib/apps/texteditor/js/mode-scss-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-scss-uncompressed-noconflict.js +678 -0
- data/lib/apps/texteditor/js/mode-scss-uncompressed.js +678 -0
- data/lib/apps/texteditor/js/mode-scss.js +1 -0
- data/lib/apps/texteditor/js/mode-sh-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-sh-uncompressed-noconflict.js +289 -0
- data/lib/apps/texteditor/js/mode-sh-uncompressed.js +289 -0
- data/lib/apps/texteditor/js/mode-sh.js +1 -0
- data/lib/apps/texteditor/js/mode-sql-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-sql-uncompressed-noconflict.js +159 -0
- data/lib/apps/texteditor/js/mode-sql-uncompressed.js +159 -0
- data/lib/apps/texteditor/js/mode-sql.js +1 -0
- data/lib/apps/texteditor/js/mode-svg-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-svg-uncompressed-noconflict.js +2133 -0
- data/lib/apps/texteditor/js/mode-svg-uncompressed.js +2133 -0
- data/lib/apps/texteditor/js/mode-svg.js +1 -0
- data/lib/apps/texteditor/js/mode-text-noconflict.js +0 -0
- data/lib/apps/texteditor/js/mode-text-uncompressed-noconflict.js +0 -0
- data/lib/apps/texteditor/js/mode-text-uncompressed.js +0 -0
- data/lib/apps/texteditor/js/mode-text.js +0 -0
- data/lib/apps/texteditor/js/mode-textile-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-textile-uncompressed-noconflict.js +254 -0
- data/lib/apps/texteditor/js/mode-textile-uncompressed.js +254 -0
- data/lib/apps/texteditor/js/mode-textile.js +1 -0
- data/lib/apps/texteditor/js/mode-xml-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-xml-uncompressed-noconflict.js +1009 -0
- data/lib/apps/texteditor/js/mode-xml-uncompressed.js +1009 -0
- data/lib/apps/texteditor/js/mode-xml.js +1 -0
- data/lib/apps/texteditor/js/mode-xquery-noconflict.js +1 -0
- data/lib/apps/texteditor/js/mode-xquery-uncompressed-noconflict.js +540 -0
- data/lib/apps/texteditor/js/mode-xquery-uncompressed.js +540 -0
- data/lib/apps/texteditor/js/mode-xquery.js +1 -0
- data/lib/apps/texteditor/js/theme-chrome-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-chrome-uncompressed-noconflict.js +207 -0
- data/lib/apps/texteditor/js/theme-chrome-uncompressed.js +207 -0
- data/lib/apps/texteditor/js/theme-chrome.js +1 -0
- data/lib/apps/texteditor/js/theme-clouds-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-clouds-uncompressed-noconflict.js +160 -0
- data/lib/apps/texteditor/js/theme-clouds-uncompressed.js +160 -0
- data/lib/apps/texteditor/js/theme-clouds.js +1 -0
- data/lib/apps/texteditor/js/theme-clouds_midnight-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-clouds_midnight-uncompressed-noconflict.js +161 -0
- data/lib/apps/texteditor/js/theme-clouds_midnight-uncompressed.js +161 -0
- data/lib/apps/texteditor/js/theme-clouds_midnight.js +1 -0
- data/lib/apps/texteditor/js/theme-cobalt-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-cobalt-uncompressed-noconflict.js +187 -0
- data/lib/apps/texteditor/js/theme-cobalt-uncompressed.js +187 -0
- data/lib/apps/texteditor/js/theme-cobalt.js +1 -0
- data/lib/apps/texteditor/js/theme-crimson_editor-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-crimson_editor-uncompressed-noconflict.js +198 -0
- data/lib/apps/texteditor/js/theme-crimson_editor-uncompressed.js +198 -0
- data/lib/apps/texteditor/js/theme-crimson_editor.js +1 -0
- data/lib/apps/texteditor/js/theme-dawn-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-dawn-uncompressed-noconflict.js +191 -0
- data/lib/apps/texteditor/js/theme-dawn-uncompressed.js +191 -0
- data/lib/apps/texteditor/js/theme-dawn.js +1 -0
- data/lib/apps/texteditor/js/theme-dreamweaver-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-dreamweaver-uncompressed-noconflict.js +227 -0
- data/lib/apps/texteditor/js/theme-dreamweaver-uncompressed.js +227 -0
- data/lib/apps/texteditor/js/theme-dreamweaver.js +1 -0
- data/lib/apps/texteditor/js/theme-eclipse-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-eclipse-uncompressed-noconflict.js +147 -0
- data/lib/apps/texteditor/js/theme-eclipse-uncompressed.js +147 -0
- data/lib/apps/texteditor/js/theme-eclipse.js +1 -0
- data/lib/apps/texteditor/js/theme-idle_fingers-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-idle_fingers-uncompressed-noconflict.js +179 -0
- data/lib/apps/texteditor/js/theme-idle_fingers-uncompressed.js +179 -0
- data/lib/apps/texteditor/js/theme-idle_fingers.js +1 -0
- data/lib/apps/texteditor/js/theme-kr_theme-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-kr_theme-uncompressed-noconflict.js +182 -0
- data/lib/apps/texteditor/js/theme-kr_theme-uncompressed.js +182 -0
- data/lib/apps/texteditor/js/theme-kr_theme.js +1 -0
- data/lib/apps/texteditor/js/theme-merbivore-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-merbivore-uncompressed-noconflict.js +182 -0
- data/lib/apps/texteditor/js/theme-merbivore-uncompressed.js +182 -0
- data/lib/apps/texteditor/js/theme-merbivore.js +1 -0
- data/lib/apps/texteditor/js/theme-merbivore_soft-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-merbivore_soft-uncompressed-noconflict.js +188 -0
- data/lib/apps/texteditor/js/theme-merbivore_soft-uncompressed.js +188 -0
- data/lib/apps/texteditor/js/theme-merbivore_soft.js +1 -0
- data/lib/apps/texteditor/js/theme-mono_industrial-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-mono_industrial-uncompressed-noconflict.js +190 -0
- data/lib/apps/texteditor/js/theme-mono_industrial-uncompressed.js +190 -0
- data/lib/apps/texteditor/js/theme-mono_industrial.js +1 -0
- data/lib/apps/texteditor/js/theme-monokai-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-monokai-uncompressed-noconflict.js +188 -0
- data/lib/apps/texteditor/js/theme-monokai-uncompressed.js +188 -0
- data/lib/apps/texteditor/js/theme-monokai.js +1 -0
- data/lib/apps/texteditor/js/theme-pastel_on_dark-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-pastel_on_dark-uncompressed-noconflict.js +192 -0
- data/lib/apps/texteditor/js/theme-pastel_on_dark-uncompressed.js +192 -0
- data/lib/apps/texteditor/js/theme-pastel_on_dark.js +1 -0
- data/lib/apps/texteditor/js/theme-solarized_dark-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-solarized_dark-uncompressed-noconflict.js +173 -0
- data/lib/apps/texteditor/js/theme-solarized_dark-uncompressed.js +173 -0
- data/lib/apps/texteditor/js/theme-solarized_dark.js +1 -0
- data/lib/apps/texteditor/js/theme-solarized_light-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-solarized_light-uncompressed-noconflict.js +172 -0
- data/lib/apps/texteditor/js/theme-solarized_light-uncompressed.js +172 -0
- data/lib/apps/texteditor/js/theme-solarized_light.js +1 -0
- data/lib/apps/texteditor/js/theme-textmate-noconflict.js +0 -0
- data/lib/apps/texteditor/js/theme-textmate-uncompressed-noconflict.js +0 -0
- data/lib/apps/texteditor/js/theme-textmate-uncompressed.js +0 -0
- data/lib/apps/texteditor/js/theme-textmate.js +0 -0
- data/lib/apps/texteditor/js/theme-tomorrow-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-tomorrow-uncompressed-noconflict.js +206 -0
- data/lib/apps/texteditor/js/theme-tomorrow-uncompressed.js +206 -0
- data/lib/apps/texteditor/js/theme-tomorrow.js +1 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night-uncompressed-noconflict.js +206 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night-uncompressed.js +206 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night.js +1 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night_blue-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night_blue-uncompressed-noconflict.js +206 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night_blue-uncompressed.js +206 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night_blue.js +1 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night_bright-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night_bright-uncompressed-noconflict.js +206 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night_bright-uncompressed.js +206 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night_bright.js +1 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night_eighties-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night_eighties-uncompressed-noconflict.js +202 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night_eighties-uncompressed.js +202 -0
- data/lib/apps/texteditor/js/theme-tomorrow_night_eighties.js +1 -0
- data/lib/apps/texteditor/js/theme-twilight-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-twilight-uncompressed-noconflict.js +204 -0
- data/lib/apps/texteditor/js/theme-twilight-uncompressed.js +204 -0
- data/lib/apps/texteditor/js/theme-twilight.js +1 -0
- data/lib/apps/texteditor/js/theme-vibrant_ink-noconflict.js +1 -0
- data/lib/apps/texteditor/js/theme-vibrant_ink-uncompressed-noconflict.js +183 -0
- data/lib/apps/texteditor/js/theme-vibrant_ink-uncompressed.js +183 -0
- data/lib/apps/texteditor/js/theme-vibrant_ink.js +1 -0
- data/lib/apps/texteditor/js/worker-coffee.js +7991 -0
- data/lib/apps/texteditor/js/worker-css.js +12224 -0
- data/lib/apps/texteditor/js/worker-javascript.js +11124 -0
- data/lib/apps/texteditor/js/worker-json.js +3593 -0
- data/lib/apps/texteditor/options.json +16 -0
- data/lib/daftos/.DS_Store +0 -0
- data/lib/daftos/server.rb +106 -0
- data/lib/daftos/views/app_footer.erb +2 -0
- data/lib/daftos/views/app_header.erb +33 -0
- data/lib/daftos.rb +25 -2
- data/lib/libs/.DS_Store +0 -0
- data/lib/libs/coffee/daftos.coffee +36 -0
- data/lib/libs/css/bootstrap.css +3496 -0
- data/lib/libs/js/bootstrap.js +1720 -0
- data/lib/libs/js/jquery.js +4 -0
- data/myapp.pid +1 -0
- metadata +325 -12
@@ -0,0 +1,37 @@
|
|
1
|
+
$ ->
|
2
|
+
$(window).bind('body_loaded',
|
3
|
+
=>
|
4
|
+
new PhotoBooth()
|
5
|
+
)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
class PhotoBooth
|
10
|
+
|
11
|
+
constructor: ->
|
12
|
+
#@init_stream()
|
13
|
+
navigator.getUserMedia = navigator.webkitGetUserMedia || navigator.getUserMedia;
|
14
|
+
window.URL = window.URL || window.webkitURL;
|
15
|
+
navigator.getUserMedia('video',
|
16
|
+
(par) =>
|
17
|
+
@got_stream(par)
|
18
|
+
)
|
19
|
+
$("#blur, #brightness,#contrast,#hue-rotate,#hue-rotate2,#hue-rotate3,#saturate,#grayscale,#sepia,#invert").click(
|
20
|
+
(event) =>
|
21
|
+
cl = $(event.currentTarget).attr('id')
|
22
|
+
if $("#content").hasClass(cl)
|
23
|
+
$("#content").removeClass(cl)
|
24
|
+
else
|
25
|
+
$("#content").addClass(cl)
|
26
|
+
return false
|
27
|
+
)
|
28
|
+
|
29
|
+
got_stream: (stream) =>
|
30
|
+
video = $("#content")[0]
|
31
|
+
$("#content").width($(window).width())
|
32
|
+
$("#content").height($(window).height() - 50)
|
33
|
+
console.log video
|
34
|
+
console.log stream
|
35
|
+
video.src = stream
|
36
|
+
video.src = window.URL.createObjectURL(stream)
|
37
|
+
|
@@ -0,0 +1,278 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Copyright 2011 Google Inc.
|
4
|
+
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
you may not use this file except in compliance with the License.
|
7
|
+
You may obtain a copy of the License at
|
8
|
+
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
See the License for the specific language governing permissions and
|
15
|
+
limitations under the License.
|
16
|
+
|
17
|
+
Author: Eric Bidelman (ericbidelman@chromium.org)
|
18
|
+
-->
|
19
|
+
<html>
|
20
|
+
<head>
|
21
|
+
<meta charset="utf-8">
|
22
|
+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
23
|
+
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css">
|
24
|
+
<link href="../common.css" rel="stylesheet" type="text/css">
|
25
|
+
<title>Photobooth</title>
|
26
|
+
<style>
|
27
|
+
@-webkit-keyframes glowRed {
|
28
|
+
from {
|
29
|
+
box-shadow: rgba(255, 0, 0, 0) 0 0 0;
|
30
|
+
}
|
31
|
+
50% {
|
32
|
+
box-shadow: rgba(255, 0, 0, 1) 0 0 15px 1px;
|
33
|
+
}
|
34
|
+
to {
|
35
|
+
box-shadow: rgba(255, 0, 0, 0) 0 0 0;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
html, body {
|
39
|
+
overflow: hidden;
|
40
|
+
margin: 0;
|
41
|
+
padding: 0;
|
42
|
+
}
|
43
|
+
body {
|
44
|
+
display: -webkit-flexbox;
|
45
|
+
-webkit-flex-item-align: center;
|
46
|
+
-webkit-flex-pack: center;
|
47
|
+
box-sizing: border-box;
|
48
|
+
}
|
49
|
+
article {
|
50
|
+
-webkit-flex-item-align: center;
|
51
|
+
text-align: center;
|
52
|
+
}
|
53
|
+
#monitor {
|
54
|
+
/*-webkit-transform: scaleX(-1);*/
|
55
|
+
height: 400px;
|
56
|
+
-webkit-box-reflect: below 20px -webkit-linear-gradient(top, transparent, transparent 80%, rgba(255,255,255,0.2));
|
57
|
+
}
|
58
|
+
#live {
|
59
|
+
position: absolute;
|
60
|
+
z-index: 1;
|
61
|
+
color: white;
|
62
|
+
font-weight: 600;
|
63
|
+
font-family: Arial;
|
64
|
+
font-size: 16pt;
|
65
|
+
right: 35px;
|
66
|
+
top: 20px;
|
67
|
+
text-shadow: 1px 1px red;
|
68
|
+
letter-spacing: 1px;
|
69
|
+
}
|
70
|
+
#live:before {
|
71
|
+
content: '';
|
72
|
+
border-radius: 50%;
|
73
|
+
width: 15px;
|
74
|
+
height: 15px;
|
75
|
+
background: red;
|
76
|
+
position: absolute;
|
77
|
+
left: -20px;
|
78
|
+
margin-top: 5px;
|
79
|
+
}
|
80
|
+
#gallery img {
|
81
|
+
position: absolute;
|
82
|
+
z-index: -1;
|
83
|
+
height: 75px;
|
84
|
+
}
|
85
|
+
#gallery img {
|
86
|
+
float: left;
|
87
|
+
height: 75px;
|
88
|
+
}
|
89
|
+
.container {
|
90
|
+
padding: 10px 25px 5px 25px;
|
91
|
+
background: black;
|
92
|
+
border-radius: 4px;
|
93
|
+
display: inline-block;
|
94
|
+
position: relative;
|
95
|
+
}
|
96
|
+
h1 {
|
97
|
+
font-weight: 300;
|
98
|
+
}
|
99
|
+
.blur {
|
100
|
+
-webkit-filter: blur(3px);
|
101
|
+
}
|
102
|
+
.brightness {
|
103
|
+
-webkit-filter: brightness(5);
|
104
|
+
}
|
105
|
+
.contrast {
|
106
|
+
-webkit-filter: contrast(8);
|
107
|
+
}
|
108
|
+
.hue-rotate {
|
109
|
+
-webkit-filter: hue-rotate(90deg);
|
110
|
+
}
|
111
|
+
.hue-rotate2 {
|
112
|
+
-webkit-filter: hue-rotate(180deg);
|
113
|
+
}
|
114
|
+
.hue-rotate3 {
|
115
|
+
-webkit-filter: hue-rotate(270deg);
|
116
|
+
}
|
117
|
+
.saturate {
|
118
|
+
-webkit-filter: saturate(10);
|
119
|
+
}
|
120
|
+
.grayscale {
|
121
|
+
-webkit-filter: grayscale(1);
|
122
|
+
}
|
123
|
+
.sepia {
|
124
|
+
-webkit-filter: sepia(1);
|
125
|
+
}
|
126
|
+
.invert {
|
127
|
+
-webkit-filter: invert(1)
|
128
|
+
}
|
129
|
+
</style>
|
130
|
+
</head>
|
131
|
+
<body>
|
132
|
+
|
133
|
+
<details>
|
134
|
+
<summary>What's this?</summary>
|
135
|
+
<div>
|
136
|
+
<p>Example of the <a href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html" target="_blank" title="Spec link" alt="Spec link"><code>navigator.getUserMedia()</code></a>
|
137
|
+
API for capturing audio and video, sans plugin. This demo also shows the video being rendered
|
138
|
+
to while <a href="/static/css/filters/index.html">CSS filters</a> are applied in realtime (click the video).</p>
|
139
|
+
<p><b>Support:</b> Chrome 18.0.1009.0 (currently Canary) with the <code>--enable-media-stream</code> flag set.</p>
|
140
|
+
</div>
|
141
|
+
</details>
|
142
|
+
|
143
|
+
<article>
|
144
|
+
<h1>CSS Filters Photobooth</h1>
|
145
|
+
<section id="app" hidden>
|
146
|
+
<div class="container"><span id="live">LIVE</span><video id="monitor" autoplay onclick="changeFilter(this)" title="Click me to see different filters"></video></div>
|
147
|
+
<p>Click the video to see different CSS filters</p>
|
148
|
+
</section>
|
149
|
+
<p><button onclick="init(this)">Capture</button></p>
|
150
|
+
<div id="splash">
|
151
|
+
<p id="errorMessage">↑<br>Click to begin</p>
|
152
|
+
</div>
|
153
|
+
<div id="gallery"></div>
|
154
|
+
</article>
|
155
|
+
<canvas id="photo" style="display:none"></canvas>
|
156
|
+
<script>
|
157
|
+
navigator.getUserMedia = navigator.webkitGetUserMedia || navigator.getUserMedia;
|
158
|
+
window.URL = window.URL || window.webkitURL;
|
159
|
+
|
160
|
+
var app = document.getElementById('app');
|
161
|
+
var video = document.getElementById('monitor');
|
162
|
+
var canvas = document.getElementById('photo');
|
163
|
+
var effect = document.getElementById('effect');
|
164
|
+
var gallery = document.getElementById('gallery');
|
165
|
+
var ctx = canvas.getContext('2d');
|
166
|
+
var intervalId = null;
|
167
|
+
var idx = 0;
|
168
|
+
var filters = [
|
169
|
+
'grayscale',
|
170
|
+
'sepia',
|
171
|
+
'blur',
|
172
|
+
'brightness',
|
173
|
+
'contrast',
|
174
|
+
'hue-rotate', 'hue-rotate2', 'hue-rotate3',
|
175
|
+
'saturate',
|
176
|
+
'invert',
|
177
|
+
''
|
178
|
+
];
|
179
|
+
|
180
|
+
function changeFilter(el) {
|
181
|
+
el.className = '';
|
182
|
+
var effect = filters[idx++ % filters.length];
|
183
|
+
if (effect) {
|
184
|
+
el.classList.add(effect);
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
function gotStream(stream) {
|
189
|
+
if (window.URL) {
|
190
|
+
video.src = window.URL.createObjectURL(stream);
|
191
|
+
} else {
|
192
|
+
video.src = stream; // Opera.
|
193
|
+
}
|
194
|
+
|
195
|
+
video.onerror = function(e) {
|
196
|
+
stream.stop();
|
197
|
+
};
|
198
|
+
|
199
|
+
stream.onended = noStream;
|
200
|
+
|
201
|
+
video.onloadedmetadata = function(e) { // Not firing in Chrome. See crbug.com/110938.
|
202
|
+
document.getElementById('splash').hidden = true;
|
203
|
+
document.getElementById('app').hidden = false;
|
204
|
+
};
|
205
|
+
|
206
|
+
// Since video.onloadedmetadata isn't firing for getUserMedia video, we have
|
207
|
+
// to fake it.
|
208
|
+
setTimeout(function() {
|
209
|
+
canvas.width = video.videoWidth;
|
210
|
+
canvas.height = video.videoHeight;
|
211
|
+
document.getElementById('splash').hidden = true;
|
212
|
+
document.getElementById('app').hidden = false;
|
213
|
+
}, 50);
|
214
|
+
}
|
215
|
+
|
216
|
+
function noStream(e) {
|
217
|
+
document.getElementById('errorMessage').textContent = 'No camera available.';
|
218
|
+
}
|
219
|
+
|
220
|
+
function capture() {
|
221
|
+
if (intervalId) {
|
222
|
+
clearInterval(intervalId);
|
223
|
+
intervalId = null;
|
224
|
+
return;
|
225
|
+
}
|
226
|
+
|
227
|
+
intervalId = setInterval(function() {
|
228
|
+
ctx.drawImage(video, 0, 0);
|
229
|
+
var img = document.createElement('img');
|
230
|
+
img.src = canvas.toDataURL('image/webp');
|
231
|
+
|
232
|
+
var angle = Math.floor(Math.random() * 36);
|
233
|
+
var sign = Math.floor(Math.random() * 2) ? 1 : -1;
|
234
|
+
img.style.webkitTransform = 'rotateZ(' + (sign * angle) + 'deg)';
|
235
|
+
|
236
|
+
var maxLeft = document.body.clientWidth;
|
237
|
+
var maxTop = document.body.clientHeight;
|
238
|
+
|
239
|
+
img.style.top = Math.floor(Math.random() * maxTop) + 'px';
|
240
|
+
img.style.left = Math.floor(Math.random() * maxLeft) + 'px';
|
241
|
+
|
242
|
+
gallery.appendChild(img);
|
243
|
+
}, 150);
|
244
|
+
}
|
245
|
+
|
246
|
+
function init(el) {
|
247
|
+
if (!navigator.getUserMedia) {
|
248
|
+
document.getElementById('errorMessage').innerHTML = 'Sorry. <code>navigator.getUserMedia()</code> is not available.';
|
249
|
+
return;
|
250
|
+
}
|
251
|
+
el.onclick = capture;
|
252
|
+
el.textContent = 'Snapshot';
|
253
|
+
navigator.getUserMedia('video', gotStream, noStream);
|
254
|
+
}
|
255
|
+
|
256
|
+
window.addEventListener('keydown', function(e) {
|
257
|
+
if (e.keyCode == 27) { // ESC
|
258
|
+
document.querySelector('details').open = false;
|
259
|
+
}
|
260
|
+
}, false);
|
261
|
+
</script>
|
262
|
+
<script>
|
263
|
+
var _gaq = _gaq || [];
|
264
|
+
_gaq.push(['_setAccount', 'UA-22014378-1']);
|
265
|
+
_gaq.push(['_trackPageview']);
|
266
|
+
|
267
|
+
(function() {
|
268
|
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
269
|
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
270
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
271
|
+
})();
|
272
|
+
</script>
|
273
|
+
<!--[if IE]>
|
274
|
+
<script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
|
275
|
+
<script>CFInstall.check({mode: 'overlay'});</script>
|
276
|
+
<![endif]-->
|
277
|
+
</body>
|
278
|
+
</html>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
.blur {
|
2
|
+
-webkit-filter: blur(3px);
|
3
|
+
}
|
4
|
+
.brightness {
|
5
|
+
-webkit-filter: brightness(5);
|
6
|
+
}
|
7
|
+
.contrast {
|
8
|
+
-webkit-filter: contrast(8);
|
9
|
+
}
|
10
|
+
.hue-rotate {
|
11
|
+
-webkit-filter: hue-rotate(90deg);
|
12
|
+
}
|
13
|
+
.hue-rotate2 {
|
14
|
+
-webkit-filter: hue-rotate(180deg);
|
15
|
+
}
|
16
|
+
.hue-rotate3 {
|
17
|
+
-webkit-filter: hue-rotate(270deg);
|
18
|
+
}
|
19
|
+
.saturate {
|
20
|
+
-webkit-filter: saturate(10);
|
21
|
+
}
|
22
|
+
.grayscale {
|
23
|
+
-webkit-filter: grayscale(1);
|
24
|
+
}
|
25
|
+
.sepia {
|
26
|
+
-webkit-filter: sepia(1);
|
27
|
+
}
|
28
|
+
.invert {
|
29
|
+
-webkit-filter: invert(1)
|
30
|
+
}
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"name": "PhotoBooth",
|
3
|
+
"description": "Daft file browser.",
|
4
|
+
"version": "0.1",
|
5
|
+
"libs": ["bootstrap.css","jquery.js", "style.css", "daftos.coffee", "bootstrap.js", "photobooth.coffee"],
|
6
|
+
"menu": [
|
7
|
+
{
|
8
|
+
"name": "Effects",
|
9
|
+
"id":"iiii",
|
10
|
+
"submenu": [
|
11
|
+
{"name":"blur","id":"blur"},
|
12
|
+
{"name":"brightness","id":"brightness"},
|
13
|
+
{"name":"contrast","id":"contrast"},
|
14
|
+
{"name":"hue-rotate","id":"hue-rotate"},
|
15
|
+
{"name":"hue-rotate2","id":"hue-rotate2"},
|
16
|
+
{"name":"hue-rotate3","id":"hue-rotate3"},
|
17
|
+
{"name":"saturate","id":"saturate"},
|
18
|
+
{"name":"grayscale","id":"grayscale"},
|
19
|
+
{"name":"sepia","id":"sepia"},
|
20
|
+
{"name":"invert","id":"invert"}
|
21
|
+
|
22
|
+
]
|
23
|
+
}
|
24
|
+
]
|
25
|
+
}
|
26
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
$ ->
|
2
|
+
$(window).bind('body_loaded',
|
3
|
+
=>
|
4
|
+
pb = new PhotoBrowser()
|
5
|
+
pb.hashchange()
|
6
|
+
)
|
7
|
+
|
8
|
+
class PhotoBrowser
|
9
|
+
constructor: ->
|
10
|
+
|
11
|
+
hashchange: =>
|
12
|
+
location = window.location.hash
|
13
|
+
location = location.slice(1,location.length)
|
14
|
+
@load_image(location)
|
15
|
+
|
16
|
+
load_image: (path) =>
|
17
|
+
#/Users/ondrejodchazel/Pictures/pozadi.png
|
18
|
+
$("#image").attr("src","/api/file_system/file?path=#{path}")
|
Binary file
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"name": "PhotoBrowser",
|
3
|
+
"description": "Daft photo browser.",
|
4
|
+
"version": "0.1",
|
5
|
+
"libs": ["bootstrap.css","jquery.js", "daftos.coffee", "bootstrap.js", "photobrowser.coffee"],
|
6
|
+
"menu": [
|
7
|
+
{
|
8
|
+
"name": "Effects",
|
9
|
+
"id":"iiii",
|
10
|
+
"submenu": [
|
11
|
+
{"name":"blur","id":"blur"}
|
12
|
+
]
|
13
|
+
}
|
14
|
+
]
|
15
|
+
}
|
16
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
<div id="editor" style="width: 2px; height: 2px;"></div>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
$ ->
|
2
|
+
$(window).bind('body_loaded',
|
3
|
+
=>
|
4
|
+
te = new TextEditor()
|
5
|
+
)
|
6
|
+
|
7
|
+
class TextEditor
|
8
|
+
|
9
|
+
constructor: ->
|
10
|
+
@el = $("#editor")
|
11
|
+
@editor = ace.edit("editor")
|
12
|
+
@resize()
|
13
|
+
@hashchange()
|
14
|
+
|
15
|
+
hashchange: =>
|
16
|
+
location = window.location.hash
|
17
|
+
location = location.slice(1,location.length)
|
18
|
+
@load_file(location)
|
19
|
+
|
20
|
+
resize: =>
|
21
|
+
@el.width($(window).width())
|
22
|
+
@el.height($(window).height() - 40)
|
23
|
+
|
24
|
+
load_file: (location) =>
|
25
|
+
$.ajax "/api/file_system/file?path="+location+""
|
26
|
+
success: (data) =>
|
27
|
+
@set_text(data)
|
28
|
+
|
29
|
+
|
30
|
+
set_text: (text) =>
|
31
|
+
@editor.getSession().setValue(text)
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
ace.define("pilot/index",["require","exports","module","pilot/browser_focus","pilot/dom","pilot/event","pilot/event_emitter","pilot/fixoldbrowsers","pilot/keys","pilot/lang","pilot/oop","pilot/useragent","pilot/canon"],function(a,b,c){a("pilot/browser_focus"),a("pilot/dom"),a("pilot/event"),a("pilot/event_emitter"),a("pilot/fixoldbrowsers"),a("pilot/keys"),a("pilot/lang"),a("pilot/oop"),a("pilot/useragent"),a("pilot/canon")}),ace.define("pilot/browser_focus",["require","exports","module","ace/lib/browser_focus"],function(a,b,c){console.warn("DEPRECATED: 'pilot/browser_focus' is deprecated. Use 'ace/lib/browser_focus' instead"),c.exports=a("ace/lib/browser_focus")}),ace.define("pilot/dom",["require","exports","module","ace/lib/dom"],function(a,b,c){console.warn("DEPRECATED: 'pilot/dom' is deprecated. Use 'ace/lib/dom' instead"),c.exports=a("ace/lib/dom")}),ace.define("pilot/event",["require","exports","module","ace/lib/event"],function(a,b,c){console.warn("DEPRECATED: 'pilot/event' is deprecated. Use 'ace/lib/event' instead"),c.exports=a("ace/lib/event")}),ace.define("pilot/event_emitter",["require","exports","module","ace/lib/event_emitter"],function(a,b,c){console.warn("DEPRECATED: 'pilot/event_emitter' is deprecated. Use 'ace/lib/event_emitter' instead"),c.exports=a("ace/lib/event_emitter")}),ace.define("pilot/fixoldbrowsers",["require","exports","module","ace/lib/fixoldbrowsers"],function(a,b,c){console.warn("DEPRECATED: 'pilot/fixoldbrowsers' is deprecated. Use 'ace/lib/fixoldbrowsers' instead"),c.exports=a("ace/lib/fixoldbrowsers")}),ace.define("pilot/keys",["require","exports","module","ace/lib/keys"],function(a,b,c){console.warn("DEPRECATED: 'pilot/keys' is deprecated. Use 'ace/lib/keys' instead"),c.exports=a("ace/lib/keys")}),ace.define("pilot/lang",["require","exports","module","ace/lib/lang"],function(a,b,c){console.warn("DEPRECATED: 'pilot/lang' is deprecated. Use 'ace/lib/lang' instead"),c.exports=a("ace/lib/lang")}),ace.define("pilot/oop",["require","exports","module","ace/lib/oop"],function(a,b,c){console.warn("DEPRECATED: 'pilot/oop' is deprecated. Use 'ace/lib/oop' instead"),c.exports=a("ace/lib/oop")}),ace.define("pilot/useragent",["require","exports","module","ace/lib/useragent"],function(a,b,c){console.warn("DEPRECATED: 'pilot/useragent' is deprecated. Use 'ace/lib/useragent' instead"),c.exports=a("ace/lib/useragent")}),ace.define("pilot/canon",["require","exports","module"],function(a,b,c){console.warn("DEPRECATED: 'pilot/canon' is deprecated."),b.addCommand=function(){console.warn("DEPRECATED: 'canon.addCommand()' is deprecated. Use 'editor.commands.addCommand(command)' instead."),console.trace()},b.removeCommand=function(){console.warn("DEPRECATED: 'canon.removeCommand()' is deprecated. Use 'editor.commands.removeCommand(command)' instead."),console.trace()}})
|