diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2018-10-15 23:16:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 23:16:42 +0300 |
commit | 8fbf817ef83b3524b15f908251909d9d6feb5532 (patch) | |
tree | 4c2d417b7392c907bbdbe355b8db361bd3741a02 /web | |
parent | 1ad4f1bcfc691120102b57dbd426de0870abd76f (diff) |
modularized all source code (#4391)
* modularized all external plugins
* added README.md in plugins
* fixed title
* fixed typo
* relative link to external plugins
* external plugins configuration README
* added plugins link
* remove plugins link
* plugin names are links
* added links to external plugins
* removed unecessary spacing
* list to table
* added language
* fixed typo
* list to table on internal plugins
* added more documentation to internal plugins
* moved python, node, and bash code and configs into the external plugins
* added statsd README
* fix bug with corrupting config.h every 2nd compilation
* moved all config files together with their code
* more documentation
* diskspace info
* fixed broken links in apps.plugin
* added backends docs
* updated plugins readme
* move nc-backend.sh to backends
* created daemon directory
* moved all code outside src/
* fixed readme identation
* renamed plugins.d.plugin to plugins.d
* updated readme
* removed linux- from linux plugins
* updated readme
* updated readme
* updated readme
* updated readme
* updated readme
* updated readme
* fixed README.md links
* fixed netdata tree links
* updated codacy, codeclimate and lgtm excluded paths
* update CMakeLists.txt
* updated automake options at top directory
* libnetdata slit into directories
* updated READMEs
* updated READMEs
* updated ARL docs
* updated ARL docs
* moved /plugins to /collectors
* moved all external plugins outside plugins.d
* updated codacy, codeclimate, lgtm
* updated README
* updated url
* updated readme
* updated readme
* updated readme
* updated readme
* moved api and web into webserver
* web/api web/gui web/server
* modularized webserver
* removed web/gui/version.txt
Diffstat (limited to 'web')
-rw-r--r-- | web/Makefile.am | 125 | ||||
-rw-r--r-- | web/README.md | 0 | ||||
-rw-r--r-- | web/api/Makefile.am | 8 | ||||
-rw-r--r-- | web/api/README.md | 0 | ||||
-rw-r--r-- | web/api/rrd2json.c | 2061 | ||||
-rw-r--r-- | web/api/rrd2json.h | 108 | ||||
-rw-r--r-- | web/api/web_api_v1.c | 1036 | ||||
-rw-r--r-- | web/api/web_api_v1.h | 29 | ||||
-rw-r--r-- | web/api/web_buffer_svg.c | 889 | ||||
-rw-r--r-- | web/api/web_buffer_svg.h | 11 | ||||
-rw-r--r-- | web/gui/.well-known/dnt/cookies (renamed from web/.well-known/dnt/cookies) | 0 | ||||
-rw-r--r-- | web/gui/Makefile.am | 125 | ||||
-rw-r--r-- | web/gui/README.md | 0 | ||||
-rw-r--r-- | web/gui/css/bootstrap-3.3.7.css (renamed from web/css/bootstrap-3.3.7.css) | 0 | ||||
-rw-r--r-- | web/gui/css/bootstrap-slate-flat-3.3.7.css (renamed from web/css/bootstrap-slate-flat-3.3.7.css) | 0 | ||||
-rw-r--r-- | web/gui/css/bootstrap-slider-10.0.0.min.css (renamed from web/css/bootstrap-slider-10.0.0.min.css) | 0 | ||||
-rw-r--r-- | web/gui/css/bootstrap-theme-3.3.7.min.css (renamed from web/css/bootstrap-theme-3.3.7.min.css) | 0 | ||||
-rw-r--r-- | web/gui/css/bootstrap-toggle-2.2.2.min.css (renamed from web/css/bootstrap-toggle-2.2.2.min.css) | 0 | ||||
-rw-r--r-- | web/gui/css/c3-0.4.18.min.css (renamed from web/css/c3-0.4.18.min.css) | 0 | ||||
-rw-r--r-- | web/gui/css/morris-0.5.1.css (renamed from web/css/morris-0.5.1.css) | 0 | ||||
-rw-r--r-- | web/gui/dashboard.css (renamed from web/dashboard.css) | 0 | ||||
-rw-r--r-- | web/gui/dashboard.html (renamed from web/dashboard.html) | 0 | ||||
-rw-r--r-- | web/gui/dashboard.js (renamed from web/dashboard.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard.slate.css (renamed from web/dashboard.slate.css) | 0 | ||||
-rw-r--r-- | web/gui/dashboard_info.js (renamed from web/dashboard_info.js) | 0 | ||||
-rw-r--r-- | web/gui/dashboard_info_custom_example.js (renamed from web/dashboard_info_custom_example.js) | 0 | ||||
-rw-r--r-- | web/gui/demo.html (renamed from web/demo.html) | 0 | ||||
-rw-r--r-- | web/gui/demo2.html (renamed from web/demo2.html) | 0 | ||||
-rw-r--r-- | web/gui/demosites.html (renamed from web/demosites.html) | 4 | ||||
-rw-r--r-- | web/gui/demosites2.html (renamed from web/demosites2.html) | 0 | ||||
-rw-r--r-- | web/gui/favicon.ico (renamed from web/favicon.ico) | bin | 56875 -> 56875 bytes | |||
-rw-r--r-- | web/gui/fonts/glyphicons-halflings-regular.eot (renamed from web/fonts/glyphicons-halflings-regular.eot) | bin | 20127 -> 20127 bytes | |||
-rw-r--r-- | web/gui/fonts/glyphicons-halflings-regular.svg (renamed from web/fonts/glyphicons-halflings-regular.svg) | 0 | ||||
-rw-r--r-- | web/gui/fonts/glyphicons-halflings-regular.ttf (renamed from web/fonts/glyphicons-halflings-regular.ttf) | bin | 45404 -> 45404 bytes | |||
-rw-r--r-- | web/gui/fonts/glyphicons-halflings-regular.woff (renamed from web/fonts/glyphicons-halflings-regular.woff) | bin | 23424 -> 23424 bytes | |||
-rw-r--r-- | web/gui/fonts/glyphicons-halflings-regular.woff2 (renamed from web/fonts/glyphicons-halflings-regular.woff2) | bin | 18028 -> 18028 bytes | |||
-rw-r--r-- | web/gui/goto-host-from-alarm.html (renamed from web/goto-host-from-alarm.html) | 0 | ||||
-rw-r--r-- | web/gui/images/README.md (renamed from web/images/README.md) | 0 | ||||
-rw-r--r-- | web/gui/images/alert-128-orange.png (renamed from web/images/alert-128-orange.png) | bin | 3477 -> 3477 bytes | |||
-rw-r--r-- | web/gui/images/alert-128-red.png (renamed from web/images/alert-128-red.png) | bin | 3743 -> 3743 bytes | |||
-rw-r--r-- | web/gui/images/alert-multi-size-orange.ico (renamed from web/images/alert-multi-size-orange.ico) | bin | 112374 -> 112374 bytes | |||
-rw-r--r-- | web/gui/images/alert-multi-size-red.ico (renamed from web/images/alert-multi-size-red.ico) | bin | 112458 -> 112458 bytes | |||
-rw-r--r-- | web/gui/images/animated.gif (renamed from web/images/animated.gif) | bin | 389597 -> 389597 bytes | |||
-rw-r--r-- | web/gui/images/check-mark-2-128-green.png (renamed from web/images/check-mark-2-128-green.png) | bin | 3771 -> 3771 bytes | |||
-rw-r--r-- | web/gui/images/check-mark-2-multi-size-green.ico (renamed from web/images/check-mark-2-multi-size-green.ico) | bin | 111893 -> 111893 bytes | |||
-rw-r--r-- | web/gui/images/netdata.svg (renamed from web/images/netdata.svg) | 0 | ||||
-rw-r--r-- | web/gui/images/post.png (renamed from web/images/post.png) | bin | 9043 -> 9043 bytes | |||
-rw-r--r-- | web/gui/images/seo-performance-114.png (renamed from web/images/seo-performance-114.png) | bin | 3578 -> 3578 bytes | |||
-rw-r--r-- | web/gui/images/seo-performance-128.png (renamed from web/images/seo-performance-128.png) | bin | 1828 -> 1828 bytes | |||
-rw-r--r-- | web/gui/images/seo-performance-16.png (renamed from web/images/seo-performance-16.png) | bin | 287 -> 287 bytes | |||
-rw-r--r-- | web/gui/images/seo-performance-24.png (renamed from web/images/seo-performance-24.png) | bin | 528 -> 528 bytes | |||
-rw-r--r-- | web/gui/images/seo-performance-256.png (renamed from web/images/seo-performance-256.png) | bin | 3216 -> 3216 bytes | |||
-rw-r--r-- | web/gui/images/seo-performance-32.png (renamed from web/images/seo-performance-32.png) | bin | 509 -> 509 bytes | |||
-rw-r--r-- | web/gui/images/seo-performance-48.png (renamed from web/images/seo-performance-48.png) | bin | 1116 -> 1116 bytes | |||
-rw-r--r-- | web/gui/images/seo-performance-512.png (renamed from web/images/seo-performance-512.png) | bin | 6995 -> 6995 bytes | |||
-rw-r--r-- | web/gui/images/seo-performance-64.png (renamed from web/images/seo-performance-64.png) | bin | 961 -> 961 bytes | |||
-rw-r--r-- | web/gui/images/seo-performance-72.png (renamed from web/images/seo-performance-72.png) | bin | 1609 -> 1609 bytes | |||
-rw-r--r-- | web/gui/images/seo-performance-multi-size.icns (renamed from web/images/seo-performance-multi-size.icns) | bin | 80967 -> 80967 bytes | |||
-rw-r--r-- | web/gui/images/seo-performance-multi-size.ico (renamed from web/images/seo-performance-multi-size.ico) | bin | 56875 -> 56875 bytes | |||
-rw-r--r-- | web/gui/index.html (renamed from web/index.html) | 0 | ||||
-rw-r--r-- | web/gui/infographic.html (renamed from web/infographic.html) | 0 | ||||
-rw-r--r-- | web/gui/lib/bootstrap-3.3.7.min.js (renamed from web/lib/bootstrap-3.3.7.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/bootstrap-slider-10.0.0.min.js (renamed from web/lib/bootstrap-slider-10.0.0.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/bootstrap-table-1.11.0.min.js (renamed from web/lib/bootstrap-table-1.11.0.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/bootstrap-table-export-1.11.0.min.js (renamed from web/lib/bootstrap-table-export-1.11.0.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/bootstrap-toggle-2.2.2.min.js (renamed from web/lib/bootstrap-toggle-2.2.2.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/c3-0.4.18.min.js (renamed from web/lib/c3-0.4.18.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/clipboard-polyfill-be05dad.js (renamed from web/lib/clipboard-polyfill-be05dad.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/d3-4.12.2.min.js (renamed from web/lib/d3-4.12.2.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/d3pie-0.2.1-netdata-3.js (renamed from web/lib/d3pie-0.2.1-netdata-3.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/dygraph-c91c859.min.js (renamed from web/lib/dygraph-c91c859.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/dygraph-smooth-plotter-c91c859.js (renamed from web/lib/dygraph-smooth-plotter-c91c859.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/fontawesome-all-5.0.1.min.js (renamed from web/lib/fontawesome-all-5.0.1.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/gauge-1.3.2.min.js (renamed from web/lib/gauge-1.3.2.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/jquery-2.2.4.min.js (renamed from web/lib/jquery-2.2.4.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/jquery.easypiechart-97b5824.min.js (renamed from web/lib/jquery.easypiechart-97b5824.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/jquery.peity-3.2.0.min.js (renamed from web/lib/jquery.peity-3.2.0.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/jquery.sparkline-2.1.2.min.js (renamed from web/lib/jquery.sparkline-2.1.2.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/lz-string-1.4.4.min.js (renamed from web/lib/lz-string-1.4.4.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/morris-0.5.1.min.js (renamed from web/lib/morris-0.5.1.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/pako-1.0.6.min.js (renamed from web/lib/pako-1.0.6.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/perfect-scrollbar-0.6.15.min.js (renamed from web/lib/perfect-scrollbar-0.6.15.min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/raphael-2.2.4-min.js (renamed from web/lib/raphael-2.2.4-min.js) | 0 | ||||
-rw-r--r-- | web/gui/lib/tableExport-1.6.0.min.js (renamed from web/lib/tableExport-1.6.0.min.js) | 0 | ||||
-rw-r--r-- | web/gui/netdata-swagger.json (renamed from web/netdata-swagger.json) | 0 | ||||
-rw-r--r-- | web/gui/netdata-swagger.yaml (renamed from web/netdata-swagger.yaml) | 0 | ||||
-rw-r--r-- | web/gui/refresh-badges.js (renamed from web/refresh-badges.js) | 0 | ||||
-rw-r--r-- | web/gui/registry.html (renamed from web/registry.html) | 0 | ||||
-rw-r--r-- | web/gui/robots.txt (renamed from web/robots.txt) | 0 | ||||
-rw-r--r-- | web/gui/sitemap.xml (renamed from web/sitemap.xml) | 0 | ||||
-rw-r--r-- | web/gui/tv.html (renamed from web/tv.html) | 0 | ||||
-rw-r--r-- | web/server/Makefile.am | 14 | ||||
-rw-r--r-- | web/server/README.md | 0 | ||||
-rw-r--r-- | web/server/multi/Makefile.am | 11 | ||||
-rw-r--r-- | web/server/multi/README.md | 0 | ||||
-rw-r--r-- | web/server/multi/multi-threaded.c | 314 | ||||
-rw-r--r-- | web/server/multi/multi-threaded.h | 10 | ||||
-rw-r--r-- | web/server/single/Makefile.am | 11 | ||||
-rw-r--r-- | web/server/single/README.md | 0 | ||||
-rw-r--r-- | web/server/single/single-threaded.c | 194 | ||||
-rw-r--r-- | web/server/single/single-threaded.h | 10 | ||||
-rw-r--r-- | web/server/static/Makefile.am | 11 | ||||
-rw-r--r-- | web/server/static/README.md | 0 | ||||
-rw-r--r-- | web/server/static/static-threaded.c | 422 | ||||
-rw-r--r-- | web/server/static/static-threaded.h | 10 | ||||
-rw-r--r-- | web/server/web_client.c | 1686 | ||||
-rw-r--r-- | web/server/web_client.h | 196 | ||||
-rw-r--r-- | web/server/web_client_cache.c | 231 | ||||
-rw-r--r-- | web/server/web_client_cache.h | 29 | ||||
-rw-r--r-- | web/server/web_server.c | 145 | ||||
-rw-r--r-- | web/server/web_server.h | 58 |
111 files changed, 7630 insertions, 118 deletions
diff --git a/web/Makefile.am b/web/Makefile.am index 81aa0f81d3..1ec8d586d4 100644 --- a/web/Makefile.am +++ b/web/Makefile.am @@ -1,121 +1,14 @@ -# -# Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com> # SPDX-License-Identifier: GPL-3.0-or-later -# -MAINTAINERCLEANFILES= $(srcdir)/Makefile.in -dist_web_DATA = \ - demo.html \ - demo2.html \ - demosites.html \ - demosites2.html \ - dashboard.html \ - dashboard.js \ - dashboard_info.js \ - dashboard_info_custom_example.js \ - dashboard.css \ - dashboard.slate.css \ - favicon.ico \ - goto-host-from-alarm.html \ - index.html \ - infographic.html \ - netdata-swagger.yaml \ - netdata-swagger.json \ - robots.txt \ - refresh-badges.js \ - registry.html \ - sitemap.xml \ - tv.html \ - version.txt \ - $(NULL) - -weblibdir=$(webdir)/lib -dist_weblib_DATA = \ - lib/bootstrap-3.3.7.min.js \ - lib/bootstrap-slider-10.0.0.min.js \ - lib/bootstrap-table-1.11.0.min.js \ - lib/bootstrap-table-export-1.11.0.min.js \ - lib/bootstrap-toggle-2.2.2.min.js \ - lib/clipboard-polyfill-be05dad.js \ - lib/c3-0.4.18.min.js \ - lib/d3-4.12.2.min.js \ - lib/d3pie-0.2.1-netdata-3.js \ - lib/dygraph-c91c859.min.js \ - lib/dygraph-smooth-plotter-c91c859.js \ - lib/fontawesome-all-5.0.1.min.js \ - lib/gauge-1.3.2.min.js \ - lib/jquery-2.2.4.min.js \ - lib/jquery.easypiechart-97b5824.min.js \ - lib/jquery.peity-3.2.0.min.js \ - lib/jquery.sparkline-2.1.2.min.js \ - lib/lz-string-1.4.4.min.js \ - lib/morris-0.5.1.min.js \ - lib/pako-1.0.6.min.js \ - lib/perfect-scrollbar-0.6.15.min.js \ - lib/raphael-2.2.4-min.js \ - lib/tableExport-1.6.0.min.js \ - $(NULL) +AUTOMAKE_OPTIONS = subdir-objects +MAINTAINERCLEANFILES = $(srcdir)/Makefile.in -webcssdir=$(webdir)/css -dist_webcss_DATA = \ - css/morris-0.5.1.css \ - css/bootstrap-3.3.7.css \ - css/bootstrap-theme-3.3.7.min.css \ - css/bootstrap-slate-flat-3.3.7.css \ - css/bootstrap-slider-10.0.0.min.css \ - css/bootstrap-toggle-2.2.2.min.css \ - css/c3-0.4.18.min.css \ - $(NULL) +SUBDIRS = \ + api \ + gui \ + server \ + $(NULL) -webfontsdir=$(webdir)/fonts -dist_webfonts_DATA = \ - fonts/glyphicons-halflings-regular.eot \ - fonts/glyphicons-halflings-regular.svg \ - fonts/glyphicons-halflings-regular.ttf \ - fonts/glyphicons-halflings-regular.woff \ - fonts/glyphicons-halflings-regular.woff2 \ +dist_noinst_DATA = \ + README.md \ $(NULL) - -webimagesdir=$(webdir)/images -dist_webimages_DATA = \ - images/alert-128-orange.png \ - images/alert-128-red.png \ - images/alert-multi-size-orange.ico \ - images/alert-multi-size-red.ico \ - images/animated.gif \ - images/check-mark-2-128-green.png \ - images/check-mark-2-multi-size-green.ico \ - images/netdata.svg \ - images/post.png \ - images/seo-performance-16.png \ - images/seo-performance-24.png \ - images/seo-performance-32.png \ - images/seo-performance-48.png \ - images/seo-performance-64.png \ - images/seo-performance-72.png \ - images/seo-performance-114.png \ - images/seo-performance-128.png \ - images/seo-performance-256.png \ - images/seo-performance-512.png \ - images/seo-performance-multi-size.ico \ - images/seo-performance-multi-size.icns \ - $(NULL) - - -webwellknowndir=$(webdir)/.well-known -dist_webwellknown_DATA = \ - $(NULL) - -webdntdir=$(webdir)/.well-known/dnt -dist_webdnt_DATA = \ - .well-known/dnt/cookies \ - $(NULL) - -version.txt: - if test -d "$(top_srcdir)/.git"; then \ - git --git-dir="$(top_srcdir)/.git" log -n 1 --format=%H; \ - fi > $@.tmp - test -s $@.tmp || echo 0 > $@.tmp - mv $@.tmp $@ - -.PHONY: version.txt diff --git a/web/README.md b/web/README.md new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/web/README.md |