diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2021-05-14 11:41:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 11:41:16 -0400 |
commit | 9574cb4c956652372789d0c81d2cb7d35e36369c (patch) | |
tree | 50345a629f3714edd60e8d9ab6417238b9077dfc | |
parent | 48dd96c5325d3d5b9b9e5412701d2e2bb6fe383a (diff) |
Bundle the react dashboard code into the agent repo directly. (#11139)
* Remove code for bundling the dashoard on install.
* Bundle the dashboard code directly into the agent repo.
This diffstat looks huge, but it’s actually relatively simple. The only
_actual_ changes are in the Makefiles, `configure.ac`, and the addition of
`generate_dashboard_makefile.py`. Everything else consists of removing
files that are included in the dashboard tarball, and extracting the
contents of the tarball into `web/gui/dashboard`.
* CI cleanup.
* Automate bundling of the dashboard code.
This replaces the makefile generator script with one that handles
bundling of the dashboard code in it’s entirety, and updates the GHA
workflow used for generating dashboard PRs to use that instead of the
existing shell commands.
It also removes the packaging/dashboard.* files, as they are no longer
needed.
-rw-r--r-- | .eslintignore | 1 | ||||
-rw-r--r-- | .github/workflows/checks.yml | 22 | ||||
-rw-r--r-- | .github/workflows/dashboard-pr.yml | 9 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rwxr-xr-x | contrib/debian/rules | 1 | ||||
-rwxr-xr-x | netdata-installer.sh | 34 | ||||
-rw-r--r-- | netdata.spec.in | 1 | ||||
-rwxr-xr-x | packaging/bundle-dashboard.sh | 14 | ||||
-rw-r--r-- | packaging/dashboard.checksums | 1 | ||||
-rw-r--r-- | packaging/dashboard.version | 1 | ||||
-rw-r--r-- | web/gui/.dashboard-notice.md | 7 | ||||
-rw-r--r-- | web/gui/Makefile.am | 99 | ||||
-rwxr-xr-x | web/gui/bundle_dashboard.py | 105 | ||||
-rw-r--r-- | web/gui/dashboard/Makefile.am | 198 | ||||
l--------- | web/gui/dashboard/README.md | 1 | ||||
-rw-r--r-- | web/gui/dashboard/asset-manifest.json | 47 | ||||
-rw-r--r-- | web/gui/dashboard/console.html (renamed from web/gui/console.html) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/css/bootstrap-3.3.7.css (renamed from web/gui/css/bootstrap-3.3.7.css) | 12 | ||||
-rw-r--r-- | web/gui/dashboard/css/bootstrap-slate-flat-3.3.7.css (renamed from web/gui/css/bootstrap-slate-flat-3.3.7.css) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/css/bootstrap-slider-10.0.0.min.css (renamed from web/gui/css/bootstrap-slider-10.0.0.min.css) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/css/bootstrap-theme-3.3.7.min.css (renamed from web/gui/css/bootstrap-theme-3.3.7.min.css) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/css/bootstrap-toggle-2.2.2.min.css (renamed from web/gui/css/bootstrap-toggle-2.2.2.min.css) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/css/dashboard.css | 785 | ||||
-rw-r--r-- | web/gui/dashboard/css/dashboard.slate.css (renamed from web/gui/dashboard.slate.css) | 62 | ||||
-rw-r--r-- | web/gui/dashboard/dash-example.html | 1020 | ||||
-rw-r--r-- | web/gui/dashboard/dashboard-react.js | 675 | ||||
-rw-r--r-- | web/gui/dashboard/dashboard.css | 785 | ||||
-rw-r--r-- | web/gui/dashboard/dashboard.html (renamed from web/gui/dashboard.html) | 8 | ||||
-rw-r--r-- | web/gui/dashboard/dashboard.js (renamed from web/gui/dashboard.js) | 93 | ||||
-rw-r--r-- | web/gui/dashboard/dashboard.slate.css (renamed from web/gui/dashboard.css) | 106 | ||||
-rw-r--r-- | web/gui/dashboard/demo.html (renamed from web/gui/demo.html) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/demo2.html (renamed from web/gui/demo2.html) | 4 | ||||
-rw-r--r-- | web/gui/dashboard/demosites.html (renamed from web/gui/demosites.html) | 36 | ||||
-rw-r--r-- | web/gui/dashboard/demosites2.html (renamed from web/gui/demosites2.html) | 4 | ||||
-rw-r--r-- | web/gui/dashboard/favicon.ico (renamed from web/gui/favicon.ico) | bin | 1150 -> 1150 bytes | |||
-rw-r--r-- | web/gui/dashboard/fonts/glyphicons-halflings-regular.eot (renamed from web/gui/fonts/glyphicons-halflings-regular.eot) | bin | 20127 -> 20127 bytes | |||
-rw-r--r-- | web/gui/dashboard/fonts/glyphicons-halflings-regular.svg (renamed from web/gui/fonts/glyphicons-halflings-regular.svg) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/fonts/glyphicons-halflings-regular.ttf (renamed from web/gui/fonts/glyphicons-halflings-regular.ttf) | bin | 45404 -> 45404 bytes | |||
-rw-r--r-- | web/gui/dashboard/fonts/glyphicons-halflings-regular.woff (renamed from web/gui/fonts/glyphicons-halflings-regular.woff) | bin | 23424 -> 23424 bytes | |||
-rw-r--r-- | web/gui/dashboard/fonts/glyphicons-halflings-regular.woff2 (renamed from web/gui/fonts/glyphicons-halflings-regular.woff2) | bin | 18028 -> 18028 bytes | |||
-rw-r--r-- | web/gui/dashboard/goto-host-from-alarm.html (renamed from web/gui/goto-host-from-alarm.html) | 13 | ||||
-rw-r--r-- | web/gui/dashboard/images/alert-128-orange.png (renamed from web/gui/images/alert-128-orange.png) | bin | 3477 -> 3477 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/alert-128-red.png (renamed from web/gui/images/alert-128-red.png) | bin | 3743 -> 3743 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/alert-multi-size-orange.ico (renamed from web/gui/images/alert-multi-size-orange.ico) | bin | 112374 -> 112374 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/alert-multi-size-red.ico (renamed from web/gui/images/alert-multi-size-red.ico) | bin | 112458 -> 112458 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/android-icon-144x144.png (renamed from web/gui/images/android-icon-144x144.png) | bin | 2721 -> 2721 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/android-icon-192x192.png (renamed from web/gui/images/android-icon-192x192.png) | bin | 3923 -> 3923 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/android-icon-36x36.png (renamed from web/gui/images/android-icon-36x36.png) | bin | 539 -> 539 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/android-icon-48x48.png (renamed from web/gui/images/android-icon-48x48.png) | bin | 762 -> 762 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/android-icon-72x72.png (renamed from web/gui/images/android-icon-72x72.png) | bin | 1153 -> 1153 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/android-icon-96x96.png (renamed from web/gui/images/android-icon-96x96.png) | bin | 1747 -> 1747 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/animated.gif (renamed from web/gui/images/animated.gif) | bin | 389597 -> 389597 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/apple-icon-114x114.png (renamed from web/gui/images/apple-icon-114x114.png) | bin | 3651 -> 3651 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/apple-icon-120x120.png (renamed from web/gui/images/apple-icon-120x120.png) | bin | 2315 -> 2315 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/apple-icon-144x144.png (renamed from web/gui/images/apple-icon-144x144.png) | bin | 4001 -> 4001 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/apple-icon-152x152.png (renamed from web/gui/images/apple-icon-152x152.png) | bin | 5026 -> 5026 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/apple-icon-180x180.png (renamed from web/gui/images/apple-icon-180x180.png) | bin | 3645 -> 3645 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/apple-icon-57x57.png (renamed from web/gui/images/apple-icon-57x57.png) | bin | 1250 -> 1250 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/apple-icon-60x60.png (renamed from web/gui/images/apple-icon-60x60.png) | bin | 1052 -> 1052 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/apple-icon-72x72.png (renamed from web/gui/images/apple-icon-72x72.png) | bin | 1427 -> 1427 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/apple-icon-76x76.png (renamed from web/gui/images/apple-icon-76x76.png) | bin | 1711 -> 1711 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/apple-icon-precomposed.png (renamed from web/gui/images/apple-icon-precomposed.png) | bin | 3926 -> 3926 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/apple-icon.png (renamed from web/gui/images/apple-icon.png) | bin | 3926 -> 3926 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/banner-icon-144x144.png (renamed from web/gui/images/banner-icon-144x144.png) | bin | 2724 -> 2724 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/check-mark-2-128-green.png (renamed from web/gui/images/check-mark-2-128-green.png) | bin | 3771 -> 3771 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/check-mark-2-multi-size-green.ico (renamed from web/gui/images/check-mark-2-multi-size-green.ico) | bin | 111893 -> 111893 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/favicon-128.png (renamed from web/gui/images/favicon-128.png) | bin | 2436 -> 2436 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/favicon-16x16.png (renamed from web/gui/images/favicon-16x16.png) | bin | 285 -> 285 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/favicon-196x196.png (renamed from web/gui/images/favicon-196x196.png) | bin | 10025 -> 10025 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/favicon-32x32.png (renamed from web/gui/images/favicon-32x32.png) | bin | 454 -> 454 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/favicon-96x96.png (renamed from web/gui/images/favicon-96x96.png) | bin | 1925 -> 1925 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/favicon.ico (renamed from web/gui/images/favicon.ico) | bin | 1150 -> 1150 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/ms-icon-144x144.png (renamed from web/gui/images/ms-icon-144x144.png) | bin | 4001 -> 4001 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/ms-icon-150x150.png (renamed from web/gui/images/ms-icon-150x150.png) | bin | 2867 -> 2867 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/ms-icon-310x150.png (renamed from web/gui/images/ms-icon-310x150.png) | bin | 3632 -> 3632 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/ms-icon-310x310.png (renamed from web/gui/images/ms-icon-310x310.png) | bin | 7215 -> 7215 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/ms-icon-36x36.png (renamed from web/gui/images/ms-icon-36x36.png) | bin | 536 -> 536 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/ms-icon-70x70.png (renamed from web/gui/images/ms-icon-70x70.png) | bin | 2436 -> 2436 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/netdata-logomark.svg (renamed from web/gui/images/netdata-logomark.svg) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/images/netdata.svg (renamed from web/gui/images/netdata.svg) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/images/packaging-beta-tag.svg (renamed from web/gui/images/packaging-beta-tag.svg) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/images/post.png (renamed from web/gui/images/post.png) | bin | 9043 -> 9043 bytes | |||
-rw-r--r-- | web/gui/dashboard/images/seo-performance-128.png (renamed from web/gui/images/seo-performance-128.png) | bin | 1828 -> 1828 bytes | |||
-rw-r--r-- | web/gui/dashboard/index-node-view.html | 30 | ||||
-rw-r--r-- | web/gui/dashboard/index.html | 16 | ||||
-rw-r--r-- | web/gui/dashboard/infographic.html (renamed from web/gui/infographic.html) | 6 | ||||
-rw-r--r-- | web/gui/dashboard/lib/bootstrap-3.3.7.min.js (renamed from web/gui/lib/bootstrap-3.3.7.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/bootstrap-slider-10.0.0.min.js (renamed from web/gui/lib/bootstrap-slider-10.0.0.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/bootstrap-table-1.11.0.min.js (renamed from web/gui/lib/bootstrap-table-1.11.0.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/bootstrap-table-export-1.11.0.min.js (renamed from web/gui/lib/bootstrap-table-export-1.11.0.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/bootstrap-toggle-2.2.2.min.js (renamed from web/gui/lib/bootstrap-toggle-2.2.2.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/clipboard-polyfill-be05dad.js (renamed from web/gui/lib/clipboard-polyfill-be05dad.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/d3-4.12.2.min.js (renamed from web/gui/lib/d3-4.12.2.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/d3pie-0.2.1-netdata-3.js (renamed from web/gui/lib/d3pie-0.2.1-netdata-3.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/dygraph-c91c859.min.js (renamed from web/gui/lib/dygraph-c91c859.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/dygraph-smooth-plotter-c91c859.js (renamed from web/gui/lib/dygraph-smooth-plotter-c91c859.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/fontawesome-all-5.0.1.min.js (renamed from web/gui/lib/fontawesome-all-5.0.1.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/gauge-1.3.2.min.js (renamed from web/gui/lib/gauge-1.3.2.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/jquery-2.2.4.min.js (renamed from web/gui/lib/jquery-2.2.4.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/jquery.easypiechart-97b5824.min.js (renamed from web/gui/lib/jquery.easypiechart-97b5824.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/jquery.peity-3.2.0.min.js (renamed from web/gui/lib/jquery.peity-3.2.0.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/jquery.sparkline-2.1.2.min.js (renamed from web/gui/lib/jquery.sparkline-2.1.2.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/lz-string-1.4.4.min.js (renamed from web/gui/lib/lz-string-1.4.4.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/pako-1.0.6.min.js (renamed from web/gui/lib/pako-1.0.6.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/perfect-scrollbar-0.6.15.min.js (renamed from web/gui/lib/perfect-scrollbar-0.6.15.min.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/lib/tableExport-1.6.0.min.js (renamed from web/gui/lib/tableExport-1.6.0.min.js) | 110 | ||||
-rw-r--r-- | web/gui/dashboard/manifest.json (renamed from web/gui/manifest.json) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/precache-manifest.1a96c027aec7f2d07341fa69aa6b82fa.js | 190 | ||||
-rw-r--r-- | web/gui/dashboard/refresh-badges.js (renamed from web/gui/refresh-badges.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/robots.txt (renamed from web/gui/robots.txt) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/service-worker.js | 39 | ||||
-rw-r--r-- | web/gui/dashboard/sitemap.xml (renamed from web/gui/sitemap.xml) | 0 | ||||
-rw-r--r-- | web/gui/dashboard/static/css/2.6b842ba1.chunk.css | 15 | ||||
-rw-r--r-- | web/gui/dashboard/static/css/2.6b842ba1.chunk.css.map | 1 | ||||
-rw-r--r-- | web/gui/dashboard/static/css/4.a36e3b73.chunk.css | 42 | ||||
-rw-r--r-- | web/gui/dashboard/static/css/4.a36e3b73.chunk.css.map | 1 | ||||
-rw-r--r-- | web/gui/dashboard/static/css/main.d931154a.chunk.css | 2 | ||||
-rw-r--r-- | web/gui/dashboard/static/css/main.d931154a.chunk.css.map | 1 | ||||
-rw-r--r-- | web/gui/dashboard/static/js/10.db7e8e19.chunk.js | 2 | ||||
-rw-r--r-- | web/gui/dashboard/static/js/10.db7e8e19.chunk.js.map | 1 | ||||
-rw-r--r-- | web/gui/dashboard/static/js/2.252b3a57.chunk.js | 3 | ||||
-rw-r--r-- | web/gui/dashboard/static/js/2.252b3a57.chunk.js.LICENSE | 236 | ||||
-rw-r--r-- | web/gui/dashboard/static/js/2.252b3a57.chunk.js.map | 1 | ||||
-rw-r--r-- | web/gui/dashboard/static/js/3.99238dcb.chunk.js | 2 | ||||
-rw-r--r-- | web/gui/dashboard/static/js/3.99238dcb.chunk.js.map | 1 | ||||
-rw-r--r-- | web/gui/dashboard/static/js/4.6ef9bdcb.chunk.js | 2 | ||||
-rw-r--r-- | web/gui/dashboard/static/js/4.6ef9bdcb.chunk.js.map | 1 | ||||
-rw-r--r-- |