archivo del paquete→ .shtukbase/packages/chat/lens/chat.html
lens/chat.html
56 líneas, 4.3 KB.
El archivo tal como está en el paquete: el código y sus comentarios no se traducen.
- <!doctype html>
- <html lang="ru" data-skin="desktop">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Чат</title>
- <link rel="stylesheet" href="/_kit/kit.css" data-kit>
- <link rel="stylesheet" href="/_kit/skins/calm.css" data-kit>
- <link rel="stylesheet" href="/_kit/skins/desktop.css" data-kit>
- <link rel="stylesheet" href="chat.css">
- <script>
- // Hosted (under /_pkg/ or in the shell's frame) uses the host's kit as linked above; opened as a
- // file or from a plain server it points the kit links and scripts into the repo by relative paths.
- (function () {
- var hosted = window.parent !== window || location.pathname.indexOf('/_pkg/') === 0;
- window.CHAT_HOSTED = hosted;
- if (!hosted) document.querySelectorAll('link[data-kit]').forEach(function (l) {
- l.href = '../../kit-style/pages/design/kit-style/' + l.getAttribute('href').slice('/_kit/'.length);
- });
- var pkg = hosted ? '/_pkg/' : '../../';
- document.write('<script src="' + pkg + 'layout-basic/lens.js"><\/script>' +
- '<script src="' + pkg + 'llm-provider/llm.js"><\/script>');
- })();
- </script>
- </head>
- <body>
- <div class="chat">
- <header class="chat-head">
- <span class="chat-title">Чат</span>
- <span class="chat-where" data-where></span>
- <span class="chat-spacer"></span>
- <button type="button" class="chat-icon-btn" data-folder hidden title="Открыть папку пространства" aria-label="Открыть папку пространства"><svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M2 4.5a1 1 0 0 1 1-1h3l1.5 1.5H13a1 1 0 0 1 1 1V12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round"/></svg></button>
- <button type="button" class="chat-icon-btn" data-clear title="Новый разговор" aria-label="Новый разговор"><svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M8 3v10M3 8h10" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/></svg></button>
- <button type="button" class="chat-icon-btn" data-gear title="Настройки модели" aria-label="Настройки модели"><svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><circle cx="3.5" cy="8" r="1.2" fill="currentColor"/><circle cx="8" cy="8" r="1.2" fill="currentColor"/><circle cx="12.5" cy="8" r="1.2" fill="currentColor"/></svg></button>
- </header>
- <div class="chat-settings" data-settings role="group" aria-label="Настройки модели" hidden>
- <p class="chat-note">Ключ хранится только в этом браузере<span data-memnote hidden> (в рамке — только до перезагрузки)</span>.</p>
- <label>Адрес провайдера<input data-field name="baseUrl" autocomplete="off" spellcheck="false"></label>
- <label>Модель<input data-field name="model" autocomplete="off" spellcheck="false"></label>
- <label>Ключ API<input data-field name="apiKey" type="password" autocomplete="off" spellcheck="false"></label>
- <div class="chat-row"><button type="button" class="chat-btn chat-btn-primary" data-save>Сохранить</button><button type="button" class="chat-btn" data-cancel>Отмена</button></div>
- </div>
- <div class="chat-log" data-log aria-live="polite">
- <div class="chat-list" data-list></div>
- </div>
- <div class="chat-compose">
- <textarea rows="1" data-input placeholder="Спросите о пространстве…" aria-label="Сообщение"></textarea>
- <button type="button" class="chat-send" data-send title="Отправить" aria-label="Отправить"><svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M8 13V3.5M4 7.5l4-4 4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
- <button type="button" class="chat-send" data-stop title="Стоп" aria-label="Стоп" hidden><svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><rect x="4.5" y="4.5" width="7" height="7" rx="1.5" fill="currentColor"/></svg></button>
- </div>
- </div>
- <script src="markdown.js"></script>
- <script src="fs-store.js"></script>
- <script src="chat.js"></script>
- </body>
- </html>