feat: add news ticker with sentiment analysis and error codes to dwn.h and news.h headers
- Add DwnStatus enum with six error codes (OK, ERROR, INVALID_ARG, NO_MEMORY, NOT_FOUND, DISPLAY, IO) to include/dwn.h - Extend NewsArticle struct with NewsSentiment enum (NEUTRAL, POSITIVE, NEGATIVE) and sentiment_score float field in include/news.h - Insert DWN_ASSERT and DWN_ASSERT_MSG contract assertion macros plus assert.h include into include/util.h
This commit is contained in:
+42
-8
@@ -28,7 +28,7 @@
|
||||
<a href="architecture.html">Architecture</a>
|
||||
</div>
|
||||
</li>
|
||||
<li><a href="https://github.com/dwn/dwn">GitHub</a></li>
|
||||
<li><a href="https://retoor.molodetz.nl/retoor/dwn">Git</a></li>
|
||||
</ul>
|
||||
<div class="nav-toggle" onclick="toggleNav()">
|
||||
<span></span>
|
||||
@@ -71,7 +71,7 @@
|
||||
<td>Open terminal (configurable)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><kbd>Alt</kbd> + <kbd>F2</kbd></td>
|
||||
<td><kbd>Super</kbd> / <kbd>Alt</kbd> + <kbd>F2</kbd></td>
|
||||
<td>Open application launcher (dmenu/rofi)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -82,6 +82,10 @@
|
||||
<td><kbd>Super</kbd> + <kbd>B</kbd></td>
|
||||
<td>Open web browser</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><kbd>Print</kbd></td>
|
||||
<td>Take screenshot (xfce4-screenshooter)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -285,6 +289,36 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- News Ticker -->
|
||||
<h2 id="news">News Ticker</h2>
|
||||
<p style="color: var(--text-muted); margin-bottom: 1rem;">
|
||||
Navigate the scrolling news ticker displayed in the bottom panel.
|
||||
</p>
|
||||
<div class="table-wrapper">
|
||||
<table class="shortcuts-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 40%;">Shortcut</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><kbd>Super</kbd> + <kbd>Down</kbd></td>
|
||||
<td>Next news article</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><kbd>Super</kbd> + <kbd>Up</kbd></td>
|
||||
<td>Previous news article</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><kbd>Super</kbd> + <kbd>Return</kbd></td>
|
||||
<td>Open current article in browser</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- Help & System -->
|
||||
<h2 id="system">Help & System</h2>
|
||||
<div class="table-wrapper">
|
||||
@@ -389,21 +423,21 @@
|
||||
<li><a href="features.html">Features</a></li>
|
||||
<li><a href="installation.html">Installation</a></li>
|
||||
<li><a href="ai-features.html">AI Integration</a></li>
|
||||
<li><a href="https://github.com/dwn/dwn">GitHub</a></li>
|
||||
<li><a href="https://retoor.molodetz.nl/retoor/dwn">Git</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer-section">
|
||||
<h4>Community</h4>
|
||||
<ul>
|
||||
<li><a href="https://github.com/dwn/dwn/issues">Issue Tracker</a></li>
|
||||
<li><a href="https://github.com/dwn/dwn/discussions">Discussions</a></li>
|
||||
<li><a href="https://github.com/dwn/dwn/blob/main/CONTRIBUTING.md">Contributing</a></li>
|
||||
<li><a href="https://github.com/dwn/dwn/blob/main/LICENSE">License (MIT)</a></li>
|
||||
<li><a href="https://retoor.molodetz.nl/retoor/dwn/issues">Issue Tracker</a></li>
|
||||
<li><a href="https://retoor.molodetz.nl/retoor/dwn/discussions">Discussions</a></li>
|
||||
<li><a href="https://retoor.molodetz.nl/retoor/dwn/blob/main/CONTRIBUTING.md">Contributing</a></li>
|
||||
<li><a href="https://retoor.molodetz.nl/retoor/dwn/blob/main/LICENSE">License (MIT)</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-bottom">
|
||||
<p>DWN Window Manager - Open Source under the MIT License</p>
|
||||
<p>DWN Window Manager by retoor <retoor@molodetz.nl> - MIT License</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user