Browse Source

upd dist

dist
rozetko 1 year ago
parent
commit
565f7741be
  1. 23
      dist/module.js
  2. 2
      dist/module.js.map
  3. 196
      dist/panels/corpglory-dataexporter-panel/module.js
  4. 2
      dist/panels/corpglory-dataexporter-panel/module.js.map
  5. 2
      dist/plugin.json

23
dist/module.js vendored

@ -101,7 +101,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
var PLUGIN_CONFIGURED_QUERY_PARAM = 'pluginConfigured';
var PLUGIN_CONFIGURED_QUERY_PARAM_TRUTHY_VALUE = 'true';
var PLUGIN_CONFIGURED_VERSION_QUERY_PARAM = 'pluginConfiguredVersion';
var DEFAULT_API_URL = 'http://localhost:8080';
var DEFAULT_API_URL = 'http://localhost:8000';
/**
* When everything is successfully configured, reload the page, and pass along a few query parameters
@ -189,6 +189,7 @@ var PluginConfigPage = function PluginConfigPage(_ref2) {
setPluginConnectionCheckError(pluginConnectionResponse);
} else {
setPluginIsConnected(pluginConnectionResponse);
reloadPageWithPluginConfiguredQueryParams(pluginConnectionResponse, true);
}
setCheckingIfPluginIsConnected(false);
case 10:
@ -434,7 +435,7 @@ var ConfigurationForm = function ConfigurationForm(_ref2) {
className: cx('info-block')
}, _p || (_p = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("p", null, "1. Launch the DataExporter backend")), _Text2 || (_Text2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_Text_Text__WEBPACK_IMPORTED_MODULE_2__["default"], {
type: "secondary"
}, "Run hobby, dev or production backend. See", ' ', /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("a", {
}, "Run the backend. See", ' ', /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("a", {
href: "https://code.corpglory.net/corpglory/grafana-data-exporter",
target: "_blank",
rel: "noreferrer"
@ -444,7 +445,7 @@ var ConfigurationForm = function ConfigurationForm(_ref2) {
className: cx('info-block')
}, _p2 || (_p2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("p", null, "2. Let us know the base URL of your DataExporter API")), _Text3 || (_Text3 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_Text_Text__WEBPACK_IMPORTED_MODULE_2__["default"], {
type: "secondary"
}, "The DataExporter backend must be reachable from your Grafana installation. Some examples are:", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("br", null), "- http://host.docker.internal:8080", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("br", null), "- http://localhost:8080"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_4__.Field, {
}, "The DataExporter backend must be reachable from your Grafana installation. Some examples are:", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("br", null), "- http://host.docker.internal:8000", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("br", null), "- http://localhost:8000"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_4__.Field, {
label: "DataExporter backend URL",
invalid: !!errors.dataExporterApiUrl,
error: "Must be a valid URL"
@ -858,7 +859,12 @@ _defineProperty(PluginState, "updateGrafanaPluginSettings", /*#__PURE__*/functio
return _context2.abrupt("return", PluginState.grafanaBackend.post(PluginState.GRAFANA_PLUGIN_SETTINGS_URL, _extends({}, data, {
enabled: enabled,
pinned: true
})));
}),
// @ts-ignore
// for some reason, there is no `options` argument in Grafana's public types for BackendSrv but it exists
{
showSuccessAlert: false
}));
case 2:
case "end":
return _context2.stop();
@ -889,13 +895,20 @@ _defineProperty(PluginState, "createGrafanaToken", /*#__PURE__*/_asyncToGenerato
break;
}
_context3.next = 8;
return PluginState.grafanaBackend["delete"]("".concat(baseUrl, "/").concat(existingKey.id));
return PluginState.grafanaBackend["delete"]("".concat(baseUrl, "/").concat(existingKey.id), undefined, {
showSuccessAlert: false
});
case 8:
_context3.next = 10;
return PluginState.grafanaBackend.post(baseUrl, {
name: 'DataExporter',
role: 'Admin',
secondsToLive: null
},
// @ts-ignore
// for some reason, there is no `options` argument in Grafana's public types for BackendSrv but it exists
{
showSuccessAlert: false
});
case 10:
return _context3.abrupt("return", _context3.sent);

2
dist/module.js.map vendored

File diff suppressed because one or more lines are too long

196
dist/panels/corpglory-dataexporter-panel/module.js vendored

File diff suppressed because one or more lines are too long

2
dist/panels/corpglory-dataexporter-panel/module.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/plugin.json vendored

@ -15,7 +15,7 @@
"keywords": ["export", "csv"],
"screenshots": [],
"version": "1.0.0",
"updated": "2022-12-30"
"updated": "2023-01-12"
},
"routes": [
{

Loading…
Cancel
Save