⚝
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 :
panel_editor_tab.ts
import angular from 'angular'; const directiveModule = angular.module('grafana.directives'); const directiveCache: any = {}; directiveModule.directive('panelEditorTab', ['dynamicDirectiveSrv', panelEditorTab]); function panelEditorTab(dynamicDirectiveSrv: any) { return dynamicDirectiveSrv.create({ scope: { ctrl: '=', editorTab: '=', }, directive: (scope: any) => { const pluginId = scope.ctrl.pluginId; const tabName = scope.editorTab.title .toLowerCase() .replace(' ', '-') .replace('&', '') .replace(' ', '') .replace(' ', '-'); if (directiveCache[pluginId]) { if (directiveCache[pluginId][tabName]) { return directiveCache[pluginId][tabName]; } } else { directiveCache[pluginId] = []; } const result = { fn: () => scope.editorTab.directiveFn(), name: `panel-editor-tab-${pluginId}${tabName}`, }; directiveCache[pluginId][tabName] = result; return result; }, }); }