How to customize the Azion Console interface using the Console Kit
Azion Console Kit allows you to craft a custom Azion interface to fit your business needs. In this guide, you’ll learn how to make some simple visual changes to the Azion Console.
Adding an interface component and creating a route function for navigation
In this example, you’ll add a new user interface (UI) component to a list view to draw attention to an important step of a workflow process for Console users.
You’ll add the InlineMessage
and PrimeButton
components to the Edge Applications list view to alert your users that they must create a domain to see edge applications online, with a button action that directs users to the create-domain
route. To do so:
- Open the Console Kit project in your IDE.
- Run
azion dev
to initialize a local development server. - In the
src/views
folder, locate the Edge Application list view and modify the code as follows:
- In the constant declaration section of the code, create the
router
const to reference the router function:
- Create the
navigateToDomains
function that will be executed when the user clicks thePrimeButton
before closing the<script>
tag:
- Now add the elements to the layout of the list view inside the
<template>
tag:
- On the browser, access the localhost address and navigate to the Edge Applications page. You should see the
InlineMessage
element with aPrimeButton
under the heading. - After you’re done, run
azion deploy
to launch the changes to the edge.