Commit Graph

141 Commits

Author SHA1 Message Date
HG 173fbfd06e
docs: demonstrate the multiple `useState` with same key (#5059)
* Better demonstrate the UseState concept

Add another counter instance with the same id and show that they change in parallel

* Apply suggestions from code review

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-05-20 11:12:35 +02:00
pooya parsa 4712e99411
refactor!: rename nuxt3 to nuxt (#4449) 2022-04-20 10:52:39 +02:00
Daniel Roe b38dc097f6
feat(nuxt3): allow separating client and server components (#4390)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-04-19 21:13:55 +02:00
pooya parsa 0b8eeaf40f
build: update nuxt ui to ^0.1.0 (#4420) 2022-04-19 10:06:21 +02:00
Daniel Roe e0b2a3bfe4
chore: use `node:` prefix for built-in modules (#4384) 2022-04-15 17:19:05 +02:00
Clément Ollivier 25ced97f16
docs: add server-routes example (#4301) 2022-04-13 19:25:45 +02:00
Anthony Fu e31c604ac4
feat(vite-node): on-demand manifest generation (#3968)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-04-12 12:04:55 +02:00
Daniel Roe 1091d456a8
feat(nuxt, bridge): support `titleTemplate`, `viewport` and `charset` for `useHead` (#4221) 2022-04-11 11:03:31 +02:00
Sébastien Chopin 8284e7fa21 docs: update link to examples 2022-04-06 17:36:43 +02:00
Clément Ollivier 9a0fc57724
docs: update sitemap (#4063)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-04-06 07:56:08 +02:00
Daniel Roe e90b8c28d1
refactor(nuxt3,bridge)!: rename `useMeta` to `useHead` (#4066) 2022-04-05 16:02:29 +02:00
Daniel Roe fdd38f958c
feat(nitro): support for rendering ssr teleports to body (#3909)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-04-01 16:06:48 +02:00
Clément Ollivier 169aa35ef7
fix(examples): add sub-folder to github examples path (#3996) 2022-03-31 15:31:04 +02:00
Clément Ollivier 1a7b570c82
docs(examples): add examples to docs (#3966)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-30 17:59:28 +02:00
Clément Ollivier 9181734912
docs(examples): fix minor errors (#3965) 2022-03-30 10:34:05 +02:00
Anthony Fu 8dd77d7b6e
feat: `refreshNuxtData` function and `app:data:refresh` hook (#3929)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-28 19:12:41 +02:00
Clément Ollivier 797da68979
docs(examples): normalize examples using tips (#3852) 2022-03-23 09:44:36 +01:00
Kevin Marrec 7c0d2e176c
feat(nuxt3): extends support for `pages` & `middleware` directories (#3783)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-22 19:12:54 +01:00
Clément Ollivier ff2cb53476
docs(examples): replace nlink by nuxtlink (#3772) 2022-03-18 11:59:02 +01:00
Anthony Fu f69126e8f4
feat: support reactivity transform (#3737)
Co-authored-by: pooya parsa <pyapar@gmail.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-03-17 23:17:59 +01:00
pooya parsa a50b8ca712
feat(test-utils): test in development mode (#3753) 2022-03-17 22:31:06 +01:00
pooya parsa fb150825ce
feat(nuxt3): `useFetch` with dynamic reactive request (#3731) 2022-03-17 11:47:41 +01:00
pooya parsa 7c0b9140c7
feat(nuxt3): `watch` option for `useAsyncData` to auto refresh (#3722) 2022-03-16 23:49:30 +01:00
pooya parsa b03cdb7114
feat!(nuxt3): use individual config layers for extending (#3717) 2022-03-16 21:36:30 +01:00
Daniel Roe 12304909bc
feat(nuxt3): add `<NuxtErrorBoundary>` component for fine-grained error handling (#3671)
* feat(nuxt3): add `<NuxtErrorBoundary>` component for fine-grained error handling

* feat: add `@error` event handling

* fix: don't clear error on nav

* fix: remove `clearError` wrapper

* fix: remove outdated implementation

* update clear error

* upddate example with FaultyComponent

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-16 16:49:53 +01:00
pooya parsa 131cf69a56
chore: avoid workspace resolution for `@nuxt/test-utils` (#3710) 2022-03-16 14:56:54 +01:00
Anthony Fu 452a7730e0
feat(nuxi): init `nuxi test` support (#3307)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-16 13:34:27 +01:00
Pooya Parsa 970a4d36d5 fix(nuxt-link): handle state without href and to 2022-03-16 11:10:32 +01:00
Kevin Marrec 227ceedebb
feat(nuxt3): extends support for `server/` directory (#3673) 2022-03-15 17:15:19 +01:00
Lucie 4cefce44a3
feat(nuxt3): add `<NuxtLink>` component (#3544)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-14 14:36:32 +01:00
Daniel Roe 5d58ef48af
feat(nitro, nuxt3): allow handling otherwise unhandled runtime errors (#3464)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-11 09:22:16 +01:00
Kevin Marrec 6c083f3d12
feat!(nuxt3): extends support for composables/ directory (#3423)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-09 12:03:36 +01:00
Kevin Marrec 13dd2b98ea
feat(nuxt3): extends support for `plugins/ ` directory (#3462) 2022-03-09 11:51:32 +01:00
Sébastien Chopin 34f1c510b2
docs(example): fix typo on with-universal-router (#3363) 2022-02-22 21:40:20 +00:00
Sébastien Chopin c68215e3fb
docs(examples): Add playground for `with-universal-router` (#3358) 2022-02-22 16:25:47 +00:00
Daniel Roe dbab979a2e
feat(nuxt3): add universal routing utilities (#3274) 2022-02-21 14:03:42 +01:00
pooya parsa 790a54897a
feat!(nuxt3): extends support for `components/` directory (#3108)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
2022-02-07 21:48:25 +01:00
Daniel Roe b3e9cf6fd6
fix(nuxt3)!: key routes by interpolated path (#2976) 2022-02-07 12:32:04 +01:00
pooya parsa 1672148a87
feat(kit): support config `extends` using `unjs/c12` (#3008) 2022-01-31 22:13:58 +01:00
Daniel Roe dccc0c9c6f
feat(nuxt3): add middleware via route meta (#2858) 2022-01-25 13:29:11 +01:00
Sylvain Marroufin 03d33dfdef
chore(examples): add `plugins` example (#2855)
* chore(examples): add `plugins` example

* Update examples/with-plugins/plugins/my-plugin.ts

Co-authored-by: Daniel Roe <daniel@roe.dev>

* chore(examples): remove unused variable

* fix: updates post-review

* Update examples/with-plugins/plugins/my-plugin.ts

Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-01-24 12:33:38 +01:00
Daniel Roe 83a959a67b
fix(nuxt3): allow customising page keys (#2859) 2022-01-24 11:35:28 +01:00
Daniel Roe 93ef422b5d
feat(nuxt3): add support for `definePageMeta` macro (#2678) 2022-01-17 19:27:23 +01:00
Bruno Perel 2ba5f56374
docs(examples): prop "showTips" should be a boolean instead of a string (#2751) 2022-01-17 11:05:24 +01:00
Anthony Fu 59e5cfea39
docs: add Stackblitz links for examples (#2559) 2022-01-07 10:51:01 +01:00
Anthony Fu afcaaff57d
chore(example): use `@nuxt/ui` for examples (#2325)
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-12-23 20:27:08 +01:00
Daniel Roe 639e49be27
refactor(nuxt3): rename `<NuxtChild>` to `<NuxtNestedPage>` (#2432) 2021-12-20 11:37:58 +01:00
Anthony Fu 29a2eb3dc1
fix(vite): include dynamic css (revert #2067) (#2227) 2021-11-30 15:37:01 +01:00
Damian 5bc9012eff
docs: improve cookies section (#2092) 2021-11-23 00:24:12 +01:00
Pooya Parsa 0db1002a3b chore: update cookie example 2021-11-22 23:50:17 +01:00
pooya parsa 9920181df3
feat(nuxt3, bridge): `useCookie` universal composable (#2085) 2021-11-22 21:43:00 +01:00
Anthony Fu a149225e63
fix(vite): separate dynamic deps in dev-bundler (#2067) 2021-11-22 18:39:56 +01:00
pooya parsa 07c7a20462
examples: update `with-wasm` (#2060) 2021-11-21 16:58:47 +01:00
surfer77 d4d886e52b
doc(examples): fix typo (#2042) 2021-11-21 13:30:32 +01:00
pooya parsa 6d94158e95
docs: improve `useState` examples (#1969)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
2021-11-16 16:37:36 +01:00
Sébastien Chopin bf0933a2f0
docs: improve useState docs and add example (#1961)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-11-16 14:17:52 +01:00
pooya parsa 1c8b751cfa
docs: improve `useState` with shared composable (#1945) 2021-11-15 21:41:05 +01:00
fgiraud 6b873f15bc
chore(nuxt3): add tests, comments and example for components scan (#1455)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-15 17:22:46 +01:00
Daniel Roe abfbd2f34e
feat: add `<Html>` meta component (#1820)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-10 21:25:29 +01:00
Daniel Roe 95cbe67f99
feat(kit, nuxt3): add `pages:extend` and `extendPages` (#1740)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
Co-authored-by: fgiraud <hello@florent.dev>
2021-11-09 11:16:23 +01:00
Anthony Fu 495aeffd74
docs: use `nuxi` everywhere (#1577) 2021-10-29 12:38:22 +02:00
Levi (Nguyễn Lương Huy) 694e95b2b4
feat(nuxt3): support `NuxtChild` component (#1301) (#1312) 2021-10-21 21:16:52 +02:00
TenshiGoan c5920c21e7
fix(nuxt3): child routes in vue-router don't have component field (#998)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-10-20 20:49:15 +02:00
Anthony Fu 550a9f2e12
feat: auto-import for composables (#1176)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-20 11:47:18 +02:00
Xin Du (Clark) 31b12d04c0
feat(cli): generate tsconfig.json in prepare command (#822)
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-10-13 22:01:50 +02:00
pooya parsa 9cb9bb651e
feat(nuxt3): create root component (#750) 2021-10-12 14:51:41 +02:00
pooya parsa 54c57e3987
feat(nuxt3): `useFetch` (#721) 2021-10-12 00:36:50 +02:00
pooya parsa 666b7f1ba8
feat: `useState` composable (#719) 2021-10-11 19:48:03 +02:00
Anthony Fu bade471dcf
refactor: rename `global-imports` to `auto-imports` (#706) 2021-10-11 10:07:27 +02:00
pooya parsa 2bf645bd73
refactor(nuxt3): cleanup data fetching and improved `useAsyncData` (#699) 2021-10-08 16:21:55 +02:00
Daniel Roe 5275624f2e
feat(nitro): support importing/inlining wasm binaries (#693) 2021-10-07 15:43:34 +02:00
pooya parsa dd73a8bcad
feat: export `defineNuxtConfig` from `nuxt3` and `@nuxt/bridge` (#669) 2021-10-06 14:31:52 +02:00
Anthony Fu e13baf9867
feat(nuxt3): remove `<script setup>` transform and prefer top level await (#579)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-09-30 20:19:55 +02:00
Pooya Parsa 69104b22b6 chore(examples): update nuxt.d.ts 2021-08-11 22:57:46 +02:00
pooya parsa ee0163c273
refactor: merge modules to `nuxt3` (#439) 2021-08-11 22:28:38 +02:00
pooya parsa 084b4e2123
refactor: rename `nuxt-cli` to `nuxi` (#430) 2021-08-10 19:37:03 +02:00
Anthony Fu b2b4c64807
feat: auto global imports (#410)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-08-10 02:27:23 +02:00
Anthony Fu 5191ff98f3
fix(components): types generation (#416)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-08-09 23:54:44 +02:00
Anthony Fu 403ee671eb chore: apply lint 2021-08-01 02:20:18 +08:00
Anthony Fu 8e5e229031
feat(components): build time sync loader (#383) 2021-07-28 14:11:32 +02:00
Daniel Roe 9d8fd61fcf
chore: update dependencies (#342)
[skip-release]
2021-07-20 12:21:30 +02:00
Daniel Roe b263b4f930
feat: `@nuxt/meta` module for head rendering (#179)
Co-authored-by: Anthony Fu <hi@antfu.me>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-07-15 13:28:04 +02:00
pooya parsa 6318438415
feat(nitro, vite): use native module (#252)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-07-15 11:38:06 +02:00
Daniel Roe 48c098b7e9
examples: add `vue-content-loader` (#317) 2021-07-12 12:31:13 +02:00
Daniel Roe b1948b1921
feat(pages): page layouts (#276) 2021-06-30 18:32:22 +02:00
Daniel Roe 53f6756178
feat(app): backwards-compatible options `asyncData` support (#286) 2021-06-30 12:53:10 +02:00
Daniel Roe 1518a2a070
feat(pages): add catchall support (`[...id].vue`) (#254) 2021-06-21 14:09:08 +02:00
pooya parsa a0f81cd1fb
feat: components discovery (#243)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-06-18 18:50:03 +02:00
Anthony Fu 11a5a3e14f
feat(app): make `asyncData` working with `<script setup nuxt>` (#220) 2021-06-16 14:42:58 +02:00
Pooya Parsa 3b29191880 chore: use nuxt3@latest for examples 2021-04-23 23:19:30 +02:00
pooya parsa ca466e08a1
chore: add examples directory (#115) 2021-04-23 22:30:43 +02:00