Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
druxt-entity
Advanced tools
The DruxtJS Entity module provides a Drupal Display Mode powered Entity and Field component system for your NuxtJS frontend.
$ npm install druxt-entity
Add module to nuxt.config.js
module.exports = {
modules: [
...
'druxt-entity',
'druxt-router'
],
druxt: {
baseUrl: 'https://demo-api.druxtjs.org',
entity: {
suggestions: []
}
}
}
These options are available to all Druxt modules.
Option | Type | Required | Default | Description |
---|---|---|---|---|
axios | object | No | {} | Axios instance settings. |
baseUrl | string | Yes | null | Base URL for the Drupal installation. |
These options are specific to this module.
Option | Type | Required | Default | Description |
---|---|---|---|---|
entity.suggestions | array | No | [] | Array of component suggestions. |
Both the <druxt-entity />
and <druxt-field />
components utilize a component suggestion system.
The first suggestion to match a registered Vue component will be used to render the relevant component.
You can provide additional suggestions via the below configuration options.
Option | Type | Required | Default | Description |
---|---|---|---|---|
entity.suggestions[n].type | string | No | null | Component type. E.g., entity , field |
entity.suggestions[n].value | function , string | No | null | A String or Function that returns a String containing a suggested Component to render. |
Example:
druxt: {
entity: {
suggestions: [
{
type: 'entity',
value: ctx => {
// If Homepage route and entity...
if (ctx.route.isHomePath && ctx.route.props.uuid === ctx.entity.id) {
// DruxtEntityHome
return ctx.tokens.prefix + 'Home'
}
}
}
]
}
}
FAQs
Drupal Display Mode powered Entity, Form and Field Druxt components.
The npm package druxt-entity receives a total of 141 weekly downloads. As such, druxt-entity popularity was classified as not popular.
We found that druxt-entity demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.