npm.io
7.1.58 • Published 2 weeks ago

@enso-ui/ui

Licence
MIT
Version
7.1.58
Deps
1
Size
139 kB
Vulns
0
Weekly
0
Stars
9

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