Download index.html from adasand/wdev: direct link, hf CLI and curl.
- Browser
- Download file 51.6 kB
-
https://huggingface.co/spaces/adasand/wdev/resolve/main/index.html
- Command line
-
hf download hf://spaces/adasand/wdev/index.html
-
curl -L -o index.html https://huggingface.co/spaces/adasand/wdev/resolve/main/index.html
51.6 kB
| <html lang="ru"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Wildberries Analytics Platform</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .chart-container { | |
| height: 400px; | |
| } | |
| .report-builder { | |
| min-height: 500px; | |
| border: 2px dashed #e2e8f0; | |
| transition: all 0.3s ease; | |
| } | |
| .report-builder:hover { | |
| border-color: #818cf8; | |
| } | |
| .draggable-widget { | |
| cursor: grab; | |
| transition: all 0.2s ease; | |
| } | |
| .draggable-widget:active { | |
| cursor: grabbing; | |
| } | |
| .draggable-widget:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| .widget-placeholder { | |
| border: 2px dashed #818cf8; | |
| background-color: rgba(129, 140, 248, 0.1); | |
| } | |
| .api-response { | |
| max-height: 300px; | |
| overflow-y: auto; | |
| } | |
| .dark .dark\:bg-gray-800 { | |
| background-color: #1e293b; | |
| } | |
| .dark .dark\:text-white { | |
| color: #ffffff; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 dark:bg-gray-900"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="sidebar w-64 bg-white dark:bg-gray-800 shadow-lg flex-shrink-0"> | |
| <div class="p-4 border-b border-gray-200 dark:border-gray-700"> | |
| <div class="flex items-center"> | |
| <img src="https://via.placeholder.com/40" alt="Logo" class="h-8 w-8 mr-2"> | |
| <h1 class="text-xl font-bold text-gray-800 dark:text-white">WB Analytics</h1> | |
| </div> | |
| </div> | |
| <nav class="p-4"> | |
| <div class="mb-6"> | |
| <h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2 dark:text-gray-400">Основное</h3> | |
| <ul> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 text-purple-700 dark:text-purple-400 bg-purple-50 dark:bg-gray-700 rounded-lg"> | |
| <i class="fas fa-chart-line mr-3"></i> | |
| <span>Дашборд</span> | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg"> | |
| <i class="fas fa-shopping-bag mr-3"></i> | |
| <span>Товары</span> | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg"> | |
| <i class="fas fa-truck mr-3"></i> | |
| <span>Поставки</span> | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg"> | |
| <i class="fas fa-file-invoice-dollar mr-3"></i> | |
| <span>Финансы</span> | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2 dark:text-gray-400">Отчеты</h3> | |
| <ul> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg"> | |
| <i class="fas fa-file-alt mr-3"></i> | |
| <span>Стандартные</span> | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg"> | |
| <i class="fas fa-magic mr-3"></i> | |
| <span>Конструктор</span> | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg"> | |
| <i class="fas fa-history mr-3"></i> | |
| <span>История</span> | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2 dark:text-gray-400">Настройки</h3> | |
| <ul> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg"> | |
| <i class="fas fa-plug mr-3"></i> | |
| <span>API ключи</span> | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg"> | |
| <i class="fas fa-user-cog mr-3"></i> | |
| <span>Профиль</span> | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 overflow-auto"> | |
| <!-- Header --> | |
| <header class="bg-white dark:bg-gray-800 shadow-sm"> | |
| <div class="flex items-center justify-between p-4"> | |
| <div class="flex items-center"> | |
| <button class="mr-4 text-gray-500 dark:text-gray-300"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| <h2 class="text-xl font-semibold text-gray-800 dark:text-white">Конструктор отчетов</h2> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <input type="text" placeholder="Поиск..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white"> | |
| <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> | |
| </div> | |
| <button class="p-2 text-gray-500 hover:text-gray-700 dark:text-gray-300 dark:hover:text-white"> | |
| <i class="fas fa-bell"></i> | |
| </button> | |
| <div class="flex items-center"> | |
| <img src="https://via.placeholder.com/40" alt="User" class="h-8 w-8 rounded-full mr-2"> | |
| <span class="text-gray-700 dark:text-white">Иван Иванов</span> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Content --> | |
| <main class="p-6"> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> | |
| <!-- API Connection Panel --> | |
| <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h3 class="text-lg font-semibold text-gray-800 dark:text-white">Подключение к API Wildberries</h3> | |
| <span class="bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded-full dark:bg-green-900 dark:text-green-300">Активно</span> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="api-key" class="block mb-2 text-sm font-medium text-gray-700 dark:text-gray-300">API ключ</label> | |
| <div class="relative"> | |
| <input type="password" id="api-key" value="wb_1234567890abcdef" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-purple-500 focus:border-purple-500 block w-full p-2.5 pr-10 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white" readonly> | |
| <button onclick="toggleApiKeyVisibility()" class="absolute right-2.5 bottom-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-white"> | |
| <i class="fas fa-eye"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="api-url" class="block mb-2 text-sm font-medium text-gray-700 dark:text-gray-300">URL API</label> | |
| <input type="text" id="api-url" value="https://suppliers-api.wildberries.ru" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-purple-500 focus:border-purple-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white" readonly> | |
| </div> | |
| <div class="flex justify-between"> | |
| <button onclick="testApiConnection()" class="text-white bg-purple-700 hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 font-medium rounded-lg text-sm px-5 py-2.5 dark:bg-purple-600 dark:hover:bg-purple-700 focus:outline-none dark:focus:ring-purple-800"> | |
| Проверить соединение | |
| </button> | |
| <button onclick="showApiDocumentation()" class="text-purple-700 hover:text-white border border-purple-700 hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:border-purple-500 dark:text-purple-500 dark:hover:text-white dark:hover:bg-purple-600 dark:focus:ring-purple-900"> | |
| Документация API | |
| </button> | |
| </div> | |
| </div> | |
| <!-- API Response Preview --> | |
| <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6 col-span-2"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h3 class="text-lg font-semibold text-gray-800 dark:text-white">Пример ответа API</h3> | |
| <div class="flex space-x-2"> | |
| <button onclick="loadSampleData('sales')" class="text-xs bg-gray-100 hover:bg-gray-200 text-gray-800 font-medium px-3 py-1 rounded dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600"> | |
| Продажи | |
| </button> | |
| <button onclick="loadSampleData('stocks')" class="text-xs bg-gray-100 hover:bg-gray-200 text-gray-800 font-medium px-3 py-1 rounded dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600"> | |
| Остатки | |
| </button> | |
| <button onclick="loadSampleData('orders')" class="text-xs bg-gray-100 hover:bg-gray-200 text-gray-800 font-medium px-3 py-1 rounded dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600"> | |
| Заказы | |
| </button> | |
| </div> | |
| </div> | |
| <div class="api-response bg-gray-50 dark:bg-gray-700 p-4 rounded-lg"> | |
| <pre class="text-xs text-gray-800 dark:text-gray-300" id="api-response-content">Выберите тип данных для загрузки...</pre> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Report Builder Section --> | |
| <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6 mb-6"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-800 dark:text-white">Конструктор отчета</h3> | |
| <div class="flex space-x-3"> | |
| <button onclick="saveReport()" class="text-white bg-purple-700 hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-purple-600 dark:hover:bg-purple-700 focus:outline-none dark:focus:ring-purple-800"> | |
| <i class="fas fa-save mr-2"></i> Сохранить | |
| </button> | |
| <button onclick="exportReport()" class="text-purple-700 hover:text-white border border-purple-700 hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 font-medium rounded-lg text-sm px-4 py-2 text-center dark:border-purple-500 dark:text-purple-500 dark:hover:text-white dark:hover:bg-purple-600 dark:focus:ring-purple-900"> | |
| <i class="fas fa-file-export mr-2"></i> Экспорт | |
| </button> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 lg:grid-cols-4 gap-6"> | |
| <!-- Widgets Panel --> | |
| <div class="bg-gray-50 dark:bg-gray-700 rounded-lg p-4"> | |
| <h4 class="text-sm font-semibold text-gray-700 dark:text-gray-300 mb-3">Доступные виджеты</h4> | |
| <div class="space-y-3"> | |
| <div draggable="true" ondragstart="drag(event)" data-widget-type="chart-line" class="draggable-widget bg-white dark:bg-gray-600 p-3 rounded-lg shadow-sm cursor-move"> | |
| <div class="flex items-center"> | |
| <div class="bg-purple-100 dark:bg-purple-900 p-2 rounded-lg mr-3"> | |
| <i class="fas fa-chart-line text-purple-600 dark:text-purple-300"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-700 dark:text-gray-300">Линейный график</span> | |
| </div> | |
| </div> | |
| <div draggable="true" ondragstart="drag(event)" data-widget-type="chart-bar" class="draggable-widget bg-white dark:bg-gray-600 p-3 rounded-lg shadow-sm cursor-move"> | |
| <div class="flex items-center"> | |
| <div class="bg-blue-100 dark:bg-blue-900 p-2 rounded-lg mr-3"> | |
| <i class="fas fa-chart-bar text-blue-600 dark:text-blue-300"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-700 dark:text-gray-300">Столбчатая диаграмма</span> | |
| </div> | |
| </div> | |
| <div draggable="true" ondragstart="drag(event)" data-widget-type="chart-pie" class="draggable-widget bg-white dark:bg-gray-600 p-3 rounded-lg shadow-sm cursor-move"> | |
| <div class="flex items-center"> | |
| <div class="bg-green-100 dark:bg-green-900 p-2 rounded-lg mr-3"> | |
| <i class="fas fa-chart-pie text-green-600 dark:text-green-300"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-700 dark:text-gray-300">Круговая диаграмма</span> | |
| </div> | |
| </div> | |
| <div draggable="true" ondragstart="drag(event)" data-widget-type="table" class="draggable-widget bg-white dark:bg-gray-600 p-3 rounded-lg shadow-sm cursor-move"> | |
| <div class="flex items-center"> | |
| <div class="bg-yellow-100 dark:bg-yellow-900 p-2 rounded-lg mr-3"> | |
| <i class="fas fa-table text-yellow-600 dark:text-yellow-300"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-700 dark:text-gray-300">Таблица данных</span> | |
| </div> | |
| </div> | |
| <div draggable="true" ondragstart="drag(event)" data-widget-type="kpi" class="draggable-widget bg-white dark:bg-gray-600 p-3 rounded-lg shadow-sm cursor-move"> | |
| <div class="flex items-center"> | |
| <div class="bg-red-100 dark:bg-red-900 p-2 rounded-lg mr-3"> | |
| <i class="fas fa-tachometer-alt text-red-600 dark:text-red-300"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-700 dark:text-gray-300">KPI метрика</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Report Builder Area --> | |
| <div class="report-builder bg-gray-50 dark:bg-gray-700 rounded-lg p-4 col-span-3" id="report-builder" ondrop="drop(event)" ondragover="allowDrop(event)"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h4 class="text-sm font-semibold text-gray-700 dark:text-gray-300">Рабочая область</h4> | |
| <div class="flex space-x-2"> | |
| <button onclick="clearReport()" class="text-xs bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium px-3 py-1 rounded dark:bg-gray-600 dark:text-gray-300 dark:hover:bg-gray-500"> | |
| <i class="fas fa-trash-alt mr-1"></i> Очистить | |
| </button> | |
| <button onclick="addSection()" class="text-xs bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium px-3 py-1 rounded dark:bg-gray-600 dark:text-gray-300 dark:hover:bg-gray-500"> | |
| <i class="fas fa-plus mr-1"></i> Раздел | |
| </button> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4" id="report-content"> | |
| <!-- Placeholder when empty --> | |
| <div class="col-span-2 flex flex-col items-center justify-center py-12 text-center" id="empty-placeholder"> | |
| <i class="fas fa-magic text-4xl text-gray-300 mb-4"></i> | |
| <h4 class="text-lg font-medium text-gray-500 mb-2">Пустой отчет</h4> | |
| <p class="text-sm text-gray-400 max-w-md">Перетащите виджеты из панели слева или нажмите "Добавить раздел"</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Report Settings --> | |
| <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6"> | |
| <h3 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">Настройки отчета</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div> | |
| <label for="report-name" class="block mb-2 text-sm font-medium text-gray-700 dark:text-gray-300">Название отчета</label> | |
| <input type="text" id="report-name" placeholder="Мой отчет" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-purple-500 focus:border-purple-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"> | |
| </div> | |
| <div> | |
| <label for="report-period" class="block mb-2 text-sm font-medium text-gray-700 dark:text-gray-300">Период</label> | |
| <select id="report-period" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-purple-500 focus:border-purple-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"> | |
| <option value="day">За день</option> | |
| <option value="week" selected>За неделю</option> | |
| <option value="month">За месяц</option> | |
| <option value="quarter">За квартал</option> | |
| <option value="year">За год</option> | |
| <option value="custom">Произвольный период</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label for="report-category" class="block mb-2 text-sm font-medium text-gray-700 dark:text-gray-300">Категория товаров</label> | |
| <select id="report-category" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-purple-500 focus:border-purple-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"> | |
| <option value="all">Все категории</option> | |
| <option value="electronics">Электроника</option> | |
| <option value="clothing">Одежда</option> | |
| <option value="home">Дом и сад</option> | |
| <option value="beauty">Красота</option> | |
| <option value="kids">Детские товары</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label for="report-frequency" class="block mb-2 text-sm font-medium text-gray-700 dark:text-gray-300">Автоматическое обновление</label> | |
| <select id="report-frequency" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-purple-500 focus:border-purple-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"> | |
| <option value="none">Не обновлять</option> | |
| <option value="hourly">Каждый час</option> | |
| <option value="daily">Ежедневно</option> | |
| <option value="weekly">Еженедельно</option> | |
| </select> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| </script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=adasand/wdev" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |