Skip to content

Using built-in components

Here, we offer a comprehensive description of the various components shipped with the theme.

HomeFooter

Description

This component renders the footer displayed on the home page.

It always displays the Kalisio sponsor logo and can optionally display trusted organization logos.

Trusted organizations are configured in ThemeConfig:

js
trustLogos: [
  {
    imageLink: 'https://example.com/logo.png',
    link: 'https://example.com'
  }
]

Each entry supports:

NameDescription
imageLinkURL of the trusted organization logo
linkURL opened when clicking the logo

When trustLogos is defined and contains at least one entry, a Trusted by section is displayed above the Sponsored by section.

INFO

The Kalisio logo automatically adapts to light and dark modes.

Example

Within ThemeConfig:

js
trustLogos: [
  {
    imageLink: 'https://example.com/logo.png',
    link: 'https://example.com'
  }
]

Then use the component in a Markdown page:

md
<HomeFooter />

Image

Description

This component renders an image with support for dark mode.

Props

NameDescriptionDefault
srcImage displayed in light mode''
darkSrcImage displayed in dark mode''

Example

md
<Image
  src="https://kalisio.github.io/kalisioscope/kalisio/kalisio-logo-light-x256.png"
  darkSrc="https://kalisio.github.io/kalisioscope/kalisio/kalisio-logo-dark-x256.png"
/>

Description

This component renders the Kalisio logo using the Image component and automatically adapts it to light and dark modes.

Example

md
<div style="width: 256px;">
 <KalisioLogo  />
</div>

KalisioMaps

Description

This component renders an instance of Kano within an iframe.

To automatically authenticate the embedded application, provide a JWT token in the maps section of ThemeConfig:

js
maps: {
  jwt: '<TOKEN>'
}

Example

md
<KalisioMaps />

TemplateAnchor

Description

This component renders a link whose href is interpolated from a context that can include:

  • a domain, for querying an API depending on the configured flavor;
  • a time, for querying an API at a specific time;
  • a jwt, for querying an API that requires authentication.

Props

NameDescriptionDefault
textText to displayRequired
hrefTemplateURL template to interpolateRequired
domainPathPath used to retrieve the domain value from ThemeConfigdomain
jwtPathPath used to retrieve the jwt value from ThemeConfigjwt

The corresponding values must be defined in ThemeConfig:

js
domain: '<DOMAIN>',
jwt: '<TOKEN>'

TIP

Use domainPath and jwtPath when the domain and jwt values are declared in another section of ThemeConfig.

Example

md
<TemplateAnchor
  text="Open Kano"
  href-template="<%= domain %>"
  domain-path="maps.url"
/>
Open Kano

Description

This component renders a link to the application configured in ThemeConfig.

Props

NameDescriptionDefault
textText to display''
pathApplication route appended to the base application URL''
paramsQuery parameters appended to the URL{}

The application base URL must be defined in ThemeConfig:

js
appUrl: 'https://example.com/'

By default, the component adds the tour=true query parameter unless a tour parameter is explicitly provided.

Example

md
<TourLink
   text="Open application"
   path="map"
   :params="{ project: 'demo' }"
/>

The generated link is opened in a new browser tab.