From 4aeebf3732c2a1f483f20dd3bc55291d525aa455 Mon Sep 17 00:00:00 2001 From: indifferentketchup Date: Fri, 1 May 2026 22:11:13 +0000 Subject: [PATCH] refactor: rename Aternos\Mclogs to IndifferentKetchup\Iblogs Bulk substitution across all PHP files in src/, build.php, worker.php, and web/frontend/. Updates composer.json's package name and PSR-4 autoload root accordingly. Casing matches the existing IndifferentKetchup\Codex package's namespace convention (capital K). Strictly a namespace rename. Aternos\Codex\* imports remain in place; those get re-pointed in a follow-up commit when the codex Composer dependency itself is swapped. Filename renames (docker/mclogs.ini, web/public/css/mclogs.css), README walk-through, env-var prefix changes, and visible-text branding land in subsequent commits. --- build.php | 2 +- composer.json | 4 ++-- src/Api/Action/AnalyseLogAction.php | 12 +++++----- src/Api/Action/ApiAction.php | 8 +++---- src/Api/Action/BulkDeleteLogsAction.php | 16 +++++++------- src/Api/Action/CreateLogAction.php | 14 ++++++------ src/Api/Action/DeleteLogAction.php | 12 +++++----- src/Api/Action/EmptyAction.php | 4 ++-- src/Api/Action/EndpointNotFoundAction.php | 6 ++--- src/Api/Action/GetFiltersAction.php | 6 ++--- src/Api/Action/GetLimitsAction.php | 6 ++--- src/Api/Action/LogInfoAction.php | 14 ++++++------ src/Api/Action/LogInsightsAction.php | 14 ++++++------ src/Api/Action/RateLimitErrorAction.php | 6 ++--- src/Api/Action/RawLogAction.php | 14 ++++++------ src/Api/ApiRouter.php | 10 ++++----- src/Api/ContentParser.php | 8 +++---- src/Api/LogContentParser.php | 4 ++-- src/Api/Response/ApiError.php | 2 +- src/Api/Response/ApiResponse.php | 2 +- src/Api/Response/CodexLogResponse.php | 2 +- src/Api/Response/FiltersResponse.php | 4 ++-- src/Api/Response/LimitsResponse.php | 6 ++--- src/Api/Response/LogResponse.php | 6 ++--- src/Api/Response/MultiResponse.php | 2 +- src/Api/Response/RawLogResponse.php | 4 ++-- src/Cache/CacheEntry.php | 4 ++-- src/Config/Config.php | 6 ++--- src/Config/ConfigKey.php | 6 ++--- src/Data/Deobfuscator.php | 4 ++-- src/Data/MetadataEntry.php | 2 +- src/Data/Token.php | 2 +- src/Detective.php | 2 +- src/Filter/AccessTokenFilter.php | 4 ++-- src/Filter/Filter.php | 2 +- src/Filter/FilterType.php | 2 +- src/Filter/IPv4Filter.php | 6 ++--- src/Filter/IPv6Filter.php | 6 ++--- src/Filter/LimitBytesFilter.php | 6 ++--- src/Filter/LimitLinesFilter.php | 6 ++--- src/Filter/Pattern/Modifier.php | 2 +- src/Filter/Pattern/Pattern.php | 2 +- src/Filter/Pattern/PatternWithReplacement.php | 2 +- src/Filter/RegexFilter.php | 6 ++--- src/Filter/TrimFilter.php | 2 +- src/Filter/UsernameFilter.php | 4 ++-- src/Frontend/Action/ApiDocsAction.php | 4 ++-- src/Frontend/Action/CreateLogAction.php | 6 ++--- src/Frontend/Action/DeleteLogAction.php | 10 ++++----- src/Frontend/Action/FaviconAction.php | 4 ++-- src/Frontend/Action/NotFoundAction.php | 4 ++-- src/Frontend/Action/StartAction.php | 4 ++-- src/Frontend/Action/ViewLogAction.php | 10 ++++----- src/Frontend/Assets/Asset.php | 6 ++--- src/Frontend/Assets/AssetLoader.php | 6 ++--- src/Frontend/Assets/AssetType.php | 2 +- src/Frontend/Cookie/Cookie.php | 4 ++-- src/Frontend/Cookie/SettingsCookie.php | 4 ++-- src/Frontend/Cookie/TokenCookie.php | 10 ++++----- src/Frontend/FrontendRouter.php | 8 +++---- src/Frontend/Settings/Setting.php | 2 +- src/Frontend/Settings/Settings.php | 4 ++-- src/Id.php | 6 ++--- src/Log.php | 22 +++++++++---------- src/Printer/FormatModification.php | 2 +- src/Printer/Printer.php | 4 ++-- src/Router/Action.php | 2 +- src/Router/Method.php | 2 +- src/Router/Route.php | 2 +- src/Router/Router.php | 6 ++--- src/Storage/MongoDBClient.php | 8 +++---- src/Util/Singleton.php | 2 +- src/Util/TimeInterval.php | 2 +- src/Util/URL.php | 2 +- web/frontend/api-docs.php | 16 +++++++------- web/frontend/log.php | 16 +++++++------- web/frontend/parts/favicon.php | 2 +- web/frontend/parts/footer.php | 9 ++++---- web/frontend/parts/head.php | 12 +++++----- web/frontend/parts/header.php | 4 ++-- web/frontend/start.php | 8 +++---- worker.php | 12 +++++----- 82 files changed, 245 insertions(+), 246 deletions(-) diff --git a/build.php b/build.php index 425052e..a6827f8 100644 --- a/build.php +++ b/build.php @@ -2,4 +2,4 @@ require_once __DIR__ . '/vendor/autoload.php'; -\Aternos\Mclogs\Frontend\Assets\AssetLoader::getInstance()->writeCache(); \ No newline at end of file +\IndifferentKetchup\Iblogs\Frontend\Assets\AssetLoader::getInstance()->writeCache(); \ No newline at end of file diff --git a/composer.json b/composer.json index f01c4a4..df33ba8 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "aternos/mclogs", + "name": "indifferentketchup/iblogs", "description": "Paste, share and analyse Minecraft logs", "authors": [ { @@ -22,7 +22,7 @@ }, "autoload": { "psr-4": { - "Aternos\\Mclogs\\": "src/" + "IndifferentKetchup\\Iblogs\\": "src/" } } } diff --git a/src/Api/Action/AnalyseLogAction.php b/src/Api/Action/AnalyseLogAction.php index f5a22bc..a43ecce 100644 --- a/src/Api/Action/AnalyseLogAction.php +++ b/src/Api/Action/AnalyseLogAction.php @@ -1,12 +1,12 @@ 25000, ConfigKey::MONGODB_URL => 'mongodb://mongo:27017', - ConfigKey::MONGODB_DATABASE => 'mclogs', + ConfigKey::MONGODB_DATABASE => 'iblogs', ConfigKey::ID_LENGTH => 7, @@ -66,7 +66,7 @@ enum ConfigKey */ public function getEnvironmentVariable(): string { - return "MCLOGS_" . $this->name; + return "IBLOGS_" . $this->name; } /** diff --git a/src/Data/Deobfuscator.php b/src/Data/Deobfuscator.php index 3952a82..2339357 100644 --- a/src/Data/Deobfuscator.php +++ b/src/Data/Deobfuscator.php @@ -1,6 +1,6 @@ get(ConfigKey::ID_LENGTH); $newId = ""; diff --git a/src/Log.php b/src/Log.php index c5881b8..3b18c68 100644 --- a/src/Log.php +++ b/src/Log.php @@ -1,21 +1,21 @@ get(ConfigKey::STORAGE_TTL); + $ttl = \IndifferentKetchup\Iblogs\Config\Config::getInstance()->get(ConfigKey::STORAGE_TTL); $expires = time() + $ttl; return new UTCDateTime($expires * 1000); } diff --git a/src/Printer/FormatModification.php b/src/Printer/FormatModification.php index a4f425c..20e418d 100644 --- a/src/Printer/FormatModification.php +++ b/src/Printer/FormatModification.php @@ -1,6 +1,6 @@ @@ -586,7 +586,7 @@ $config = Config::getInstance();

Success application/json

-
+

Filter types

diff --git a/web/frontend/log.php b/web/frontend/log.php index 97c5fb1..a9d4349 100644 --- a/web/frontend/log.php +++ b/web/frontend/log.php @@ -1,13 +1,13 @@ get(\Aternos\Mclogs\Config\ConfigKey::FRONTEND_COLOR_ACCENT)); ?>" xmlns="http://www.w3.org/2000/svg"> + diff --git a/web/frontend/parts/footer.php b/web/frontend/parts/footer.php index 242c061..bf1097f 100644 --- a/web/frontend/parts/footer.php +++ b/web/frontend/parts/footer.php @@ -1,5 +1,5 @@ get(ConfigKey::LEGAL_IMPRINT); $privacyUrl = Config::getInstance()->get(ConfigKey::LEGAL_PRIVACY); @@ -19,10 +19,9 @@ $privacyUrl = Config::getInstance()->get(ConfigKey::LEGAL_PRIVACY); GitHub - Mod/Plugin - API + GitHub + API - developed by Aternos + based on mclogs by Aternos diff --git a/web/frontend/parts/head.php b/web/frontend/parts/head.php index bf35fbf..3607e93 100644 --- a/web/frontend/parts/head.php +++ b/web/frontend/parts/head.php @@ -1,17 +1,17 @@ getHTML(AssetType::CSS, "vendor/fontawesome/css/fontawesome.min.css"); ?> - getHTML(AssetType::CSS, "css/mclogs.css"); ?> + getHTML(AssetType::CSS, "css/iblogs.css"); ?>