Skip to content

Commit a6d7ae5

Browse files
committed
[FIX] SEO tags docs + [FIX] For component type
1 parent b2e8b1f commit a6d7ae5

10 files changed

Lines changed: 154 additions & 4 deletions

File tree

apps/react-tools-demo/index.html

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,33 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/react-red.webp" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>React tools</title>
7+
<!-- Primary Meta Tags -->
8+
<title>React Tools</title>
9+
<meta name="author" content="Andrea Cosentino">
10+
<meta name="description" content="A collection of Hooks, Components, Utilities and Types for React">
11+
<meta name="google-site-verification" content="KH1Ev2g2Ff7vK1e6y7jUo82CDQRU7pl7kHBMMdm3ILg" />
12+
<meta name="keywords" content="react, tools, custom, hooks">
13+
<meta name="language" content="English">
14+
<!-- <meta name="robots" content="index, follow">-->
15+
<meta name="title" content="React Tools">
16+
<meta name="robots" content="index, follow">
17+
<meta name="revisit-after" content="3 days">
18+
<meta http-equiv="Reply-to" content="admin@ndria.dev">
19+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
20+
21+
<!-- Open Graph / Facebook -->
22+
<meta property="og:type" content="website">
23+
<meta property="og:url" content="https://ndriadev.github.io/react-tools/">
24+
<meta property="og:title" content="React Tools">
25+
<meta property="og:description" content="A collection of Hooks, Components, Utilities and Types for React">
26+
<meta property="og:image" content="/react-red.webp">
27+
28+
<!-- Twitter -->
29+
<meta property="twitter:card" content="summary_large_image">
30+
<meta property="twitter:url" content="https://ndriadev.github.io/react-tools/">
31+
<meta property="twitter:title" content="React Tools">
32+
<meta property="twitter:description" content="A collection of Hooks, Components, Utilities and Types for React">
33+
<meta property="twitter:image" content="/react-red.webp">
834
</head>
935
<body>
1036
<div id="root"></div>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* TEAM */
2+
Developer: Andrea Cosentino
3+
Contact: admin@ndria.dev
4+
Telegram: @ndria_dev
5+
Location: Italy
6+
website: www.ndria.dev
7+
8+
9+
/* SITE */
10+
Last update: 20/03/2024
11+
Standards: HTML5, CSS3
12+
Components: REACT
13+
Software: A collection of Hooks, Components, Utilities and Types for React
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
User-agent: Googlebot
2+
Crawl-delay: 10
3+
4+
User-agent: googlebot-image
5+
Crawl-delay: 10
6+
7+
User-agent: googlebot-mobile
8+
Crawl-delay: 10
9+
10+
User-agent: mediapartners-google
11+
Crawl-delay: 10
12+
13+
User-agent: adsbot-google
14+
Crawl-delay: 10
15+
16+
User-agent: MSNBot
17+
Crawl-delay: 10
18+
19+
20+
Sitemap: https://ndriadev.github.io/react-tools/sitemap.xml
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset
3+
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
6+
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
7+
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
8+
9+
10+
<url>
11+
<loc>https://ndriadev.github.io/react-tools/</loc>
12+
<lastmod>2024-03-20T23:30:00+00:00</lastmod>
13+
</url>
14+
15+
16+
</urlset>

docs/humans.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* TEAM */
2+
Developer: Andrea Cosentino
3+
Contact: admin@ndria.dev
4+
Telegram: @ndria_dev
5+
Location: Italy
6+
website: www.ndria.dev
7+
8+
9+
/* SITE */
10+
Last update: 20/03/2024
11+
Standards: HTML5, CSS3
12+
Components: REACT
13+
Software: A collection of Hooks, Components, Utilities and Types for React

docs/index.html

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,33 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/react-tools/react-red.webp" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>React tools</title>
7+
<!-- Primary Meta Tags -->
8+
<title>React Tools</title>
9+
<meta name="author" content="Andrea Cosentino">
10+
<meta name="description" content="A collection of Hooks, Components, Utilities and Types for React">
11+
<meta name="google-site-verification" content="KH1Ev2g2Ff7vK1e6y7jUo82CDQRU7pl7kHBMMdm3ILg" />
12+
<meta name="keywords" content="react, tools, custom, hooks">
13+
<meta name="language" content="English">
14+
<!-- <meta name="robots" content="index, follow">-->
15+
<meta name="title" content="React Tools">
16+
<meta name="robots" content="index, follow">
17+
<meta name="revisit-after" content="3 days">
18+
<meta http-equiv="Reply-to" content="admin@ndria.dev">
19+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
20+
21+
<!-- Open Graph / Facebook -->
22+
<meta property="og:type" content="website">
23+
<meta property="og:url" content="https://ndriadev.github.io/react-tools/">
24+
<meta property="og:title" content="React Tools">
25+
<meta property="og:description" content="A collection of Hooks, Components, Utilities and Types for React">
26+
<meta property="og:image" content="/react-red.webp">
27+
28+
<!-- Twitter -->
29+
<meta property="twitter:card" content="summary_large_image">
30+
<meta property="twitter:url" content="https://ndriadev.github.io/react-tools/">
31+
<meta property="twitter:title" content="React Tools">
32+
<meta property="twitter:description" content="A collection of Hooks, Components, Utilities and Types for React">
33+
<meta property="twitter:image" content="/react-red.webp">
834
<script type="module" crossorigin src="/react-tools/assets/index-t7AdqrYD.js"></script>
935
<link rel="stylesheet" crossorigin href="/react-tools/assets/index-81s9do9M.css">
1036
</head>

docs/robots.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
User-agent: Googlebot
2+
Crawl-delay: 10
3+
4+
User-agent: googlebot-image
5+
Crawl-delay: 10
6+
7+
User-agent: googlebot-mobile
8+
Crawl-delay: 10
9+
10+
User-agent: mediapartners-google
11+
Crawl-delay: 10
12+
13+
User-agent: adsbot-google
14+
Crawl-delay: 10
15+
16+
User-agent: MSNBot
17+
Crawl-delay: 10
18+
19+
20+
Sitemap: https://ndriadev.github.io/react-tools/sitemap.xml

docs/sitemap.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset
3+
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
6+
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
7+
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
8+
9+
10+
<url>
11+
<loc>https://ndriadev.github.io/react-tools/</loc>
12+
<lastmod>2024-03-20T23:30:00+00:00</lastmod>
13+
</url>
14+
15+
16+
</urlset>

packages/react-tools-lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@ndriadev/react-tools",
33
"description": "A React library of hooks, components, utils and types ready to use",
44
"private": false,
5-
"version": "1.6.0",
5+
"version": "1.6.1",
66
"type": "module",
77
"files": [
88
"./dist"

packages/react-tools-lib/src/components/For.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const For = memo(<T extends unknown>({ of, children, filter, map, sort, e
2525
<>
2626
{
2727
arr.map((el, index) => {
28-
const key = (elementKey ? typeof elementKey === "function" ? elementKey(el) : typeof el === "object" && el !== null && (elementKey as keyof T) in el ? el[elementKey as keyof T] : elementKey : index) as Key;
28+
const key = (elementKey ? typeof elementKey === "function" ? elementKey(el as object) : typeof el === "object" && el !== null && (elementKey as keyof T) in el ? el[elementKey as keyof T] : elementKey : index) as Key;
2929
const elem = children(el, index, key) as ReactElement
3030
return isValidElement(elem)
3131
? cloneElement(

0 commit comments

Comments
 (0)