Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
VaiTon committed Jul 31, 2024
1 parent 46f6464 commit fee340f
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

# Pull requests that update GitHub Actions code. If you navigate to the folder, you will have a README of what it does
GitHub Actions:
- changed-files:
- any-glob-to-any-file: '.github/**/*'
- changed-files:
- any-glob-to-any-file: '.github/**/*'
11 changes: 5 additions & 6 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@

name: Labeler
on:
- pull_request_target
- pull_request_target

jobs:
label:

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/[email protected]
if: github.event.pull_request.head.repo.full_name == github.repository
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/[email protected]
if: github.event.pull_request.head.repo.full_name == github.repository
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
2 changes: 1 addition & 1 deletion src/lib/knowledgepanels/Panels.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<div class="mt-3 border-b-2 border-dashed border-secondary"></div>

<div class="my-4 flex flex-col md:flex-row justify-center gap-4" id={summaryId}>
<div class="my-4 flex flex-col justify-center gap-4 md:flex-row" id={summaryId}>
{#each panelsArray as [panelKey, panel]}
{#if panel.type === 'card'}
<a class="btn btn-secondary text-lg" href={'#' + panelKey}>
Expand Down
10 changes: 5 additions & 5 deletions src/lib/translations/en/common.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"nutriscore": "Nutri-Score",
"ecoscore": "Eco-Score",
"nova": "Nova - Ultra-processing levels",
"settings": "Settings",
"folksonomy": "Folksonomy"
"nutriscore": "Nutri-Score",
"ecoscore": "Eco-Score",
"nova": "Nova - Ultra-processing levels",
"settings": "Settings",
"folksonomy": "Folksonomy"
}
6 changes: 3 additions & 3 deletions src/lib/translations/en/home.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"welcome": "Welcome to",
"intro_1": "<strong>OpenFoodFacts Explorer</strong> is a tool to explore the OpenFoodFacts database.",
"intro_2": "You can enter a product code in the search bar above to get started or click on one of the products below."
"welcome": "Welcome to",
"intro_1": "<strong>OpenFoodFacts Explorer</strong> is a tool to explore the OpenFoodFacts database.",
"intro_2": "You can enter a product code in the search bar above to get started or click on one of the products below."
}
10 changes: 5 additions & 5 deletions src/lib/translations/it/common.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"nutriscore": "Nutri-Score",
"ecoscore": "Eco-Score",
"nova": "Nova - Ultra-processing levels",
"settings": "Impostazioni",
"folksonomy": "Folksonomy"
"nutriscore": "Nutri-Score",
"ecoscore": "Eco-Score",
"nova": "Nova - Ultra-processing levels",
"settings": "Impostazioni",
"folksonomy": "Folksonomy"
}
6 changes: 3 additions & 3 deletions src/lib/translations/it/home.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"welcome": "Benvenuto in",
"intro_1": "<strong>OpenFoodFacts Explorer</strong> is a tool to explore the OpenFoodFacts database.",
"intro_2": "Puoi inserire un codice prodotto nella barra di ricerca sopra per iniziare o fare clic su uno dei prodotti sottostanti."
"welcome": "Benvenuto in",
"intro_1": "<strong>OpenFoodFacts Explorer</strong> is a tool to explore the OpenFoodFacts database.",
"intro_2": "Puoi inserire un codice prodotto nella barra di ricerca sopra per iniziare o fare clic su uno dei prodotti sottostanti."
}
2 changes: 1 addition & 1 deletion src/routes/products/[barcode]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
</span>
</div>

<div class="flex flex-grow justify-center ">
<div class="flex flex-grow justify-center">
<ImageButton src={product.image_front_url} alt={product.product_name} />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/products/[barcode]/GS1Country.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
{ name: 'Paraguay', prefixes: [784], code: 'PY' },
{ name: 'Ecuador', prefixes: [786], code: 'EC' },
{ name: 'Brazil', prefixes: [789, 790], code: 'BR' },
{ name: 'Italy, San Marino, and Vatican City', prefixes: [80, 81, 82, 83], code: 'IT-SM-VA'},
{ name: 'Italy, San Marino, and Vatican City', prefixes: [80, 81, 82, 83], code: 'IT-SM-VA' },
{ name: 'Spain, Andorra', prefixes: [84], code: 'ES-AD' },
{ name: 'Cuba', prefixes: [850], code: 'CU' },
{ name: 'Slovakia', prefixes: [858], code: 'SK' },
Expand Down
6 changes: 4 additions & 2 deletions src/routes/taxo/[taxo]/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<a class="link" href={`/taxo/${taxonomy}/${parentId}`}>
{parentNode == null
? parentId
: getOrDefault(parentNode.name, $preferences.lang) ?? parentId}
: (getOrDefault(parentNode.name, $preferences.lang) ?? parentId)}
</a>
</li>
{/each}
Expand All @@ -61,7 +61,9 @@
{@const childNode = data.fullTaxonomy[childId]}
<li>
<a class="link" href={`/taxo/${taxonomy}/${childId}`}>
{childNode == null ? childId : getOrDefault(childNode.name, $preferences.lang) ?? childId}
{childNode == null
? childId
: (getOrDefault(childNode.name, $preferences.lang) ?? childId)}
</a>
</li>
{/each}
Expand Down

0 comments on commit fee340f

Please sign in to comment.