capsidjs / capsid Goto Github PK
View Code? Open in Web Editor NEW:pill: Declarative DOM programming library. Lightweight (1.79 kb).
Home Page: http://capsid.js.org
License: MIT License
:pill: Declarative DOM programming library. Lightweight (1.79 kb).
Home Page: http://capsid.js.org
License: MIT License
It's $el.cc.get('component')
, but it's hard to read in README.md. It should be introduced in getting started guide.
11.9.0
to 11.9.1
.This version is covered by your current version range and after updating it in your project the build failed.
@types/node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Use case
@component('pure')
class Pure {
@on('input')
@on('change')
inpure () {
unmount('pure', this.el)
}
}
Implementation is something like:
el.classList.remove(classnName)
listeners.forEach(listener => el.removeEventListener(listener.event, listener))
devDependency
@babel/core was updated from 7.4.5
to 7.5.0
.devDependency
@babel/plugin-proposal-class-properties was updated from 7.4.4
to 7.5.0
.devDependency
@babel/plugin-proposal-decorators was updated from 7.4.0
to 7.4.4
.devDependency
@babel/plugin-transform-typescript was updated from 7.4.5
to 7.5.0
.devDependency
@babel/preset-env was updated from 7.4.5
to 7.5.0
.This version is covered by your current version range and after updating it in your project the build failed.
This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.
babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
7.2.2
to 7.3.0
.This version is covered by your current version range and after updating it in your project the build failed.
lint-staged is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 1 commits.
d386c80
feat: Allow linting files outside of project folder (#495)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
because of type check errors in deno_dom
How does capsid component mount to the dom element?
DOMContentLoaded
), html elements which have a class name which is the same as a component name will be mounted by the corresponding component class.3.1.1
to 3.1.2
.This version is covered by your current version range and after updating it in your project the build failed.
karma is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 11 commits.
7d4d347
chore: release v3.1.2
5077c18
chore: update contributors
fb05fb1
fix(server): use flatted for json.stringify (#3220)
2682bff
feat(docs): callout the key debug strategies. (#3219)
4e87902
fix(changelog): remove release which does not exist (#3214)
30ff73b
fix(browser): report errors to console during singleRun=false (#3209)
5334d1a
fix(file-list): do not preprocess up-to-date files (#3196)
dc5f5de
fix(deps): upgrade sinon-chai 2.x -> 3.x (#3207)
d38f344
fix(package): bump lodash version (#3203)
ffb41f9
refactor(browser): log state transitions in debug (#3202)
240209f
fix(dep): Bump useragent to fix HeadlessChrome version (#3201)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
@wire
@on
@component
@emit
because deno_dom uses TLA and it can't be translated to cjs
syntax
class Foo {
@notify(EVENT_MODEL_UPDATE, '.is-model-update-observer')
notifyModelUpdate () {
return this.models
}
}
semantics:
detail
of the eventdetail
of the event. In this case, events fire when the promise resolved.bubbles
option is false.first guide of capsid.js
@component('js-item')
@is(MODEL_OBSERVER)
class Item {
}
is the same as:
@component('js-item')
class Item {
__init__ () {
make(MODEL_OBSERVER, this.el) // when MODEL_OBSERVER is a component name
...or
mount(MODEL_OBSERVER, this.el) // when MODEL_OBSERVER is a Function
...or
this.el.classList.add(MODEL_OBSERVER) // when MODEL_OBSERVER is a class name and not a component name
}
}
@on
-> @on
@emit
-> @emits
@pub
-> scatters, broadcasts, notifies*@component
-> @component
@wire
-> @wired
@capsid/core
@capsid/debug
@capsid/outside-events
@on
bind to elements@emits
decorator and it will propagate to it.@notifies
decorator and it will find the targets and notify them.16.2.3
to 16.3.0
.This version is covered by your current version range and after updating it in your project the build failed.
browserify is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 8 commits.
9824fae
16.3.0
9e3397b
Add http2 to builtins (#1913)
d2ade25
Add http2 to builtins
876182d
Tweak license text so Github detects it correctly
16f82a7
Update license (#1906)
7ad39ce
Merge pull request #1139 from insidewarehouse/resolve-exposed-folders
f13b713
when a module is exposed, it should still resolve the way it would normally do, i.e. with/without extension and directories should fall back to index, and index from a directory should be accepted with/without extension too
8f80729
Update license
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
0.5.4
to 0.5.5
.This version is covered by your current version range and after updating it in your project the build failed.
lynt is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Syntax
@component
class MyComponent {
@wire.el(selector) get fooElement () {}
doSomething () {
this.fooElement.classList.add('is-something')
}
}
fooElement wires to this.el.querySelector(selector)
.
@\pub decorator doesn't work with the following situation.
class A {
@pub('a')
async foo() {
}
}
We use random short strings for hiding our capsid specific data into DOMs or use defined component's insntances. See https://github.com/capsidjs/capsid/blob/master/src/util/const.ts
This works fine, but ecmascript now has Symbol
s and we can use them for this purpose in a better way.
Replace @wire
decorator by @wired
.
The current plan of variations of @wired
@wired(selector)
= @wire.el(selector)
@wired.all(selector)
= @wire.elAll()
@wired.component
= @wire
@wired.component.all
= wires the all components.@wired.$el(selector)
= @wire.$el(selector)
3.1.0
to 3.2.0
.This version is covered by your current version range and after updating it in your project the build failed.
codecov is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 3 commits.
e427d90
feat(services): add azure pipelines (#114)
023d204
Use small HTTP dependency (#110)
500f308
Update Readme
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
3.11.0
to 3.11.1
.This version is covered by your current version range and after updating it in your project the build failed.
watchify is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 8 commits.
c3fe218
3.11.1
e90101b
Merge pull request #362 from digipost/upgrade-deps
d163b4f
upgrade dependencies: fix errors from npm audit
1917270
Merge pull request #351 from menzow/feature/update-docs
d232754
Merge pull request #357 from Kamil93/patch-1
d924e9b
Update readme.markdown
9ea8a65
Support for working with transforms
8147bc5
Add troubleshooting information for silenced errors
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
capsid がどういう問題をどう解決するかを記述する。
@wire
-> 親子関係の明示 (子の列挙)@emit.last
-> 親への情報伝達A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.