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

@saltcorn/badges

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saltcorn/badges - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

6

edit.js

@@ -17,3 +17,3 @@ const { span, button, i, a, script, div } = require("@saltcorn/markup/tags");

{
name: "views",
name: "Badge relation",
form: async (context) => {

@@ -59,2 +59,3 @@ const table = await Table.findOne({ id: context.table_id });

return new Form({
blurb: "Choose the relation that defines the content of the badges",
fields: [

@@ -65,2 +66,5 @@ {

type: "String",
sublabel:
"Only many-to-many relations (JoinTable.foreignKey→keyToTableWithLabels→badgeLabel) are supported ",
required: true,

@@ -67,0 +71,0 @@ attributes: {

2

package.json
{
"name": "@saltcorn/badges",
"version": "0.1.4",
"version": "0.1.5",
"description": "Display badges from relationships",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,2 +0,2 @@

const { span } = require("@saltcorn/markup/tags");
const { span, p, code } = require("@saltcorn/markup/tags");
const View = require("@saltcorn/data/models/view");

@@ -17,3 +17,3 @@ const Workflow = require("@saltcorn/data/models/workflow");

{
name: "views",
name: "Badge relation",
form: async (context) => {

@@ -59,2 +59,3 @@ const table = await Table.findOne({ id: context.table_id });

return new Form({
blurb: "Choose the relation that defines the content of the badges",
fields: [

@@ -64,2 +65,4 @@ {

label: "Relation",
sublabel:
"Choose a <ul><li>one-to-many relation (Table.foreignKey&#8594;badgeLabel) or a </li><li>many-to-many relation (JoinTable.foreignKey&#8594;keyToTableWithLabels&#8594;badgeLabel) </li> </ul>",
type: "String",

@@ -66,0 +69,0 @@ required: true,

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