118 lines
8.4 KiB
HTML
118 lines
8.4 KiB
HTML
<!DOCTYPE html>
|
||
<!-- Дизайн: Стандартный дизайн. Сохраняй все пять CSS; подробности в design.md. -->
|
||
<html lang="ru" data-theme="light">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||
<title>Общая папка — сетевое хранилище</title>
|
||
<link rel="manifest" href="manifest.webmanifest">
|
||
<meta name="theme-color" content="#3ba6f1">
|
||
<link rel="icon" href="icon.svg" type="image/svg+xml">
|
||
<link rel="apple-touch-icon" href="icon.svg">
|
||
<link rel="stylesheet" href="design-system/kt-ai-fonts.css">
|
||
<link rel="stylesheet" href="design-system/kt-ai-tokens.css">
|
||
<link rel="stylesheet" href="design-system/kt-ai-components.css">
|
||
<link rel="stylesheet" href="design-system/kt-ai-page.css">
|
||
<link rel="stylesheet" href="design-system/vibe-theme.css">
|
||
<style>
|
||
a.kt-ai-btn { text-decoration: none; }
|
||
.file-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: var(--kt-ai-radius-lg); background: var(--kt-ai-bg-soft); color: var(--kt-ai-fg-muted); }
|
||
.file-ic-lg { width: 40px; height: 40px; }
|
||
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: var(--kt-ai-space-3) var(--kt-ai-space-1); font-style: normal; }
|
||
.drop-hint { position: fixed; inset: 12px; z-index: 90; display: none; align-items: center; justify-content: center; pointer-events: none; background: color-mix(in srgb, var(--kt-ai-primary) 10%, transparent); border: 2px dashed var(--kt-ai-primary); border-radius: var(--kt-ai-radius-3xl); font-size: var(--kt-ai-text-lg); font-weight: 600; color: var(--kt-ai-fg); }
|
||
.drop-hint::before { content: ""; display: none; }
|
||
.drop-hint.show { display: flex; }
|
||
.gt-sec { margin-bottom: var(--kt-ai-stack-group); }
|
||
.gt-sec strong { display: block; margin-bottom: var(--kt-ai-space-3); font-size: var(--kt-ai-text-md); }
|
||
.gt-list { margin: 0; padding-left: var(--kt-ai-space-6); font-size: var(--kt-ai-text-sm); color: var(--kt-ai-fg-muted); line-height: 1.7; }
|
||
.gt-list li { margin-bottom: var(--kt-ai-space-2); }
|
||
.gt-list b { color: var(--kt-ai-fg); }
|
||
</style>
|
||
</head>
|
||
<body class="kt-ai-app">
|
||
<svg style="display:none" xmlns="http://www.w3.org/2000/svg">
|
||
<use href="">
|
||
<symbol id="file" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><path d="M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"/><path d="M14 3v6h6"/></symbol>
|
||
<symbol id="download" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v12m0 0 4-4m-4 4-4-4M4 21h16"/></symbol>
|
||
<symbol id="upload" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><path d="M12 15V3m0 0 4 4m-4-4-4 4M4 21h16"/></symbol>
|
||
<symbol id="plus" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5v14M5 12h14"/></symbol>
|
||
<symbol id="search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/></symbol>
|
||
<symbol id="trash" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><path d="M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3"/></symbol>
|
||
<symbol id="x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18M6 6l12 12"/></symbol>
|
||
<symbol id="check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 7"/></symbol>
|
||
<symbol id="users" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="8" r="3.5"/><path d="M2.5 20c0-3.6 2.9-5.5 6.5-5.5s6.5 1.9 6.5 5.5M16 4.6a3.5 3.5 0 0 1 0 6.8M17.5 14.7c2.4.5 4 2.2 4 5.3"/></symbol>
|
||
<symbol id="database" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="8" ry="3"/><path d="M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3"/></symbol>
|
||
<symbol id="history" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 1 0 3-6.7L3 8"/><path d="M3 4v4h4M12 8v4l3 2"/></symbol>
|
||
<symbol id="help" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M9.5 9a2.5 2.5 0 1 1 3.4 2.3c-.8.3-.9 1-.9 1.7"/><path d="M12 17h.01"/></symbol>
|
||
<symbol id="menu" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.575" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18M3 12h18M3 18h18"/></symbol>
|
||
</svg>
|
||
|
||
<div class="kt-ai-shell">
|
||
<aside class="kt-ai-sidebar" id="sidebar" style="display:flex;flex-direction:column;padding:14px 10px;gap:2px">
|
||
<div class="sb-top" style="display:flex;align-items:center;gap:var(--kt-ai-space-3);padding:4px 10px 12px">
|
||
<img src="icon.svg" alt="" style="width:24px;height:24px;flex-shrink:0">
|
||
<span class="nm nav-label" style="font-weight:600;font-size:var(--kt-ai-text-md)">Общая папка</span>
|
||
</div>
|
||
<nav aria-label="Разделы" style="display:flex;flex-direction:column;gap:2px">
|
||
<button class="kt-ai-nav-item" data-active="true" onclick="S.filterType('')">
|
||
<svg class="kt-icon"><use href="#package"></use></svg>
|
||
<span class="nav-label">Все файлы</span>
|
||
<span class="count" id="countAll">
|
||
</button>
|
||
<button class="kt-ai-nav-item" data-kind="doc" onclick="S.filterType('doc')">
|
||
<svg class="kt-icon"><use href="#file"></use></svg>
|
||
<span class="nav-label">Документы</span>
|
||
</button>
|
||
<button class="kt-ai-nav-item" data-kind="sheet" onclick="S.filterType('sheet')">
|
||
<svg class="kt-icon"><use href="#file"></use></svg>
|
||
<span class="nav-label">Таблицы</span>
|
||
</button>
|
||
<button class="kt-ai-nav-item" data-kind="media" onclick="S.filterType('media')">
|
||
<svg class="kt-icon"><use href="#file"></use></svg>
|
||
<span class="nav-label">Медиа</span>
|
||
</button>
|
||
<button class="kt-ai-nav-item" data-kind="archive" onclick="S.filterType('archive')">
|
||
<svg class="kt-icon"><use href="#database"></use></svg>
|
||
<span class="nav-label">Архивы</span>
|
||
</button>
|
||
</nav>
|
||
<div class="sb-bottom" style="margin-top:auto;display:flex;flex-direction:column;gap:2px">
|
||
<button class="kt-ai-nav-item" onclick="S.guide()">
|
||
<svg class="kt-icon"><use href="#help"></use></svg>
|
||
<span class="nav-label">Подсказка</span>
|
||
</button>
|
||
</div>
|
||
</aside>
|
||
|
||
<main style="min-height:100dvh;display:flex;flex-direction:column">
|
||
<header class="kt-ai-topbar">
|
||
<button class="kt-ai-icon-button" aria-label="Меню" onclick="S.toggleSidebar()">
|
||
<svg class="kt-icon"><use href="#menu"></use></svg>
|
||
</button>
|
||
<nav class="topbar-crumb"><span>Общая папка</span></nav>
|
||
<div class="spacer"></div>
|
||
<div class="kt-ai-search-field">
|
||
<input class="kt-ai-search" id="topSearch" placeholder="Поиск по имени файла…">
|
||
</div>
|
||
<button class="kt-ai-btn" data-variant="primary" onclick="S.pickFiles()">
|
||
<svg class="kt-icon kt-icon-sm"><use href="#upload"></use></svg>Загрузить
|
||
</button>
|
||
</header>
|
||
|
||
<div id="view"></div>
|
||
</main>
|
||
</div>
|
||
|
||
<input type="file" id="fileInput" multiple hidden>
|
||
<div id="dropHint" class="drop-hint">Отпустите файлы, чтобы загрузить</div>
|
||
|
||
<div class="kt-ai-drawer" id="drawer" role="dialog" aria-modal="true" aria-labelledby="drawerTitle" tabindex="-1" style="display:none"></div>
|
||
<div class="kt-ai-modal-overlay" id="modalOverlay" style="display:none" onclick="if(event.target===this)S.closeModal()"></div>
|
||
<div id="modalBox" class="kt-ai-modal" style="display:none;position:fixed;z-index:51"></div>
|
||
|
||
<div class="kt-ai-toast-stack" id="toasts" role="status" aria-live="polite"></div>
|
||
|
||
<script src="script.js"></script>
|
||
</body>
|
||
</html>
|