Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
d05d0ae
Merge pull request #2 from Galiant/cart_functions_and_devise
Galiant Apr 15, 2018
c75a3d8
isabelle added consoles and genres as categories as per video of 06-04
isabellebidou Apr 16, 2018
43a9c33
isabelle reducing opacity of categories icons
isabellebidou Apr 16, 2018
538ca55
isabelle implemented Orders as per video of 07_04
isabellebidou Apr 18, 2018
6c92fdd
isabelle added addtocart functionality to categories pages, adjusted …
isabellebidou Apr 19, 2018
f13ca1c
isabelle implemented payment simulation and view current user orders …
isabellebidou Apr 20, 2018
4cd46e1
Added search funcionality
Galiant Apr 20, 2018
f1a7bb9
Merge pull request #4 from Galiant/search
Galiant Apr 20, 2018
4c34e92
Added serch functionality if user search for product which dont exist
Galiant Apr 20, 2018
463b369
Merge pull request #5 from Galiant/search
Galiant Apr 20, 2018
6101956
Added admin login and edit profile functionality
Galiant Apr 20, 2018
2ff6282
Merge pull request #6 from Galiant/admin
Galiant Apr 20, 2018
9ad35ba
Only signed user can see view order button
Galiant Apr 21, 2018
bdec551
Added consoles title in navigation bar
Galiant Apr 21, 2018
e717e3b
Added currency and cosmetic show to item and categories page
Galiant Apr 21, 2018
86ccc5a
Added currency
Galiant Apr 21, 2018
34f9ed1
Change layout of genre categories
Galiant Apr 21, 2018
0ef942e
new about and help page
Apr 21, 2018
9ee652d
Merge pull request #7 from Galiant/new_about_and_help
Galiant Apr 21, 2018
c28b400
Added button hover effect
Galiant Apr 21, 2018
19bf913
homepage styling
Galiant Apr 21, 2018
ae59b0f
isabelle implemented admin user
isabellebidou Apr 21, 2018
2d6237c
Homepage styling without header, details styling
Galiant Apr 21, 2018
666560c
Merge branch 'master' into tidy
Galiant Apr 21, 2018
0f2f3b9
Merge pull request #8 from Galiant/tidy
Galiant Apr 21, 2018
fb7c971
Added broke line in css
Galiant Apr 21, 2018
b61da73
Commiting changes before switching to admin2 branch
Galiant Apr 21, 2018
3994b0c
Footer conflict solved
Galiant Apr 21, 2018
083e434
Merge pull request #9 from Galiant/admin2
Galiant Apr 21, 2018
72128cf
Added view orders for user
Galiant Apr 21, 2018
7c6e288
Styling
Galiant Apr 21, 2018
e143976
Merge pull request #10 from Galiant/styling
Galiant Apr 21, 2018
088e3ff
Error fix
Galiant Apr 21, 2018
d68fcca
Error fix
Galiant Apr 21, 2018
1ed2909
Fixed admin authentication on all pages - solution nested if loop
Galiant Apr 21, 2018
50bb9fb
Isabelle implemented dropdown menus in the add item for consoles and …
isabellebidou Apr 21, 2018
2f6cd01
Some styles
Galiant Apr 21, 2018
1a9d391
Styling in process
Galiant Apr 21, 2018
c339c7b
Merge pull request #11 from Galiant/styles2
Galiant Apr 21, 2018
28f6bf2
Added more privileges for admin and restrict for user. User cant edit…
Galiant Apr 21, 2018
e6d695a
Added username functionality for sigup/in and to show username on ord…
Galiant Apr 22, 2018
0c44e3e
Changed date format on order pages
Galiant Apr 22, 2018
5c753f6
Merge pull request #12 from Galiant/adminuser
Galiant Apr 22, 2018
a5c4161
Dropdown menu in creating item is showing on item page.
Galiant Apr 22, 2018
24879b5
Footer fix
Galiant Apr 22, 2018
83ca000
Css styling
Galiant Apr 22, 2018
d6ebf7e
Changes
Galiant Apr 22, 2018
c1a43a1
Merge pull request #13 from Galiant/morestyle
Galiant Apr 22, 2018
e5f2573
Button fix
Galiant Apr 22, 2018
2e16924
Merge pull request #14 from Galiant/buttons
Galiant Apr 22, 2018
86d2f3a
Change database from sqlite to postgres
Galiant Apr 2, 2019
7ec21a0
Updated Gemfile and schema
Galiant Apr 3, 2019
f322b03
Updated Gemfile and added Procfile
Galiant Apr 3, 2019
223fb3c
Updated Gemfile
Galiant Apr 3, 2019
e88095c
Updated production rb
Galiant Apr 3, 2019
098e0a5
Changed layout/application file
Galiant Apr 4, 2019
dce8a21
Changed Gemfile and Procfile
Galiant Apr 5, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ruby '2.4.1'
source 'https://rubygems.org'

git_source(:github) do |repo_name|
Expand All @@ -7,11 +8,16 @@ end

gem 'devise', '4.3.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.6'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
gem 'rails', '~> 5.1.5'
# Use postgres as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
gem 'unicorn'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use jQuery rails
gem 'jquery-rails'
# Use jQuery UI rails
gem 'jquery-ui-rails'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
Expand Down Expand Up @@ -50,5 +56,9 @@ group :development do
gem 'spring-watcher-listen', '~> 2.0.0'
end

group :production do
gem 'rails_12factor'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
183 changes: 103 additions & 80 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
GEM
remote: https://rubygems.org/
specs:
actioncable (5.1.6)
actionpack (= 5.1.6)
actioncable (5.1.7)
actionpack (= 5.1.7)
nio4r (~> 2.0)
websocket-driver (~> 0.6.1)
actionmailer (5.1.6)
actionpack (= 5.1.6)
actionview (= 5.1.6)
activejob (= 5.1.6)
actionmailer (5.1.7)
actionpack (= 5.1.7)
actionview (= 5.1.7)
activejob (= 5.1.7)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.1.6)
actionview (= 5.1.6)
activesupport (= 5.1.6)
actionpack (5.1.7)
actionview (= 5.1.7)
activesupport (= 5.1.7)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.1.6)
activesupport (= 5.1.6)
actionview (5.1.7)
activesupport (= 5.1.7)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.1.6)
activesupport (= 5.1.6)
activejob (5.1.7)
activesupport (= 5.1.7)
globalid (>= 0.3.6)
activemodel (5.1.6)
activesupport (= 5.1.6)
activerecord (5.1.6)
activemodel (= 5.1.6)
activesupport (= 5.1.6)
activemodel (5.1.7)
activesupport (= 5.1.7)
activerecord (5.1.7)
activemodel (= 5.1.7)
activesupport (= 5.1.7)
arel (~> 8.0)
activesupport (5.1.6)
activesupport (5.1.7)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
arel (8.0.0)
bcrypt (3.1.11)
bindex (0.5.0)
bcrypt (3.1.12)
bindex (0.6.0)
builder (3.2.3)
byebug (10.0.2)
byebug (11.0.1)
capybara (2.18.0)
addressable
mini_mime (>= 0.1.3)
Expand All @@ -61,80 +61,94 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
crass (1.0.3)
concurrent-ruby (1.1.5)
crass (1.0.4)
devise (4.3.0)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0, < 5.2)
responders
warden (~> 1.2.3)
erubi (1.7.1)
erubi (1.8.0)
execjs (2.7.0)
ffi (1.9.23)
globalid (0.4.1)
ffi (1.10.0)
globalid (0.4.2)
activesupport (>= 4.2.0)
i18n (1.0.0)
i18n (1.6.0)
concurrent-ruby (~> 1.0)
jbuilder (2.7.0)
jbuilder (2.8.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jquery-rails (4.3.3)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (6.0.1)
railties (>= 3.2.16)
kgio (2.11.2)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.2.2)
loofah (2.2.3)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.0)
mail (2.7.1)
mini_mime (>= 0.1.1)
method_source (0.9.0)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
method_source (0.9.2)
mini_mime (1.0.1)
mini_portile2 (2.4.0)
minitest (5.11.3)
multi_json (1.13.1)
nio4r (2.3.0)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
nio4r (2.3.1)
nokogiri (1.10.2)
mini_portile2 (~> 2.4.0)
orm_adapter (0.5.0)
public_suffix (3.0.2)
puma (3.11.3)
rack (2.0.4)
rack-test (1.0.0)
pg (1.1.4)
public_suffix (3.0.3)
puma (3.12.1)
rack (2.0.7)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.1.6)
actioncable (= 5.1.6)
actionmailer (= 5.1.6)
actionpack (= 5.1.6)
actionview (= 5.1.6)
activejob (= 5.1.6)
activemodel (= 5.1.6)
activerecord (= 5.1.6)
activesupport (= 5.1.6)
rails (5.1.7)
actioncable (= 5.1.7)
actionmailer (= 5.1.7)
actionpack (= 5.1.7)
actionview (= 5.1.7)
activejob (= 5.1.7)
activemodel (= 5.1.7)
activerecord (= 5.1.7)
activesupport (= 5.1.7)
bundler (>= 1.3.0)
railties (= 5.1.6)
railties (= 5.1.7)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (5.1.6)
actionpack (= 5.1.6)
activesupport (= 5.1.6)
rails_12factor (0.0.3)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.5)
rails_stdout_logging (0.0.5)
railties (5.1.7)
actionpack (= 5.1.7)
activesupport (= 5.1.7)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.3.1)
raindrops (0.19.0)
rake (12.3.2)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
responders (2.4.0)
actionpack (>= 4.2.0, < 5.3)
railties (>= 4.2.0, < 5.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
responders (2.4.1)
actionpack (>= 4.2.0, < 6.0)
railties (>= 4.2.0, < 6.0)
ruby_dep (1.5.0)
rubyzip (1.2.1)
sass (3.5.6)
rubyzip (1.2.2)
sass (3.7.3)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
Expand All @@ -145,43 +159,45 @@ GEM
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
selenium-webdriver (3.11.0)
selenium-webdriver (3.141.0)
childprocess (~> 0.5)
rubyzip (~> 1.2)
rubyzip (~> 1.2, >= 1.2.2)
spring (2.0.2)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.1)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
thor (0.20.0)
thor (0.20.3)
thread_safe (0.3.6)
tilt (2.0.8)
turbolinks (5.1.0)
turbolinks-source (~> 5.1)
turbolinks-source (5.1.0)
tilt (2.0.9)
turbolinks (5.2.0)
turbolinks-source (~> 5.2)
turbolinks-source (5.2.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uglifier (4.1.8)
uglifier (4.1.20)
execjs (>= 0.3.0, < 3)
warden (1.2.7)
rack (>= 1.0)
web-console (3.5.1)
unicorn (5.5.0)
kgio (~> 2.6)
raindrops (~> 0.7)
warden (1.2.8)
rack (>= 2.0.6)
web-console (3.7.0)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
xpath (3.0.0)
xpath (3.2.0)
nokogiri (~> 1.8)

PLATFORMS
Expand All @@ -193,18 +209,25 @@ DEPENDENCIES
coffee-rails (~> 4.2)
devise (= 4.3.0)
jbuilder (~> 2.5)
jquery-rails
jquery-ui-rails
listen (>= 3.0.5, < 3.2)
pg (>= 0.18, < 2.0)
puma (~> 3.7)
rails (~> 5.1.6)
rails (~> 5.1.5)
rails_12factor
sass-rails (~> 5.0)
selenium-webdriver
spring
spring-watcher-listen (~> 2.0.0)
sqlite3
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
unicorn
web-console (>= 3.3.0)

RUBY VERSION
ruby 2.4.1p111

BUNDLED WITH
1.16.1
2.0.1
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}
Binary file added app/assets/images/Site/faq.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/Site/game-land-logo-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/Site/game-land-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/images/Site/gameland.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/Site/support.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/Site/video-game-wallpapers.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/action.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/gamepad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/gamepadP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/hiker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/logo-back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/nintendo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/pc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/racing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/sports.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,33 @@
//= require rails-ujs
//= require turbolinks
//= require_tree .
//= require jquery3
//= require jquery_ujs

document.addEventListener("turbolinks:load", function() {
// whatever you want to make sure is loaded on each page

// Footer fix
// function to set the height on fly
function autoHeight() {
$('.mainCont').css('min-height', 0);
$('.mainCont').css('min-height', (
$(document).height() -
$('.header').height() -
$('.foot').height()
));
}

// onDocumentReady function bind
$(document).ready(function() {
autoHeight();
});

// onResize bind of the function
$(window).resize(function() {
autoHeight();
});

// End Footer fix

})
3 changes: 3 additions & 0 deletions app/assets/javascripts/consoles.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/genres.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/orderitems.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/orders.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
Loading