Compare commits
12
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cce740d7a8 | ||
|
|
7dade5ecce | ||
|
|
3105c1e9c9 | ||
|
|
1d26e72753 | ||
|
|
d1ecd5b0b6 | ||
|
|
d30cf3aa60 | ||
|
|
14ba3aefe7 | ||
|
|
a77d0f661d | ||
|
|
7d55c243a8 | ||
|
|
b46f78824f | ||
|
|
c03d5b3497 | ||
|
|
5ec662483a |
No files matched your search
+4
-4
@@ -2,11 +2,11 @@
|
|||||||
# Replace/add owners as needed per repository domain.
|
# Replace/add owners as needed per repository domain.
|
||||||
|
|
||||||
# CI and forge metadata
|
# CI and forge metadata
|
||||||
/.gitea/ @tiago-neves @david-santos
|
/.gitea/ @devops-engineer @founding-engineer
|
||||||
/.gitea/workflows/ @tiago-neves @david-santos
|
/.gitea/workflows/ @devops-engineer @founding-engineer
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
/docs/ @david-santos @planner
|
/docs/ @founding-engineer
|
||||||
|
|
||||||
# Catch-all
|
# Catch-all
|
||||||
* @david-santos
|
* @founding-engineer
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
name: ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
branches: [master]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
verify:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: PHP 8.5 syntax check
|
||||||
|
run: |
|
||||||
|
php -v
|
||||||
|
find crm public src tools -name '*.php' -not -path '*/vendor/*' -print0 2>/dev/null | xargs -0 -n1 php -l >/dev/null
|
||||||
|
echo "All MoneyFlix PHP files pass PHP 8.5 syntax check"
|
||||||
|
|
||||||
|
- name: Setup Node.js 24.22.1
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "24.22.1"
|
||||||
|
|
||||||
|
- name: Verify nodejs-redirector on Node 24.22.1
|
||||||
|
working-directory: nodejs-redirector
|
||||||
|
run: |
|
||||||
|
node -v
|
||||||
|
node --check index.mjs
|
||||||
+4
-4
@@ -2,11 +2,11 @@
|
|||||||
# Replace/add owners as needed per repository domain.
|
# Replace/add owners as needed per repository domain.
|
||||||
|
|
||||||
# CI and forge metadata
|
# CI and forge metadata
|
||||||
/.gitea/ @tiago-neves @david-santos
|
/.gitea/ @devops-engineer @founding-engineer
|
||||||
/.gitea/workflows/ @tiago-neves @david-santos
|
/.gitea/workflows/ @devops-engineer @founding-engineer
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
/docs/ @david-santos @planner
|
/docs/ @founding-engineer
|
||||||
|
|
||||||
# Catch-all
|
# Catch-all
|
||||||
* @david-santos
|
* @founding-engineer
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"require": {
|
"require": {
|
||||||
|
"php": ">=8.4.27",
|
||||||
"matomo/device-detector": "^6.4",
|
"matomo/device-detector": "^6.4",
|
||||||
"phpmailer/phpmailer": "^6.8",
|
"phpmailer/phpmailer": "^6.8",
|
||||||
"scssphp/scssphp": "^2.0",
|
"scssphp/scssphp": "^2.0",
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
<?php
|
|
||||||
require_once "/data/wwwroot/redirect.moneyflix.com/vendor/autoload.php";
|
|
||||||
\App\Core\EnvironmentLoader::load();
|
|
||||||
|
|
||||||
echo "=== DEBUG MENU ===\n";
|
|
||||||
echo "Client ID: " . \App\Core\Branding::getClientId() . "\n";
|
|
||||||
|
|
||||||
echo "\n=== PATH MANAGER ===\n";
|
|
||||||
echo "Modules Path: " . \App\Core\PathManager::getModulesPath() . "\n";
|
|
||||||
echo "Config file exists: " . (file_exists(\App\Core\PathManager::getModulesPath() . "/config.php") ? "YES" : "NO") . "\n";
|
|
||||||
|
|
||||||
echo "\n=== MODULE CONFIG ===\n";
|
|
||||||
$configPath = \App\Core\PathManager::getModulesPath() . "/config.php";
|
|
||||||
if (file_exists($configPath)) {
|
|
||||||
$config = require $configPath;
|
|
||||||
echo "Config loaded: " . json_encode($config, JSON_PRETTY_PRINT) . "\n";
|
|
||||||
} else {
|
|
||||||
echo "Config file not found!\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
$moduleConfig = \App\Core\ModuleConfig::getInstance();
|
|
||||||
echo "Redirects active: " . ($moduleConfig->isModuleActive("Redirects", "moneyflix") ? "YES" : "NO") . "\n";
|
|
||||||
echo "Users active: " . ($moduleConfig->isModuleActive("Users", "moneyflix") ? "YES" : "NO") . "\n";
|
|
||||||
|
|
||||||
echo "\n=== MENU MANAGER ===\n";
|
|
||||||
$menus = \App\Core\MenuManager::getMenus();
|
|
||||||
echo "Registered menus: " . json_encode($menus, JSON_PRETTY_PRINT) . "\n";
|
|
||||||
|
|
||||||
echo "\n=== FINAL MENU ===\n";
|
|
||||||
$finalMenu = \App\Core\MenuManager::getFinalMenu();
|
|
||||||
echo "Final menu: " . json_encode($finalMenu, JSON_PRETTY_PRINT) . "\n";
|
|
||||||
@@ -29,6 +29,6 @@
|
|||||||
"nodemon": "^3.1.2"
|
"nodemon": "^3.1.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0"
|
"node": ">=24.22.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -73,5 +73,8 @@
|
|||||||
"sortablejs": "^1.15.6",
|
"sortablejs": "^1.15.6",
|
||||||
"sweetalert2": "^11.6.13",
|
"sweetalert2": "^11.6.13",
|
||||||
"swiper": "^11.2.10"
|
"swiper": "^11.2.10"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=24.22.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
<?php
|
|
||||||
require_once 'vendor/autoload.php';
|
|
||||||
use App\Core\DatabaseManager;
|
|
||||||
|
|
||||||
$db = DatabaseManager::getInstance();
|
|
||||||
$redirects = $db->fetchAll('SELECT id, cuid, analytics_slug, name FROM redirects LIMIT 3');
|
|
||||||
foreach ($redirects as $r) {
|
|
||||||
echo 'ID: ' . $r['id'] . ', CUID: ' . $r['cuid'] . ', Analytics: ' . ($r['analytics_slug'] ?? 'NULL') . PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user