mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 20:54:22 -06:00
a13c5380a7
* Grafana-UI: Switch CodeEditor to @monao-editor/react * update copy script and paths * hide context menu * use __grafana_public_path__ * Fix value and language not updating * update jaeger tsconfig * update tsconfig Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
21 lines
564 B
TypeScript
21 lines
564 B
TypeScript
declare let __webpack_public_path__: string;
|
|
declare let __webpack_nonce__: string;
|
|
|
|
/**
|
|
* Check if we are hosting files on cdn and set webpack public path
|
|
*/
|
|
if (window.public_cdn_path) {
|
|
__webpack_public_path__ = window.public_cdn_path;
|
|
}
|
|
|
|
// This is a path to the public folder without '/build'
|
|
window.__grafana_public_path__ =
|
|
__webpack_public_path__.substring(0, __webpack_public_path__.lastIndexOf('build/')) || __webpack_public_path__;
|
|
|
|
if ((window as any).nonce) {
|
|
__webpack_nonce__ = (window as any).nonce;
|
|
}
|
|
|
|
import app from './app';
|
|
app.init();
|