added get help screen v2
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
|
||||
<div class="right-side-diagnostics">
|
||||
<h3 i18n>Connection Status</h3>
|
||||
<div i18n>
|
||||
<div class="status-circle" [ngClass]="{'green': adb.diagnostics.usb && adb.diagnostics.usb.is_connected}"></div>
|
||||
<span class="status-text">{{adb.diagnostics.usb && adb.diagnostics.usb.is_connected?'Quest Detected':'Quest Not Detected'}}</span>
|
||||
</div>
|
||||
<div i18n>
|
||||
<div class="status-circle" [ngClass]="{'green': adb.diagnostics.usb && adb.diagnostics.usb.is_dev_mode_enabled}"></div>
|
||||
<span class="status-text">{{adb.diagnostics.usb && adb.diagnostics.usb.is_dev_mode_enabled?'Dev Mode Enabled':'Dev Mode Not Enabled'}}</span>
|
||||
</div>
|
||||
<div i18n>
|
||||
<div class="status-circle" [ngClass]="{'green': adb.diagnostics.usb && adb.diagnostics.usb.is_adb_enabled}"></div>
|
||||
<span class="status-text">{{adb.diagnostics.usb && adb.diagnostics.usb.is_adb_enabled?'ADB Detected':'No ADB Detected'}}</span>
|
||||
</div>
|
||||
<div i18n>
|
||||
<div class="status-circle" [ngClass]="{'green': adb.devices.length && adb.deviceStatus !== ConnectionStatus.UNAUTHORIZED}"></div>
|
||||
<span class="status-text">{{adb.devices.length && adb.deviceStatus === ConnectionStatus.UNAUTHORIZED?'Not Authorized.':'Device Authorized'}}</span>
|
||||
</div>
|
||||
<br>
|
||||
<!--<div class="hint-text" *ngIf="adb.currentHint">{{adb.currentHint}}</div>-->
|
||||
<!--<br>-->
|
||||
<!--<div i18n *ngIf="adb.isReady" >-->
|
||||
<!-- <div class="status-circle" [ngClass]="{'green': adb.diagnostics.usb && adb.diagnostics.usb.is_mtp_enabled}"></div>-->
|
||||
<!-- <span class="status-text">{{adb.diagnostics.usb && adb.diagnostics.usb.is_mtp_enabled?'MTP Enabled ( Optional )':'MTP Not Enabled ( Optional )'}}</span>-->
|
||||
<!--</div>-->
|
||||
<!--<br *ngIf="adb.isReady" >-->
|
||||
<!-- <button class="pure-material-button-contained small spaced" *ngIf="adb.isReady" [ngClass]="{'reset': adb.diagnostics.usb && adb.diagnostics.usb.is_mtp_enabled}" (click)="adb.toggleMTP()" i18n>{{adb.diagnostics.usb && adb.diagnostics.usb.is_mtp_enabled ? 'disable MTP':'enable mtp'}}</button>-->
|
||||
|
||||
<!--<div class="switch switch-margin-bottom" *ngIf="adb.isReady" >-->
|
||||
<!-- <label>-->
|
||||
<!-- Off-->
|
||||
<!-- <input type="checkbox" class="disable-reviews" [checked]="adb.diagnostics.usb && adb.diagnostics.usb.is_mtp_enabled" (click)="adb.toggleMTP()">-->
|
||||
<!-- <span class="lever disable-reviews-switch"></span>-->
|
||||
<!-- On-->
|
||||
<!-- </label>-->
|
||||
<!--</div>-->
|
||||
|
||||
<button class="pure-material-button-contained button-margin-bottom" (click)="helpOpen = true;" *ngIf="!adb.isReady">Fix It For Me</button>
|
||||
<!--<button class="pure-material-button-contained button-margin-bottom" (click)="backHome.emit()" *ngIf="adb.isReady && (adb.isOutOfDate || adb.notInstalled)">Install SideQuest</button>-->
|
||||
<!-- <button class="pure-material-button-contained button-margin-bottom flat" (click)="backHome.emit()" *ngIf="adb.isReady && !(adb.isOutOfDate || adb.notInstalled)">Back Home</button>-->
|
||||
|
||||
</div>
|
||||
<div class="help-section" *ngIf="helpOpen">
|
||||
<div class="diag-recommend">
|
||||
<div class="back-arrow" (click)="helpOpen = false"></div><h2 class="clearfix" i18n>
|
||||
{{(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?'}}
|
||||
</h2>
|
||||
<div class="switch-margin-bottom">
|
||||
Here are some solutions we have come across related to this problem. <br>Please try the recommendations here before following tutorials online, this information is always the most up to date.
|
||||
</div>
|
||||
<div class="diag-recommend-details" i18n>{{(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 : ''}}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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<ConnectionStatusComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ConnectionStatusComponent],
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(ConnectionStatusComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -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 {}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
<div class="container text-dark-theme relative">
|
||||
<!--<div class="description-section" i18n>-->
|
||||
<!-- You need to do a one time setup of your quest the first time and usually not again after that. It is a 3 step process and it takes about 2-3 minutes to complete.-->
|
||||
<!--</div>-->
|
||||
|
||||
<button class="pure-material-button-contained flat" [ngClass]="{'active': page === 1}" (click)="page = 1">Step 1: Create Org</button> >
|
||||
<button class="pure-material-button-contained flat" [ngClass]="{'active': page === 2}" (click)="page = 2">Step 2: Dev Mode</button> >
|
||||
<button class="pure-material-button-contained flat clearfix" [ngClass]="{'active': page === 3}" (click)="page = 3">Step 3: Connect</button>
|
||||
<app-connection-status (backHome)="backHome.emit()"></app-connection-status>
|
||||
<div class="setup-container">
|
||||
<button class="pure-material-button-contained tiny slim left-arrow" [disabled]="page < 2" (click)="page < 2 ? page = 1 : page = page - 1;">
|
||||
<img src="assets/images/back_arrow.svg"/>
|
||||
</button>
|
||||
|
||||
<button class="pure-material-button-contained tiny slim right-arrow" [disabled]="page > 2" (click)="page > 2 ? page = 3 : page = page + 1;">
|
||||
<img class="flip-horizontal" src="assets/images/back_arrow.svg"/>
|
||||
</button>
|
||||
<ng-container *ngIf="page === 1">
|
||||
<video class="setup-image" #createOrganisation autoplay="true" loop="true" controls="false" src="https://sidequestvr.com/assets/videos/create_organisation.mp4" (error)="videoError(createOrganisation, $event, 'assets/setup/create_organisation.mp4')"></video>
|
||||
<h3 i18n>
|
||||
Step 1: Meta Website - Create Organisation
|
||||
</h3>
|
||||
<div class="description-section">
|
||||
<ng-container i18n>
|
||||
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
|
||||
</ng-container>
|
||||
<a class="diagnosticator" (click)="open('https://dashboard.oculus.com')">dashboard.oculus.com</a>
|
||||
<ng-container i18n>
|
||||
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.
|
||||
</ng-container>
|
||||
</div>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="page === 2">
|
||||
<video class="setup-image tall" #enableDevMode autoplay="true" loop="true" controls="false" src="https://sidequestvr.com/assets/videos/enable_dev_mode.mp4" (error)="videoError(enableDevMode, $event, 'assets/setup/enable_dev_mode.mp4')" (click)="open('https://sidequestvr.com/assets/images/get-sidequest/verify.png')"></video>
|
||||
<h3 i18n>
|
||||
Step 2: Enable Developer Mode and Reboot
|
||||
</h3>
|
||||
<div class="description-section" i18n>
|
||||
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.
|
||||
</div>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="page === 3">
|
||||
<video class="setup-image" #connectAccept autoplay="true" loop="true" controls="false" src="https://sidequestvr.com/assets/videos/connect_accept.mp4" (error)="videoError(connectAccept, $event, 'assets/setup/connect_accept.mp4')"></video>
|
||||
<h3 i18n>
|
||||
Step 3: Connect USB Cable and Allow USB Debugging
|
||||
</h3>
|
||||
<div class="description-section" i18n>
|
||||
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.
|
||||
</div>
|
||||
</ng-container>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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<SetupGuideComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [SetupGuideComponent],
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(SetupGuideComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user