diff --git a/MindShift-Windows/BUILD_APK.md b/MindShift-Windows/BUILD_APK.md
new file mode 100644
index 0000000..98ad450
--- /dev/null
+++ b/MindShift-Windows/BUILD_APK.md
@@ -0,0 +1,30 @@
+# 📱 How to Build the Offline APK
+
+I have converted the application to **Offline Mode**. It now stores all data locally on the device, so you **DO NOT** need to deploy a backend server.
+
+## 🚀 Steps to Build APK
+
+1. **Copy the Project:**
+ Download the entire `MindShift-Windows` folder to your local machine.
+
+2. **Install Dependencies:**
+ Open a terminal in the `MindShift-Windows` folder and run:
+ ```bash
+ npm install
+ ```
+
+3. **Open Android Studio:**
+ Run the following command to open the project in Android Studio (you must have Android Studio installed):
+ ```bash
+ npx cap open android
+ ```
+
+4. **Build & Run:**
+ - In Android Studio, wait for Gradle to sync.
+ - Click the **Run** (Play) button to test on an emulator/device.
+ - To build the APK: Go to `Build > Build Bundle(s) / APK(s) > Build APK(s)`.
+
+## ℹ️ Notes
+- The app now uses `localStorage` to save your Moods, Thoughts, and Gratitude entries.
+- If you uninstall the app, your data will be cleared (standard behavior for local-only apps).
+- No internet connection is required for the app to function.
diff --git a/MindShift-Windows/BUILD_NOW.bat b/MindShift-Windows/BUILD_NOW.bat
new file mode 100644
index 0000000..d42528a
--- /dev/null
+++ b/MindShift-Windows/BUILD_NOW.bat
@@ -0,0 +1,55 @@
+@echo off
+echo ===================================================
+echo MindShift APK Builder (One-Click)
+echo ===================================================
+echo.
+
+:: Check for Java
+where java >nul 2>nul
+if %errorlevel% neq 0 (
+ echo [ERROR] Java is not installed or not in PATH.
+ echo Please install Java (JDK 17 recommended) and try again.
+ pause
+ exit /b
+)
+
+:: Check for Android Home
+if "%ANDROID_HOME%"=="" (
+ echo [ERROR] ANDROID_HOME environment variable is not set.
+ echo Please install Android Studio and set ANDROID_HOME to your SDK location.
+ pause
+ exit /b
+)
+
+echo [1/3] Installing dependencies...
+call npm install
+if %errorlevel% neq 0 (
+ echo Failed to install dependencies.
+ pause
+ exit /b
+)
+
+echo [2/3] Syncing Capacitor...
+call npx cap sync
+if %errorlevel% neq 0 (
+ echo Failed to sync Capacitor.
+ pause
+ exit /b
+)
+
+echo [3/3] Building APK (Debug Mode)...
+cd android
+call gradlew.bat assembleDebug
+cd ..
+
+echo.
+echo ===================================================
+if exist "android\app\build\outputs\apk\debug\app-debug.apk" (
+ echo [SUCCESS] APK created successfully!
+ echo Location: android\app\build\outputs\apk\debug\app-debug.apk
+ explorer "android\app\build\outputs\apk\debug\"
+) else (
+ echo [ERROR] Build failed. Please check the logs above.
+)
+echo ===================================================
+pause
diff --git a/MindShift-Windows/MindShift-App.apk b/MindShift-Windows/MindShift-App.apk
new file mode 100644
index 0000000..8807588
Binary files /dev/null and b/MindShift-Windows/MindShift-App.apk differ
diff --git a/MindShift-Windows/MindShift-v1.0.1.apk b/MindShift-Windows/MindShift-v1.0.1.apk
new file mode 100644
index 0000000..3b83f0c
Binary files /dev/null and b/MindShift-Windows/MindShift-v1.0.1.apk differ
diff --git a/MindShift-Windows/MindShift-v1.0.2.apk b/MindShift-Windows/MindShift-v1.0.2.apk
new file mode 100644
index 0000000..5f98266
Binary files /dev/null and b/MindShift-Windows/MindShift-v1.0.2.apk differ
diff --git a/MindShift-Windows/android/.gitignore b/MindShift-Windows/android/.gitignore
new file mode 100644
index 0000000..48354a3
--- /dev/null
+++ b/MindShift-Windows/android/.gitignore
@@ -0,0 +1,101 @@
+# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
+
+# Built application files
+*.apk
+*.aar
+*.ap_
+*.aab
+
+# Files for the ART/Dalvik VM
+*.dex
+
+# Java class files
+*.class
+
+# Generated files
+bin/
+gen/
+out/
+# Uncomment the following line in case you need and you don't have the release build type files in your app
+# release/
+
+# Gradle files
+.gradle/
+build/
+
+# Local configuration file (sdk path, etc)
+local.properties
+
+# Proguard folder generated by Eclipse
+proguard/
+
+# Log Files
+*.log
+
+# Android Studio Navigation editor temp files
+.navigation/
+
+# Android Studio captures folder
+captures/
+
+# IntelliJ
+*.iml
+.idea/workspace.xml
+.idea/tasks.xml
+.idea/gradle.xml
+.idea/assetWizardSettings.xml
+.idea/dictionaries
+.idea/libraries
+# Android Studio 3 in .gitignore file.
+.idea/caches
+.idea/modules.xml
+# Comment next line if keeping position of elements in Navigation Editor is relevant for you
+.idea/navEditor.xml
+
+# Keystore files
+# Uncomment the following lines if you do not want to check your keystore files in.
+#*.jks
+#*.keystore
+
+# External native build folder generated in Android Studio 2.2 and later
+.externalNativeBuild
+.cxx/
+
+# Google Services (e.g. APIs or Firebase)
+# google-services.json
+
+# Freeline
+freeline.py
+freeline/
+freeline_project_description.json
+
+# fastlane
+fastlane/report.xml
+fastlane/Preview.html
+fastlane/screenshots
+fastlane/test_output
+fastlane/readme.md
+
+# Version control
+vcs.xml
+
+# lint
+lint/intermediates/
+lint/generated/
+lint/outputs/
+lint/tmp/
+# lint/reports/
+
+# Android Profiling
+*.hprof
+
+# Cordova plugins for Capacitor
+capacitor-cordova-android-plugins
+
+# Copied web assets
+app/src/main/assets/public
+
+# Generated Config files
+app/src/main/assets/capacitor.config.json
+app/src/main/assets/capacitor.plugins.json
+app/src/main/res/xml/config.xml
diff --git a/MindShift-Windows/android/app/.gitignore b/MindShift-Windows/android/app/.gitignore
new file mode 100644
index 0000000..043df80
--- /dev/null
+++ b/MindShift-Windows/android/app/.gitignore
@@ -0,0 +1,2 @@
+/build/*
+!/build/.npmkeep
diff --git a/MindShift-Windows/android/app/build.gradle b/MindShift-Windows/android/app/build.gradle
new file mode 100644
index 0000000..b6bda86
--- /dev/null
+++ b/MindShift-Windows/android/app/build.gradle
@@ -0,0 +1,54 @@
+apply plugin: 'com.android.application'
+
+android {
+ namespace "com.mindshift.app"
+ compileSdk rootProject.ext.compileSdkVersion
+ defaultConfig {
+ applicationId "com.mindshift.app"
+ minSdkVersion rootProject.ext.minSdkVersion
+ targetSdkVersion rootProject.ext.targetSdkVersion
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ aaptOptions {
+ // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
+ // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
+ ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
+ }
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+repositories {
+ flatDir{
+ dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
+ }
+}
+
+dependencies {
+ implementation fileTree(include: ['*.jar'], dir: 'libs')
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
+ implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
+ implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
+ implementation project(':capacitor-android')
+ testImplementation "junit:junit:$junitVersion"
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
+ implementation project(':capacitor-cordova-android-plugins')
+}
+
+apply from: 'capacitor.build.gradle'
+
+try {
+ def servicesJSON = file('google-services.json')
+ if (servicesJSON.text) {
+ apply plugin: 'com.google.gms.google-services'
+ }
+} catch(Exception e) {
+ logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
+}
diff --git a/MindShift-Windows/android/app/capacitor.build.gradle b/MindShift-Windows/android/app/capacitor.build.gradle
new file mode 100644
index 0000000..23c73a9
--- /dev/null
+++ b/MindShift-Windows/android/app/capacitor.build.gradle
@@ -0,0 +1,19 @@
+// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
+
+android {
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_21
+ targetCompatibility JavaVersion.VERSION_21
+ }
+}
+
+apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
+dependencies {
+ implementation project(':capacitor-haptics')
+
+}
+
+
+if (hasProperty('postBuildExtras')) {
+ postBuildExtras()
+}
diff --git a/MindShift-Windows/android/app/proguard-rules.pro b/MindShift-Windows/android/app/proguard-rules.pro
new file mode 100644
index 0000000..f1b4245
--- /dev/null
+++ b/MindShift-Windows/android/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/MindShift-Windows/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java b/MindShift-Windows/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..f2c2217
--- /dev/null
+++ b/MindShift-Windows/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.getcapacitor.myapp;
+
+import static org.junit.Assert.*;
+
+import android.content.Context;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+import androidx.test.platform.app.InstrumentationRegistry;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+
+ assertEquals("com.getcapacitor.app", appContext.getPackageName());
+ }
+}
diff --git a/MindShift-Windows/android/app/src/main/AndroidManifest.xml b/MindShift-Windows/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..340e7df
--- /dev/null
+++ b/MindShift-Windows/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MindShift-Windows/android/app/src/main/java/com/mindshift/app/MainActivity.java b/MindShift-Windows/android/app/src/main/java/com/mindshift/app/MainActivity.java
new file mode 100644
index 0000000..a0e6563
--- /dev/null
+++ b/MindShift-Windows/android/app/src/main/java/com/mindshift/app/MainActivity.java
@@ -0,0 +1,5 @@
+package com.mindshift.app;
+
+import com.getcapacitor.BridgeActivity;
+
+public class MainActivity extends BridgeActivity {}
diff --git a/MindShift-Windows/android/app/src/main/res/drawable-land-hdpi/splash.png b/MindShift-Windows/android/app/src/main/res/drawable-land-hdpi/splash.png
new file mode 100644
index 0000000..e31573b
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/drawable-land-hdpi/splash.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/drawable-land-mdpi/splash.png b/MindShift-Windows/android/app/src/main/res/drawable-land-mdpi/splash.png
new file mode 100644
index 0000000..f7a6492
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/drawable-land-mdpi/splash.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/drawable-land-xhdpi/splash.png b/MindShift-Windows/android/app/src/main/res/drawable-land-xhdpi/splash.png
new file mode 100644
index 0000000..8077255
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/drawable-land-xhdpi/splash.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/drawable-land-xxhdpi/splash.png b/MindShift-Windows/android/app/src/main/res/drawable-land-xxhdpi/splash.png
new file mode 100644
index 0000000..14c6c8f
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/drawable-land-xxhdpi/splash.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/drawable-land-xxxhdpi/splash.png b/MindShift-Windows/android/app/src/main/res/drawable-land-xxxhdpi/splash.png
new file mode 100644
index 0000000..244ca25
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/drawable-land-xxxhdpi/splash.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/drawable-port-hdpi/splash.png b/MindShift-Windows/android/app/src/main/res/drawable-port-hdpi/splash.png
new file mode 100644
index 0000000..74faaa5
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/drawable-port-hdpi/splash.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/drawable-port-mdpi/splash.png b/MindShift-Windows/android/app/src/main/res/drawable-port-mdpi/splash.png
new file mode 100644
index 0000000..e944f4a
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/drawable-port-mdpi/splash.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/drawable-port-xhdpi/splash.png b/MindShift-Windows/android/app/src/main/res/drawable-port-xhdpi/splash.png
new file mode 100644
index 0000000..564a82f
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/drawable-port-xhdpi/splash.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/drawable-port-xxhdpi/splash.png b/MindShift-Windows/android/app/src/main/res/drawable-port-xxhdpi/splash.png
new file mode 100644
index 0000000..bfabe68
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/drawable-port-xxhdpi/splash.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/drawable-port-xxxhdpi/splash.png b/MindShift-Windows/android/app/src/main/res/drawable-port-xxxhdpi/splash.png
new file mode 100644
index 0000000..6929071
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/drawable-port-xxxhdpi/splash.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/MindShift-Windows/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..c7bd21d
--- /dev/null
+++ b/MindShift-Windows/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MindShift-Windows/android/app/src/main/res/drawable/ic_launcher_background.xml b/MindShift-Windows/android/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..d5fccc5
--- /dev/null
+++ b/MindShift-Windows/android/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MindShift-Windows/android/app/src/main/res/drawable/splash.png b/MindShift-Windows/android/app/src/main/res/drawable/splash.png
new file mode 100644
index 0000000..f7a6492
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/drawable/splash.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/layout/activity_main.xml b/MindShift-Windows/android/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..b5ad138
--- /dev/null
+++ b/MindShift-Windows/android/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/MindShift-Windows/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..036d09b
--- /dev/null
+++ b/MindShift-Windows/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/MindShift-Windows/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..036d09b
--- /dev/null
+++ b/MindShift-Windows/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/MindShift-Windows/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..c023e50
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/MindShift-Windows/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..2127973
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/MindShift-Windows/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..b441f37
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/MindShift-Windows/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..72905b8
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/MindShift-Windows/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..8ed0605
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/MindShift-Windows/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9502e47
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/MindShift-Windows/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d1e077
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/MindShift-Windows/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..df0f158
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/MindShift-Windows/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..853db04
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/MindShift-Windows/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..6cdf97c
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/MindShift-Windows/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..2960cbb
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/MindShift-Windows/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..8e3093a
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/MindShift-Windows/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..46de6e2
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/MindShift-Windows/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..d2ea9ab
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/MindShift-Windows/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..a40d73e
Binary files /dev/null and b/MindShift-Windows/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/MindShift-Windows/android/app/src/main/res/values/ic_launcher_background.xml b/MindShift-Windows/android/app/src/main/res/values/ic_launcher_background.xml
new file mode 100644
index 0000000..c5d5899
--- /dev/null
+++ b/MindShift-Windows/android/app/src/main/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+
+
+ #FFFFFF
+
\ No newline at end of file
diff --git a/MindShift-Windows/android/app/src/main/res/values/strings.xml b/MindShift-Windows/android/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..8e6b072
--- /dev/null
+++ b/MindShift-Windows/android/app/src/main/res/values/strings.xml
@@ -0,0 +1,7 @@
+
+
+ MindShift
+ MindShift
+ com.mindshift.app
+ com.mindshift.app
+
diff --git a/MindShift-Windows/android/app/src/main/res/values/styles.xml b/MindShift-Windows/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..be874e5
--- /dev/null
+++ b/MindShift-Windows/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MindShift-Windows/android/app/src/main/res/xml/file_paths.xml b/MindShift-Windows/android/app/src/main/res/xml/file_paths.xml
new file mode 100644
index 0000000..bd0c4d8
--- /dev/null
+++ b/MindShift-Windows/android/app/src/main/res/xml/file_paths.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MindShift-Windows/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java b/MindShift-Windows/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java
new file mode 100644
index 0000000..0297327
--- /dev/null
+++ b/MindShift-Windows/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java
@@ -0,0 +1,18 @@
+package com.getcapacitor.myapp;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
diff --git a/MindShift-Windows/android/build.gradle b/MindShift-Windows/android/build.gradle
new file mode 100644
index 0000000..f1b3b0e
--- /dev/null
+++ b/MindShift-Windows/android/build.gradle
@@ -0,0 +1,29 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+
+ repositories {
+ google()
+ mavenCentral()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:8.7.2'
+ classpath 'com.google.gms:google-services:4.4.2'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+apply from: "variables.gradle"
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/MindShift-Windows/android/capacitor.settings.gradle b/MindShift-Windows/android/capacitor.settings.gradle
new file mode 100644
index 0000000..5c31b57
--- /dev/null
+++ b/MindShift-Windows/android/capacitor.settings.gradle
@@ -0,0 +1,6 @@
+// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
+include ':capacitor-android'
+project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
+
+include ':capacitor-haptics'
+project(':capacitor-haptics').projectDir = new File('../node_modules/@capacitor/haptics/android')
diff --git a/MindShift-Windows/android/gradle.properties b/MindShift-Windows/android/gradle.properties
new file mode 100644
index 0000000..2e87c52
--- /dev/null
+++ b/MindShift-Windows/android/gradle.properties
@@ -0,0 +1,22 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
diff --git a/MindShift-Windows/android/gradle/wrapper/gradle-wrapper.jar b/MindShift-Windows/android/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..a4b76b9
Binary files /dev/null and b/MindShift-Windows/android/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/MindShift-Windows/android/gradle/wrapper/gradle-wrapper.properties b/MindShift-Windows/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..c1d5e01
--- /dev/null
+++ b/MindShift-Windows/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,7 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
+networkTimeout=10000
+validateDistributionUrl=true
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/MindShift-Windows/android/gradlew b/MindShift-Windows/android/gradlew
new file mode 100644
index 0000000..f5feea6
--- /dev/null
+++ b/MindShift-Windows/android/gradlew
@@ -0,0 +1,252 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+# This is normally unused
+# shellcheck disable=SC2034
+APP_BASE_NAME=${0##*/}
+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
+APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
+' "$PWD" ) || exit
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ if ! command -v java >/dev/null 2>&1
+ then
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Collect all arguments for the java command:
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
+# and any embedded shellness will be escaped.
+# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
+# treated as '${Hostname}' itself on the command line.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+ die "xargs is not available"
+fi
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/MindShift-Windows/android/gradlew.bat b/MindShift-Windows/android/gradlew.bat
new file mode 100644
index 0000000..9d21a21
--- /dev/null
+++ b/MindShift-Windows/android/gradlew.bat
@@ -0,0 +1,94 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+@rem SPDX-License-Identifier: Apache-2.0
+@rem
+
+@if "%DEBUG%"=="" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%"=="" set DIRNAME=.
+@rem This is normally unused
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if %ERRORLEVEL% equ 0 goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if %ERRORLEVEL% equ 0 goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/MindShift-Windows/android/settings.gradle b/MindShift-Windows/android/settings.gradle
new file mode 100644
index 0000000..3b4431d
--- /dev/null
+++ b/MindShift-Windows/android/settings.gradle
@@ -0,0 +1,5 @@
+include ':app'
+include ':capacitor-cordova-android-plugins'
+project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')
+
+apply from: 'capacitor.settings.gradle'
\ No newline at end of file
diff --git a/MindShift-Windows/android/variables.gradle b/MindShift-Windows/android/variables.gradle
new file mode 100644
index 0000000..2c8e408
--- /dev/null
+++ b/MindShift-Windows/android/variables.gradle
@@ -0,0 +1,16 @@
+ext {
+ minSdkVersion = 23
+ compileSdkVersion = 35
+ targetSdkVersion = 35
+ androidxActivityVersion = '1.9.2'
+ androidxAppCompatVersion = '1.7.0'
+ androidxCoordinatorLayoutVersion = '1.2.0'
+ androidxCoreVersion = '1.15.0'
+ androidxFragmentVersion = '1.8.4'
+ coreSplashScreenVersion = '1.0.1'
+ androidxWebkitVersion = '1.12.1'
+ junitVersion = '4.13.2'
+ androidxJunitVersion = '1.2.1'
+ androidxEspressoCoreVersion = '3.6.1'
+ cordovaAndroidVersion = '10.1.1'
+}
\ No newline at end of file
diff --git a/MindShift-Windows/build_apk.sh b/MindShift-Windows/build_apk.sh
new file mode 100644
index 0000000..0421525
--- /dev/null
+++ b/MindShift-Windows/build_apk.sh
@@ -0,0 +1,62 @@
+#!/bin/bash
+set -e
+
+echo "🚀 Starting Automated APK Build in WSL..."
+
+# --- SETUP JAVA 21 (Portable) ---
+JAVA_DIR="$HOME/java-21"
+if [ ! -d "$JAVA_DIR" ]; then
+ echo "⬇️ Downloading OpenJDK 21 (Temurin)..."
+ mkdir -p "$JAVA_DIR"
+ cd "$JAVA_DIR"
+ # Adoptium Temurin JDK 21
+ wget -q -L https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jdk_x64_linux_hotspot_21.0.2_13.tar.gz -O jdk21.tar.gz
+ tar -xzf jdk21.tar.gz --strip-components=1
+ rm jdk21.tar.gz
+ echo "✅ Java 21 Installed."
+else
+ echo "✅ Java 21 already present."
+fi
+
+export JAVA_HOME="$JAVA_DIR"
+export PATH="$JAVA_HOME/bin:$PATH"
+
+# --- SETUP ANDROID SDK ---
+SDK_DIR="$HOME/android-sdk"
+mkdir -p "$SDK_DIR/cmdline-tools"
+
+if [ ! -d "$SDK_DIR/cmdline-tools/latest" ]; then
+ echo "⬇️ Downloading Android Command Line Tools..."
+ cd "$SDK_DIR/cmdline-tools"
+ wget -q https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip -O tools.zip
+ unzip -q tools.zip
+ mv cmdline-tools latest
+ rm tools.zip
+ echo "✅ Tools downloaded."
+else
+ echo "✅ Android Tools already present."
+fi
+
+export ANDROID_HOME="$SDK_DIR"
+export PATH="$PATH:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools"
+
+# --- INSTALL SDK PACKAGES ---
+echo "📦 Checking SDK Packages..."
+yes | sdkmanager --licenses > /dev/null
+# Only install if missing to save time
+if [ ! -d "$SDK_DIR/platforms/android-35" ]; then
+ echo "⬇️ Installing Platform 35..."
+ sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0" > /dev/null
+fi
+
+# --- BUILD APK ---
+PROJECT_DIR="/mnt/e/TRAE Playground/MindShift-Windows/android"
+cd "$PROJECT_DIR"
+
+echo "🔨 Building APK with Java 21..."
+chmod +x gradlew
+./gradlew assembleDebug
+
+# --- SUCCESS ---
+echo "🎉 Build Complete!"
+echo "APK Location: $PROJECT_DIR/app/build/outputs/apk/debug/app-debug.apk"
diff --git a/MindShift-Windows/capacitor.config.ts b/MindShift-Windows/capacitor.config.ts
new file mode 100644
index 0000000..00b9071
--- /dev/null
+++ b/MindShift-Windows/capacitor.config.ts
@@ -0,0 +1,9 @@
+import type { CapacitorConfig } from '@capacitor/cli';
+
+const config: CapacitorConfig = {
+ appId: 'com.mindshift.app',
+ appName: 'MindShift',
+ webDir: 'src'
+};
+
+export default config;
diff --git a/MindShift-Windows/package-lock.json b/MindShift-Windows/package-lock.json
index 6cd5dae..419bba3 100644
--- a/MindShift-Windows/package-lock.json
+++ b/MindShift-Windows/package-lock.json
@@ -9,6 +9,10 @@
"version": "1.0.0",
"license": "MIT",
"dependencies": {
+ "@capacitor/android": "^7.4.4",
+ "@capacitor/cli": "^7.4.4",
+ "@capacitor/core": "^7.4.4",
+ "@capacitor/haptics": "^7.0.2",
"electron-updater": "^6.1.7"
},
"devDependencies": {
@@ -19,6 +23,206 @@
"rimraf": "^5.0.5"
}
},
+ "node_modules/@capacitor/android": {
+ "version": "7.4.4",
+ "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-7.4.4.tgz",
+ "integrity": "sha512-y8knfV1JXNrd6XZZLZireGT+EBCN0lvOo+HZ/s7L8LkrPBu4nY5UZn0Wxz4yOezItEII9rqYJSHsS5fMJG9gdw==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@capacitor/core": "^7.4.0"
+ }
+ },
+ "node_modules/@capacitor/cli": {
+ "version": "7.4.4",
+ "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-7.4.4.tgz",
+ "integrity": "sha512-J7ciBE7GlJ70sr2s8oz1+H4ZdNk4MGG41fsakUlDHWva5UWgFIZYMiEdDvGbYazAYTaxN3lVZpH9zil9FfZj+Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@ionic/cli-framework-output": "^2.2.8",
+ "@ionic/utils-subprocess": "^3.0.1",
+ "@ionic/utils-terminal": "^2.3.5",
+ "commander": "^12.1.0",
+ "debug": "^4.4.0",
+ "env-paths": "^2.2.0",
+ "fs-extra": "^11.2.0",
+ "kleur": "^4.1.5",
+ "native-run": "^2.0.1",
+ "open": "^8.4.0",
+ "plist": "^3.1.0",
+ "prompts": "^2.4.2",
+ "rimraf": "^6.0.1",
+ "semver": "^7.6.3",
+ "tar": "^6.1.11",
+ "tslib": "^2.8.1",
+ "xml2js": "^0.6.2"
+ },
+ "bin": {
+ "cap": "bin/capacitor",
+ "capacitor": "bin/capacitor"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@capacitor/cli/node_modules/commander": {
+ "version": "12.1.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
+ "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@capacitor/cli/node_modules/fs-extra": {
+ "version": "11.3.2",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.2.tgz",
+ "integrity": "sha512-Xr9F6z6up6Ws+NjzMCZc6WXg2YFRlrLP9NQDO3VQrWrfiojdhS56TzueT88ze0uBdCTwEIhQ3ptnmKeWGFAe0A==",
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=14.14"
+ }
+ },
+ "node_modules/@capacitor/cli/node_modules/glob": {
+ "version": "13.0.0",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.0.tgz",
+ "integrity": "sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==",
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "minimatch": "^10.1.1",
+ "minipass": "^7.1.2",
+ "path-scurry": "^2.0.0"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/@capacitor/cli/node_modules/jsonfile": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz",
+ "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==",
+ "license": "MIT",
+ "dependencies": {
+ "universalify": "^2.0.0"
+ },
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "node_modules/@capacitor/cli/node_modules/lru-cache": {
+ "version": "11.2.4",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.4.tgz",
+ "integrity": "sha512-B5Y16Jr9LB9dHVkh6ZevG+vAbOsNOYCX+sXvFWFu7B3Iz5mijW3zdbMyhsh8ANd2mSWBYdJgnqi+mL7/LrOPYg==",
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/@capacitor/cli/node_modules/minimatch": {
+ "version": "10.1.1",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz",
+ "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==",
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "@isaacs/brace-expansion": "^5.0.0"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/@capacitor/cli/node_modules/minipass": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
+ "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/@capacitor/cli/node_modules/path-scurry": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.1.tgz",
+ "integrity": "sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA==",
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "lru-cache": "^11.0.0",
+ "minipass": "^7.1.2"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/@capacitor/cli/node_modules/rimraf": {
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.1.2.tgz",
+ "integrity": "sha512-cFCkPslJv7BAXJsYlK1dZsbP8/ZNLkCAQ0bi1hf5EKX2QHegmDFEFA6QhuYJlk7UDdc+02JjO80YSOrWPpw06g==",
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "glob": "^13.0.0",
+ "package-json-from-dist": "^1.0.1"
+ },
+ "bin": {
+ "rimraf": "dist/esm/bin.mjs"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/@capacitor/cli/node_modules/semver": {
+ "version": "7.7.3",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz",
+ "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@capacitor/cli/node_modules/universalify": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",
+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/@capacitor/core": {
+ "version": "7.4.4",
+ "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-7.4.4.tgz",
+ "integrity": "sha512-xzjxpr+d2zwTpCaN0k+C6wKSZzWFAb9OVEUtmO72ihjr/NEDoLvsGl4WLfjWPcCO2zOy0b2X52tfRWjECFUjtw==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.1.0"
+ }
+ },
+ "node_modules/@capacitor/haptics": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@capacitor/haptics/-/haptics-7.0.2.tgz",
+ "integrity": "sha512-vqfeEM6s2zMgLjpITCTUIy7P/hadq/Gr5E/RClFgMJPB41Y5FsqOKD+j85/uwh8N2cf/aWaPeXUmjnTzJbEB2g==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@capacitor/core": ">=7.0.0"
+ }
+ },
"node_modules/@develar/schema-utils": {
"version": "2.6.5",
"resolved": "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz",
@@ -310,6 +514,225 @@
"node": ">= 10.0.0"
}
},
+ "node_modules/@ionic/cli-framework-output": {
+ "version": "2.2.8",
+ "resolved": "https://registry.npmjs.org/@ionic/cli-framework-output/-/cli-framework-output-2.2.8.tgz",
+ "integrity": "sha512-TshtaFQsovB4NWRBydbNFawql6yul7d5bMiW1WYYf17hd99V6xdDdk3vtF51bw6sLkxON3bDQpWsnUc9/hVo3g==",
+ "license": "MIT",
+ "dependencies": {
+ "@ionic/utils-terminal": "2.3.5",
+ "debug": "^4.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@ionic/utils-array": {
+ "version": "2.1.6",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-array/-/utils-array-2.1.6.tgz",
+ "integrity": "sha512-0JZ1Zkp3wURnv8oq6Qt7fMPo5MpjbLoUoa9Bu2Q4PJuSDWM8H8gwF3dQO7VTeUj3/0o1IB1wGkFWZZYgUXZMUg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@ionic/utils-fs": {
+ "version": "3.1.7",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-fs/-/utils-fs-3.1.7.tgz",
+ "integrity": "sha512-2EknRvMVfhnyhL1VhFkSLa5gOcycK91VnjfrTB0kbqkTFCOXyXgVLI5whzq7SLrgD9t1aqos3lMMQyVzaQ5gVA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/fs-extra": "^8.0.0",
+ "debug": "^4.0.0",
+ "fs-extra": "^9.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@ionic/utils-fs/node_modules/@types/fs-extra": {
+ "version": "8.1.5",
+ "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.1.5.tgz",
+ "integrity": "sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@ionic/utils-fs/node_modules/fs-extra": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
+ "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
+ "license": "MIT",
+ "dependencies": {
+ "at-least-node": "^1.0.0",
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@ionic/utils-fs/node_modules/jsonfile": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz",
+ "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==",
+ "license": "MIT",
+ "dependencies": {
+ "universalify": "^2.0.0"
+ },
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "node_modules/@ionic/utils-fs/node_modules/universalify": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",
+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/@ionic/utils-object": {
+ "version": "2.1.6",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-object/-/utils-object-2.1.6.tgz",
+ "integrity": "sha512-vCl7sl6JjBHFw99CuAqHljYJpcE88YaH2ZW4ELiC/Zwxl5tiwn4kbdP/gxi2OT3MQb1vOtgAmSNRtusvgxI8ww==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@ionic/utils-process": {
+ "version": "2.1.12",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-process/-/utils-process-2.1.12.tgz",
+ "integrity": "sha512-Jqkgyq7zBs/v/J3YvKtQQiIcxfJyplPgECMWgdO0E1fKrrH8EF0QGHNJ9mJCn6PYe2UtHNS8JJf5G21e09DfYg==",
+ "license": "MIT",
+ "dependencies": {
+ "@ionic/utils-object": "2.1.6",
+ "@ionic/utils-terminal": "2.3.5",
+ "debug": "^4.0.0",
+ "signal-exit": "^3.0.3",
+ "tree-kill": "^1.2.2",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@ionic/utils-process/node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "license": "ISC"
+ },
+ "node_modules/@ionic/utils-stream": {
+ "version": "3.1.7",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-stream/-/utils-stream-3.1.7.tgz",
+ "integrity": "sha512-eSELBE7NWNFIHTbTC2jiMvh1ABKGIpGdUIvARsNPMNQhxJB3wpwdiVnoBoTYp+5a6UUIww4Kpg7v6S7iTctH1w==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@ionic/utils-subprocess": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-subprocess/-/utils-subprocess-3.0.1.tgz",
+ "integrity": "sha512-cT4te3AQQPeIM9WCwIg8ohroJ8TjsYaMb2G4ZEgv9YzeDqHZ4JpeIKqG2SoaA3GmVQ3sOfhPM6Ox9sxphV/d1A==",
+ "license": "MIT",
+ "dependencies": {
+ "@ionic/utils-array": "2.1.6",
+ "@ionic/utils-fs": "3.1.7",
+ "@ionic/utils-process": "2.1.12",
+ "@ionic/utils-stream": "3.1.7",
+ "@ionic/utils-terminal": "2.3.5",
+ "cross-spawn": "^7.0.3",
+ "debug": "^4.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@ionic/utils-terminal": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-terminal/-/utils-terminal-2.3.5.tgz",
+ "integrity": "sha512-3cKScz9Jx2/Pr9ijj1OzGlBDfcmx7OMVBt4+P1uRR0SSW4cm1/y3Mo4OY3lfkuaYifMNBW8Wz6lQHbs1bihr7A==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/slice-ansi": "^4.0.0",
+ "debug": "^4.0.0",
+ "signal-exit": "^3.0.3",
+ "slice-ansi": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0",
+ "tslib": "^2.0.1",
+ "untildify": "^4.0.0",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@ionic/utils-terminal/node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "license": "ISC"
+ },
+ "node_modules/@ionic/utils-terminal/node_modules/slice-ansi": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz",
+ "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "astral-regex": "^2.0.0",
+ "is-fullwidth-code-point": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"
+ }
+ },
+ "node_modules/@isaacs/balanced-match": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz",
+ "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==",
+ "license": "MIT",
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/@isaacs/brace-expansion": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz",
+ "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==",
+ "license": "MIT",
+ "dependencies": {
+ "@isaacs/balanced-match": "^4.0.1"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
"node_modules/@isaacs/cliui": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
@@ -599,7 +1022,6 @@
"version": "18.19.130",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.130.tgz",
"integrity": "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==",
- "dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~5.26.4"
@@ -627,6 +1049,12 @@
"@types/node": "*"
}
},
+ "node_modules/@types/slice-ansi": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/@types/slice-ansi/-/slice-ansi-4.0.0.tgz",
+ "integrity": "sha512-+OpjSaq85gvlZAYINyzKpLeiFkSC4EsC6IIiT6v6TLSU5k5U83fHGj9Lel8oKEXM0HqgrMVCjXPDPVICtxF7EQ==",
+ "license": "MIT"
+ },
"node_modules/@types/verror": {
"version": "1.10.11",
"resolved": "https://registry.npmjs.org/@types/verror/-/verror-1.10.11.tgz",
@@ -650,7 +1078,6 @@
"version": "0.8.11",
"resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.11.tgz",
"integrity": "sha512-cQzWCtO6C8TQiYl1ruKNn2U6Ao4o4WBBcbL61yJl84x+j5sOWWFU9X7DpND8XZG3daDppSsigMdfAIl2upQBRw==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=10.0.0"
@@ -748,7 +1175,6 @@
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
@@ -758,7 +1184,6 @@
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
"license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
@@ -971,9 +1396,7 @@
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz",
"integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==",
- "dev": true,
"license": "MIT",
- "optional": true,
"engines": {
"node": ">=8"
}
@@ -1006,7 +1429,6 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",
"integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",
- "dev": true,
"license": "ISC",
"engines": {
"node": ">= 4.0.0"
@@ -1023,7 +1445,6 @@
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
- "dev": true,
"funding": [
{
"type": "github",
@@ -1040,6 +1461,15 @@
],
"license": "MIT"
},
+ "node_modules/big-integer": {
+ "version": "1.6.52",
+ "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz",
+ "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==",
+ "license": "Unlicense",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
"node_modules/bl": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
@@ -1121,6 +1551,18 @@
"license": "MIT",
"optional": true
},
+ "node_modules/bplist-parser": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.2.tgz",
+ "integrity": "sha512-apC2+fspHGI3mMKj+dGevkGo/tCqVB8jMb6i+OX+E29p0Iposz07fABkRIfVUPNd5A5VbuOz1bZbnmkKLYF+wQ==",
+ "license": "MIT",
+ "dependencies": {
+ "big-integer": "1.6.x"
+ },
+ "engines": {
+ "node": ">= 5.10.0"
+ }
+ },
"node_modules/brace-expansion": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
@@ -1160,7 +1602,6 @@
"version": "0.2.13",
"resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
"integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",
- "dev": true,
"license": "MIT",
"engines": {
"node": "*"
@@ -1354,7 +1795,6 @@
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
"integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
- "dev": true,
"license": "ISC",
"engines": {
"node": ">=10"
@@ -1433,7 +1873,6 @@
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
"license": "MIT",
"dependencies": {
"color-name": "~1.1.4"
@@ -1446,7 +1885,6 @@
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true,
"license": "MIT"
},
"node_modules/combined-stream": {
@@ -1700,7 +2138,6 @@
"version": "7.0.6",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"path-key": "^3.1.0",
@@ -1786,6 +2223,15 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/define-lazy-prop": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",
+ "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/define-properties": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",
@@ -2282,11 +2728,28 @@
"node": ">= 10.0.0"
}
},
+ "node_modules/elementtree": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmjs.org/elementtree/-/elementtree-0.1.7.tgz",
+ "integrity": "sha512-wkgGT6kugeQk/P6VZ/f4T+4HB41BVgNBq5CDIZVbQ02nvTVqAiVTbskxxu3eA/X96lMlfYOwnLQpN2v5E1zDEg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "sax": "1.1.4"
+ },
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/elementtree/node_modules/sax": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.1.4.tgz",
+ "integrity": "sha512-5f3k2PbGGp+YtKJjOItpg3P99IMD84E4HOvcfleTb5joCHNXYLsR9yWFPOYGgaeMPDubQILTCMdsFb2OMeOjtg==",
+ "license": "ISC"
+ },
"node_modules/emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
- "dev": true,
"license": "MIT"
},
"node_modules/encodeurl": {
@@ -2313,7 +2776,6 @@
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
"integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
@@ -2545,7 +3007,6 @@
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
"integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",
- "dev": true,
"license": "MIT",
"dependencies": {
"pend": "~1.2.0"
@@ -2664,7 +3125,6 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
"integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
- "dev": true,
"license": "ISC",
"dependencies": {
"minipass": "^3.0.0"
@@ -2677,7 +3137,6 @@
"version": "3.3.6",
"resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
"integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
- "dev": true,
"license": "ISC",
"dependencies": {
"yallist": "^4.0.0"
@@ -3128,9 +3587,17 @@
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
- "dev": true,
"license": "ISC"
},
+ "node_modules/ini": {
+ "version": "4.1.3",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.3.tgz",
+ "integrity": "sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==",
+ "license": "ISC",
+ "engines": {
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
+ }
+ },
"node_modules/ipaddr.js": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
@@ -3154,11 +3621,25 @@
"is-ci": "bin.js"
}
},
+ "node_modules/is-docker": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
+ "license": "MIT",
+ "bin": {
+ "is-docker": "cli.js"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
@@ -3171,6 +3652,18 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/is-wsl": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
+ "license": "MIT",
+ "dependencies": {
+ "is-docker": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/isarray": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
@@ -3196,7 +3689,6 @@
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
- "dev": true,
"license": "ISC"
},
"node_modules/jackspeak": {
@@ -3300,6 +3792,15 @@
"json-buffer": "3.0.1"
}
},
+ "node_modules/kleur": {
+ "version": "4.1.5",
+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",
+ "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/lazy-val": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz",
@@ -3559,7 +4060,6 @@
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
"integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
- "dev": true,
"license": "ISC",
"engines": {
"node": ">=8"
@@ -3569,7 +4069,6 @@
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
"integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
- "dev": true,
"license": "MIT",
"dependencies": {
"minipass": "^3.0.0",
@@ -3583,7 +4082,6 @@
"version": "3.3.6",
"resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
"integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
- "dev": true,
"license": "ISC",
"dependencies": {
"yallist": "^4.0.0"
@@ -3596,7 +4094,6 @@
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
"integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
- "dev": true,
"license": "MIT",
"bin": {
"mkdirp": "bin/cmd.js"
@@ -3611,6 +4108,31 @@
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
"license": "MIT"
},
+ "node_modules/native-run": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/native-run/-/native-run-2.0.1.tgz",
+ "integrity": "sha512-XfG1FBZLM50J10xH9361whJRC9SHZ0Bub4iNRhhI61C8Jv0e1ud19muex6sNKB51ibQNUJNuYn25MuYET/rE6w==",
+ "license": "MIT",
+ "dependencies": {
+ "@ionic/utils-fs": "^3.1.7",
+ "@ionic/utils-terminal": "^2.3.4",
+ "bplist-parser": "^0.3.2",
+ "debug": "^4.3.4",
+ "elementtree": "^0.1.7",
+ "ini": "^4.1.1",
+ "plist": "^3.1.0",
+ "split2": "^4.2.0",
+ "through2": "^4.0.2",
+ "tslib": "^2.6.2",
+ "yauzl": "^2.10.0"
+ },
+ "bin": {
+ "native-run": "bin/native-run"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
"node_modules/negotiator": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
@@ -3700,6 +4222,23 @@
"wrappy": "1"
}
},
+ "node_modules/open": {
+ "version": "8.4.2",
+ "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz",
+ "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==",
+ "license": "MIT",
+ "dependencies": {
+ "define-lazy-prop": "^2.0.0",
+ "is-docker": "^2.1.1",
+ "is-wsl": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/p-cancelable": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz",
@@ -3714,7 +4253,6 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
"integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",
- "dev": true,
"license": "BlueOak-1.0.0"
},
"node_modules/parseurl": {
@@ -3741,7 +4279,6 @@
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
@@ -3786,7 +4323,6 @@
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
"integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",
- "dev": true,
"license": "MIT"
},
"node_modules/picocolors": {
@@ -3800,7 +4336,6 @@
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz",
"integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@xmldom/xmldom": "^0.8.8",
@@ -3843,6 +4378,28 @@
"node": ">=10"
}
},
+ "node_modules/prompts": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",
+ "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==",
+ "license": "MIT",
+ "dependencies": {
+ "kleur": "^3.0.3",
+ "sisteransi": "^1.0.5"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/prompts/node_modules/kleur": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
+ "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/proxy-addr": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
@@ -3972,9 +4529,7 @@
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
"integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
- "dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"inherits": "^2.0.3",
"string_decoder": "^1.1.1",
@@ -4148,7 +4703,6 @@
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
- "dev": true,
"funding": [
{
"type": "github",
@@ -4163,8 +4717,7 @@
"url": "https://feross.org/support"
}
],
- "license": "MIT",
- "peer": true
+ "license": "MIT"
},
"node_modules/safer-buffer": {
"version": "2.1.2",
@@ -4301,7 +4854,6 @@
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
"integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"shebang-regex": "^3.0.0"
@@ -4314,7 +4866,6 @@
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
@@ -4448,6 +4999,12 @@
"node": ">=10"
}
},
+ "node_modules/sisteransi": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
+ "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",
+ "license": "MIT"
+ },
"node_modules/slice-ansi": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz",
@@ -4497,6 +5054,15 @@
"source-map": "^0.6.0"
}
},
+ "node_modules/split2": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",
+ "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">= 10.x"
+ }
+ },
"node_modules/sprintf-js": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",
@@ -4529,9 +5095,7 @@
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
- "dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"safe-buffer": "~5.2.0"
}
@@ -4540,7 +5104,6 @@
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dev": true,
"license": "MIT",
"dependencies": {
"emoji-regex": "^8.0.0",
@@ -4571,7 +5134,6 @@
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dev": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^5.0.1"
@@ -4624,7 +5186,6 @@
"version": "6.2.1",
"resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",
"integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",
- "dev": true,
"license": "ISC",
"dependencies": {
"chownr": "^2.0.0",
@@ -4705,6 +5266,15 @@
"node": ">= 10.0.0"
}
},
+ "node_modules/through2": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz",
+ "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==",
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "3"
+ }
+ },
"node_modules/tiny-typed-emitter": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/tiny-typed-emitter/-/tiny-typed-emitter-2.1.0.tgz",
@@ -4745,7 +5315,6 @@
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",
"integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",
- "dev": true,
"license": "MIT",
"bin": {
"tree-kill": "cli.js"
@@ -4765,7 +5334,6 @@
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
- "dev": true,
"license": "0BSD"
},
"node_modules/type-fest": {
@@ -4842,7 +5410,6 @@
"version": "5.26.5",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
- "dev": true,
"license": "MIT"
},
"node_modules/universalify": {
@@ -4865,6 +5432,15 @@
"node": ">= 0.8"
}
},
+ "node_modules/untildify": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz",
+ "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/uri-js": {
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
@@ -4886,9 +5462,7 @@
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
- "dev": true,
- "license": "MIT",
- "peer": true
+ "license": "MIT"
},
"node_modules/vary": {
"version": "1.1.2",
@@ -4920,7 +5494,6 @@
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
- "dev": true,
"license": "ISC",
"dependencies": {
"isexe": "^2.0.0"
@@ -4936,7 +5509,6 @@
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
- "dev": true,
"license": "MIT",
"dependencies": {
"ansi-styles": "^4.0.0",
@@ -4976,11 +5548,32 @@
"dev": true,
"license": "ISC"
},
+ "node_modules/xml2js": {
+ "version": "0.6.2",
+ "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz",
+ "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==",
+ "license": "MIT",
+ "dependencies": {
+ "sax": ">=0.6.0",
+ "xmlbuilder": "~11.0.0"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/xml2js/node_modules/xmlbuilder": {
+ "version": "11.0.1",
+ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz",
+ "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
"node_modules/xmlbuilder": {
"version": "15.1.1",
"resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz",
"integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=8.0"
@@ -5000,7 +5593,6 @@
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
- "dev": true,
"license": "ISC"
},
"node_modules/yargs": {
@@ -5036,7 +5628,6 @@
"version": "2.10.0",
"resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
"integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",
- "dev": true,
"license": "MIT",
"dependencies": {
"buffer-crc32": "~0.2.3",
diff --git a/MindShift-Windows/package.json b/MindShift-Windows/package.json
index a4e8fc3..ed20862 100644
--- a/MindShift-Windows/package.json
+++ b/MindShift-Windows/package.json
@@ -1,6 +1,6 @@
{
"name": "mindshift-cbt-therapy",
- "version": "1.0.0",
+ "version": "1.0.2",
"description": "MindShift - Your personal CBT therapy companion for Windows 11",
"main": "src/main.js",
"homepage": "./",
@@ -61,6 +61,10 @@
}
},
"dependencies": {
+ "@capacitor/android": "^7.4.4",
+ "@capacitor/cli": "^7.4.4",
+ "@capacitor/core": "^7.4.4",
+ "@capacitor/haptics": "^7.0.2",
"electron-updater": "^6.1.7"
},
"devDependencies": {
diff --git a/MindShift-Windows/src/app.js b/MindShift-Windows/src/app.js
index d4a5952..56399d5 100644
--- a/MindShift-Windows/src/app.js
+++ b/MindShift-Windows/src/app.js
@@ -1,4 +1,4 @@
-import { authAPI, moodAPI, thoughtAPI, gratitudeAPI, progressAPI, notificationAPI, exerciseAPI, isAuthenticated, initializeAPI } from './api.js';
+import { authAPI, moodAPI, thoughtAPI, gratitudeAPI, progressAPI, notificationAPI, exerciseAPI, isAuthenticated, initializeAPI } from './offline-api.js';
// Sound Manager using Web Audio API
class SoundManager {
@@ -69,41 +69,57 @@ const soundManager = new SoundManager();
// Initialize app when DOM is loaded
document.addEventListener('DOMContentLoaded', async function() {
- // Check authentication
- if (!isAuthenticated()) {
- showLoginModal();
- return;
+ try {
+ console.log('App initialization started');
+
+ // Check authentication
+ if (!isAuthenticated()) {
+ console.log('User not authenticated, showing login modal');
+ showLoginModal();
+ // Hide initial loader if login modal is shown
+ const loader = document.getElementById('initial-loader');
+ if (loader) loader.style.display = 'none';
+ return;
+ }
+
+ // Initialize API
+ await initializeAPI();
+
+ // Create floating particles
+ createParticles();
+
+ // Add fade-in animation to cards
+ document.querySelectorAll('.card').forEach((card, index) => {
+ card.style.animationDelay = `${index * 0.1}s`;
+ card.classList.add('fade-in');
+ });
+
+ // Add motivational quotes rotation
+ startQuoteRotation();
+
+ // Initialize emotion sliders
+ initializeEmotionSliders();
+
+ // Initialize belief rating slider
+ initializeBeliefSlider();
+
+ // Load saved data from API
+ await loadSavedData();
+
+ // Render Home Page initially
+ showSection('home');
+
+ // Initialize inactivity tracker
+ initInactivityTracker();
+
+ console.log('App initialization complete');
+ } catch (error) {
+ console.error('Initialization error:', error);
+ const loader = document.getElementById('initial-loader');
+ if (loader) {
+ loader.innerHTML = `
Init Error
${error.message}
`;
+ }
}
-
- // Initialize API
- await initializeAPI();
-
- // Create floating particles
- createParticles();
-
- // Add fade-in animation to cards
- document.querySelectorAll('.card').forEach((card, index) => {
- card.style.animationDelay = `${index * 0.1}s`;
- card.classList.add('fade-in');
- });
-
- // Add motivational quotes rotation
- startQuoteRotation();
-
- // Initialize emotion sliders
- initializeEmotionSliders();
-
- // Initialize belief rating slider
- initializeBeliefSlider();
-
- // Load saved data from API
- await loadSavedData();
-
- // Render Home Page initially
- showSection('home');
-
- // Initialize inactivity tracker
- initInactivityTracker();
});
// Inactivity Tracker
@@ -287,7 +303,8 @@ async function saveMoodEntry() {
intensity = slider ? slider.value : '5';
}
- const notes = document.getElementById('moodNotes')?.value;
+ const notesInput = document.getElementById('moodNotes');
+ const notes = notesInput ? notesInput.value : '';
if (!moodType) {
showToast('Please select a mood', 'warning');
@@ -325,10 +342,10 @@ async function saveMoodEntry() {
// Thought record with API
async function saveThoughtRecord() {
- const situation = document.getElementById('situation')?.value;
- const thoughts = document.getElementById('thoughts')?.value;
- const evidence = document.getElementById('evidence')?.value;
- const alternative = document.getElementById('alternative')?.value;
+ const situation = document.getElementById('situation') ? document.getElementById('situation').value : '';
+ const thoughts = document.getElementById('thoughts') ? document.getElementById('thoughts').value : '';
+ const evidence = document.getElementById('evidence') ? document.getElementById('evidence').value : '';
+ const alternative = document.getElementById('alternative') ? document.getElementById('alternative').value : '';
if (!situation || !thoughts) {
showToast('Please fill in at least the situation and thoughts', 'warning');
@@ -338,8 +355,10 @@ async function saveThoughtRecord() {
// Get emotions
const emotions = [];
document.querySelectorAll('.emotion-inputs').forEach(input => {
- const name = input.querySelector('.emotion-name')?.value;
- const value = input.querySelector('.emotion-slider')?.value;
+ const nameInput = input.querySelector('.emotion-name');
+ const valueInput = input.querySelector('.emotion-slider');
+ const name = nameInput ? nameInput.value : '';
+ const value = valueInput ? valueInput.value : '';
if (name && value) {
emotions.push({ name, intensity: parseInt(value) });
}
@@ -412,37 +431,75 @@ async function loadSavedData() {
// Progress with API
async function updateProgress() {
+ console.log('updateProgress: Starting update...');
try {
- const stats = await progressAPI.getProgressStats();
- const history = await progressAPI.getProgressHistory();
+ // Add timeout to prevent infinite loading
+ const timeoutPromise = new Promise((_, reject) =>
+ setTimeout(() => reject(new Error('Timeout loading stats')), 5000)
+ );
+
+ const statsPromise = progressAPI.getProgressStats();
+ const historyPromise = progressAPI.getProgressHistory();
+
+ const [stats, history] = await Promise.race([
+ Promise.all([statsPromise, historyPromise]),
+ timeoutPromise
+ ]);
- // Update progress stats
- const progressContainer = document.getElementById('progress-stats');
- if (progressContainer) {
- progressContainer.innerHTML = `
+ console.log('updateProgress: Data received', stats);
+
+ const statsHTML = `
-
${stats.today.mood_score || '-'}
+
${(stats.today && stats.today.mood_score) ? stats.today.mood_score : '-'}
Today's Mood
-
${stats.totals.totalSessions || 0}
+
${(stats.totals && stats.totals.totalSessions) ? stats.totals.totalSessions : 0}
Sessions
-
${Math.round(stats.week.avgMood * 10) / 10 || '-'}
+
${(stats.week && stats.week.avgMood) ? (Math.round(stats.week.avgMood * 10) / 10) : '-'}
Weekly Avg
-
${stats.totals.totalGratitude || 0}
+
${(stats.totals && stats.totals.totalGratitude) ? stats.totals.totalGratitude : 0}
Gratitude
- `;
+ `;
+
+ // Update progress page stats
+ const progressContainer = document.getElementById('progress-stats');
+ if (progressContainer) {
+ progressContainer.innerHTML = statsHTML;
+ }
+
+ // Update home page stats
+ const homeStatsContainer = document.getElementById('home-stats-container');
+ if (homeStatsContainer) {
+ homeStatsContainer.innerHTML = `${statsHTML}
`;
}
// Draw weekly chart
drawWeeklyChart(history);
+ console.log('updateProgress: Update complete');
+
} catch (error) {
console.error('Failed to update progress:', error);
+
+ // Fallback UI to remove spinner
+ const errorHTML = `
+
+ `;
+
+ const homeStatsContainer = document.getElementById('home-stats-container');
+ if (homeStatsContainer) {
+ homeStatsContainer.innerHTML = errorHTML;
+ }
}
}
@@ -793,6 +850,7 @@ async function renderHistory(type) {
const container = document.getElementById('history-container');
if (!container) return;
+ // Clear existing content
container.innerHTML = '';
try {
@@ -1190,24 +1248,6 @@ function startGratitude() {
document.getElementById('exercises').classList.add('blur-background');
}
-function startBreathing() {
- const modal = document.createElement('div');
- modal.className = 'exercise-modal';
- modal.style.display = 'block';
- modal.innerHTML = `
-
-
Breathe With Me 🌬️
-
- Breathe In
-
-
Follow the rhythm of the circle and the sound cues.
-
-
- `;
- document.body.appendChild(modal);
- startBreathingExercise();
-}
-
function closeExercise(exerciseId) {
document.getElementById(exerciseId).style.display = 'none';
document.getElementById('exercises').classList.remove('blur-background');
@@ -1236,53 +1276,177 @@ function addGratitudeInput() {
gratitudeContainer.appendChild(newInput);
}
-// Breathing exercise functions
-let breathingInterval;
-let breathingPhase = 'inhale';
+// --- Smart Breathing System ---
+let breathingState = {
+ isActive: false,
+ technique: 'balance',
+ timer: null
+};
-function startBreathingExercise() {
- // Initial sound
- soundManager.playBreathIn();
-
- breathingInterval = setInterval(() => {
- const circle = document.getElementById('breathing-circle');
- const text = document.getElementById('breathing-text');
+const breathingTechniques = {
+ balance: {
+ name: 'Balance',
+ label: 'Coherent Breathing',
+ phases: [
+ { name: 'inhale', duration: 5500, label: 'Breathe In', scale: 1.8 },
+ { name: 'exhale', duration: 5500, label: 'Breathe Out', scale: 1.0 }
+ ]
+ },
+ relax: {
+ name: 'Relax',
+ label: '4-7-8 Relief',
+ phases: [
+ { name: 'inhale', duration: 4000, label: 'Breathe In', scale: 1.8 },
+ { name: 'hold', duration: 7000, label: 'Hold', scale: 1.8 },
+ { name: 'exhale', duration: 8000, label: 'Breathe Out', scale: 1.0 }
+ ]
+ },
+ focus: {
+ name: 'Focus',
+ label: 'Box Breathing',
+ phases: [
+ { name: 'inhale', duration: 4000, label: 'Breathe In', scale: 1.8 },
+ { name: 'hold', duration: 4000, label: 'Hold', scale: 1.8 },
+ { name: 'exhale', duration: 4000, label: 'Breathe Out', scale: 1.0 },
+ { name: 'hold', duration: 4000, label: 'Hold', scale: 1.0 }
+ ]
+ }
+};
+
+function startBreathing() {
+ // Create immersive overlay
+ const overlay = document.createElement('div');
+ overlay.id = 'smart-breathing-overlay';
+ overlay.className = 'breathing-overlay';
+ overlay.innerHTML = `
+
+
+
+
+
- if (breathingPhase === 'inhale') {
- circle.classList.remove('exhale');
- circle.classList.add('inhale');
- text.textContent = 'Breathe In';
- soundManager.playBreathIn();
- breathingPhase = 'hold';
- } else if (breathingPhase === 'hold') {
- text.textContent = 'Hold';
- breathingPhase = 'exhale';
- } else {
- circle.classList.remove('inhale');
- circle.classList.add('exhale');
- text.textContent = 'Breathe Out';
- soundManager.playBreathOut();
- breathingPhase = 'inhale';
- }
- }, 4000);
+
+
+ Get Ready...
+ Sit comfortably
+
+
+
+
+ `;
+ document.body.appendChild(overlay);
+
+ // Start with default or last used
+ setBreathingTechnique('balance');
}
-function stopBreathingExercise() {
- clearInterval(breathingInterval);
- const circle = document.getElementById('breathing-circle');
- const text = document.getElementById('breathing-text');
- if (circle) circle.classList.remove('inhale', 'exhale');
- if (text) text.textContent = 'Ready';
- breathingPhase = 'inhale';
+function setBreathingTechnique(tech) {
+ breathingState.technique = tech;
- // Log session (assuming ~1 min or track actual time)
+ // Update buttons
+ document.querySelectorAll('.technique-btn').forEach(btn => {
+ btn.classList.remove('active');
+ if(btn.innerText.toLowerCase().includes(breathingTechniques[tech].name.toLowerCase())) {
+ btn.classList.add('active');
+ }
+ });
+
+ stopSmartBreathingLoop();
+ startSmartBreathingLoop();
+}
+
+function startSmartBreathingLoop() {
+ breathingState.isActive = true;
+ let currentPhaseIndex = 0;
+
+ const loop = async () => {
+ if (!breathingState.isActive) return;
+
+ const technique = breathingTechniques[breathingState.technique];
+ const phase = technique.phases[currentPhaseIndex];
+
+ updateBreathingUI(phase.name, phase.label, phase.duration, phase.scale);
+
+ // Audio & Haptics
+ if (phase.name === 'inhale') {
+ soundManager.playBreathIn();
+ if (navigator.vibrate) navigator.vibrate(50);
+ } else if (phase.name === 'exhale') {
+ soundManager.playBreathOut();
+ if (navigator.vibrate) navigator.vibrate([30, 30]);
+ } else {
+ // Hold
+ if (navigator.vibrate) navigator.vibrate(20);
+ }
+
+ // Wait for phase duration
+ await new Promise(resolve => {
+ breathingState.timer = setTimeout(resolve, phase.duration);
+ });
+
+ // Move to next phase
+ currentPhaseIndex = (currentPhaseIndex + 1) % technique.phases.length;
+
+ if (breathingState.isActive) loop();
+ };
+
+ loop();
+}
+
+function updateBreathingUI(phaseName, label, duration, scale) {
+ const circle = document.getElementById('breath-circle');
+ const text = document.getElementById('breath-instruction');
+ const sub = document.getElementById('breath-sub');
+
+ if (!circle) return;
+
+ // Update Text
+ text.textContent = label;
+ text.style.animation = 'none';
+ text.offsetHeight; // Trigger reflow
+ text.style.animation = 'fadeIn 0.5s';
+
+ sub.textContent = (duration / 1000) + 's';
+
+ // Update Visuals
+ circle.className = 'breath-circle-main ' + phaseName;
+ circle.style.transition = `transform ${duration}ms linear`;
+ circle.style.transform = `scale(${scale})`;
+}
+
+function stopSmartBreathingLoop() {
+ breathingState.isActive = false;
+ if (breathingState.timer) clearTimeout(breathingState.timer);
+}
+
+function closeSmartBreathing() {
+ stopSmartBreathingLoop();
+ const overlay = document.getElementById('smart-breathing-overlay');
+ if (overlay) overlay.remove();
+
+ // Log session
exerciseAPI.logSession('breathing', 60).then(() => {
triggerSuccessPing();
- showSuccessMessage('Breathing session logged! 🌬️');
+ showSuccessMessage('Breathing session complete! 🌬️');
updateProgress();
});
}
+// Make global
+window.setBreathingTechnique = setBreathingTechnique;
+window.closeSmartBreathing = closeSmartBreathing;
+
+// Legacy wrappers
+function startBreathingExercise() { startBreathing(); }
+function stopBreathingExercise() { closeSmartBreathing(); }
+
+
// Export additional functions
window.addEmotionInput = addEmotionInput;
window.addGratitudeInput = addGratitudeInput;
diff --git a/MindShift-Windows/src/index.html b/MindShift-Windows/src/index.html
index 06062a9..fd207c6 100644
--- a/MindShift-Windows/src/index.html
+++ b/MindShift-Windows/src/index.html
@@ -2,11 +2,11 @@
-
+
MindShift - CBT Therapy App
-
+
@@ -72,7 +72,11 @@
-
+
+
+
+
Initializing MindShift...
+
@@ -104,8 +108,19 @@
add
+
-
-
+
+
\ No newline at end of file
diff --git a/MindShift-Windows/src/offline-api.js b/MindShift-Windows/src/offline-api.js
new file mode 100644
index 0000000..e4463aa
--- /dev/null
+++ b/MindShift-Windows/src/offline-api.js
@@ -0,0 +1,228 @@
+// Offline API Implementation using LocalStorage
+// This replaces the server-based API for the offline APK build
+
+// --- Local Database Helper ---
+const db = {
+ get(key) {
+ const data = localStorage.getItem(`mindshift_${key}`);
+ return data ? JSON.parse(data) : [];
+ },
+ set(key, data) {
+ localStorage.setItem(`mindshift_${key}`, JSON.stringify(data));
+ },
+ add(key, item) {
+ const data = this.get(key);
+ item.id = Date.now().toString();
+ item.created_at = new Date().toISOString();
+ // Add user_id if logged in
+ const user = getCurrentUser();
+ if (user) item.user_id = user.id;
+
+ data.push(item);
+ this.set(key, data);
+ return item;
+ },
+ update(key, id, updates) {
+ const data = this.get(key);
+ const index = data.findIndex(item => item.id === id);
+ if (index !== -1) {
+ data[index] = { ...data[index], ...updates };
+ this.set(key, data);
+ return data[index];
+ }
+ return null;
+ },
+ remove(key, id) {
+ const data = this.get(key);
+ const newData = data.filter(item => item.id !== id);
+ this.set(key, newData);
+ }
+};
+
+function getCurrentUser() {
+ const userStr = localStorage.getItem('mindshift_currentUser');
+ return userStr ? JSON.parse(userStr) : null;
+}
+
+// --- Authentication API ---
+export const authAPI = {
+ async register(name, email, password) {
+ // Simulate network delay
+ await new Promise(r => setTimeout(r, 500));
+
+ const users = db.get('users');
+ if (users.find(u => u.email === email)) {
+ throw new Error('Email already exists');
+ }
+
+ const newUser = { id: Date.now().toString(), name, email, password }; // In real app, hash password!
+ users.push(newUser);
+ db.set('users', users);
+
+ localStorage.setItem('mindshift_currentUser', JSON.stringify(newUser));
+ return { token: 'offline-token', user: newUser };
+ },
+
+ async login(email, password) {
+ await new Promise(r => setTimeout(r, 500));
+
+ const users = db.get('users');
+ const user = users.find(u => u.email === email && u.password === password);
+
+ if (!user) {
+ throw new Error('Invalid credentials');
+ }
+
+ localStorage.setItem('mindshift_currentUser', JSON.stringify(user));
+ return { token: 'offline-token', user };
+ },
+
+ async logout() {
+ localStorage.removeItem('mindshift_currentUser');
+ },
+
+ async getProfile() {
+ return getCurrentUser();
+ }
+};
+
+// --- Mood API ---
+export const moodAPI = {
+ async trackMood(moodType, intensity, notes) {
+ return db.add('moods', { mood_type: moodType, intensity, notes });
+ },
+
+ async getMoodHistory() {
+ const user = getCurrentUser();
+ if (!user) return [];
+ const moods = db.get('moods').filter(m => m.user_id === user.id);
+ return moods.sort((a, b) => new Date(b.created_at) - new Date(a.created_at));
+ }
+};
+
+// --- Thought Record API ---
+export const thoughtAPI = {
+ async saveThoughtRecord(thoughtData) {
+ // Map frontend keys to DB keys if needed, but for offline we can store as is
+ return db.add('thoughts', thoughtData);
+ },
+
+ async getThoughtRecords() {
+ const user = getCurrentUser();
+ if (!user) return [];
+ const thoughts = db.get('thoughts').filter(t => t.user_id === user.id);
+ return thoughts.sort((a, b) => new Date(b.created_at) - new Date(a.created_at));
+ },
+
+ async updateThoughtRecord(id, data) {
+ return db.update('thoughts', id, data);
+ },
+
+ async deleteThoughtRecord(id) {
+ return db.remove('thoughts', id);
+ }
+};
+
+// --- Gratitude API ---
+export const gratitudeAPI = {
+ async saveGratitudeEntry(entry) {
+ // Entry object comes as { entries: [], date: ... }
+ // We'll store individual entries or the whole block.
+ // Let's store the block to match frontend expectation
+ return db.add('gratitude', entry);
+ },
+
+ async getGratitudeEntries() {
+ const user = getCurrentUser();
+ if (!user) return [];
+ const entries = db.get('gratitude').filter(g => g.user_id === user.id);
+ return entries.sort((a, b) => new Date(b.created_at) - new Date(a.created_at));
+ }
+};
+
+// --- Progress API ---
+export const progressAPI = {
+ async getProgressStats() {
+ const user = getCurrentUser();
+ if (!user) return { today: {}, week: {}, totals: {} };
+
+ const moods = db.get('moods').filter(m => m.user_id === user.id);
+ const gratitude = db.get('gratitude').filter(g => g.user_id === user.id);
+ const exercises = db.get('exercises').filter(e => e.user_id === user.id);
+
+ const today = new Date().toISOString().split('T')[0];
+ const todayMoods = moods.filter(m => m.created_at.startsWith(today));
+
+ // Calculate stats
+ const todayAvg = todayMoods.length > 0
+ ? todayMoods.reduce((sum, m) => sum + parseInt(m.intensity), 0) / todayMoods.length
+ : 0;
+
+ return {
+ today: { mood_score: todayAvg.toFixed(1) },
+ totals: {
+ totalSessions: exercises.length,
+ totalGratitude: gratitude.length
+ },
+ week: { avgMood: 0 } // simplified for offline
+ };
+ },
+
+ async getProgressHistory(days = 7) {
+ const user = getCurrentUser();
+ if (!user) return [];
+
+ const moods = db.get('moods').filter(m => m.user_id === user.id);
+ // Group by date and avg score
+ const history = [];
+ for (let i = 0; i < days; i++) {
+ const date = new Date();
+ date.setDate(date.getDate() - i);
+ const dateStr = date.toISOString().split('T')[0];
+
+ const dayMoods = moods.filter(m => m.created_at.startsWith(dateStr));
+ const score = dayMoods.length > 0
+ ? dayMoods.reduce((sum, m) => sum + parseInt(m.intensity), 0) / dayMoods.length
+ : 0;
+
+ history.push({ date: dateStr, mood_score: score });
+ }
+ return history;
+ }
+};
+
+// --- Exercise API ---
+export const exerciseAPI = {
+ async logSession(type, duration) {
+ return db.add('exercises', { exercise_type: type, duration });
+ }
+};
+
+// --- Notification API ---
+export const notificationAPI = {
+ async getNotifications() {
+ const user = getCurrentUser();
+ if (!user) return [];
+ return db.get('notifications').filter(n => n.user_id === user.id);
+ },
+
+ async markAsRead(id) {
+ return db.update('notifications', id, { read: true });
+ },
+
+ async deleteNotification(id) {
+ return db.remove('notifications', id);
+ },
+
+ async addNotification(notification) {
+ return db.add('notifications', notification);
+ }
+};
+
+export function isAuthenticated() {
+ return !!getCurrentUser();
+}
+
+export function initializeAPI() {
+ return true;
+}
diff --git a/MindShift-Windows/src/styles.css b/MindShift-Windows/src/styles.css
index 0e7b081..a591322 100644
--- a/MindShift-Windows/src/styles.css
+++ b/MindShift-Windows/src/styles.css
@@ -1,29 +1,36 @@
/* Base Styles & Variables */
:root {
- --primary: #FF6B6B;
- --primary-light: #FF8E8E;
- --primary-dark: #E55555;
- --primary-container: #FFE5E5;
+ /* Relaxing Palette */
+ --primary: #6B9080; /* Soft Sage Green */
+ --primary-light: #A4C3B2;
+ --primary-dark: #3A5A4A;
+ --primary-container: #EAF4F0;
--on-primary: #FFFFFF;
- --on-primary-container: #410002;
- --secondary: #FFB74D;
- --secondary-container: #FFF3E0;
+ --on-primary-container: #1C3329;
+
+ --secondary: #8ECAE6; /* Soft Sky Blue */
+ --secondary-container: #E1F5FE;
--on-secondary: #FFFFFF;
- --on-secondary-container: #4E2B00;
- --tertiary: #4FC3F7;
- --tertiary-container: #E1F5FE;
- --surface: rgba(255, 255, 255, 0.9);
- --surface-variant: #F5F5F5;
- --on-surface: #212121;
- --on-surface-variant: #757575;
- --outline: #BDBDBD;
- --shadow: rgba(0,0,0,0.1);
- --error: #FF5252;
- --success: #66BB6A;
- --warning: #FFA726;
- --joy: #AB47BC;
- --peace: #26A69A;
- --energy: #FFEE58;
+ --on-secondary-container: #004D61;
+
+ --tertiary: #B8B8FF; /* Gentle Lavender */
+ --tertiary-container: #EFEEFF;
+
+ --surface: rgba(255, 255, 255, 0.92);
+ --surface-variant: #F4F7F6; /* Very soft cool grey */
+ --on-surface: #2C3E50;
+ --on-surface-variant: #607D8B;
+
+ --outline: #CFD8DC;
+ --shadow: rgba(44, 62, 80, 0.1);
+
+ --error: #E57373;
+ --success: #81C784;
+ --warning: #FFB74D;
+
+ --joy: #9575CD;
+ --peace: #4DB6AC;
+ --energy: #FFF176;
}
* {
@@ -34,9 +41,9 @@
body {
font-family: 'Roboto', sans-serif;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #FF6B6B 100%);
+ background: linear-gradient(135deg, #FDFBF7 0%, #E6F3F0 100%); /* Relaxing Cream to Sage */
background-size: 400% 400%;
- animation: gradientBG 15s ease infinite;
+ animation: gradientBG 20s ease infinite;
color: var(--on-surface);
line-height: 1.5;
min-height: 100vh;
@@ -113,7 +120,7 @@ body {
left: 0;
width: 100%;
height: 100%;
- background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
+ background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
display: flex;
flex-direction: column;
justify-content: center;
@@ -159,10 +166,10 @@ body {
/* Header */
.app-header {
- background-color: rgba(255, 107, 107, 0.95);
- color: var(--on-primary);
+ background-color: rgba(255, 255, 255, 0.95);
+ color: var(--primary);
padding: 16px;
- box-shadow: 0 4px 20px rgba(0,0,0,0.1);
+ box-shadow: 0 4px 20px rgba(0,0,0,0.05);
position: sticky;
top: 0;
z-index: 100;
@@ -171,8 +178,8 @@ body {
}
.app-header:hover {
- background-color: rgba(255, 107, 107, 1);
- box-shadow: 0 6px 24px rgba(0,0,0,0.15);
+ background-color: rgba(255, 255, 255, 1);
+ box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.header-content {
@@ -189,12 +196,16 @@ body {
position: relative;
}
+.header-actions button {
+ color: var(--primary) !important; /* Override inline style */
+}
+
/* Notification Badge Pulse */
.notification-badge {
position: absolute;
top: 8px;
right: 8px;
- background: var(--secondary);
+ background: var(--error);
color: white;
font-size: 10px;
font-weight: bold;
@@ -238,15 +249,17 @@ body {
bottom: 0;
left: 0;
right: 0;
- background-color: rgba(255, 255, 255, 0.95);
- backdrop-filter: blur(10px);
- box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
+ background-color: rgba(255, 255, 255, 0.98);
+ backdrop-filter: blur(20px);
+ box-shadow: 0 -4px 30px rgba(0,0,0,0.05);
display: flex;
justify-content: space-around;
padding: 12px 0;
+ /* Android Safe Area Fix - Increased Padding */
+ padding-bottom: calc(24px + env(safe-area-inset-bottom));
z-index: 100;
- border-top-left-radius: 20px;
- border-top-right-radius: 20px;
+ border-top-left-radius: 24px;
+ border-top-right-radius: 24px;
}
.nav-item {
@@ -299,7 +312,8 @@ body {
max-width: 1200px;
margin: 0 auto;
padding: 16px;
- padding-bottom: 100px;
+ /* Increased bottom padding to prevent content overlap with taller nav */
+ padding-bottom: calc(120px + env(safe-area-inset-bottom));
min-height: calc(100vh - 120px);
position: relative;
z-index: 1;
@@ -381,7 +395,7 @@ body {
border-color: var(--primary);
background: linear-gradient(135deg, var(--primary-container), white);
transform: scale(1.05);
- box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
+ box-shadow: 0 0 0 4px rgba(107, 144, 128, 0.2);
}
.mood-emoji {
@@ -401,6 +415,97 @@ body {
100% { transform: scale(1.2); }
}
+/* Progress Section */
+.progress-container {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
+ gap: 16px;
+ margin: 16px 0;
+}
+
+.progress-card {
+ background-color: var(--surface-variant);
+ border-radius: 12px;
+ padding: 16px;
+ text-align: center;
+ transition: all 0.3s ease;
+}
+
+.progress-card:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 4px 12px rgba(0,0,0,0.1);
+ background-color: white;
+}
+
+.progress-value {
+ font-size: 24px;
+ font-weight: 500;
+ color: var(--primary);
+ margin-bottom: 4px;
+}
+
+.progress-label {
+ font-size: 14px;
+ color: var(--on-surface-variant);
+}
+
+/* Chart Container */
+.chart-container {
+ position: relative;
+ height: 250px;
+ background: rgba(255, 255, 255, 0.5);
+ border-radius: 16px;
+ padding: 16px;
+}
+
+/* Analytics Cards */
+.analytics-card {
+ background: rgba(255, 255, 255, 0.6);
+ border-radius: 16px;
+ padding: 16px;
+ border: 1px solid rgba(255,255,255,0.5);
+}
+
+.analytics-card h4 {
+ margin: 0 0 12px 0;
+ color: var(--primary);
+ font-size: 16px;
+}
+
+.emotion-bar {
+ display: flex;
+ align-items: center;
+ margin-bottom: 8px;
+}
+
+.emotion-label {
+ flex: 1;
+ font-size: 14px;
+}
+
+.emotion-value {
+ width: 40px;
+ text-align: right;
+ font-size: 14px;
+ font-weight: 500;
+}
+
+.emotion-progress {
+ flex: 2;
+ height: 6px;
+ background: var(--surface-variant);
+ border-radius: 3px;
+ margin: 0 8px;
+ overflow: hidden;
+}
+
+.emotion-progress-fill {
+ height: 100%;
+ background: var(--primary);
+ border-radius: 3px;
+ transition: width 0.3s ease;
+}
+
/* Buttons - Alive */
.btn {
padding: 16px 32px;
@@ -440,19 +545,19 @@ body {
.btn-primary {
background: linear-gradient(45deg, var(--primary), var(--secondary));
color: white;
- box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
+ box-shadow: 0 8px 20px rgba(107, 144, 128, 0.4);
animation: breathBtn 3s infinite ease-in-out;
}
@keyframes breathBtn {
- 0% { transform: scale(1); box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4); }
- 50% { transform: scale(1.02); box-shadow: 0 12px 24px rgba(255, 107, 107, 0.6); }
- 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4); }
+ 0% { transform: scale(1); box-shadow: 0 8px 20px rgba(107, 144, 128, 0.4); }
+ 50% { transform: scale(1.02); box-shadow: 0 12px 24px rgba(107, 144, 128, 0.6); }
+ 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(107, 144, 128, 0.4); }
}
.btn-primary:hover {
transform: translateY(-4px) scale(1.05);
- box-shadow: 0 15px 30px rgba(255, 107, 107, 0.5);
+ box-shadow: 0 15px 30px rgba(107, 144, 128, 0.5);
animation: none; /* Stop breathing on hover to focus */
}
@@ -490,20 +595,20 @@ body {
border-radius: 50%;
background: var(--primary);
cursor: pointer;
- box-shadow: 0 4px 10px rgba(255, 107, 107, 0.4);
+ box-shadow: 0 4px 10px rgba(107, 144, 128, 0.4);
transition: all 0.3s ease;
}
.slider:hover::-webkit-slider-thumb {
transform: scale(1.2);
- box-shadow: 0 6px 15px rgba(255, 107, 107, 0.6);
+ box-shadow: 0 6px 15px rgba(107, 144, 128, 0.6);
}
textarea, input[type="text"] {
width: 100%;
padding: 16px;
border-radius: 16px;
- border: 2px solid rgba(0,0,0,0.1);
+ border: 2px solid rgba(0,0,0,0.05);
background: rgba(255, 255, 255, 0.9);
font-size: 16px;
font-family: 'Roboto', sans-serif;
@@ -513,7 +618,7 @@ textarea, input[type="text"] {
textarea:focus, input[type="text"]:focus {
outline: none;
border-color: var(--primary);
- box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
+ box-shadow: 0 0 0 4px rgba(107, 144, 128, 0.1);
transform: scale(1.01);
}
@@ -607,7 +712,7 @@ textarea:focus, input[type="text"]:focus {
/* FAB - Alive */
.fab {
position: fixed;
- bottom: 90px;
+ bottom: 110px; /* Increased from 90px */
right: 24px;
width: 64px;
height: 64px;
@@ -615,7 +720,7 @@ textarea:focus, input[type="text"]:focus {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
border: none;
- box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
+ box-shadow: 0 8px 25px rgba(107, 144, 128, 0.5);
cursor: pointer;
display: flex;
align-items: center;
@@ -626,7 +731,7 @@ textarea:focus, input[type="text"]:focus {
.fab:hover {
transform: scale(1.15) rotate(90deg);
- box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
+ box-shadow: 0 12px 35px rgba(107, 144, 128, 0.6);
}
.fab .material-icons {
@@ -910,7 +1015,7 @@ textarea:focus, input[type="text"]:focus {
.form-input:focus {
background: white;
border-color: var(--primary);
- box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
+ box-shadow: 0 0 0 4px rgba(107, 144, 128, 0.1);
transform: translateY(-2px);
}
@@ -950,3 +1055,138 @@ textarea:focus, input[type="text"]:focus {
from { opacity: 0; }
to { opacity: 1; }
}
+
+/* Smart Breathing Enhanced Styles */
+.breathing-overlay {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: radial-gradient(circle at center, #1a2a6c, #b21f1f, #fdbb2d); /* Deep calming gradient */
+ background: radial-gradient(circle at center, #2b5876, #4e4376); /* Deep calming blue/purple */
+ z-index: 5000;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ color: white;
+ animation: fadeIn 0.5s ease;
+}
+
+.breathing-visual-container {
+ position: relative;
+ width: 300px;
+ height: 300px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ margin-bottom: 40px;
+}
+
+.breath-circle-main {
+ width: 200px;
+ height: 200px;
+ border-radius: 50%;
+ background: rgba(255, 255, 255, 0.2);
+ backdrop-filter: blur(10px);
+ border: 2px solid rgba(255, 255, 255, 0.5);
+ box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
+ position: absolute;
+ transition: transform 0.1s linear, background-color 0.5s ease;
+}
+
+.breath-circle-inner {
+ width: 150px;
+ height: 150px;
+ border-radius: 50%;
+ background: rgba(255, 255, 255, 0.8);
+ position: absolute;
+ box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
+ transition: transform 0.1s linear;
+}
+
+.breath-particles {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ animation: rotateParticles 20s linear infinite;
+}
+
+.breath-instruction-text {
+ font-size: 36px;
+ font-weight: 300;
+ letter-spacing: 2px;
+ text-align: center;
+ text-shadow: 0 2px 10px rgba(0,0,0,0.3);
+ margin-bottom: 10px;
+ min-height: 50px;
+}
+
+.breath-sub-text {
+ font-size: 18px;
+ opacity: 0.8;
+ margin-bottom: 40px;
+}
+
+.technique-selector {
+ display: flex;
+ gap: 12px;
+ margin-bottom: 30px;
+ overflow-x: auto;
+ padding: 10px;
+ max-width: 100%;
+}
+
+.technique-btn {
+ background: rgba(255, 255, 255, 0.15);
+ border: 1px solid rgba(255, 255, 255, 0.3);
+ padding: 12px 20px;
+ border-radius: 30px;
+ color: white;
+ cursor: pointer;
+ transition: all 0.3s;
+ white-space: nowrap;
+}
+
+.technique-btn.active {
+ background: white;
+ color: #4e4376;
+ font-weight: bold;
+ box-shadow: 0 5px 15px rgba(0,0,0,0.2);
+}
+
+.breath-controls {
+ display: flex;
+ gap: 20px;
+}
+
+.control-btn-icon {
+ width: 60px;
+ height: 60px;
+ border-radius: 50%;
+ background: rgba(255, 255, 255, 0.2);
+ border: none;
+ color: white;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ cursor: pointer;
+ transition: all 0.3s;
+}
+
+.control-btn-icon:hover {
+ background: rgba(255, 255, 255, 0.4);
+ transform: scale(1.1);
+}
+
+@keyframes rotateParticles {
+ from { transform: rotate(0deg); }
+ to { transform: rotate(360deg); }
+}
+
+/* Specific States */
+.inhale .breath-circle-main { background: rgba(100, 255, 218, 0.3); }
+.hold .breath-circle-main { background: rgba(255, 235, 59, 0.3); }
+.exhale .breath-circle-main { background: rgba(255, 107, 107, 0.3); }
+