v64: рефакторинг — разбил монолит на css/ js/ build.sh dist/ (781→43 строки index.html)

This commit is contained in:
“Naeel”
2026-05-22 18:39:13 +04:00
parent bd042be61c
commit 9c13c21898
11 changed files with 1516 additions and 747 deletions
+5 -2
View File
@@ -1,9 +1,12 @@
#!/bin/bash
set -e
# Вклеиваем Groq API ключ в index.html
# Собираем dist/index.html (CSS + JS встроены)
~/lang/.venv/bin/python3 ~/lang/build.sh
# Вклеиваем Groq API ключ в dist/index.html
KEY=$(cat ~/lang/token.txt)
cp ~/lang/index.html /tmp/lyngvo_index.html
cp ~/lang/dist/index.html /tmp/lyngvo_index.html
sed -i "s|const GROQ_API_KEY = '';|const GROQ_API_KEY = '${KEY}';|" /tmp/lyngvo_index.html
# Синхронизация всей папки lang на ВМ