
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
cakejs2-spatial
Advanced tools
CakeJS2
lightweight front-end framework with only best parts and features of most awesome frameworks.
Candle counter recipe:
create().route('/', 'counter');
Cream.extend({
_namespace : 'counter',
candles : 0,
increment : function() {
this.set('candles', this.candles + 1);
},
render : function() {
return h('button', { onClick : this.increment }, 'Candles on the Cake: ' + this.candles);
}
});
To enable JSX
support, transpiler option have to be provided that names defaults with h
(hyperscript) instead of react:
/** @jsx h */
Examples
Live demos:
Check out examples folder.
Installation
npm install cakejs2
CDN
https://unpkg.com/cakejs2@latest/dist/cake.min.js
API
h
create
Cream
create
options:
create({
element : document.body // by default
elementClass : cake
elementId : cake
createRoot : false // do not create root node, use render's
route
:
create().route(
'/posts/:id/post', // URL pattern, also available "*" pattern
'home' // Namespace of the component
);
Namespaces
Cream
Base component of any cake.
Functions:
init
willTransition
didTransition
render
Options:
_namespsace
- object's namespace_after
- DI afterZefir:
props
- routing options ( /:id/
for an instance became props.id
)params
- params eg ?iam=param
bacame params.iam
Sugar:
observes
property
- computed propertyobserves
creates observer function
dataWatcher : function() { .... }.observes('posts', /^store/)
Cakejs2
is a second generation of the cakejs
framework.
First version of cakejs
were made in 2012th and published in 2014th.
MIT License
Copyright (c) 2016 Svetlana Linuxenko
FAQs
CakeJS2 with spatial navigation.
The npm package cakejs2-spatial receives a total of 0 weekly downloads. As such, cakejs2-spatial popularity was classified as not popular.
We found that cakejs2-spatial 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
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.