Compare commits
425
Commits
449fb0bf91
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1a8c0faf0 | ||
|
|
5c6fb470ca | ||
|
|
c5af9eb128 | ||
|
|
14fca2c548 | ||
|
|
f047f7897c | ||
|
|
adf2a45553 | ||
|
|
819d4eab78 | ||
|
|
56954d7a33 | ||
|
|
c878d4e49a | ||
|
|
3c236469e5 | ||
|
|
7765a57e22 | ||
|
|
90e6c80a61 | ||
|
|
5be9e9dbc8 | ||
|
|
e5d6ff68b2 | ||
|
|
17cfcf44b2 | ||
|
|
9f69743dd6 | ||
|
|
4be07c8456 | ||
|
|
9928750bc2 | ||
|
|
dc97598278 | ||
|
|
e4213d1fd6 | ||
|
|
3e714e9568 | ||
|
|
8ed4106ddf | ||
|
|
4108354935 | ||
|
|
bcbdd24f15 | ||
|
|
9167b11f8b | ||
|
|
2242106309 | ||
|
|
66aeefbba5 | ||
|
|
3521e47ef0 | ||
|
|
47085e5160 | ||
|
|
fc7abb3f64 | ||
|
|
e776eb0211 | ||
|
|
9368dd2f10 | ||
|
|
d8d970baad | ||
|
|
8f66223767 | ||
|
|
b849dd766b | ||
|
|
ec01bb75cd | ||
|
|
6d60cbff84 | ||
|
|
4af997c465 | ||
|
|
0815d8b135 | ||
|
|
b1ba52a360 | ||
|
|
fc27aa7318 | ||
|
|
323dabac5a | ||
|
|
2e26a8e11a | ||
|
|
ec27834043 | ||
|
|
d90c945e83 | ||
|
|
96bae35060 | ||
|
|
e1f132fa7b | ||
|
|
12c1470319 | ||
|
|
a12372963a | ||
|
|
d2c1f744c3 | ||
|
|
9cc2ce530e | ||
|
|
fd63173736 | ||
|
|
346cd2af1e | ||
|
|
bfc2e136a2 | ||
|
|
0e067a15f3 | ||
|
|
6be15611eb | ||
|
|
449681cf94 | ||
|
|
45619fb2a4 | ||
|
|
82772a511c | ||
|
|
145ba9a49f | ||
|
|
7f5572989e | ||
|
|
b87036e1a2 | ||
|
|
b8a9ab2e24 | ||
|
|
fbf7a1fc6b | ||
|
|
7a3e1cfea5 | ||
|
|
37fca9803b | ||
|
|
fa01a01de4 | ||
|
|
0c3c32cd2a | ||
|
|
73061a0c2d | ||
|
|
ebd2eafa03 | ||
|
|
6b54b835a4 | ||
|
|
a92dd436d8 | ||
|
|
674b5de2ec | ||
|
|
9e4cd5847b | ||
|
|
9cc5400063 | ||
|
|
faea90cb62 | ||
|
|
7c815854c6 | ||
|
|
3f36739464 | ||
|
|
7e6e53463b | ||
|
|
689493bbd7 | ||
|
|
8a07f14b63 | ||
|
|
eaa8c6ebe3 | ||
|
|
7b40a55b0e | ||
|
|
3cb78f79c7 | ||
|
|
86f0082a84 | ||
|
|
788bb87b01 | ||
|
|
4ae70ba737 | ||
|
|
5f7c54e0ff | ||
|
|
b5530a4cdf | ||
|
|
1af5f0f338 | ||
|
|
d0edc5e8b6 | ||
|
|
ecff30a0af | ||
|
|
38feedd0aa | ||
|
|
e32aa9915a | ||
|
|
db32d7b823 | ||
|
|
85e8d96655 | ||
|
|
9564676ed3 | ||
|
|
0d5b9dbf06 | ||
|
|
0854892aa1 | ||
|
|
54892b31d1 | ||
|
|
51c93d37aa | ||
|
|
c49de9b8b9 | ||
|
|
83e7edc953 | ||
|
|
41d0c9b2d1 | ||
|
|
b440888ac1 | ||
|
|
0b903d7f19 | ||
|
|
5c6671551c | ||
|
|
0701713823 | ||
|
|
5b4b81eb4d | ||
|
|
489473e112 | ||
|
|
17f36fdc63 | ||
|
|
0ee87279b6 | ||
|
|
0239f12d45 | ||
|
|
69912f6e77 | ||
|
|
cd05c1c856 | ||
|
|
4eacdad31e | ||
|
|
3c3771f744 | ||
|
|
6df0fe52ac | ||
|
|
f05305617d | ||
|
|
44244ec59e | ||
|
|
e4b7b8120c | ||
|
|
a26129a383 | ||
|
|
3737cf7ebc | ||
|
|
86bdd5dafd | ||
|
|
b5c5a8bcf8 | ||
|
|
758370ab1c | ||
|
|
973f7a58d1 | ||
|
|
f8d5979c6a | ||
|
|
99486bc943 | ||
|
|
f3c2744b89 | ||
|
|
9a82a0aa3e | ||
|
|
5f82f86283 | ||
|
|
b2cc711167 | ||
|
|
8240d896c5 | ||
|
|
b8b872bead | ||
|
|
34ce7d3ca4 | ||
|
|
0248d35f89 | ||
|
|
69e4e3ccca | ||
|
|
5c3b692618 | ||
|
|
30b131cc3d | ||
|
|
c540ec2815 | ||
|
|
e04644a58d | ||
|
|
40b3a94c00 | ||
|
|
c44b362710 | ||
|
|
a42b5787b9 | ||
|
|
c5335dc635 | ||
|
|
42f1d10f45 | ||
|
|
7e6a9a426f | ||
|
|
28ee25fd12 | ||
|
|
d9b472e651 | ||
|
|
4765c34889 | ||
|
|
3b0393a1fe | ||
|
|
5299d2c059 | ||
|
|
e76e7de4a3 | ||
|
|
5dbc6394b8 | ||
|
|
a8cbb8e2ac | ||
|
|
3be4ff590f | ||
|
|
e79cadc7f8 | ||
|
|
cd52a0bbda | ||
|
|
e8c8dc72ba | ||
|
|
2e23ad31d1 | ||
|
|
aec6989053 | ||
|
|
4ee0b8e604 | ||
|
|
7c4a94b5ea | ||
|
|
2266298b6c | ||
|
|
a6148f9bfd | ||
|
|
e12ab543e8 | ||
|
|
9095f6a281 | ||
|
|
367bf6a363 | ||
|
|
373f78ea15 | ||
|
|
d449f01593 | ||
|
|
c86c804bcf | ||
|
|
68e29fca3d | ||
|
|
0a673690a3 | ||
|
|
ed298eac38 | ||
|
|
3db2480724 | ||
|
|
b068ca74a7 | ||
|
|
a4b85b08ca | ||
|
|
20e580d33b | ||
|
|
8193ecea66 | ||
|
|
034129ebc8 | ||
|
|
90ba0bfafa | ||
|
|
39ba020951 | ||
|
|
09902cb6d6 | ||
|
|
816ab56f0b | ||
|
|
bebb264657 | ||
|
|
95084030af | ||
|
|
907f92aeef | ||
|
|
d311597baa | ||
|
|
ad84b68044 | ||
|
|
fc16aaa6ae | ||
|
|
d33ba90984 | ||
|
|
fc72f90fad | ||
|
|
51e074e91c | ||
|
|
0159a638f6 | ||
|
|
bc213e0c6e | ||
|
|
fcd60471be | ||
|
|
052bae718e | ||
|
|
c1a9d0de27 | ||
|
|
e1772367cf | ||
|
|
6457e4b498 | ||
|
|
e1a4adc4d4 | ||
|
|
de336c219d | ||
|
|
95f29457d8 | ||
|
|
c9987f5fc2 | ||
|
|
4ed910e672 | ||
|
|
0b95942523 | ||
|
|
75dc21e3e9 | ||
|
|
7fceb11fbb | ||
|
|
2f4009a2de | ||
|
|
f8e5359777 | ||
|
|
7c9e56d195 | ||
|
|
d15583c037 | ||
|
|
b22996bb6d | ||
|
|
7f637015dd | ||
|
|
7f4edc36ab | ||
|
|
2da7a62251 | ||
|
|
2c2aa54b33 | ||
|
|
ac694f8aae | ||
|
|
e21c09a005 | ||
|
|
df6d2440df | ||
|
|
9e633b6e5b | ||
|
|
978b477de3 | ||
|
|
030b1f5eb0 | ||
|
|
6d97a98c02 | ||
|
|
29ed273200 | ||
|
|
d84c32e441 | ||
|
|
ab7c0a36ba | ||
|
|
34ebea15b3 | ||
|
|
79d1d4726d | ||
|
|
5064365af2 | ||
|
|
70cd7149aa | ||
|
|
f655613ad7 | ||
|
|
8912d28b7b | ||
|
|
7cd8feec83 | ||
|
|
66b24b65d4 | ||
|
|
129eb7a8cd | ||
|
|
775cf03578 | ||
|
|
704ac4de41 | ||
|
|
22452f9ab9 | ||
|
|
a0e7958680 | ||
|
|
ccd516e2e9 | ||
|
|
6089420828 | ||
|
|
70a178f6ad | ||
|
|
6048ccc4b9 | ||
|
|
cf3dceb994 | ||
|
|
38525c8e9a | ||
|
|
d7597be9d2 | ||
|
|
5bf9d71c57 | ||
|
|
1b8a9a44cf | ||
|
|
896d5c28ce | ||
|
|
47735cf2cb | ||
|
|
94c36733ad | ||
|
|
ccde76ecb9 | ||
|
|
b735595869 | ||
|
|
bfea992994 | ||
|
|
47a67e83dc | ||
|
|
a3ac516138 | ||
|
|
4bf1604542 | ||
|
|
a87c9762c9 | ||
|
|
0b4c821187 | ||
|
|
2828e617ed | ||
|
|
a46ca53aee | ||
|
|
b5bc026b78 | ||
|
|
b8e32db7e0 | ||
|
|
fbfd24f314 | ||
|
|
a9764122ba | ||
|
|
b1d9b235e2 | ||
|
|
c4646d2f5c | ||
|
|
3b1fc48a3d | ||
|
|
12736df164 | ||
|
|
febdb7da7a | ||
|
|
26e428cd5f | ||
|
|
d1b120acf5 | ||
|
|
7b317f0508 | ||
|
|
fd193a5047 | ||
|
|
fe05ef8104 | ||
|
|
878f383f7a | ||
|
|
2df11f9f58 | ||
|
|
8060f7f086 | ||
|
|
15e62bfb40 | ||
|
|
04825b61ad | ||
|
|
433a906699 | ||
|
|
5ec593e802 | ||
|
|
2c2af4c50e | ||
|
|
80991208af | ||
|
|
a866fe5884 | ||
|
|
d49d859254 | ||
|
|
90b3dbe0bf | ||
|
|
4b04d7ada5 | ||
|
|
fa85ffa532 | ||
|
|
b3e4c4841e | ||
|
|
e96f1cc7bd | ||
|
|
0b0a708a99 | ||
|
|
a07bfd13df | ||
|
|
e81a509007 | ||
|
|
85b96144c0 | ||
|
|
fc3371ea77 | ||
|
|
30471e542c | ||
|
|
f8ae45d810 | ||
|
|
c19497efc2 | ||
|
|
bcd133e27a | ||
|
|
c008fc67dc | ||
|
|
74baba8c89 | ||
|
|
cd76070d17 | ||
|
|
e1a99a9b0e | ||
|
|
5394a4d514 | ||
|
|
a58d35c370 | ||
|
|
2432af30b0 | ||
|
|
0dfc6c7afa | ||
|
|
9457a2f264 | ||
|
|
129bc9bda0 | ||
|
|
7603f8fdc4 | ||
|
|
785529a0da | ||
|
|
6c5e2af806 | ||
|
|
dc86970b20 | ||
|
|
a787303ba5 | ||
|
|
a96369c90a | ||
|
|
0a9746fa77 | ||
|
|
578a977c59 | ||
|
|
0b2d7225cc | ||
|
|
58e5f2e203 | ||
|
|
068ced339e | ||
|
|
91f2a7efb3 | ||
|
|
f13962b2f3 | ||
|
|
6b822c6316 | ||
|
|
f70241a556 | ||
|
|
b668116b11 | ||
|
|
330d6922a4 | ||
|
|
1fd9be097e | ||
|
|
d26f536cba | ||
|
|
91ef793e63 | ||
|
|
96e0d60355 | ||
|
|
4099be7770 | ||
|
|
10be45172e | ||
|
|
57d2507db9 | ||
|
|
6acc6de707 | ||
|
|
8a6eb74ebb | ||
|
|
3638e34535 | ||
|
|
76521e07fe | ||
|
|
63a9981c7c | ||
|
|
e91b4251fd | ||
|
|
b91aecc49d | ||
|
|
1d647bf4ce | ||
|
|
5aa026d3c6 | ||
|
|
2a9d25ec18 | ||
|
|
04f8124e65 | ||
|
|
91b600a4fe | ||
|
|
ac19c8ef37 | ||
|
|
16d8ae1b8c | ||
|
|
de458cc010 | ||
|
|
1c9ed1a537 | ||
|
|
a2c68bc4dc | ||
|
|
7bc8f20ed5 | ||
|
|
3c9b39d83b | ||
|
|
49340d42af | ||
|
|
e79a029bed | ||
|
|
05ff54ea76 | ||
|
|
48371a281d | ||
|
|
4dcee08d71 | ||
|
|
8ec2c33c47 | ||
|
|
292cda7ffc | ||
|
|
55428efaef | ||
|
|
fbc2ebce2d | ||
|
|
46a3a0c784 | ||
|
|
f598028fe9 | ||
|
|
98c6ee4597 | ||
|
|
67faed6165 | ||
|
|
28a34cfa87 | ||
|
|
25ee5ce5d1 | ||
|
|
da35c7eb95 | ||
|
|
67c9bb22d9 | ||
|
|
6fea1f3052 | ||
|
|
d8a0123286 | ||
|
|
fc077773ad | ||
|
|
8391ece55a | ||
|
|
254810b90a | ||
|
|
809e57cc28 | ||
|
|
5ffc01425f | ||
|
|
9cbb16f1d4 | ||
|
|
cd09be25d9 | ||
|
|
82f59c2302 | ||
|
|
96908e54a7 | ||
|
|
dd13d38ed6 | ||
|
|
2367c4aa2d | ||
|
|
6c038f5672 | ||
|
|
a55b98cf38 | ||
|
|
cad45a870d | ||
|
|
8b9de7426a | ||
|
|
99e4bba178 | ||
|
|
b993881d52 | ||
|
|
29004e46c2 | ||
|
|
638ff7eeea | ||
|
|
97bf167680 | ||
|
|
7e178a88f3 | ||
|
|
eced2487d4 | ||
|
|
af25555ca4 | ||
|
|
0e83986850 | ||
|
|
6d081cab5b | ||
|
|
071a11bf13 | ||
|
|
0445b71f33 | ||
|
|
7ef94859fa | ||
|
|
f8be057b52 | ||
|
|
17683e1a21 | ||
|
|
57a514857c | ||
|
|
531bf44e9a | ||
|
|
8d923c8888 | ||
|
|
50665bc464 | ||
|
|
8866e8438e | ||
|
|
ca3be4c887 | ||
|
|
9b8d73de5a | ||
|
|
0c029ff803 | ||
|
|
670e78ae03 | ||
|
|
242158e150 | ||
|
|
219cf518ba | ||
|
|
5e993be87a | ||
|
|
276f03a17b | ||
|
|
b10ac13bb5 | ||
|
|
1489f9e747 | ||
|
|
c9231b5062 | ||
|
|
9518ff889b | ||
|
|
c59b16d791 | ||
|
|
449821fa00 | ||
|
|
12d4eec076 | ||
|
|
fc2c5e0f86 |
@@ -0,0 +1,16 @@
|
||||
APP_URL=http://127.0.0.1:8000
|
||||
SESSION_DRIVER=file
|
||||
CACHE_STORE=array
|
||||
|
||||
APP_KEY=base64:O0djxuJapvByUFNx5avmY7od6Y6C05JYv3kAFNrlrMX=
|
||||
DB_CONNECTION=pgsql
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=5432
|
||||
DB_DATABASE=wms_dusk
|
||||
DB_USERNAME=wms_user
|
||||
DB_PASSWORD=987400Kmh
|
||||
QUEUE_CONNECTION=sync
|
||||
MAIL_MAILER=array
|
||||
DEBUGBAR_ENABLED=false
|
||||
|
||||
TELESCOPE_ENABLED=false
|
||||
@@ -39,3 +39,4 @@ composer.lock
|
||||
/storage/framework/
|
||||
/storage/debugbar/
|
||||
/phpunit.dusk.xml
|
||||
sonarqube-issues.csv
|
||||
|
||||
Regular → Executable
Regular → Executable
@@ -1,5 +0,0 @@
|
||||
# Analytics
|
||||
|
||||
Display KPIs, warehouse performance trends, executive summaries, and OTTC analysis.
|
||||
|
||||
Contains actual sample Blade views and placeholder service provider/routes only.
|
||||
Regular → Executable
+1
@@ -64,6 +64,7 @@
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<caption class="sr-only">Data table</caption>
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>Metric</th>
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
@@ -1,5 +0,0 @@
|
||||
# Audit
|
||||
|
||||
Review activity logs, data changes, interface events, and administrative actions.
|
||||
|
||||
Contains actual sample Blade views and placeholder service provider/routes only.
|
||||
Regular → Executable
+1
@@ -64,6 +64,7 @@
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<caption class="sr-only">Data table</caption>
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>When</th>
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+1
-3
@@ -63,9 +63,7 @@ class AuditTrailServiceProvider extends ServiceProvider
|
||||
$commandPath = __DIR__ . '/../Console';
|
||||
$commands = collect(File::allFiles($commandPath))
|
||||
->map(function ($file) {
|
||||
$class = 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
||||
|
||||
return $class;
|
||||
return 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
||||
})
|
||||
->filter(function ($class) {
|
||||
return class_exists($class);
|
||||
|
||||
Regular → Executable
-12
@@ -14,18 +14,6 @@ class RouteServiceProvider extends ServiceProvider
|
||||
*/
|
||||
protected $moduleNamespace = 'Modules\AuditTrail\Http\Controllers';
|
||||
|
||||
/**
|
||||
* Called before routes are registered.
|
||||
*
|
||||
* Register any model bindings or pattern based filters.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
parent::boot();
|
||||
}
|
||||
|
||||
/**
|
||||
* Define the routes for the application.
|
||||
*
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
@@ -1,5 +0,0 @@
|
||||
# Carrier Management
|
||||
|
||||
Maintain carriers, services, and shipment routing master data.
|
||||
|
||||
Contains actual sample Blade views and placeholder service provider/routes only.
|
||||
Regular → Executable
+1
@@ -64,6 +64,7 @@
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<caption class="sr-only">Data table</caption>
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>Carrier</th>
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+26
-29
@@ -26,40 +26,37 @@ class DeleteOpenAiFilesCommand extends Command
|
||||
return self::FAILURE;
|
||||
}
|
||||
|
||||
$service = new OpenAiFileService((string) $setting->api_key);
|
||||
|
||||
try {
|
||||
if ((bool) $this->option('dry-run')) {
|
||||
$files = $service->listFiles();
|
||||
|
||||
$this->info('Found ' . count($files) . ' OpenAI API file(s).');
|
||||
|
||||
foreach ($files as $file) {
|
||||
$this->line(sprintf(
|
||||
'- %s %s',
|
||||
(string) ($file['id'] ?? 'unknown'),
|
||||
(string) ($file['filename'] ?? 'unnamed'),
|
||||
));
|
||||
}
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
|
||||
$result = $service->deleteAllFiles();
|
||||
|
||||
$this->info("Listed: {$result['listed']}");
|
||||
$this->info("Deleted: {$result['deleted']}");
|
||||
$this->info("Failed: {$result['failed']}");
|
||||
|
||||
foreach ($result['failures'] as $failure) {
|
||||
$this->error($failure['file_id'] . ': ' . $failure['error']);
|
||||
}
|
||||
|
||||
return $result['failed'] === 0 ? self::SUCCESS : self::FAILURE;
|
||||
return $this->executeFor(new OpenAiFileService((string) $setting->api_key));
|
||||
} catch (Throwable $exception) {
|
||||
$this->error($exception->getMessage());
|
||||
|
||||
return self::FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
private function executeFor(OpenAiFileService $service): int
|
||||
{
|
||||
if ((bool) $this->option('dry-run')) {
|
||||
$files = $service->listFiles();
|
||||
$this->info('Found ' . count($files) . ' OpenAI API file(s).');
|
||||
|
||||
foreach ($files as $file) {
|
||||
$this->line(sprintf('- %s %s', (string) ($file['id'] ?? 'unknown'), (string) ($file['filename'] ?? 'unnamed')));
|
||||
}
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
|
||||
$result = $service->deleteAllFiles();
|
||||
$this->info("Listed: {$result['listed']}");
|
||||
$this->info("Deleted: {$result['deleted']}");
|
||||
$this->info("Failed: {$result['failed']}");
|
||||
|
||||
foreach ($result['failures'] as $failure) {
|
||||
$this->error($failure['file_id'] . ': ' . $failure['error']);
|
||||
}
|
||||
|
||||
return $result['failed'] === 0 ? self::SUCCESS : self::FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
-1
@@ -16,6 +16,5 @@ class ChatGPTDatabaseSeeder extends Seeder
|
||||
{
|
||||
Model::unguard();
|
||||
|
||||
// $this->call("OthersTableSeeder");
|
||||
}
|
||||
}
|
||||
|
||||
Regular → Executable
+9
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\ChatGPT\Exceptions;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
final class OpenAiFileException extends RuntimeException {}
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+1
-3
@@ -79,9 +79,7 @@ class ChatGPTServiceProvider extends ServiceProvider
|
||||
$commandPath = __DIR__ . '/../Console';
|
||||
$commands = collect(File::allFiles($commandPath))
|
||||
->map(function ($file) {
|
||||
$class = 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
||||
|
||||
return $class;
|
||||
return 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
||||
})
|
||||
->filter(function ($class) {
|
||||
return class_exists($class);
|
||||
|
||||
Regular → Executable
-12
@@ -14,18 +14,6 @@ class RouteServiceProvider extends ServiceProvider
|
||||
*/
|
||||
protected $moduleNamespace = 'Modules\ChatGPT\Http\Controllers';
|
||||
|
||||
/**
|
||||
* Called before routes are registered.
|
||||
*
|
||||
* Register any model bindings or pattern based filters.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
parent::boot();
|
||||
}
|
||||
|
||||
/**
|
||||
* Define the routes for the application.
|
||||
*
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+11
-6
@@ -65,7 +65,8 @@
|
||||
</div>
|
||||
|
||||
<label class="inline-flex items-center gap-2 text-sm text-slate-700">
|
||||
<input type="checkbox" name="is_active" value="1" checked class="rounded border-slate-300 text-blue-600 focus:ring-blue-500">
|
||||
<label for="sonar-input-a09f3b253f" class="visually-hidden">is active</label>
|
||||
<input type="checkbox" name="is_active" value="1" checked class="rounded border-slate-300 text-blue-600 focus:ring-blue-500" id="sonar-input-a09f3b253f">
|
||||
Make active key
|
||||
</label>
|
||||
|
||||
@@ -82,6 +83,7 @@
|
||||
|
||||
<div class="mt-5 overflow-x-auto">
|
||||
<table class="min-w-full divide-y divide-slate-200 text-sm">
|
||||
<caption class="sr-only">Data table</caption>
|
||||
<thead class="bg-slate-50 text-left text-xs font-semibold uppercase tracking-wide text-slate-500">
|
||||
<tr>
|
||||
<th class="px-4 py-3">Name</th>
|
||||
@@ -99,24 +101,27 @@
|
||||
@csrf
|
||||
@method('PUT')
|
||||
|
||||
<input
|
||||
<label for="sonar-input-30f47d1294" class="visually-hidden">name</label>
|
||||
<input
|
||||
name="name"
|
||||
type="text"
|
||||
value="{{ old('name', $setting->name) }}"
|
||||
class="w-full rounded-lg border-slate-300 text-sm shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
||||
>
|
||||
id="name">
|
||||
|
||||
<input
|
||||
<label for="sonar-input-707eb8d2ba" class="visually-hidden">Leave blank to keep existing key</label>
|
||||
<input
|
||||
name="api_key"
|
||||
type="password"
|
||||
value=""
|
||||
autocomplete="new-password"
|
||||
placeholder="Leave blank to keep existing key"
|
||||
class="w-full rounded-lg border-slate-300 text-sm shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
||||
>
|
||||
id="sonar-input-707eb8d2ba">
|
||||
|
||||
<label class="inline-flex items-center gap-2 text-xs text-slate-600">
|
||||
<input
|
||||
<label for="sonar-input-da782f0360" class="visually-hidden">is active</label>
|
||||
<input
|
||||
type="checkbox"
|
||||
name="is_active"
|
||||
value="1"
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+4
-4
@@ -4,7 +4,7 @@ namespace Modules\ChatGPT\Services;
|
||||
|
||||
use Illuminate\Http\Client\PendingRequest;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use RuntimeException;
|
||||
use Modules\ChatGPT\Exceptions\OpenAiFileException;
|
||||
|
||||
class OpenAiFileService
|
||||
{
|
||||
@@ -33,7 +33,7 @@ class OpenAiFileService
|
||||
->get(self::BASE_URL . '/files', $query);
|
||||
|
||||
if ($response->failed()) {
|
||||
throw new RuntimeException('OpenAI file list request failed: ' . $response->body());
|
||||
throw new OpenAiFileException('OpenAI file list request failed: ' . $response->body());
|
||||
}
|
||||
|
||||
$payload = $response->json();
|
||||
@@ -63,7 +63,7 @@ class OpenAiFileService
|
||||
->delete(self::BASE_URL . '/files/' . rawurlencode($fileId));
|
||||
|
||||
if ($response->failed()) {
|
||||
throw new RuntimeException("OpenAI file delete request failed for {$fileId}: " . $response->body());
|
||||
throw new OpenAiFileException("OpenAI file delete request failed for {$fileId}: " . $response->body());
|
||||
}
|
||||
|
||||
return $response->json() ?? [];
|
||||
@@ -90,7 +90,7 @@ class OpenAiFileService
|
||||
try {
|
||||
$this->deleteFile($fileId);
|
||||
$deleted++;
|
||||
} catch (RuntimeException $exception) {
|
||||
} catch (OpenAiFileException $exception) {
|
||||
$failures[] = [
|
||||
'file_id' => $fileId,
|
||||
'error' => $exception->getMessage(),
|
||||
|
||||
Regular → Executable
Regular → Executable
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user