diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index 91d8a64ac..2c327a3a7 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -118,7 +118,7 @@ a { } .popover-theme { - @apply bg-primary; + @apply bg-popover; @apply text-secondary; @apply p-2; @apply shadow-lg; @@ -126,19 +126,19 @@ a { } &[x-placement^="top"] .tippy-tooltip .tippy-arrow { - @apply border-t-primary; + @apply border-t-popover; } &[x-placement^="bottom"] .tippy-tooltip .tippy-arrow { - @apply border-b-primary; + @apply border-b-popover; } &[x-placement^="left"] .tippy-tooltip .tippy-arrow { - @apply border-l-primary; + @apply border-l-popover; } &[x-placement^="right"] .tippy-tooltip .tippy-arrow { - @apply border-r-primary; + @apply border-r-popover; } } diff --git a/assets/scss/themes.scss b/assets/scss/themes.scss index 54941e677..80cf3a87f 100644 --- a/assets/scss/themes.scss +++ b/assets/scss/themes.scss @@ -27,6 +27,8 @@ --error-color: theme("colors.dark.800"); // Tooltip color --tooltip-color: theme("colors.true-gray.100"); + // Popover color + --popover-color: theme("colors.true-gray.800"); // Editor theme --editor-theme: "merbivore_soft"; } @@ -54,6 +56,8 @@ --error-color: theme("colors.blue-gray.700"); // Tooltip color --tooltip-color: theme("colors.blue-gray.800"); + // Popover color + --popover-color: theme("colors.white"); // Editor theme --editor-theme: "textmate"; } @@ -81,6 +85,8 @@ --error-color: theme("colors.dark.800"); // Tooltip color --tooltip-color: theme("colors.true-gray.100"); + // Popover color + --popover-color: theme("colors.dark.700"); // Editor theme --editor-theme: "twilight"; } diff --git a/components/app/Header.vue b/components/app/Header.vue index 607e07e63..f08fab0a1 100644 --- a/components/app/Header.vue +++ b/components/app/Header.vue @@ -41,7 +41,8 @@ '
' + `${currentUser.email || 'Email not found'}` " - :indicator="isOnLine ? 'bg-green-500' : 'bg-red-500'" + indicator + :indicator-styles="isOnLine ? 'bg-green-500' : 'bg-red-500'" /> { const currentIndex = methods.indexOf(newMethod.value) if (currentIndex === -1) { @@ -363,6 +365,12 @@ export default defineComponent({ defineActionHandler("request.method.delete", () => updateMethod("DELETE")) defineActionHandler("request.method.head", () => updateMethod("HEAD")) + const isCustomMethod = () => { + if (newMethod.value === "CUSTOM" || !methods.includes(newMethod.value)) + return false + return true + } + return { newEndpoint, newMethod, @@ -386,6 +394,8 @@ export default defineComponent({ methodOptions, sendOptions, saveOptions, + + isCustomMethod, } }, }) diff --git a/components/profile/Picture.vue b/components/profile/Picture.vue index 282873f4f..50585881b 100644 --- a/components/profile/Picture.vue +++ b/components/profile/Picture.vue @@ -16,9 +16,10 @@ />
@@ -38,6 +39,10 @@ export default { default: "Profile picture", }, indicator: { + type: Boolean, + default: false, + }, + indicatorStyles: { type: String, default: "bg-green-500", }, diff --git a/components/teams/Edit.vue b/components/teams/Edit.vue index b2ad31a94..f8e9a109c 100644 --- a/components/teams/Edit.vue +++ b/components/teams/Edit.vue @@ -2,9 +2,7 @@