Compare commits

...

2 Commits

Author SHA1 Message Date
Augustin
98ff0dd578 fix(shell): add missing Monitor import from lucide-react
All checks were successful
Beta Release / beta (push) Successful in 47s
💘 Generated with Crush

Assisted-by: GLM-5.1 via Crush <crush@charm.land>
2026-04-24 21:56:32 +02:00
Augustin
9a1ff6e8dc fix(shell): restore missing MAX_TABS, TABS_STORAGE_KEY, TERMINAL_BUFFER_KEY constants
All checks were successful
Beta Release / beta (push) Successful in 48s
💘 Generated with Crush

Assisted-by: GLM-5.1 via Crush <crush@charm.land>
2026-04-24 21:53:38 +02:00

View File

@@ -1,5 +1,6 @@
import { useState, useRef, useEffect, useCallback } from 'react'
import { useI18n } from '../i18n'
import { Monitor } from 'lucide-react'
// === Style thème système pour xterm ===
function getCSSVariable(varName) {
if (typeof document === 'undefined') return null;
@@ -236,6 +237,9 @@ function connectWebSocket(term, fitAddon, initPayload, onStateChange, onFirstMes
}
export default function Shell({ api }) {
const MAX_TABS = 7
const TABS_STORAGE_KEY = 'muyue_shell_tabs'
const TERMINAL_BUFFER_KEY = 'muyue_terminal_buffers'
const { t } = useI18n()
const tabsRef = useRef({})
const nextIdRef = useRef(1)