SWAN provides these JavaScript constants so that you can access various SWAN values in your own application:
Domains Constants for a map and list of /swan proxy available domains.
The preview has been updated.
Compact mode < Accordion >
< BasicCollapsible
collapsibleId = " SWAN_BASE_URL_MAP "
heading = " SWAN_BASE_URL_MAP "
>
< pre > { JSON . stringify ( SWAN_BASE_URL_MAP , null , 2 ) } </ pre >
</ BasicCollapsible >
< BasicCollapsible
collapsibleId = " SWAN_BASE_URL_LIST "
heading = " SWAN_BASE_URL_LIST "
>
< pre > { JSON . stringify ( SWAN_BASE_URL_LIST , null , 2 ) } </ pre >
</ BasicCollapsible >
</ Accordion >
Root When using SWAN, root classnames to be used at the top of the DOM tree to make your page SWAN style effective. (Generally taken care by the SwanProvider)
The preview has been updated.
Compact mode < Accordion >
< BasicCollapsible collapsibleId = " ROOT_CLASSNAMES " heading = " ROOT_CLASSNAMES " >
< pre > { JSON . stringify ( ROOT_CLASSNAMES , null , 2 ) } </ pre >
</ BasicCollapsible >
</ Accordion >
Paths The preview has been updated.
Compact mode < Accordion >
< BasicCollapsible
collapsibleId = " SWAN_PUBLIC_ASSET_FOLDER "
heading = " SWAN_PUBLIC_ASSET_FOLDER "
>
< pre > { SWAN_PUBLIC_ASSET_FOLDER } </ pre >
</ BasicCollapsible >
< BasicCollapsible collapsibleId = " SWAN_VERSION " heading = " SWAN_VERSION " >
< pre > { SWAN_VERSION } </ pre >
</ BasicCollapsible >
< BasicCollapsible
collapsibleId = " SWAN_HASHED_FOLDER "
heading = " SWAN_HASHED_FOLDER "
>
< pre > { SWAN_HASHED_FOLDER } </ pre >
</ BasicCollapsible >
< BasicCollapsible
collapsibleId = " SWAN_VERSIONED_FOLDER "
heading = " SWAN_VERSIONED_FOLDER "
>
< pre > { SWAN_VERSIONED_FOLDER } </ pre >
</ BasicCollapsible >
</ Accordion >