1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-30 17:19:46 +02:00

update dependencies

This commit is contained in:
Morris Brodersen
2025-02-15 14:12:58 +01:00
parent 40ac583e1f
commit 366d41c321
4 changed files with 701 additions and 276 deletions

View File

@@ -1 +1 @@
20 22

View File

@@ -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

File diff suppressed because it is too large Load Diff

View File

@@ -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",