⚝
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
/
features
/
variables
/
Edit File: adapters.ts
import { ComponentType } from 'react'; import { Reducer } from 'redux'; import { Registry, TypedVariableModel, UrlQueryValue, VariableOption, VariableType } from '@grafana/data'; import { VariableEditorProps } from './editor/types'; import { VariablePickerProps } from './pickers/types'; import { VariablesState } from './state/types'; export interface VariableAdapter<Model extends TypedVariableModel> { id: VariableType; description: string; name: string; initialState: Model; dependsOn: (variable: Model, variableToTest: Model) => boolean; setValue: (variable: Model, option: VariableOption, emitChanges?: boolean) => Promise<void>; setValueFromUrl: (variable: Model, urlValue: UrlQueryValue) => Promise<void>; updateOptions: (variable: Model, searchFilter?: string) => Promise<void>; getSaveModel: (variable: Model, saveCurrentAsDefault?: boolean) => Partial<Model>; getValueForUrl: (variable: Model) => string | string[]; picker: ComponentType<VariablePickerProps<Model>>; editor: ComponentType<VariableEditorProps<Model>>; reducer: Reducer<VariablesState>; beforeAdding?: (model: any) => any; } export const variableAdapters = new Registry<VariableAdapter<any>>();
Simpan