From b30e94991b2ddbb1c9d47d91b2c53a4623eab6c2 Mon Sep 17 00:00:00 2001 From: Ward Oosterlijnck Date: Mon, 10 Apr 2017 10:44:29 +1000 Subject: [PATCH 1/2] icon optional and defaults to default.svg --- bin/wappalyzer-validate-icons | 6 ++--- schema.json | 3 +-- src/apps.json | 39 --------------------------- src/drivers/bookmarklet/driver.js | 2 +- src/drivers/phantomjs/driver.js | 2 +- src/drivers/webextension/js/driver.js | 2 +- src/drivers/webextension/js/popup.js | 2 +- 7 files changed, 8 insertions(+), 48 deletions(-) diff --git a/bin/wappalyzer-validate-icons b/bin/wappalyzer-validate-icons index 3ec796ac6..20cc4b70e 100755 --- a/bin/wappalyzer-validate-icons +++ b/bin/wappalyzer-validate-icons @@ -12,9 +12,9 @@ var for (app in json.apps) { (function(app) { var basePath = process.env.WAPPALYZER_ROOT + '/src/icons/'; - var iconPath = json.apps[app].icon; + var iconPath = json.apps[app].icon || 'default.svg'; var path = basePath + iconPath; - + var type; if (path.substr(path.length - 4) === '.png') { type = "PNG"; @@ -26,7 +26,7 @@ for (app in json.apps) { var err = new Error('Icon file extension specified for app "' + app + '" is not ".png" or ".svg": src/icons/' + iconPath); throw err; } - + fs.exists(path, function(exists) { if (exists) { if (type === "PNG") { diff --git a/schema.json b/schema.json index c70605b61..ac366218f 100644 --- a/schema.json +++ b/schema.json @@ -85,8 +85,7 @@ "required": true }, "icon": { - "type": "string", - "required": true + "type": "string" } } } diff --git a/src/apps.json b/src/apps.json index eca8e667e..136a5cc28 100755 --- a/src/apps.json +++ b/src/apps.json @@ -9,7 +9,6 @@ "url": "/shop/catalog/browse\\?sessid=", "website": "http://1and1.com" }, - "1C-Bitrix": { "cats": [ "1" @@ -866,7 +865,6 @@ "3" ], "html": "", @@ -6236,10 +6240,6 @@ "meta": { "generator": "PrestaShop" }, - "headers": { - "Set-Cookie": "^PrestaShop", - "Powered-By": "^Prestashop$" - }, "website": "http://www.prestashop.com" }, "Project Wonderful": { @@ -7753,15 +7753,6 @@ "url": "/typo3/", "website": "http://www.typo3.org" }, - "Typecho": { - "cats": [ - "11" - ], - "icon": "typecho.svg", - "implies": "PHP", - "url": "/admin/login\\.php?referer=http%3A%2F%2F", - "website": "http://typecho.org/" - }, "Taiga": { "cats": [ "13" @@ -8105,6 +8096,15 @@ "url": "typepad\\.com", "website": "http://www.typepad.com" }, + "Typecho": { + "cats": [ + "11" + ], + "icon": "typecho.svg", + "implies": "PHP", + "url": "/admin/login\\.php?referer=http%3A%2F%2F", + "website": "http://typecho.org/" + }, "Typekit": { "cats": [ "17"