-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'beta-4.52.3' into master
- Loading branch information
Showing
12 changed files
with
175 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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: | | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
ui/src/app/core/manage-plugins/plugin-log-modal/plugin-log-modal.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title">Logs: {{ plugin.displayName || plugin.name }}</h5> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close" | ||
(click)="activeModal.dismiss('Cross click')"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body d-flex flex-row flex-grow-1 w-100"> | ||
<div #pluginlogoutput class="w-100 bg-black plugin-log-output terminal align-self-end w-100 h-100 mb-1 p-2"></div> | ||
|
||
</div> | ||
<div class="modal-footer"> | ||
|
||
</div> | ||
</div> |
Empty file.
62 changes: 62 additions & 0 deletions
62
ui/src/app/core/manage-plugins/plugin-log-modal/plugin-log-modal.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { | ||
Component, | ||
ElementRef, | ||
HostListener, | ||
Input, | ||
OnDestroy, | ||
OnInit, | ||
ViewChild, | ||
} from '@angular/core'; | ||
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; | ||
import { ToastrService } from 'ngx-toastr'; | ||
|
||
import { ApiService } from '@/app/core/api.service'; | ||
import { TranslateService } from '@ngx-translate/core'; | ||
import { LogService } from '@/app/core/log.service'; | ||
import { Subject } from 'rxjs'; | ||
|
||
@Component({ | ||
selector: 'app-plugin-log-modal', | ||
templateUrl: './plugin-log-modal.component.html', | ||
styleUrls: ['./plugin-log-modal.component.scss'], | ||
}) | ||
export class PluginLogModalComponent implements OnInit, OnDestroy { | ||
@Input() plugin: any; | ||
@ViewChild('pluginlogoutput', { static: true }) termTarget: ElementRef; | ||
private resizeEvent = new Subject(); | ||
|
||
constructor( | ||
public activeModal: NgbActiveModal, | ||
private $api: ApiService, | ||
private $log: LogService, | ||
private $toastr: ToastrService, | ||
private $translate: TranslateService, | ||
) { } | ||
|
||
ngOnInit(): void { | ||
this.getPluginLog(); | ||
} | ||
|
||
@HostListener('window:resize', ['$event']) | ||
onWindowResize(event) { | ||
this.resizeEvent.next(undefined); | ||
} | ||
|
||
getPluginLog() { | ||
// Get the plugin name as configured in the config file | ||
this.$api.get(`/config-editor/plugin/${encodeURIComponent(this.plugin.name)}`).subscribe( | ||
(result) => { | ||
const logAlias = this.plugin.name === 'homebridge-config-ui-x' ? 'Homebridge UI' : result[0].name; | ||
this.$log.startTerminal(this.termTarget, {}, this.resizeEvent, logAlias); | ||
}, | ||
(err) => { | ||
this.$toastr.error(`${err.error.message || err.message}`, this.$translate.instant('toast.title_error')); | ||
this.activeModal.dismiss(); | ||
}, | ||
); | ||
} | ||
|
||
ngOnDestroy() { | ||
this.$log.destroyTerminal(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.