Add device level icons
Summary: Gave every device an icon, and use it as fallback in case we don't have a client icon. Added an icon for the Flipper client. This gets (largely) rid of the 'blank' icons Reviewed By: fabiomassimo Differential Revision: D26691054 fbshipit-source-id: d83012e755ae5edb230747e88f9b2eac45450b19
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a5cd18c289
commit
f2689d3a5d
@@ -31,7 +31,7 @@ export default class AndroidDevice extends BaseDevice {
|
||||
) {
|
||||
super(serial, deviceType, title, 'Android', specs);
|
||||
this.adb = adb;
|
||||
this.icon = 'icons/android.svg';
|
||||
this.icon = 'mobile';
|
||||
this.abiList = abiList;
|
||||
this.sdkVersion = sdkVersion;
|
||||
this.adb.openLogcat(this.serial).then((reader) => {
|
||||
|
||||
@@ -25,6 +25,7 @@ export default class ArchivedDevice extends BaseDevice {
|
||||
supportRequestDetails?: SupportFormRequestDetailsState;
|
||||
}) {
|
||||
super(options.serial, options.deviceType, options.title, options.os);
|
||||
this.icon = 'box';
|
||||
this.connected.set(false);
|
||||
this.source = options.source || '';
|
||||
this.supportRequestDetails = options.supportRequestDetails;
|
||||
|
||||
@@ -47,7 +47,7 @@ export default class IOSDevice extends BaseDevice {
|
||||
|
||||
constructor(serial: string, deviceType: DeviceType, title: string) {
|
||||
super(serial, deviceType, title, 'iOS');
|
||||
this.icon = 'icons/ios.svg';
|
||||
this.icon = 'mobile';
|
||||
this.buffer = '';
|
||||
this.startLogListener();
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ import BaseDevice from './BaseDevice';
|
||||
export default class MacDevice extends BaseDevice {
|
||||
constructor() {
|
||||
super('', 'physical', 'Mac', 'MacOS');
|
||||
this.icon = 'app-apple';
|
||||
}
|
||||
|
||||
teardown() {}
|
||||
|
||||
@@ -12,6 +12,7 @@ import BaseDevice from './BaseDevice';
|
||||
export default class WindowsDevice extends BaseDevice {
|
||||
constructor() {
|
||||
super('', 'physical', 'Windows', 'Windows');
|
||||
this.icon = 'app-microsoft-windows';
|
||||
}
|
||||
|
||||
teardown() {}
|
||||
|
||||
Reference in New Issue
Block a user