patch(): Patched type aliases

Changed inferred path i.e., "./",
"../", "../../". into @ import
path.
This commit is contained in:
kami
2026-03-04 04:48:39 +08:00
parent 4ae9e6c924
commit 001055ee51
9 changed files with 17 additions and 25 deletions

View File

@@ -1,9 +1,9 @@
--- ---
// Import the global.css file here so that it is included on // Import the global.css file here so that it is included on
// all pages through the use of the <BaseHead /> component. // all pages through the use of the <BaseHead /> component.
import '../styles/global.css'; import '@styles/global.css';
import type { ImageMetadata } from 'astro'; import type { ImageMetadata } from 'astro';
import { SITE_TITLE } from '../consts'; import { SITE_TITLE } from '@ptypes/consts.ts';
interface Props { interface Props {
title: string; title: string;

View File

@@ -1,6 +1,6 @@
--- ---
import { SITE_TITLE } from '../consts'; import { SITE_TITLE } from '@ptypes/consts.ts';
import HeaderLink from './HeaderLink.astro'; import HeaderLink from '@components/HeaderLink.astro';
import { getCollection } from 'astro:content'; import { getCollection } from 'astro:content';
const personalPosts = (await getCollection('personal')).sort( const personalPosts = (await getCollection('personal')).sort(

View File

@@ -6,8 +6,8 @@ gitLink: 'https://github.com/juli0n21/fileclap'
--- ---
import { Image } from 'astro:assets'; import { Image } from 'astro:assets';
import homeview from '../../../assets/fileclap/homeview.png'; import homeview from '@assets/fileclap/homeview.png';
import search from '../../../assets/fileclap/search.png'; import search from '@assets/fileclap/search.png';
<style is:global>{` <style is:global>{`
h1, h2, h3, h4, h5, h6, figcaption::before { color: #ffdf20 } h1, h2, h3, h4, h5, h6, figcaption::before { color: #ffdf20 }

View File

@@ -31,5 +31,4 @@ Horsa is an Mobile First all in One Solution for ur BlackSmithing Shop
- Inventory Management - Inventory Management
- WorkUnit preperation - WorkUnit preperation
![homeviwe](../../../assets/horsa/invoices.png) ![homeview](@assets/horsa/invoices.png)

View File

@@ -46,4 +46,4 @@ The idea was to extend the concept and make it easy to share local scores only,
- golang - golang
- a-h/templ + tailwind - a-h/templ + tailwind
- Sqlite as DB - Sqlite as DB
![Score](../../../assets/osuProgress/scorePage.png) ![Score](@assets/osuProgress/scorePage.png)

View File

@@ -1,12 +1,7 @@
--- ---
import { Image } from 'astro:assets'; import BaseHead from '@components/BaseHead.astro';
import type { CollectionEntry } from 'astro:content'; import Header from '@components/Header.astro';
import BaseHead from '../components/BaseHead.astro'; import GithubIcon from '@assets/github.svg'
import Footer from '../components/Footer.astro';
import FormattedDate from '../components/FormattedDate.astro';
import Header from '../components/Header.astro';
import GithubIcon from '../assets/github.svg'
type Props = CollectionEntry<'blog'>['data'];
const { title, description, pubDate, updatedDate, gitLink } = Astro.props; const { title, description, pubDate, updatedDate, gitLink } = Astro.props;
--- ---

View File

@@ -1,6 +1,6 @@
--- ---
import { getCollection, render } from 'astro:content'; import { getCollection, render } from 'astro:content';
import BlogPost from '../../../layouts/BlogPost.astro'; import BlogPost from '@layouts/BlogPost.astro';
export async function getStaticPaths() { export async function getStaticPaths() {
const posts = await getCollection('personal'); const posts = await getCollection('personal');

View File

@@ -1,6 +1,6 @@
--- ---
import { getCollection, render } from 'astro:content'; import { getCollection, render } from 'astro:content';
import BlogPost from '../../../layouts/BlogPost.astro'; import BlogPost from '@layouts/BlogPost.astro';
export async function getStaticPaths() { export async function getStaticPaths() {
const posts = await getCollection('uni'); const posts = await getCollection('uni');

View File

@@ -1,11 +1,9 @@
--- ---
import BaseHead from '../components/BaseHead.astro'; import BaseHead from '@components/BaseHead.astro';
import Footer from '../components/Footer.astro'; import Header from '@components/Header.astro';
import Header from '../components/Header.astro'; import { SITE_DESCRIPTION, SITE_TITLE } from '@ptypes/consts.ts';
import { SITE_DESCRIPTION, SITE_TITLE } from '../consts';
let images = let images = [
[
'https://fshare.kami.boo/u/xH0KLo.jpg', 'https://fshare.kami.boo/u/xH0KLo.jpg',
'https://fshare.kami.boo/u/a0a2234c-b361-425f-8794-612c7c9fbafe.jpg', 'https://fshare.kami.boo/u/a0a2234c-b361-425f-8794-612c7c9fbafe.jpg',
'https://fshare.kami.boo/u/7ceef00c-35cf-4a2f-bec1-0fb489db5f7c.jpg', 'https://fshare.kami.boo/u/7ceef00c-35cf-4a2f-bec1-0fb489db5f7c.jpg',