diff --git a/app/assets/css/main.css b/app/assets/css/main.css index 7dfffc1..eea00f0 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -106,3 +106,21 @@ .upload-settings-btn:hover .upload-settings-icon { transform: rotate(90deg); } + +.api-debug-response { + scrollbar-width: thin; + scrollbar-color: rgb(82 82 82) transparent; +} + +.api-debug-response::-webkit-scrollbar { + width: 6px; +} + +.api-debug-response::-webkit-scrollbar-thumb { + border-radius: 9999px; + background-color: rgb(82 82 82); +} + +.api-debug-response::-webkit-scrollbar-track { + background: transparent; +} diff --git a/app/components/ApiCurlBlock.vue b/app/components/ApiCurlBlock.vue index 15ae6ba..d3067bb 100644 --- a/app/components/ApiCurlBlock.vue +++ b/app/components/ApiCurlBlock.vue @@ -3,9 +3,11 @@ const props = withDefaults( defineProps<{ code: string scrollable?: boolean + lang?: string }>(), { - scrollable: true + scrollable: true, + lang: '' } ) @@ -34,6 +36,12 @@ async function copyCode() { + + {{ lang }} +
{{ props.code }}
+ :class="scrollable ? 'max-h-80' : ''" + >{{ code }} diff --git a/app/components/AppShell.vue b/app/components/AppShell.vue index a8552f1..c251183 100644 --- a/app/components/AppShell.vue +++ b/app/components/AppShell.vue @@ -17,17 +17,12 @@ const navItems = computed(() => { ] if (isAdmin.value) { items.push({ label: t('nav.storage'), to: '/storage', icon: 'i-lucide-hard-drive' }) - items.push({ label: t('nav.settings'), to: '/settings', icon: 'i-lucide-settings' }) } + items.push({ label: t('nav.settings'), to: '/settings', icon: 'i-lucide-settings' }) return items }) const accountMenuItems = computed(() => [ - { - label: t('nav.logs'), - icon: 'i-lucide-scroll-text', - to: '/logs' - }, { label: t('nav.changePassword'), icon: 'i-lucide-key-round', @@ -48,7 +43,7 @@ const desktopUserMenuItems = computed(() => [ function isNavActive(to: string) { if (to === '/settings') { - return route.path === '/settings' + return route.path.startsWith('/settings') } return route.path.startsWith(to) } diff --git a/app/components/CopyButton.vue b/app/components/CopyButton.vue index dd54a58..d8bb78d 100644 --- a/app/components/CopyButton.vue +++ b/app/components/CopyButton.vue @@ -6,6 +6,8 @@ const props = defineProps<{ icon?: string block?: boolean successTitle?: string + variant?: 'solid' | 'outline' | 'soft' | 'subtle' | 'ghost' | 'link' + color?: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral' }>() const emit = defineEmits<{ @@ -76,7 +78,8 @@ async function copy() {