From c158375d021ac3c8dadef761fcee276a8dd76874 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 26 Apr 2012 21:30:13 +0800 Subject: [PATCH] =?UTF-8?q?with=20connection=20and=20some=20save=20setting?= =?UTF-8?q?s=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/images/facebook.png | Bin 0 -> 7120 bytes app/assets/images/gmail.png | Bin 0 -> 8019 bytes app/assets/images/linkedin.png | Bin 0 -> 5732 bytes app/assets/images/twitter.png | Bin 0 -> 3794 bytes app/assets/javascripts/orbitdesktop.js | 14 +++++++ app/controllers/desktop_controller.rb | 4 ++ app/controllers/otheraccounts_controller.rb | 7 ++++ app/models/other_accounts.rb | 15 ++++++++ app/models/user/user.rb | 1 + app/views/desktop/settings.html.erb | 2 +- .../desktop/settings/connections.html.erb | 35 ++++++++++++++++++ config/routes.rb | 3 ++ public/desktop_widgets/gmail/gmail.js | 10 +++++ 13 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 app/assets/images/facebook.png create mode 100644 app/assets/images/gmail.png create mode 100644 app/assets/images/linkedin.png create mode 100644 app/assets/images/twitter.png create mode 100644 app/models/other_accounts.rb create mode 100644 app/views/desktop/settings/connections.html.erb diff --git a/app/assets/images/facebook.png b/app/assets/images/facebook.png new file mode 100644 index 0000000000000000000000000000000000000000..3bfe4bac2c05108df248a2a270174fb3d61c863e GIT binary patch literal 7120 zcmV;>8!zOEP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+B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y(eAW_>&m zGsJpUmK=BAc8o_Jym{;B>Y+aeem{SVM;1Prb`9_oz=trqYc}r=nQ?Unx>xBEU^H@5 zQT=-Qpw>SC=lA=dR(l-v literal 0 HcmV?d00001 diff --git a/app/assets/images/gmail.png b/app/assets/images/gmail.png new file mode 100644 index 0000000000000000000000000000000000000000..dd2d70a82a379eb92ed8d15b4267a03511f50bb4 GIT binary patch literal 8019 zcmV-ZAFSYsP)KLZ*U+5Lu!Sk^o_Z5E4Meg@_7P6crJiNL9pw)e1;Xm069{HJUZAPk55R%$-RIA z6-eL&AQ0xu!e<4=008gy@A0LT~suv4>S3ILP<0Bm`DLLvaF4FK%)Nj?Pt*r}7;7Xa9z9H|HZjR63e zC`Tj$K)V27Re@400>HumpsYY5E(E}?0f1SyGDiY{y#)Yvj#!WnKwtoXnL;eg03bL5 z07D)V%>y7z1E4U{zu>7~aD})?0RX_umCct+(lZpemCzb@^6=o|A>zVpu|i=NDG+7} zl4`aK{0#b-!z=TL9Wt0BGO&T{GJWpjryhdijfaIQ&2!o}p04JRKYg3k&Tf zVxhe-O!X z{f;To;xw^bEES6JSc$k$B2CA6xl)ltA<32E66t?3@gJ7`36pmX0IY^jz)rRYwaaY4 ze(nJRiw;=Qb^t(r^DT@T3y}a2XEZW-_W%Hszxj_qD**t_m!#tW0KDiJT&R>6OvVTR z07RgHDzHHZ48atvzz&?j9lXF70$~P3Knx_nJP<+#`N z#-MZ2bTkiLfR>_b(HgWKJ%F~Nr_oF3b#wrIijHG|(J>BYjM-sajE6;FiC7vY#};Gd zST$CUHDeuEH+B^pz@B062qXfFfD`NpUW5?BY=V%GM_5c)L#QR}BeW8_2v-S%gfYS= zB9o|3v?Y2H`NVi)In3rTB8+ej^> zQ=~r95NVuDChL%G$=>7$vVg20myx%S50Foi`^m%Pw-h?Xh~i8Mq9jtJloCocWk2Nv zrJpiFnV_ms&8eQ$2&#xWpIS+6pmtC%Q-`S&GF4Q#^mhymh7E(qNMa}%YZ-ePrx>>xFPTi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EBJJIZ-UEtzFe^eZPpk|@!(ZFI-2B} z>kP%48paxQP%<26-oy?~75QYDuUDBjQR^IvHLa(v4pPM93BFrnb(^{k=w^-Ya~zHl z5IsGJJJ;cv1#XvniCe96agFgbM-n`hVmQ&%)|R3B6^CL>7qL&3I#&veCYy#6%g|v( zzvPRR-m|W5GgIVBfmi1lP_5!rC(%@s1SKEb?4>>Ga3W1W5D<9vR`ss)Jgq5wf=A;# zH^rq~51?;tF&HHz+X|0eH31LloSdax>jCsfOZMD||9;#$@7?GDajwEp+(J*_YJK4L zG|8ai!X1nfr7rgS{TsOTu2Y_-7>aW=g;%r+UlB#0W&t-alUj zWw&OqYihc48ELXn-NXNzp}GU@Ks(S5v;*xxJJ1gFeG2`@05EcPz(5~3&Hw-a07*qo IM6N<$g1ICTo&W#< literal 0 HcmV?d00001 diff --git a/app/assets/javascripts/orbitdesktop.js b/app/assets/javascripts/orbitdesktop.js index ead5741f..33aab4fc 100755 --- a/app/assets/javascripts/orbitdesktop.js +++ b/app/assets/javascripts/orbitdesktop.js @@ -481,6 +481,9 @@ var orbitDesktop = function(dom){ case "sections": sections(); break; + case "connection": + connection(); + break; } $("div#settings ul#setting_left_nav li a").removeClass('thmc1 thmtxt').data('clicked',null); $(this).addClass('thmc1 thmtxt').data('clicked',true); @@ -684,6 +687,7 @@ var orbitDesktop = function(dom){ $(this).miniColors("value", o.rgb2hex(color)); }); } + $("div#settings div#panel_r").load("/desktop/settingthemes",function(){ $.getJSON("/desktop/get_desktop_settings",{"get":"theme","desktopid":o.desktopId},function(theme){ $('#st1 .theme_list [id='+theme+']') @@ -696,6 +700,16 @@ var orbitDesktop = function(dom){ }) }) } + + var connection = function(){ + var bindHandlers = function(){ + + } + $("div#settings div#panel_r").load("/desktop/settingconnection",function(){ + bindHandlers(); + }) + + } $(o.contentHolder).empty().load("/desktop/"+target,function(){ bindHandlers(); diff --git a/app/controllers/desktop_controller.rb b/app/controllers/desktop_controller.rb index 8a9670be..0123aa87 100644 --- a/app/controllers/desktop_controller.rb +++ b/app/controllers/desktop_controller.rb @@ -38,6 +38,10 @@ class DesktopController< ApplicationController render "desktop/settings/sections", :layout => false end + def settingconnection + render "desktop/settings/connections", :layout => false + end + def journal_p render :layout => false end diff --git a/app/controllers/otheraccounts_controller.rb b/app/controllers/otheraccounts_controller.rb index 96c4787c..f5051cb8 100644 --- a/app/controllers/otheraccounts_controller.rb +++ b/app/controllers/otheraccounts_controller.rb @@ -5,6 +5,13 @@ class OtheraccountsController< ApplicationController require 'net/https' include REXML + def saveaccountinfo + @email = params['email'] + @password = params['password'] + @account = params['account'] + OtherAccount.new(email: @email, encrypted_password: @password, type: @account) + end + def gmail url = URI.parse("https://mail.google.com/mail/feed/atom") req = Net::HTTP::Get.new(url.path) diff --git a/app/models/other_accounts.rb b/app/models/other_accounts.rb new file mode 100644 index 00000000..b702974f --- /dev/null +++ b/app/models/other_accounts.rb @@ -0,0 +1,15 @@ +class OtherAccount + include Mongoid::Document + include Mongoid::Timestamps + + field :type + field :email + field :encrypted_password + + attr_encrypted :encrypted_password, :key => 'rulingorbit.com', :encode => true + + belongs_to :user + + + +end \ No newline at end of file diff --git a/app/models/user/user.rb b/app/models/user/user.rb index 39fec3f0..84f556c2 100644 --- a/app/models/user/user.rb +++ b/app/models/user/user.rb @@ -17,6 +17,7 @@ class User has_many :managing_apps,:class_name => "AppManager" has_one :desktop, :autosave => true, :dependent => :destroy + has_many :otheraccount, :autosave => true, :dependent => :destroy belongs_to :role has_and_belongs_to_many :sub_roles accepts_nested_attributes_for :attribute_values, :allow_destroy => true diff --git a/app/views/desktop/settings.html.erb b/app/views/desktop/settings.html.erb index df41ef60..8b7ad2d1 100644 --- a/app/views/desktop/settings.html.erb +++ b/app/views/desktop/settings.html.erb @@ -14,7 +14,7 @@
  • Account
  • Sections
  • Theme
  • -
  • Connection
  • +
  • Connection
  • diff --git a/app/views/desktop/settings/connections.html.erb b/app/views/desktop/settings/connections.html.erb new file mode 100644 index 00000000..cac2acd7 --- /dev/null +++ b/app/views/desktop/settings/connections.html.erb @@ -0,0 +1,35 @@ + +
    +
    +
    +
    +
    Connections
    + + + + + + + + + + + + + + + + + + + + + + +
    +
    + Save +
    +
    +
    +
    diff --git a/config/routes.rb b/config/routes.rb index 0c793d32..8c9b3d75 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -117,7 +117,10 @@ Orbit::Application.routes.draw do match '/desktop/journal_p/'=>'desktop#journal_p' match '/desktop/journal_p_list/'=>'desktop#journal_p_list' match '/desktop/journal_p_add/'=>'desktop#journal_p_add' + match '/desktop/settingconnection/'=>'desktop#settingconnection' match '/desktop/forgmail/'=>'otheraccounts#gmail' + match '/desktop/save_account_info/'=>'otheraccounts#saveaccountinfo' + match '/desktop/temp_func/'=>'desktop#temp_func' match '/panel/:app_name/front_end/:app_action/:id' => 'pages#show_from_link', :constraints => lambda { |request| diff --git a/public/desktop_widgets/gmail/gmail.js b/public/desktop_widgets/gmail/gmail.js index e51640a1..3a267e74 100644 --- a/public/desktop_widgets/gmail/gmail.js +++ b/public/desktop_widgets/gmail/gmail.js @@ -42,4 +42,14 @@ var gmail = function(){ } }); } +} + +var saveaccount = function(){ + var usernm = $("#gmail input[type=text]").val(); + var pwd = $("#gmail input[type=password]").val(); + usernm = "hr@rulingcom.com"; + pwd = "hr08973"; + if(usernm!="" && pwd!=""){ + $.post("/desktop/save_account_info",{email:usernm,password:pwd,account:"gmail"}) + } } \ No newline at end of file