Skip to content

Commit 91fcd97

Browse files
committed
🔖 version 0.19.0
1 parent 33da836 commit 91fcd97

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nullstack",
3-
"version": "0.18.1",
3+
"version": "0.19.0",
44
"description": "Feature-Driven Full Stack JavaScript Components",
55
"main": "./types/index.d.ts",
66
"author": "Mortaro",
@@ -43,7 +43,7 @@
4343
"sass-loader": "13.2.0",
4444
"style-loader": "^3.3.1",
4545
"swc-loader": "0.2.3",
46-
"swc-plugin-nullstack": "0.1.2",
46+
"swc-plugin-nullstack": "0.1.3",
4747
"terser-webpack-plugin": "5.3.6",
4848
"time-analytics-webpack-plugin": "^0.1.20",
4949
"webpack": "^5.0.0",

tests/src/Head.jsx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// deprecate project.type
2+
// deprecate project.viewport
3+
// deprecate page.schema
4+
5+
export default function Head({ router, project, page }) {
6+
const image = page.image
7+
const canonical = page.canonical || router.url
8+
const favicon = project.favicon // cdn
9+
return (
10+
<html lang={page.locale}>
11+
<head>
12+
<title>{page.title} - {project.title}</title>
13+
<meta name="description" content={page.description} />
14+
<link rel="icon" href={favicon} type="image/png" />
15+
<link rel="canonical" href={canonical} />
16+
<meta name="robots" content={page.robots} />
17+
18+
<meta property="og:title" content={page.title} />
19+
<meta property="og:description" content={page.description} />
20+
<meta property="og:image" content={image} />
21+
<meta property="og:site_name" content={project.name} />
22+
<meta property="og:locale" content={page.locale} />
23+
<meta property="og:type" content="website" />
24+
<meta property="og:url" content={canonical} />
25+
26+
<meta name="application-name" content={project.name} />
27+
<link rel="shortcut icon" href={favicon} type="image/png" />
28+
<meta name="mobile-web-app-capable" content="yes" />
29+
30+
<meta name="apple-mobile-web-app-title" content={project.name} />
31+
<meta name="apple-mobile-web-app-capable" content="yes" />
32+
<link rel="apple-touch-icon" sizes="180x180" href={cdn(project.icons['180'])} />
33+
34+
<meta name="msapplication-starturl" content="/" />
35+
<meta name="msapplication-TileColor" content={project.backgroundColor || project.color} />
36+
37+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
38+
</head>
39+
</html>
40+
)
41+
}

0 commit comments

Comments
 (0)