feat: move scripts to script folder
This commit is contained in:
@@ -6,7 +6,7 @@ import type { Post } from '@lib/directusTypes';
|
||||
import CategoryCard from '@components/cards/CategoryCard.astro';
|
||||
import LargeCategoryCard from '@components/cards/LargeCategoryCard.astro';
|
||||
import directus from '@lib/directus';
|
||||
import { formatFromNow } from '@support/time';
|
||||
import { formatFromNow } from '@/scripts/time';
|
||||
|
||||
const global = await directus.request(readSingleton('site_global'));
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
import GoLinkPrimaryButton from '@components/buttons/GoLinkPrimaryButton.astro';
|
||||
import Logo from '@components/images/Logo.astro';
|
||||
import { getDirectusImageURL } from '@/support/url';
|
||||
import { getDirectusImageURL } from '@/scripts/url';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { HeaderImage } from '@lib/directusTypes';
|
||||
import GoLinkPrimaryButton from '@components/buttons/GoLinkPrimaryButton.astro';
|
||||
import GoLinkSecondaryButton from '@components/buttons/GoLinkSecondaryButton.astro';
|
||||
import directus from '@lib/directus';
|
||||
import { getDirectusImageURL } from '@/support/url';
|
||||
import { getDirectusImageURL } from '@/scripts/url';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
import WeatherCard from '@components/cards/WeatherCard.astro';
|
||||
import { getFiveDayForecast } from '@support/weather';
|
||||
import { getFiveDayForecast } from '@/scripts/weather';
|
||||
|
||||
const { latitude = "44.95", longitude = "-93.09", cityName = "St. Paul, Minnesota", timezone = "America/Chicago" } = Astro.props;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user