Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,21 @@
_ide_helper.php
Homestead.json
Homestead.yaml
Thumbs.db
Thumb.db

/database/database.sqlite
/app-release-signed.apk*
/my-release-key*

# Credential files (keystores, private keys, etc.)
/credentials/

# AI tools
.agents
.mcp.json
CLAUDE.md
AGENTS.md
GEMINI.md
.claude
.junie
.gemini
19 changes: 10 additions & 9 deletions app/Livewire/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@

use App\Enum\BeepLeadIn;
use App\Models\Setting;
use Illuminate\Support\Facades\Log;
use Illuminate\Validation\Rules\Enum;
use Illuminate\View\View;
use Livewire\Attributes\Layout;
use Livewire\Attributes\Title;
use Livewire\Component;
use Nbucic\AudioTts\AudioTTS;

#[Layout('layouts.app')]
#[Title('Settings — Interval Timer')]
class Settings extends Component
{
public BeepLeadIn $defaultBeepLeadIn = BeepLeadIn::Three;

public string $defaultEndSound = 'triple';

public string $soundMode = 'beep';

public float $volume = 0.8;

public bool $keepScreenOn = true;

public bool $saved = false;
Expand Down Expand Up @@ -69,14 +71,13 @@ public function save(): void

public function updateAndTest(string $soundMode): void
{
Log::info('Updating settings and testing voice mode...');
$this->soundMode = $soundMode;
if ($soundMode === 'voice') {
\Nbucic\AudioTts\Facades\AudioTTS::speak('Where is Darth Vader now?', 1.0);
// $this->dispatch('playVoiceSound', reason: 'test');
} else {
$this->dispatch('playBeepSound', sound: 'chime');
if (app()->isLocal()) {
if ($soundMode === 'voice') {
$this->dispatch('play-TTS-Sound', text: '3, 2, 1, - GO');
} else {
$this->dispatch('playBeepSound', sound: 'triple');
}
}
Log::info('Updating settings and testing voice mode... [DONE]');
}
}
22 changes: 22 additions & 0 deletions boost.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"agents": [
"junie",
"claude_code",
"gemini"
],
"guidelines": true,
"mcp": true,
"nightwatch_mcp": false,
"packages": [
"nbucic/audio-tts",
"nativephp/mobile"
],
"sail": false,
"skills": [
"laravel-best-practices",
"livewire-development",
"pest-testing",
"tailwindcss-development",
"nativephp-mobile"
]
}
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/boost": "^2.4",
"laravel/pail": "^1.2.5",
"laravel/pint": "^1.27",
"mockery/mockery": "^1.6",
Expand All @@ -29,8 +30,7 @@
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Seeders\\": "database/seeders/"
"App\\": "app/"
}
},
"autoload-dev": {
Expand All @@ -52,6 +52,10 @@
"Composer\\Config::disableProcessTimeout",
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1 --timeout=0\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite --kill-others"
],
"mobile": [
"npm run build -- --mode=android",
"@php artisan native:run android"
],
"test": [
"@php artisan config:clear --ansi",
"@php artisan test"
Expand Down
Loading