Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

chore: publish release #80

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import("@types/eslint").Linter.Config} */
/** @type {import("eslint").Linter.Config} */

module.exports = {
// FIXME: ./node_modules/ prefix is required, why?
Expand Down
3 changes: 3 additions & 0 deletions .github/FUNDING.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: [JulianCataldo]

custom: ['https://www.buymeacoffee.com/JulianCataldo']
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ logs
.parcel-cache

.dev*
.old
.old*

design

Expand Down
6 changes: 6 additions & 0 deletions app/HoverPrefetch/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.7](https://github.com/JulianCataldo/web-garden/compare/[email protected]@1.0.7) (2023-04-12)

### Bug Fixes

- Prevent adding current page as prefetch link ([8ff5923](https://github.com/JulianCataldo/web-garden/commit/8ff5923f2189da1c4db176067ded5e7cc25f738d))

## [1.0.6](https://github.com/JulianCataldo/web-garden/compare/[email protected]@1.0.6) (2023-01-05)

**Note:** Version bump only for package astro-hover-prefetch
Expand Down
2 changes: 1 addition & 1 deletion app/HoverPrefetch/HoverPrefetch.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (typeof props.max !== 'number') {
if (e.target.tagName === 'A' && prefetchList.length < max) {
const url = e.target.getAttribute('href');

if (url.startsWith('/')) {
if (url.startsWith('/') && url !== window.location.pathname) {
if (prefetchList.includes(url) === false) {
// console.log(`prefetching url ${url}`);
const link = document.createElement('link');
Expand Down
2 changes: 1 addition & 1 deletion app/HoverPrefetch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The goal is to make further page loading snappier.
It's useful with SSG but also with SSR in certain scenarios.

It plays well with this page transition component:
[astro-page-transition](https://github.com/JulianCataldo/web-garden/tree/master/app/Transition)
[astro-page-transition](https://github.com/JulianCataldo/web-garden/tree/master/app/PageTransition)

<!-- ## Demo

Expand Down
68 changes: 34 additions & 34 deletions app/HoverPrefetch/package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"name": "astro-hover-prefetch",
"version": "1.0.6",
"description": "This component capture mouse hovering on links with internal URLs. Then, it will prefetch the HTML document beforehand.",
"keywords": [
"astro",
"astro-component",
"native",
"vanilla",
"prefetch",
"javascript",
"links"
],
"homepage": "https://code.juliancataldo.com/component/astro-hover-prefetch",
"bugs": {
"url": "https://github.com/JulianCataldo/web-garden/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/JulianCataldo/web-garden",
"directory": "app/HoverPrefetch"
},
"files": [
"index.ts",
"HoverPrefetch.astro",
"Props.ts",
"CHANGELOG.md"
],
"license": "ISC",
"author": "Julian Cataldo",
"type": "module",
"main": "index.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
"name": "astro-hover-prefetch",
"version": "1.0.7",
"description": "This component capture mouse hovering on links with internal URLs. Then, it will prefetch the HTML document beforehand.",
"keywords": [
"astro",
"astro-component",
"native",
"vanilla",
"prefetch",
"javascript",
"links"
],
"homepage": "https://code.juliancataldo.com/component/astro-hover-prefetch",
"bugs": {
"url": "https://github.com/JulianCataldo/web-garden/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/JulianCataldo/web-garden",
"directory": "app/HoverPrefetch"
},
"files": [
"index.ts",
"HoverPrefetch.astro",
"Props.ts",
"CHANGELOG.md"
],
"license": "ISC",
"author": "Julian Cataldo",
"type": "module",
"main": "index.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}
6 changes: 6 additions & 0 deletions app/SEOMetadata/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.6.0](https://github.com/JulianCataldo/web-garden/compare/[email protected]@0.6.0) (2023-04-18)

### Features

- support fallbacks for canonical url ([2200aff](https://github.com/JulianCataldo/web-garden/commit/2200aff8a39a6913a9d4dc0217958bafe5487044))

## [0.5.5](https://github.com/JulianCataldo/web-garden/compare/[email protected]@0.5.5) (2023-01-21)

### Bug Fixes
Expand Down
130 changes: 65 additions & 65 deletions app/SEOMetadata/Props.ts
Original file line number Diff line number Diff line change
@@ -1,77 +1,77 @@
export interface Props {
/**
* Used for Discord, PWA…
*
* **Default**: `undefined`
* */
siteName?: string;
/**
* Used for Discord, PWA…
*
* **Default**: `undefined`
* */
siteName?: string;

/**
* Used for window / tab title, search engines results, social networks…
*
* **Default**: `undefined`
* */
title?: string;
/**
* Used for window / tab title, search engines results, social networks…
*
* **Default**: `undefined`
* */
title?: string;

/**
* Used for search engines results, social networks…
*
* **Default**: `undefined`
* */
description?: string;
/**
* Used for search engines results, social networks…
*
* **Default**: `undefined`
* */
description?: string;

/**
* Image URL, preferably absolute and 1200x630px \
* Used for social networks…
*
* **Default**: `undefined`
* */
image?: string;
/**
* Image URL, preferably absolute and 1200x630px \
* Used for social networks…
*
* **Default**: `undefined`
* */
image?: string;

/**
* Favicon URL
*
* **Default**: `undefined`
* */
favicon?: string;
/**
* Favicon URL
*
* **Default**: `undefined`
* */
favicon?: string;

/**
* **Default**: `undefined`
* */
author?: string;
/**
* **Default**: `undefined`
* */
author?: string;

/**
* **Default**: `undefined`
* */
copyright?: string;
/**
* **Default**: `undefined`
* */
copyright?: string;

/**
* Reference the `sitemap-index.xml`
* which is generated by `@astrojs/sitemap`
*
* Otherwise crawlers likely prefer `sitemap.xml`
*
* **Default**: `true`
* */
astroSitemap?: boolean;
/**
* Reference the `sitemap-index.xml`
* which is generated by `@astrojs/sitemap`
*
* Otherwise crawlers likely prefer `sitemap.xml`
*
* **Default**: `true`
* */
astroSitemap?: boolean;

/**
* **Default**: `Astro.url`
*
* (with base from `site` in Astro root config.)
* */
canonicalUrl?: string;
/**
* **Default**: `Astro.url`
*
* (with base from `site` in Astro root config.)
* */
canonicalUrl?: string;

/**
* **Default**: `'website'`
* */
type?: string;
/**
* **Default**: `'website'`
* */
type?: string;

/**
* Adds
* `<meta name="generator" content={Astro.generator} />`
*
* **Default**: `true`
* */
astroGenerator?: boolean;
/**
* Adds
* `<meta name="generator" content={Astro.generator} />`
*
* **Default**: `true`
* */
astroGenerator?: boolean;
}
70 changes: 35 additions & 35 deletions app/SEOMetadata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ import { SEOMetadata } from 'astro-seo-metadata';
```astro
<!-- ... -->
<head>
<!-- Place component inside `HEAD` tag -->

<!-- All properties are optional -->
<SEOMetadata
siteName={'Le Website'}
title={'Le cool title'}
description={'Le insightful description'}
image={'http://example.com/the_image_url-preferably_absolute.jpg'}
favicon={'/favicon.svg'}
author="Julian Cataldo"
copyright="ISC"
astroSitemap={true}
canonicalUrl={Astro.url.toString()}
type={'website'}
astroGenerator={true}
/>

<!-- ... -->
<!-- Place component inside `HEAD` tag -->

<!-- All properties are optional -->
<SEOMetadata
siteName={'Le Website'}
title={'Le cool title'}
description={'Le insightful description'}
image={'http://example.com/the_image_url-preferably_absolute.jpg'}
favicon={'/favicon.svg'}
author="Julian Cataldo"
copyright="ISC"
astroSitemap={true}
canonicalUrl={Astro.url.toString()}
type={'website'}
astroGenerator={true}
/>

<!-- ... -->
</head>
```

Expand All @@ -59,8 +59,8 @@ In `<head>`:
<!-- SEO -->

<link
rel="canonical"
href="https://code.juliancataldo.com/component/astro-seo"
rel="canonical"
href="https://code.juliancataldo.com/component/astro-seo"
/>

<meta property="og:type" content="website" />
Expand All @@ -69,43 +69,43 @@ In `<head>`:
<meta property="og:site_name" content="Julian's Web Garden" />

<title>
🚀&nbsp;&nbsp;Astro — SEO | Bare minimum SEO meta tags to make most social
networks and Google engine happy. | 🚀&nbsp;&nbsp;Astro — SEO
🚀&nbsp;&nbsp;Astro — SEO | Bare minimum SEO meta tags to make most social
networks and Google engine happy. | 🚀&nbsp;&nbsp;Astro — SEO
</title>

<meta
property="og:title"
content="🚀&nbsp;&nbsp;Astro — SEO | Bare minimum SEO meta tags to make most social networks and Google engine happy. | 🚀&nbsp;&nbsp;Astro — SEO"
property="og:title"
content="🚀&nbsp;&nbsp;Astro — SEO | Bare minimum SEO meta tags to make most social networks and Google engine happy. | 🚀&nbsp;&nbsp;Astro — SEO"
/>
<meta
name="twitter:title"
content="🚀&nbsp;&nbsp;Astro — SEO | Bare minimum SEO meta tags to make most social networks and Google engine happy. | 🚀&nbsp;&nbsp;Astro — SEO"
name="twitter:title"
content="🚀&nbsp;&nbsp;Astro — SEO | Bare minimum SEO meta tags to make most social networks and Google engine happy. | 🚀&nbsp;&nbsp;Astro — SEO"
/>

<meta
property="og:image:alt"
content="Building blocks for making progressive and future-proof websites.
property="og:image:alt"
content="Building blocks for making progressive and future-proof websites.
Components collection features Astro, HTML, SCSS, JS, TS…
Configurations features ESLint, Prettier, Stylelint…"
/>
<meta
name="description"
property="og:description"
content="Building blocks for making progressive and future-proof websites.
name="description"
property="og:description"
content="Building blocks for making progressive and future-proof websites.
Components collection features Astro, HTML, SCSS, JS, TS…
Configurations features ESLint, Prettier, Stylelint…"
/>
<meta
name="twitter:description"
content="Building blocks for making progressive and future-proof websites.
name="twitter:description"
content="Building blocks for making progressive and future-proof websites.
Components collection features Astro, HTML, SCSS, JS, TS…
Configurations features ESLint, Prettier, Stylelint…"
/>

<meta property="og:image" content="https://code.juliancataldo.com/poster.png" />
<meta
name="twitter:image:src"
content="https://code.juliancataldo.com/poster.png"
name="twitter:image:src"
content="https://code.juliancataldo.com/poster.png"
/>
<meta name="twitter:card" content="summary_large_image" />

Expand Down
Loading