From 81227ce0c8dacf0b705f2d6a3d885a05dc5beef6 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Tue, 12 Apr 2016 22:05:46 -0400 Subject: [PATCH 1/5] Removed leftover debug code. --- main.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/main.js b/main.js index 0af1fc5..fd890b9 100644 --- a/main.js +++ b/main.js @@ -76,11 +76,8 @@ var v = new Vue({ this.user_data[bundleId].push({item: itemId, position: itemPosition}); }, removeItemFromBundle: function(bundleId, itemId, itemPosition){ - console.log("Removing item from bundle" + bundleId + " | " + itemId + " | " + itemPosition); for(i = 0; i < this.user_data[bundleId].length; i++){ if(this.user_data[bundleId][i].item === itemId && this.user_data[bundleId][i].position === itemPosition){ - console.log("Found a match with: "); - console.log(this.user_data[bundleId][i]); this.user_data[bundleId].splice(i, 1); } } From 7beeae149660cabec2c0306a7903784a051a2216 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Tue, 12 Apr 2016 22:11:15 -0400 Subject: [PATCH 2/5] Added a data save whenever user_data is edited. --- main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/main.js b/main.js index fd890b9..234091c 100644 --- a/main.js +++ b/main.js @@ -89,6 +89,7 @@ var v = new Vue({ else{ this.addItemToBundle(bundleId, itemId, itemPosition); } + localStorage.setItem('user_data', this.user_data_serialized); }, isItemInBundle: function(bundleId, itemId, itemPosition){ if(this.user_data[bundleId].filter(function(element){ From c14e24262fed1b11d60d02913c7ccb2542cadc67 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Tue, 12 Apr 2016 22:11:51 -0400 Subject: [PATCH 3/5] Updated Save and Load to Import and Export. This will better reflect their current function. --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index ba56b5f..eb4e9d7 100644 --- a/index.html +++ b/index.html @@ -30,7 +30,7 @@ - Save + Export Data @@ -39,7 +39,7 @@ - Load + Import Data From c7cac5d1892e6f6bceff3fc07d1da96817737dbc Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Tue, 12 Apr 2016 23:04:09 -0400 Subject: [PATCH 4/5] Added CSS to allow for larger footers. --- main.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.css b/main.css index 079e79a..a6564fc 100644 --- a/main.css +++ b/main.css @@ -10,3 +10,11 @@ flex-direction: column; justify-content: space-between; } + +.card-footer-item{ + flex-wrap: wrap; +} + +.button{ + flex-wrap: wrap; +} From 233bb529e7c6bd618dd9309b90ad1ef5506ec6ad Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Tue, 12 Apr 2016 23:04:21 -0400 Subject: [PATCH 5/5] Updated to bulma 0.19. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index eb4e9d7..780f5ab 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Stardew Valley Community Checklist + href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.0.19/css/bulma.min.css"/>