From 8685ca4d17c3382ea9ecf8c96e5203047c3dfaad Mon Sep 17 00:00:00 2001 From: Simon Brunel Date: Mon, 31 Jul 2017 22:30:34 +0200 Subject: [PATCH 1/2] Add Chart.js --- src/apps.json | 11 ++++++++++- src/icons/Chart.js.svg | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/icons/Chart.js.svg diff --git a/src/apps.json b/src/apps.json index 085251734..da72f65fc 100755 --- a/src/apps.json +++ b/src/apps.json @@ -1371,6 +1371,15 @@ }, "website": "http://www.chamilo.org" }, + "Chart.js": { + "cats": [ + "25" + ], + "env": "^Chart$\\;confidence:50", + "icon": "Chart.js.svg", + "script": "Chart(?:\\.bundle)?(?:\\.min)?\\.js\\;confidence:50", + "website": "http://www.chartjs.org" + }, "Chartbeat": { "cats": [ "10" @@ -9711,7 +9720,7 @@ "cats": [ "6" ], - "env": "^JetshopData$", + "env": "^JetshopData$", "html": "<(?:div|aside) id=\"jetshop-branding\">", "icon": "Jetshop.png", "website": "http://jetshop.se" diff --git a/src/icons/Chart.js.svg b/src/icons/Chart.js.svg new file mode 100644 index 000000000..24f5a2bf0 --- /dev/null +++ b/src/icons/Chart.js.svg @@ -0,0 +1 @@ +Artboard 6 \ No newline at end of file From f46d3ee5c5c7ffb521c2e66e6b5fc78e502e107d Mon Sep 17 00:00:00 2001 From: Simon Brunel Date: Tue, 1 Aug 2017 10:27:17 +0200 Subject: [PATCH 2/2] Add CDN script patterns --- src/apps.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index da72f65fc..33def6b41 100755 --- a/src/apps.json +++ b/src/apps.json @@ -1377,7 +1377,13 @@ ], "env": "^Chart$\\;confidence:50", "icon": "Chart.js.svg", - "script": "Chart(?:\\.bundle)?(?:\\.min)?\\.js\\;confidence:50", + "script": [ + "Chart(?:\\.bundle)?(?:\\.min)?\\.js\\;confidence:50", + "chartjs\\.org/dist/([\\d.]+(?:-[^/]+)?|master|latest)/Chart.*\\.js\\;version:\\1", + "cdnjs\\.cloudflare\\.com/ajax/libs/Chart\\.js/([\\d.]+(?:-[^/]+)?)/Chart.*\\.js\\;version:\\1", + "cdn\\.jsdelivr\\.net/npm/chart\\.js@([\\d.]+(?:-[^/]+)?|latest)/dist/Chart.*\\.js\\;version:\\1", + "cdn\\.jsdelivr\\.net/gh/chartjs/Chart\\.js@([\\d.]+(?:-[^/]+)?|latest)/dist/Chart.*\\.js\\;version:\\1" + ], "website": "http://www.chartjs.org" }, "Chartbeat": {