@promakeai/cli 0.9.0 → 0.9.2

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": "@promakeai/cli",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "promake": "dist/index.js"
@@ -203,14 +203,17 @@
203
203
 
204
204
  <!-- SEO -->
205
205
  <title>Site Name</title>
206
- <meta name="description" content="Your site description" />
206
+ <meta name="description" content="Built with Promake — a website created in minutes with AI." />
207
207
  <meta name="author" content="Site Name" />
208
208
 
209
209
  <!-- Open Graph -->
210
210
  <meta property="og:title" content="Site Name" />
211
- <meta property="og:description" content="Your site description" />
211
+ <meta property="og:description" content="Built with Promake — a website created in minutes with AI." />
212
212
  <meta property="og:type" content="website" />
213
213
  <meta property="og:image" content="" />
214
+ <meta property="og:url" content="" />
215
+ <meta property="og:site_name" content="Site Name" />
216
+ <meta property="og:locale" content="en" />
214
217
 
215
218
  <!-- Twitter Card -->
216
219
  <meta name="twitter:card" content="summary_large_image" />
@@ -222,6 +225,7 @@
222
225
 
223
226
  <!-- Favicon -->
224
227
  <link rel="icon" type="image/svg+xml" href="./favicon.svg" id="favicon" />
228
+ <link rel="apple-touch-icon" sizes="180x180" href="./favicon.svg" id="apple-touch-icon" />
225
229
 
226
230
  <meta name="npm_status" content="active" />
227
231
  </head>
@@ -28,6 +28,10 @@ function stripTrailingSlashes(value: string): string {
28
28
  return value.replace(/\/+$/, '');
29
29
  }
30
30
 
31
+ function ensureHttps(value: string): string {
32
+ return value.replace(/^http:\/\//i, 'https://');
33
+ }
34
+
31
35
  export function MetriaAnalytics() {
32
36
  const injected = useRef(false);
33
37
 
@@ -39,7 +43,7 @@ export function MetriaAnalytics() {
39
43
 
40
44
  injected.current = true;
41
45
 
42
- const normalizedServerUrl = stripTrailingSlashes(analyticsConfig.serverUrl);
46
+ const normalizedServerUrl = ensureHttps(stripTrailingSlashes(analyticsConfig.serverUrl));
43
47
  const script = document.createElement('script');
44
48
  script.async = true;
45
49
  script.src = analyticsConfig.trackerScriptUrl;
@@ -27,10 +27,10 @@
27
27
  },
28
28
  "seo": {
29
29
  "title": "Site Name",
30
- "description": "Your site description",
30
+ "description": "Built with Promake — a website created in minutes with AI.",
31
31
  "author": "Site Name",
32
32
  "ogTitle": "Site Name",
33
- "ogDescription": "Your site description",
33
+ "ogDescription": "Built with Promake — a website created in minutes with AI.",
34
34
  "ogImage": "",
35
35
  "twitterSite": "",
36
36
  "twitterImage": "",
@@ -31,7 +31,7 @@ export const usePageTitle = (options: UsePageTitleOptions = {}) => {
31
31
 
32
32
  descriptionElement.setAttribute("content", metaDescription);
33
33
 
34
- // Set favicon if provided
34
+ // Set favicon and apple-touch-icon if provided
35
35
  if (constants.site.favicon) {
36
36
  const faviconElement = document.querySelector(
37
37
  "#favicon",
@@ -39,6 +39,12 @@ export const usePageTitle = (options: UsePageTitleOptions = {}) => {
39
39
  if (faviconElement) {
40
40
  faviconElement.href = constants.site.favicon;
41
41
  }
42
+ const appleTouchIcon = document.querySelector(
43
+ "#apple-touch-icon",
44
+ ) as HTMLLinkElement;
45
+ if (appleTouchIcon) {
46
+ appleTouchIcon.href = constants.site.favicon;
47
+ }
42
48
  }
43
49
  }, [options]);
44
50