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 @@
-{{ $t("Active Mission") }} | {{ $t("Type") }} | @@ -24,7 +24,12 @@{{ "(" + mission.start_x + "/" + mission.start_y + ")" }} | {{ "(" + mission.end_x + "/" + mission.end_y + ")" }} | {{ moment.unix(mission.arrival, "seconds").format("LLL") }} | -{{ moment.unix(mission.return, "seconds").format("LLL") }} | ++ {{ + moment.unix(mission.return, "seconds").format("LLL") + }} + {{ $t("-") }} + | {{ $t(mission.result || "-") }} | @@ -33,7 +38,7 @@ {{ $t("No Result") }}
---|
{{ $t("Finished Mission") }} | {{ $t("Type") }} | @@ -50,7 +55,12 @@{{ "(" + mission.start_x + "/" + mission.start_y + ")" }} | {{ "(" + mission.end_x + "/" + mission.end_y + ")" }} | {{ moment.unix(mission.arrival, "seconds").format("LLL") }} | -{{ moment.unix(mission.return, "seconds").format("LLL") }} | ++ {{ + moment.unix(mission.return, "seconds").format("LLL") + }} + {{ $t("-") }} + | {{ $t(mission.result || "-") }} | @@ -83,7 +93,7 @@ export default { currentActiveSort: "arrival", currentActiveSortDir: "asc", currentOldSort: "return", - currentOldSortDir: "asc" + currentOldSortDir: "desc" }; }, async mounted() { @@ -164,11 +174,8 @@ export default { diff --git a/src/views/Planets.vue b/src/views/Planets.vue index 93f1623..d966596 100644 --- a/src/views/Planets.vue +++ b/src/views/Planets.vue @@ -16,31 +16,88 @@ {{ $t("Rename") }}{{ $t("Context") }} | ++ {{ $t("Gift Planet") }} + |
---|---|---|---|---|---|---|
{{ planet.id }} | ({{ planet.posx }}/{{ planet.posy }}) | {{ planet.name }} | -
-
+
+ |
|
+
+
+ |
|
+ {{ + $t( + "Warning: You activated actions with potentially severe consequences." + ) + }} +
++ {{ + $t( + "Gifting will hand over ownership of your planet to someone else and you can't claim it back." + ) + }} +
+ +
+
@@ -54,6 +111,7 @@