/
mkudmi
/
RUF-API-Platform
Обзор
Документация
Войти
/
mkudmi
/
RUF-API-Platform
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
github
src/shared/icons.tsx
426 строк
12 KB
mkudmi
feat: add CA certificate management and general settings panel
27 фев 2026, 13:30
27 фев 2026, 13:30
097f944
Код
Авторство
О чём код?
export function CopyIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M9 9h10v12H9V9Z" stroke="currentColor" strokeWidth="2" strokeLinejoin="round" /> <path d="M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> </svg> ) } export function CloseIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M6 6l12 12" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M18 6L6 18" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> </svg> ) } export function BackIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M19 12H6" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M11 7 6 12l5 5" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /> </svg> ) } export function MinimizeIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M5 12h14" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> </svg> ) } export function MaximizeIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <rect x="5" y="5" width="14" height="14" rx="1.5" stroke="currentColor" strokeWidth="2" /> </svg> ) } export function TrashIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M5 7h14" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M10 11v7" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M14 11v7" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M9 7l1-2h4l1 2" stroke="currentColor" strokeWidth="2" strokeLinejoin="round" /> <path d="M7 7l1 14h8l1-14" stroke="currentColor" strokeWidth="2" strokeLinejoin="round" /> </svg> ) } export function BroomIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="144 144 512 512" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="m610.24 166.14c-3.0742-3.0742-8.0586-3.0742-11.133 0l-233.92 233.92c-71.348 0.49219-139.61 29.148-189.93 79.727l-9.1094 9.1094c-3.0742 3.0742-3.0742 8.0547 0 11.129l133.82 133.82c2.9727 2.9727 7.7539 3.0898 10.863 0.26172 27.77-25.301 50.016-56.062 65.348-90.355 15.332-34.293 23.418-71.387 23.754-108.95l233.92-233.92c3.0742-3.0742 3.0742-8.0547 0-11.129zm-230.32 312.85-58.883-58.883c14.594-2.707 29.391-4.168 44.23-4.3711l18.988 18.996c-0.15625 14.852-1.6055 29.656-4.3359 44.258zm-7.8711 31.488-82.531-82.531c4.375-1.3945 8.7852-2.6992 13.242-3.8555l73.156 73.156c-1.168 4.4492-2.4375 8.875-3.8359 13.262zm-66.359 106.82-8.7031-8.6953 29.859-29.859-11.133-11.133-29.855 29.863-12.488-12.484 29.859-29.859-11.133-11.133-29.855 29.859-12.484-12.484 29.859-29.859-11.133-11.133-29.859 29.859-12.484-12.484 29.859-29.859-11.133-11.133-29.855 29.863-12.488-12.484 29.859-29.859-11.129-11.133-29.859 29.859-8.5508-8.5508 3.543-3.543v0.003906c24.707-24.762 54.23-44.188 86.75-57.074l93.016 93.016c-13.449 34.129-34.055 64.977-60.434 90.465zm86.438-196.95-12.484-12.484 12.484-12.484 12.488 12.484zm23.617-23.617-12.484-12.484 201.41-201.41 12.484 12.484z" fill="currentColor" /> </svg> ) } export function PencilIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M4 20h4l10.5-10.5a1.8 1.8 0 0 0 0-2.5l-1.5-1.5a1.8 1.8 0 0 0-2.5 0L4 16v4Z" stroke="currentColor" strokeWidth="2" strokeLinejoin="round" /> <path d="m13.5 6.5 4 4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> </svg> ) } export function StarIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M12 2C13.6 7.7 16.3 10.4 22 12C16.3 13.6 13.6 16.3 12 22C10.4 16.3 7.7 13.6 2 12C7.7 10.4 10.4 7.7 12 2Z" stroke="currentColor" strokeWidth="2" strokeLinejoin="round" /> </svg> ) } export function ReloadIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M21 12a9 9 0 1 1-2.64-6.36" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M21 5v5h-5" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /> </svg> ) } export function SearchIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z" stroke="currentColor" strokeWidth="2" /> <path d="M16.5 16.5 21 21" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> </svg> ) } export function SchemaIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M8 5H6a2 2 0 0 0-2 2v2" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M16 5h2a2 2 0 0 1 2 2v2" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M8 19H6a2 2 0 0 1-2-2v-2" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M16 19h2a2 2 0 0 0 2-2v-2" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M9 11h6" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M9 15h6" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> </svg> ) } export function SqlIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <ellipse cx="12" cy="6" rx="7" ry="3" stroke="currentColor" strokeWidth="2" /> <path d="M5 6v6c0 1.7 3.1 3 7 3s7-1.3 7-3V6" stroke="currentColor" strokeWidth="2" /> <path d="M5 12v6c0 1.7 3.1 3 7 3s7-1.3 7-3v-6" stroke="currentColor" strokeWidth="2" /> </svg> ) } export function FoldersExpandIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M3 8h7l2 2h9v9H3V8Z" stroke="currentColor" strokeWidth="2" strokeLinejoin="round" /> <path d="M12 12v5" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M9.5 14.5h5" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> </svg> ) } export function FoldersCollapseIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M3 8h7l2 2h9v9H3V8Z" stroke="currentColor" strokeWidth="2" strokeLinejoin="round" /> <path d="M9.5 14.5h5" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> </svg> ) } export function SortNeutralIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M8 5v14m0 0-2.5-2.5M8 19l2.5-2.5" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /> <path d="M16 19V5m0 0-2.5 2.5M16 5l2.5 2.5" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /> </svg> ) } export function SortAscIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M8 19V5m0 0-2.5 2.5M8 5l2.5 2.5" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /> <path d="M14 10h6" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M14 15h4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> </svg> ) } export function SortDescIcon(props: { size?: number }) { const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" > <path d="M8 5v14m0 0-2.5-2.5M8 19l2.5-2.5" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /> <path d="M14 10h4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> <path d="M14 15h6" stroke="currentColor" strokeWidth="2" strokeLinecap="round" /> </svg> ) } export function SqlTerminalPositionIcon(props: { left: boolean; size?: number }) { const { left } = props const size = props.size ?? 16 return ( <svg width={size} height={size} viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> <rect x="1.5" y="1.5" width="13" height="13" rx="2" stroke="currentColor" strokeWidth="1.2" opacity="0.9" /> {left ? ( <> <rect x="2.6" y="2.6" width="4.2" height="10.8" rx="0.8" fill="currentColor" opacity="0.9" /> <path d="M10.7 8h2.7M11.8 6.9 10.7 8l1.1 1.1" stroke="currentColor" strokeWidth="1.2" strokeLinecap="round" strokeLinejoin="round" /> </> ) : ( <> <rect x="2.6" y="9.2" width="10.8" height="4.2" rx="0.8" fill="currentColor" opacity="0.9" /> <path d="M8 5.3V2.6M6.9 4.2 8 5.3l1.1-1.1" stroke="currentColor" strokeWidth="1.2" strokeLinecap="round" strokeLinejoin="round" /> </> )} </svg> ) }