Directus Utilities

screenshot of Directus Utilities
directus

Utility library for directus

Overview

The utility library for directuslint-test-deploy brings some missing utility functions for Directus. It provides functions for exporting and importing presets, permissions, and roles in Directus.

Features

  • exportDefaultPreset: Exports the default preset for a given collection to a JSON file.
  • importDefaultPreset: Imports the default preset for a given collection from a JSON file.
  • exportPublicPermissions: Exports public permissions to a JSON file.
  • importPublicPermissions: Imports public permissions from a JSON file.
  • exportPermissionsByRolename: Exports permissions for a given role to a JSON file.
  • importPermissionsByRolename: Imports permissions for a given role from a JSON file.

Summary

The utility library for directuslint-test-deploy provides essential utility functions for managing presets, permissions, and roles in Directus. With functions for exporting and importing presets, public permissions, and role-based permissions, it simplifies the management of these configurations in a Directus instance.

directus
Directus

A website that uses Directus as an open source headless CMS to manage content. This includes features such as a customizable content model, role-based access control, and API-based content delivery to support a wide range of digital experiences.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

Recoil

Recoil is a state management library for React that provides an intuitive and flexible API for managing and sharing state across components. It supports a range of features, including derived state, asynchronous updates, and time-travel debugging, and is designed to work well with the React ecosystem and other state management solutions.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.