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 { join } from 'node:path';
export function resolveFilePath(path: string) {
function resolveFilePath(path: string) {
if (path.startsWith('/')) {
return resolveFilePathPublic(path);
}
@@ -8,12 +8,14 @@ export function resolveFilePath(path: string) {
return resolveFilePathInternal(path);
}
export function resolveFilePathPublic(path: string) {
function resolveFilePathPublic(path: string) {
return join(process.cwd(), path);
}
export function resolveFilePathInternal(path: string) {
function resolveFilePathInternal(path: string) {
const normalizePath = path.startsWith('@') ? path.replace('@', '') : path;
return join(process.cwd(), 'src/', normalizePath);
}
export { resolveFilePath, resolveFilePathPublic, resolveFilePathInternal };