Skip to content

Commit 15b75a9

Browse files
authored
Merge pull request #441 from FgForrest/dev
Fixes release
2 parents a175ec7 + e10f6f7 commit 15b75a9

File tree

123 files changed

+4670
-2876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+4670
-2876
lines changed

documentation/blog/en/07-advanced-features-on-developers-portal.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ different formats. At the same time, it does not make sense to display all forma
101101
be interested only in the variant he intends to use during integration. However, this posed a challenge due to various
102102
obstacles, such as page indexing and print support.
103103

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

107107
##### Markup
108108

109109
```md
110-
<LanguageSpecific to="evitaql,java">
110+
<LS to="e,j">
111111
// content specific to Java and EvitaQL
112-
</LanguageSpecific>
112+
</LS>
113113
```
114114

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

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

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

185185
```md
186-
<LanguageSpecific to="evitaql,java">
186+
<LS to="e,j">
187187

188188
---
189189
> This block of text is specific to `evitaql` programming language.
190190
>
191191
> Go ahead and try to switch.
192192

193193
---
194-
</LanguageSpecific>
194+
</LS>
195195
```
196196

197197
##### Result
198198

199-
<LanguageSpecific to="evitaql,java">
199+
<LS to="e,j">
200200

201201
---
202202
> This block of text is specific to `evitaql` and `java` programming language.
203203
>
204204
> Go ahead and try to switch.
205205
206206
---
207-
</LanguageSpecific>
207+
</LS>
208208

209-
<LanguageSpecific to="rest">
209+
<LS to="r">
210210

211211
---
212212
> This block of text is specific to `Rest` programming language.
213213
>
214214
> Go ahead and try to switch.
215215
216216
---
217-
</LanguageSpecific>
217+
</LS>
218218

219-
<LanguageSpecific to="graphql">
219+
<LS to="g">
220220

221221
---
222222
> This block of text is specific to `GraphQL` programming language.
223223
>
224224
> Go ahead and try to switch.
225225
226226
---
227-
</LanguageSpecific>
227+
</LS>
228228

229229

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

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

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

245245
## What's next
246246

documentation/blog/en/12-evitalab-after-6-months.md

+353
Large diffs are not rendered by default.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

documentation/publishing/root.cz/03-query-basics/03-query-basics.html

+1,265
Large diffs are not rendered by default.
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
query(
2+
collection("Product"),
3+
filterBy(
4+
entityPrimaryKeyInSet(103885)
5+
),
6+
require(
7+
entityFetch(
8+
referenceContentWithAttributes(
9+
"parameterValues",
10+
filterBy(
11+
entityHaving(
12+
referenceHaving(
13+
"parameter",
14+
entityHaving(
15+
attributeContains("code", "r")
16+
)
17+
)
18+
)
19+
),
20+
orderBy(
21+
entityProperty(
22+
attributeNatural("code", DESC)
23+
)
24+
),
25+
entityFetch(
26+
attributeContent("code"),
27+
referenceContentWithAttributes(
28+
"parameter",
29+
entityFetch(
30+
attributeContent("code")
31+
)
32+
)
33+
)
34+
)
35+
)
36+
)
37+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
query(
2+
collection("Product"),
3+
filterBy(
4+
entityPrimaryKeyInSet(103885),
5+
entityLocaleEquals("cs")
6+
),
7+
require(
8+
entityFetch(
9+
attributeContent("name"),
10+
referenceContentWithAttributes(
11+
"parameterValues",
12+
entityFetch(
13+
attributeContent("code", "name"),
14+
referenceContentWithAttributes(
15+
"parameter",
16+
entityFetch(
17+
attributeContent("code", "name")
18+
)
19+
)
20+
)
21+
)
22+
)
23+
)
24+
)
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
query(
2+
collection("Product"),
3+
filterBy(
4+
attributeEquals("status", "ACTIVE"),
5+
userFilter(
6+
facetHaving(
7+
"groups",
8+
entityHaving(
9+
attributeEquals("code", "sale")
10+
)
11+
)
12+
)
13+
),
14+
require(
15+
facetSummary(
16+
IMPACT,
17+
entityFetch(
18+
attributeContent("code")
19+
),
20+
entityGroupFetch(
21+
attributeContent("code")
22+
)
23+
)
24+
)
25+
)
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
query(
2+
collection("Product"),
3+
filterBy(
4+
attributeEquals("status", "ACTIVE"),
5+
userFilter(
6+
facetHaving(
7+
"groups",
8+
entityHaving(
9+
attributeEquals("code", "sale")
10+
)
11+
)
12+
)
13+
),
14+
require(
15+
facetSummaryOfReference(
16+
"parameterValues",
17+
IMPACT,
18+
filterGroupBy(
19+
attributeEquals("isVisibleInFilter", true)
20+
),
21+
entityFetch(
22+
attributeContent("code")
23+
),
24+
entityGroupFetch(
25+
attributeContent("code")
26+
)
27+
)
28+
)
29+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
query(
2+
collection("Product"),
3+
filterBy(
4+
attributeEquals("status", "ACTIVE"),
5+
userFilter(
6+
facetHaving(
7+
"groups",
8+
entityHaving(
9+
attributeEquals("code", "sale")
10+
)
11+
)
12+
)
13+
),
14+
require(
15+
facetSummary(
16+
COUNTS,
17+
entityFetch(
18+
attributeContent("code")
19+
),
20+
entityGroupFetch(
21+
attributeContent("code")
22+
)
23+
)
24+
)
25+
)
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
query(
2+
collection("Product"),
3+
require(
4+
hierarchyOfReference(
5+
"categories",
6+
fromRoot(
7+
"megaMenu",
8+
entityFetch(attributeContent("code")),
9+
stopAt(level(2))
10+
)
11+
)
12+
)
13+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
query(
2+
collection("Product"),
3+
filterBy(
4+
hierarchyWithin(
5+
"categories",
6+
attributeEquals("code", "audio")
7+
)
8+
),
9+
require(
10+
hierarchyOfReference(
11+
"categories",
12+
fromRoot(
13+
"topLevel",
14+
entityFetch(attributeContent("code")),
15+
stopAt(level(1))
16+
),
17+
parents(
18+
"parents",
19+
entityFetch(attributeContent("code"))
20+
),
21+
siblings(
22+
"siblings",
23+
entityFetch(attributeContent("code"))
24+
)
25+
)
26+
)
27+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
query(
2+
collection("Product"),
3+
require(
4+
hierarchyOfReference(
5+
"categories",
6+
fromRoot(
7+
"megaMenuWithCounts",
8+
entityFetch(attributeContent("code")),
9+
stopAt(level(2)),
10+
statistics(
11+
CHILDREN_COUNT,
12+
QUERIED_ENTITY_COUNT
13+
)
14+
)
15+
)
16+
)
17+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
query(
2+
collection("Product"),
3+
filterBy(
4+
hierarchyWithin(
5+
"categories",
6+
attributeEquals("code", "accessories"),
7+
excluding(
8+
attributeEquals("code", "wireless-headphones")
9+
)
10+
)
11+
),
12+
require(
13+
entityFetch(
14+
attributeContent("code")
15+
)
16+
)
17+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
query(
2+
collection("Product"),
3+
filterBy(
4+
hierarchyWithin(
5+
"categories",
6+
attributeEquals("code", "accessories"),
7+
having(
8+
or(
9+
attributeIsNull("validity"),
10+
attributeInRangeNow("validity")
11+
)
12+
)
13+
)
14+
),
15+
require(
16+
entityFetch(
17+
attributeContent("code")
18+
)
19+
)
20+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
query(
2+
collection("Product"),
3+
filterBy(
4+
hierarchyWithin(
5+
"categories",
6+
attributeEquals("code", "accessories")
7+
)
8+
),
9+
require(
10+
entityFetch(
11+
attributeContent("code")
12+
)
13+
)
14+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
query(
2+
collection("Product"),
3+
filterBy(
4+
priceValidInNow(),
5+
priceInPriceLists("basic"),
6+
priceInCurrency("EUR"),
7+
userFilter(
8+
priceBetween(100, 2000),
9+
attributeBetween(
10+
"battery-capacity", 2000, 6000
11+
)
12+
)
13+
),
14+
require(
15+
priceHistogram(30),
16+
attributeHistogram(30, "battery-capacity")
17+
)
18+
)
Loading
Loading

0 commit comments

Comments
 (0)