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

@druxt-contrib/config-pages

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@druxt-contrib/config-pages

[![npm](https://badgen.net/npm/v/@druxt-contrib/config-pages)](https://www.npmjs.com/package/@druxt-contrib/config-pages) [![Known Vulnerabilities](https://snyk.io/test/github/druxt-contrib/druxt-config-pages/badge.svg?targetFile=package.json)](https://sn

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

DruxtConfigPages

npm Known Vulnerabilities CI codecov

Decoupled Drupal configuration pages for Druxt

The DruxtConfigPages module consumes configuration data from the Drupal Config Pages module and makes it easily accessible with a Vuex store and Nuxt plugin.

$druxtConfigPages.get('foo.bar')

Features

  • Nuxt plugin:
    • $druxtConfigPages.get('foo').bar
    • $druxtConfigPages.get('foo.bar')
  • Vuex store and getter:
    • $store.getters['druxtConfigPages/foo'].bar

Install and setup

Drupal

  1. Install and enable the Drupal Config Pages module on your Druxt backend.

  2. Create at least one Config Page type and entity: /admin/structure/config_pages/types

  3. Add the "View the [foo] config page entity" permission to the required Druxt role(s).

Nuxt.js

  1. Install the Nuxt modules:

    $ npm install druxt @druxt-contrib/config-pages

  2. Add module to nuxt.config.js

    module.exports = {
      buildModules: ['@druxt-contrib/config-pages'],
      druxt: {
        baseUrl: 'https://demo-api.druxtjs.org',
        configPages: {
          pages: ['foo']
        }
      }
    }
    

    Note: Replace foo with the machine name of your Config Page type.

Options

OptionTypeRequiredDefaultDescription
druxt.configPages.pagesarrayYes[]An array of Config Page types.

Keywords

FAQs

Package last updated on 27 Feb 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