new-doxa-monorepo

This commit is contained in:
kankys committed 2026-08-07 09:48:59 +02:00
1 parent b4401527a3
commit 5eacbb0182
162 files changed
+21820 -2

No files matched your search

+335
View File
@@ -0,0 +1,335 @@
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DOXA cli</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #0d1117;
color: #c9d1d9;
font-family: 'Courier New', Courier, monospace;
line-height: 1.6;
padding: 2rem 1rem;
}
.container {
max-width: 800px;
margin: 0 auto;
background-color: #161b22;
border: 1px solid #30363d;
border-radius: 6px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.terminal-header {
background-color: #21262d;
padding: 0.75rem 1rem;
border-bottom: 1px solid #30363d;
display: flex;
align-items: center;
justify-content: space-between;
}
.terminal-header-left {
display: flex;
align-items: center;
}
.terminal-buttons {
display: flex;
gap: 8px;
}
.btn-circle {
width: 12px;
height: 12px;
border-radius: 50%;
}
.btn-close { background-color: #ff5f56; }
.btn-minimize { background-color: #ffbd2e; }
.btn-maximize { background-color: #27c93f; }
.terminal-title {
margin-left: 1rem;
font-size: 0.85rem;
color: #8b949e;
}
.lang-switch {
background-color: #30363d;
border: 1px solid #8b949e;
color: #f0f6fc;
padding: 2px 8px;
border-radius: 4px;
font-size: 0.8rem;
cursor: pointer;
font-family: inherit;
transition: all 0.2s ease;
}
.lang-switch:hover {
background-color: #8b949e;
color: #0d1117;
}
.terminal-body {
padding: 2rem;
}
h1 {
color: #58a6ff;
font-size: 1.5rem;
margin-bottom: 1rem;
}
p {
margin-bottom: 1.5rem;
color: #8b949e;
}
.prompt {
color: #7ee787;
}
.command {
color: #f0f6fc;
}
pre {
background-color: #0d1117;
border: 1px solid #30363d;
padding: 1rem;
border-radius: 4px;
overflow-x: auto;
margin-bottom: 1.5rem;
color: #a5d6ff;
}
code {
font-family: 'Courier New', Courier, monospace;
}
.section-title {
color: #ffa657;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
font-size: 1.1rem;
}
ul {
list-style-type: none;
margin-bottom: 1.5rem;
padding-left: 1rem;
}
ul li::before {
content: "> ";
color: #7ee787;
}
ul li {
margin-bottom: 0.5rem;
}
a {
color: #58a6ff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.manual-highlight {
background-color: rgba(255, 166, 87, 0.1);
border-left: 4px solid #ffa657;
padding: 1rem;
margin: 1.5rem 0;
border-radius: 0 4px 4px 0;
}
.manual-highlight a {
font-weight: bold;
color: #ffa657;
text-decoration: underline;
}
.footer {
margin-top: 2rem;
border-top: 1px solid #30363d;
padding-top: 1rem;
font-size: 0.85rem;
color: #8b949e;
text-align: center;
font-style: italic;
}
/* Lang visibility styles */
[data-lang] {
display: none;
}
</style>
</head>
<body>
<div class="container">
<div class="terminal-header">
<div class="terminal-header-left">
<div class="terminal-buttons">
<div class="btn-circle btn-close"></div>
<div class="btn-circle btn-minimize"></div>
<div class="btn-circle btn-maximize"></div>
</div>
<div class="terminal-title">bash - doxa-cli</div>
</div>
<button class="lang-switch" onclick="toggleLang()" id="langBtn">EN</button>
</div>
<div class="terminal-body">
<h1>DOXA cli</h1>
<!-- CZ Mutation -->
<div data-lang="cs">
<p>DOXA-CLI je nástroj pro správu vašich poznámek z příkazové řádky. Umožňuje přidávat, zobrazovat, upravovat, mazat, exportovat poznámky a také je filtrovat a vyhledávat. Aplikace je napsána v Go a nabízí moderní terminálové uživatelské rozhraní (TUI).</p>
</div>
<!-- EN Mutation -->
<div data-lang="en">
<p>DOXA-CLI is a command-line tool for managing your notes. It allows you to add, view, edit, delete, export notes, as well as filter and search them. The application is written in Go and offers a modern Terminal User Interface (TUI).</p>
</div>
<p align="center">
<img src="https://img.shields.io/badge/go-1.22+-00ADD8?style=flat-square&logo=go&logoColor=white" alt="Go 1.22+">
<img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="MIT license">
<img src="https://img.shields.io/badge/tested-Linux-brightgreen?style=flat-square" alt="Tested on Linux">
</p>
<p align="center">
<img src="https://img.shields.io/badge/freebsd-AB2B28?style=for-the-badge&logo=freebsd&logoColor=white" alt="freeBSD">
</p>
<p align="center">
<img src="./img/dashboard.png" width="100%" alt="Dashboard">
</p>
<!-- CZ Mutation -->
<div data-lang="cs">
<div class="manual-highlight">
🔥 <strong>Důležité:</strong> Podrobný návod k použití, instalaci a přehled klávesových zkratek naleznete v oficiálním manuálu:
<a href="https://codeberg.org/Kankys/doxa-cli/src/branch/master/MANUAL_CZ.md" target="_blank">Český uživatelský manuál (MANUAL_CZ.md)</a>
</div>
<div class="section-title">$ instalace</div>
<pre><code>git clone https://codeberg.org/Kankys/doxa-cli.git
cd doxa-cli
chmod +x install.sh
./install.sh</code></pre>
<div class="section-title">$ vlastnosti</div>
<ul>
<li>Jazyk: Čisté Go (Golang), které zaručuje nativní kompilaci, vysokou rychlost provedení a žádné zbytečné externí závislosti.</li>
<li>Rozhraní: Terminálové rozhraní (CLI), které zbavuje mysl grafického chaosu a nechává vyniknout čistému textu.</li>
<li>Datová vrstva: Plně kompatibilní formát JSON sdílený s webovou verzí. Poznámky obsahují přesná časová razítka, identifikátory, obsah a štítky.</li>
</ul>
<div class="section-title">$ použití</div>
<pre><code># Spuštění aplikace
doxa-cli</code></pre>
<div class="section-title">$ odkazy</div>
<p>Zdrojový kód, dokumentaci, návody a další informace naleznete na <a href="https://codeberg.org/Kankys/doxa-cli" target="_blank">Codebergu</a>.</p>
<p>Web DOXA Notes naleznete na <a href="https://doxa-notes.org" target="_blank">oficálním webu</a>.</p>
<p>Web doxa-secret naleznete na <a href="https://secret.doxa-notes.org" target="_blank">oficálním webu</a>.</p>
<div class="footer">
"Terminál nežádá nic, neodvádí pozornost ničím a nabízí úplnou kontrolu. Vnes řád do svých myšlenek skrze čistý kód."
</div>
</div>
<!-- EN Mutation -->
<div data-lang="en">
<div class="manual-highlight">
🔥 <strong>Important:</strong> A detailed guide for installation, and keyboard shortcuts can be found in the official manual:
<a href="https://codeberg.org/Kankys/doxa-cli/src/branch/master/MANUAL.md" target="_blank">English User Manual (MANUAL.md)</a>
</div>
<div class="section-title">$ installation</div>
<pre><code>git clone https://codeberg.org/Kankys/doxa-cli.git
cd doxa-cli
chmod +x install.sh
./install.sh</code></pre>
<div class="section-title">$ features</div>
<ul>
<li>Language: Clean Go (Golang) ensuring native compilation, fast execution speeds, and no bloated external dependencies.</li>
<li>Interface: Terminal-based interface (CLI) to strip away graphical noise and let pure text stand out.</li>
<li>Data Layer: Fully compatible JSON format shared with the web version. Notes include accurate timestamps, IDs, content, and tags.</li>
</ul>
<div class="section-title">$ usage</div>
<pre><code># Start the application
doxa-cli</code></pre>
<div class="section-title">$ links</div>
<p>Source code, documentation, guides, and more can be found on <a href="https://codeberg.org/Kankys/doxa-cli" target="_blank">Codeberg</a>.</p>
<p>DOXA Notes web can be found on the <a href="https://doxa-notes.org" target="_blank">official website</a>.</p>
<p>doxa-secret web can be found on the <a href="https://secret.doxa-notes.org" target="_blank">official website</a>.</p>
<div class="footer">
"The terminal requests nothing, distracts with nothing, and offers absolute control. Bring order to your thoughts through clean code."
</div>
</div>
</div>
<footer>
<p class="copyright" style="text-align: center;">Doxa-cli &copy; 2026 | Local-First & Freedom 🦅</p>
</footer>
</div>
<script>
let currentLang = 'cs';
function applyLang() {
document.querySelectorAll('[data-lang]').forEach(el => {
if (el.getAttribute('data-lang') === currentLang) {
el.style.display = 'block';
} else {
el.style.display = 'none';
}
});
document.getElementById('langBtn').innerText = currentLang === 'cs' ? 'EN' : 'CS';
document.documentElement.lang = currentLang;
}
function toggleLang() {
currentLang = currentLang === 'cs' ? 'en' : 'cs';
localStorage.setItem('doxa-cli-lang', currentLang);
applyLang();
}
// Initialize language
(function initLanguage() {
// 1. Check local storage
let savedLang = localStorage.getItem('doxa-cli-lang');
if (savedLang) {
currentLang = savedLang;
} else {
// 2. Check system language
let sysLang = navigator.language || navigator.userLanguage || 'en';
sysLang = sysLang.toLowerCase();
if (sysLang.startsWith('cs') || sysLang.startsWith('sk')) {
currentLang = 'cs';
} else {
currentLang = 'en';
}
}
applyLang();
})();
</script>
</body>
</html>