aidanmountford / aidanmountford-html-panel

Grafana panel for rendering data aware HTML
MIT License
12 stars 5 forks source link

if i want use local javascript,how can i do ,i can`t find any useing message,thanks #22

Open abutwang opened 1 year ago

abutwang commented 1 year ago

i want to use some my javascript,or other 3th javascript

i wrote in this

i think may be the errors in "path"

can anyone give me some useing advise,sorry for my english hehe

abutwang commented 1 year ago

i see the ctrl.js

import {MetricsPanelCtrl} from 'app/plugins/sdk'; import _ from 'lodash'; import kbn from 'app/core/utils/kbn'; import TimeSeries from 'app/core/time_series'; import rendering from './rendering'; import ace from './node_modules/brace/index.js'; import './node_modules/brace/ext/language_tools.js'; import './node_modules/brace/theme/tomorrow_night_bright.js'; import './node_modules/brace/mode/javascript.js'; //import './node_modules/brace/mode/plain_text.js';

is there

abutwang commented 1 year ago

I find /usr/share/public,but must use text plugin