Skip to content

Commit

Permalink
Merge pull request #441 from FgForrest/dev
Browse files Browse the repository at this point in the history
Fixes release
  • Loading branch information
lukashornych authored Jan 29, 2024
2 parents a175ec7 + e10f6f7 commit 15b75a9
Show file tree
Hide file tree
Showing 123 changed files with 4,670 additions and 2,876 deletions.
28 changes: 14 additions & 14 deletions documentation/blog/en/07-advanced-features-on-developers-portal.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ different formats. At the same time, it does not make sense to display all forma
be interested only in the variant he intends to use during integration. However, this posed a challenge due to various
obstacles, such as page indexing and print support.

It all started with the `<LanguageSpecific />` component. I believe that from its name and markup, you can already
It all started with the `<LS />` component. I believe that from its name and markup, you can already
understand the purpose of this component.

##### Markup

```md
<LanguageSpecific to="evitaql,java">
<LS to="e,j">
// content specific to Java and EvitaQL
</LanguageSpecific>
</LS>
```

Now, let's move on to the next step, which involves creating a user-friendly switch to allow users to easily switch
Expand Down Expand Up @@ -171,7 +171,7 @@ parameter `?codelang={preferredLanguage}`. This will preserve the correct preset
link to the clipboard and sends it to someone else. This person will then get the same page variant as the person who
sent the link.

The component is now aware of preferred language. In case of `<LanguageSpecific />` component, show the actual content
The component is now aware of preferred language. In case of `<LS />` component, show the actual content
depending on your preferred programming language.

<Note type="info">
Expand All @@ -183,48 +183,48 @@ On smaller screens, you'll display the preferred language switch after clicking
##### Markup

```md
<LanguageSpecific to="evitaql,java">
<LS to="e,j">

---
> This block of text is specific to `evitaql` programming language.
>
> Go ahead and try to switch.

---
</LanguageSpecific>
</LS>
```

##### Result

<LanguageSpecific to="evitaql,java">
<LS to="e,j">

---
> This block of text is specific to `evitaql` and `java` programming language.
>
> Go ahead and try to switch.
---
</LanguageSpecific>
</LS>

<LanguageSpecific to="rest">
<LS to="r">

---
> This block of text is specific to `Rest` programming language.
>
> Go ahead and try to switch.
---
</LanguageSpecific>
</LS>

<LanguageSpecific to="graphql">
<LS to="g">

---
> This block of text is specific to `GraphQL` programming language.
>
> Go ahead and try to switch.
---
</LanguageSpecific>
</LS>


Other Custom component aware of the user preferred language is [above shown `<SourceCodeTabs/>`](#result-1).
Expand All @@ -236,11 +236,11 @@ prioritizing visual accessibility, even if it leads to layout shifting. Moreover
document, our component render function incorporates supplementary elements to enhance the visibility of this
functionality.

So when you try to print this page, you'll see that the `<LanguageSpecific />` examples shown above are available and
So when you try to print this page, you'll see that the `<LS />` examples shown above are available and
ready to be printed. The print preview is similar to what you see on the Github itself, where all the content is visible
regardless.

![`<LanguageSpecific />` component print example](assets/images/07-print-example.png "`Custom <LanguageSpecific />` component print example.")
![`<LS />` component print example](assets/images/07-print-example.png "`Custom <LS />` component print example.")

## What's next

Expand Down
353 changes: 353 additions & 0 deletions documentation/blog/en/12-evitalab-after-6-months.md

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,265 changes: 1,265 additions & 0 deletions documentation/publishing/root.cz/03-query-basics/03-query-basics.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
query(
collection("Product"),
filterBy(
entityPrimaryKeyInSet(103885)
),
require(
entityFetch(
referenceContentWithAttributes(
"parameterValues",
filterBy(
entityHaving(
referenceHaving(
"parameter",
entityHaving(
attributeContains("code", "r")
)
)
)
),
orderBy(
entityProperty(
attributeNatural("code", DESC)
)
),
entityFetch(
attributeContent("code"),
referenceContentWithAttributes(
"parameter",
entityFetch(
attributeContent("code")
)
)
)
)
)
)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
query(
collection("Product"),
filterBy(
entityPrimaryKeyInSet(103885),
entityLocaleEquals("cs")
),
require(
entityFetch(
attributeContent("name"),
referenceContentWithAttributes(
"parameterValues",
entityFetch(
attributeContent("code", "name"),
referenceContentWithAttributes(
"parameter",
entityFetch(
attributeContent("code", "name")
)
)
)
)
)
)
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
query(
collection("Product"),
filterBy(
attributeEquals("status", "ACTIVE"),
userFilter(
facetHaving(
"groups",
entityHaving(
attributeEquals("code", "sale")
)
)
)
),
require(
facetSummary(
IMPACT,
entityFetch(
attributeContent("code")
),
entityGroupFetch(
attributeContent("code")
)
)
)
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
query(
collection("Product"),
filterBy(
attributeEquals("status", "ACTIVE"),
userFilter(
facetHaving(
"groups",
entityHaving(
attributeEquals("code", "sale")
)
)
)
),
require(
facetSummaryOfReference(
"parameterValues",
IMPACT,
filterGroupBy(
attributeEquals("isVisibleInFilter", true)
),
entityFetch(
attributeContent("code")
),
entityGroupFetch(
attributeContent("code")
)
)
)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
query(
collection("Product"),
filterBy(
attributeEquals("status", "ACTIVE"),
userFilter(
facetHaving(
"groups",
entityHaving(
attributeEquals("code", "sale")
)
)
)
),
require(
facetSummary(
COUNTS,
entityFetch(
attributeContent("code")
),
entityGroupFetch(
attributeContent("code")
)
)
)
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
query(
collection("Product"),
require(
hierarchyOfReference(
"categories",
fromRoot(
"megaMenu",
entityFetch(attributeContent("code")),
stopAt(level(2))
)
)
)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
query(
collection("Product"),
filterBy(
hierarchyWithin(
"categories",
attributeEquals("code", "audio")
)
),
require(
hierarchyOfReference(
"categories",
fromRoot(
"topLevel",
entityFetch(attributeContent("code")),
stopAt(level(1))
),
parents(
"parents",
entityFetch(attributeContent("code"))
),
siblings(
"siblings",
entityFetch(attributeContent("code"))
)
)
)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
query(
collection("Product"),
require(
hierarchyOfReference(
"categories",
fromRoot(
"megaMenuWithCounts",
entityFetch(attributeContent("code")),
stopAt(level(2)),
statistics(
CHILDREN_COUNT,
QUERIED_ENTITY_COUNT
)
)
)
)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
query(
collection("Product"),
filterBy(
hierarchyWithin(
"categories",
attributeEquals("code", "accessories"),
excluding(
attributeEquals("code", "wireless-headphones")
)
)
),
require(
entityFetch(
attributeContent("code")
)
)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
query(
collection("Product"),
filterBy(
hierarchyWithin(
"categories",
attributeEquals("code", "accessories"),
having(
or(
attributeIsNull("validity"),
attributeInRangeNow("validity")
)
)
)
),
require(
entityFetch(
attributeContent("code")
)
)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
query(
collection("Product"),
filterBy(
hierarchyWithin(
"categories",
attributeEquals("code", "accessories")
)
),
require(
entityFetch(
attributeContent("code")
)
)
)
18 changes: 18 additions & 0 deletions documentation/publishing/root.cz/03-query-basics/histogram.evitaql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
query(
collection("Product"),
filterBy(
priceValidInNow(),
priceInPriceLists("basic"),
priceInCurrency("EUR"),
userFilter(
priceBetween(100, 2000),
attributeBetween(
"battery-capacity", 2000, 6000
)
)
),
require(
priceHistogram(30),
attributeHistogram(30, "battery-capacity")
)
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 15b75a9

Please sign in to comment.