diff --git a/.gitignore b/.gitignore index b57fdb65..41292061 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ public/assets config/application.rb .rvmrc + +app/assets/javascripts/.DS_Store diff --git a/Gemfile b/Gemfile index 7e63e353..abf87c59 100644 --- a/Gemfile +++ b/Gemfile @@ -27,9 +27,12 @@ gem 'resque-restriction' gem 'ruby-debug19' gem 'rubyzip' gem 'sinatra' +#gem 'sinatra-contrib' gem 'sprockets' gem 'tinymce-rails' gem 'therubyracer' if RUBY_PLATFORM.downcase.include?("linux") +gem 'mongoid-encryptor', :require => 'mongoid/encryptor' +#gem 'contacts' gem "impressionist", :require => "impressionist", :path => "vendor/impressionist" diff --git a/Gemfile.lock b/Gemfile.lock index f6bc8bfd..c96a64f0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -84,6 +84,7 @@ GEM orm_adapter (~> 0.0.3) warden (~> 1.1) diff-lcs (1.1.3) + encrypted_strings (0.3.3) erubis (2.7.0) exception_notification (2.5.2) actionmailer (>= 3.0.4) @@ -128,6 +129,10 @@ GEM tzinfo (~> 0.3.22) mongoid-tree (0.7.0) mongoid (~> 2.0) + mongoid-encryptor (0.0.5) + activesupport (~> 3.0) + encrypted_strings (~> 0.3.3) + mongoid (~> 2) multi_json (1.1.0) nokogiri (1.5.2) nokogiri (1.5.2-x86-mingw32) @@ -289,6 +294,7 @@ DEPENDENCIES mongo_session_store-rails3 mongoid mongoid-tree + mongoid-encryptor nokogiri radius rails (>= 3.1.0, < 3.2.0) diff --git a/app/assets/fonts/desktop/fontawesome-webfont.eot b/app/assets/fonts/desktop/fontawesome-webfont.eot new file mode 100755 index 00000000..3f669a7e Binary files /dev/null and b/app/assets/fonts/desktop/fontawesome-webfont.eot differ diff --git a/app/assets/fonts/desktop/fontawesome-webfont.svg b/app/assets/fonts/desktop/fontawesome-webfont.svg new file mode 100755 index 00000000..73c0ad9a --- /dev/null +++ b/app/assets/fonts/desktop/fontawesome-webfont.svg @@ -0,0 +1,175 @@ + + + \ No newline at end of file diff --git a/app/assets/fonts/desktop/fontawesome-webfont.svgz b/app/assets/fonts/desktop/fontawesome-webfont.svgz new file mode 100755 index 00000000..2a73cd7c Binary files /dev/null and b/app/assets/fonts/desktop/fontawesome-webfont.svgz differ diff --git a/app/assets/fonts/desktop/fontawesome-webfont.ttf b/app/assets/fonts/desktop/fontawesome-webfont.ttf new file mode 100755 index 00000000..4972eb45 Binary files /dev/null and b/app/assets/fonts/desktop/fontawesome-webfont.ttf differ diff --git a/app/assets/fonts/desktop/fontawesome-webfont.woff b/app/assets/fonts/desktop/fontawesome-webfont.woff new file mode 100755 index 00000000..6e4cb41f Binary files /dev/null and b/app/assets/fonts/desktop/fontawesome-webfont.woff differ diff --git a/app/assets/images/connection/Thumbs.db b/app/assets/images/connection/Thumbs.db new file mode 100755 index 00000000..47897e3f Binary files /dev/null and b/app/assets/images/connection/Thumbs.db differ diff --git a/app/assets/images/connection/facebook.png b/app/assets/images/connection/facebook.png new file mode 100755 index 00000000..f8c4f219 Binary files /dev/null and b/app/assets/images/connection/facebook.png differ diff --git a/app/assets/images/connection/gmail.png b/app/assets/images/connection/gmail.png new file mode 100755 index 00000000..ec897f23 Binary files /dev/null and b/app/assets/images/connection/gmail.png differ diff --git a/app/assets/images/connection/twitter.png b/app/assets/images/connection/twitter.png new file mode 100755 index 00000000..a8071eea Binary files /dev/null and b/app/assets/images/connection/twitter.png differ diff --git a/app/assets/images/facebook.png b/app/assets/images/facebook.png new file mode 100644 index 00000000..3bfe4bac Binary files /dev/null and b/app/assets/images/facebook.png differ diff --git a/app/assets/images/gmail.png b/app/assets/images/gmail.png new file mode 100644 index 00000000..dd2d70a8 Binary files /dev/null and b/app/assets/images/gmail.png differ diff --git a/app/assets/images/icons/bookkeeper.png b/app/assets/images/icons/bookkeeper.png new file mode 100755 index 00000000..41b3bf26 Binary files /dev/null and b/app/assets/images/icons/bookkeeper.png differ diff --git a/app/assets/images/icons/calendar.png b/app/assets/images/icons/calendar.png new file mode 100755 index 00000000..a2f6ae71 Binary files /dev/null and b/app/assets/images/icons/calendar.png differ diff --git a/app/assets/images/icons/dailyenglish.png b/app/assets/images/icons/dailyenglish.png new file mode 100644 index 00000000..c820bd61 Binary files /dev/null and b/app/assets/images/icons/dailyenglish.png differ diff --git a/app/assets/images/icons/diary.png b/app/assets/images/icons/diary.png new file mode 100755 index 00000000..38bfa20c Binary files /dev/null and b/app/assets/images/icons/diary.png differ diff --git a/app/assets/images/icons/doc.png b/app/assets/images/icons/doc.png new file mode 100755 index 00000000..36cb273b Binary files /dev/null and b/app/assets/images/icons/doc.png differ diff --git a/app/assets/images/icons/facebook.png b/app/assets/images/icons/facebook.png new file mode 100755 index 00000000..03c3ddd5 Binary files /dev/null and b/app/assets/images/icons/facebook.png differ diff --git a/app/assets/images/icons/gmail.png b/app/assets/images/icons/gmail.png new file mode 100755 index 00000000..44ff25b7 Binary files /dev/null and b/app/assets/images/icons/gmail.png differ diff --git a/app/assets/images/icons/iclock.png b/app/assets/images/icons/iclock.png new file mode 100755 index 00000000..4200755e Binary files /dev/null and b/app/assets/images/icons/iclock.png differ diff --git a/app/assets/images/icons/movies.png b/app/assets/images/icons/movies.png new file mode 100755 index 00000000..6e75b450 Binary files /dev/null and b/app/assets/images/icons/movies.png differ diff --git a/app/assets/images/icons/musicbox.png b/app/assets/images/icons/musicbox.png new file mode 100755 index 00000000..6071215f Binary files /dev/null and b/app/assets/images/icons/musicbox.png differ diff --git a/app/assets/images/icons/newsfeed.png b/app/assets/images/icons/newsfeed.png new file mode 100755 index 00000000..cb20cd92 Binary files /dev/null and b/app/assets/images/icons/newsfeed.png differ diff --git a/app/assets/images/icons/quotes.png b/app/assets/images/icons/quotes.png new file mode 100644 index 00000000..d22866fd Binary files /dev/null and b/app/assets/images/icons/quotes.png differ diff --git a/app/assets/images/icons/talk.png b/app/assets/images/icons/talk.png new file mode 100755 index 00000000..6f498870 Binary files /dev/null and b/app/assets/images/icons/talk.png differ diff --git a/app/assets/images/icons/ted.png b/app/assets/images/icons/ted.png new file mode 100755 index 00000000..d9063ce0 Binary files /dev/null and b/app/assets/images/icons/ted.png differ diff --git a/app/assets/images/icons/weather.png b/app/assets/images/icons/weather.png new file mode 100755 index 00000000..d7033439 Binary files /dev/null and b/app/assets/images/icons/weather.png differ diff --git a/app/assets/images/icons/youtube.png b/app/assets/images/icons/youtube.png new file mode 100755 index 00000000..400ce4c1 Binary files /dev/null and b/app/assets/images/icons/youtube.png differ diff --git a/app/assets/images/linkedin.png b/app/assets/images/linkedin.png new file mode 100644 index 00000000..3c989802 Binary files /dev/null and b/app/assets/images/linkedin.png differ diff --git a/app/assets/images/miniColors/circle.gif b/app/assets/images/miniColors/circle.gif new file mode 100755 index 00000000..599f7f13 Binary files /dev/null and b/app/assets/images/miniColors/circle.gif differ diff --git a/app/assets/images/miniColors/gradient.png b/app/assets/images/miniColors/gradient.png new file mode 100755 index 00000000..561cdd9c Binary files /dev/null and b/app/assets/images/miniColors/gradient.png differ diff --git a/app/assets/images/miniColors/line.gif b/app/assets/images/miniColors/line.gif new file mode 100755 index 00000000..9eb19837 Binary files /dev/null and b/app/assets/images/miniColors/line.gif differ diff --git a/app/assets/images/miniColors/rainbow.png b/app/assets/images/miniColors/rainbow.png new file mode 100755 index 00000000..8d6c71bf Binary files /dev/null and b/app/assets/images/miniColors/rainbow.png differ diff --git a/app/assets/images/miniColors/trigger.png b/app/assets/images/miniColors/trigger.png new file mode 100755 index 00000000..8c169fd6 Binary files /dev/null and b/app/assets/images/miniColors/trigger.png differ diff --git a/app/assets/images/note_alert.png b/app/assets/images/note_alert.png new file mode 100644 index 00000000..6ebda48e Binary files /dev/null and b/app/assets/images/note_alert.png differ diff --git a/app/assets/images/note_imp.png b/app/assets/images/note_imp.png new file mode 100644 index 00000000..eb1306a9 Binary files /dev/null and b/app/assets/images/note_imp.png differ diff --git a/app/assets/images/note_success.png b/app/assets/images/note_success.png new file mode 100644 index 00000000..5d5ae2ad Binary files /dev/null and b/app/assets/images/note_success.png differ diff --git a/app/assets/images/sample_theme.jpg b/app/assets/images/sample_theme.jpg new file mode 100755 index 00000000..03945979 Binary files /dev/null and b/app/assets/images/sample_theme.jpg differ diff --git a/app/assets/images/stockBackground/1.jpg b/app/assets/images/stockBackground/1.jpg new file mode 100755 index 00000000..5981dcf2 Binary files /dev/null and b/app/assets/images/stockBackground/1.jpg differ diff --git a/app/assets/images/stockBackground/10.jpg b/app/assets/images/stockBackground/10.jpg new file mode 100755 index 00000000..3b1faa7f Binary files /dev/null and b/app/assets/images/stockBackground/10.jpg differ diff --git a/app/assets/images/stockBackground/11.jpg b/app/assets/images/stockBackground/11.jpg new file mode 100755 index 00000000..88ab7bdf Binary files /dev/null and b/app/assets/images/stockBackground/11.jpg differ diff --git a/app/assets/images/stockBackground/12.jpg b/app/assets/images/stockBackground/12.jpg new file mode 100755 index 00000000..e9385131 Binary files /dev/null and b/app/assets/images/stockBackground/12.jpg differ diff --git a/app/assets/images/stockBackground/2.jpg b/app/assets/images/stockBackground/2.jpg new file mode 100755 index 00000000..9fed12fc Binary files /dev/null and b/app/assets/images/stockBackground/2.jpg differ diff --git a/app/assets/images/stockBackground/3.jpg b/app/assets/images/stockBackground/3.jpg new file mode 100755 index 00000000..7a2cf18a Binary files /dev/null and b/app/assets/images/stockBackground/3.jpg differ diff --git a/app/assets/images/stockBackground/4.jpg b/app/assets/images/stockBackground/4.jpg new file mode 100755 index 00000000..c2bfc14e Binary files /dev/null and b/app/assets/images/stockBackground/4.jpg differ diff --git a/app/assets/images/stockBackground/5.jpg b/app/assets/images/stockBackground/5.jpg new file mode 100755 index 00000000..0db9de93 Binary files /dev/null and b/app/assets/images/stockBackground/5.jpg differ diff --git a/app/assets/images/stockBackground/6.jpg b/app/assets/images/stockBackground/6.jpg new file mode 100755 index 00000000..867ad0f9 Binary files /dev/null and b/app/assets/images/stockBackground/6.jpg differ diff --git a/app/assets/images/stockBackground/7.jpg b/app/assets/images/stockBackground/7.jpg new file mode 100755 index 00000000..370313a2 Binary files /dev/null and b/app/assets/images/stockBackground/7.jpg differ diff --git a/app/assets/images/stockBackground/8.jpg b/app/assets/images/stockBackground/8.jpg new file mode 100755 index 00000000..919fabf4 Binary files /dev/null and b/app/assets/images/stockBackground/8.jpg differ diff --git a/app/assets/images/stockBackground/9.jpg b/app/assets/images/stockBackground/9.jpg new file mode 100755 index 00000000..3bba544e Binary files /dev/null and b/app/assets/images/stockBackground/9.jpg differ diff --git a/app/assets/images/stockBackground/thumb/1.jpg b/app/assets/images/stockBackground/thumb/1.jpg new file mode 100755 index 00000000..38b23586 Binary files /dev/null and b/app/assets/images/stockBackground/thumb/1.jpg differ diff --git a/app/assets/images/stockBackground/thumb/10.jpg b/app/assets/images/stockBackground/thumb/10.jpg new file mode 100755 index 00000000..481bc866 Binary files /dev/null and b/app/assets/images/stockBackground/thumb/10.jpg differ diff --git a/app/assets/images/stockBackground/thumb/11.jpg b/app/assets/images/stockBackground/thumb/11.jpg new file mode 100755 index 00000000..ca304ded Binary files /dev/null and b/app/assets/images/stockBackground/thumb/11.jpg differ diff --git a/app/assets/images/stockBackground/thumb/12.jpg b/app/assets/images/stockBackground/thumb/12.jpg new file mode 100755 index 00000000..83cd444a Binary files /dev/null and b/app/assets/images/stockBackground/thumb/12.jpg differ diff --git a/app/assets/images/stockBackground/thumb/2.jpg b/app/assets/images/stockBackground/thumb/2.jpg new file mode 100755 index 00000000..14254a1e Binary files /dev/null and b/app/assets/images/stockBackground/thumb/2.jpg differ diff --git a/app/assets/images/stockBackground/thumb/3.jpg b/app/assets/images/stockBackground/thumb/3.jpg new file mode 100755 index 00000000..cc2047e6 Binary files /dev/null and b/app/assets/images/stockBackground/thumb/3.jpg differ diff --git a/app/assets/images/stockBackground/thumb/4.jpg b/app/assets/images/stockBackground/thumb/4.jpg new file mode 100755 index 00000000..2fbe5929 Binary files /dev/null and b/app/assets/images/stockBackground/thumb/4.jpg differ diff --git a/app/assets/images/stockBackground/thumb/5.jpg b/app/assets/images/stockBackground/thumb/5.jpg new file mode 100755 index 00000000..d9395737 Binary files /dev/null and b/app/assets/images/stockBackground/thumb/5.jpg differ diff --git a/app/assets/images/stockBackground/thumb/6.jpg b/app/assets/images/stockBackground/thumb/6.jpg new file mode 100755 index 00000000..9661a8c7 Binary files /dev/null and b/app/assets/images/stockBackground/thumb/6.jpg differ diff --git a/app/assets/images/stockBackground/thumb/7.jpg b/app/assets/images/stockBackground/thumb/7.jpg new file mode 100755 index 00000000..697ae27a Binary files /dev/null and b/app/assets/images/stockBackground/thumb/7.jpg differ diff --git a/app/assets/images/stockBackground/thumb/8.jpg b/app/assets/images/stockBackground/thumb/8.jpg new file mode 100755 index 00000000..25a47979 Binary files /dev/null and b/app/assets/images/stockBackground/thumb/8.jpg differ diff --git a/app/assets/images/stockBackground/thumb/9.jpg b/app/assets/images/stockBackground/thumb/9.jpg new file mode 100755 index 00000000..e7dd60e0 Binary files /dev/null and b/app/assets/images/stockBackground/thumb/9.jpg differ diff --git a/app/assets/images/twitter.png b/app/assets/images/twitter.png new file mode 100644 index 00000000..8b8fac07 Binary files /dev/null and b/app/assets/images/twitter.png differ diff --git a/app/assets/javascripts/.DS_Store b/app/assets/javascripts/.DS_Store deleted file mode 100644 index 9134f2a5..00000000 Binary files a/app/assets/javascripts/.DS_Store and /dev/null differ diff --git a/app/assets/javascripts/desktop.js b/app/assets/javascripts/desktop.js new file mode 100644 index 00000000..281a0b3d --- /dev/null +++ b/app/assets/javascripts/desktop.js @@ -0,0 +1,15 @@ +// This is a manifest file that'll be compiled into including all the files listed below. +// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically +// be included in the compiled file accessible from http://example.com/assets/application.js +// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the +// the compiled file. +// +//= require jquery +//= require jquery_ujs +//= require jquery-ui +//= require jquery.tinyscrollbar.min +//= require jquery.miniColors.min +//= require bootstrap +//= require orbitdesktopAPI +//= require orbitTimeline +//= require orbitdesktop \ No newline at end of file diff --git a/app/assets/javascripts/desktopload.js.erb b/app/assets/javascripts/desktopload.js.erb new file mode 100644 index 00000000..c4e9d1e7 --- /dev/null +++ b/app/assets/javascripts/desktopload.js.erb @@ -0,0 +1,6 @@ + +orbitDesktop.prototype.themefolder = "desktop_themes"; +orbitDesktopAPI.prototype.notifyImgPath = "/assets/"; +alert("<%= @desktop.inspect %>") +var od = new orbitDesktop("#ajax_container"); + diff --git a/app/assets/javascripts/jquery.miniColors.min.js b/app/assets/javascripts/jquery.miniColors.min.js new file mode 100755 index 00000000..25dcfa0e --- /dev/null +++ b/app/assets/javascripts/jquery.miniColors.min.js @@ -0,0 +1,9 @@ +/* + * jQuery miniColors: A small color selector + * + * Copyright 2011 Cory LaViska for A Beautiful Site, LLC. (http://abeautifulsite.net/) + * + * Dual licensed under the MIT or GPL Version 2 licenses + * +*/ +if(jQuery)(function($){$.extend($.fn,{miniColors:function(o,data){var create=function(input,o,data){var color=expandHex(input.val());if(!color)color='ffffff';var hsb=hex2hsb(color);var trigger=$('');trigger.insertAfter(input);input.addClass('miniColors').data('original-maxlength',input.attr('maxlength')||null).data('original-autocomplete',input.attr('autocomplete')||null).data('letterCase','uppercase').data('trigger',trigger).data('hsb',hsb).data('change',o.change?o.change:null).attr('maxlength',7).attr('autocomplete','off').val('#'+convertCase(color,o.letterCase));if(o.readonly)input.prop('readonly',true);if(o.disabled)disable(input);trigger.bind('click.miniColors',function(event){event.preventDefault();if(input.val()==='')input.val('#');show(input)});input.bind('focus.miniColors',function(event){if(input.val()==='')input.val('#');show(input)});input.bind('blur.miniColors',function(event){var hex=expandHex(input.val());input.val(hex?'#'+convertCase(hex,input.data('letterCase')):'')});input.bind('keydown.miniColors',function(event){if(event.keyCode===9)hide(input)});input.bind('keyup.miniColors',function(event){setColorFromInput(input)});input.bind('paste.miniColors',function(event){setTimeout(function(){setColorFromInput(input)},5)})};var destroy=function(input){hide();input=$(input);input.data('trigger').remove();input.attr('autocomplete',input.data('original-autocomplete')).attr('maxlength',input.data('original-maxlength')).removeData().removeClass('miniColors').unbind('.miniColors');$(document).unbind('.miniColors')};var enable=function(input){input.prop('disabled',false).data('trigger').css('opacity',1)};var disable=function(input){hide(input);input.prop('disabled',true).data('trigger').css('opacity',0.5)};var show=function(input){if(input.prop('disabled'))return false;hide();var selector=$('
');selector.append('