help.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <div class="width-constraint">
  3. <h1 class="title-text pt-12">
  4. {{ $vuetify.lang.t("$vuetify.help.title") }}
  5. </h1>
  6. <ol style="line-height: 3rem; color: #aaa" class="text-left">
  7. <li>
  8. {{ $vuetify.lang.t("$vuetify.help.bullet1") }}
  9. <code style="color: #eee">
  10. <b>{{ version }}</b>
  11. </code>
  12. {{ $vuetify.lang.t("$vuetify.help.bullet11") }}
  13. </li>
  14. <li>
  15. {{ $vuetify.lang.t("$vuetify.help.bullet2") }}
  16. </li>
  17. <li>
  18. {{ $vuetify.lang.t("$vuetify.help.bullet3") }}
  19. <a
  20. class="px-2 py-1"
  21. style="background: #222; border-radius: 0.25rem"
  22. href="https://returnyoutubedislikeapi.com/votes?videoId=QOFEgexls14"
  23. >
  24. https://returnyoutubedislikeapi.com/votes?videoId=QOFEgexls14
  25. </a>
  26. , <br />
  27. {{ $vuetify.lang.t("$vuetify.help.bullet31") }}
  28. <br />
  29. <span style="color: #eee">
  30. {"id":"QOFEgexls14", "dateCreated":"2021-12-15T16:54:12.250813Z",
  31. "likes":2907, "dislikes":215, "rating":4.725641025641026,
  32. "viewCount":28222, "deleted":false}
  33. </span>
  34. </li>
  35. <li>
  36. {{ $vuetify.lang.t("$vuetify.help.bullet4") }}
  37. <code>#bugs-and-problems</code>
  38. {{ $vuetify.lang.t("$vuetify.help.bullet41") }}
  39. <v-btn
  40. class="mainAltButton"
  41. style="
  42. font-size: 0.5rem;
  43. height: 1.5rem;
  44. color: #aaa;
  45. padding-left: 0.25rem !important;
  46. padding-right: 0.5rem !important;
  47. "
  48. :href="discordLink"
  49. target="_blank"
  50. >
  51. <v-icon size="1rem" style="margin-right: 0.5em">mdi-discord</v-icon>
  52. Discord
  53. </v-btn>
  54. <ol type="a">
  55. <li>
  56. {{ $vuetify.lang.t("$vuetify.help.bullet4a") }}
  57. <v-btn
  58. class="mainAltButton"
  59. style="
  60. height: 1.5rem;
  61. font-size: 0.75rem;
  62. text-transform: none !important;
  63. padding-left: 0.5rem !important;
  64. padding-right: 0.25rem !important;
  65. "
  66. target="_blank"
  67. @click="copyToClipboard(platform)"
  68. >
  69. <v-icon size=".75rem" color="primary" style="margin-right: 0.5em"
  70. >mdi-content-copy</v-icon
  71. >
  72. <span style="color: #f44"> Detected: </span>
  73. &nbsp;
  74. {{ platform }}
  75. </v-btn>
  76. </li>
  77. <li style="position: relative; width: 100%">
  78. {{ $vuetify.lang.t("$vuetify.help.bullet4b") }}
  79. <code>F12</code>
  80. {{ $vuetify.lang.t("$vuetify.help.bullet4b1") }}
  81. <img
  82. loading="eager"
  83. width="100%"
  84. style="border-radius: 1rem; border: 2px solid #333"
  85. src="ui/troubleshooting.webp"
  86. alt="example-screenshot"
  87. />
  88. </li>
  89. <li>
  90. {{ $vuetify.lang.t("$vuetify.help.bullet4c") }}
  91. <br />
  92. {{ $vuetify.lang.t("$vuetify.help.bullet4c1") }}
  93. <br />
  94. <code>about:addons</code>
  95. {{ $vuetify.lang.t("$vuetify.help.firefox") }}
  96. <br />
  97. <code>chrome://extensions</code>
  98. {{ $vuetify.lang.t("$vuetify.help.chrome") }}
  99. </li>
  100. </ol>
  101. </li>
  102. </ol>
  103. </div>
  104. </template>
  105. <script>
  106. export default {
  107. transition(to, from) {
  108. if (!from) return "swoop-in";
  109. let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
  110. if (routes.indexOf(to.name) < 0) return "swoop-out";
  111. if (routes.indexOf(from.name) < 0) return "swoop-in";
  112. return routes.indexOf(to.name) > routes.indexOf(from.name)
  113. ? "swoop-left"
  114. : "swoop-right";
  115. },
  116. data() {
  117. return {
  118. platform:
  119. this.$ua._parsed.os +
  120. " " +
  121. this.$ua._parsed.os_version +
  122. ", " +
  123. this.$ua._parsed.name +
  124. " " +
  125. this.$ua._parsed.version,
  126. version: "loading",
  127. discordLink: "https://discord.gg/mYnESY4Md5",
  128. };
  129. },
  130. mounted() {
  131. fetch(
  132. "https://raw.githubusercontent.com/Anarios/return-youtube-dislike/main/Extensions/combined/manifest-chrome.json"
  133. )
  134. .then((response) => response.json())
  135. .then((json) => {
  136. this.version = json.version;
  137. });
  138. // .catch(console.error);
  139. },
  140. methods: {
  141. copyToClipboard(text) {
  142. navigator.clipboard.writeText("```" + text + "```");
  143. },
  144. },
  145. };
  146. </script>