Skip to content

Commit

Permalink
fix(prettier): consistent version (#5850)
Browse files Browse the repository at this point in the history
* fix(prettier): consistent version

* fix: add missing "=" found by prettier

* chore(prettier): ensure only one 2.x version is present & prettify everything

* fix test

* ignore changelogs

* fix(doctoc): remove newline
  • Loading branch information
Haroenv authored Sep 14, 2023
1 parent e97029e commit ca59c6d
Show file tree
Hide file tree
Showing 76 changed files with 467 additions and 520 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ workflows:
ci:
when:
not:
equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
jobs:
- build:
context: fx-libraries
Expand Down Expand Up @@ -106,8 +106,8 @@ workflows:
# See: https://app.circleci.com/settings/project/github/algolia/instantsearch/triggers
when:
and:
- equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]
- equal: [ scheduled_release, << pipeline.schedule.name >> ]
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal: [scheduled_release, << pipeline.schedule.name >>]
jobs:
- prepare release:
context: fx-libraries
Expand All @@ -116,8 +116,8 @@ workflows:
# See: https://app.circleci.com/settings/project/github/algolia/instantsearch/triggers
when:
and:
- equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]
- equal: [ scheduled_e2e, << pipeline.schedule.name >> ]
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal: [scheduled_e2e, << pipeline.schedule.name >>]
jobs:
- build:
context: fx-libraries
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages/*/CHANGELOG.md
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ If this guide does not contain what you are looking for and thus prevents you fr
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->


- [Reporting an issue](#reporting-an-issue)
- [The code contribution process](#the-code-contribution-process)
- [Commit conventions](#commit-conventions)
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ It is part of the InstantSearch family which is designed for different platforms
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->


- [Packages](#packages)
- [Contributing](#contributing)
- [License](#license)
Expand Down
4 changes: 1 addition & 3 deletions examples/js/e-commerce/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
</a>
</p>

<p class="header-title">
Stop looking for an item — find it.
</p>
<p class="header-title">Stop looking for an item — find it.</p>

<div data-widget="searchbox"></div>
</header>
Expand Down
24 changes: 15 additions & 9 deletions examples/js/media/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@
/>
</svg>

<h2 class="container-filters-title">
Filter
</h2>
<h2 class="container-filters-title">Filter</h2>
</button>

<div data-widget="stats" class="container-filters-filter"></div>
Expand All @@ -164,17 +162,18 @@ <h2 class="container-filters-title">
data-layout="desktop"
class="container-filters-panel-column-wrapper"
>
<div data-widget="dates-desktop" class="container-filters-panel-column container-filters-panel-column--dates"></div>
<div
data-widget="dates-desktop"
class="container-filters-panel-column container-filters-panel-column--dates"
></div>
<div
data-widget="categories-desktop"
class="container-filters-panel-column"
></div>
</div>
<div data-layout="mobile" class="container-filters-panel-mobile">
<div class="container-filters-header">
<h2 class="container-filters-title">
Filters
</h2>
<h2 class="container-filters-title">Filters</h2>
<div data-widget="clear-filters-mobile"></div>
</div>
<div data-widget="dates-mobile"></div>
Expand Down Expand Up @@ -216,8 +215,15 @@ <h2 class="container-filters-title">
</a>
</aside>
<div class="mentions">
<p>InstantSearch.js is an open-source, production-ready library that lets you quickly build a search interface in your front-end application.</p>
<p>This demo uses data from the Algolia blog. Follow <a href="https://algolia.com/blog">this link</a> to benefit from the official blog experience.</p>
<p>
InstantSearch.js is an open-source, production-ready library that lets
you quickly build a search interface in your front-end application.
</p>
<p>
This demo uses data from the Algolia blog. Follow
<a href="https://algolia.com/blog">this link</a> to benefit from the
official blog experience.
</p>
</div>
</footer>

Expand Down
6 changes: 3 additions & 3 deletions examples/js/media/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,16 @@ strong {

.previous-hits-message {
margin: 0;
font-size: .9rem;
font-size: 0.9rem;
color: #6e7070;
}

.previous-hits-button {
font-family: inherit;
font-size: .75rem;
font-size: 0.75rem;
font-weight: bold;
margin-left: 1rem;
padding: .5rem 1rem;
padding: 0.5rem 1rem;
color: #6634d1;
background-color: #e6ebf7;
text-transform: uppercase;
Expand Down
2 changes: 1 addition & 1 deletion examples/js/tourism/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</head>

<body>
<div class="container-fluid" style="padding-left: 0; padding-right: 0;">
<div class="container-fluid" style="padding-left: 0; padding-right: 0">
<header class="navbar navbar-static-top aisdemo-navbar">
<a
href="https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/"
Expand Down
2 changes: 1 addition & 1 deletion examples/react/default-theme/src/components/Refresh.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}

.Refresh svg {
transition: transform .5s ease-out;
transition: transform 0.5s ease-out;
}

.Refresh:active svg {
Expand Down
5 changes: 3 additions & 2 deletions examples/react/default-theme/src/components/layout/Tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
padding: 0 1rem;
flex: 1;
font-family: inherit;
font-size: .875rem;
font-size: 0.875rem;
color: #23263b;
background: linear-gradient(-180deg, #fff, #fcfcfd);
border: 1px solid #d6d6e7;
Expand Down Expand Up @@ -34,7 +34,8 @@

.Tabs-title--active {
font-weight: bold;
box-shadow: inset 0 1px 4px 0 rgb(119 122 175 / 40%), inset 0 1px 1px 0 rgb(119 122 175 / 40%), 0 1px 0 0 rgb(35 38 59 / 5%);
box-shadow: inset 0 1px 4px 0 rgb(119 122 175 / 40%),
inset 0 1px 1px 0 rgb(119 122 175 / 40%), 0 1px 0 0 rgb(35 38 59 / 5%);
z-index: 1;
}

Expand Down
6 changes: 3 additions & 3 deletions examples/react/ssr/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
rules: {
// this example is using CJS
'no-restricted-imports': 'off'
}
}
'no-restricted-imports': 'off',
},
};
40 changes: 21 additions & 19 deletions examples/vue/default-theme/public/index.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title>default-theme</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/instantsearch.css@7.4.5/themes/algolia.min.css"
/>
</head>

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>default-theme</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/instantsearch.css@7.4.5/themes/algolia.min.css">

</head>

<body>
<noscript>
<strong>We're sorry but default-theme doesn't work properly without JavaScript enabled. Please enable it to
continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>

<body>
<noscript>
<strong
>We're sorry but default-theme doesn't work properly without JavaScript
enabled. Please enable it to continue.</strong
>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
16 changes: 3 additions & 13 deletions examples/vue/e-commerce/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,7 @@
>
<ul class="ais-Pagination-list">
<li
class="
ais-Pagination-item
ais-Pagination-item--previousPage
ais-Pagination-item--disabled
"
class="ais-Pagination-item ais-Pagination-item--previousPage ais-Pagination-item--disabled"
v-if="isFirstPage"
>
<span class="ais-Pagination-link">
Expand All @@ -360,9 +356,7 @@
</li>

<li
class="
ais-Pagination-item ais-Pagination-item--previousPage
"
class="ais-Pagination-item ais-Pagination-item--previousPage"
v-if="!isFirstPage"
>
<a
Expand Down Expand Up @@ -443,11 +437,7 @@
</li>

<li
class="
ais-Pagination-item
ais-Pagination-item--nextPage
ais-Pagination-item--disabled
"
class="ais-Pagination-item ais-Pagination-item--nextPage ais-Pagination-item--disabled"
v-if="isLastPage"
>
<span class="ais-Pagination-link">
Expand Down
2 changes: 1 addition & 1 deletion examples/vue/e-commerce/src/widgets/PriceSlider.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@
height: 24px !important;
width: 24px !important;
}
}
}
48 changes: 29 additions & 19 deletions examples/vue/media/public/index.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/bootstrap/3.3.5/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/instantsearch.css@7.1.0/themes/algolia-min.css"
/>
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title>media</title>
</head>

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/instantsearch.css@7.1.0/themes/algolia-min.css">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>media</title>
</head>

<body>
<noscript>
<strong>We're sorry but media doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>

<body>
<noscript>
<strong
>We're sorry but media doesn't work properly without JavaScript enabled.
Please enable it to continue.</strong
>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
3 changes: 1 addition & 2 deletions examples/vue/nuxt/pages/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# PAGES

This directory contains your Application Views and Routes.
The framework reads all the `*.vue` files inside this directory and create the router of your application.
This directory contains your Application Views and Routes. The framework reads all the `*.vue` files inside this directory and create the router of your application.

More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing).
3 changes: 1 addition & 2 deletions examples/vue/nuxt/static/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

**This directory is not required, you can delete it if you don't want to use it.**

This directory contains your static files.
Each file inside this directory is mapped to `/`.
This directory contains your static files. Each file inside this directory is mapped to `/`.

Example: `/static/robots.txt` is mapped as `/robots.txt`.

Expand Down
13 changes: 8 additions & 5 deletions examples/vue/ssr/public/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="stylesheet" href="https://unpkg.com/instantsearch.css@7.1.0/themes/algolia-min.css">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link
rel="stylesheet"
href="https://unpkg.com/instantsearch.css@7.1.0/themes/algolia-min.css"
/>
<title>{{ title }}</title>
{{{ renderResourceHints() }}}
{{{ renderStyles() }}}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"lerna": "6.0.3",
"patch-package": "6.2.2",
"places.js": "1.17.1",
"prettier": "2.4.1",
"prettier": "^2.4.1",
"prop-types": "15.6.2",
"react": "18.1.0",
"react-dom": "18.1.0",
Expand Down
7 changes: 3 additions & 4 deletions packages/algoliasearch-helper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ This module is the companion of the [algolia/algoliasearch-client-javascript](ht
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->


- [Features](#features)
- [Examples](#examples)
- [Vanilla JavaScript](#vanilla-javascript)
Expand Down Expand Up @@ -150,11 +149,11 @@ var helper = algoliasearchHelper(client, 'indexName' /*, parameters*/);

### Helper lifecycle

1. modify the parameters of the search (usually through user interactions)<br/> ` helper.setQuery('iphone').addFacetRefinement('category', 'phone') `
1. modify the parameters of the search (usually through user interactions)<br/> `helper.setQuery('iphone').addFacetRefinement('category', 'phone')`

2. trigger the search (after all the modification have been applied)<br/> ` helper.search() `
2. trigger the search (after all the modification have been applied)<br/> `helper.search()`

3. read the results (with the event "result" handler) and update the UI with the results<br/> ` helper.on('result', function(event) { updateUI(event.results); }); `
3. read the results (with the event "result" handler) and update the UI with the results<br/> `helper.on('result', function(event) { updateUI(event.results); });`

4. go back to 1

Expand Down
Loading

0 comments on commit ca59c6d

Please sign in to comment.