Mapper.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <main>
  3. <div class="info-text menu-title">
  4. Transaction Mapper
  5. </div>
  6. <small class="text-muted">
  7. Quickly and trustlessly discover the full transaction history of ANY "bitcoin" (ie UTXO) back to its original coinbase.
  8. </small>
  9. <div class="form-group mt-2">
  10. <input
  11. type="text"
  12. class="form-control"
  13. placeholder="Enter a transaction id to begin mapping"
  14. v-model="txid"
  15. />
  16. <input
  17. v-if="showResults"
  18. type="button"
  19. class="btn btn-danger mt-1"
  20. value="Stop mapping"
  21. @click="stop"
  22. />
  23. <input
  24. type="button"
  25. class="btn mt-1"
  26. :class="{ 'btn-warning': showResults, 'btn-primary': !showResults }"
  27. :value="showResults ? 'Reset all' : 'Start mapping'"
  28. @click="start"
  29. />
  30. </div>
  31. <div v-if="showResults">
  32. <div>
  33. waiting for results...
  34. </div>
  35. </div>
  36. </main>
  37. </template>
  38. <script>
  39. /* Initialize vuex. */
  40. // import { mapActions } from 'vuex'
  41. export default {
  42. components: {
  43. //
  44. },
  45. data: () => {
  46. return {
  47. poolInfo: null,
  48. txid: null,
  49. showResults: null,
  50. }
  51. },
  52. computed: {
  53. //
  54. },
  55. methods: {
  56. // ...mapActions('utils', [
  57. // 'toast',
  58. // ]),
  59. start() {
  60. this.toast(['Oops!', 'This feature is not ready yet', 'error'])
  61. },
  62. stop() {
  63. this.showResults = !this.showResults
  64. },
  65. },
  66. created: function () {
  67. //
  68. },
  69. mounted: function () {
  70. //
  71. },
  72. beforeDestroy() {
  73. //
  74. },
  75. }
  76. </script>
  77. <style scoped>
  78. .menu-title {
  79. font-size: 2.0em;
  80. }
  81. </style>