Optimize
This commit is contained in:
1 parent
76de333507
commit
da1d5a5b63
6 files changed
+17
-6
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useState, useRef } from 'react';
|
||||
import { io, Socket } from 'socket.io-client';
|
||||
import { Download, Sparkles, Play, Pause, CircleCheck, Terminal } from 'lucide-react';
|
||||
import { Download, Sparkles, Play, Pause, Terminal } from 'lucide-react';
|
||||
import type { LogService } from '../types';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React from 'react';
|
||||
|
||||
|
||||
export const DockerIcon = ({ size = 24, className = "" }: { size?: number, className?: string }) => (
|
||||
<svg
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { PlusCircle, Clock, Server, HardDrive, LayoutGrid, Search, SearchX, Globe, ChevronRight } from 'lucide-react';
|
||||
import { PlusCircle, Clock, Server, LayoutGrid, Search, SearchX, Globe, ChevronRight } from 'lucide-react';
|
||||
import AddServiceModal from '../components/AddServiceModal';
|
||||
import type { LogService } from '../types';
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useNavigate, useParams, useLocation, Link } from 'react-router-dom';
|
||||
import { ArrowLeft, Server, HardDrive, Trash2, Save, Check, Pencil, X } from 'lucide-react';
|
||||
import { ArrowLeft, Server, Trash2, Save, Check, Pencil, X } from 'lucide-react';
|
||||
import type { LogService } from '../types';
|
||||
import LogTerminal from '../components/LogTerminal';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Card, CardContent, CardHeader } from '@/components/ui/card';
|
||||
import { Separator } from '@/components/ui/separator';
|
||||
import { DockerIcon } from '../components/icons/DockerIcon';
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
},
|
||||
|
||||
@@ -11,4 +11,16 @@ export default defineConfig({
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
if (id.includes('node_modules')) {
|
||||
return 'vendor';
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
chunkSizeWarningLimit: 1000,
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user