Skip to content

Commit

Permalink
core(update): update to Nuxt 13 (Vue 3.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfxcode committed Sep 12, 2024
1 parent e2d664e commit 81ea1ab
Show file tree
Hide file tree
Showing 7 changed files with 1,620 additions and 1,503 deletions.
2 changes: 1 addition & 1 deletion app/components/tiptap/TipTap.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup>
import { Editor, EditorContent } from '@tiptap/vue-3'
import { Highlight } from '@tiptap/extension-highlight'
import { TextAlign } from '@tiptap/extension-text-align'
import { StarterKit } from '@tiptap/starter-kit'
import { Editor, EditorContent } from '@tiptap/vue-3'
const props = defineProps({
modelValue: {
Expand Down
4 changes: 4 additions & 0 deletions app/pages/prime/messages.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
<script setup lang="ts">
const { showSuccessMessage, showInfoMessage, showWarnMessage, showErrorMessage } = useMessages()
const { confirmAction, confirmDelete } = useConfirmation()
const lastDeletedId = ref(0)
function doSomeAction() {
// do something
}
function doSomeDeleteAction(idToDelete: number) {
// do something
lastDeletedId.value = idToDelete
}
</script>

Expand Down
4 changes: 2 additions & 2 deletions app/pages/prime/validation.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang='ts'>
import { reactive, ref } from 'vue'
import { useFormKitRepeater, useFormKitSchema } from '@sfxcode/formkit-primevue/composables'
import { FormKitDataEdit } from '@sfxcode/formkit-primevue/components'
import { useFormKitRepeater, useFormKitSchema } from '@sfxcode/formkit-primevue/composables'
import { reactive, ref } from 'vue'
const { addElement, addList, addListGroup } = useFormKitSchema()
const { addListGroupFunctions, addGroupButtons, addInsertButton } = useFormKitRepeater()
Expand Down
4 changes: 2 additions & 2 deletions app/plugins/sidebar.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VueSidebarMenu from 'vue-sidebar-menu'
import type { Component } from 'vue'
import { h } from 'vue'
import { NuxtLink } from '#components'
import { h } from 'vue'
import VueSidebarMenu from 'vue-sidebar-menu'

export default defineNuxtPlugin((nuxtApp) => {
const nuxtLink: Component = {
Expand Down
5 changes: 2 additions & 3 deletions app/stores/data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { acceptHMRUpdate, defineStore } from 'pinia'
import { consola } from 'consola'
import { acceptHMRUpdate, defineStore } from 'pinia'

export const useDataStore = defineStore({
id: 'data',
Expand All @@ -14,8 +14,7 @@ export const useDataStore = defineStore({
consola.debug('fetching data ...')
await fetch('/api/products').then(res => res.json()).then((d) => {
this.products = d.data
})
.catch(error => consola.error(error))
}).catch(error => consola.error(error))
}
},
},
Expand Down
46 changes: 24 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,43 +19,45 @@
"postinstall": "nuxt prepare"
},
"devDependencies": {
"@antfu/eslint-config": "3.0.0",
"@formkit/nuxt": "1.6.5",
"@iconify-json/carbon": "^1.1.37",
"@iconify-json/mdi": "^1.1.68",
"@iconify-json/prime": "^1.1.13",
"@iconify-json/twemoji": "^1.1.16",
"@antfu/eslint-config": "3.6.0",
"@formkit/nuxt": "1.6.6",
"@iconify-json/carbon": "^1.2.1",
"@iconify-json/mdi": "^1.2.0",
"@iconify-json/prime": "^1.2.0",
"@iconify-json/twemoji": "^1.2.0",
"@nuxt/content": "2.13.2",
"@nuxt/devtools": "1.4.1",
"@nuxt/fonts": "^0.7.2",
"@nuxt/devtools": "1.4.2",
"@nuxt/fonts": "^0.8.0",
"@nuxt/image": "^1.8.0",
"@nuxt/test-utils": "^3.14.1",
"@nuxtjs/i18n": "8.5.1",
"@nuxtjs/i18n": "8.5.3",
"@pinia/nuxt": "^0.5.4",
"@primevue/nuxt-module": "4.0.5",
"@primevue/themes": "4.0.5",
"@sfxcode/formkit-primevue": "^2.4.5",
"@primevue/nuxt-module": "4.0.7",
"@primevue/themes": "4.0.7",
"@sfxcode/formkit-primevue": "^2.4.8",
"@tiptap/extension-highlight": "^2.6.6",
"@tiptap/extension-text-align": "^2.6.6",
"@tiptap/extension-text-style": "^2.6.6",
"@tiptap/pm": "^2.6.6",
"@tiptap/starter-kit": "^2.6.6",
"@tiptap/vue-3": "^2.6.6",
"@unocss/nuxt": "^0.62.3",
"@vitest/ui": "^2.0.5",
"@vitest/ui": "^2.1.0",
"@vue/test-utils": "^2.4.6",
"@vueuse/nuxt": "^11.0.3",
"c8": "^10.1.2",
"eslint": "^9.9.1",
"happy-dom": "^15.4.2",
"eslint": "^9.10.0",
"happy-dom": "^15.7.4",
"jsdom": "^25.0.0",
"nuxt": "^3.13.0",
"primevue": "^4.0.5",
"sass": "1.77.8",
"typescript": "^5.5.4",
"unstorage": "^1.10.2",
"vitest": "^2.0.5",
"nuxt": "^3.13.1",
"primevue": "^4.0.7",
"quill": "^2.0.2",
"sass": "1.78.0",
"typescript": "^5.6.2",
"unstorage": "^1.12.0",
"vitest": "^2.1.0",
"vue-i18n": "9.14.0",
"vue-sidebar-menu": "^5.4.1"
},
"packageManager": "pnpm@9.4.0+sha256.b6fd0bfda555e7e584ad7e56b30c68b01d5a04f9ee93989f4b93ca8473c49c74"
"packageManager": "pnpm@9.9.0+sha256.7a4261e50d9a44d9240baf6c9d6e10089dcf0a79d0007f2a26985a6927324177"
}
Loading

0 comments on commit 81ea1ab

Please sign in to comment.