-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
480 changed files
with
9,158 additions
and
559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
--- | ||
id: app-brand-logo | ||
title: AppBrandLogo | ||
hide_table_of_contents: false | ||
--- | ||
|
||
export const Bullet = () => ( | ||
<> | ||
<span | ||
style={{ | ||
fontWeight: "normal", | ||
fontSize: ".5em", | ||
color: "var(--ifm-color-secondary-darkest)", | ||
}} | ||
> | ||
● | ||
</span> | ||
</> | ||
); | ||
|
||
export const SpecifiedBy = (props) => ( | ||
<> | ||
Specification | ||
<a | ||
className="link" | ||
style={{ fontSize: "1.5em", paddingLeft: "4px" }} | ||
target="\_blank" | ||
href={props.url} | ||
title={"Specified by " + props.url} | ||
> | ||
⎘ | ||
</a> | ||
</> | ||
); | ||
|
||
export const Badge = (props) => ( | ||
<> | ||
<span className={"badge badge--" + props.class}>{props.text}</span> | ||
</> | ||
); | ||
|
||
import { useState } from "react"; | ||
|
||
export const Details = ({ | ||
dataOpen, | ||
dataClose, | ||
children, | ||
startOpen = false, | ||
}) => { | ||
const [open, setOpen] = useState(startOpen); | ||
return ( | ||
<details | ||
{...(open ? { open: true } : {})} | ||
className="details" | ||
style={{ | ||
border: "none", | ||
boxShadow: "none", | ||
background: "var(--ifm-background-color)", | ||
}} | ||
> | ||
<summary | ||
onClick={(e) => { | ||
e.preventDefault(); | ||
setOpen((open) => !open); | ||
}} | ||
style={{ listStyle: "none" }} | ||
> | ||
{open ? dataOpen : dataClose} | ||
</summary> | ||
{open && children} | ||
</details> | ||
); | ||
}; | ||
|
||
Represents the app's brand logo data. | ||
|
||
<Badge text="Added in Saleor 3.14" class="secondary margin-bottom--sm" /> | ||
|
||
<FeaturePreview /> | ||
|
||
```graphql | ||
type AppBrandLogo { | ||
default(size: Int, format: IconThumbnailFormatEnum = ORIGINAL): String! | ||
} | ||
``` | ||
|
||
### Fields | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>AppBrandLogo.<b>default</b></code>](#)<Bullet />[`String!`](../../../api-reference/miscellaneous/scalars/string) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="scalar"/> | ||
|
||
> URL to the default logo image. | ||
> | ||
> <Badge text="Added in Saleor 3.14" class="secondary margin-bottom--sm" /> | ||
> | ||
> <FeaturePreview /> | ||
> | ||
> ##### [<code style={{ fontWeight: 'normal' }}>AppBrandLogo.default.<b>size</b></code>](#)<Bullet />[`Int`](../../../api-reference/miscellaneous/scalars/int) <Badge class="secondary" text="scalar"/> | ||
> | ||
> Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended). | ||
|
||
##### [<code style={{ fontWeight: 'normal' }}>AppBrandLogo.default.<b>format</b></code>](#)<Bullet />[`IconThumbnailFormatEnum`](../../../api-reference/miscellaneous/enums/icon-thumbnail-format-enum) <Badge class="secondary" text="enum"/> | ||
|
||
> The format of the image. When not provided, format of the original image will be used. | ||
> | ||
> <Badge text="Added in Saleor 3.14" class="secondary margin-bottom--sm" /> | ||
> | ||
> <FeaturePreview /> | ||
|
||
### Member of | ||
|
||
[`AppBrand`](../../../api-reference/apps/objects/app-brand) <Badge class="secondary" text="object"/> | ||
|
||
import FeaturePreview from "@site/components/FeaturePreview"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
--- | ||
id: app-brand | ||
title: AppBrand | ||
hide_table_of_contents: false | ||
--- | ||
|
||
export const Bullet = () => ( | ||
<> | ||
<span | ||
style={{ | ||
fontWeight: "normal", | ||
fontSize: ".5em", | ||
color: "var(--ifm-color-secondary-darkest)", | ||
}} | ||
> | ||
● | ||
</span> | ||
</> | ||
); | ||
|
||
export const SpecifiedBy = (props) => ( | ||
<> | ||
Specification | ||
<a | ||
className="link" | ||
style={{ fontSize: "1.5em", paddingLeft: "4px" }} | ||
target="\_blank" | ||
href={props.url} | ||
title={"Specified by " + props.url} | ||
> | ||
⎘ | ||
</a> | ||
</> | ||
); | ||
|
||
export const Badge = (props) => ( | ||
<> | ||
<span className={"badge badge--" + props.class}>{props.text}</span> | ||
</> | ||
); | ||
|
||
import { useState } from "react"; | ||
|
||
export const Details = ({ | ||
dataOpen, | ||
dataClose, | ||
children, | ||
startOpen = false, | ||
}) => { | ||
const [open, setOpen] = useState(startOpen); | ||
return ( | ||
<details | ||
{...(open ? { open: true } : {})} | ||
className="details" | ||
style={{ | ||
border: "none", | ||
boxShadow: "none", | ||
background: "var(--ifm-background-color)", | ||
}} | ||
> | ||
<summary | ||
onClick={(e) => { | ||
e.preventDefault(); | ||
setOpen((open) => !open); | ||
}} | ||
style={{ listStyle: "none" }} | ||
> | ||
{open ? dataOpen : dataClose} | ||
</summary> | ||
{open && children} | ||
</details> | ||
); | ||
}; | ||
|
||
Represents the app's brand data. | ||
|
||
<Badge text="Added in Saleor 3.14" class="secondary margin-bottom--sm" /> | ||
|
||
<FeaturePreview /> | ||
|
||
```graphql | ||
type AppBrand { | ||
logo: AppBrandLogo! | ||
} | ||
``` | ||
|
||
### Fields | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>AppBrand.<b>logo</b></code>](#)<Bullet />[`AppBrandLogo!`](../../../api-reference/apps/objects/app-brand-logo) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="object"/> | ||
|
||
> App's logos details. | ||
> | ||
> <Badge text="Added in Saleor 3.14" class="secondary margin-bottom--sm" /> | ||
> | ||
> <FeaturePreview /> | ||
|
||
### Member of | ||
|
||
[`App`](../../../api-reference/apps/objects/app) <Badge class="secondary" text="object"/><Bullet />[`AppInstallation`](../../../api-reference/apps/objects/app-installation) <Badge class="secondary" text="object"/> | ||
|
||
import FeaturePreview from "@site/components/FeaturePreview"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
e2c69cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
saleor-docs – ./
saleor-docs-saleorcommerce.vercel.app
saleor-docs-git-main-saleorcommerce.vercel.app
docs.saleor.io
saleor-docs.vercel.app