Commit 0063209979

0063209979f22d7d63333047b6e2de187f28ff9c

parent: 4e146a6d1f

Unregistered key

cmc <hello@cmc.pub> · 2025-03-11 23:25 UTC

move from cleberg.net to cmc.pub

Layout: unified · split

.DS_Store deleted

Binary file not shown.

README.md +2 −2
@@ -26,7 +26,7 @@ sudo apt install nginx-full php php-cgi php-fpm minify
2626Clone the repo:
2727
2828```
29git clone https://git.sr.ht/~cmc/hn/
29git clone https://git.sr.ht/~Christian Cleberg/hn/
3030```
3131
3232If you need to minify CSS changes:
@@ -92,7 +92,7 @@ This project currently doesn't use versioning. See the git log instead.
9292
9393## Authors
9494
95* **CMC** - *Literally everything* - [cmc](https://sr.ht/~cmc/)
95* **CMC** - *Literally everything* - [Christian Cleberg](https://sr.ht/~Christian Cleberg/)
9696
9797## License
9898
index.php +2 −2
@@ -2,8 +2,8 @@
22
33require_once 'src/Controller/RouteController.php';
44
5$GLOBALS['full_domain'] = 'https://hn.cleberg.net';
6$GLOBALS['author_name'] = 'cmc';
5$GLOBALS['full_domain'] = 'https://hn.cmc.pub';
6$GLOBALS['author_name'] = 'Christian Cleberg';
77$GLOBALS['site_title'] = 'hn';
88
99$route = new HN\Controllers\RouteController($_SERVER['REQUEST_URI']);
src/Controller/FeedController.php +1 −1
@@ -38,7 +38,7 @@ class FeedController
3838 * Request template to be presented to the user
3939 *
4040 * @access public
41 * @author cmc <hello@cleberg.net>
41 * @author Christian Cleberg <hello@cmc.pub>
4242 */
4343 public function render(): void
4444 {
src/Controller/RouteController.php +1 −1
@@ -26,7 +26,7 @@ class RouteController
2626 *
2727 * @access public
2828 * @return void No return type; send user to FeedController->render() or a 404 error
29 * @author cmc <hello@cleberg.net>
29 * @author Christian Cleberg <hello@cmc.pub>
3030 */
3131 public function routeUser(): void
3232 {
src/Model/ApiService.php +10 −10
@@ -8,7 +8,7 @@ namespace HN\Models;
88 * @access public
99 * @param string $api_url The API endpoint to use for extraction
1010 * @return mixed The API results formatted into an HTML section
11 * @author cmc <hello@cleberg.net>
11 * @author Christian Cleberg <hello@cmc.pub>
1212 */
1313function GetApiResults(string $api_url): mixed
1414{
@@ -23,7 +23,7 @@ function GetApiResults(string $api_url): mixed
2323 * @param mixed $api_results The decoded API results
2424 * @param string $inline_title The <h1> title to use in the HTML
2525 * @return string $html_output The formatted HTML result of stories from the API or the error message
26 * @author cmc <hello@cleberg.net>
26 * @author Christian Cleberg <hello@cmc.pub>
2727 */
2828function ParseStories(mixed $api_results, string $inline_title): string
2929{
@@ -47,7 +47,7 @@ function ParseStories(mixed $api_results, string $inline_title): string
4747 * @param mixed $api_results The decoded API results
4848 * @param string $inline_title The <h1> title to use in the HTML
4949 * @return string $html_output The formatted HTML result of stories from the API
50 * @author cmc <hello@cleberg.net>
50 * @author Christian Cleberg <hello@cmc.pub>
5151 */
5252function ParseUser(mixed $api_results, string $inline_title): string
5353{
@@ -94,7 +94,7 @@ function ParseUser(mixed $api_results, string $inline_title): string
9494 * @param mixed $api_results The decoded API results
9595 * @param string $inline_title The <h1> title to use in the HTML
9696 * @return string $html_output The formatted HTML result of stories from the API or the error message
97 * @author cmc <hello@cleberg.net>
97 * @author Christian Cleberg <hello@cmc.pub>
9898 */
9999function ParseItem(mixed $api_results): string
100100{
@@ -132,7 +132,7 @@ function ParseItem(mixed $api_results): string
132132 * @access public
133133 * @param mixed $api_results The decoded API results
134134 * @return string The formatted HTML result of stories from the API or the error message
135 * @author cmc <hello@cleberg.net>
135 * @author Christian Cleberg <hello@cmc.pub>
136136 */
137137function GetItem(mixed $api_results): string
138138{
@@ -154,7 +154,7 @@ function GetItem(mixed $api_results): string
154154 * @access public
155155 * @param mixed $api_results The decoded API results
156156 * @return string The formatted HTML result of stories from the API or the error message
157 * @author cmc <hello@cleberg.net>
157 * @author Christian Cleberg <hello@cmc.pub>
158158 */
159159function ConstructStory(mixed $api_results): string
160160{
@@ -189,7 +189,7 @@ function ConstructStory(mixed $api_results): string
189189 * @access public
190190 * @param mixed $api_results The decoded API results
191191 * @return string The formatted HTML result of stories from the API or the error message
192 * @author cmc <hello@cleberg.net>
192 * @author Christian Cleberg <hello@cmc.pub>
193193 */
194194function ConstructStoryDiscussion(mixed $api_results): string
195195{
@@ -241,7 +241,7 @@ function ConstructStoryDiscussion(mixed $api_results): string
241241 * @access public
242242 * @param mixed $api_results The decoded API results
243243 * @return string The formatted HTML result of stories from the API or the error message
244 * @author cmc <hello@cleberg.net>
244 * @author Christian Cleberg <hello@cmc.pub>
245245 */
246246function ConstructComment(mixed $api_results): string
247247{
@@ -265,7 +265,7 @@ function ConstructComment(mixed $api_results): string
265265 * @access public
266266 * @param mixed $api_results The decoded API results
267267 * @return string The formatted HTML result of stories from the API or the error message
268 * @author cmc <hello@cleberg.net>
268 * @author Christian Cleberg <hello@cmc.pub>
269269 */
270270function ConstructPoll(mixed $api_results): string
271271{
@@ -278,7 +278,7 @@ function ConstructPoll(mixed $api_results): string
278278 * @access public
279279 * @param mixed $api_results The decoded API results
280280 * @return string The formatted HTML result of stories from the API or the error message
281 * @author cmc <hello@cleberg.net>
281 * @author Christian Cleberg <hello@cmc.pub>
282282 */
283283function ConstructPollOpt(mixed $api_results): string
284284{
src/Model/CacheService.php +1 −1
@@ -5,6 +5,6 @@
55 *
66 * @access public
77 * @return void
8 * @author cmc <hello@cleberg.net>
8 * @author Christian Cleberg <hello@cmc.pub>
99 */
1010function CacheService() {}
\ No newline at end of file