Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[do not merge] comparison: alpha -> beta #1756

Closed
wants to merge 161 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
b8484c6
trigger attach-artifacts
donavanbecker Nov 11, 2023
c1734bb
Update th.json (#1688)
tomzt Nov 11, 2023
a8dceae
test plugin logs
bwp91 Nov 11, 2023
d271f6e
Update Attach Artifacts.yml
donavanbecker Nov 11, 2023
84cb480
Update log.service.ts
bwp91 Nov 11, 2023
2e2d557
Update log.service.ts
bwp91 Nov 11, 2023
f85fc32
Update log.service.ts
bwp91 Nov 11, 2023
c42a1af
Update log.service.ts
bwp91 Nov 11, 2023
907b619
Update log.service.ts
bwp91 Nov 11, 2023
cc6125b
Update log.service.ts
bwp91 Nov 11, 2023
aebd335
Update log.service.ts
bwp91 Nov 11, 2023
75681e0
Update log.service.ts
bwp91 Nov 11, 2023
5e095f5
Update log.service.ts
bwp91 Nov 11, 2023
e671ae4
Update log.service.ts
bwp91 Nov 12, 2023
dc3ed22
Update log.service.ts
bwp91 Nov 12, 2023
a40c883
Update log.service.ts
bwp91 Nov 12, 2023
3dde65e
fix
bwp91 Nov 12, 2023
fd1a742
Update log.service.ts
bwp91 Nov 12, 2023
0337bce
Update log.service.ts
bwp91 Nov 12, 2023
39e17cf
update de.json (#1694)
Staubgeborener Nov 12, 2023
1c7be0c
clean up, try downgrade xterm
bwp91 Nov 12, 2023
382e206
reset xterm, fix labels
bwp91 Nov 12, 2023
d7a1951
layout fix (#1690)
mkz212 Nov 12, 2023
695f419
reorganise restart section
bwp91 Nov 12, 2023
43d8564
fix
bwp91 Nov 12, 2023
824ef9c
restart child bridge after save setting custom ui
bwp91 Nov 12, 2023
71ad624
consistent modal footers
bwp91 Nov 12, 2023
f4a67b7
quick fixes
bwp91 Nov 12, 2023
40033fd
more consistency
bwp91 Nov 12, 2023
80c737d
updates
bwp91 Nov 12, 2023
0707937
restart cb after settings ui update
bwp91 Nov 12, 2023
b47a762
fix (revert) extractNodejs tar extract
bwp91 Nov 13, 2023
0e57693
up
bwp91 Nov 13, 2023
abc1c7f
recommend child bridge
bwp91 Nov 13, 2023
6f00fc4
fixes
bwp91 Nov 13, 2023
71cd358
plugin card
bwp91 Nov 13, 2023
5d9e5ef
next
bwp91 Nov 13, 2023
cdea755
show (i) for cb only when loaded
bwp91 Nov 14, 2023
f23bc0e
bridge settings modal
bwp91 Nov 14, 2023
2819f2b
Merge branch 'latest' into beta-4.52.4
bwp91 Nov 14, 2023
1e7df25
Prep for 4.52.4 (#1717)
NorthernMan54 Nov 14, 2023
56512cb
post-changelog in coloured div
bwp91 Nov 15, 2023
d2262a2
Update CHANGELOG.md
donavanbecker Nov 15, 2023
2a53e2d
Update fr.json (#1705)
SonnyT72 Nov 15, 2023
83d4c60
add pin to child bridge qr code
donavanbecker Nov 15, 2023
73678f4
Update manage-plugins-modal.component.html
bwp91 Nov 15, 2023
fa3b4b6
Language translations (#1701)
mkz212 Nov 15, 2023
5b1a911
Accessories - Long click modal on Lightbulb and Window Covering (#1719)
mkz212 Nov 15, 2023
f81e7c1
component updates
bwp91 Nov 15, 2023
eb7bb1a
Update manage-plugins-modal.component.html
bwp91 Nov 15, 2023
32c3a87
improvements to bridge settings flow
bwp91 Nov 15, 2023
23a9ef9
fix missing func openFullConfigEditor()
bwp91 Nov 15, 2023
95e30dc
restart modal after plugin uninstall
bwp91 Nov 15, 2023
f99e253
formatting
bwp91 Nov 15, 2023
34c6019
move action button to footer
bwp91 Nov 15, 2023
d27d7c7
fix uninstall terminal not disappearing
bwp91 Nov 15, 2023
43a1afc
restart homebridge modals
bwp91 Nov 16, 2023
8d904eb
Accessories - Improvement of colors (#1718)
mkz212 Nov 16, 2023
06fd66d
Small fix in footer links (#1720)
mkz212 Nov 16, 2023
097d24a
Plugin dropdown menu - reorder (#1711)
mkz212 Nov 16, 2023
61292cd
quickfix for accessories (#1721)
mkz212 Nov 16, 2023
1f91473
fix double divider
bwp91 Nov 16, 2023
00b8ff1
quickfix 2 for accessories (#1722)
mkz212 Nov 16, 2023
81878e7
quickfix 3 accessories (#1723)
mkz212 Nov 16, 2023
9d897fd
Plugin dropdown menu - red dot next to dropdown icon as notification …
mkz212 Nov 17, 2023
158eb03
Plugin dropdown menu - add Update button (#1699)
mkz212 Nov 17, 2023
5682ac8
small fixes for accessories (#1724)
mkz212 Nov 17, 2023
39c5b8f
quickfix (#1726)
mkz212 Nov 17, 2023
e77927d
Dropdown - notification about new update - red dot (#1731)
mkz212 Nov 17, 2023
223bbc6
Update pl.json (#1727)
mkz212 Nov 17, 2023
431e8b6
accessories - fix for window covering (#1728)
mkz212 Nov 17, 2023
0f0b845
plugin card updates
bwp91 Nov 17, 2023
1c3965a
update lang files
bwp91 Nov 17, 2023
4c83600
window coverage - light blue (#1733)
mkz212 Nov 17, 2023
643ab86
Notification dot in primary color (instead red) (#1735)
mkz212 Nov 17, 2023
a287edd
not installed plugin icon (#1730)
mkz212 Nov 17, 2023
706b422
Update layout.component.ts
bwp91 Nov 17, 2023
5e98cd1
Update plugin-card.component.html
bwp91 Nov 18, 2023
c485b4d
Update plugin-card.component.html
bwp91 Nov 18, 2023
b32d20b
Update plugin-card.component.html
bwp91 Nov 18, 2023
25e26a7
fix for update modal (#1738)
mkz212 Nov 19, 2023
a16a395
Merge branch 'latest' into alpha-4.53.0
donavanbecker Nov 19, 2023
16fb502
Merge branch 'alpha-4.53.0' of https://github.com/homebridge/homebrid…
donavanbecker Nov 19, 2023
d006d62
Revert "Update plugin-card.component.html"
donavanbecker Nov 19, 2023
2dcbc06
Revert "Update plugin-card.component.html"
donavanbecker Nov 19, 2023
5f95bd8
Merge branch 'beta-4.53.0' into alpha-4.53.0
bwp91 Nov 19, 2023
ff66287
Merge branch 'beta-4.53.0' into alpha-4.53.0
bwp91 Nov 20, 2023
9104501
Sidebar and animation to hamburger menu (#1755)
mkz212 Nov 20, 2023
a13a580
Merge branch 'beta-4.53.0' into alpha-4.53.0
bwp91 Nov 20, 2023
8c71893
fix closing html tag
bwp91 Nov 20, 2023
e70f9a3
fix 1 for sidebar and menu (#1759)
mkz212 Nov 20, 2023
eb66e90
Update alpha-release.yml
donavanbecker Nov 20, 2023
7142641
fix for sidebar and menu (#1761)
mkz212 Nov 20, 2023
74b3806
Fix for Accessories - last row (#1760)
mkz212 Nov 20, 2023
8bedf1d
menu fix 2 (#1762)
mkz212 Nov 20, 2023
8af4cf0
accessories fix 2 (#1763)
mkz212 Nov 20, 2023
6699f83
Fix logo when collapsed (#1765)
mkz212 Nov 20, 2023
e9a268e
Sidebar themes - light and dark (#1769)
mkz212 Nov 20, 2023
cf70b42
fix menu hamburger (#1766)
mkz212 Nov 20, 2023
0c24895
Sticky sidebar (#1767)
mkz212 Nov 20, 2023
16c4954
fix logo in sidebar on light themes and submenu display (#1770)
mkz212 Nov 20, 2023
13a0075
Accessories fix (#1768)
mkz212 Nov 20, 2023
063d293
Fix Hamburger menu + fix scrolling + fix padding (#1771)
mkz212 Nov 20, 2023
941c819
fix color sidebar light theme (#1772)
mkz212 Nov 21, 2023
816755c
small fix for accessory - window covering (#1775)
mkz212 Nov 21, 2023
e6a6c5c
Menu links (#1774)
mkz212 Nov 21, 2023
930a2db
quickfix for padding on mobile (#1773)
mkz212 Nov 21, 2023
b7fff43
fix plugin search border and background (#1776)
mkz212 Nov 21, 2023
581b6f6
fix log buttons (#1778)
mkz212 Nov 21, 2023
9a797c9
many small fixes (#1779)
mkz212 Nov 21, 2023
49b4449
added dropdown to mobile menu (#1781)
mkz212 Nov 21, 2023
d54326e
next menu fix (#1782)
mkz212 Nov 21, 2023
1dca830
Merge branch 'beta-4.53.0' into alpha-4.53.0
bwp91 Nov 21, 2023
1966004
menu next fix (#1784)
mkz212 Nov 21, 2023
826cb29
Merge branch 'beta-4.53.0' into alpha-4.53.0
bwp91 Nov 21, 2023
31d75e4
fix plugin search background (#1785)
mkz212 Nov 21, 2023
71b6d59
menu fix dropdown (#1786)
mkz212 Nov 21, 2023
ed54a38
Merge branch 'beta-4.53.0' into alpha-4.53.0
bwp91 Nov 21, 2023
c1118c0
lint
bwp91 Nov 21, 2023
dd06662
Merge branch 'alpha-4.53.0' of https://github.com/homebridge/homebrid…
bwp91 Nov 21, 2023
86cd5b4
Update app.component.ts
bwp91 Nov 21, 2023
f620b67
Merge branch 'beta-4.53.0' into alpha-4.53.0
bwp91 Nov 22, 2023
d3266ad
Update app.component.ts
bwp91 Nov 22, 2023
e021f32
Update default dashboard layout - small change (#1788)
mkz212 Nov 22, 2023
7f2a891
add UI details to status widget
bwp91 Nov 22, 2023
a83a48a
Update CHANGELOG.md
bwp91 Nov 22, 2023
decc72e
Merge branch 'bp/status-widget-add-ui' into alpha-4.53.0
bwp91 Nov 22, 2023
c191599
Update homebridge-status-widget.component.html
bwp91 Nov 22, 2023
4aeb368
Merge branch 'bp/status-widget-add-ui' into alpha-4.53.0
bwp91 Nov 22, 2023
a0114a0
Fix dropdown (#1787)
mkz212 Nov 22, 2023
803245d
Update homebridge-status-widget.component.html
bwp91 Nov 22, 2023
58aaad2
Merge branch 'bp/status-widget-add-ui' into alpha-4.53.0
bwp91 Nov 22, 2023
72d7f7d
fix widget to show all 4 info (#1791)
mkz212 Nov 22, 2023
071683c
fix dropdown (#1790)
mkz212 Nov 22, 2023
0edadf7
small fix for accessories (#1792)
mkz212 Nov 22, 2023
27b3610
fix dropdown in main menu on mobile (#1793)
mkz212 Nov 22, 2023
3d3b989
dropdown fix + background overlay when nav open (#1794)
mkz212 Nov 22, 2023
3c99f81
dropdown - last fix (#1795)
mkz212 Nov 22, 2023
c2d0131
fix for menu colors (#1797)
mkz212 Nov 22, 2023
b62cfc3
quickfix for one element (#1798)
mkz212 Nov 22, 2023
a8e36dd
some more fixes (#1801)
mkz212 Nov 22, 2023
3f8bb2c
add pi undervoltage (#1802)
mkz212 Nov 22, 2023
1557e90
fix accessory setting button position (#1803)
mkz212 Nov 22, 2023
71c1029
Custom select on dark themes (#1804)
mkz212 Nov 23, 2023
d1d81f8
modal pics + node update modal
bwp91 Nov 23, 2023
ae317ed
Update CHANGELOG.md
bwp91 Nov 23, 2023
3de78d8
Merge branch 'bp/modals' into alpha-4.53.0
bwp91 Nov 23, 2023
46a1ce2
Change bacground of config editor on dark theme (#1805)
mkz212 Nov 23, 2023
23d8e5c
animation when opening dropdown (in mobile menu) (#1808)
mkz212 Nov 23, 2023
d275020
Truncate Plugin name to 2 lines (#1807)
mkz212 Nov 23, 2023
825cbee
Update pl.json (#1799)
mkz212 Nov 23, 2023
beffb8b
Merge branch 'beta-4.53.0' into alpha-4.53.0
bwp91 Nov 23, 2023
1a6fe4a
Update to node-pty 0.11.12 (#1809)
NorthernMan54 Nov 23, 2023
c563ca8
Fix dropdown caret animation + some cleaning (#1810)
mkz212 Nov 24, 2023
cce745a
Added my GLIBC Notes and tweaked minimum version requirements (#1811)
NorthernMan54 Nov 24, 2023
6af202c
Add wordwrap to accessory table display (#1812)
jsiegenthaler Nov 24, 2023
f811b09
New plugin layout - first approach (#1813)
mkz212 Nov 24, 2023
301c992
Merge branch 'beta-4.53.0' into alpha-4.53.0
bwp91 Nov 24, 2023
643b9f7
plugin card fix (#1814)
mkz212 Nov 24, 2023
a2ea9ac
plugin card fix 2 (#1816)
mkz212 Nov 24, 2023
daccf95
plugin card fix 3 (#1817)
mkz212 Nov 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/Attach Artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Manually Attach Artifacts ( If the automation fails )
run-name: Manually Attach Artifacts against ${{ github.event.inputs.tag }}

on:
repository_dispatch:
types: [attach-artifacts]
workflow_dispatch:
inputs:
tag:
Expand All @@ -18,6 +20,10 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 20.x

- name: Get previous tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"

# Sanity check to ensure that release tags don't start with a 'v' version prefix but adhere to the X.Y.Z format
- name: Check for Tag name Format
Expand All @@ -30,7 +36,7 @@ jobs:
- name: Install package
run: |
export npm_config_prefix=$(pwd)/package
npm install -g homebridge-config-ui-x@${{ github.event.inputs.tag }}
npm install -g homebridge-config-ui-x@$${{ needs.analyze-tags.outputs.previous-tag }}

- name: Remove invalid node-pty node-gyp run
run: |
Expand All @@ -39,11 +45,11 @@ jobs:
- name: Create Bundle
run: |
tar -C $(pwd)/package --owner=0 --group=0 --format=posix -czvf homebridge-config-ui-x-${{ github.event.inputs.tag }}.tar.gz .
shasum -a 256 homebridge-config-ui-x-${{ github.event.inputs.tag }}.tar.gz > SHASUMS256.txt
shasum -a 256 homebridge-config-ui-x-${{ needs.analyze-tags.outputs.previous-tag }}.tar.gz > SHASUMS256.txt

- name: Attach Bundle
uses: AButler/[email protected]
with:
files: 'homebridge-config-ui-x-${{ github.event.inputs.tag }}.tar.gz;SHASUMS256.txt'
files: 'homebridge-config-ui-x-${{ needs.analyze-tags.outputs.previous-tag }}.tar.gz;SHASUMS256.txt'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.event.inputs.tag }}
16 changes: 0 additions & 16 deletions .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,7 @@ on:
workflow_dispatch:

jobs:
build_and_test:
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
enable_coverage: true
install_cmd: npm ci && cd ui && npm ci
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

lint:
needs: build_and_test
uses: homebridge/.github/.github/workflows/eslint.yml@latest
with:
install_cmd: npm ci && cd ui && npm ci

publish:
needs: lint

if: ${{ github.repository == 'homebridge/homebridge-config-ui-x' }}

uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ jobs:
tar -C $(pwd)/package --owner=0 --group=0 --format=posix -czvf homebridge-config-ui-x-${{ github.event.release.tag_name }}.tar.gz .
shasum -a 256 homebridge-config-ui-x-${{ github.event.release.tag_name }}.tar.gz > SHASUMS256.txt

- name: Attach Bundle
uses: AButler/upload-release-assets@v2.0
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
files: 'homebridge-config-ui-x-${{ github.event.release.tag_name }}.tar.gz;SHASUMS256.txt'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.event.release.tag_name }}
event-type: attach-artifacts
2 changes: 1 addition & 1 deletion src/modules/status/status.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export class StatusService {

try {
const versionList = (await this.httpService.get('https://nodejs.org/dist/index.json').toPromise()).data;
const currentLts = versionList.filter(x => x.lts)[0];
const currentLts = versionList.filter((x: any) => x.lts)[0];

// See why this is set to 2.29 at https://homebridge.io/w/JJSun
const glibcVersion = this.getGlibcVersion();
Expand Down
4 changes: 3 additions & 1 deletion ui/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,13 @@ export class AppComponent {
}

// ensure the menu closes when we navigate
router.events.subscribe((event) => {
router.events.subscribe((event: any) => {
if (event instanceof NavigationEnd) {
const dropdownMenu = window.document.querySelector('#navbarSupportedContent');
const hamburgerMenuButton = window.document.querySelector('.navbar-toggler');
if (dropdownMenu) {
dropdownMenu.classList.remove('show');
hamburgerMenuButton.classList.add('collapsed');
}
}
});
Expand Down
2 changes: 2 additions & 0 deletions ui/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ import { AuthModule } from '@/app/core/auth/auth.module';
import { CoreModule } from '@/app/core/core.module';
import { supportedLocales } from '@/app/core/locales';
import { onMonacoLoad } from '@/app/core/monaco-editor.service';
import { RestartOptionsModalComponent } from '@/app/shared/layout/restart-options-modal/restart-options-modal.component';

@NgModule({
declarations: [
AppComponent,
LayoutComponent,
RestartOptionsModalComponent,
],
imports: [
BrowserModule,
Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/core/accessories/accessories.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@ export class AccessoriesService {
/**
* Parse the incoming accessory data and refresh existing accessory statuses
*/
private parseServices(services) {
private parseServices(services: any) {
if (!this.accessories.services.length) {
this.accessories.services = services;
return;
}

// update the existing objects to avoid re-painting the dom element each refresh
services.forEach((service) => {
services.forEach((service: any) => {
const existing = this.accessories.services.find(x => x.uniqueId === service.uniqueId);

if (existing) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="accessory-box" [ngClass]="{'switch-on': service.values.On}" appLongclick (longclick)="onLongClick()"
<div class="accessory-box" [ngClass]="{'light-on': service.values.On}" appLongclick (longclick)="onLongClick()"
(shortclick)="onClick()" tabindex="0">
<div class="d-flex flex-column h-100">
<div [inlineSVG]="'/assets/hap-icons/lightbulb.svg'" aria-label="Light Bulb" class="accessory-svg"></div>
Expand All @@ -8,4 +8,4 @@
</div>
<div class="accessory-label grey-text" *ngIf="service.values.Brightness">{{ service.values.Brightness }}%</div>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class LightbulbComponent implements OnInit {
onLongClick() {
if ('Brightness' in this.service.values) {
const ref = this.modalService.open(LightbulbManageComponent, {
size: 'sm',
size: 'md',
});
ref.componentInstance.service = this.service;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h5 class="modal-title" [innerText]="service.customName || service.serviceName">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body text-center">
<div class="modal-body text-center p-5">

<h5>
<strong>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="accessory-box" [ngClass]="{'switch-on': service.values.TargetPosition}" appLongclick
<div class="accessory-box" [ngClass]="{'window-on': service.values.TargetPosition}" appLongclick
(longclick)="onLongClick()" (shortclick)="onClick()" tabindex="0">
<div class="d-flex flex-column h-100">
<div *ngIf="!service.values.TargetPosition" [inlineSVG]="'/assets/hap-icons/windowcovering-closed.svg'"
Expand All @@ -20,4 +20,4 @@
{{ 'accessories.control.label_closing' | translate }}...
</div>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
font-size: 1.4rem;
text-transform: initial;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class WindowcoveringComponent implements OnInit {

onLongClick() {
const ref = this.modalService.open(WindowcoveringManageComponent, {
size: 'sm',
size: 'md',
});
ref.componentInstance.service = this.service;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h5 class="modal-title" [innerText]="service.customName || service.serviceName">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body text-center">
<div class="modal-body text-center p-5">

<h5>
<strong>
Expand Down
3 changes: 1 addition & 2 deletions ui/src/app/core/components/confirm/confirm.component.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{{ title }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"
(click)="activeModal.dismiss('Dismiss')">
<button type="button" class="close" data-dismiss="modal" aria-label="Close" (click)="activeModal.dismiss('Dismiss')">
<span aria-hidden="true">&times;</span>
</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{{ title }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"
(click)="activeModal.dismiss('Dismiss')">
<button type="button" class="close" data-dismiss="modal" aria-label="Close" (click)="activeModal.dismiss('Dismiss')">
<span aria-hidden="true">&times;</span>
</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{{ 'platform.version.title_service_restart_required' | translate }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" (click)="activeModal.dismiss('Dismiss')">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body w-100 text-center">
<i class="fas fa-fw fa-power-off primary-text mb-4" style="font-size: 75px;"></i>
<p class="w-100">{{ 'plugins.manage.message_thanks_for_updating_restart' | translate }}</p>
</div>
<div class="modal-footer justify-content-between">
<div class="text-left">
<button type="button" class="btn btn-elegant" data-dismiss="modal" (click)="activeModal.dismiss('Dismiss')">
{{ 'form.button_close' | translate }}
</button>
</div>
<div class="text-center"></div>
<div class="text-right">
<button type="button" class="btn btn-primary" (click)="onRestartHomebridgeClick()">
{{ 'plugins.manage.button_restart_now' | translate }}
</button>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';

@Component({
selector: 'app-confirm',
templateUrl: './restart-homebridge.component.html',
styleUrls: ['./restart-homebridge.component.scss'],
})
export class RestartHomebridgeComponent implements OnInit {
constructor(
public activeModal: NgbActiveModal,
private $router: Router,
) { }

ngOnInit() {}

public onRestartHomebridgeClick() {
this.$router.navigate(['/restart']);
this.activeModal.close();
}
}
2 changes: 2 additions & 0 deletions ui/src/app/core/core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { ConvertTempPipe } from './pipes/convert-temp.pipe';
import { ExternalLinkIconPipe } from './pipes/external-link-icon.pipe';
import { ReplacePipe } from './pipes/replace.pipe';
import { InformationComponent } from '@/app/core/components/information/information.component';
import { RestartHomebridgeComponent } from '@/app/core/components/restart-homebridge/restart-homebridge.component';

@NgModule({
declarations: [
Expand All @@ -32,6 +33,7 @@ import { InformationComponent } from '@/app/core/components/information/informat
ScheduledBackupsComponent,
ConfirmComponent,
InformationComponent,
RestartHomebridgeComponent,
QrcodeComponent,
],
imports: [
Expand Down
31 changes: 28 additions & 3 deletions ui/src/app/core/log.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class LogService {
private webLinksAddon: WebLinksAddon;
private resize: Subject<any>;
private elementResize: Subject<any> | undefined;
private pluginName: string;

constructor(
private $ws: WsService,
Expand All @@ -25,7 +26,10 @@ export class LogService {
startTerminal(
targetElement: ElementRef,
termOpts: ITerminalOptions = {},
elementResize?: Subject<any>) {
elementResize?: Subject<any>,
pluginName?: string,
) {
this.pluginName = pluginName;

// handle element resize events
this.elementResize = elementResize;
Expand Down Expand Up @@ -74,8 +78,29 @@ export class LogService {
});

// subscribe to incoming data events from server to client
this.io.socket.on('stdout', data => {
this.term.write(data);
this.io.socket.on('stdout', (data: string) => {
if (this.pluginName) {
const lines = data.split('\n');
let includeNextLine = false;

lines.forEach((line) => {
if (includeNextLine) {
if (line.match(/36m\[.*?]/)) {
includeNextLine = false;
} else {
this.term.write(line + '\r\n');
return;
}
}

if (line.includes(`36m[${this.pluginName}]`)) {
this.term.write(line + '\r\n');
includeNextLine = true;
}
});
} else {
this.term.write(data);
}
});

// handle resize events from the client
Expand Down
Loading
Loading