feat: add weather widget
All checks were successful
renovate / renovate (push) Successful in 1m3s
test-build / build (push) Successful in 1m47s

This commit is contained in:
2026-02-10 21:42:04 -06:00
parent 63cbcdf39b
commit b6dfc738f1
15 changed files with 164 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
import fs from 'node:fs/promises';
export interface BlurImageMetadata {
interface BlurImageMetadata {
/**
* The width of the origin image
*/
@@ -23,7 +23,7 @@ export interface BlurImageMetadata {
blurHeight: number;
}
export async function blurStyle(filePath: string) {
async function blurStyle(filePath: string) {
const image = await blurImageMetadata(filePath);
const svg = blurImageSVG(image);
return {
@@ -64,3 +64,5 @@ async function blurImageMetadata(filepath: string): Promise<BlurImageMetadata> {
return { blurDataURL, blurHeight, blurWidth, width, height };
}
export { blurStyle };