directus-extension-okam
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -1,1 +0,1 @@ | ||
import{defineOperationApp as e}from"@directus/extensions-sdk";const t=[],i=[],l=[],n=[],o=[],a=[e({id:"okam-slugify-list",name:"Slugify list",icon:"box",description:"Slugify an array of items with a from field and add a to field",overview:({list:e})=>[{label:"List",text:e}],options:[{field:"list",name:"List",type:"JSON",meta:{width:"full",interface:"code"}}]}),e({id:"okam-slugify-input",name:"Slugify input",icon:"box",description:"Slugify an input",overview:({input:e})=>[{label:"Input",text:e}],options:[{field:"input",name:"Input",type:"string",meta:{width:"full",interface:"input"}}]}),e({id:"okam-update-slug",name:"Update Page Settings Slugs",icon:"box",description:"Update Page Settings",overview:({collection:e,key:t,override:i})=>[{label:"Collection",text:e},{label:"Key",text:t},{label:"Override",text:i}],options:[{field:"collection",name:"Collection",type:"string",meta:{width:"full",interface:"input"}},{field:"key",name:"Key",type:"string",meta:{width:"full",interface:"input"}},{field:"list",name:"List",type:"JSON",meta:{width:"full",interface:"code"}},{field:"override",name:"Override",type:"boolean",meta:{width:"full",interface:"toggle",options:{label:"Override slug"}}}]})];export{i as displays,t as interfaces,l as layouts,n as modules,a as operations,o as panels}; | ||
import{defineOperationApp as e}from"@directus/extensions-sdk";const t=[],i=[],n=[],l=[],a=[],o=[e({id:"okam-slugify-list",name:"Slugify list",icon:"box",description:"Slugify an array of items with a from field and add a to field",overview:({list:e})=>[{label:"List",text:e}],options:[{field:"list",name:"List",type:"json",meta:{width:"full",interface:"input-code",options:{languages:"json"}}}]}),e({id:"okam-slugify-input",name:"Slugify input",icon:"box",description:"Slugify an input",overview:({input:e})=>[{label:"Input",text:e}],options:[{field:"input",name:"Input",type:"string",meta:{width:"full",interface:"input"}}]}),e({id:"okam-update-slug",name:"Update Page Settings Slugs",icon:"box",description:"Update Page Settings",overview:({collection:e,key:t,override:i})=>[{label:"Collection",text:e},{label:"Key",text:t},{label:"Override",text:i}],options:[{field:"collection",name:"Collection",type:"string",meta:{width:"full",interface:"input"}},{field:"key",name:"Key",type:"string",meta:{width:"full",interface:"input"}},{field:"list",name:"List",type:"json",meta:{width:"full",interface:"input-code",options:{languages:"json"}}},{field:"override",name:"Override",type:"boolean",meta:{width:"full",interface:"toggle",options:{label:"Override slug"}}}]}),e({id:"okam-check-duplicate-slug",name:"Okam Check Duplicate Slug",icon:"box",description:"Check duplicate slug",overview:({collection:e,key:t})=>[{label:"Collection",text:e},{label:"Key",text:t}],options:[{field:"collection",name:"Collection",type:"string",meta:{width:"full",interface:"input"}},{field:"key",name:"Key",type:"string",meta:{width:"full",interface:"input"}},{field:"slug",name:"Slug",type:"string",meta:{width:"full",interface:"input"}},{field:"language",name:"Language",type:"string",meta:{width:"full",interface:"input"}}]}),e({id:"okam-extract-keys",name:"Okam Extract Collection/Key into an array",icon:"box",description:"Habitually used with {{$trigger}} for event or {{$trigger.body}} for manual to extract key/keys/collection",overview:({input:e})=>[{label:"Input",text:e}],options:[{field:"input",name:"Input",type:"json",meta:{width:"full",interface:"input-code",options:{languages:"json"}}}]})];export{i as displays,t as interfaces,n as layouts,l as modules,o as operations,a as panels}; |
{ | ||
"name": "directus-extension-okam", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"type": "module", | ||
"dependencies": { | ||
"@sindresorhus/slugify": "^2.2.1" | ||
}, | ||
"directus:extension": { | ||
@@ -36,2 +39,18 @@ "host": "^10.1.11", | ||
} | ||
}, | ||
{ | ||
"type": "operation", | ||
"name": "okam-check-duplicate-slug", | ||
"source": { | ||
"app": "src/okam-check-duplicate-slug/app.ts", | ||
"api": "src/okam-check-duplicate-slug/api.ts" | ||
} | ||
}, | ||
{ | ||
"type": "operation", | ||
"name": "okam-extract-keys", | ||
"source": { | ||
"app": "src/okam-extract-keys/app.ts", | ||
"api": "src/okam-extract-keys/api.ts" | ||
} | ||
} | ||
@@ -51,13 +70,11 @@ ] | ||
"link": "directus-extension link", | ||
"add": "directus-extension add" | ||
"add": "directus-extension add", | ||
"publish": "npm publish --access public" | ||
}, | ||
"devDependencies": { | ||
"@directus/extensions-sdk": "10.1.11", | ||
"@types/node": "^20.8.2", | ||
"typescript": "^5.2.2", | ||
"vue": "^3.3.4" | ||
"@types/node": "^20.11.5", | ||
"typescript": "^5.3.3", | ||
"vue": "^3.4.15" | ||
}, | ||
"dependencies": { | ||
"@sindresorhus/slugify": "^2.2.1" | ||
}, | ||
"files": [ | ||
@@ -64,0 +81,0 @@ "dist" |
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
207303
784
1