Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

catala-web-assets

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

catala-web-assets

Web assets generated from Catala programs about the French law

  • 0.1.0-b.1
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

catala-web-assets

Table of contents

Web assets generated from Catala programs about the French law:

To use

Add the package to your project:

yarn add catala-web-assets

Import the wanted file from the assets folder:

require("catala-web-assets/assets/<file_name>")

In local dev

In order to test and update the assets without having to publish a new package version you can:

# In this repo
yarn link

# In the website repo
yarn link catala-web-assets

Websites using this assets

Note on the redaction of schemas

Title

The titles must not be defined inside "kind" properties of the object definition but just before the "$ref" of the calling parent:

"categorieEquivalenceLoyerD84216": {
  "title": "Catégorie de personnes résidant en logement-foyer",
  "$ref": "#/definitions/categorie_equivalence_loyer_allocation_logement_foyer"
}

Dsfr dedicated UI options

To be used with the Dsfr, there dedicated options for the UI schemas:

ui:tabLabel and ui:hideTitle

ui:hideTitle is needed to be specified for item of type object inside a item of type array to hide the unique title of the array's items.

ui:hideTitle allows to defines tab's label. It needs to be specified at the root of the item of type array.

Example:

"personnesACharge": {
    "ui:tabLabel": "Personne",
    "items": {
        "ui:hideTitle": true,
...

Keywords

FAQs

Package last updated on 28 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc