diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f44b34..a41cef9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,7 +57,8 @@ add_custom_command(OUTPUT laminar.capnp.c++ laminar.capnp.h # Zip and compile statically served resources generate_compressed_bins(${CMAKE_SOURCE_DIR}/src/resources index.html js/app.js - tpl/home.html tpl/job.html tpl/run.html tpl/log.html tpl/browse.html) + tpl/home.html tpl/job.html tpl/run.html tpl/log.html tpl/browse.html + favicon.ico favicon-152.png icon.png) # Download 3rd-party frontend JS libs... file(DOWNLOAD https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js js/angular.min.js EXPECTED_MD5 b1137641dbb512a60e83d673f7e2d98f) diff --git a/src/resources.cpp b/src/resources.cpp index 54d91b2..bf452e0 100644 --- a/src/resources.cpp +++ b/src/resources.cpp @@ -28,6 +28,9 @@ Resources::Resources() { // TODO: Content-type INIT_RESOURCE("/", index_html); + INIT_RESOURCE("/favicon.ico", favicon_ico); + INIT_RESOURCE("/favicon-152.png", favicon_152_png); + INIT_RESOURCE("/icon.png", icon_png); INIT_RESOURCE("/js/app.js", js_app_js); INIT_RESOURCE("/js/Chart.HorizontalBar.js", js_Chart_HorizontalBar_js); INIT_RESOURCE("/js/ansi_up.js", js_ansi_up_js); diff --git a/src/resources/favicon-152.png b/src/resources/favicon-152.png new file mode 100644 index 0000000..efd46ad Binary files /dev/null and b/src/resources/favicon-152.png differ diff --git a/src/resources/favicon.ico b/src/resources/favicon.ico new file mode 100644 index 0000000..587053f Binary files /dev/null and b/src/resources/favicon.ico differ diff --git a/src/resources/icon.png b/src/resources/icon.png new file mode 100644 index 0000000..576a01b Binary files /dev/null and b/src/resources/icon.png differ diff --git a/src/resources/index.html b/src/resources/index.html index f92f161..8384288 100644 --- a/src/resources/index.html +++ b/src/resources/index.html @@ -5,6 +5,7 @@ + Laminar @@ -16,9 +17,11 @@