diff --git a/source/ios/App/App/capacitor.config.json b/source/ios/App/App/capacitor.config.json
index cf202da..611349d 100644
--- a/source/ios/App/App/capacitor.config.json
+++ b/source/ios/App/App/capacitor.config.json
@@ -2,5 +2,13 @@
"appId": "com.gueopic.gueopic",
"appName": "Gueopic",
"webDir": "www",
- "bundledWebRuntime": false
+ "bundledWebRuntime": false,
+ "plugins": {
+ "SplashScreen": {
+ "launchAutoHide": false,
+ "showSpinner": true,
+ "androidSpinnerStyle": "small",
+ "iosSpinnerStyle": "small"
+ }
+ }
}
diff --git a/source/ios/App/App/config.xml b/source/ios/App/App/config.xml
index 1b1b0e0..fc8cfe0 100644
--- a/source/ios/App/App/config.xml
+++ b/source/ios/App/App/config.xml
@@ -2,5 +2,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/source/ios/App/Podfile b/source/ios/App/Podfile
index c3a4afe..b32249e 100644
--- a/source/ios/App/Podfile
+++ b/source/ios/App/Podfile
@@ -10,9 +10,14 @@ def capacitor_pods
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
+ pod 'CapacitorCamera', :path => '../../node_modules/@capacitor/camera'
+ pod 'CapacitorFilesystem', :path => '../../node_modules/@capacitor/filesystem'
pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics'
pod 'CapacitorKeyboard', :path => '../../node_modules/@capacitor/keyboard'
+ pod 'CapacitorSplashScreen', :path => '../../node_modules/@capacitor/splash-screen'
pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar'
+ pod 'CapacitorVoiceRecorder', :path => '../../node_modules/capacitor-voice-recorder'
+ pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins'
end
target 'App' do
diff --git a/source/src/app/app-routing.module.ts b/source/src/app/app-routing.module.ts
index 14f1112..835bba9 100644
--- a/source/src/app/app-routing.module.ts
+++ b/source/src/app/app-routing.module.ts
@@ -25,6 +25,16 @@ const routes: Routes = [
(m) => m.PlaygroundPageModule,
),
},
+ // Sidebar outlet
+ {
+ path: '',
+ loadChildren: () =>
+ import('./menu/menu.module').then((m) => m.MenuPageModule),
+ outlet: 'sidebar',
+ data: {
+ isSidebar: true,
+ },
+ },
];
@NgModule({
diff --git a/source/src/app/app.component.html b/source/src/app/app.component.html
index 13b9677..3ec5735 100644
--- a/source/src/app/app.component.html
+++ b/source/src/app/app.component.html
@@ -1,3 +1,17 @@
-
+
+
+
+
+
+
+
+
diff --git a/source/src/app/app.component.scss b/source/src/app/app.component.scss
index e69de29..448b4aa 100644
--- a/source/src/app/app.component.scss
+++ b/source/src/app/app.component.scss
@@ -0,0 +1,8 @@
+ion-menu {
+ --side-min-width: 50%;
+ --side-max-width: 50%;
+}
+ion-router-outlet.split-pane-side {
+ --side-min-width: 50%;
+ --side-max-width: 50%;
+}
diff --git a/source/src/app/app.component.ts b/source/src/app/app.component.ts
index 0fb8291..38b18f4 100644
--- a/source/src/app/app.component.ts
+++ b/source/src/app/app.component.ts
@@ -25,6 +25,10 @@ export class AppComponent implements OnInit {
private router: Router,
) {}
+ get isMobile() {
+ return window.innerWidth < 768;
+ }
+
ngOnInit() {
this.platform.ready().then((res) => {
console.debug('Platform initialized:', res);
diff --git a/source/src/app/menu/menu.page.html b/source/src/app/menu/menu.page.html
index 45f92e4..f4fa3fc 100644
--- a/source/src/app/menu/menu.page.html
+++ b/source/src/app/menu/menu.page.html
@@ -1,6 +1,6 @@
-
+
{{ 'common.actions.back' | translate }}
diff --git a/source/src/app/menu/menu.page.ts b/source/src/app/menu/menu.page.ts
index 8cef3b8..2d7daa2 100644
--- a/source/src/app/menu/menu.page.ts
+++ b/source/src/app/menu/menu.page.ts
@@ -4,6 +4,7 @@ import {
OnDestroy,
OnInit,
} from '@angular/core';
+import { ActivatedRoute, Router } from '@angular/router';
import { ModalController } from '@ionic/angular';
import { ItemWithFilesModel } from '../../core/models/item-with-files.model';
import { VerbWithFilesModel } from '../../core/models/verb-with-files.model';
@@ -33,9 +34,14 @@ export class MenuPage implements OnInit, OnDestroy {
public modalController: ModalController,
private audioService: AudioService,
public appTranslateService: AppTranslateService,
+ private route: ActivatedRoute,
) {}
+ get routeData() {
+ return this.route.snapshot.data;
+ }
ngOnInit() {
+ console.log('tset', this.route.snapshot.data);
this.itemsStateService.loadAll();
this.verbsStateService.loadAll();
this.settingsStateService.loadAll(true);