diff --git a/bin/validate b/bin/validate index 1d6587600..dd9b12729 100755 --- a/bin/validate +++ b/bin/validate @@ -6,7 +6,7 @@ set -eu echo "Validating apps.json..." -jsonlint-cli -s schema.json src/apps.json +jsonlint-cli -tps schema.json src/apps.json > /tmp/apps.json && mv /tmp/apps.json src/apps.json echo "Validating regular expressions..." diff --git a/schema.json b/schema.json index ac366218f..0f161fbeb 100644 --- a/schema.json +++ b/schema.json @@ -35,9 +35,9 @@ }, "required": true }, - "env": { - "type": [ "string", "array" ], - "items": { + "js": { + "type": "object", + "additionalProperties": { "type": "string" } }, diff --git a/src/apps.json b/src/apps.json index 6b3c4cac6..12176a11a 100644 --- a/src/apps.json +++ b/src/apps.json @@ -1,11444 +1,12120 @@ { - "apps": { - "1&1": { - "cats": [ - "6" - ], - "icon": "1and1.svg", - "implies": "PHP", - "url": "/shop/catalog/browse\\?sessid=", - "website": "http://1and1.com" - }, - "1C-Bitrix": { - "cats": [ - "1" - ], - "headers": { - "Set-Cookie": "^BITRIX_", - "X-Powered-CMS": "^Bitrix Site Manager" - }, - "html": "(?:]+components/bitrix|(?:src|href)=\"/bitrix/(?:js|templates))", - "icon": "1C-Bitrix.png", - "implies": "PHP", - "script": "1c-bitrix", - "website": "http://www.1c-bitrix.ru" - }, - "2z Project": { - "cats": [ - "1" - ], - "icon": "2z Project.png", - "meta": { - "generator": "2z project ([\\d.]+)\\;version:\\1" - }, - "website": "http://2zproject-cms.ru" - }, - "3DM": { - "cats": [ - "19" - ], - "html": "