first commit
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 3.3 KiB |
@@ -2,8 +2,8 @@
|
||||
<svg width="16px" height="16px" viewBox="0 0 8 9" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch -->
|
||||
<defs></defs>
|
||||
<g id="InitSolrConnection" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="solr-for-typo3" fill-rule="nonzero">
|
||||
<g id="InitMeilisearchConnection" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="meilisearch-for-typo3" fill-rule="nonzero">
|
||||
<path d="M0.403408437,2.39079205 C0.225236,2.7880078 0.109718844,3.21944376 0.0696005937,3.67309908 L0.684944562,4.78050284 L0.403408437,2.39079205 Z" id="Path" fill="#060606"></path>
|
||||
<path d="M2.14954578,0.510795929 C1.59048547,0.81188618 1.11189772,1.24391624 0.753428844,1.76636842 L1.3277105,4.67793729 L2.14954578,0.510795929 Z" id="Path" fill="#000000"></path>
|
||||
<path d="M4.82003234,0.123739301 L2.55016241,5.07794531 L6.76081419,1.15616756 C6.23278653,0.644646824 5.56493488,0.278561952 4.82003234,0.123739301 Z" id="Path" fill="#000000"></path>
|
||||
@@ -13,4 +13,4 @@
|
||||
<path d="M6.90409559,1.30210246 L3.01026031,5.54124883 L7.90386725,3.26774414 C7.75908734,2.51561262 7.40463041,1.83928835 6.90409559,1.30210246 Z" id="Path" fill="#000000"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@@ -2,8 +2,8 @@
|
||||
<svg width="8px" height="9px" viewBox="0 0 8 9" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch -->
|
||||
<defs></defs>
|
||||
<g id="InitSolrConnections" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="solr-for-typo3" fill-rule="nonzero" fill="#FFFFFF">
|
||||
<g id="InitMeilisearchConnections" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="meilisearch-for-typo3" fill-rule="nonzero" fill="#FFFFFF">
|
||||
<path d="M2.14954578,0.510795929 C1.59048547,0.81188618 1.11189772,1.24391624 0.753428844,1.76636842 L1.3277105,4.67793729 L2.14954578,0.510795929 Z" id="Path"></path>
|
||||
<path d="M0.403408437,2.39079205 C0.225236,2.7880078 0.109718844,3.21944376 0.0696005937,3.67309908 L0.684944562,4.78050284 L0.403408437,2.39079205 Z" id="Path"></path>
|
||||
<path d="M4.34618797,8.00586384 C4.78489344,7.96926724 5.20330372,7.86125972 5.58985541,7.69241629 L3.305708,7.41948642 L4.34618797,8.00586384 Z" id="Path"></path>
|
||||
@@ -14,4 +14,4 @@
|
||||
<path d="M6.90409559,1.30210246 L3.01026031,5.54124883 L7.90386725,3.26774414 C7.75908734,2.51561262 7.40463041,1.83928835 6.90409559,1.30210246 Z" id="Path"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@@ -13,7 +13,7 @@
|
||||
version="1.1"
|
||||
id="svg6241"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="ModuleSolrMain.svg">
|
||||
sodipodi:docname="ModuleMeilisearchMain.svg">
|
||||
<metadata
|
||||
id="metadata6261">
|
||||
<rdf:RDF>
|
||||
@@ -50,11 +50,11 @@
|
||||
<defs
|
||||
id="defs6243" />
|
||||
<g
|
||||
id="InitSolrConnection"
|
||||
id="InitMeilisearchConnection"
|
||||
transform="matrix(0.5659569,0,0,0.54992106,1.8607181,2.2303893)"
|
||||
style="fill:#ffffff;fill-rule:evenodd;stroke:none;stroke-width:1;fill-opacity:1">
|
||||
<g
|
||||
id="solr-for-typo3"
|
||||
id="meilisearch-for-typo3"
|
||||
style="fill-rule:nonzero;fill:#ffffff;fill-opacity:1">
|
||||
<path
|
||||
d="M 0.40340844,2.3907921 C 0.225236,2.7880078 0.10971884,3.2194438 0.06960059,3.6730991 L 0.68494456,4.7805028 0.40340844,2.3907921 Z"
|
||||
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -1,7 +1,7 @@
|
||||
|
||||
require([
|
||||
'jquery',
|
||||
'../typo3conf/ext/solr/Resources/Public/JavaScript/Chart.js'
|
||||
'../typo3conf/ext/meilisearch/Resources/Public/JavaScript/Chart.js'
|
||||
], function ($, Chart) {
|
||||
|
||||
var ctx = $('#queriesOverTime');
|
||||
|
@@ -8,10 +8,10 @@ function DateRangeFacetController() {
|
||||
this.init = function() {
|
||||
dateSelector = jQuery(".dateselector");
|
||||
dateSelector.datepicker();
|
||||
dateSelector.change(function(){ _this.solrRequest("created"); });
|
||||
dateSelector.change(function(){ _this.meilisearchRequest("created"); });
|
||||
};
|
||||
|
||||
this.solrRequest = function(facetName) {
|
||||
this.meilisearchRequest = function(facetName) {
|
||||
startDate = jQuery('#start_date_'+facetName);
|
||||
endDate = jQuery('#end_date_'+facetName);
|
||||
if (startDate.val() !== '' && endDate.val() !== '' ) {
|
||||
|
@@ -12,13 +12,13 @@ function OptionFacetController() {
|
||||
|
||||
this.initToggle = function () {
|
||||
|
||||
jQuery('.tx-solr-facet-hidden').hide();
|
||||
jQuery('a.tx-solr-facet-show-all').click(function() {
|
||||
if (jQuery(this).parent().siblings('.tx-solr-facet-hidden:visible').length == 0) {
|
||||
jQuery(this).parent().siblings('.tx-solr-facet-hidden').show();
|
||||
jQuery('.tx-meilisearch-facet-hidden').hide();
|
||||
jQuery('a.tx-meilisearch-facet-show-all').click(function() {
|
||||
if (jQuery(this).parent().siblings('.tx-meilisearch-facet-hidden:visible').length == 0) {
|
||||
jQuery(this).parent().siblings('.tx-meilisearch-facet-hidden').show();
|
||||
jQuery(this).text(jQuery(this).data('label-less'));
|
||||
} else {
|
||||
jQuery(this).parent().siblings('.tx-solr-facet-hidden').hide();
|
||||
jQuery(this).parent().siblings('.tx-meilisearch-facet-hidden').hide();
|
||||
jQuery(this).text(jQuery(this).data('label-more'));
|
||||
}
|
||||
|
||||
|
@@ -5,26 +5,26 @@ function SearchController() {
|
||||
_this.ajaxType = 7383;
|
||||
|
||||
this.init = function() {
|
||||
jQuery("body").delegate("a.solr-ajaxified", "click", _this.handleClickOnAjaxifiedUri);
|
||||
jQuery("body").delegate("a.meilisearch-ajaxified", "click", _this.handleClickOnAjaxifiedUri);
|
||||
};
|
||||
|
||||
this.handleClickOnAjaxifiedUri = function() {
|
||||
var clickedLink = jQuery(this);
|
||||
|
||||
var solrContainer = clickedLink.closest(".tx_meilisearch");
|
||||
var solrParent = solrContainer.parent();
|
||||
var meilisearchContainer = clickedLink.closest(".tx_meilisearch");
|
||||
var meilisearchParent = meilisearchContainer.parent();
|
||||
|
||||
var loader = jQuery("<div class='tx-solr-loader'></div>");
|
||||
var loader = jQuery("<div class='tx-meilisearch-loader'></div>");
|
||||
var uri = clickedLink.uri();
|
||||
|
||||
solrParent.append(loader);
|
||||
meilisearchParent.append(loader);
|
||||
uri.addQuery("type", _this.ajaxType);
|
||||
|
||||
jQuery.get(
|
||||
uri.href(),
|
||||
function(data) {
|
||||
solrContainer = solrContainer.replaceWith(data);
|
||||
_this.scrollToTopOfElement(solrParent, 50);
|
||||
meilisearchContainer = meilisearchContainer.replaceWith(data);
|
||||
_this.scrollToTopOfElement(meilisearchParent, 50);
|
||||
jQuery("body").trigger("tx_meilisearch_updated");
|
||||
loader.fadeOut().remove();
|
||||
history.replaceState({}, null, uri.removeQuery("type").href());
|
||||
@@ -45,10 +45,10 @@ function SearchController() {
|
||||
}
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
var solrSearchController = new SearchController();
|
||||
solrSearchController.init();
|
||||
var meilisearchSearchController = new SearchController();
|
||||
meilisearchSearchController.init();
|
||||
|
||||
if(typeof solrSearchAjaxType !== "undefined") {
|
||||
solrSearchController.setAjaxType(solrSearchAjaxType);
|
||||
if(typeof meilisearchSearchAjaxType !== "undefined") {
|
||||
meilisearchSearchController.setAjaxType(meilisearchSearchAjaxType);
|
||||
}
|
||||
});
|
||||
|
@@ -3,15 +3,15 @@ function SuggestController() {
|
||||
this.init = function () {
|
||||
|
||||
jQuery('form[data-suggest]').each(function () {
|
||||
var $form = $(this), $searchBox = $form.find('.tx-solr-suggest'), $formAutoComplete;
|
||||
var $form = $(this), $searchBox = $form.find('.tx-meilisearch-suggest'), $formAutoComplete;
|
||||
|
||||
if ($form.find('.tx-solr-autocomplete').length > 0){
|
||||
$formAutoComplete = $form.find('.tx-solr-autocomplete');
|
||||
if ($form.find('.tx-meilisearch-autocomplete').length > 0){
|
||||
$formAutoComplete = $form.find('.tx-meilisearch-autocomplete');
|
||||
} else {
|
||||
$formAutoComplete = $('body');
|
||||
}
|
||||
|
||||
$form.find('.tx-solr-suggest-focus').focus();
|
||||
$form.find('.tx-meilisearch-suggest-focus').focus();
|
||||
|
||||
jQuery.ajaxSetup({jsonp: "tx_meilisearch[callback]"});
|
||||
|
||||
@@ -23,13 +23,13 @@ function SuggestController() {
|
||||
|
||||
// Prevent submit of empty search form
|
||||
$form.on('submit', function (e) {
|
||||
if ($form.find('.tx-solr-suggest').val() === '') {
|
||||
if ($form.find('.tx-meilisearch-suggest').val() === '') {
|
||||
e.preventDefault();
|
||||
$form.find('.tx-solr-suggest').focus();
|
||||
$form.find('.tx-meilisearch-suggest').focus();
|
||||
}
|
||||
});
|
||||
|
||||
$form.find('.tx-solr-suggest').devbridgeAutocomplete({
|
||||
$form.find('.tx-meilisearch-suggest').devbridgeAutocomplete({
|
||||
serviceUrl: $form.data('suggest'),
|
||||
dataType: 'jsonp',
|
||||
paramName: 'tx_meilisearch[queryString]',
|
||||
@@ -86,7 +86,7 @@ function SuggestController() {
|
||||
beforeRender: function (container) {
|
||||
// remove first group header
|
||||
container.find('.autocomplete-group:first').remove();
|
||||
container.addClass('tx-solr-autosuggest');
|
||||
container.addClass('tx-meilisearch-autosuggest');
|
||||
|
||||
// add active class to container
|
||||
$searchBox.parent().addClass('autocomplete-active').fadeIn();
|
||||
@@ -136,12 +136,12 @@ function SuggestController() {
|
||||
}
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
/** solr search autocomplete **/
|
||||
var solrSuggestController = new SuggestController();
|
||||
solrSuggestController.init();
|
||||
/** meilisearch search autocomplete **/
|
||||
var meilisearchSuggestController = new SuggestController();
|
||||
meilisearchSuggestController.init();
|
||||
|
||||
jQuery("body").on("tx_meilisearch_updated", function() {
|
||||
solrSuggestController.init();
|
||||
meilisearchSuggestController.init();
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
|
||||
.tx-solr-loader {
|
||||
.tx-meilisearch-loader {
|
||||
position: fixed;
|
||||
left: calc(50% - 50px);
|
||||
top: 35%;
|
||||
|
@@ -39,80 +39,80 @@
|
||||
/* ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- */
|
||||
/* frequent searches */
|
||||
|
||||
#tx-solr-frequent-searches ul {
|
||||
#tx-meilisearch-frequent-searches ul {
|
||||
padding-right: 10px;
|
||||
padding-left: 0px!important;
|
||||
}
|
||||
|
||||
#tx-solr-frequent-searches li {
|
||||
#tx-meilisearch-frequent-searches li {
|
||||
list-style-type: none;
|
||||
margin-right: 10px;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.tx-solr-frequent-term-14 {
|
||||
.tx-meilisearch-frequent-term-14 {
|
||||
font-size: 14px;
|
||||
}
|
||||
.tx-solr-frequent-term-15 {
|
||||
.tx-meilisearch-frequent-term-15 {
|
||||
font-size: 15px;
|
||||
}
|
||||
.tx-solr-frequent-term-16 {
|
||||
.tx-meilisearch-frequent-term-16 {
|
||||
font-size: 16px;
|
||||
}
|
||||
.tx-solr-frequent-term-16 {
|
||||
.tx-meilisearch-frequent-term-16 {
|
||||
font-size: 16px;
|
||||
}
|
||||
.tx-solr-frequent-term-17 {
|
||||
.tx-meilisearch-frequent-term-17 {
|
||||
font-size: 17px;
|
||||
}
|
||||
.tx-solr-frequent-term-18 {
|
||||
.tx-meilisearch-frequent-term-18 {
|
||||
font-size: 18px;
|
||||
}
|
||||
.tx-solr-frequent-term-19 {
|
||||
.tx-meilisearch-frequent-term-19 {
|
||||
font-size: 19px;
|
||||
}
|
||||
.tx-solr-frequent-term-20 {
|
||||
.tx-meilisearch-frequent-term-20 {
|
||||
font-size: 20px;
|
||||
}
|
||||
.tx-solr-frequent-term-21 {
|
||||
.tx-meilisearch-frequent-term-21 {
|
||||
font-size: 21px;
|
||||
}
|
||||
.tx-solr-frequent-term-22 {
|
||||
.tx-meilisearch-frequent-term-22 {
|
||||
font-size: 22px;
|
||||
}
|
||||
.tx-solr-frequent-term-23 {
|
||||
.tx-meilisearch-frequent-term-23 {
|
||||
font-size: 23px;
|
||||
}
|
||||
.tx-solr-frequent-term-24 {
|
||||
.tx-meilisearch-frequent-term-24 {
|
||||
font-size: 24px;
|
||||
}
|
||||
.tx-solr-frequent-term-25 {
|
||||
.tx-meilisearch-frequent-term-25 {
|
||||
font-size: 25px;
|
||||
}
|
||||
.tx-solr-frequent-term-26 {
|
||||
.tx-meilisearch-frequent-term-26 {
|
||||
font-size: 26px;
|
||||
}
|
||||
.tx-solr-frequent-term-27 {
|
||||
.tx-meilisearch-frequent-term-27 {
|
||||
font-size: 27px;
|
||||
}
|
||||
.tx-solr-frequent-term-28 {
|
||||
.tx-meilisearch-frequent-term-28 {
|
||||
font-size: 28px;
|
||||
}
|
||||
.tx-solr-frequent-term-29 {
|
||||
.tx-meilisearch-frequent-term-29 {
|
||||
font-size: 29px;
|
||||
}
|
||||
.tx-solr-frequent-term-30 {
|
||||
.tx-meilisearch-frequent-term-30 {
|
||||
font-size: 30px;
|
||||
}
|
||||
.tx-solr-frequent-term-31 {
|
||||
.tx-meilisearch-frequent-term-31 {
|
||||
font-size: 31px;
|
||||
}
|
||||
.tx-solr-frequent-term-32 {
|
||||
.tx-meilisearch-frequent-term-32 {
|
||||
font-size: 32px;
|
||||
}
|
||||
.tx-solr-frequent-term-33 {
|
||||
.tx-meilisearch-frequent-term-33 {
|
||||
font-size: 33px;
|
||||
}
|
||||
.tx-solr-frequent-term-34 {
|
||||
.tx-meilisearch-frequent-term-34 {
|
||||
font-size: 34px;
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
.tx-solr-autosuggest { border: 1px solid #CCC; background: #FFF; overflow: auto; }
|
||||
.tx-solr-autosuggest strong { font-weight: bolder; color: #f18f0b; }
|
||||
.tx-solr-autosuggest .autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
|
||||
.tx-solr-autosuggest .autocomplete-selected { background: #F1E0B6; }
|
||||
.tx-solr-autosuggest .autocomplete-group { padding: 10px 5px; }
|
||||
.tx-solr-autosuggest .autocomplete-group strong { display: block; border-bottom: 1px solid #999; }
|
||||
.tx-meilisearch-autosuggest { border: 1px solid #CCC; background: #FFF; overflow: auto; }
|
||||
.tx-meilisearch-autosuggest strong { font-weight: bolder; color: #f18f0b; }
|
||||
.tx-meilisearch-autosuggest .autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
|
||||
.tx-meilisearch-autosuggest .autocomplete-selected { background: #F1E0B6; }
|
||||
.tx-meilisearch-autosuggest .autocomplete-group { padding: 10px 5px; }
|
||||
.tx-meilisearch-autosuggest .autocomplete-group strong { display: block; border-bottom: 1px solid #999; }
|
||||
|
@@ -168,11 +168,11 @@ table.tx_meilisearch_index_list {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#tx-solr-connection {
|
||||
#tx-meilisearch-connection {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#tx-solr-connection select {
|
||||
#tx-meilisearch-connection select {
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
|