Here are some guidelines to ensure a quick merge of your submissions!
To allow you and other developers to quickly navigate through Vue Single-File Components all pages and components in this repository share a common structure.
-
import-like and meta elements have to be added first without preceding comments
import: likeimport { x } from 'y'definePageMetause: likeconst { x } = useNuxtApp()
-
below, elements that define the data structure of a component require separation by comments
// refs: likeconst x = ref<HTMLElement>()// api data: likeconst x = useXMutation()// data: likeconst x = ref(...)// computations: likeconst x = computed(() => y)// vuelidate: rules andconst v$ = useVuelidate(rules, form)// methods: useconst x = () => ...instead offunction x() {...}// lifecycle: likeonMounted(),watch(), ... (in that order)// initialization: likeinit(),useHeadDefault(), ... (in that order)