Compare commits

...

10 Commits
master ... dist

  1. 1
      .gitignore
  2. 5
      dist/CHANGELOG.md
  3. 201
      dist/LICENSE
  4. 5
      dist/README.md
  5. 11
      dist/img/logo.svg
  6. 9
      dist/index.html
  7. 3
      dist/module.js
  8. 7
      dist/module.js.LICENSE.txt
  9. 1
      dist/module.js.map
  10. 1
      dist/panels/corpglory-dataexporter-panel/assets/logo.svg
  11. 3
      dist/panels/corpglory-dataexporter-panel/module.js
  12. 1
      dist/panels/corpglory-dataexporter-panel/module.js.LICENSE.txt
  13. 1
      dist/panels/corpglory-dataexporter-panel/module.js.map
  14. 18
      dist/panels/corpglory-dataexporter-panel/plugin.json
  15. 37
      dist/plugin.json

1
.gitignore vendored

@ -1,5 +1,4 @@
node_modules
dist
.eslintcache
yarn-error.log
coverage

5
dist/CHANGELOG.md vendored

@ -0,0 +1,5 @@
# Changelog
## 1.0.0 (Unreleased)
Initial release.

201
dist/LICENSE vendored

@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

5
dist/README.md vendored

@ -0,0 +1,5 @@
<!-- This README file is going to be the one displayed on the Grafana.com website for your plugin -->
# Data Exporter

11
dist/img/logo.svg vendored

@ -0,0 +1,11 @@
<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2871_2649)">
<path d="M32.2652 22V34.6751C32.2652 35.2166 32.4524 35.6769 32.827 36.056C33.2015 36.435 33.6742 36.6245 34.2449 36.6245C34.78 36.6245 35.2348 36.435 35.6094 36.056C35.9839 35.6769 36.1712 35.2166 36.1712 34.6751V22C36.1712 21.4224 35.9839 20.8791 35.6094 20.5C35.2348 20.1209 34.78 20 34.2449 20C33.6742 20 33.2015 20.1209 32.827 20.5C32.4524 20.8791 32.2652 21.4224 32.2652 22ZM4.8157 26.2274V8.95307C4.8157 7.83394 5.19025 6.89531 5.93936 6.13718C6.68847 5.37906 7.61593 5 8.72176 5L41.0939 5C42.1641 5 43.0826 5.37906 43.8496 6.13718C44.6165 6.89531 45 7.83394 45 8.95307V41.769C45 42.8881 44.6165 43.8267 43.8496 44.5848C43.0826 45.343 42.1641 45.722 41.0939 45.722H23.0618C23.6326 44.7112 24.0606 43.6372 24.346 42.5C24.6314 41.3628 24.7741 40.2166 24.7741 39.0614C24.7741 38.6643 24.7473 38.2581 24.6938 37.843C24.6403 37.4278 24.5779 37.0217 24.5065 36.6245H25.0416C25.541 36.6245 25.9691 36.417 26.3258 36.0018C26.6825 35.5866 26.8609 35.1444 26.8609 34.6751L26.8609 16.1011C26.8609 15.5235 26.6647 15.0451 26.2723 14.6661C25.8799 14.287 25.4162 14.0975 24.8811 14.0975C24.346 14.0975 23.8912 14.287 23.5166 14.6661C23.1421 15.0451 22.9548 15.5235 22.9548 16.1011V32.4007C22.3484 31.1733 21.5815 30.0722 20.654 29.0975C19.7265 28.1227 18.6742 27.3285 17.497 26.7148V22C17.497 21.4224 17.3746 20.8791 17 20.5C16.6254 20.1209 16.0351 20 15.5 20C14.9293 20 14.5541 20.1209 14.1796 20.5C13.805 20.8791 13.591 21.4224 13.591 22V25.1986C13.1272 25.0903 12.6457 25.009 12.1463 24.9549C11.6469 24.9007 11.1653 24.8736 10.7015 24.8736C9.66707 24.8736 8.65041 24.982 7.6516 25.1986C6.65279 25.4152 5.70749 25.7581 4.8157 26.2274Z" fill="#7191ED"/>
<path d="M9.74804 40.9854L7.17521 38.4126C6.9482 38.1856 6.67613 38.0667 6.35901 38.0559C6.04189 38.0451 5.76846 38.1546 5.53871 38.3843C5.30897 38.6141 5.19311 38.8939 5.19114 39.2238C5.18916 39.5536 5.30168 39.8321 5.5287 40.0591L10.1825 44.7129C10.3843 44.9147 10.6184 45.0084 10.8849 44.9942C11.1515 44.9799 11.3741 44.8834 11.5528 44.7047L16.3008 39.9566C16.5306 39.7269 16.6401 39.4534 16.6293 39.1363C16.6185 38.8192 16.5122 38.5597 16.3104 38.358C16.0834 38.1309 15.8113 38.012 15.4942 38.0013C15.1771 37.9905 14.9037 38.0999 14.6739 38.3297L12.0701 40.9335L12.1129 33.7776C12.1151 33.4223 12.0026 33.1312 11.7756 32.9042C11.5486 32.6771 11.2701 32.5773 10.94 32.6047C10.6355 32.6065 10.3684 32.7223 10.1386 32.952C9.9089 33.1818 9.79312 33.4489 9.79129 33.7534L9.74804 40.9854ZM3.29589 31.5466C5.44018 29.4023 8.00949 28.3212 11.0038 28.3033C13.9981 28.2854 16.5421 29.3232 18.6356 31.4168C20.7292 33.5103 21.7797 36.0669 21.787 39.0864C21.7943 42.106 20.7258 44.6879 18.5815 46.8322C16.4627 48.951 13.8872 50.0131 10.8549 50.0185C7.8226 50.024 5.25966 48.9799 3.16609 46.8863C1.07251 44.7928 0.0410613 42.2424 0.0717334 39.2353C0.102405 36.2283 1.17712 33.6653 3.29589 31.5466Z" fill="#7191ED"/>
</g>
<defs>
<clipPath id="clip0_2871_2649">
<rect width="50" height="50" fill="white" transform="translate(50) rotate(90)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

9
dist/index.html vendored

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Webpack App</title>
<meta name="viewport" content="width=device-width, initial-scale=1"><script defer src="/module.js"></script><script defer src="/panels/corpglory-dataexporter-panel/module.js"></script></head>
<body>
</body>
</html>

3
dist/module.js vendored

File diff suppressed because one or more lines are too long

7
dist/module.js.LICENSE.txt vendored

@ -0,0 +1,7 @@
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

1
dist/module.js.map vendored

File diff suppressed because one or more lines are too long

1
dist/panels/corpglory-dataexporter-panel/assets/logo.svg vendored

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 416.63 416.63"><defs><style>.cls-1{fill:#3c3c3c;}.cls-2{fill:#5793f2;}</style></defs><g id="Layer_1" data-name="Layer 1"><rect class="cls-1" width="416.63" height="416.63" rx="85.04"/></g><g id="Layer_2" data-name="Layer 2"><circle class="cls-2" cx="209.33" cy="209.78" r="170.03"/></g><g id="Layer_3" data-name="Layer 3"><path class="cls-1" d="M7142.75,7298.16a113.61,113.61,0,0,1-56.3-98.64h-28a141.47,141.47,0,0,1,70.94-122.71l14.18,24.59a114.24,114.24,0,0,1,113.25.13l14.2-24.47a141.46,141.46,0,0,1,70.51,122.46h-27.81a113.58,113.58,0,0,1-56.53,98.77l13.77,23.8a142,142,0,0,1-141.82,0Q7135.95,7310.12,7142.75,7298.16Z" transform="translate(-6990.48 -6990.3)"/><path class="cls-2" d="M7131.48,7199.58a68.13,68.13,0,0,1,34.3-58.89l-8.41-14.54a84.94,84.94,0,0,1,85.06,0l-8.51,14.77a68.56,68.56,0,0,1,34,58.85l17,0a84.87,84.87,0,0,1-42.41,73.44l-8.36-14.44a68.2,68.2,0,0,1-68.3.33l-8.22,14.31a85.2,85.2,0,0,1-42.63-73.67Z" transform="translate(-6990.48 -6990.3)"/><circle class="cls-1" cx="209.33" cy="209.78" r="29.79"/><path class="cls-2" d="M7249.92,7113.2a101.21,101.21,0,0,1,50.54,86.34h-8.61a92.29,92.29,0,0,0-45.76-79.12C7247.37,7118,7248.65,7115.61,7249.92,7113.2Z" transform="translate(-6990.48 -6990.3)"/><path class="cls-2" d="M7250.65,7286.9a101.92,101.92,0,0,1-101.52.44l4.07-6.88a90.67,90.67,0,0,0,93.46-.12Z" transform="translate(-6990.48 -6990.3)"/><path class="cls-2" d="M7099.25,7199.49a103.54,103.54,0,0,1,50.69-87.21l4.25,7.75a90.9,90.9,0,0,0-45.81,79.51Z" transform="translate(-6990.48 -6990.3)"/><path class="cls-2" d="M7100,7155.74l-10.3-20,22.43-1.3-3.79,6.64-4.09-2.33-4.55,8,4.09,2.33Z" transform="translate(-6990.48 -6990.3)"/><path class="cls-2" d="M7211,7309l-11.47,18.77-11.22-18.91,7.08.05,0,4.7,8.51.05,0-4.71Z" transform="translate(-6990.48 -6990.3)"/><path class="cls-2" d="M7287.65,7135.25l22.55,1q-4.89,10.17-9.79,20.33l-4-6.66,4-2.42q-2.39-4-4.78-8l-4,2.41Z" transform="translate(-6990.48 -6990.3)"/></g></svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

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

File diff suppressed because one or more lines are too long

1
dist/panels/corpglory-dataexporter-panel/module.js.LICENSE.txt vendored

@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

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

File diff suppressed because one or more lines are too long

18
dist/panels/corpglory-dataexporter-panel/plugin.json vendored

@ -0,0 +1,18 @@
{
"$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json",
"type": "panel",
"name": "Data Exporter Panel",
"id": "corpglory-dataexporter-panel",
"skipDataQuery": true,
"info": {
"description": "Panel for exporting metrics from Grafana dashboards",
"author": {
"name": "CorpGlory Inc.",
"url": "https://corpglory.com"
},
"logos": {
"small": "../corpglory-dataexporter-app/img/logo.svg",
"large": "../corpglory-dataexporter-app/img/logo.svg"
}
}
}

37
dist/plugin.json vendored

@ -0,0 +1,37 @@
{
"$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json",
"type": "app",
"name": "Data Exporter App",
"id": "corpglory-dataexporter-app",
"info": {
"description": "",
"author": {
"name": "CorpGlory Inc."
},
"logos": {
"small": "img/logo.svg",
"large": "img/logo.svg"
},
"keywords": ["export", "csv"],
"screenshots": [],
"version": "1.0.2",
"updated": "2023-01-20"
},
"routes": [
{
"path": "api/*",
"method": "*",
"url": "{{ .JsonData.dataExporterApiUrl }}/api/"
}
],
"includes": [
{
"name": "Data Exporter Panel",
"type": "panel"
}
],
"dependencies": {
"grafanaDependency": ">=7.0.0",
"plugins": []
}
}
Loading…
Cancel
Save