mirror of
https://github.com/morris/vanilla-todo.git
synced 2025-08-30 09:10:14 +02:00
update dependencies
This commit is contained in:
@@ -1 +1 @@
|
|||||||
20
|
22
|
||||||
|
14
README.md
14
README.md
@@ -252,19 +252,13 @@ export function MyCounter(el) {
|
|||||||
// Dispatch a custom event, using .detail to transport data.
|
// Dispatch a custom event, using .detail to transport data.
|
||||||
// Parent components can listen to this event to receive the counter's value.
|
// Parent components can listen to this event to receive the counter's value.
|
||||||
el.dispatchEvent(
|
el.dispatchEvent(
|
||||||
new CustomEvent('counter', {
|
new CustomEvent('counter', { detail: value + 1, bubbles: true }),
|
||||||
detail: value + 1,
|
|
||||||
bubbles: true,
|
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
el.querySelector('.decrement').addEventListener('click', () => {
|
el.querySelector('.decrement').addEventListener('click', () => {
|
||||||
el.dispatchEvent(
|
el.dispatchEvent(
|
||||||
new CustomEvent('counter', {
|
new CustomEvent('counter', { detail: value - 1, bubbles: true }),
|
||||||
detail: value - 1,
|
|
||||||
bubbles: true,
|
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -887,6 +881,10 @@ Thanks!
|
|||||||
|
|
||||||
## 9. Changelog
|
## 9. Changelog
|
||||||
|
|
||||||
|
### 02/2025
|
||||||
|
|
||||||
|
- Update dependencies
|
||||||
|
|
||||||
### 12/2024
|
### 12/2024
|
||||||
|
|
||||||
- Add dark mode
|
- Add dark mode
|
||||||
|
959
package-lock.json
generated
959
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -42,7 +42,7 @@
|
|||||||
"prettier": "^3.1.0",
|
"prettier": "^3.1.0",
|
||||||
"s4d": "^0.2.0",
|
"s4d": "^0.2.0",
|
||||||
"stylelint": "^16.12.0",
|
"stylelint": "^16.12.0",
|
||||||
"stylelint-config-standard": "^36.0.1"
|
"stylelint-config-standard": "^37.0.0"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"defaults",
|
"defaults",
|
||||||
|
Reference in New Issue
Block a user