common
The following sections describe the module: common.
Interfaces
Interface: commonConfig
Properties
baseUrl
• baseUrl: string
token
• token: string
Variables
themes
• Const
themes: string
[]
Functions
concatUrls
▸ concatUrls(...urls
): string
Parameters
Name | Type |
---|---|
|
|
Returns
string
fetchPluginsInfo
▸ fetchPluginsInfo(baseUrl
, token
): Promise
<Response
>
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Promise
<Response
>
getVersionAndTheme
▸ getVersionAndTheme(baseUrl
, token
, key
): Promise
<{ theme
: any
= value.data.me.themeName; version
: any
}>
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<{ theme
: any
= value.data.me.themeName; version
: any
}>
loadCss
▸ loadCss(href
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
|
|
Returns
Promise
<unknown
>
loadJs
▸ loadJs(src
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
|
|
Returns
Promise
<unknown
>