@kidecms/core 0.1.2 → 0.1.4
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.
|
@@ -165,8 +165,10 @@ navItems.sort((a, b) => a.weight - b.weight);
|
|
|
165
165
|
<head>
|
|
166
166
|
<meta charset="utf-8" />
|
|
167
167
|
<meta name="viewport" content="width=device-width" />
|
|
168
|
-
<link
|
|
169
|
-
|
|
168
|
+
<link
|
|
169
|
+
rel="icon"
|
|
170
|
+
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E%F0%9F%AA%90%3C/text%3E%3C/svg%3E"
|
|
171
|
+
/>
|
|
170
172
|
<title>{title}</title>
|
|
171
173
|
<script is:inline>
|
|
172
174
|
if (!document.cookie.includes("tz="))
|
package/dist/integration.js
CHANGED
|
@@ -70,7 +70,25 @@ export default function cmsIntegration(options) {
|
|
|
70
70
|
const corePkgDir = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
|
|
71
71
|
const adminDir = path.join(corePkgDir, "admin");
|
|
72
72
|
const routesDir = path.join(corePkgDir, "routes");
|
|
73
|
-
|
|
73
|
+
// Find tw-animate-css — pnpm may hoist it anywhere in the dep tree
|
|
74
|
+
const findTwAnimate = () => {
|
|
75
|
+
const candidates = [
|
|
76
|
+
path.join(corePkgDir, "node_modules", "tw-animate-css", "dist", "tw-animate.css"),
|
|
77
|
+
path.join(root, "node_modules", "tw-animate-css", "dist", "tw-animate.css"),
|
|
78
|
+
];
|
|
79
|
+
// Walk up from corePkgDir
|
|
80
|
+
let dir = corePkgDir;
|
|
81
|
+
while (dir !== path.dirname(dir)) {
|
|
82
|
+
candidates.push(path.join(dir, "node_modules", "tw-animate-css", "dist", "tw-animate.css"));
|
|
83
|
+
dir = path.dirname(dir);
|
|
84
|
+
}
|
|
85
|
+
for (const candidate of candidates) {
|
|
86
|
+
if (existsSync(candidate))
|
|
87
|
+
return candidate;
|
|
88
|
+
}
|
|
89
|
+
return candidates[0];
|
|
90
|
+
};
|
|
91
|
+
const twAnimateCssPath = findTwAnimate();
|
|
74
92
|
const userAdminCss = path.resolve(root, "src/styles/admin.css");
|
|
75
93
|
const generatedDir = path.join(root, "node_modules", ".kide");
|
|
76
94
|
mkdirSync(generatedDir, { recursive: true });
|