diff --git a/Gemfile b/Gemfile
index 3773a2b..052cdc5 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,6 +1,6 @@
source 'https://rubygems.org'
-gem 'rails', '5.2.0'
+gem 'rails', '5.2.1'
gem 'pg', '~> 1.0.0'
gem 'webpacker', '3.5.3'
diff --git a/Gemfile.lock b/Gemfile.lock
index 5c9b1d9..31ba591 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,50 +1,50 @@
GEM
remote: https://rubygems.org/
specs:
- actioncable (5.2.0)
- actionpack (= 5.2.0)
+ actioncable (5.2.1)
+ actionpack (= 5.2.1)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
- actionmailer (5.2.0)
- actionpack (= 5.2.0)
- actionview (= 5.2.0)
- activejob (= 5.2.0)
+ actionmailer (5.2.1)
+ actionpack (= 5.2.1)
+ actionview (= 5.2.1)
+ activejob (= 5.2.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
- actionpack (5.2.0)
- actionview (= 5.2.0)
- activesupport (= 5.2.0)
+ actionpack (5.2.1)
+ actionview (= 5.2.1)
+ activesupport (= 5.2.1)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
- actionview (5.2.0)
- activesupport (= 5.2.0)
+ actionview (5.2.1)
+ activesupport (= 5.2.1)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
- activejob (5.2.0)
- activesupport (= 5.2.0)
+ activejob (5.2.1)
+ activesupport (= 5.2.1)
globalid (>= 0.3.6)
- activemodel (5.2.0)
- activesupport (= 5.2.0)
- activerecord (5.2.0)
- activemodel (= 5.2.0)
- activesupport (= 5.2.0)
+ activemodel (5.2.1)
+ activesupport (= 5.2.1)
+ activerecord (5.2.1)
+ activemodel (= 5.2.1)
+ activesupport (= 5.2.1)
arel (>= 9.0)
- activestorage (5.2.0)
- actionpack (= 5.2.0)
- activerecord (= 5.2.0)
+ activestorage (5.2.1)
+ actionpack (= 5.2.1)
+ activerecord (= 5.2.1)
marcel (~> 0.3.1)
- activesupport (5.2.0)
+ activesupport (5.2.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (9.0.0)
bcrypt (3.1.12)
- bootsnap (1.3.0)
+ bootsnap (1.3.1)
msgpack (~> 1.0)
builder (3.2.3)
coderay (1.1.2)
@@ -77,7 +77,7 @@ GEM
guard (~> 2.1)
guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0)
- i18n (1.0.1)
+ i18n (1.1.0)
concurrent-ruby (~> 1.0)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
@@ -111,42 +111,42 @@ GEM
thread_safe (~> 0.3, >= 0.3.1)
method_source (0.9.0)
mimemagic (0.3.2)
- mini_mime (1.0.0)
+ mini_mime (1.0.1)
mini_portile2 (2.3.0)
minitest (5.11.3)
msgpack (1.2.4)
multi_json (1.13.1)
nenv (0.3.0)
nio4r (2.3.1)
- nokogiri (1.8.2)
+ nokogiri (1.8.4)
mini_portile2 (~> 2.3.0)
notiffany (0.1.1)
nenv (~> 0.1)
shellany (~> 0.0)
- oj (3.6.2)
+ oj (3.6.7)
parslet (1.8.2)
pg (1.0.0)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
- puma (3.11.4)
+ puma (3.12.0)
rack (2.0.5)
rack-proxy (0.6.4)
rack
- rack-test (1.0.0)
+ rack-test (1.1.0)
rack (>= 1.0, < 3)
- rails (5.2.0)
- actioncable (= 5.2.0)
- actionmailer (= 5.2.0)
- actionpack (= 5.2.0)
- actionview (= 5.2.0)
- activejob (= 5.2.0)
- activemodel (= 5.2.0)
- activerecord (= 5.2.0)
- activestorage (= 5.2.0)
- activesupport (= 5.2.0)
+ rails (5.2.1)
+ actioncable (= 5.2.1)
+ actionmailer (= 5.2.1)
+ actionpack (= 5.2.1)
+ actionview (= 5.2.1)
+ activejob (= 5.2.1)
+ activemodel (= 5.2.1)
+ activerecord (= 5.2.1)
+ activestorage (= 5.2.1)
+ activesupport (= 5.2.1)
bundler (>= 1.3.0)
- railties (= 5.2.0)
+ railties (= 5.2.1)
sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.2)
actionpack (~> 5.x, >= 5.0.1)
@@ -157,12 +157,12 @@ GEM
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
- railties (5.2.0)
- actionpack (= 5.2.0)
- activesupport (= 5.2.0)
+ railties (5.2.1)
+ actionpack (= 5.2.1)
+ activesupport (= 5.2.1)
method_source
rake (>= 0.8.7)
- thor (>= 0.18.1, < 2.0)
+ thor (>= 0.19.0, < 2.0)
rake (12.3.1)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
@@ -192,7 +192,7 @@ GEM
ruby_dep (1.5.0)
shellany (0.0.1)
signed_multiset (0.2.1)
- sprockets (3.7.1)
+ sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
@@ -235,7 +235,7 @@ DEPENDENCIES
oj (~> 3.6.2)
pg (~> 1.0.0)
puma (~> 3.11)
- rails (= 5.2.0)
+ rails (= 5.2.1)
rails-controller-testing
redcarpet (~> 3.4.0)
rspec-rails (~> 3.7.2)
diff --git a/app/controllers/task_lists_controller.rb b/app/controllers/task_lists_controller.rb
index 696d1dc..54086dd 100644
--- a/app/controllers/task_lists_controller.rb
+++ b/app/controllers/task_lists_controller.rb
@@ -4,7 +4,7 @@ class TaskListsController < ApplicationController
before_action :set_task_list, only: [:show, :update, :destroy]
def index
- @task_lists = TaskList.for_user(current_user)
+ @task_lists = TaskList.for_user(current_user).order(created_at: :desc)
end
def show
diff --git a/app/javascript/components/AppIcon.vue b/app/javascript/components/AppIcon.vue
index 2719458..d78478a 100644
--- a/app/javascript/components/AppIcon.vue
+++ b/app/javascript/components/AppIcon.vue
@@ -1,6 +1,6 @@
-
-
+
+
@@ -33,7 +33,7 @@
class SizeData {
constructor(bulmaIconClass, defaultPadding) {
this.bulmaIconClass = bulmaIconClass;
- this.defaultPadding = defaultPadding;
+ this.defaultPadding = defaultPadding || null;
}
}
@@ -54,10 +54,10 @@
};
const sizeMap = {
- sm: new SizeData('is-small', '2px'),
- md: new SizeData('', '3px'),
- lg: new SizeData('is-medium', '4px'),
- xl: new SizeData('is-large', '5px')
+ sm: new SizeData('is-small'),
+ md: new SizeData(''),
+ lg: new SizeData('is-medium'),
+ xl: new SizeData('is-large')
};
export default {
@@ -89,6 +89,10 @@
return iconMap[this.icon];
},
+ sizeData() {
+ return sizeMap[this.size];
+ },
+
iconUrl() {
return this.iconData.url;
},
@@ -103,11 +107,11 @@
},
sizeClass() {
- return sizeMap[this.size].bulmaIconClass;
+ return this.sizeData.bulmaIconClass;
},
- wrapperPadding() {
- return this.padding || sizeMap[this.size].defaultPadding;
+ svgPadding() {
+ return this.padding || this.sizeData.defaultPadding || "15%";
}
},
@@ -130,29 +134,6 @@
\ No newline at end of file
diff --git a/app/javascript/components/TheTaskListList.vue b/app/javascript/components/TheTaskListList.vue
index 2c09408..3446475 100644
--- a/app/javascript/components/TheTaskListList.vue
+++ b/app/javascript/components/TheTaskListList.vue
@@ -2,8 +2,17 @@