The client should support Markdown for two main use cases:
Displaying emphasized descriptions.
Rendering a "Message of the Day" (MOTD) and "Phalcode News" page on startup.
Tasks:
Server-side:
[x] Implement a GET API for /config/news.md, a Markdown file that admins can edit.
[x] Implement a page for news.md at gamevau.lt/news.md.
[X] Support Markdown in Descriptions
[X] Implement a "Notes" field in GameMetadata for Admin notes, that also supports markdown.
Client-side:
[x] Integrate a Markdown library capable of editing and visualizing Markdown files.
[x] Render Markdown Description in GameView
[x] Render Markdown Notes in GameView
[x] Create a new Newspopup with two tabs: one for server news and one for GameVault news, displaying Markdown content from specified URLs.
[x] Add a button to re-open the News/MOTD popup.
[x] Calculate a checksum based on the contents of news.md and news.md. If the user has already seen this checksum, the popup should not auto-open; otherwise, it should open on startup (similar to Steam).
If for some reason anybody should formulate the requirement to turn markdown in descriptions and notes off, we could use this library but for now i think it should always be on.
The client should support Markdown for two main use cases:
Tasks:
Server-side:
/config/news.md
, a Markdown file that admins can edit.news.md
atgamevau.lt/news.md
.Client-side:
news.md
andnews.md
. If the user has already seen this checksum, the popup should not auto-open; otherwise, it should open on startup (similar to Steam).