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

upgrade to nuxt 3.5.3 and vuetify 3.3.1

Olivier Massot преди 2 години
родител
ревизия
1b01499d7a
променени са 4 файла, в които са добавени 469 реда и са изтрити 455 реда
  1. 26 0
      i18n.config.ts
  2. 4 27
      nuxt.config.ts
  3. 5 4
      package.json
  4. 434 424
      yarn.lock

+ 26 - 0
i18n.config.ts

@@ -0,0 +1,26 @@
+import {defineI18nConfig} from "#i18n";
+
+export default defineI18nConfig(() => ({
+        legacy: false,
+        datetimeFormats: {
+            'fr': {
+                short: {
+                    year: 'numeric', month: 'numeric', day: 'numeric'
+                },
+                long: {
+                    year: 'numeric', month: 'numeric', day: 'numeric',
+                    hour: 'numeric', minute: 'numeric'
+                }
+            },
+            'en': {
+                short: {
+                    year: 'numeric', month: 'numeric', day: 'numeric'
+                },
+                long: {
+                    year: 'numeric', month: 'numeric', day: 'numeric',
+                    hour: 'numeric', minute: 'numeric'
+                }
+            }
+        }
+    })
+)

+ 4 - 27
nuxt.config.ts

@@ -1,6 +1,5 @@
 import fs from 'fs';
 import vuetify from 'vite-plugin-vuetify'
-import {NuxtI18nOptions} from "@nuxtjs/i18n"
 
 let https = {}
 
@@ -48,7 +47,7 @@ export default defineNuxtConfig({
         }
     },
     hooks: {
-        'builder:watch': console.log
+        'builder:watch': console.log,
     },
     app: {
         head: {
@@ -87,6 +86,7 @@ export default defineNuxtConfig({
                 vuetify()
                 //Remplacer par cela quand l'issue https://github.com/vuetifyjs/vuetify-loader/issues/273 sera règlée..
                 // voir aussi : https://github.com/nuxt/nuxt/issues/15412 et https://github.com/vuetifyjs/vuetify-loader/issues/290
+                // voir aussi : https://github.com/jrutila/nuxt3-vuetify3-bug
                 // vuetify({
                 //     styles: { configFile: './assets/css/settings.scss' }
                 // })
@@ -144,32 +144,9 @@ export default defineNuxtConfig({
             }
         ],
         defaultLocale: 'fr',
-        fallbackLocale: 'en',
         detectBrowserLanguage: false,
-        vueI18n: {
-            legacy: false,
-            datetimeFormats: {
-                'fr': {
-                    short: {
-                        year: 'numeric', month: 'numeric', day: 'numeric'
-                    },
-                    long: {
-                        year: 'numeric', month: 'numeric', day: 'numeric',
-                        hour: 'numeric', minute: 'numeric'
-                    }
-                },
-                'en': {
-                    short: {
-                        year: 'numeric', month: 'numeric', day: 'numeric'
-                    },
-                    long: {
-                        year: 'numeric', month: 'numeric', day: 'numeric',
-                        hour: 'numeric', minute: 'numeric'
-                    }
-                }
-            }
-        },
-    } as NuxtI18nOptions,
+        vueI18n: './i18n.config.ts'
+    },
     build: {
         transpile: ['vuetify', '@vuepic/vue-datepicker', 'pinia', 'pinia-orm', 'date-fns'],
     },

+ 5 - 4
package.json

@@ -15,7 +15,8 @@
     "lint": "eslint --ext \".ts,.js,.vue\" --ignore-path .gitignore .",
     "lint-fix": "eslint --fix --ext \".ts,.js,.vue\" --ignore-path .gitignore .",
     "test": "vitest run",
-    "enable-devtools": "nuxi devtools enable"
+    "enable-devtools": "nuxi devtools enable",
+    "nuxt-upgrade": "nuxi upgrade --force"
   },
   "dependencies": {
     "@casl/ability": "^6.3.3",
@@ -24,7 +25,7 @@
     "@mdi/font": "^7.0.96",
     "@nuxt/image": "^0.7.1",
     "@nuxt/image-edge": "^1.0.0-27968280.9739e4d",
-    "@nuxtjs/i18n": "^8.0.0-beta.10",
+    "@nuxtjs/i18n": "^8.0.0-beta.12",
     "@pinia-orm/nuxt": "^1.6.7",
     "@pinia/nuxt": "0.4.7",
     "@types/file-saver": "^2.0.5",
@@ -39,7 +40,7 @@
     "libphonenumber-js": "1.10.24",
     "lodash": "^4.17.21",
     "lodash-es": "^4.17.21",
-    "nuxt": "^3.3.3",
+    "nuxt": "^3.5.3",
     "pinia": "^2.0.33",
     "pinia-orm": "^1.5.1",
     "sass": "^1.59.3",
@@ -47,7 +48,7 @@
     "vite-plugin-vuetify": "^1.0.1",
     "vue-tel-input-vuetify": "^1.5.3",
     "vue-the-mask": "^0.11.1",
-    "vuetify": "3.1.15",
+    "vuetify": "3.3.5",
     "yaml-import": "^2.0.0"
   },
   "devDependencies": {

Файловите разлики са ограничени, защото са твърде много
+ 434 - 424
yarn.lock


Някои файлове не бяха показани, защото твърде много файлове са промени