diff --git a/MacInstallation.md b/MacInstallation.md index 1333ed77..a6e47436 100644 --- a/MacInstallation.md +++ b/MacInstallation.md @@ -1 +1,40 @@ -TODO +install homebrew + + \curl -sSL https://get.rvm.io | bash -s stable --rails + + rvm install 1.9.3 --with-gcc=clang + + rvm use 1.9.3 + + gem install lunchy + +(http://www.moncefbelyamani.com/how-to-install-postgresql-on-a-mac-with-homebrew-and-lunchy/) + + + brew install postgresql + ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents + createuser metamaps -P -s -d + +set a password + + lunchy start postgres + + +cd into the metamaps directory + + bundle install + + +copy the database.yml.default file and rename it database.yml +make sure the username and password match the POSTGRES username and password you set + + +http://nodejs.org/ hit install, download, open, install + + + rake db:create + rake db:schema:load + rake db:fixtures:load + rails s + +( to start the server) diff --git a/app/assets/javascripts/src/Metamaps.js b/app/assets/javascripts/src/Metamaps.js index 7455f046..053fda2a 100644 --- a/app/assets/javascripts/src/Metamaps.js +++ b/app/assets/javascripts/src/Metamaps.js @@ -1458,7 +1458,7 @@ Metamaps.Realtime = { }); $('body').click(self.close); - self.socket = io.connect('http://gentle-savannah-1303.herokuapp.com'); + self.socket = io.connect('http://localhost:5001'); self.startActiveMap(); }, toggleBox: function (event) { @@ -1635,6 +1635,15 @@ Metamaps.Realtime = { $('#mapper' + data.userid).remove(); $('.realtimeMapperList ul').append(mapperListItem); +<<<<<<< HEAD + // create a div for the collaborators compass + $('#compass' + data.userid).remove(); + $('
', { + id: 'compass' + data.userid, + class: 'collabCompass' + }).html('

'+data.username+'

').appendTo('#wrapper'); + +======= // create a div for the collaborators compass $('#compass' + data.userid).remove(); $('
', { @@ -1643,6 +1652,7 @@ Metamaps.Realtime = { class: 'collabCompass' }).appendTo('#wrapper'); } +>>>>>>> fe1f35d63eda20b39e97f11c8bb75135281d5b98 }, newPeerOnMap: function (data) { var self = Metamaps.Realtime; @@ -1659,6 +1669,35 @@ Metamaps.Realtime = { }; // create an item for them in the realtime box +<<<<<<< HEAD + var mapperListItem = '
  • '; + mapperListItem += ''; + mapperListItem += data.username; + mapperListItem += '
    '; + mapperListItem += '
  • '; + $('#mapper' + data.userid).remove(); + $('.realtimeMapperList ul').append(mapperListItem); + + // create a div for the collaborators compass + $('#compass' + data.userid).remove(); + $('
    ', { + id: 'compass' + data.userid, + class: 'collabCompass' + }).html('

    '+data.username+'

    ').appendTo('#wrapper'); + + Metamaps.GlobalUI.notifyUser(data.username + ' just joined the map'); + + // send this new mapper back your details, and the awareness that you've loaded the map + var update = { + userToNotify: data.userid, + username: Metamaps.Active.Mapper.get("name"), + userimage: Metamaps.Active.Mapper.get("image"), + userid: Metamaps.Active.Mapper.id, + userrealtime: self.status, + mapid: Metamaps.Active.Map.id + }; + socket.emit('updateNewMapperList', update); +======= if (data.userid !== Metamaps.Active.Mapper.id) { var mapperListItem = '
  • '; mapperListItem += ''; @@ -1689,6 +1728,7 @@ Metamaps.Realtime = { }; socket.emit('updateNewMapperList', update); } +>>>>>>> fe1f35d63eda20b39e97f11c8bb75135281d5b98 }, lostPeerOnMap: function (data) { var self = Metamaps.Realtime; diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 23fbacf7..c7c891b2 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -183,12 +183,20 @@ input[type="submit"]:active { .edit_user, .forgotPassword { display: block; - width: 250px; + width: 300px; background-color: #E0E0E0; - padding: 20px; + padding: 16px; border-radius: 5px; color: black; box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.4); + top: 50%; + left:50%; + position:absolute; + margin-left: -166px; +} +.forgotPassword { + height: 134px; + margin-top: -83px; } .centerGreyForm input[type="text"], .centerGreyForm input[type="email"], @@ -2054,3 +2062,28 @@ float: left; .templates { display: none; } + +/* collabCompass section */ +.collabCompass:hover p { + display: block; +} +.collabCompass p { + display: none; + background-color: #4fb5c0; + color: #FFFFFF; + padding: 0 8px 0 8px; + position: absolute; + top: 9px; + left:30px; + z-index: 1; + font-size: 14px; + line-height: 14px; + border-top-right-radius: 2px; + border-bottom-right-radius: 2px; +} +.collabCompass img { + border-radius: 16px; + border: 2px solid #4fb5c0; + z-index: 2; + +} diff --git a/app/views/users/passwords/new.html.erb b/app/views/users/passwords/new.html.erb index bdd7a8bc..88dddb4a 100644 --- a/app/views/users/passwords/new.html.erb +++ b/app/views/users/passwords/new.html.erb @@ -4,12 +4,12 @@ <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post, :class => "forgotPassword centerGreyForm" }) do |f| %> <%= devise_error_messages! %> -

    Forgot your password?

    +

    FORGOT PASSWORD?

    -
    <%= f.label :email %> +
    <%= f.label :email, "Enter Your Email:" %> <%= f.email_field :email, :autofocus => true %>
    -
    <%= f.submit "Send me reset password instructions" %>
    +
    <%= f.submit "Send Reset Password Instructions" %>
    <% end %>