From b1f707d18cf6ce63fe1ed56efbd18d4f614d0543 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Tue, 12 Mar 2019 18:59:58 +0300 Subject: [PATCH] - client: load favicon from local server Closes #625 --- client/package-lock.json | 32 ++++++++++++++++++++++++++++++++ client/package.json | 1 + client/public/favicon.ico | Bin 0 -> 15086 bytes client/public/index.html | 2 +- client/public/install.html | 2 +- client/webpack.common.js | 5 +++++ 6 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 client/public/favicon.ico diff --git a/client/package-lock.json b/client/package-lock.json index 7a93cbc1..ee179159 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -3260,6 +3260,38 @@ "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", "dev": true }, + "copy-webpack-plugin": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-4.6.0.tgz", + "integrity": "sha512-Y+SQCF+0NoWQryez2zXn5J5knmr9z/9qSQt7fbL78u83rxmigOy8X5+BFn8CFSuX+nKT8gpYwJX68ekqtQt6ZA==", + "dev": true, + "requires": { + "cacache": "^10.0.4", + "find-cache-dir": "^1.0.0", + "globby": "^7.1.1", + "is-glob": "^4.0.0", + "loader-utils": "^1.1.0", + "minimatch": "^3.0.4", + "p-limit": "^1.0.0", + "serialize-javascript": "^1.4.0" + }, + "dependencies": { + "globby": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-7.1.1.tgz", + "integrity": "sha1-+yzP+UAfhgCUXfral0QMypcrhoA=", + "dev": true, + "requires": { + "array-union": "^1.0.1", + "dir-glob": "^2.0.0", + "glob": "^7.1.2", + "ignore": "^3.3.5", + "pify": "^3.0.0", + "slash": "^1.0.0" + } + } + } + }, "core-js": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", diff --git a/client/package.json b/client/package.json index 9b000c61..ce60dba2 100644 --- a/client/package.json +++ b/client/package.json @@ -47,6 +47,7 @@ "babel-runtime": "6.26.0", "clean-webpack-plugin": "^0.1.19", "compression-webpack-plugin": "^1.1.11", + "copy-webpack-plugin": "^4.6.0", "css-loader": "^0.28.11", "eslint": "^4.19.1", "eslint-config-airbnb-base": "^12.1.0", diff --git a/client/public/favicon.ico b/client/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..07cb5eead34cdd95d17e3d3cf1dd387a98bdb978 GIT binary patch literal 15086 zcmeHO2~ZYC7Je+7N~MfRT-U^$Y8lI*9%mA_5{oMLaMbc!Wga9TF3FbrBJfC=w(Dd%ri(IE?@N|NK9iY^rvuhVJQqdfxY5 zzxVp}>xRgV?CF_j2v=7M{5{b-TTc>Cy*8gU)N4vEl}7C#5wxE~z&@(+$fogn@2lH` z)2ZLoPw5u-mHh(?N$~Bxo#NE*YU_UMsrR%zs+E1U{rMZ7ITWq!$Ip|O(DR^Mq3&y{ ze?TEMx^E>1?Ki@+C`a3O;o(1vn8O_v?2-pA{rA!p=lOO|%WnX8A8p?``=1wg>i;di zzM1<#e?=B~G+Xu$&!${;|Czg=5!Y+Zi5s=win@lIV#oJU!XM+%3d0_%bew7T#E4nc z5i+Zn{bP2L_`YhVsI9*&=Inn#Bz^IY@{L6$|7g`e@Bj(O!8ss}Tx4G^mlpLB7b?=l z;v;Xhj9=21e-l-8XGP4BXIp*4XD6);-a>QL{kc9huW9VLuILZ2e|)mHIA4|3s=x0p z`Z6Nxv21OB^)vTpz5`G$Ea@v!&JPk8L#54kH&w;vJ$X$1zP2v=%WtUV2)%BI-~Dun zwvYN*-Cr$#Sr6ItL?7r*u6hg%^l$XdrxTO2$V=+LsCeoam`3BnGHD_1gZO4SzS#i! z{B9LwUF^MsR(o!z0Oy7G?U_i3w%qJzy5jDOTl$$q#aE$0bxEAomM$OB%f4$U+BcJO z$FHMdgF+vF%-V0*`aXQ%n_*dWAS#dQLZCnX`>5PKouY@uQwLkWX{6tfD0(_z1I?bA zOI1;@N7jdseb8a(ZO~^VygsG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z@j?6k*hOXy?&@H+9q4zH3ITT4vbsg*yr7E#OFsq=a<6| z-ow71_A0y>Dp;rFI7$4R|6w_E9C56CcB^hF=V6mp&TZ_6oEH;sv@7_rSJ?^q@hZJM zg2clm@6|0v|8H(=$2?W1V7c2+BlchPQ+`wLd8qO8_%jc_;Ne6$PeV=Dj}5m)BJ|DE zig|%!qKR9m2wza}501ilN=^P;jage~f6si(g}yyxM1L@G}p*ug^Zn!@yj?J{0G{D>v?$=n{_k{(k{K^I-VK`0zP} ztmCeJJRfOg_b{HVmA_%^&3y7Xhs@)yVUfR4{FuWUvOoU~<4105&-cS)r|Infv{i>5 zrT!@UfQaK(?C^Wra}Dif|H<+H!}Oz%0za=`c<&GUW({MLDV^g7zH!!M(B!3*$?JFK z!_wZCk+FGL_}N!-%p8o{3wf-Oi)cB{sPvN9)#czw>M;guF`Nx4Ml9dRaVhg+%lvFJ ze)vX~GsifL8D|=6ai(YQ@b}55U$C(p9P@-VW-siK#^QX-US8iw9aH$h9=j!7GlU;l zS-u<(FkZfSy@oYznagU*88L?f9Ff;i%h;AW&Idd - + AdGuard Home diff --git a/client/public/install.html b/client/public/install.html index 45065fe3..7f251c62 100644 --- a/client/public/install.html +++ b/client/public/install.html @@ -4,7 +4,7 @@ - + Setup AdGuard Home diff --git a/client/webpack.common.js b/client/webpack.common.js index aa1b2383..bee1b975 100644 --- a/client/webpack.common.js +++ b/client/webpack.common.js @@ -5,12 +5,14 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin'); const webpack = require('webpack'); const flexBugsFixes = require('postcss-flexbugs-fixes'); const CleanWebpackPlugin = require('clean-webpack-plugin'); +const CopyPlugin = require('copy-webpack-plugin'); const RESOURCES_PATH = path.resolve(__dirname); const ENTRY_REACT = path.resolve(RESOURCES_PATH, 'src/index.js'); const ENTRY_INSTALL = path.resolve(RESOURCES_PATH, 'src/install/index.js'); const HTML_PATH = path.resolve(RESOURCES_PATH, 'public/index.html'); const HTML_INSTALL_PATH = path.resolve(RESOURCES_PATH, 'public/install.html'); +const FAVICON_PATH = path.resolve(RESOURCES_PATH, 'public/favicon.ico'); const PUBLIC_PATH = path.resolve(__dirname, '../build/static'); @@ -117,6 +119,9 @@ const config = { new ExtractTextPlugin({ filename: '[name].[contenthash].css', }), + new CopyPlugin([ + { from: FAVICON_PATH, to: PUBLIC_PATH }, + ]), ], };