From 2afbf3321d4ba4ca2a08ffd4cc3b8d5524674023 Mon Sep 17 00:00:00 2001 From: Max Behzadi <69126271+MaxTheGeeek@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:15:44 +0200 Subject: [PATCH] ADD: vc only preset to one click --- .../one-click-icons/preset-icons/vconly.png | Bin 0 -> 4691 bytes launcher/public/output.css | 212 ++++-------------- .../UI/one-click/OneclickScreen.vue | 6 + .../components/plugin/ConfigBody.vue | 139 +++++++++--- .../one-click/components/vconly/OnlyBody.vue | 142 ++++++++++++ .../components/vconly/OnlyFooter.vue | 26 +++ .../components/vconly/OnlyHeader.vue | 51 +++++ .../UI/one-click/sections/OnlySource.vue | 15 ++ launcher/src/composables/nextRoute.js | 12 +- launcher/src/router/index.js | 6 + launcher/src/store/clickInstallation.js | 9 +- launcher/src/store/nodeManage.js | 19 +- 12 files changed, 422 insertions(+), 215 deletions(-) create mode 100644 launcher/public/img/icon/one-click-icons/preset-icons/vconly.png create mode 100644 launcher/src/components/UI/one-click/components/vconly/OnlyBody.vue create mode 100644 launcher/src/components/UI/one-click/components/vconly/OnlyFooter.vue create mode 100644 launcher/src/components/UI/one-click/components/vconly/OnlyHeader.vue create mode 100644 launcher/src/components/UI/one-click/sections/OnlySource.vue diff --git a/launcher/public/img/icon/one-click-icons/preset-icons/vconly.png b/launcher/public/img/icon/one-click-icons/preset-icons/vconly.png new file mode 100644 index 0000000000000000000000000000000000000000..3ae50a701c69229a60fb179cbb66a215a6bac2de GIT binary patch literal 4691 zcmV-Z60GfsP)Px#1am@3R0s$N2z&@+hyVZ){YgYYRCr$Poe6YP*O|vZNtP|k`-1TjjLq0AHkjBz zz@(7Qp%9Y-O$RcRG+P5DB@ldirleVzbVx(9kerqnNYaodY0?u&AR&cGfWU<1utRB0 zu!A99!Fa=~Y*~^e&G)~~6Hm6Wg|KAV);-6^($jrU@BQwl|NXx2-uJG8t``-*R3~r= z3=Ev5R;%YJmCEr7g(8f%<1=sRfq>O&HE@-3v)O#eXf%F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oUp;^N|qycbr :not([hidden]) ~ :not([hidden]){ --tw-space-x-reverse: 0; margin-right: calc(0.25rem * var(--tw-space-x-reverse)); @@ -2978,6 +2935,11 @@ video { border-color: rgb(156 163 175 / var(--tw-divide-opacity)); } +.divide-gray-500 > :not([hidden]) ~ :not([hidden]){ + --tw-divide-opacity: 1; + border-color: rgb(107 114 128 / var(--tw-divide-opacity)); +} + .divide-gray-600 > :not([hidden]) ~ :not([hidden]){ --tw-divide-opacity: 1; border-color: rgb(75 85 99 / var(--tw-divide-opacity)); @@ -2988,16 +2950,6 @@ video { border-color: rgb(55 65 81 / var(--tw-divide-opacity)); } -.divide-gray-100 > :not([hidden]) ~ :not([hidden]){ - --tw-divide-opacity: 1; - border-color: rgb(243 244 246 / var(--tw-divide-opacity)); -} - -.divide-gray-500 > :not([hidden]) ~ :not([hidden]){ - --tw-divide-opacity: 1; - border-color: rgb(107 114 128 / var(--tw-divide-opacity)); -} - .self-start{ -ms-flex-item-align: start; align-self: flex-start; @@ -3033,10 +2985,6 @@ video { overflow: hidden; } -.overflow-x-auto{ - overflow-x: auto; -} - .overflow-y-auto{ overflow-y: auto; } @@ -3049,10 +2997,6 @@ video { overflow-y: hidden; } -.overflow-x-clip{ - overflow-x: clip; -} - .overflow-x-scroll{ overflow-x: scroll; } @@ -3488,21 +3432,11 @@ video { border-bottom-color: transparent; } -.border-b-white{ - --tw-border-opacity: 1; - border-bottom-color: rgb(255 255 255 / var(--tw-border-opacity)); -} - .border-l-gray-200{ --tw-border-opacity: 1; border-left-color: rgb(229 231 235 / var(--tw-border-opacity)); } -.border-l-red-500{ - --tw-border-opacity: 1; - border-left-color: rgb(239 68 68 / var(--tw-border-opacity)); -} - .border-r-\[\#264744\]{ --tw-border-opacity: 1; border-right-color: rgb(38 71 68 / var(--tw-border-opacity)); @@ -3552,11 +3486,6 @@ video { background-color: rgb(13 13 14 / var(--tw-bg-opacity)); } -.bg-\[\#101111\]{ - --tw-bg-opacity: 1; - background-color: rgb(16 17 17 / var(--tw-bg-opacity)); -} - .bg-\[\#111213\]{ --tw-bg-opacity: 1; background-color: rgb(17 18 19 / var(--tw-bg-opacity)); @@ -3947,6 +3876,11 @@ video { background-color: rgb(96 152 121 / var(--tw-bg-opacity)); } +.bg-\[\#70E763\]{ + --tw-bg-opacity: 1; + background-color: rgb(112 231 99 / var(--tw-bg-opacity)); +} + .bg-\[\#A0A0A0\]{ --tw-bg-opacity: 1; background-color: rgb(160 160 160 / var(--tw-bg-opacity)); @@ -3957,6 +3891,11 @@ video { background-color: rgb(209 187 158 / var(--tw-bg-opacity)); } +.bg-\[\#EB5353\]{ + --tw-bg-opacity: 1; + background-color: rgb(235 83 83 / var(--tw-bg-opacity)); +} + .bg-\[\#F7C566\]{ --tw-bg-opacity: 1; background-color: rgb(247 197 102 / var(--tw-bg-opacity)); @@ -4201,31 +4140,11 @@ video { background-color: rgb(250 204 21 / var(--tw-bg-opacity)); } -.bg-zinc-200{ - --tw-bg-opacity: 1; - background-color: rgb(228 228 231 / var(--tw-bg-opacity)); -} - -.bg-zinc-400{ - --tw-bg-opacity: 1; - background-color: rgb(161 161 170 / var(--tw-bg-opacity)); -} - .bg-zinc-700{ --tw-bg-opacity: 1; background-color: rgb(63 63 70 / var(--tw-bg-opacity)); } -.bg-\[\#70E763\]{ - --tw-bg-opacity: 1; - background-color: rgb(112 231 99 / var(--tw-bg-opacity)); -} - -.bg-\[\#EB5353\]{ - --tw-bg-opacity: 1; - background-color: rgb(235 83 83 / var(--tw-bg-opacity)); -} - .bg-opacity-80{ --tw-bg-opacity: 0.8; } @@ -4497,10 +4416,6 @@ video { text-align: center; } -.text-right{ - text-align: right; -} - .indent-0{ text-indent: 0px; } @@ -4586,11 +4501,6 @@ video { line-height: 1.25rem; } -.text-sm\/none{ - font-size: 0.875rem; - line-height: 1; -} - .text-xl{ font-size: 1.25rem; line-height: 1.75rem; @@ -4865,11 +4775,6 @@ video { color: rgb(255 255 255 / var(--tw-text-opacity)); } -.text-yellow-300{ - --tw-text-opacity: 1; - color: rgb(253 224 71 / var(--tw-text-opacity)); -} - .text-yellow-400{ --tw-text-opacity: 1; color: rgb(250 204 21 / var(--tw-text-opacity)); @@ -5044,11 +4949,6 @@ video { --tw-shadow: var(--tw-shadow-colored); } -.shadow-\[\#101111\]{ - --tw-shadow-color: #101111; - --tw-shadow: var(--tw-shadow-colored); -} - .shadow-\[\#111010\]{ --tw-shadow-color: #111010; --tw-shadow: var(--tw-shadow-colored); @@ -5124,11 +5024,6 @@ video { --tw-shadow: var(--tw-shadow-colored); } -.shadow-gray-700{ - --tw-shadow-color: #374151; - --tw-shadow: var(--tw-shadow-colored); -} - .shadow-gray-800{ --tw-shadow-color: #1f2937; --tw-shadow: var(--tw-shadow-colored); @@ -5163,20 +5058,11 @@ video { box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); } -.ring-inset{ - --tw-ring-inset: inset; -} - .ring-black{ --tw-ring-opacity: 1; --tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity)); } -.ring-gray-300{ - --tw-ring-opacity: 1; - --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity)); -} - .ring-opacity-5{ --tw-ring-opacity: 0.05; } @@ -5272,11 +5158,6 @@ video { transition-duration: 500ms; } -.duration-75{ - -webkit-transition-duration: 75ms; - transition-duration: 75ms; -} - .ease-in{ -webkit-transition-timing-function: cubic-bezier(0.4, 0, 1, 1); transition-timing-function: cubic-bezier(0.4, 0, 1, 1); @@ -5772,21 +5653,11 @@ html body { background-color: rgb(60 67 74 / var(--tw-bg-opacity)); } -.hover\:bg-\[\#407d7d\]:hover{ - --tw-bg-opacity: 1; - background-color: rgb(64 125 125 / var(--tw-bg-opacity)); -} - .hover\:bg-\[\#447a75\]:hover{ --tw-bg-opacity: 1; background-color: rgb(68 122 117 / var(--tw-bg-opacity)); } -.hover\:bg-\[\#488d8d\]:hover{ - --tw-bg-opacity: 1; - background-color: rgb(72 141 141 / var(--tw-bg-opacity)); -} - .hover\:bg-\[\#4c7960\]:hover{ --tw-bg-opacity: 1; background-color: rgb(76 121 96 / var(--tw-bg-opacity)); @@ -5917,11 +5788,6 @@ html body { background-color: rgb(4 47 46 / var(--tw-bg-opacity)); } -.hover\:bg-gray-50:hover{ - --tw-bg-opacity: 1; - background-color: rgb(249 250 251 / var(--tw-bg-opacity)); -} - .hover\:bg-opacity-10:hover{ --tw-bg-opacity: 0.1; } diff --git a/launcher/src/components/UI/one-click/OneclickScreen.vue b/launcher/src/components/UI/one-click/OneclickScreen.vue index 97f8f0e0ce..84df7b7d49 100644 --- a/launcher/src/components/UI/one-click/OneclickScreen.vue +++ b/launcher/src/components/UI/one-click/OneclickScreen.vue @@ -10,6 +10,7 @@ import ConfigPlugins from "./sections/ConfigPlugins.vue"; import MevboostRelays from "./sections/MevboostRelays.vue"; import SelectSync from "./sections/SelectSync.vue"; import VerifyCheck from "./sections/VerifyCheck.vue"; +import OnlySource from "./sections/OnlySource.vue"; import AnimationSection from "./sections/AnimationSection.vue"; import { computed } from "vue"; import { useRouter } from "vue-router"; @@ -25,6 +26,11 @@ const components = [ path: "/oneClick/config", component: ConfigPlugins, }, + { + path: "/oneClick/source", + component: OnlySource, + }, + { path: "/oneClick/mevboost", component: MevboostRelays, diff --git a/launcher/src/components/UI/one-click/components/plugin/ConfigBody.vue b/launcher/src/components/UI/one-click/components/plugin/ConfigBody.vue index 207ee627fe..eae5357035 100644 --- a/launcher/src/components/UI/one-click/components/plugin/ConfigBody.vue +++ b/launcher/src/components/UI/one-click/components/plugin/ConfigBody.vue @@ -1,23 +1,41 @@ import { ref, computed, onMounted, watch } from 'vue';