|
|
@@ -0,0 +1,480 @@
|
|
|
+// src/components/admin/node-configurations/NodeLogTerminal.tsx
|
|
|
+'use client';
|
|
|
+
|
|
|
+import React, { useState, useEffect, useRef, useMemo, useCallback } from 'react';
|
|
|
+import {
|
|
|
+ Terminal,
|
|
|
+ Play,
|
|
|
+ Pause,
|
|
|
+ Trash2,
|
|
|
+ Copy,
|
|
|
+ Check,
|
|
|
+ Search,
|
|
|
+ ArrowDown,
|
|
|
+ Filter,
|
|
|
+ RefreshCw,
|
|
|
+ AlertCircle,
|
|
|
+ Wifi,
|
|
|
+ WifiOff,
|
|
|
+} from 'lucide-react';
|
|
|
+import { toast } from 'react-hot-toast';
|
|
|
+import { nodeConfigService } from '@/lib/services/nodeConfigService';
|
|
|
+import { NodeLogItem } from '@/types';
|
|
|
+
|
|
|
+interface NodeLogTerminalProps {
|
|
|
+ nodeId: string;
|
|
|
+ initialRole?: string;
|
|
|
+ availableRoles?: string[];
|
|
|
+ availableGroups?: string[];
|
|
|
+}
|
|
|
+
|
|
|
+export default function NodeLogTerminal({
|
|
|
+ nodeId,
|
|
|
+ initialRole = 'sentinel',
|
|
|
+ availableRoles = ['sentinel', 'booker', 'standalone'],
|
|
|
+ availableGroups = [],
|
|
|
+}: NodeLogTerminalProps) {
|
|
|
+ // 选中的过滤角色
|
|
|
+ const [selectedRole, setSelectedRole] = useState<string>(initialRole);
|
|
|
+ // 选中的 Group 过滤
|
|
|
+ const [selectedGroup, setSelectedGroup] = useState<string>('');
|
|
|
+ // 级别过滤: ALL | INFO | WARN | ERROR
|
|
|
+ const [levelFilter, setLevelFilter] = useState<'ALL' | 'INFO' | 'WARN' | 'ERROR'>('ALL');
|
|
|
+ // 搜索关键字
|
|
|
+ const [searchKeyword, setSearchKeyword] = useState<string>('');
|
|
|
+
|
|
|
+ // 日志列表状态(最大缓冲 1500 条)
|
|
|
+ const [logs, setLogs] = useState<NodeLogItem[]>([]);
|
|
|
+ // 连接状态
|
|
|
+ const [isConnected, setIsConnected] = useState<boolean>(false);
|
|
|
+ const [isPaused, setIsPaused] = useState<boolean>(false);
|
|
|
+ const [errorMsg, setErrorMsg] = useState<string | null>(null);
|
|
|
+
|
|
|
+ // 自动置底滚屏
|
|
|
+ const [autoScroll, setAutoScroll] = useState<boolean>(true);
|
|
|
+ const [hasNewUnread, setHasNewUnread] = useState<boolean>(false);
|
|
|
+ const [copied, setCopied] = useState<boolean>(false);
|
|
|
+
|
|
|
+ const terminalBodyRef = useRef<HTMLDivElement>(null);
|
|
|
+ const abortCleanupRef = useRef<(() => void) | null>(null);
|
|
|
+ const isPausedRef = useRef<boolean>(false);
|
|
|
+ isPausedRef.current = isPaused;
|
|
|
+
|
|
|
+ // 建立 SSE 实时监听流
|
|
|
+ const startStream = useCallback(() => {
|
|
|
+ if (abortCleanupRef.current) {
|
|
|
+ abortCleanupRef.current();
|
|
|
+ abortCleanupRef.current = null;
|
|
|
+ }
|
|
|
+ setErrorMsg(null);
|
|
|
+ setIsConnected(false);
|
|
|
+
|
|
|
+ const cleanup = nodeConfigService.streamNodeLogs(
|
|
|
+ {
|
|
|
+ node_id: nodeId,
|
|
|
+ role: selectedRole,
|
|
|
+ history_limit: 300,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ onLog: (newLog) => {
|
|
|
+ setIsConnected(true);
|
|
|
+ if (isPausedRef.current) return;
|
|
|
+
|
|
|
+ setLogs((prev) => {
|
|
|
+ const next = [...prev, newLog];
|
|
|
+ if (next.length > 1500) {
|
|
|
+ return next.slice(next.length - 1500);
|
|
|
+ }
|
|
|
+ return next;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ onError: (err) => {
|
|
|
+ console.error('SSE log stream error:', err);
|
|
|
+ setIsConnected(false);
|
|
|
+ setErrorMsg(err.message || '实时日志流连接中断');
|
|
|
+ },
|
|
|
+ }
|
|
|
+ );
|
|
|
+
|
|
|
+ abortCleanupRef.current = cleanup;
|
|
|
+ setIsConnected(true);
|
|
|
+ }, [nodeId, selectedRole]);
|
|
|
+
|
|
|
+ // 当 nodeId 或 selectedRole 切换时重连
|
|
|
+ useEffect(() => {
|
|
|
+ setLogs([]);
|
|
|
+ startStream();
|
|
|
+
|
|
|
+ return () => {
|
|
|
+ if (abortCleanupRef.current) {
|
|
|
+ abortCleanupRef.current();
|
|
|
+ abortCleanupRef.current = null;
|
|
|
+ }
|
|
|
+ };
|
|
|
+ }, [nodeId, selectedRole, startStream]);
|
|
|
+
|
|
|
+ // 监听滚动事件:如果用户主动往上滚,则暂停自动置底
|
|
|
+ const handleScroll = () => {
|
|
|
+ const el = terminalBodyRef.current;
|
|
|
+ if (!el) return;
|
|
|
+ const isAtBottom = el.scrollHeight - el.scrollTop - el.clientHeight <= 40;
|
|
|
+ if (isAtBottom) {
|
|
|
+ setAutoScroll(true);
|
|
|
+ setHasNewUnread(false);
|
|
|
+ } else {
|
|
|
+ setAutoScroll(false);
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ // 日志增加时的滚动逻辑
|
|
|
+ useEffect(() => {
|
|
|
+ if (autoScroll && terminalBodyRef.current) {
|
|
|
+ terminalBodyRef.current.scrollTop = terminalBodyRef.current.scrollHeight;
|
|
|
+ } else if (!autoScroll) {
|
|
|
+ setHasNewUnread(true);
|
|
|
+ }
|
|
|
+ }, [logs, autoScroll]);
|
|
|
+
|
|
|
+ const scrollToBottom = () => {
|
|
|
+ if (terminalBodyRef.current) {
|
|
|
+ terminalBodyRef.current.scrollTop = terminalBodyRef.current.scrollHeight;
|
|
|
+ setAutoScroll(true);
|
|
|
+ setHasNewUnread(false);
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ // 过滤后的日志
|
|
|
+ const filteredLogs = useMemo(() => {
|
|
|
+ return logs.filter((item) => {
|
|
|
+ // 级别过滤
|
|
|
+ if (levelFilter !== 'ALL') {
|
|
|
+ const lvl = (item.level || 'INFO').toUpperCase();
|
|
|
+ if (levelFilter === 'ERROR' && lvl !== 'ERROR') return false;
|
|
|
+ if (levelFilter === 'WARN' && lvl !== 'WARN' && lvl !== 'WARNING') return false;
|
|
|
+ if (levelFilter === 'INFO' && lvl !== 'INFO') return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Group 过滤
|
|
|
+ if (selectedGroup && item.group_id && item.group_id !== selectedGroup) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 关键词搜索
|
|
|
+ if (searchKeyword.trim()) {
|
|
|
+ const q = searchKeyword.toLowerCase();
|
|
|
+ const inMsg = (item.message || '').toLowerCase().includes(q);
|
|
|
+ const inGrp = (item.group_id || '').toLowerCase().includes(q);
|
|
|
+ if (!inMsg && !inGrp) return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ return true;
|
|
|
+ });
|
|
|
+ }, [logs, levelFilter, selectedGroup, searchKeyword]);
|
|
|
+
|
|
|
+ // 复制可见日志
|
|
|
+ const handleCopyLogs = () => {
|
|
|
+ const text = filteredLogs
|
|
|
+ .map((l) => `[${l.timestamp}] [${l.level}] [${l.group_id || '-'}] ${l.message}`)
|
|
|
+ .join('\n');
|
|
|
+ navigator.clipboard.writeText(text);
|
|
|
+ setCopied(true);
|
|
|
+ toast.success(`已复制 ${filteredLogs.length} 条日志到剪贴板`);
|
|
|
+ setTimeout(() => setCopied(false), 2000);
|
|
|
+ };
|
|
|
+
|
|
|
+ // 清屏
|
|
|
+ const handleClearLogs = () => {
|
|
|
+ setLogs([]);
|
|
|
+ toast.success('控制台屏幕已清空');
|
|
|
+ };
|
|
|
+
|
|
|
+ // 高亮搜索词
|
|
|
+ const renderMessageWithHighlight = (msg: string) => {
|
|
|
+ if (!searchKeyword.trim()) return msg;
|
|
|
+ const parts = msg.split(new RegExp(`(${searchKeyword.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'gi'));
|
|
|
+ return parts.map((part, i) =>
|
|
|
+ part.toLowerCase() === searchKeyword.toLowerCase() ? (
|
|
|
+ <span key={i} className="bg-amber-300 text-black font-black px-0.5 rounded-2xs">
|
|
|
+ {part}
|
|
|
+ </span>
|
|
|
+ ) : (
|
|
|
+ part
|
|
|
+ )
|
|
|
+ );
|
|
|
+ };
|
|
|
+
|
|
|
+ return (
|
|
|
+ <div className="flex flex-col h-full bg-neutral-900 border-2 border-black text-xs font-mono select-text">
|
|
|
+ {/* 1. 顶部控制工具栏 */}
|
|
|
+ <div className="bg-neutral-800 border-b-2 border-black p-2.5 flex flex-wrap items-center justify-between gap-2 text-white">
|
|
|
+ {/* 左侧:角色切换 & 状态指示 */}
|
|
|
+ <div className="flex items-center gap-2 flex-wrap">
|
|
|
+ <div className="flex items-center gap-1.5 px-2 py-1 bg-black border border-neutral-700">
|
|
|
+ <span
|
|
|
+ className={`w-2 h-2 rounded-full ${
|
|
|
+ isConnected
|
|
|
+ ? isPaused
|
|
|
+ ? 'bg-amber-400'
|
|
|
+ : 'bg-emerald-400 animate-pulse'
|
|
|
+ : 'bg-rose-500'
|
|
|
+ }`}
|
|
|
+ />
|
|
|
+ <span className="text-[11px] font-bold">
|
|
|
+ {isConnected
|
|
|
+ ? isPaused
|
|
|
+ ? '已暂停接收'
|
|
|
+ : '实时流已连接'
|
|
|
+ : errorMsg
|
|
|
+ ? '连接断开'
|
|
|
+ : '连接中...'}
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ {/* 角色选择器 */}
|
|
|
+ <div className="flex items-center bg-black border border-neutral-700">
|
|
|
+ <span className="px-2 text-[10px] text-neutral-400 font-bold uppercase">角色:</span>
|
|
|
+ <select
|
|
|
+ value={selectedRole}
|
|
|
+ onChange={(e) => setSelectedRole(e.target.value)}
|
|
|
+ className="bg-neutral-900 text-white text-xs px-2 py-1 border-0 focus:outline-hidden font-bold cursor-pointer"
|
|
|
+ >
|
|
|
+ {availableRoles.map((r) => (
|
|
|
+ <option key={r} value={r}>
|
|
|
+ {r.toUpperCase()}
|
|
|
+ </option>
|
|
|
+ ))}
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ {/* 分组筛选器 */}
|
|
|
+ {availableGroups.length > 0 && (
|
|
|
+ <div className="flex items-center bg-black border border-neutral-700">
|
|
|
+ <span className="px-2 text-[10px] text-neutral-400 font-bold uppercase">分组:</span>
|
|
|
+ <select
|
|
|
+ value={selectedGroup}
|
|
|
+ onChange={(e) => setSelectedGroup(e.target.value)}
|
|
|
+ className="bg-neutral-900 text-white text-xs px-2 py-1 border-0 focus:outline-hidden font-bold cursor-pointer"
|
|
|
+ >
|
|
|
+ <option value="">所有分组 (全部)</option>
|
|
|
+ {availableGroups.map((g) => (
|
|
|
+ <option key={g} value={g}>
|
|
|
+ {g}
|
|
|
+ </option>
|
|
|
+ ))}
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ )}
|
|
|
+
|
|
|
+ {/* 级别过滤器 */}
|
|
|
+ <div className="flex items-center bg-black border border-neutral-700 overflow-hidden">
|
|
|
+ {(['ALL', 'INFO', 'WARN', 'ERROR'] as const).map((lvl) => (
|
|
|
+ <button
|
|
|
+ key={lvl}
|
|
|
+ type="button"
|
|
|
+ onClick={() => setLevelFilter(lvl)}
|
|
|
+ className={`px-2 py-1 text-[10px] font-black transition ${
|
|
|
+ levelFilter === lvl
|
|
|
+ ? lvl === 'ERROR'
|
|
|
+ ? 'bg-rose-600 text-white'
|
|
|
+ : lvl === 'WARN'
|
|
|
+ ? 'bg-amber-500 text-black'
|
|
|
+ : 'bg-emerald-600 text-white'
|
|
|
+ : 'text-neutral-400 hover:text-white hover:bg-neutral-800'
|
|
|
+ }`}
|
|
|
+ >
|
|
|
+ {lvl}
|
|
|
+ </button>
|
|
|
+ ))}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ {/* 右侧:搜索与操作按钮 */}
|
|
|
+ <div className="flex items-center gap-2 flex-wrap">
|
|
|
+ {/* 搜索框 */}
|
|
|
+ <div className="relative flex items-center bg-black border border-neutral-700 px-2 py-0.5">
|
|
|
+ <Search size={12} className="text-neutral-400 mr-1.5 shrink-0" />
|
|
|
+ <input
|
|
|
+ type="text"
|
|
|
+ value={searchKeyword}
|
|
|
+ onChange={(e) => setSearchKeyword(e.target.value)}
|
|
|
+ placeholder="搜索日志关键字..."
|
|
|
+ className="bg-transparent text-white text-xs placeholder-neutral-500 focus:outline-hidden w-28 md:w-40"
|
|
|
+ />
|
|
|
+ {searchKeyword && (
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ onClick={() => setSearchKeyword('')}
|
|
|
+ className="text-neutral-400 hover:text-white ml-1 text-xs"
|
|
|
+ >
|
|
|
+ ×
|
|
|
+ </button>
|
|
|
+ )}
|
|
|
+ </div>
|
|
|
+
|
|
|
+ {/* 暂停/继续 */}
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ onClick={() => setIsPaused(!isPaused)}
|
|
|
+ className={`px-2 py-1 border border-black flex items-center gap-1 text-[11px] font-bold shadow-[1px_1px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition ${
|
|
|
+ isPaused
|
|
|
+ ? 'bg-emerald-400 text-black hover:bg-emerald-300'
|
|
|
+ : 'bg-amber-400 text-black hover:bg-amber-300'
|
|
|
+ }`}
|
|
|
+ title={isPaused ? '恢复接收' : '暂停接收'}
|
|
|
+ >
|
|
|
+ {isPaused ? <Play size={11} /> : <Pause size={11} />}
|
|
|
+ <span>{isPaused ? '继续' : '暂停'}</span>
|
|
|
+ </button>
|
|
|
+
|
|
|
+ {/* 自动滚屏开关 */}
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ onClick={() => setAutoScroll(!autoScroll)}
|
|
|
+ className={`px-2 py-1 border border-black text-[11px] font-bold shadow-[1px_1px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition ${
|
|
|
+ autoScroll
|
|
|
+ ? 'bg-cyan-400 text-black font-black'
|
|
|
+ : 'bg-neutral-700 text-neutral-300'
|
|
|
+ }`}
|
|
|
+ title="锁定自动滚动到底部"
|
|
|
+ >
|
|
|
+ 滚屏: {autoScroll ? '锁定' : '自由'}
|
|
|
+ </button>
|
|
|
+
|
|
|
+ {/* 清屏 */}
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ onClick={handleClearLogs}
|
|
|
+ className="p-1 border border-black bg-neutral-700 hover:bg-neutral-600 text-neutral-200 shadow-[1px_1px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition"
|
|
|
+ title="清空当前屏幕"
|
|
|
+ >
|
|
|
+ <Trash2 size={13} />
|
|
|
+ </button>
|
|
|
+
|
|
|
+ {/* 复制 */}
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ onClick={handleCopyLogs}
|
|
|
+ className="p-1 border border-black bg-neutral-700 hover:bg-neutral-600 text-neutral-200 shadow-[1px_1px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition"
|
|
|
+ title="复制全部可见日志"
|
|
|
+ >
|
|
|
+ {copied ? <Check size={13} className="text-emerald-400" /> : <Copy size={13} />}
|
|
|
+ </button>
|
|
|
+
|
|
|
+ {/* 重连 */}
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ onClick={startStream}
|
|
|
+ className="p-1 border border-black bg-neutral-700 hover:bg-neutral-600 text-neutral-200 shadow-[1px_1px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition"
|
|
|
+ title="刷新/重新连接日志流"
|
|
|
+ >
|
|
|
+ <RefreshCw size={13} />
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ {/* 2. 终端主体输出区 */}
|
|
|
+ <div
|
|
|
+ ref={terminalBodyRef}
|
|
|
+ onScroll={handleScroll}
|
|
|
+ className="flex-1 overflow-y-auto p-3.5 space-y-1 bg-[#0d1117] text-neutral-200 font-mono text-[11px] leading-relaxed relative min-h-[360px] max-h-[560px]"
|
|
|
+ >
|
|
|
+ {filteredLogs.length === 0 ? (
|
|
|
+ <div className="h-full flex flex-col items-center justify-center text-neutral-500 py-16">
|
|
|
+ <Terminal size={36} className="text-neutral-600 mb-2 animate-pulse" />
|
|
|
+ <p className="font-bold text-xs uppercase tracking-wider text-neutral-400">
|
|
|
+ [ 暂无匹配运行日志 // NO LOGS AVAILABLE ]
|
|
|
+ </p>
|
|
|
+ <p className="text-[10px] text-neutral-600 mt-1">
|
|
|
+ 管道监听中: <code>vs:stream:logs:{nodeId}:{selectedRole}</code>
|
|
|
+ </p>
|
|
|
+ {errorMsg && (
|
|
|
+ <p className="text-rose-400 text-xs mt-3 flex items-center gap-1">
|
|
|
+ <AlertCircle size={13} />
|
|
|
+ <span>{errorMsg}</span>
|
|
|
+ </p>
|
|
|
+ )}
|
|
|
+ </div>
|
|
|
+ ) : (
|
|
|
+ filteredLogs.map((log, idx) => {
|
|
|
+ const lvl = (log.level || 'INFO').toUpperCase();
|
|
|
+ const isError = lvl === 'ERROR';
|
|
|
+ const isWarn = lvl === 'WARN' || lvl === 'WARNING';
|
|
|
+
|
|
|
+ return (
|
|
|
+ <div
|
|
|
+ key={log.id ? `${log.id}-${idx}` : idx}
|
|
|
+ className={`flex items-start gap-2 py-0.5 hover:bg-neutral-800/60 rounded-xs px-1.5 transition ${
|
|
|
+ isError
|
|
|
+ ? 'text-rose-300 bg-rose-950/20'
|
|
|
+ : isWarn
|
|
|
+ ? 'text-amber-200 bg-amber-950/20'
|
|
|
+ : 'text-neutral-300'
|
|
|
+ }`}
|
|
|
+ >
|
|
|
+ {/* 时间戳 */}
|
|
|
+ <span className="text-neutral-500 shrink-0 select-none">
|
|
|
+ {log.timestamp ? log.timestamp.split(' ')[1] || log.timestamp : '--:--:--'}
|
|
|
+ </span>
|
|
|
+
|
|
|
+ {/* 级别 Badge */}
|
|
|
+ <span
|
|
|
+ className={`px-1 py-0.2 rounded-2xs text-[9px] font-black uppercase shrink-0 ${
|
|
|
+ isError
|
|
|
+ ? 'bg-rose-700 text-white'
|
|
|
+ : isWarn
|
|
|
+ ? 'bg-amber-500 text-black'
|
|
|
+ : 'bg-neutral-800 text-emerald-400 border border-emerald-900/60'
|
|
|
+ }`}
|
|
|
+ >
|
|
|
+ {lvl}
|
|
|
+ </span>
|
|
|
+
|
|
|
+ {/* Group 标识 (若有) */}
|
|
|
+ {log.group_id && (
|
|
|
+ <span className="px-1 py-0.2 rounded-2xs text-[9px] font-mono font-bold bg-cyan-950 text-cyan-300 border border-cyan-800 shrink-0">
|
|
|
+ {log.group_id}
|
|
|
+ </span>
|
|
|
+ )}
|
|
|
+
|
|
|
+ {/* 日志内容 */}
|
|
|
+ <span className="break-all whitespace-pre-wrap flex-1">
|
|
|
+ {renderMessageWithHighlight(log.message)}
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+ })
|
|
|
+ )}
|
|
|
+
|
|
|
+ {/* 浮动置底按钮 */}
|
|
|
+ {hasNewUnread && (
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ onClick={scrollToBottom}
|
|
|
+ className="sticky bottom-2 left-1/2 -translate-x-1/2 bg-cyan-400 text-black border border-black font-black text-xs px-3 py-1.5 rounded-full shadow-[2px_2px_0px_#000] flex items-center gap-1.5 animate-bounce z-10"
|
|
|
+ >
|
|
|
+ <ArrowDown size={12} />
|
|
|
+ <span>有最新日志 · 点击置底</span>
|
|
|
+ </button>
|
|
|
+ )}
|
|
|
+ </div>
|
|
|
+
|
|
|
+ {/* 3. 底部状态指示栏 */}
|
|
|
+ <div className="bg-neutral-950 border-t border-neutral-800 px-3 py-1 flex items-center justify-between text-[10px] text-neutral-400">
|
|
|
+ <div className="flex items-center gap-3">
|
|
|
+ <span>
|
|
|
+ 通道: <code>vs:stream:logs:{nodeId}:{selectedRole}</code>
|
|
|
+ </span>
|
|
|
+ <span>总缓冲: {logs.length} 条</span>
|
|
|
+ {searchKeyword && (
|
|
|
+ <span className="text-amber-400 font-bold">
|
|
|
+ 筛选匹配: {filteredLogs.length} 条
|
|
|
+ </span>
|
|
|
+ )}
|
|
|
+ </div>
|
|
|
+ <div className="flex items-center gap-2">
|
|
|
+ <span>自动置底: {autoScroll ? '已启用' : '暂停'}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+}
|