{{ t('ide.noProjects') }}
+{{ t('ide.noWorktrees') }}
+ +{{ t('fs.loading') }}
{{ error }}
{{ t('fs.empty') }}
@@ -15,7 +15,7 @@ :key="e.path" :entry="e" :wt="wt" - :depth="0" + :depth="depth" :active="active" @open="(p) => emit('open', p)" /> @@ -31,7 +31,10 @@ import type { FsEntry, FsListResponse } from '@arboretum/shared'; import { api } from '../../lib/api'; import FileTreeNode from './FileTreeNode.vue'; -const props = defineProps<{ wt: string; active: string | null }>(); +const props = withDefaults(defineProps<{ wt: string; active: string | null; embedded?: boolean; depth?: number }>(), { + embedded: false, + depth: 0, +}); const emit = defineEmits<{ open: [relPath: string] }>(); const { t } = useI18n(); diff --git a/packages/web/src/composables/useNav.ts b/packages/web/src/composables/useNav.ts index 56f6912..02d1bae 100644 --- a/packages/web/src/composables/useNav.ts +++ b/packages/web/src/composables/useNav.ts @@ -1,7 +1,7 @@ import { computed, type Component } from 'vue'; import { useRoute, type RouteLocationRaw } from 'vue-router'; import { useI18n } from 'vue-i18n'; -import { Boxes, Coffee, GitBranch, LifeBuoy, Settings, TerminalSquare } from '@lucide/vue'; +import { Boxes, Coffee, GitBranch, LifeBuoy, PanelsTopLeft, Settings, TerminalSquare } from '@lucide/vue'; import { useSessionsStore } from '../stores/sessions'; import GiteaIcon from '../components/ui/GiteaIcon.vue'; import { BUYMEACOFFEE_URL, REPO_SOURCE_URL } from '../lib/constants'; @@ -31,6 +31,7 @@ export function useNav() { // Onglets principaux : barre du bas mobile + haut de sidebar. const primary = computed