fix: update axios, move env() to config, cache config/routes/events/filament

This commit is contained in:
root
2026-05-21 16:23:56 +02:00
parent 1fe8d10c90
commit a07d216635
5 changed files with 218 additions and 549 deletions
@@ -62,7 +62,7 @@ class BadgeUploadResource extends Resource
public static function getFiles(): array public static function getFiles(): array
{ {
$badgePath = env('BadgePath', 'badges'); $badgePath = config('habbo.badges.path', 'badges');
$files = Storage::disk('local')->files($badgePath); $files = Storage::disk('local')->files($badgePath);
return collect($files)->map(fn ($file) => [ return collect($files)->map(fn ($file) => [
+4
View File
@@ -62,6 +62,10 @@ return [
'password_reset_token_time' => env('PASSWORD_RESET_TOKEN_TIME', 15), 'password_reset_token_time' => env('PASSWORD_RESET_TOKEN_TIME', 15),
'badges' => [
'path' => env('BADGE_PATH', 'badges'),
],
'paypal' => [ 'paypal' => [
'mode' => env('PAYPAL_MODE', 'sandbox'), 'mode' => env('PAYPAL_MODE', 'sandbox'),
'sandbox' => [ 'sandbox' => [
+36 -8
View File
@@ -20,7 +20,7 @@
"@tailwindcss/typography": "0.5.19", "@tailwindcss/typography": "0.5.19",
"alpinejs": "3.15.9", "alpinejs": "3.15.9",
"autoprefixer": "10.4.20", "autoprefixer": "10.4.20",
"axios": "1.14.0", "axios": "^1.16.1",
"bootstrap": "5.3.3", "bootstrap": "5.3.3",
"esbuild": "^0.27.7", "esbuild": "^0.27.7",
"eslint": "^9.39.4", "eslint": "^9.39.4",
@@ -2719,6 +2719,19 @@
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
} }
}, },
"node_modules/agent-base": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
"integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"debug": "4"
},
"engines": {
"node": ">= 6.0.0"
}
},
"node_modules/aigle": { "node_modules/aigle": {
"version": "1.14.1", "version": "1.14.1",
"resolved": "https://registry.npmjs.org/aigle/-/aigle-1.14.1.tgz", "resolved": "https://registry.npmjs.org/aigle/-/aigle-1.14.1.tgz",
@@ -2896,14 +2909,15 @@
} }
}, },
"node_modules/axios": { "node_modules/axios": {
"version": "1.14.0", "version": "1.16.1",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.14.0.tgz", "resolved": "https://registry.npmjs.org/axios/-/axios-1.16.1.tgz",
"integrity": "sha512-3Y8yrqLSwjuzpXuZ0oIYZ/XGgLwUIBU3uLvbcpb0pidD9ctpShJd43KSlEEkVQg6DS0G9NKyzOvBfUtDKEyHvQ==", "integrity": "sha512-caYkukvroVPO8KrzuJEb50Hm07KwfBZPEC3VeFHTsqWHvKTsy54hjJz9BS/cdaypROE2rH6xvm9mHX4fgWkr3A==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"follow-redirects": "^1.15.11", "follow-redirects": "^1.16.0",
"form-data": "^4.0.5", "form-data": "^4.0.5",
"https-proxy-agent": "^5.0.1",
"proxy-from-env": "^2.1.0" "proxy-from-env": "^2.1.0"
} }
}, },
@@ -4341,9 +4355,9 @@
} }
}, },
"node_modules/follow-redirects": { "node_modules/follow-redirects": {
"version": "1.15.11", "version": "1.16.0",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz",
"integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -4771,6 +4785,20 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/https-proxy-agent": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
"integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
"dev": true,
"license": "MIT",
"dependencies": {
"agent-base": "6",
"debug": "4"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/ignore": { "node_modules/ignore": {
"version": "6.0.2", "version": "6.0.2",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-6.0.2.tgz", "resolved": "https://registry.npmjs.org/ignore/-/ignore-6.0.2.tgz",
+1 -1
View File
@@ -35,7 +35,7 @@
"@tailwindcss/typography": "0.5.19", "@tailwindcss/typography": "0.5.19",
"alpinejs": "3.15.9", "alpinejs": "3.15.9",
"autoprefixer": "10.4.20", "autoprefixer": "10.4.20",
"axios": "1.14.0", "axios": "^1.16.1",
"bootstrap": "5.3.3", "bootstrap": "5.3.3",
"esbuild": "^0.27.7", "esbuild": "^0.27.7",
"eslint": "^9.39.4", "eslint": "^9.39.4",
+176 -539
View File
File diff suppressed because it is too large Load Diff