Skip to content

Latest commit

 

History

History
46 lines (43 loc) · 2.08 KB

File metadata and controls

46 lines (43 loc) · 2.08 KB

UI

License Stable Downloads Vue JavaScript SCSS npm Issues Merge Requests

Description

Application shell and core layout services for Enso UI.

Installation

Install the package:

yarn add @enso-ui/ui

Features

  • exports the application root shell used by Enso UI apps
  • provides route mapping, HTTP, i18n, toastr, and error handling through Vue inject
  • switches between auth, home, and default layouts based on app state
  • includes an ESM-safe event bus with $on, $once, $off, and $emit
  • normalizes shared Bulma styles, including compact .tag.is-small sizing
  • adds the shell-owned System > Logins route and page for the backend login history table

Usage

<script setup>
import Root from '@enso-ui/ui/bulma';
</script>

<Root v-slot="{ home, isAuth }">
    <router-view v-if="isAuth || home" />
</Root>

API

Root

Application root shell that provides the shared Enso providers, route mapper, global error handler, and layout switching logic.

Depends On

  • No additional Enso UI dependencies.

Contributions

are welcome. Pull requests are great, but issues are good too. Thank you to all the people who already contributed to Enso!

License

MIT