mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 09:16:45 +01:00
client: fix the issues pointed by gemini-code-assist
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
"autocomplete.js": "0.38.1",
|
"autocomplete.js": "0.38.1",
|
||||||
"bootstrap": "5.3.8",
|
"bootstrap": "5.3.8",
|
||||||
"boxicons": "2.1.4",
|
"boxicons": "2.1.4",
|
||||||
|
"color": "5.0.2",
|
||||||
"dayjs": "1.11.18",
|
"dayjs": "1.11.18",
|
||||||
"dayjs-plugin-utc": "0.1.2",
|
"dayjs-plugin-utc": "0.1.2",
|
||||||
"debounce": "2.2.0",
|
"debounce": "2.2.0",
|
||||||
|
|||||||
@@ -62,10 +62,13 @@ function adjustColorLightness(color: string, lightThemeMaxLightness: number, dar
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const lightness = labColor.l();
|
||||||
|
|
||||||
// For the light theme, limit the maximum lightness
|
// For the light theme, limit the maximum lightness
|
||||||
const lightThemeColor = labColor.l(Math.min(labColor.l(), lightThemeMaxLightness)).hex();
|
const lightThemeColor = labColor.l(Math.min(lightness, lightThemeMaxLightness)).hex();
|
||||||
// For the light theme, limit the minimum lightness
|
|
||||||
const darkThemeColor = labColor.l(Math.max(labColor.l(), darkThemeMinLightness)).hex();
|
// For the dark theme, limit the minimum lightness
|
||||||
|
const darkThemeColor = labColor.l(Math.max(lightness, darkThemeMinLightness)).hex();
|
||||||
|
|
||||||
return {lightThemeColor, darkThemeColor};
|
return {lightThemeColor, darkThemeColor};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export class CssVarReader {
|
|||||||
let number: Number = NaN;
|
let number: Number = NaN;
|
||||||
|
|
||||||
if (this.value) {
|
if (this.value) {
|
||||||
number = new Number(this.value);
|
number = parseFloat(this.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (!isNaN(number.valueOf()) ? number.valueOf() : defaultValue)
|
return (!isNaN(number.valueOf()) ? number.valueOf() : defaultValue)
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"better-sqlite3": "12.4.1",
|
"better-sqlite3": "12.4.1",
|
||||||
"color": "5.0.2",
|
|
||||||
"node-html-parser": "7.0.1"
|
"node-html-parser": "7.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@@ -184,6 +184,9 @@ importers:
|
|||||||
boxicons:
|
boxicons:
|
||||||
specifier: 2.1.4
|
specifier: 2.1.4
|
||||||
version: 2.1.4
|
version: 2.1.4
|
||||||
|
color:
|
||||||
|
specifier: 5.0.2
|
||||||
|
version: 5.0.2
|
||||||
dayjs:
|
dayjs:
|
||||||
specifier: 1.11.18
|
specifier: 1.11.18
|
||||||
version: 1.11.18
|
version: 1.11.18
|
||||||
@@ -452,9 +455,6 @@ importers:
|
|||||||
better-sqlite3:
|
better-sqlite3:
|
||||||
specifier: 12.4.1
|
specifier: 12.4.1
|
||||||
version: 12.4.1
|
version: 12.4.1
|
||||||
color:
|
|
||||||
specifier: 5.0.2
|
|
||||||
version: 5.0.2
|
|
||||||
node-html-parser:
|
node-html-parser:
|
||||||
specifier: 7.0.1
|
specifier: 7.0.1
|
||||||
version: 7.0.1
|
version: 7.0.1
|
||||||
@@ -14901,8 +14901,6 @@ snapshots:
|
|||||||
'@ckeditor/ckeditor5-utils': 47.1.0
|
'@ckeditor/ckeditor5-utils': 47.1.0
|
||||||
'@ckeditor/ckeditor5-watchdog': 47.1.0
|
'@ckeditor/ckeditor5-watchdog': 47.1.0
|
||||||
es-toolkit: 1.39.5
|
es-toolkit: 1.39.5
|
||||||
transitivePeerDependencies:
|
|
||||||
- supports-color
|
|
||||||
|
|
||||||
'@ckeditor/ckeditor5-dev-build-tools@43.1.0(@swc/helpers@0.5.17)(tslib@2.8.1)(typescript@5.9.3)':
|
'@ckeditor/ckeditor5-dev-build-tools@43.1.0(@swc/helpers@0.5.17)(tslib@2.8.1)(typescript@5.9.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -15680,6 +15678,8 @@ snapshots:
|
|||||||
'@ckeditor/ckeditor5-ui': 47.1.0
|
'@ckeditor/ckeditor5-ui': 47.1.0
|
||||||
'@ckeditor/ckeditor5-utils': 47.1.0
|
'@ckeditor/ckeditor5-utils': 47.1.0
|
||||||
ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
|
ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
'@ckeditor/ckeditor5-special-characters@47.1.0':
|
'@ckeditor/ckeditor5-special-characters@47.1.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
Reference in New Issue
Block a user