
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
ccnq-ko-rule-gwlist
Advanced tools
module.exports = (require 'ccnq-ko') 'rule-gwlist', (ko) ->
@data class RuleGwlist
constructor: (gwlist) ->
gwlist ?= []
@gwlist = ko.observableArray []
for data in gwlist
@gwlist.push new RuleTarget data
return
toJS: ->
@gwlist.remove (x) -> !x._validated()
ko.toJS @gwlist
@view ({value,ko}) ->
assert value instanceof RuleGwlist, 'value should be an instance of RuleGwlist'
@notify = ko.observable ''
Add a new (empty) target.
FIXME: should select a default type based on existing targets (e.g. only one source_registrant makes sense).
@add_gw = =>
@gwlist.push new RuleTarget {}
Remove an existing target.
@remove_gw = (target) =>
@gwlist.remove target
@html ({p,div,text,label,input,datalist,option,ul,li,button,tag}) ->
datalist '#gateway', bind: foreach: '$root.gateways', ->
option bind: value: '$data'
datalist '#carrier', bind: foreach: '$root.carriers', ->
option bind: value: '$data'
div bind: foreach: 'gwlist', ->
div ->
rule_target '$data'
button bind: click: '$parent.remove_gw', 'Remove'
button bind: click: 'add_gw', 'Add'
Extend Knockout witht the rule-target component/tag.
{RuleTarget,rule_target} = (require 'ccnq-ko-rule-target') ko
assert = require 'assert'
FAQs
CCNQ Knockout Widget for gwlist management
The npm package ccnq-ko-rule-gwlist receives a total of 1 weekly downloads. As such, ccnq-ko-rule-gwlist popularity was classified as not popular.
We found that ccnq-ko-rule-gwlist 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
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.