@cloudcare/guance-front-tools 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/docs/en/grafana-guance-data-source.md +37 -0
- package/docs/en/quick-guide.md +47 -0
- package/docs/zh/grafana-guance-data-source.md +37 -0
- package/docs/zh/quick-guide.md +46 -0
- package/guance-dashboard.json +121 -1276
- package/lib/example/test.json +1284 -4227
- package/lib/scripts/grafana-covert-to-guance.js +3 -3
- package/lib/scripts/grafana-covert-to-guance.ts +4 -3
- package/package.json +1 -1
|
@@ -334,10 +334,10 @@ const covert = (grafanaData) => {
|
|
|
334
334
|
var _a;
|
|
335
335
|
if (_panel.type === 'row') {
|
|
336
336
|
const _rowPanel = _panel;
|
|
337
|
-
guanceGroups.push({
|
|
338
|
-
name: _rowPanel.title,
|
|
339
|
-
});
|
|
340
337
|
if (_rowPanel.title) {
|
|
338
|
+
guanceGroups.push({
|
|
339
|
+
name: _rowPanel.title,
|
|
340
|
+
});
|
|
341
341
|
// 分组展开收起数据
|
|
342
342
|
guanceExpand[_rowPanel.title] = !_rowPanel.collapsed;
|
|
343
343
|
}
|
|
@@ -335,10 +335,11 @@ const covert = (grafanaData: GrafanaDashboardType): GuanceDashboardType => {
|
|
|
335
335
|
grafanaCharts.forEach((_panel) => {
|
|
336
336
|
if (_panel.type === 'row') {
|
|
337
337
|
const _rowPanel = _panel as RowPanel
|
|
338
|
-
|
|
339
|
-
name: _rowPanel.title,
|
|
340
|
-
})
|
|
338
|
+
|
|
341
339
|
if (_rowPanel.title) {
|
|
340
|
+
guanceGroups.push({
|
|
341
|
+
name: _rowPanel.title,
|
|
342
|
+
})
|
|
342
343
|
// 分组展开收起数据
|
|
343
344
|
guanceExpand[_rowPanel.title] = !_rowPanel.collapsed
|
|
344
345
|
}
|