@xingwangzhe/stalux 1.21.10 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xingwangzhe/stalux",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
4
4
|
"description": "A powerful, modern Astro blog theme — use as template or install as plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astro",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"prepare": "git config core.hooksPath scripts/git-hooks"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
+
"@astrojs/partytown": "^2.1.7",
|
|
78
79
|
"@astrojs/rss": "^4.0.19",
|
|
79
80
|
"@astrojs/sitemap": "^3.7.3",
|
|
80
81
|
"@expressive-code/plugin-line-numbers": "^0.44.1",
|
|
@@ -99,11 +100,11 @@
|
|
|
99
100
|
"temml": "^0.13.4"
|
|
100
101
|
},
|
|
101
102
|
"devDependencies": {
|
|
102
|
-
"astro": "^7.2.
|
|
103
|
-
"knip": "^6.32.
|
|
103
|
+
"astro": "^7.2.1",
|
|
104
|
+
"knip": "^6.32.2",
|
|
104
105
|
"license-checker-rseidelsohn": "5.0.1",
|
|
105
|
-
"oxfmt": "^0.
|
|
106
|
-
"oxlint": "^1.
|
|
106
|
+
"oxfmt": "^0.63.0",
|
|
107
|
+
"oxlint": "^1.78.0",
|
|
107
108
|
"typescript": "^7.0.2"
|
|
108
109
|
},
|
|
109
110
|
"peerDependencies": {
|
|
@@ -6,29 +6,33 @@ const headConfig = getHeadData(configEntries);
|
|
|
6
6
|
const gaID = headConfig?.googleAnalyticsId;
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
script
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
9
|
+
{
|
|
10
|
+
gaID && (
|
|
11
|
+
<>
|
|
12
|
+
<script
|
|
13
|
+
type="text/partytown"
|
|
14
|
+
src={`https://www.googletagmanager.com/gtag/js?id=${gaID}`}></script>
|
|
15
|
+
<script is:inline define:vars={{ gaID }}>
|
|
16
|
+
window.dataLayer = window.dataLayer || [];
|
|
17
|
+
window.gtag =
|
|
18
|
+
window.gtag ||
|
|
19
|
+
function () {
|
|
20
|
+
dataLayer.push(arguments);
|
|
21
|
+
};
|
|
22
|
+
if (!window.__staluxGAConfigured) {
|
|
23
|
+
window.__staluxGAConfigured = true;
|
|
24
|
+
gtag("js", new Date());
|
|
25
|
+
gtag("config", gaID);
|
|
26
|
+
}
|
|
27
|
+
if (!window.__staluxGAListenerAdded) {
|
|
28
|
+
window.__staluxGAListenerAdded = true;
|
|
29
|
+
document.addEventListener("astro:page-load", () => {
|
|
30
|
+
gtag("event", "page_view", {
|
|
31
|
+
page_path: window.location.pathname,
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
</script>
|
|
36
|
+
</>
|
|
37
|
+
)
|
|
38
|
+
}
|