diff options
author | Christian Cleberg <hello@cmc.pub> | 2025-03-11 18:25:18 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cmc.pub> | 2025-03-11 18:25:18 -0500 |
commit | 0063209979f22d7d63333047b6e2de187f28ff9c (patch) | |
tree | 77d80b9830ab4e536ba915797d2fd5ec7d3600a1 | |
parent | 4e146a6d1f189acd56376d9101215a9a6cbe7734 (diff) | |
download | hn-0063209979f22d7d63333047b6e2de187f28ff9c.tar.gz hn-0063209979f22d7d63333047b6e2de187f28ff9c.tar.bz2 hn-0063209979f22d7d63333047b6e2de187f28ff9c.zip |
move from cleberg.net to cmc.pub
-rw-r--r-- | .DS_Store | bin | 6148 -> 0 bytes | |||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | index.php | 4 | ||||
-rw-r--r-- | src/Controller/FeedController.php | 2 | ||||
-rw-r--r-- | src/Controller/RouteController.php | 2 | ||||
-rw-r--r-- | src/Model/ApiService.php | 20 | ||||
-rw-r--r-- | src/Model/CacheService.php | 2 |
7 files changed, 17 insertions, 17 deletions
diff --git a/.DS_Store b/.DS_Store Binary files differdeleted file mode 100644 index a4c214e..0000000 --- a/.DS_Store +++ /dev/null @@ -26,7 +26,7 @@ sudo apt install nginx-full php php-cgi php-fpm minify Clone the repo: ``` -git clone https://git.sr.ht/~cmc/hn/ +git clone https://git.sr.ht/~Christian Cleberg/hn/ ``` If you need to minify CSS changes: @@ -92,7 +92,7 @@ This project currently doesn't use versioning. See the git log instead. ## Authors -* **CMC** - *Literally everything* - [cmc](https://sr.ht/~cmc/) +* **CMC** - *Literally everything* - [Christian Cleberg](https://sr.ht/~Christian Cleberg/) ## License @@ -2,8 +2,8 @@ require_once 'src/Controller/RouteController.php'; -$GLOBALS['full_domain'] = 'https://hn.cleberg.net'; -$GLOBALS['author_name'] = 'cmc'; +$GLOBALS['full_domain'] = 'https://hn.cmc.pub'; +$GLOBALS['author_name'] = 'Christian Cleberg'; $GLOBALS['site_title'] = 'hn'; $route = new HN\Controllers\RouteController($_SERVER['REQUEST_URI']); diff --git a/src/Controller/FeedController.php b/src/Controller/FeedController.php index 0e3e3b4..86ae7eb 100644 --- a/src/Controller/FeedController.php +++ b/src/Controller/FeedController.php @@ -38,7 +38,7 @@ class FeedController * Request template to be presented to the user * * @access public - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ public function render(): void { diff --git a/src/Controller/RouteController.php b/src/Controller/RouteController.php index 3267ec2..2a4ed28 100644 --- a/src/Controller/RouteController.php +++ b/src/Controller/RouteController.php @@ -26,7 +26,7 @@ class RouteController * * @access public * @return void No return type; send user to FeedController->render() or a 404 error - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ public function routeUser(): void { diff --git a/src/Model/ApiService.php b/src/Model/ApiService.php index d0db901..1553dbf 100644 --- a/src/Model/ApiService.php +++ b/src/Model/ApiService.php @@ -8,7 +8,7 @@ namespace HN\Models; * @access public * @param string $api_url The API endpoint to use for extraction * @return mixed The API results formatted into an HTML section - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ function GetApiResults(string $api_url): mixed { @@ -23,7 +23,7 @@ function GetApiResults(string $api_url): mixed * @param mixed $api_results The decoded API results * @param string $inline_title The <h1> title to use in the HTML * @return string $html_output The formatted HTML result of stories from the API or the error message - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ function ParseStories(mixed $api_results, string $inline_title): string { @@ -47,7 +47,7 @@ function ParseStories(mixed $api_results, string $inline_title): string * @param mixed $api_results The decoded API results * @param string $inline_title The <h1> title to use in the HTML * @return string $html_output The formatted HTML result of stories from the API - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ function ParseUser(mixed $api_results, string $inline_title): string { @@ -94,7 +94,7 @@ function ParseUser(mixed $api_results, string $inline_title): string * @param mixed $api_results The decoded API results * @param string $inline_title The <h1> title to use in the HTML * @return string $html_output The formatted HTML result of stories from the API or the error message - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ function ParseItem(mixed $api_results): string { @@ -132,7 +132,7 @@ function ParseItem(mixed $api_results): string * @access public * @param mixed $api_results The decoded API results * @return string The formatted HTML result of stories from the API or the error message - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ function GetItem(mixed $api_results): string { @@ -154,7 +154,7 @@ function GetItem(mixed $api_results): string * @access public * @param mixed $api_results The decoded API results * @return string The formatted HTML result of stories from the API or the error message - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ function ConstructStory(mixed $api_results): string { @@ -189,7 +189,7 @@ function ConstructStory(mixed $api_results): string * @access public * @param mixed $api_results The decoded API results * @return string The formatted HTML result of stories from the API or the error message - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ function ConstructStoryDiscussion(mixed $api_results): string { @@ -241,7 +241,7 @@ function ConstructStoryDiscussion(mixed $api_results): string * @access public * @param mixed $api_results The decoded API results * @return string The formatted HTML result of stories from the API or the error message - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ function ConstructComment(mixed $api_results): string { @@ -265,7 +265,7 @@ function ConstructComment(mixed $api_results): string * @access public * @param mixed $api_results The decoded API results * @return string The formatted HTML result of stories from the API or the error message - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ function ConstructPoll(mixed $api_results): string { @@ -278,7 +278,7 @@ function ConstructPoll(mixed $api_results): string * @access public * @param mixed $api_results The decoded API results * @return string The formatted HTML result of stories from the API or the error message - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ function ConstructPollOpt(mixed $api_results): string { diff --git a/src/Model/CacheService.php b/src/Model/CacheService.php index 2bf1f57..3eda0c4 100644 --- a/src/Model/CacheService.php +++ b/src/Model/CacheService.php @@ -5,6 +5,6 @@ * * @access public * @return void - * @author cmc <hello@cleberg.net> + * @author Christian Cleberg <hello@cmc.pub> */ function CacheService() {}
\ No newline at end of file |