Преглед на файлове

fix(deps): lock Unhead to stable v1.11.20 and restore API usage

unknown преди 3 часа
родител
ревизия
ef15001280
променени са 3 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 2 2
      package.json
  2. 2 2
      src/main.ts
  3. 2 2
      src/pages/Index.vue

+ 2 - 2
package.json

@@ -15,8 +15,8 @@
   },
   "dependencies": {
     "@tanstack/vue-query": "^5.25.0",
-    "@unhead/vue": "^3.0.4",
-    "@unhead/schema": "^3.0.4",
+    "@unhead/vue": "^1.11.20",
+    "@unhead/schema": "^1.11.20",
     "@types/three": "^0.183.1",
     "@vueuse/core": "^10.11.1",
     "@vueuse/motion": "^3.0.3",

+ 2 - 2
src/main.ts

@@ -2,7 +2,7 @@ import { createApp } from "vue";
 import { createPinia } from "pinia";
 import { MotionPlugin } from "@vueuse/motion";
 import App from "./App.vue";
-import { createUnhead } from "@unhead/vue";
+import { createHead } from "@unhead/vue";
 import router from "./router";
 import i18n from "./i18n";
 import "./index.css";
@@ -16,7 +16,7 @@ window.addEventListener('vite:preloadError', () => {
 const app = createApp(App);
 
 app.use(createPinia());
-app.use(createUnhead());
+app.use(createHead());
 app.use(MotionPlugin);
 app.use(router);
 app.use(i18n);

+ 2 - 2
src/pages/Index.vue

@@ -34,8 +34,8 @@ useHead({
   ],
   script: [
     {
-      type: 'application/ld+json' as any,
-      innerHTML: JSON.stringify({
+      type: 'application/ld+json',
+      children: JSON.stringify({
         "@context": "https://schema.org",
         "@type": "LocalBusiness",
         "name": "Radionica 3D",