Added almost all features except language, ads, seo, pages

This commit is contained in:
Gitea
2025-04-27 06:28:15 +05:30
parent 89f6410578
commit 94eb01b1ab
43 changed files with 1842 additions and 188 deletions

View File

@@ -1,8 +1,21 @@
<?php
use App\Models\Email;
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
Schedule::call(function () {
Email::fetchProcessStoreEmail();
})->everyMinute();
Schedule::call(function () {
Email::deleteBulkAttachments();
})->daily();
Schedule::call(function () {
Email::deleteBulkMailboxes();
})->everyMinute();

View File

@@ -1,14 +1,27 @@
<?php
use App\Http\Controllers\AppController;
use App\Livewire\Email;
use App\Livewire\EmailInbox;
use App\Livewire\Frontend\Mailbox;
use App\Livewire\Home;
use App\Models\ZEmail;
use Illuminate\Support\Facades\Route;
Route::get('/', Home::class)->name('home');
Route::get('/mailbox', Email::class)->name('mailbox');
Route::get('/mailbox', Mailbox::class)->name('mailbox');
Route::get('/switch/{email}', [AppController::class, 'switch'])->name('switch');
Route::get('/delete/{email?}', [AppController::class, 'delete'])->name('delete');
Route::get('locale/{locale}', [AppController::class, 'locale'])->name('locale');
Route::get('/download-email', function () {
$data = 'Your content here'; // or pull from DB / session
$filename = 'data.txt';
return response($data)
->header('Content-Type', 'text/plain')
->header('Content-Disposition', "attachment; filename={$filename}");
})->name('download.txt');
Route::get('/msg/{email?}/', function ($email) {
$responses = [
@@ -19,3 +32,17 @@ Route::get('/msg/{email?}/', function ($email) {
$notifications = array_merge($responses['to']['notifications'], $responses['cc']['notifications']);
return $messages;
})->name('test');
Route::get('/fetchStore', function () {
\App\Models\Email::fetchProcessStoreEmail();
return 'Email fetched and saved!';
});
Route::get('/get/{email?}', function ($email) {
return \App\Models\Email::parseEmail($email);
});
Route::get('/del', function () {
dd(\App\Models\Email::mailToDBStatus());
return \App\Models\Email::mailToDBStatus();
});