Skip to content

enso-ui/currencies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

115 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currencies

License Stable Downloads Vue JavaScript SCSS npm Issues Merge Requests

Description

Currencies and exchange-rate administration pages for Enso UI.

Installation

Install the package:

yarn add @enso-ui/currencies

This package is also available through the full enso-ui workspace bundle.

Features

  • ships the currencies and exchange-rates administration page modules
  • exports the Conversion service used to call the backend conversion endpoint
  • includes a reusable Currencies widget and the Pinia currency store helpers
  • ships the route modules for currencies and exchange-rates list/create/edit flows

Usage

import Conversion from '@enso-ui/currencies/src/services/Conversion';

const result = await new Conversion()
    .from(1)
    .to(2)
    .amount(100)
    .date('2026-04-20')
    .handle();

API

CurrenciesIndex

Currencies table page.

Import: @enso-ui/currencies/src/bulma/pages/currencies/Index.vue

CurrenciesCreate

Create page for a currency record.

Import: @enso-ui/currencies/src/bulma/pages/currencies/Create.vue

CurrenciesEdit

Edit page for an existing currency record.

Import: @enso-ui/currencies/src/bulma/pages/currencies/Edit.vue

ExchangeRatesIndex

Exchange-rates table page.

Import: @enso-ui/currencies/src/bulma/pages/exchangeRates/Index.vue

ExchangeRatesCreate

Create page for an exchange-rate record.

Import: @enso-ui/currencies/src/bulma/pages/exchangeRates/Create.vue

ExchangeRatesEdit

Edit page for an exchange-rate record.

Import: @enso-ui/currencies/src/bulma/pages/exchangeRates/Edit.vue

Conversion

Fluent service object for currency conversion requests.

Import: @enso-ui/currencies/src/services/Conversion.js

Methods:

  • from(id)
  • to(id)
  • amount(value)
  • date(value)
  • handle()

Routes

administration/currencies

Route group:

  • administration.currencies.index
  • administration.currencies.create
  • administration.currencies.edit

Pages:

  • src/bulma/pages/currencies/Index.vue
  • src/bulma/pages/currencies/Create.vue
  • src/bulma/pages/currencies/Edit.vue

administration/exchangeRates

Route group:

  • administration.exchangeRates.index
  • administration.exchangeRates.create
  • administration.exchangeRates.edit

Pages:

  • src/bulma/pages/exchangeRates/Index.vue
  • src/bulma/pages/exchangeRates/Create.vue
  • src/bulma/pages/exchangeRates/Edit.vue

The package ships two administration route groups: one for currencies and one for exchange rates.

Companion Backend Package

The backend package provides the tables, forms, and conversion endpoint consumed by the frontend pages and the Conversion service.

Depends On

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

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors