# directus-extension-dictionary-test

> An extension providing dictionary interface for [Directus](https://github.com/directus/directus) that returns a standartd object of key/value pairs.

Latest version **0.1.0** (published 2022-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install directus-extension-dictionary-test
pnpm add directus-extension-dictionary-test
yarn add directus-extension-dictionary-test
bun add directus-extension-dictionary-test
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2022-05-28 |
| First published | 2022-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 81.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 41 |
| Author | George Chelebiev |
| Maintainers | jonesus |
| Keywords | directus, directus-extensions, directus-extensions-interfaces |

## Links

- npm: https://www.npmjs.com/package/directus-extension-dictionary-test
- Repository: https://github.com/georgexchelebiev/directus-dictionary
- Homepage: https://github.com/georgexchelebiev/directus-dictionary#readme
- Issues: https://github.com/georgexchelebiev/directus-dictionary/issues
- npm.io page: https://npm.io/package/directus-extension-dictionary-test

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.12
- [@vue/composition-api](https://npm.io/package/@vue/composition-api.md) ^1.0.0-rc.2

## Recent versions

- 0.1.0 (latest) — 2022-05-28

## README

# Directus Dictionary

An extension providing dictionary interface for [Directus](https://github.com/directus/directus) that returns a standartd object of key/value pairs.

## Example setup

Extend the Directus built in repeater interface, to add, rearange, and delete keys.

![Field options](field-options.gif)

Add values to the predifined list of keys:

![Editing field values](field-values.gif)

The end value of this field will be:
```json
{ 
  "logIn": "Log In",
  "logOut": "Log Out"
}
```
Keys with empty are omitted from the response object.

## Feature List
- [x] Directus interface extension
  - [x] Adding/removing/rearranging keys
  - [x] Adding/removing values
  - [x] Filters out empty values
  - [x] Shows warning in empty fields
  - [X] Shows completion progress in editor
- [ ] Directus display extension
  - [ ] Displays completion progress in collection view
  - [ ] Sorts items by completion

## Usage

1. Build it via `npm run build`
1. Copy `dist/interfaces/dictionary` to `/directus/extensions/interfaces` (or whereever your extension folder is)
1. Add a new json field to your collection and select the `Dictionary` interface
1. Define keys and add optional descriptions

---
_Source: https://npm.io/package/directus-extension-dictionary-test · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
