Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
126e0fc900 | |||
a20b321bb0 | |||
33721f86ab | |||
987c821eed |
10
changelog.md
10
changelog.md
@ -1,5 +1,15 @@
|
||||
# Changelog
|
||||
|
||||
## 2024-10-21 - 2.0.65 - fix(ThemeManager)
|
||||
Refactor ThemeManager class to separate global style setting logic
|
||||
|
||||
- Moved logic to set global styles into a dedicated function setGlobalStylesOnPurpose in ThemeManager.
|
||||
|
||||
## 2024-10-06 - 2.0.64 - fix(pluginexports)
|
||||
Add missing import for smartrouter in pluginexports.
|
||||
|
||||
- Fixed a missing import for smartrouter in ts/domtools.pluginexports.ts.
|
||||
|
||||
## 2024-10-06 - 2.0.63 - fix(dependencies)
|
||||
Update @push.rocks/smartrouter to version ^1.3.2 for better compatibility
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@design.estate/dees-domtools",
|
||||
"version": "2.0.63",
|
||||
"version": "2.0.65",
|
||||
"private": false,
|
||||
"description": "A package providing tools to simplify complex CSS structures and web development tasks, featuring TypeScript support and integration with various web technologies.",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@design.estate/dees-domtools',
|
||||
version: '2.0.63',
|
||||
version: '2.0.65',
|
||||
description: 'A package providing tools to simplify complex CSS structures and web development tasks, featuring TypeScript support and integration with various web technologies.'
|
||||
}
|
||||
|
@ -21,10 +21,13 @@ export class ThemeManager {
|
||||
this.updateAllConnectedElements();
|
||||
}
|
||||
|
||||
private async updateAllConnectedElements() {
|
||||
private async setGlobalStylesOnPurpose() {
|
||||
if (document.body && document.body.style) {
|
||||
document.body.style.background = this.goBrightBoolean ? '#fff' : '#000';
|
||||
}
|
||||
}
|
||||
|
||||
private async updateAllConnectedElements() {
|
||||
this.themeObservable.next(this.goBrightBoolean);
|
||||
}
|
||||
|
||||
|
@ -3,6 +3,7 @@ import * as smartmarkdown from '@push.rocks/smartmarkdown';
|
||||
import * as smartpromise from '@push.rocks/smartpromise';
|
||||
import SweetScroll from 'sweet-scroll';
|
||||
import * as smartstate from '@push.rocks/smartstate';
|
||||
import * as smartrouter from '@push.rocks/smartrouter';
|
||||
import * as smartrx from '@push.rocks/smartrx';
|
||||
import * as smartstring from '@push.rocks/smartstring';
|
||||
import * as smarturl from '@push.rocks/smarturl';
|
||||
@ -14,6 +15,7 @@ export {
|
||||
smartpromise,
|
||||
SweetScroll,
|
||||
smartstate,
|
||||
smartrouter,
|
||||
smartrx,
|
||||
smartstring,
|
||||
smarturl,
|
||||
|
Reference in New Issue
Block a user