34 | {{ description }} 35 |
36 |This is some content
6 |<{{ name }}/>
16 |
17 |
--------------------------------------------------------------------------------
/packages/devtools/client/components/ComposableTree.vue:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 | {{ path }}
16 | 4 | This is an experimental feature 5 |6 | 7 | Timeline tracks your route navigations and functions calls in your Nuxt application. It can be used to debug performance issues and to understand how your application works. 8 | 9 | ## Function calls 10 | 11 | Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through `import {} from '#imports'`. 12 | 13 | ```vue 14 | 25 | ``` 26 | 27 | By default, it tracks Nuxt provided composables as well as user defined functions. You can include/exclude functions by using the `include` and `exclude` options in the `nuxt.config.js` file. 28 | 29 | ```js 30 | export default defineNuxtConfig({ 31 | devtools: { 32 | timeline: { 33 | functions: { 34 | include: [ 35 | // track `useMouse` 36 | 'useMouse', 37 | // track all functions starting with `use` 38 | /^use[A-Z]/, 39 | // track all functions from @vueuse/core 40 | entry => entry.from === '@vueuse/core', 41 | ], 42 | exclude: [ 43 | 'useRouter' 44 | ] 45 | } 46 | } 47 | } 48 | }) 49 | ``` 50 | -------------------------------------------------------------------------------- /packages/devtools/client/components/docs/virtual-files.md: -------------------------------------------------------------------------------- 1 | # Virtual Files 2 | 3 | Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience. 4 | -------------------------------------------------------------------------------- /packages/devtools/client/components/help/HelpImportsDirs.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 |
16 | {{ name }}
17 |
18 | Current route: {{ route.path }}
15 | Learn more about Nuxt Routing 16 |11 | Note for module authors: 12 |
13 | Nuxt DevTools is in early preview and the API is subject to change. 14 | Which means the setup in this template is only presenting the current state of the API. 15 | We suggest following closely to the changes in the