Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
rwinch committed Oct 10, 2023
1 parent 7cc7e2a commit 7778fd8
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 29 deletions.
7 changes: 7 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions link.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/spring-batch/reference
/spring-cloud-stream/reference
/spring-cloud-task/reference
/spring-data-redis/reference
/spring-data/cassandra/reference
/spring-data/couchbase/reference
/spring-data/data-commons/reference
/spring-data/data-jpa/reference
/spring-data/data-mongo/reference
/spring-data/data-neo4j/reference
/spring-data/elasticsearch/reference
/spring-data/keyvalue/reference
/spring-data/ldap/reference
/spring-data/rest/reference
/spring-data/relational/reference
/spring-framework/reference
/spring-integration/reference
/spring-kafka/reference
/spring-ldap/reference
/spring-security-kerberos/reference
/spring-security/reference
/spring-session/reference
/spring-shell/reference
/spring-vault/reference
/spring-cloud-consul/reference
/spring-cloud-gateway/reference
/spring-cloud-netflix/reference
/spring-cloud-vault/reference
/spring-cloud-zookeeper/reference
/spring-cloud-function/reference
/spring-cloud-build/reference
/spring-cloud-commons/reference
/spring-cloud-bus/reference
/spring-cloud-config/reference
/spring-cloud-kubernetes/reference
/spring-cloud-openfeign/reference
/spring-cloud-contract/reference
/spring-cloud-circuitbreaker/reference
/spring-graphql/reference
/spring-authorization-server/reference
/spring-modulith/reference
/spring-pulsar/reference
/spring-cli/reference
/spring-ai/reference
/spring-cloud-release/reference
5 changes: 1 addition & 4 deletions src/css/vendor/page-spring-projects.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
}

.page-spring-projects .projects-list {
margin: 1.5rem 0;
padding-left: 10px;
}

Expand All @@ -25,10 +26,6 @@
display: block;
}

.page-spring-projects .projects-list {
margin: 1.5rem 0;
}

.page-spring-projects .projects-list li {
padding: 8px 0;
padding-left: 20px;
Expand Down
10 changes: 7 additions & 3 deletions src/js/01-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,13 @@
}
document.querySelector('.nav-resize').addEventListener('mousedown', (event) => {
document.addEventListener('mousemove', resize, false)
document.addEventListener('mouseup', () => {
document.removeEventListener('mousemove', resize, false)
}, false)
document.addEventListener(
'mouseup',
() => {
document.removeEventListener('mousemove', resize, false)
},
false
)
})
function resize (e) {
let value = Math.max(250, e.x)
Expand Down
22 changes: 11 additions & 11 deletions src/js/vendor/page-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@
container.querySelector('ul').innerHTML = '<li class="no-result">No result</li>'
document.querySelector('#page-counter').style.display = 'none'
} else {
document.querySelector('#page-counter').innerHTML =
`<strong>${nbHits}</strong> result${nbHits > 1 ? 's' : ''} found`
document.querySelector('#page-counter').innerHTML = `<strong>${nbHits}</strong> result${
nbHits > 1 ? 's' : ''
} found`
document.querySelector('#page-counter').style.display = 'block'
container.querySelector('ul').innerHTML = _hits
.map((hit) => {
Expand All @@ -81,11 +82,11 @@
if (hit.breadcrumbs) {
breadcrumbs = `<div class="hit-breadcrumbs">
${hit.breadcrumbs
.map((chain) => {
const arr = chain.split('|')
return `<span>${arr[0]}</span>`
})
.join(' > ')}
.map((chain) => {
const arr = chain.split('|')
return `<span>${arr[0]}</span>`
})
.join(' > ')}
</div>`
}

Expand Down Expand Up @@ -160,7 +161,8 @@
loadingIndicator.textContent = 'Loading...'
const button = document.createElement('button')
button.classList.add('ais-SearchBox-reset')
button.innerHTML = '<svg class="ais-SearchBox-resetIcon" viewBox="0 0 20 20"' +
button.innerHTML =
'<svg class="ais-SearchBox-resetIcon" viewBox="0 0 20 20"' +
' width="10" height="10" aria-hidden="true"><path d="M8.114 10L.944 2.83 0 1.885' +
' 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17' +
' 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943' +
Expand Down Expand Up @@ -207,9 +209,7 @@
widgetParams.container.querySelector('span').hidden = !isSearchStalled
}

const searchBox = instantsearch.connectors.connectSearchBox(
renderSearchBox
)
const searchBox = instantsearch.connectors.connectSearchBox(renderSearchBox)

// selected
search.addWidgets([
Expand Down
2 changes: 1 addition & 1 deletion src/js/vendor/page-spring-projects.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-undef */

(function () {
;(function () {
document.querySelectorAll('.anchor').forEach((el) => {
const list = el.parentElement.querySelector('ul')
el.addEventListener('click', function (e) {
Expand Down
22 changes: 12 additions & 10 deletions src/js/vendor/search.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@
</div>`
}

label = Object.keys(hit._highlightResult.hierarchy).map((key, index) => {
if (index > 0) {
return instantsearch.highlight({ hit: hit, attribute: 'hierarchy.' + key })
}
return null
}).filter((item) => !!item).join(' - ')
label = Object.keys(hit._highlightResult.hierarchy)
.map((key, index) => {
if (index > 0) {
return instantsearch.highlight({ hit: hit, attribute: 'hierarchy.' + key })
}
return null
})
.filter((item) => !!item)
.join(' - ')
console.log(label)
return `<li>
<a href="${hit.url}" class="ais-Hits-item">
Expand Down Expand Up @@ -150,7 +153,8 @@
loadingIndicator.textContent = 'Loading...'
const button = document.createElement('button')
button.classList.add('ais-SearchBox-reset')
button.innerHTML = '<svg class="ais-SearchBox-resetIcon" viewBox="0 0 20 20"' +
button.innerHTML =
'<svg class="ais-SearchBox-resetIcon" viewBox="0 0 20 20"' +
' width="10" height="10" aria-hidden="true"><path d="M8.114 10L.944 2.83 0 1.885' +
' 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17' +
' 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943' +
Expand Down Expand Up @@ -197,9 +201,7 @@
widgetParams.container.querySelector('span').hidden = !isSearchStalled
}

const searchBox = instantsearch.connectors.connectSearchBox(
renderSearchBox
)
const searchBox = instantsearch.connectors.connectSearchBox(renderSearchBox)

// selected
search.addWidgets([
Expand Down

0 comments on commit 7778fd8

Please sign in to comment.