diff --git a/desktop-app/src/app/connection-status/connection-status.component.html b/desktop-app/src/app/connection-status/connection-status.component.html new file mode 100644 index 0000000..feedafc --- /dev/null +++ b/desktop-app/src/app/connection-status/connection-status.component.html @@ -0,0 +1,54 @@ + +
+

Connection Status

+
+
+ {{adb.diagnostics.usb && adb.diagnostics.usb.is_connected?'Quest Detected':'Quest Not Detected'}} +
+
+
+ {{adb.diagnostics.usb && adb.diagnostics.usb.is_dev_mode_enabled?'Dev Mode Enabled':'Dev Mode Not Enabled'}} +
+
+
+ {{adb.diagnostics.usb && adb.diagnostics.usb.is_adb_enabled?'ADB Detected':'No ADB Detected'}} +
+
+
+ {{adb.devices.length && adb.deviceStatus === ConnectionStatus.UNAUTHORIZED?'Not Authorized.':'Device Authorized'}} +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+
+
+

+ {{(adb.diagnostics.usb && adb.diagnostics.usb.result_status=='diag-good' && adb.devices.length && adb.deviceStatus !== ConnectionStatus.UNAUTHORIZED)?'You\'re all set!':'So how do I fix it?'}} +

+
+ Here are some solutions we have come across related to this problem.
Please try the recommendations here before following tutorials online, this information is always the most up to date. +
+
{{(adb.diagnostics.usb && adb.diagnostics.usb.result_status=='diag-good' && adb.devices.length && adb.deviceStatus !== ConnectionStatus.UNAUTHORIZED) ? "Check for a popup to accept inside the headset.":adb.diagnostics.usb ? adb.diagnostics.usb.recommendation : ''}}
+
+
diff --git a/desktop-app/src/app/connection-status/connection-status.component.scss b/desktop-app/src/app/connection-status/connection-status.component.scss new file mode 100644 index 0000000..fda622c --- /dev/null +++ b/desktop-app/src/app/connection-status/connection-status.component.scss @@ -0,0 +1,53 @@ + +.diag-recommend .diag-recommend-details { + white-space: pre-wrap; +} +.diag-recommend-details{ + //background: rgba(255,255,255,0.3); + padding: 10px; + border-radius: 10px; + border: 1px solid white; +} +.help-section{ + position: absolute; + z-index: 200; + top: 0px; + left: 0px; + right: 270px; + bottom: 0px; + background: #111124; + box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px; + padding: 0 40px; +} + +.right-side-diagnostics{ + position: absolute; + width: 245px; + top: 56px; + right: 20px; +} +.switch-margin-bottom{ + margin-bottom: 20px; +} +.status-circle{ + width: 15px; + height: 15px; + display: inline-block; + border-radius: 50%; + background: linear-gradient(to right, #d71d33, #d92613); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ + vertical-align: middle; +} +.status-circle.green{ + background: linear-gradient(to right, #12c4b5, #22c05d); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ +} +.status-circle.purple{ + background: linear-gradient(to right, #aa076b, #61045f); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ +} + + +.status-text{ + font-size: 12px; + display: inline-block; + margin-left: 5px; + vertical-align: middle; +} diff --git a/desktop-app/src/app/connection-status/connection-status.component.spec.ts b/desktop-app/src/app/connection-status/connection-status.component.spec.ts new file mode 100644 index 0000000..066ce6f --- /dev/null +++ b/desktop-app/src/app/connection-status/connection-status.component.spec.ts @@ -0,0 +1,24 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ConnectionStatusComponent } from './connection-status.component'; + +describe('ConnectionStatusComponent', () => { + let component: ConnectionStatusComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ConnectionStatusComponent], + }).compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(ConnectionStatusComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/desktop-app/src/app/connection-status/connection-status.component.ts b/desktop-app/src/app/connection-status/connection-status.component.ts new file mode 100644 index 0000000..37e8712 --- /dev/null +++ b/desktop-app/src/app/connection-status/connection-status.component.ts @@ -0,0 +1,16 @@ +import { Component, EventEmitter, OnInit, Output } from '@angular/core'; +import { AdbClientService, ConnectionStatus } from '../adb-client.service'; + +@Component({ + selector: 'app-connection-status', + templateUrl: './connection-status.component.html', + styleUrls: ['./connection-status.component.scss'], +}) +export class ConnectionStatusComponent implements OnInit { + ConnectionStatus = ConnectionStatus; + helpOpen: boolean; + @Output() backHome = new EventEmitter(); + constructor(public adb: AdbClientService) {} + + ngOnInit(): void {} +} diff --git a/desktop-app/src/app/setup-guide/setup-guide.component.html b/desktop-app/src/app/setup-guide/setup-guide.component.html new file mode 100644 index 0000000..7f798f8 --- /dev/null +++ b/desktop-app/src/app/setup-guide/setup-guide.component.html @@ -0,0 +1,61 @@ +
+ + + + + > + > + + +
+ + + + + +

+ Step 1: Meta Website - Create Organisation +

+
+ + To allow installing apps & games to your headset we need to enable developer mode. To do this, + you have to be a registered "developer" on the Meta website, it's free, quick and easy. Open + + dashboard.oculus.com + + and create an 'organization'. + You'll need to accept the developer agreement and to verify your account using either a credit card + or a phone number. Most accounts will already be verified. Next you'll need to create an organisation like above. + +
+
+ + +

+ Step 2: Enable Developer Mode and Reboot +

+
+ Now that you’re a "developer", open the Oculus app on your smartphone or tablet. In the + Settings tab, tap on the headset and tap 'More settings'. In the list, you should now see + Developer Mode. Once you have enabled developer mode it is a good idea to reboot your headset + to be able to see it on the device. +
+
+ + +

+ Step 3: Connect USB Cable and Allow USB Debugging +

+
+ Now its time to connect the USB cable. Once you are connected you will have to allow USB + debugging access on your headset. If you put your headset on at this point you will see + something like the below. You should also select 'Always allow from this computer' to prevent + this message from coming up every time you connect. +
+
+
+
diff --git a/desktop-app/src/app/setup-guide/setup-guide.component.scss b/desktop-app/src/app/setup-guide/setup-guide.component.scss new file mode 100644 index 0000000..0d259c0 --- /dev/null +++ b/desktop-app/src/app/setup-guide/setup-guide.component.scss @@ -0,0 +1,37 @@ +.setup-image { + width: 100%; + max-width: 600px; + cursor: pointer; + margin: 10px auto; + margin-bottom: 2px; + display: block; + +} +.setup-image.tall{ + max-width: 280px; +} +.section-title { + font-size: 1.3rem; + margin-top: 0.4em; + margin-left: 1em; +} +.setup-container{ + width: calc(100% - 250px); + padding-right: 20px; + padding-bottom: 20px; + position: relative; +} +.left-arrow, .right-arrow{ + position: absolute; + top: 150px; + left: 5px; + z-index: 10; +} +.right-arrow{ + left: initial; + right: 25px; +} + +.flip-horizontal{ + transform: scaleX(-1); +} diff --git a/desktop-app/src/app/setup-guide/setup-guide.component.spec.ts b/desktop-app/src/app/setup-guide/setup-guide.component.spec.ts new file mode 100644 index 0000000..e0c407c --- /dev/null +++ b/desktop-app/src/app/setup-guide/setup-guide.component.spec.ts @@ -0,0 +1,24 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SetupGuideComponent } from './setup-guide.component'; + +describe('SetupGuideComponent', () => { + let component: SetupGuideComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [SetupGuideComponent], + }).compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(SetupGuideComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/desktop-app/src/app/setup-guide/setup-guide.component.ts b/desktop-app/src/app/setup-guide/setup-guide.component.ts new file mode 100644 index 0000000..a7a59b7 --- /dev/null +++ b/desktop-app/src/app/setup-guide/setup-guide.component.ts @@ -0,0 +1,33 @@ +import { Component, EventEmitter, OnInit, Output } from '@angular/core'; +import { AdbClientService } from '../adb-client.service'; +import { AppService } from '../app.service'; + +@Component({ + selector: 'app-setup-guide', + templateUrl: './setup-guide.component.html', + styleUrls: ['./setup-guide.component.scss'], +}) +export class SetupGuideComponent implements OnInit { + @Output() opn = new EventEmitter(); + @Output() close = new EventEmitter(); + @Output() backHome = new EventEmitter(); + page = 1; + constructor(public adb: AdbClientService, appService: AppService) { + appService.resetTop(); + appService.webService.isWebviewOpen = false; + appService.isSetupOpen = true; + } + + ngOnInit() {} + + open(url) { + this.opn.emit(url); + } + + videoError(ele, event, backup) { + if ([1, 2, 4].includes(event.target.error.code)) { + ele.setAttribute('src', backup); + ele.play(); + } + } +} diff --git a/desktop-app/src/assets/images/back_arrow.svg b/desktop-app/src/assets/images/back_arrow.svg new file mode 100644 index 0000000..17db3a7 --- /dev/null +++ b/desktop-app/src/assets/images/back_arrow.svg @@ -0,0 +1,3 @@ + + + diff --git a/desktop-app/src/assets/setup/connect_accept.mp4 b/desktop-app/src/assets/setup/connect_accept.mp4 new file mode 100644 index 0000000..f2a92d5 Binary files /dev/null and b/desktop-app/src/assets/setup/connect_accept.mp4 differ diff --git a/desktop-app/src/assets/setup/create_organisation.mp4 b/desktop-app/src/assets/setup/create_organisation.mp4 new file mode 100644 index 0000000..4e9323d Binary files /dev/null and b/desktop-app/src/assets/setup/create_organisation.mp4 differ diff --git a/desktop-app/src/assets/setup/enable_dev_mode.mp4 b/desktop-app/src/assets/setup/enable_dev_mode.mp4 new file mode 100644 index 0000000..eb45f76 Binary files /dev/null and b/desktop-app/src/assets/setup/enable_dev_mode.mp4 differ