1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

[PM-166] [PM-198] - Add Event Logs for CLI Actions (#6527)

* Added the DeviceType changes for windows CLI

* Event logging for CLI commands

* Changing the icons to cli icons
This commit is contained in:
ttalty
2023-11-09 15:17:25 -05:00
committed by GitHub
parent 4446c09fd2
commit 801141f90e
12 changed files with 93 additions and 14 deletions

View File

@@ -19,14 +19,14 @@ export class CliPlatformUtilsService implements PlatformUtilsService {
if (!this.deviceCache) {
switch (process.platform) {
case "win32":
this.deviceCache = DeviceType.WindowsDesktop;
this.deviceCache = DeviceType.WindowsCLI;
break;
case "darwin":
this.deviceCache = DeviceType.MacOsDesktop;
this.deviceCache = DeviceType.MacOsCLI;
break;
case "linux":
default:
this.deviceCache = DeviceType.LinuxDesktop;
this.deviceCache = DeviceType.LinuxCLI;
break;
}
}
@@ -36,7 +36,7 @@ export class CliPlatformUtilsService implements PlatformUtilsService {
getDeviceString(): string {
const device = DeviceType[this.getDevice()].toLowerCase();
return device.replace("desktop", "");
return device.replace("cli", "");
}
getClientType() {