diff --git a/src/App.vue b/src/App.vue index 464871b..8b5c3ce 100644 --- a/src/App.vue +++ b/src/App.vue @@ -222,4 +222,8 @@ table { margin-left: auto; margin-right: auto; } +td { + padding-left: 4px; + padding-right: 4px; +} diff --git a/src/i18n/en.json b/src/i18n/en.json index 99e41c0..bfee684 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -29,5 +29,7 @@ "cancel": "Cancel", "nothing_found": "Nothing Found", "nothing_happened": "Nothing Happend", - "explorespace": "Explore Space" + "explorespace": "Explore Space", + "explorer_lost": "Explorer Lost", + "planet_found": "Planet Found" } diff --git a/src/services/steemconnect.js b/src/services/steemconnect.js index 830fbd2..6141bc1 100644 --- a/src/services/steemconnect.js +++ b/src/services/steemconnect.js @@ -104,6 +104,20 @@ class SteemConnectService extends Client { super.customJson([], [user], [appId], finalJson, cb); } + + giftPlanet(user, planetId, recipient, cb) { + var scJson = {}; + var scCommand = {}; + scJson["username"] = user; + scJson["type"] = "giftplanet"; + scCommand["tr_var1"] = planetId; + scCommand["tr_var2"] = recipient; + scJson["command"] = scCommand; + var finalJson = JSON.stringify(scJson); + var appId = this.appId(); + + super.customJson([], [user], [appId], finalJson, cb); + } } export default new SteemConnectService(); diff --git a/src/views/Items.vue b/src/views/Items.vue index 12ceb1d..62502e3 100644 --- a/src/views/Items.vue +++ b/src/views/Items.vue @@ -25,7 +25,11 @@ @@ -103,6 +107,7 @@ export default { this.items = response; }, giftItem(item, index) { + this.clicked.push(item.id); SteemConnectService.setAccessToken(this.accessToken); SteemConnectService.giftItem( this.loginUser, diff --git a/src/views/Missions.vue b/src/views/Missions.vue index 432e34e..ee45299 100644 --- a/src/views/Missions.vue +++ b/src/views/Missions.vue @@ -7,7 +7,7 @@