NVM.vue 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <NuxtLayout name="guides">
  3. <template #intro>
  4. <div class="max-w-xl">
  5. <h2 class="text-4xl font-extrabold text-gray-100 sm:text-5xl sm:tracking-tight lg:text-6xl">
  6. Node Version Manager (NVM)
  7. </h2>
  8. <p class="mt-5 text-xl text-indigo-300">
  9. Install this software manager for Node.js.
  10. </p>
  11. </div>
  12. </template>
  13. <template #links>
  14. <div class="mt-10 w-full max-w-xs lg:mt-0">
  15. <label for="currency" class="block text-2xl font-medium text-indigo-400">
  16. Recommended Links
  17. </label>
  18. <div class="flex flex-col mt-1.5 pl-3 relative text-indigo-200">
  19. <div>
  20. ↳ <NuxtLink to="/guides/veracrypt" class="hover:underline">
  21. Install VeraCrypt
  22. </NuxtLink>
  23. </div>
  24. <div>
  25. ↳ <NuxtLink>
  26. Nuxt Link #2
  27. </NuxtLink>
  28. </div>
  29. <div>
  30. ↳ <NuxtLink>
  31. Nuxt Link #3
  32. </NuxtLink>
  33. </div>
  34. </div>
  35. </div>
  36. </template>
  37. <!-- Page Section -->
  38. <template #main>
  39. <section class="p-3 h-full bg-gradient-to-r from-gray-50 to-gray-100">
  40. <h3 class="text-2xl font-medium">
  41. Run the installation script
  42. </h3>
  43. <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
  44. <textarea rows="1" class="-mb-2 p-5 w-full border-0 bg-yellow-100">curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash</textarea>
  45. </div>
  46. </section>
  47. </template>
  48. </NuxtLayout>
  49. <!-- <main>
  50. <div class="grid grid-cols-5 gap-4 h-full overflow-hidden pb-20 bg-red-500">
  51. <section class="col-span-3 p-3 h-full overflow-y-scroll bg-purple-500">
  52. <p class="text-xl">
  53. Installing Docker to a Debian/Ubuntu machine is quick and easy.
  54. </p>
  55. <div class="my-3 flex justify-between border-2 border-gray-500 p-3 rounded-xl bg-white">
  56. <span>
  57. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
  58. </span>
  59. <svg class="w-6 h-6 cursor-pointer" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg>
  60. </div>
  61. <p>
  62. More steps here..
  63. </p>
  64. <div class="my-3 flex justify-between border-2 border-gray-500 p-3 rounded-xl bg-white">
  65. <span>
  66. apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common
  67. </span>
  68. <svg class="w-6 h-6 cursor-pointer" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg>
  69. </div>
  70. <div class="my-3 flex justify-between border-2 border-gray-500 p-3 rounded-xl bg-white">
  71. <span>
  72. curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
  73. </span>
  74. <svg class="w-6 h-6 cursor-pointer" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg>
  75. </div>
  76. <div class="my-3 flex justify-between border-2 border-gray-500 p-3 rounded-xl bg-white">
  77. <span>
  78. add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
  79. </span>
  80. <svg class="w-6 h-6 cursor-pointer" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg>
  81. </div>
  82. <div class="my-3 flex justify-between border-2 border-gray-500 p-3 rounded-xl bg-white">
  83. <span>
  84. apt update
  85. </span>
  86. <svg class="w-6 h-6 cursor-pointer" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg>
  87. </div>
  88. <div class="my-3 flex justify-between border-2 border-gray-500 p-3 rounded-xl bg-white">
  89. <span>
  90. apt install docker-ce docker-compose
  91. </span>
  92. <svg class="w-6 h-6 cursor-pointer" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg>
  93. </div>
  94. <small>* docker-compose pull && docker-compose up -d</small>
  95. <br /><small>** /var/lib/docker/volumes</small>
  96. </section>
  97. <section class="col-span-2 p-3 bg-yellow-400">
  98. <div class="flex items-center">
  99. <svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
  100. <span class="ml-2 text-3xl font-bold">
  101. Guide
  102. </span>
  103. </div>
  104. <div class="card">
  105. <div class="card-header">
  106. <h3 class="card-title">
  107. <i class="fas fa-info-circle mr-1"></i>
  108. </h3>
  109. </div>
  110. <div class="card-body">
  111. <dl class="row">
  112. <dt class="col-sm-4">Description lists</dt>
  113. <dd class="col-sm-8">A description list is perfect for defining terms.</dd>
  114. <dt class="col-sm-4">Euismod</dt>
  115. <dd class="col-sm-8">Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
  116. <dd class="col-sm-8 offset-sm-4">Donec id elit non mi porta gravida at eget metus.</dd>
  117. </dl>
  118. </div>
  119. </div>
  120. </section>
  121. </div>
  122. </main> -->
  123. </template>