⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
angular
/
panel
/
View File Name :
query_editor_row.ts
import { coreModule } from 'app/angular/core_module'; export class QueryRowCtrl { target: any; queryCtrl: any; panelCtrl: any; panel: any; hasTextEditMode = false; $onInit() { this.panelCtrl = this.queryCtrl.panelCtrl; this.target = this.queryCtrl.target; this.panel = this.panelCtrl.panel; if (this.hasTextEditMode && this.queryCtrl.toggleEditorMode) { // expose this function to react parent component this.panelCtrl.toggleEditorMode = this.queryCtrl.toggleEditorMode.bind(this.queryCtrl); } if (this.queryCtrl.getCollapsedText) { // expose this function to react parent component this.panelCtrl.getCollapsedText = this.queryCtrl.getCollapsedText.bind(this.queryCtrl); } } } coreModule.directive('queryEditorRow', queryEditorRowDirective); function queryEditorRowDirective() { return { restrict: 'E', controller: QueryRowCtrl, bindToController: true, controllerAs: 'ctrl', templateUrl: 'public/app/angular/panel/partials/query_editor_row.html', transclude: true, scope: { queryCtrl: '=', canCollapse: '=', hasTextEditMode: '=', }, }; }