From 02fe0f522d4efea1c94fd2c1b1dacb5995e63152 Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Fri, 19 Feb 2016 15:19:26 +0000 Subject: [PATCH 01/10] ignore .DS_Store and add .gitignore --- .gitignore | 1 + doc/.DS_Store | Bin 6148 -> 0 bytes doc/img/.DS_Store | Bin 10244 -> 0 bytes 3 files changed, 1 insertion(+) create mode 100644 .gitignore delete mode 100644 doc/.DS_Store delete mode 100644 doc/img/.DS_Store diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..e43b0f98 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/doc/.DS_Store b/doc/.DS_Store deleted file mode 100644 index f02101f40d37e5fe0a3b81038c0b2784fe013145..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKO-~a+7@nb3T2Pn*RfL#q>_r0y6cjInrC^i;q0*+b0@mGjC=<3j&F+>8q)EMc z;|F;0`=)mjWAx%*@L>E2dNT3mJ3CVWtMO)x?3>Iy@4R2rc_us4K?vbwt#lC~f)I*8 z6BzD-?iV8bqP0nfvV;J!sNq&ki<>a|YF68#14F<-z`(!8fcSPph@lE9oAra=uf<$% zZ0rN>2!)Rw?~FvdKzh1JtY<-a8~>gD^XMFDZ|@n=^4(gAG%>?8Lbz{ zz$~{tgW1$Mkh;3e>=LghdCe}lt7%zpnU%ba0*R*_x&^5z!=_p0GLu=%+m3=nqTt=# zy)-eZO*BTe-7Di)N43ex@kWE}MIyr&F3&9FtBv~)A3c8Z^x5+_ZzcH{&MIH}6}I3V zD2fYK+)`&5er;AI7oP~(XQTVX$(~*k>+6pV#Nwyorw8L_hK7dhueZ3q?ouyT zAiZwU;g*%+F7p_-^9Q{7RTuVZ-lLUyd!56Kg2u(F2y?U4aRJ-%b9uvY47*H|+iR9# zQftvpa?j(H94m5L{_FW`KGqzEo(S)9o z&L~_kBWMOKpe))%J7^C*KrhfM^d5agpV2qmi3vW3NALum!qfN$zKNG`2IuiDT$BYm zT6=o7HJe0S0#tjtm3C~4+hwq{q7MfjwUJ^W(tXqx9;`QDAYkB+42bhVgCa1yEC{D{M*x4+xg2fHD=UCkB@3VAoWfuCOUlrX%dn40Y7ZSiMlN zKRehpKOA9QV$cT+1PmNzAS8!G-2c~p|NcLm6pR7}0tWso25@*TJ(q+fsk^mpapJDk vpxuEcM8q{E`YF(<>)2PsRXhmI7w~C90n`;XC4vPc_#@!c5Oe_pf0cpnFjL>w diff --git a/doc/img/.DS_Store b/doc/img/.DS_Store deleted file mode 100644 index 4406a679f0f28bb550aedf9a23f757432acee482..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10244 zcmeHMO;Zy=5bc2+A_OX^h~;UI9E1|RP@Ym09z1*TXg=0J83>gC!Yv06Uby=c_$mGr z|AoFcvsgXJ_7Xg(Ma@vz-VF14`n~zu-iV0XJL~O;WFk_>hql?krKIrx{LGYvqUJfQ z172hxhtifU*x^j;RFM=&3M2)R0!e|S!2h5C&TN+Yab*DVk^Z67xXqKv%j=>&HC0R;{V_(A{7#J#r7jx($i!Fh@yg8W z#pVK47TzmW^camW!?-V_$hq-{K5f=i?OLhUK%6|AbDTV6S@BE};ntzb z5IZ_Gntrb7p=KnX%2%ORN=MMdb444Ta=#PN-;L+eRqU>i2VE%!b>N9TGy0>7y1xcu z)BA<7`|(t&JyrdzLYo8d{ft@A#yy`YcFOzY+={SkrP!*m$9$U0gE`WiJ&}hc#K0#i zDs^JSP0n8x=Lf)4??Gf5BW~7?F_Sp{5dx1%sU!uG0!e{;slZ}jmGS-m8~gYFd&xbK zN(v+ef #|89Q|_r<&Q8D03UJ;Ub%J}hiE3D!e!@vq}yYpCXzI?N{TQTKwD1^2DO tPJ%@Z%0Kuq06!C?{2!xH`IMgWe?L9T^LO+8D)X}_J1)nY%Kx4G{}&uwoHYOd From a3d6e51752721ed1a446a8931c983bc354da1843 Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Fri, 19 Feb 2016 15:29:10 +0000 Subject: [PATCH 02/10] remove executable bits --- Algolia_Algoliasearch.xml | 0 LICENSE.txt | 0 code/Helper/Data.php | 0 code/Model/Observer.php | 0 code/etc/config.xml | 0 code/etc/system.xml | 0 doc/img/autocomplete.png | Bin doc/img/ecommerce-search.png | Bin doc/img/ecommerce-search@2x.png | Bin doc/img/ecommerce-search@3x.png | Bin doc/img/faceted.png | Bin doc/img/header-bg.png | Bin doc/img/header-bg@2x.png | Bin doc/img/header-bg@3x.png | Bin doc/img/icon-analytics.png | Bin doc/img/icon-analytics@2x.png | Bin doc/img/icon-analytics@3x.png | Bin doc/img/icon-instant.png | Bin doc/img/icon-instant@2x.png | Bin doc/img/icon-instant@3x.png | Bin doc/img/icon-relevance.png | Bin doc/img/icon-relevance@2x.png | Bin doc/img/icon-relevance@3x.png | Bin doc/img/icon-speed.png | Bin doc/img/icon-speed@2x.png | Bin doc/img/icon-speed@3x.png | Bin doc/img/icon-sync.png | Bin doc/img/icon-sync@2x.png | Bin doc/img/icon-sync@3x.png | Bin doc/img/icon-typo-tolerance.png | Bin doc/img/icon-typo-tolerance@2x.png | Bin doc/img/icon-typo-tolerance@3x.png | Bin doc/img/showcase-1.png | Bin doc/img/showcase-1@2x.png | Bin doc/img/showcase-1@3x.png | Bin doc/js/bootstrap.min.js | 0 skin/algoliasearch.css | 0 37 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 Algolia_Algoliasearch.xml mode change 100755 => 100644 LICENSE.txt mode change 100755 => 100644 code/Helper/Data.php mode change 100755 => 100644 code/Model/Observer.php mode change 100755 => 100644 code/etc/config.xml mode change 100755 => 100644 code/etc/system.xml mode change 100755 => 100644 doc/img/autocomplete.png mode change 100755 => 100644 doc/img/ecommerce-search.png mode change 100755 => 100644 doc/img/ecommerce-search@2x.png mode change 100755 => 100644 doc/img/ecommerce-search@3x.png mode change 100755 => 100644 doc/img/faceted.png mode change 100755 => 100644 doc/img/header-bg.png mode change 100755 => 100644 doc/img/header-bg@2x.png mode change 100755 => 100644 doc/img/header-bg@3x.png mode change 100755 => 100644 doc/img/icon-analytics.png mode change 100755 => 100644 doc/img/icon-analytics@2x.png mode change 100755 => 100644 doc/img/icon-analytics@3x.png mode change 100755 => 100644 doc/img/icon-instant.png mode change 100755 => 100644 doc/img/icon-instant@2x.png mode change 100755 => 100644 doc/img/icon-instant@3x.png mode change 100755 => 100644 doc/img/icon-relevance.png mode change 100755 => 100644 doc/img/icon-relevance@2x.png mode change 100755 => 100644 doc/img/icon-relevance@3x.png mode change 100755 => 100644 doc/img/icon-speed.png mode change 100755 => 100644 doc/img/icon-speed@2x.png mode change 100755 => 100644 doc/img/icon-speed@3x.png mode change 100755 => 100644 doc/img/icon-sync.png mode change 100755 => 100644 doc/img/icon-sync@2x.png mode change 100755 => 100644 doc/img/icon-sync@3x.png mode change 100755 => 100644 doc/img/icon-typo-tolerance.png mode change 100755 => 100644 doc/img/icon-typo-tolerance@2x.png mode change 100755 => 100644 doc/img/icon-typo-tolerance@3x.png mode change 100755 => 100644 doc/img/showcase-1.png mode change 100755 => 100644 doc/img/showcase-1@2x.png mode change 100755 => 100644 doc/img/showcase-1@3x.png mode change 100755 => 100644 doc/js/bootstrap.min.js mode change 100755 => 100644 skin/algoliasearch.css diff --git a/Algolia_Algoliasearch.xml b/Algolia_Algoliasearch.xml old mode 100755 new mode 100644 diff --git a/LICENSE.txt b/LICENSE.txt old mode 100755 new mode 100644 diff --git a/code/Helper/Data.php b/code/Helper/Data.php old mode 100755 new mode 100644 diff --git a/code/Model/Observer.php b/code/Model/Observer.php old mode 100755 new mode 100644 diff --git a/code/etc/config.xml b/code/etc/config.xml old mode 100755 new mode 100644 diff --git a/code/etc/system.xml b/code/etc/system.xml old mode 100755 new mode 100644 diff --git a/doc/img/autocomplete.png b/doc/img/autocomplete.png old mode 100755 new mode 100644 diff --git a/doc/img/ecommerce-search.png b/doc/img/ecommerce-search.png old mode 100755 new mode 100644 diff --git a/doc/img/ecommerce-search@2x.png b/doc/img/ecommerce-search@2x.png old mode 100755 new mode 100644 diff --git a/doc/img/ecommerce-search@3x.png b/doc/img/ecommerce-search@3x.png old mode 100755 new mode 100644 diff --git a/doc/img/faceted.png b/doc/img/faceted.png old mode 100755 new mode 100644 diff --git a/doc/img/header-bg.png b/doc/img/header-bg.png old mode 100755 new mode 100644 diff --git a/doc/img/header-bg@2x.png b/doc/img/header-bg@2x.png old mode 100755 new mode 100644 diff --git a/doc/img/header-bg@3x.png b/doc/img/header-bg@3x.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-analytics.png b/doc/img/icon-analytics.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-analytics@2x.png b/doc/img/icon-analytics@2x.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-analytics@3x.png b/doc/img/icon-analytics@3x.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-instant.png b/doc/img/icon-instant.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-instant@2x.png b/doc/img/icon-instant@2x.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-instant@3x.png b/doc/img/icon-instant@3x.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-relevance.png b/doc/img/icon-relevance.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-relevance@2x.png b/doc/img/icon-relevance@2x.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-relevance@3x.png b/doc/img/icon-relevance@3x.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-speed.png b/doc/img/icon-speed.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-speed@2x.png b/doc/img/icon-speed@2x.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-speed@3x.png b/doc/img/icon-speed@3x.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-sync.png b/doc/img/icon-sync.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-sync@2x.png b/doc/img/icon-sync@2x.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-sync@3x.png b/doc/img/icon-sync@3x.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-typo-tolerance.png b/doc/img/icon-typo-tolerance.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-typo-tolerance@2x.png b/doc/img/icon-typo-tolerance@2x.png old mode 100755 new mode 100644 diff --git a/doc/img/icon-typo-tolerance@3x.png b/doc/img/icon-typo-tolerance@3x.png old mode 100755 new mode 100644 diff --git a/doc/img/showcase-1.png b/doc/img/showcase-1.png old mode 100755 new mode 100644 diff --git a/doc/img/showcase-1@2x.png b/doc/img/showcase-1@2x.png old mode 100755 new mode 100644 diff --git a/doc/img/showcase-1@3x.png b/doc/img/showcase-1@3x.png old mode 100755 new mode 100644 diff --git a/doc/js/bootstrap.min.js b/doc/js/bootstrap.min.js old mode 100755 new mode 100644 diff --git a/skin/algoliasearch.css b/skin/algoliasearch.css old mode 100755 new mode 100644 From 64ccdcc1690e0defed59c555861334ef07d48561 Mon Sep 17 00:00:00 2001 From: Maxime Locqueville Date: Tue, 23 Feb 2016 11:28:53 +0100 Subject: [PATCH 03/10] Fix small price issue for bundle products + customer group --- code/Helper/Entity/Producthelper.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/Helper/Entity/Producthelper.php b/code/Helper/Entity/Producthelper.php index fc0ec213..a0355f56 100644 --- a/code/Helper/Entity/Producthelper.php +++ b/code/Helper/Entity/Producthelper.php @@ -429,13 +429,17 @@ protected function handlePrice(&$product, $sub_products, &$customData) if ($min != $max && $min <= $customData[$field][$currency_code]['group_' . $group_id]) { $customData[$field][$currency_code]['group_' . $group_id] = 0; - $customData[$field][$currency_code]['group_' . $group_id . '_formated'] = $dashed_format; } + else + { + $customData[$field][$currency_code]['group_' . $group_id] = $customData[$field][$currency_code]['default']; + } + + $customData[$field][$currency_code]['group_' . $group_id . '_formated'] = $dashed_format; } } } - if ($customData[$field][$currency_code]['default'] == 0) { $customData[$field][$currency_code]['default'] = $min; From 96cec96cac82756f789ab824cf3c7f5f185574e0 Mon Sep 17 00:00:00 2001 From: Maxime Locqueville Date: Tue, 23 Feb 2016 14:05:06 +0100 Subject: [PATCH 04/10] Fix casting issue with bundle products --- code/Helper/Entity/Producthelper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/Helper/Entity/Producthelper.php b/code/Helper/Entity/Producthelper.php index a0355f56..4d089735 100644 --- a/code/Helper/Entity/Producthelper.php +++ b/code/Helper/Entity/Producthelper.php @@ -381,6 +381,8 @@ protected function handlePrice(&$product, $sub_products, &$customData) $_priceModel = $product->getPriceModel(); list($min, $max) = $_priceModel->getTotalPrices($product, null, $with_tax, true); + $min = (double) $min; + $max = (double) $max; } if ($type == 'grouped') From 737fcec5fe5cc9a3135acfcd2339d2cd0436caac Mon Sep 17 00:00:00 2001 From: Maxime Locqueville Date: Tue, 23 Feb 2016 14:15:05 +0100 Subject: [PATCH 05/10] Fix logic of slaves creation --- code/Helper/Entity/Producthelper.php | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/code/Helper/Entity/Producthelper.php b/code/Helper/Entity/Producthelper.php index 4d089735..6749d314 100644 --- a/code/Helper/Entity/Producthelper.php +++ b/code/Helper/Entity/Producthelper.php @@ -224,35 +224,31 @@ public function setSettings($storeId) foreach ($sorting_indices as $values) { - if ($this->config->isCustomerGroupsEnabled($storeId)) + if ($this->config->isCustomerGroupsEnabled($storeId) && strpos($values['attribute'], 'price') !== false) { - if (strpos($values['attribute'], 'price') !== false) + foreach ($groups = Mage::getModel('customer/group')->getCollection() as $group) { - foreach ($groups = Mage::getModel('customer/group')->getCollection() as $group) - { - $group_id = (int)$group->getData('customer_group_id'); + $group_id = (int)$group->getData('customer_group_id'); - $suffix_index_name = 'group_' . $group_id; + $suffix_index_name = 'group_' . $group_id; - $sort_attribute = strpos($values['attribute'], 'price') !== false ? $values['attribute'].'.'.$currencies[0].'.'.$suffix_index_name : $values['attribute']; + $sort_attribute = strpos($values['attribute'], 'price') !== false ? $values['attribute'] . '.' . $currencies[0] . '.' . $suffix_index_name : $values['attribute']; - $mergeSettings['ranking'] = array($values['sort'].'('.$sort_attribute.')', 'typo', 'geo', 'words', 'proximity', 'attribute', 'exact', 'custom'); + $mergeSettings['ranking'] = array($values['sort'] . '(' . $sort_attribute . ')', 'typo', 'geo', 'words', 'proximity', 'attribute', 'exact', 'custom'); - $this->algolia_helper->setSettings($this->getIndexName($storeId).'_'.$values['attribute'].'_'. $suffix_index_name .'_'.$values['sort'], $mergeSettings); - } + $this->algolia_helper->setSettings($this->getIndexName($storeId) . '_' . $values['attribute'] . '_' . $suffix_index_name . '_' . $values['sort'], $mergeSettings); } } else { - $sort_attribute = strpos($values['attribute'], 'price') !== false ? $values['attribute'].'.'.$currencies[0].'.'.'default' : $values['attribute']; + $sort_attribute = strpos($values['attribute'], 'price') !== false ? $values['attribute'] . '.' . $currencies[0] . '.' . 'default' : $values['attribute']; - $mergeSettings['ranking'] = array($values['sort'].'('.$sort_attribute.')', 'typo', 'geo', 'words', 'proximity', 'attribute', 'exact', 'custom'); + $mergeSettings['ranking'] = array($values['sort'] . '(' . $sort_attribute . ')', 'typo', 'geo', 'words', 'proximity', 'attribute', 'exact', 'custom'); if ($values['attribute'] === 'price') - $this->algolia_helper->setSettings($this->getIndexName($storeId) . '_' .$values['attribute']. '_default_' . $values['sort'], $mergeSettings); + $this->algolia_helper->setSettings($this->getIndexName($storeId) . '_' . $values['attribute'] . '_default_' . $values['sort'], $mergeSettings); else - $this->algolia_helper->setSettings($this->getIndexName($storeId) . '_' .$values['attribute']. '_' . $values['sort'], $mergeSettings); - + $this->algolia_helper->setSettings($this->getIndexName($storeId) . '_' . $values['attribute'] . '_' . $values['sort'], $mergeSettings); } } } From 9be31d11f8635580a2aba0d2aef943d198ca2ab6 Mon Sep 17 00:00:00 2001 From: Maxime Locqueville Date: Wed, 24 Feb 2016 11:49:30 +0100 Subject: [PATCH 06/10] Fix small prices issue --- code/Helper/Entity/Producthelper.php | 2 ++ design/frontend/template/beforetopsearch.phtml | 2 +- dev/bin/start.sh | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/code/Helper/Entity/Producthelper.php b/code/Helper/Entity/Producthelper.php index 6749d314..771fd6a2 100644 --- a/code/Helper/Entity/Producthelper.php +++ b/code/Helper/Entity/Producthelper.php @@ -351,6 +351,8 @@ protected function handlePrice(&$product, $sub_products, &$customData) if ($special_price && $special_price < $customData[$field][$currency_code]['group_' . $group_id]) { + $customData[$field][$currency_code]['group_' . $group_id . '_original_formated'] = $customData[$field][$currency_code]['default_formated']; + $customData[$field][$currency_code]['group_' . $group_id] = $special_price; $customData[$field][$currency_code]['group_' . $group_id . '_formated'] = $this->formatPrice($special_price, false, $currency_code); } diff --git a/design/frontend/template/beforetopsearch.phtml b/design/frontend/template/beforetopsearch.phtml index 2739a46b..2786a529 100644 --- a/design/frontend/template/beforetopsearch.phtml +++ b/design/frontend/template/beforetopsearch.phtml @@ -173,7 +173,7 @@ if ($config->isInstantEnabled() && $isSearchPage) { if (Array.isArray(hit.price)) hit.price = hit.price[0]; - if (price_key !== '.' + algoliaConfig.currency_code + '.default' && + if (price_key !== '.' + algoliaConfig.currency_code + '.default' && hit['price'] !== undefined && hit['price'][algoliaConfig.currency_code][price_key.substr(1) + '_formated'] !== hit['price'][algoliaConfig.currency_code]['default_formated']) { hit['price'][algoliaConfig.currency_code][price_key.substr(1) + '_original_formated'] = hit['price'][algoliaConfig.currency_code]['default_formated']; } diff --git a/dev/bin/start.sh b/dev/bin/start.sh index 8642354d..81f0735a 100644 --- a/dev/bin/start.sh +++ b/dev/bin/start.sh @@ -14,6 +14,7 @@ n98-magerun --root-dir=/var/www/htdocs config:set algoliasearch/credentials/appl n98-magerun --root-dir=/var/www/htdocs config:set algoliasearch/credentials/search_only_api_key $SEARCH_ONLY_API_KEY n98-magerun --root-dir=/var/www/htdocs config:set algoliasearch/credentials/api_key $API_KEY n98-magerun --root-dir=/var/www/htdocs config:set algoliasearch/credentials/index_prefix $INDEX_PREFIX +n98-magerun --root-dir=/var/www/htdocs config:set algoliasearch/credentials/is_instant_enabled "1" n98-magerun --root-dir=/var/www/htdocs config:set web/unsecure/base_url $BASE_URL n98-magerun --root-dir=/var/www/htdocs config:set web/secure/base_url $BASE_URL From 714061903dbb2513c2c0587847d76d00c4651008 Mon Sep 17 00:00:00 2001 From: Maxime Locqueville Date: Fri, 4 Mar 2016 13:15:04 +0100 Subject: [PATCH 07/10] Do not cast sku --- code/Helper/Entity/Helper.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/Helper/Entity/Helper.php b/code/Helper/Entity/Helper.php index bddcd69f..2731b915 100644 --- a/code/Helper/Entity/Helper.php +++ b/code/Helper/Entity/Helper.php @@ -44,6 +44,9 @@ protected function castProductObject(&$productData) { foreach ($productData as $key => &$data) { + if ($key === 'sku') { + continue; + } $data = $this->try_cast($data); if (is_array($data) === false) From 7a557f7f35d25dc21edcee0bb2e8f22e88e17c37 Mon Sep 17 00:00:00 2001 From: vvo Date: Thu, 10 Mar 2016 10:25:51 +0100 Subject: [PATCH 08/10] chore(deps): upgrade to instantsearch.js 1.3.3 + provides and include source maps + lower down the build from ~200kb to ~150kb gzipped (using right babel/webpack/uglify flags) --- dev/frontend/package.json | 2 +- dev/frontend/scripts/build.sh | 4 +-- js/algoliaAdminBundle.min.js | 52 +++++++++++++++++--------------- js/algoliaAdminBundle.min.js.map | 1 + js/algoliaBundle.min.js | 50 ++++++++++++++++-------------- js/algoliaBundle.min.js.map | 1 + 6 files changed, 60 insertions(+), 50 deletions(-) create mode 100644 js/algoliaAdminBundle.min.js.map create mode 100644 js/algoliaBundle.min.js.map diff --git a/dev/frontend/package.json b/dev/frontend/package.json index 918a4e56..dd6fdae8 100644 --- a/dev/frontend/package.json +++ b/dev/frontend/package.json @@ -8,7 +8,7 @@ "build": "./scripts/build.sh" }, "dependencies": { - "algoliasearch-extensions-bundle": "^4.2.0" + "algoliasearch-extensions-bundle": "^4.3.1" }, "author": "Algolia ", "license": "ISC" diff --git a/dev/frontend/scripts/build.sh b/dev/frontend/scripts/build.sh index 4dfcdbe5..e9ef9ed0 100755 --- a/dev/frontend/scripts/build.sh +++ b/dev/frontend/scripts/build.sh @@ -3,5 +3,5 @@ set -e # exit when error set -x # debug messages npm install algoliasearch-extensions-bundle@latest --save -cp node_modules/algoliasearch-extensions-bundle/dist/algoliaBundle.min.js ../../js/algoliaBundle.min.js -cp node_modules/algoliasearch-extensions-bundle/dist/algoliaAdminBundle.min.js ../../js/algoliaAdminBundle.min.js \ No newline at end of file +cp node_modules/algoliasearch-extensions-bundle/dist/algoliaBundle.min.js* ../../js/ +cp node_modules/algoliasearch-extensions-bundle/dist/algoliaAdminBundle.min.js* ../../js/ diff --git a/js/algoliaAdminBundle.min.js b/js/algoliaAdminBundle.min.js index 0b0d9525..e376de52 100644 --- a/js/algoliaAdminBundle.min.js +++ b/js/algoliaAdminBundle.min.js @@ -1,34 +1,36 @@ -/*! algoliaAdminBundle 4.2.0 | © Algolia SAS | algolia.com */!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.algoliaAdminBundle=t():e.algoliaAdminBundle=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports={$:n(1),instantsearch:n(2),algoliasearch:n(7),algoliasearchHelper:n(74),Hogan:n(537),autocomplete:n(608),angular:n(624)},n(626)},function(e,t){var n,r;!function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(i,o){function a(e){var t="length"in e&&e.length,n=ue.type(e);return"function"===n||ue.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function s(e,t,n){if(ue.isFunction(t))return ue.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ue.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ve.test(t))return ue.filter(t,e,n);t=ue.filter(t,e)}return ue.grep(e,function(e){return ue.inArray(e,t)>=0!==n})}function u(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function c(e){var t=Ce[e]={};return ue.each(e.match(_e)||[],function(e,n){t[n]=!0}),t}function l(){ye.addEventListener?(ye.removeEventListener("DOMContentLoaded",p,!1),i.removeEventListener("load",p,!1)):(ye.detachEvent("onreadystatechange",p),i.detachEvent("onload",p))}function p(){(ye.addEventListener||"load"===event.type||"complete"===ye.readyState)&&(l(),ue.ready())}function f(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Pe,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Te.test(n)?ue.parseJSON(n):n}catch(i){}ue.data(e,t,n)}else n=void 0}return n}function d(e){var t;for(t in e)if(("data"!==t||!ue.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function h(e,t,n,r){if(ue.acceptData(e)){var i,o,a=ue.expando,s=e.nodeType,u=s?ue.cache:e,c=s?e[a]:e[a]&&a;if(c&&u[c]&&(r||u[c].data)||void 0!==n||"string"!=typeof t)return c||(c=s?e[a]=J.pop()||ue.guid++:a),u[c]||(u[c]=s?{}:{toJSON:ue.noop}),("object"==typeof t||"function"==typeof t)&&(r?u[c]=ue.extend(u[c],t):u[c].data=ue.extend(u[c].data,t)),o=u[c],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[ue.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[ue.camelCase(t)])):i=o,i}}function m(e,t,n){if(ue.acceptData(e)){var r,i,o=e.nodeType,a=o?ue.cache:e,s=o?e[ue.expando]:ue.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){ue.isArray(t)?t=t.concat(ue.map(t,ue.camelCase)):t in r?t=[t]:(t=ue.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!d(r):!ue.isEmptyObject(r))return}(n||(delete a[s].data,d(a[s])))&&(o?ue.cleanData([e],!0):ae.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function v(){return!0}function g(){return!1}function y(){try{return ye.activeElement}catch(e){}}function b(e){var t=Ve.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function x(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==Oe?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==Oe?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||ue.nodeName(r,t)?o.push(r):ue.merge(o,x(r,t));return void 0===t||t&&ue.nodeName(e,t)?ue.merge([e],o):o}function w(e){Ae.test(e.type)&&(e.defaultChecked=e.checked)}function E(e,t){return ue.nodeName(e,"table")&&ue.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function _(e){return e.type=(null!==ue.find.attr(e,"type"))+"/"+e.type,e}function C(e){var t=Xe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function N(e,t){for(var n,r=0;null!=(n=e[r]);r++)ue._data(n,"globalEval",!t||ue._data(t[r],"globalEval"))}function $(e,t){if(1===t.nodeType&&ue.hasData(e)){var n,r,i,o=ue._data(e),a=ue._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)ue.event.add(t,n,s[n][r])}a.data&&(a.data=ue.extend({},a.data))}}function O(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ae.noCloneEvent&&t[ue.expando]){i=ue._data(t);for(r in i.events)ue.removeEvent(t,r,i.handle);t.removeAttribute(ue.expando)}"script"===n&&t.text!==e.text?(_(t).text=e.text,C(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ae.html5Clone&&e.innerHTML&&!ue.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ae.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function T(e,t){var n,r=ue(t.createElement(e)).appendTo(t.body),o=i.getDefaultComputedStyle&&(n=i.getDefaultComputedStyle(r[0]))?n.display:ue.css(r[0],"display");return r.detach(),o}function P(e){var t=ye,n=rt[e];return n||(n=T(e,t),"none"!==n&&n||(nt=(nt||ue("