refactor(ServerManager, ServerCard): remove unused icons and streamline server card layout; enhance button styles and improve responsiveness
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m38s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m38s
This commit is contained in:
@@ -19,7 +19,6 @@ import {
|
||||
IconAlertTriangle,
|
||||
IconServer,
|
||||
IconChevronDown,
|
||||
IconLink,
|
||||
IconFilter,
|
||||
IconMapPin,
|
||||
IconWorld,
|
||||
@@ -27,11 +26,9 @@ import {
|
||||
IconLayoutGrid,
|
||||
IconNetwork,
|
||||
IconGitBranch,
|
||||
IconCopy,
|
||||
IconSquare,
|
||||
IconSquareCheck,
|
||||
IconChevronRight,
|
||||
IconSettings
|
||||
IconChevronRight
|
||||
} from '@tabler/icons-react';
|
||||
import GraphView from './GraphView';
|
||||
import {
|
||||
@@ -659,17 +656,6 @@ function ServerManager() {
|
||||
</div>
|
||||
|
||||
{/* Actions */}
|
||||
<div className="dropdown">
|
||||
<button className="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown">
|
||||
<IconSettings size={16} className="me-1" />
|
||||
Профили
|
||||
</button>
|
||||
<div className="dropdown-menu">
|
||||
{Object.keys(presets).map(key => (
|
||||
<button key={key} className="dropdown-item" type="button" onClick={() => applyPreset(key)}>{key}</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" className="btn btn-outline-secondary" onClick={exportAllLinks} disabled={servers.length === 0}>
|
||||
<IconDownload size={16} className="me-1" /> Экспорт
|
||||
</button>
|
||||
@@ -795,8 +781,6 @@ function ServerManager() {
|
||||
onSelect={toggleServerSelection}
|
||||
onEdit={handleEdit}
|
||||
onDelete={confirmDelete}
|
||||
onGenerateLink={handleGenerateLink}
|
||||
onQuickCopy={quickCopyLink}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
@@ -865,14 +849,12 @@ function ServerManager() {
|
||||
<td><span className="badge bg-green-lt text-green">{server.tunnel}</span></td>
|
||||
<td className="text-end">
|
||||
<div className="btn-list gap-1 mb-0 justify-content-end">
|
||||
<button className="btn btn-ghost-primary btn-icon btn-sm" title="Скопировать ссылку" onClick={() => quickCopyLink(server)}>
|
||||
<IconCopy size={16} />
|
||||
<button className="btn btn-outline-secondary btn-sm" title="Редактировать" onClick={() => handleEdit(server)}>
|
||||
<IconEdit size={14} className="me-1" />
|
||||
Изменить
|
||||
</button>
|
||||
<button className="btn btn-ghost-secondary btn-icon btn-sm" title="Редактировать" onClick={() => handleEdit(server)}>
|
||||
<IconEdit size={16} />
|
||||
</button>
|
||||
<button className="btn btn-ghost-danger btn-icon btn-sm" title="Удалить" onClick={() => confirmDelete(server)}>
|
||||
<IconTrash size={16} />
|
||||
<button className="btn btn-outline-danger btn-icon btn-sm" title="Удалить" onClick={() => confirmDelete(server)}>
|
||||
<IconTrash size={14} />
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user