Skip to content

Commit

Permalink
reset xterm, fix labels
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Nov 12, 2023
1 parent 1c7be0c commit 382e206
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 19 deletions.
26 changes: 26 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const data = '\u001b[37m[11/11/2023, 21:35:35] \u001b[39m\u001b[36m[Govee]\u001b[39m [Desk Lamp]\n\r';

const pluginName = 'Goveer';

const readLines = () => {
const lines = data.split('\n');
let includeNextLine = false;

lines.forEach((line) => {
if (includeNextLine) {
if (line.match(/ \u001b\[39m\u001b\[36m\[.*?]\u001b\[39m /)) {
includeNextLine = false;
} else {
console.log(line);
return;
}
}

if (line.includes(` \u001b[39m\u001b[36m[${pluginName}]\u001b[39m `)) {
console.log(line);
includeNextLine = true;
}
});
};

readLines();
28 changes: 14 additions & 14 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
"semver": "7.5.4",
"socket.io-client": "2.5.0",
"tslib": "2.6.2",
"xterm": "5.0.0",
"xterm-addon-fit": "0.8.0",
"xterm-addon-web-links": "0.9.0",
"xterm": "4.19.0",
"xterm-addon-fit": "0.5.0",
"xterm-addon-web-links": "0.6.0",
"zone.js": "0.12.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ <h4 class="card-title mb-0">
{{ 'plugins.manage.message_install_alternate_version' | translate }}
</button>
<button ngbDropdownItem (click)="viewPluginLog(plugin)">
<i class="fas fa-fw fa-fw fa-wave-square"></i> {{ 'child_bridge.label_plugin_logs' | translate }}
<i class="fas fa-fw fa-fw fa-wave-square"></i> {{ 'plugins.manage.plugin_logs' | translate }}
</button>
<button ngbDropdownItem (click)="$plugin.bridgeSettings(plugin)"
*ngIf="plugin.installedVersion && plugin.name !== 'homebridge-config-ui-x'">
<i class="fas fa-fw fa-fw fa-project-diagram"></i> {{ 'plugins.manage.plugin_logs' | translate }}
<i class="fas fa-fw fa-fw fa-project-diagram"></i> {{ 'child_bridge.label_bridge_settings' | translate }}
</button>
<button ngbDropdownItem (click)="$plugin.jsonEditor(plugin)"
*ngIf="!isMobile && plugin.installedVersion && plugin.name !== 'homebridge-config-ui-x'">
Expand Down

0 comments on commit 382e206

Please sign in to comment.