From 008d958976cc74f7d5bbd2235c119a43ba2ad8a3 Mon Sep 17 00:00:00 2001 From: Shane Harris Date: Mon, 1 Aug 2022 14:10:45 +0100 Subject: [PATCH] fixed more old buttons, added some feedback changes too --- desktop-app/src/app/adb-client.service.ts | 101 +++-- .../connection-status.component.html | 2 +- .../connection-status.component.scss | 2 +- desktop-app/src/app/electron.service.ts | 3 +- .../src/app/files/files.component.html | 26 +- .../src/app/header/header.component.html | 65 ++-- .../src/app/header/header.component.ts | 11 +- .../headset-settings.component.html | 355 +++++++++--------- .../headset-settings.component.scss | 3 + .../headset-settings.component.ts | 4 +- .../src/app/packages/packages.component.html | 129 +++---- .../src/app/packages/packages.component.ts | 18 +- desktop-app/src/app/process-bucket.service.ts | 7 +- .../setup-guide/setup-guide.component.html | 50 +-- .../setup-guide/setup-guide.component.scss | 5 + desktop-app/src/app/status-bar.service.ts | 1 + desktop-app/src/styles.scss | 4 +- electron/window.ts | 1 + 18 files changed, 394 insertions(+), 393 deletions(-) diff --git a/desktop-app/src/app/adb-client.service.ts b/desktop-app/src/app/adb-client.service.ts index c06e787..12d1e37 100644 --- a/desktop-app/src/app/adb-client.service.ts +++ b/desktop-app/src/app/adb-client.service.ts @@ -163,18 +163,6 @@ export class AdbClientService { return this.runAdbCommand( `adb shell monkey -p ${packageName} -c com.oculus.intent.category.VR -c android.intent.category.LAUNCHER -vvv 3` ); - // - // return this.adbCommand('shell', { - // serial: this.deviceSerial, - // command: 'dumpsys package ' + packageName + " | grep -A 1 'filter' | head -n 1 | cut -d ' ' -f 10", - // }).then(res => - // res - // ? this.adbCommand('shell', { - // serial: this.deviceSerial, - // command: 'am start -n -a com.example.ACTION_NAME ' + res.trim(), - // }) - // : Promise.reject('Could not find activity name for ' + packageName) - // ); } installMultiFile(filepath) { @@ -1108,52 +1096,51 @@ This can sometimes be caused by changes to your hosts file. Don't make changes u } async getPackagePermissions(packagename) { - return this.adbCommand('shell', { serial: this.deviceSerial, command: 'dumpsys package ' + packagename }).then(data => { - let lines = data.split('\n').map(l => l.trim()); - let start_needs = lines.indexOf('requested permissions:') + 1; - let end_needs = lines.indexOf('install permissions:'); - let start = lines.indexOf('runtime permissions:') + 1; - let end = lines.indexOf('Dexopt state:'); - - let current = lines - .slice(start_needs, end_needs) - .filter(l => l && l.startsWith('android.permission')) - .map(p => p.split(':')[0].trim()); - - let installed = lines - .slice(end_needs, start) - .filter(l => l && l.startsWith('android.permission') && l.trim().endsWith('granted=true')) - .map(p => p.split(':')[0].trim()); - - let read_perm = 'android.permission.READ_EXTERNAL_STORAGE'; - let write_perm = 'android.permission.WRITE_EXTERNAL_STORAGE'; - let record_perm = 'android.permission.RECORD_AUDIO'; - - let permsList = []; - if (~current.indexOf(read_perm) && !~installed.indexOf(read_perm)) { - permsList.push(read_perm); + let requested_permissions = await this.runAdbCommand( + `adb shell "dumpsys package ${packagename} | grep permission | sed -n '/runtime permissions/,$p' | grep -v 'runtime'"` + ); + let granted_audio = '', + granted_read_storage = '', + granted_write_storage = ''; + try { + granted_audio = await this.runAdbCommand( + `adb shell "dumpsys package ${packagename} | grep 'android.permission.RECORD_AUDIO: granted=true'"` + ); + } catch {} + try { + granted_write_storage = await this.runAdbCommand( + `adb shell "dumpsys package ${packagename} | grep 'android.permission.WRITE_EXTERNAL_STORAGE: granted=true'"` + ); + } catch {} + try { + granted_read_storage = await this.runAdbCommand( + `adb shell "dumpsys package ${packagename} | grep 'android.permission.READ_EXTERNAL_STORAGE: granted=true'"` + ); + } catch {} + let read_perm = 'android.permission.READ_EXTERNAL_STORAGE'; + let write_perm = 'android.permission.WRITE_EXTERNAL_STORAGE'; + let record_perm = 'android.permission.RECORD_AUDIO'; + let perms_list = []; + if (requested_permissions.includes(read_perm)) { + perms_list.push(read_perm); + } + if (requested_permissions.includes(write_perm)) { + perms_list.push(write_perm); + } + if (requested_permissions.includes(record_perm)) { + perms_list.push(record_perm); + } + return perms_list.map(d => { + let permission = d.split(':')[0]; + let enabled = false; + if (permission.includes(record_perm) && granted_audio.length > 0) { + enabled = true; + } else if (permission.endsWith(write_perm) && granted_write_storage.length > 0) { + enabled = true; + } else if (permission.endsWith(read_perm) && granted_read_storage.length > 0) { + enabled = true; } - if (~current.indexOf(write_perm) && !~installed.indexOf(write_perm)) { - permsList.push(write_perm); - } - if (~current.indexOf(record_perm) && !~installed.indexOf(record_perm)) { - permsList.push(record_perm); - } - let perms = permsList.map(p => ({ permission: p, enabled: false })); - lines - .slice(start, end) - .filter(l => l && l.startsWith('android.permission')) - .forEach(l => { - let parts = l.split(':'); - if (parts.length) { - let perm = parts[0].trim(); - let index = permsList.indexOf(perm); - if (~index) { - perms[index].enabled = parts.length > 1 && parts[1].trim() === 'granted=true'; - } - } - }); - return perms; + return { permission, enabled }; }); } async getFreeSpace() { diff --git a/desktop-app/src/app/connection-status/connection-status.component.html b/desktop-app/src/app/connection-status/connection-status.component.html index 4a3614b..142b96e 100644 --- a/desktop-app/src/app/connection-status/connection-status.component.html +++ b/desktop-app/src/app/connection-status/connection-status.component.html @@ -1,6 +1,6 @@
-

Connection Status

+

Connection Status

{{adb.diagnostics.usb && adb.diagnostics.usb.is_connected?'Quest Detected':'Quest Not Detected'}} diff --git a/desktop-app/src/app/connection-status/connection-status.component.scss b/desktop-app/src/app/connection-status/connection-status.component.scss index f570a05..f871af1 100644 --- a/desktop-app/src/app/connection-status/connection-status.component.scss +++ b/desktop-app/src/app/connection-status/connection-status.component.scss @@ -46,7 +46,7 @@ .status-text{ - font-size: 12px; + font-size: 16px; display: inline-block; margin-left: 5px; vertical-align: middle; diff --git a/desktop-app/src/app/electron.service.ts b/desktop-app/src/app/electron.service.ts index 675ecd0..4a26613 100644 --- a/desktop-app/src/app/electron.service.ts +++ b/desktop-app/src/app/electron.service.ts @@ -65,6 +65,7 @@ export class ElectronService { async installFromToken(token) { let res = await this.adbService.adbCommand('installFromToken', { token }); + console.log(res); res.forEach((l, i) => { switch (l.type) { case 'Mod': @@ -126,7 +127,7 @@ export class ElectronService { switch (url[0]) { case 'sidequest://w/': this.adbService.runAdbCommand('adb shell am start -a android.intent.action.VIEW -d ' + url[1]).then(() => { - this.statusService.showStatus('Launching WebXR in browser...'); + this.statusService.showStatus('Launching WebXR in browser...', false, true); }); this.webviewService.isWebviewLoading = false; break; diff --git a/desktop-app/src/app/files/files.component.html b/desktop-app/src/app/files/files.component.html index 30e4e0e..84b7b77 100644 --- a/desktop-app/src/app/files/files.component.html +++ b/desktop-app/src/app/files/files.component.html @@ -95,8 +95,8 @@
- - +
Close
+
Make Folder
@@ -117,16 +117,16 @@


-

+
Select Location
+

Current Location: {{adbService.savePath}} - - - +
Close
+
Save To PC
+ @@ -135,14 +135,14 @@ Pick a location on your PC to save screenshots and recordings:

-

+
Select Location


Current Location: {{adbService.savePath}}
- - +
Close
+
Save To PC
@@ -168,8 +168,8 @@ WARNING: This cannot be undone!! - - +
Close
+ +
Delete Items
diff --git a/desktop-app/src/app/header/header.component.html b/desktop-app/src/app/header/header.component.html index 5b48c76..18cd98f 100644 --- a/desktop-app/src/app/header/header.component.html +++ b/desktop-app/src/app/header/header.component.html @@ -185,26 +185,27 @@ - - +
Close
+
SideQuest Home
- - - - -

ADB Logcat

+
Close
+
Stop
+
Pick Output Folder
+
Cancel Output
+ +

ADB Logcat

Select your options and click start to begin receiving logcat messages.
{{saveLogcatPath ? 'Saving to: ' + appService.path.join(saveLogcatPath,'logcat.log') : ''}} +
Clear File
- -
+
@@ -245,8 +246,8 @@
- -
+
{{isStarted?'Restart':'Start'}}
+
@@ -275,7 +276,7 @@ Thank you and have a great day! - +
Back to Safety
@@ -303,30 +304,17 @@

- - - - - - - -

Close SideQuest

-
- - Are you sure you want to close SideQuest? This will cancel any running tasks. - - - - - +
Close
+
Run Command
+
- - -

Manage Favourites

+
{{showAddFavourite? 'Hide' : 'Add New'}}
+
addAdd Current to favs
+

Manage Favourites

Manage your favourites here. If you need to undo click RESET at the bottom. When you are done click SAVE.

@@ -357,9 +345,12 @@
drag_indicator -
-
-
+
+
+
+
+
Pick Icon
+
close
@@ -367,7 +358,7 @@
- - - +
Cancel
+
Cancel
+
diff --git a/desktop-app/src/app/header/header.component.ts b/desktop-app/src/app/header/header.component.ts index f2a02c0..2780991 100644 --- a/desktop-app/src/app/header/header.component.ts +++ b/desktop-app/src/app/header/header.component.ts @@ -179,7 +179,16 @@ export class HeaderComponent implements OnInit { saveFavourites(type: string) { localStorage.setItem(type, JSON.stringify(this.favourites[type])); } - + async setLocalIcon(fav: FavouriteItem) { + const res = await this.appService.remote.dialog.showOpenDialog({ + filters: [{ name: 'Pictures', extensions: ['png', 'jpg', 'jpeg'] }], + properties: ['openFile'], + defaultPath: this.appService.backupPath, + }); + if (res && res.filePaths && res.filePaths.length === 1) { + fav.icon = res.filePaths[0]; + } + } ngOnInit() {} runAdbCommand() { return this.adbService.runAdbCommand(this.adbCommandToRun).catch(e => { diff --git a/desktop-app/src/app/headset-settings/headset-settings.component.html b/desktop-app/src/app/headset-settings/headset-settings.component.html index 160b1b5..1b60d29 100644 --- a/desktop-app/src/app/headset-settings/headset-settings.component.html +++ b/desktop-app/src/app/headset-settings/headset-settings.component.html @@ -11,6 +11,7 @@

Quality & Performance

Set CPU and GPU level
+

This can improve performance for apps & games at the expense of quicker battery draining and your device may get a little hotter than normal but totally within limits.

@@ -33,76 +34,73 @@

Default Texture Size
+
This will change how high quality some of the in game textures are rendered at.
-
-

- -

-

- -

-

- -

-

- -

-

- -

-
-
- -

- -

-

- -

-

- -

-

- -

-

- -

-
+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

Refresh Rate
+

This will allow you to change to 90Hz refresh rate for 90fps support in games on Quest 2.

Set FFR ( Fixed Foveated Rendering ) level
+

This will change how the view is rendered in the outer edges of the viewscreen for each eye. Higher is better @@ -169,6 +168,7 @@

Chromatic Aberration
+

This will enable/disable chromatic aberration.

@@ -196,124 +196,129 @@
-
Tetiana's Presets
+
Tetiana's Presets
-

- Quickly set the video capture resolution while also using 60 FPS and 10Mbps bitrate capture settings too. -

-
-
Full HD ( 1920 x 1080 )
-
Square ( 1600 x 1600 )
-
+
+

+ Quickly set the video capture resolution while also using 60 FPS and 10Mbps bitrate capture settings too. +

+
+
Full HD ( 1920 x 1080 )
+
Square ( 1600 x 1600 )
+
-
Video Capture Size
+
Video Capture Size
-

- This changes the resolution of captured videos on the Quest -

-

- -

-

- -

-

- -

-

- -

-

- -

+
+

+ This changes the resolution of captured videos on the Quest +

+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

- - - - - - - - - - - - + + + + + + + + + + + + -
Video Capture FPS
+
Video Capture FPS
-

- This changes the frame rate of captured videos on the Quest -

-

- -

-

- -

-

- -

+
+

+ This changes the frame rate of captured videos on the Quest +

+

+ +

+

+ +

+

+ +

-
Video Capture Bitrate
+
Video Capture Bitrate
-

- This changes the quality of captured videos on the Quest -

-

- -

-

- -

-

- -

-

- -

+
+

+ This changes the quality of captured videos on the Quest +

+

+ +

+

+ +

+

+ +

+

+ +

Experimental & Miscellaneous

Experimental Mode
+

This enables experimental features in your Oculus Quest such as Passthrough API support ( requires guardian to be enabled ).

@@ -327,6 +332,7 @@
MTP ( Media Transfer Protocol )
+

This allows you to transfer files between your computer and your headset using your favourite file explorer. You may need to re-enable this when you re-connect your headset.

@@ -340,15 +346,17 @@
Proximity Sensor
- +

- This disables the proximity sensor effectively keeping your quest awake when not on your head ( requires restart to re-enable ). + This disables the proximity sensor effectively keeping your quest awake.

-
Disable Proximity Sensor
+
Enable Proximity Sensor
+
Disable Proximity Sensor
Guardian
+

This will enable/disable the guardian.

@@ -368,6 +376,7 @@
SideQuest Folders
+

This changes the resolution of captured videos on the Quest

@@ -379,7 +388,7 @@
SideQuest Debugger
- +

Open the SideQuest chromium dev tools.

diff --git a/desktop-app/src/app/headset-settings/headset-settings.component.scss b/desktop-app/src/app/headset-settings/headset-settings.component.scss index 2d7fe19..609924d 100644 --- a/desktop-app/src/app/headset-settings/headset-settings.component.scss +++ b/desktop-app/src/app/headset-settings/headset-settings.component.scss @@ -18,3 +18,6 @@ //border-radius: 5px; background: #1a1d3c; } +.header-divider-margin{ + margin-top: 1em; +} diff --git a/desktop-app/src/app/headset-settings/headset-settings.component.ts b/desktop-app/src/app/headset-settings/headset-settings.component.ts index 94c06e6..a7d5d39 100644 --- a/desktop-app/src/app/headset-settings/headset-settings.component.ts +++ b/desktop-app/src/app/headset-settings/headset-settings.component.ts @@ -192,8 +192,8 @@ export class HeadsetSettingsComponent implements OnInit { }) .catch(e => this.statusService.showStatus(e, true)); } - disableProximity() { - this.runAdbCommand('am broadcast -a com.oculus.vrpowermanager.prox_close') + disableProximity(shouldEnable) { + this.runAdbCommand('am broadcast -a com.oculus.vrpowermanager.' + (shouldEnable ? 'automation_disable' : 'prox_close')) .then(() => { this.statusService.showStatus('Disable proximity message sent OK!!'); }) diff --git a/desktop-app/src/app/packages/packages.component.html b/desktop-app/src/app/packages/packages.component.html index 6847529..f48977a 100644 --- a/desktop-app/src/app/packages/packages.component.html +++ b/desktop-app/src/app/packages/packages.component.html @@ -55,87 +55,88 @@

App Settings

+
+ - -
-
-
+
+
{{currentPackage.package.name?currentPackage.package.name:currentPackage.package.packageName}}
-
{{currentPackage.package.packageName}}
-
Version: {{currentPackage.versionCode}}


+
{{currentPackage.package.packageName}}
+
Version: {{currentPackage.versionCode}}


-

Game Data Backups

- Backup data files from your SD Card for this app/game. This will attempt to save game data and OBB files for the game from the SD Card and not the internal storage. Does not work for all games.

-
Backup Game Data


-
-
-
- sync +

Game Data Backups

+ Backup data files from your SD Card for this app/game. This will attempt to save game data and OBB files for the game from the SD Card and not the internal storage. Does not work for all games.

+
Backup Game Data


+
+
+
+ sync +
+
+
+
+ {{showBackupFileName(backup)}} +
-
-
- {{showBackupFileName(backup)}} +

+

APK Backups

+ Backup your APK file from your device.

+ Backup APK File

+
+
+
+ sync +
+
+
+
+ {{showBackupFileName(backup)}} +
+

-

-

APK Backups

- Backup your APK file from your device.

- Backup APK File

-
-
-
- sync +
+ +

Manage App

+ Launch App

+ Force Close App

+ Clear App Data

+ Uninstall App

+ Open Backups + +



+ + +

Permissions

+
{{perms && !perms.length ? 'No permissions for this app...' : 'Manage permissions for this app.'}}
+
+
+
+ {{perm.display_permission}}
-
-
-
- {{showBackupFileName(backup)}} -
-
-
-

-
-
- -

Manage App

- Launch App

- Force Close App

- Clear App Data

- Uninstall App

- Open Backups - -



- - -

Permissions

-
{{perms && !perms.length ? 'No permissions for this app...' : 'Manage permissions for this app.'}}
-
-
-
- {{perm.display_permission}} -
-
-
- +
+
+ +
-
+ diff --git a/desktop-app/src/app/packages/packages.component.ts b/desktop-app/src/app/packages/packages.component.ts index 63685f2..72cdd7b 100644 --- a/desktop-app/src/app/packages/packages.component.ts +++ b/desktop-app/src/app/packages/packages.component.ts @@ -14,7 +14,7 @@ import { PackageService } from './package.service'; }) export class PackagesComponent implements OnInit { @ViewChild('appSettingsModal', { static: false }) appSettingsModal; - + isLoadingApp = false; folder = FolderType; currentPackage: any = { package: { packageName: '', name: '', icon: '' }, versionCode: 0 }; routerPackage: string; @@ -225,6 +225,7 @@ export class PackagesComponent implements OnInit { }); } getCurrentInstalledInfo() { + this.isLoadingApp = true; this.adbService .getBackups(this.currentPackage.package.packageName) .then(backups => (this.backups = backups)) @@ -232,11 +233,13 @@ export class PackagesComponent implements OnInit { .then(version => (this.currentPackage.versionCode = version)) .then(() => this.adbService.getPackagePermissions(this.currentPackage.package.packageName)) .then(perms => { + console.log(perms); perms.forEach((p: any) => { const perm_split = p.permission.split('.'); p.display_permission = perm_split[perm_split.length - 1]; }); this.perms = perms; + this.isLoadingApp = false; }) .then(() => this.adbService.getDataBackups(this.currentPackage.package.packageName)) .then(dataBackups => (this.dataBackups = dataBackups)); @@ -244,18 +247,7 @@ export class PackagesComponent implements OnInit { async backupApk(packageName: string) { this.appSettingsModal.closeModal(); let location = await this.adbService.getPackageLocation(packageName); - this.adbService.backupPackage(location, packageName).then(savePath => { - // if ( - // packageName === this.bsaberService.beatSaberPackage && - // !this.bsaberService.backupExists() - // ) { - // this.appService.fs.copyFileSync(savePath, this.appService.path.join(this.appService.appData, 'bsaber-base.apk')); - // this.appService.fs.copyFileSync( - // savePath, - // this.appService.path.join(this.appService.appData, 'bsaber-base_patched.apk') - // ); - // } - }); + await this.adbService.backupPackage(location, packageName); } backupData(packageName) { this.appSettingsModal.closeModal(); diff --git a/desktop-app/src/app/process-bucket.service.ts b/desktop-app/src/app/process-bucket.service.ts index a3ffb9e..e098d4c 100644 --- a/desktop-app/src/app/process-bucket.service.ts +++ b/desktop-app/src/app/process-bucket.service.ts @@ -72,10 +72,8 @@ export class ProcessBucketService { _name = 'app data restore'; break; } - if (!this.tasks.length) { - this.statusService.showStatus('Starting ' + _name + '...'); - } - this.tasks.push({ + let task = new ProcessTask(this.statusService); + Object.assign(task, { key, name, app_name, @@ -83,6 +81,7 @@ export class ProcessBucketService { status, resolve, }); + this.tasks.push(task); this.left_length = this.tasks.filter(t => !t.failed && !t.running && !t.cancelled && !t.succeeded).length; } diff --git a/desktop-app/src/app/setup-guide/setup-guide.component.html b/desktop-app/src/app/setup-guide/setup-guide.component.html index c82c871..bb1f6cb 100644 --- a/desktop-app/src/app/setup-guide/setup-guide.component.html +++ b/desktop-app/src/app/setup-guide/setup-guide.component.html @@ -1,36 +1,36 @@
Setup Instructions
Support Options
- +
- -
-
Get help and support from SideQuest.
-
-
-
Fix It For Me
-

We have many solutions baked in to help you solve the most common problems. This is the best option becuase this info will always be the most up to date.


-

-
Open Support Community
-

If you are still having trouble then please visit our support community on SideQuest.


-

-
{{'Upload Logs'}}
-

If instructed to upload logs by a SideQuest support person, please click this button.


-
- Copy and paste this link into your support request: -

{{link}}

-
Copy to Clipboard
-
-
- Thank you! + +
+
Get help and support from SideQuest.
+
+
+

We have many solutions baked in to help you solve the most common problems. This is the best option becuase this info will always be the most up to date.

+
Fix It For Me
+
+

If you are still having trouble then please visit our support community on SideQuest.

+
Open Support Community
+
+

If instructed to upload logs by a SideQuest support person, please click this button.

+
{{'Upload Logs'}}
+
+ Copy and paste this link into your support request: +

{{link}}

+
Copy to Clipboard
+
+
+ Thank you! +
-
-
+
Step 1: Create Org
>
Step 2: Dev Mode
>
Step 3: Connect
@@ -67,7 +67,7 @@
-

+

Step 2: Enable Developer Mode and Reboot

@@ -81,7 +81,7 @@
-

+

Step 3: Connect USB Cable and Allow USB Debugging

diff --git a/desktop-app/src/app/setup-guide/setup-guide.component.scss b/desktop-app/src/app/setup-guide/setup-guide.component.scss index 1f8be79..9c460ee 100644 --- a/desktop-app/src/app/setup-guide/setup-guide.component.scss +++ b/desktop-app/src/app/setup-guide/setup-guide.component.scss @@ -44,6 +44,7 @@ color: white; background: #24284E; cursor: pointer; + border-top: 2px #7289DA; } .tab.active{ background: #7289DA; @@ -74,3 +75,7 @@ width: calc(100% - 350px); } } +.extra-margin-bottom{ + margin-bottom: 45px; + margin-top: 20px; +} diff --git a/desktop-app/src/app/status-bar.service.ts b/desktop-app/src/app/status-bar.service.ts index 353fbcc..b86f6dd 100644 --- a/desktop-app/src/app/status-bar.service.ts +++ b/desktop-app/src/app/status-bar.service.ts @@ -12,6 +12,7 @@ export class StatusBarService { this.status = status; } showStatus(message: string, isError?: boolean, isInfo?: boolean) { + console.warn('here'); this.status.showStatus(message, isError, isInfo); } hideStatus() { diff --git a/desktop-app/src/styles.scss b/desktop-app/src/styles.scss index a810e53..e2a64e5 100644 --- a/desktop-app/src/styles.scss +++ b/desktop-app/src/styles.scss @@ -164,7 +164,6 @@ body{ } .section-title { margin-top: 1em; - margin-left: 1em; } .link, .sort-link { @@ -245,6 +244,9 @@ code > pre, .code{ padding-right: 80px; color: white; } +.inner-app-container-margin-top{ + margin-top: 27px; +} .margin-top{ margin-top: 1.5em; } diff --git a/electron/window.ts b/electron/window.ts index 605b770..0603237 100644 --- a/electron/window.ts +++ b/electron/window.ts @@ -59,6 +59,7 @@ export class AppWindow { show: !showAfterSetup, webPreferences: { webviewTag: true, + webSecurity: process.env.NODE_ENV !== 'dev', nodeIntegration: true, contextIsolation: false, },