Logs: Add href to internal link (#23757)

This commit is contained in:
Andrej Ocenas
2020-04-22 19:42:28 +02:00
committed by GitHub
parent eae11f53f3
commit 319a0585a5
7 changed files with 180 additions and 34 deletions

View File

@@ -25,7 +25,7 @@ const stripBaseFromUrl = (url: string): string => {
* @param url
* @internal
*/
const assureBaseUrl = (url: string) => {
const assureBaseUrl = (url: string): string => {
if (url.startsWith('/')) {
return `${grafanaConfig ? grafanaConfig().appSubUrl : ''}${stripBaseFromUrl(url)}`;
}

View File

@@ -1,4 +1,4 @@
import { ScopedVars, DataSourceApi } from '@grafana/data';
import { ScopedVars, DataSourceApi, DataSourceInstanceSettings } from '@grafana/data';
/**
* This is the entry point for communicating with a datasource that is added as
@@ -14,6 +14,11 @@ export interface DataSourceSrv {
* @param scopedVars - variables used to interpolate a templated passed as name.
*/
get(name?: string, scopedVars?: ScopedVars): Promise<DataSourceApi>;
/**
* Returns metadata based on UID.
*/
getDataSourceSettingsByUid(uid: string): DataSourceInstanceSettings | undefined;
}
let singletonInstance: DataSourceSrv;