From bf1a7981951143856b2fc838a57b51121c6404d4 Mon Sep 17 00:00:00 2001 From: DaAwesomeP Date: Tue, 22 Apr 2014 18:01:33 -0500 Subject: [PATCH 1/2] Added moment.js & small fixes It has come to my attention that some scripts and CSS are simple `example\\.js` and not `example.*\\.js`. This means that if the developer adds a `min` or other edit, the script or CSS file won't be detected. --- share/apps.json | 38 ++++++++++++++++++------- share/images/icons/Moment Timezone.png | Bin 0 -> 524 bytes share/images/icons/Moment.js.png | Bin 0 -> 524 bytes 3 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 share/images/icons/Moment Timezone.png create mode 100644 share/images/icons/Moment.js.png diff --git a/share/apps.json b/share/apps.json index 4c406896e..04db8c3af 100644 --- a/share/apps.json +++ b/share/apps.json @@ -176,7 +176,8 @@ "Anchor CMS": { "website": "anchorcms.com", "cats": [ 1, 11 ], - "meta": { "generator": "Anchor CMS" } + "meta": { "generator": "Anchor CMS" }, + "implies": [ "PHP", "MySQL" ] }, "AngularJS": { "website": "angularjs.org", @@ -864,7 +865,8 @@ "Ember.js": { "website": "emberjs.com", "cats": [ 12 ], - "env": "^Ember$" + "env": "^Ember$", + "implies": "Handlebars" }, "Embedthis-http": { "website": "github.com/embedthis/http", @@ -1185,7 +1187,7 @@ "website": "handlebarsjs.com", "cats": [ 12 ], "env": "^Handlebars$", - "script": "handlebars(?:\\.runtime)(?:-v[\\d.]+)?\\;version:\\1(?:\\.min)?\\.js)", + "script": "handlebars(?:\\.runtime)?(?:-([\\d.]+?))?(?:\\.min)?\\.js\\;version:\\1", "html": "<[^>]*type=[^>]text\\/x-handlebars-template" }, "HeadJS": { @@ -1444,13 +1446,15 @@ "jqPlot": { "website": "www.jqplot.com", "cats": [ 25 ], - "script": "jqplot.*\\.js" + "script": "jqplot.*\\.js", + "implies": "jQuery" }, "jQTouch": { "website": "jqtouch.com", "cats": [ 26 ], "script": "jqtouch.*\\.js", - "env": "^jQT$" + "env": "^jQT$", + "implies": [ "jQuery\\;confidence:50", "Zepto\\;confidence:50" ] }, "jQuery": { "website": "jquery.com", @@ -1818,7 +1822,7 @@ "MochiKit": { "website": "mochikit.com", "cats": [ 12 ], - "script": "MochiKit\\.js", + "script": "MochiKit.*\\.js", "env": "^MochiKit$" }, "Modernizr": { @@ -1905,9 +1909,21 @@ "Mollom": { "website": "mollom.com", "cats": [ 16 ], - "script": "mollom\\.js", + "script": "mollom.*\\.js", "html": "]+\\.mollom\\.com" }, + "Moment.js": { + "website": "momentjs.com", + "cats": [ 12 ], + "script": "moment.*\\.js", + "env": "^moment$" + }, + "Moment Timezone": { + "website": "momentjs.com/timezone/", + "cats": [ 12 ], + "script": "moment-timezone.*\\.js", + "implies": "Moment.js" + }, "Mondo Media": { "website": "mondo-media.de", "cats": [ 6 ], @@ -1931,7 +1947,7 @@ "Mono.net": { "website": "www.mono.net", "cats": [ 1 ], - "script": "monotracker\\.js", + "script": "monotracker.*\\.js", "env": "_monoTracker", "html": "var u=\\(\\('https:' == d\\.location\\.protocol\\) \\? 'https://resellerstat\\.mono\\.net/mono/' : 'http://resellerstat\\.mono\\.net/mono/'\\);", "implies": "Piwik" @@ -1947,7 +1963,7 @@ "Moogo": { "website": "www.moogo.com", "cats": [ 1 ], - "script": "kotisivukone\\.js" + "script": "kotisivukone.*\\.js" }, "MooTools": { "website": "mootools.net", @@ -1969,6 +1985,7 @@ "Mustache": { "website": "mustache.github.com", "cats": [ 12 ], + "script": "mustache.*\\.js", "env": "^Mustache$" }, "MyBB": { @@ -2250,7 +2267,8 @@ "website": "phpnuke.org", "cats": [ 2 ], "meta": { "generator": "PHP-Nuke" }, - "html": "<[^>]+Powered by PHP-Nuke" + "html": "<[^>]+Powered by PHP-Nuke", + "implies": "PHP" }, "phpPgAdmin": { "website": "phppgadmin.sourceforge.net", diff --git a/share/images/icons/Moment Timezone.png b/share/images/icons/Moment Timezone.png new file mode 100644 index 0000000000000000000000000000000000000000..32053aed716f6f686b708ee0b0cdcc899a360569 GIT binary patch literal 524 zcmV+n0`vWeP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02*{fSaefwW^{L9 za%BKeVQFr3E>1;MAa*k@H7+qRNAp5A0004dNklRpi!7 z>AQ$c=|v9mHky>Qv`L#Np$WbL53pbYSN^#db{9b!vHY*gT+25432xd4(Gh5?v~xQFmjocQfEdRX-y>M0a8 zgtl1y2w?Tw18fN-CTLKYB?8Fxau_H_xomSD4+F7PHGTkmR~Ah;m+PzNP8r95I7?eU zESw?0S+srtH{Pgsgp9#GS3s@ZIJ&GbV!OVpH{;;!G7yY6IJ5oUa5_^^<`}!nx!{Yt z*SG)?%J_vXc{dj))q|s(VsO@Jx2yFVtMVialf3HhX}BRx`Rn=~RQv-f*?o}{z4wX$ O0000Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02*{fSaefwW^{L9 za%BKeVQFr3E>1;MAa*k@H7+qRNAp5A0004dNklRpi!7 z>AQ$c=|v9mHky>Qv`L#Np$WbL53pbYSN^#db{9b!vHY*gT+25432xd4(Gh5?v~xQFmjocQfEdRX-y>M0a8 zgtl1y2w?Tw18fN-CTLKYB?8Fxau_H_xomSD4+F7PHGTkmR~Ah;m+PzNP8r95I7?eU zESw?0S+srtH{Pgsgp9#GS3s@ZIJ&GbV!OVpH{;;!G7yY6IJ5oUa5_^^<`}!nx!{Yt z*SG)?%J_vXc{dj))q|s(VsO@Jx2yFVtMVialf3HhX}BRx`Rn=~RQv-f*?o}{z4wX$ O0000 Date: Tue, 22 Apr 2014 19:04:21 -0500 Subject: [PATCH 2/2] Fix .* pattern, fix jQTouch implied I also forgot that handlebars has a `v` in the version. --- share/apps.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/share/apps.json b/share/apps.json index 04db8c3af..4de237621 100644 --- a/share/apps.json +++ b/share/apps.json @@ -1187,7 +1187,7 @@ "website": "handlebarsjs.com", "cats": [ 12 ], "env": "^Handlebars$", - "script": "handlebars(?:\\.runtime)?(?:-([\\d.]+?))?(?:\\.min)?\\.js\\;version:\\1", + "script": "handlebars(?:\\.runtime)?(?:-v([\\d.]+?))?(?:\\.min)?\\.js\\;version:\\1", "html": "<[^>]*type=[^>]text\\/x-handlebars-template" }, "HeadJS": { @@ -1453,8 +1453,7 @@ "website": "jqtouch.com", "cats": [ 26 ], "script": "jqtouch.*\\.js", - "env": "^jQT$", - "implies": [ "jQuery\\;confidence:50", "Zepto\\;confidence:50" ] + "env": "^jQT$" }, "jQuery": { "website": "jquery.com", @@ -1822,7 +1821,7 @@ "MochiKit": { "website": "mochikit.com", "cats": [ 12 ], - "script": "MochiKit.*\\.js", + "script": "MochiKit(\\.min)?\\.js", "env": "^MochiKit$" }, "Modernizr": { @@ -1909,19 +1908,19 @@ "Mollom": { "website": "mollom.com", "cats": [ 16 ], - "script": "mollom.*\\.js", + "script": "mollom(\\.min)?\\.js", "html": "]+\\.mollom\\.com" }, "Moment.js": { "website": "momentjs.com", "cats": [ 12 ], - "script": "moment.*\\.js", + "script": "moment(\\.min)?\\.js", "env": "^moment$" }, "Moment Timezone": { "website": "momentjs.com/timezone/", "cats": [ 12 ], - "script": "moment-timezone.*\\.js", + "script": "moment-timezone(\\-data)?(\\.min)?\\.js", "implies": "Moment.js" }, "Mondo Media": { @@ -1947,7 +1946,7 @@ "Mono.net": { "website": "www.mono.net", "cats": [ 1 ], - "script": "monotracker.*\\.js", + "script": "monotracker(\\.min)?\\.js", "env": "_monoTracker", "html": "var u=\\(\\('https:' == d\\.location\\.protocol\\) \\? 'https://resellerstat\\.mono\\.net/mono/' : 'http://resellerstat\\.mono\\.net/mono/'\\);", "implies": "Piwik" @@ -1963,7 +1962,7 @@ "Moogo": { "website": "www.moogo.com", "cats": [ 1 ], - "script": "kotisivukone.*\\.js" + "script": "kotisivukone(\\.min)?\\.js" }, "MooTools": { "website": "mootools.net", @@ -1985,14 +1984,15 @@ "Mustache": { "website": "mustache.github.com", "cats": [ 12 ], - "script": "mustache.*\\.js", + "script": "mustache(\\.min)?\\.js", "env": "^Mustache$" }, "MyBB": { "website": "www.mybboard.net", "cats": [ 2 ], "html": "(?: