Code Monkey home page Code Monkey logo

examples's Introduction

examples's People

Contributors

516310460 avatar antfu avatar arashsheyda avatar atinux avatar bperel avatar clarkdo avatar clemcode avatar damianglowala avatar danielroe avatar dragon-fish avatar elbowz avatar flozero avatar frbuceta avatar husayt avatar huynl-96 avatar kevinmarrec avatar khaledoghli avatar lehoczky avatar lihbr avatar likui628 avatar maximepvrt avatar minidigger avatar pi0 avatar qin-guan avatar renovate[bot] avatar smarroufin avatar surfer77 avatar tahul avatar tenshigoan avatar valcosmos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

examples's Issues

Difference between static and reload (in Routing/Pages)?

In the routing/pages example, what should be the difference between the parent/reload-[id] and parent/static-[id] pages?

In the parent/static-[id] page code are added these lines:

definePageMeta({
  key: 'static'
})

Perhaps this should prevent the re-rendering, as described in Child Route Keys? Does this reflect a different behavior on the incremented var inside onMounted()?

Thanks in advance!

p.s. I'm still learning Nuxt/Vue, and I don't know if this is a bug, or if I just don't understand the meaning behind it.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error near ", ],

integration, 3rd party examples, demos

Context :

Integrations 3rd party examples and demos are very useful to learn how to use Nuxt, and they are missing from nuxt/examples (or nuxt/nuxt).

Many community members and maintainers create examples in individual repositories :

These examples are fantastic, but they are hard to find (especially the community ones), and newcomers have no way to find them, or to know they exist.

It would be great if there was a monorepo where we could find all of them.

nuxt/examples comes to mind, but we could also use nuxt/nuxt or a new repository.

Bonus suggestions :

Remote examples

"remote" examples, ie https://github.com/wundergraph/wundergraph/tree/main/examples/nuxt could be listed too, but I'm not sure what would be the best approach here.
They could be duplicated which is very straightforward, or maybe we could have logic that handle nuxt code from remote sources? (ie something similar to nuxt/modules)

Contribution

To incentivise community contribution, we could use each example package.json author field and increase the nuxters score accordingly, as well as display each contributor profile on the nuxt/examples home page (same as sponsor)

auth/local example redirectTo is not working properly

When testing the auth/local example I noticed that the redirectTo is not working properly, I
figured that the useAuth().redirectTo value gets cleared before being used.

  await $fetch("/api/auth/login", {
    method: "POST",
    body: {
      email: email,
      password: password,
    },
  });
  useAuth().redirectTo.value = null; // <-- this line
  await useAuth().updateSession();
  await navigateTo(useAuth().redirectTo.value || "/");

So the null value could maybe be set after the navigateTo call, or can possibly omitted at all, as it gets set from the auth middleware anyway.

Else, great example, thanks for sharing!

auth/local example only works on localhost

I've tried using the auth/local example. When visiting the application via localhost, everything works as expected. When visiting it via an ip address, however, the example doesn't work.

I've investigated this a little bit and found that session.get.ts always returns an empty object when the site is visited via an ip address (also after signing in).

I was able to reproduce this problem when directly cloning and executing this repository without changing anything.

New examples

The goal of those examples is to illustrate parts of the Nuxt documentation and expose a demo for giving the best DX when learning.

Right now we keep our old examples in the examples/ directory which is fine but I want to slowly have new examples (might be naked with no CSS if it's about showcasing basic functionalities).

docs example stackblitz projects are missing components

Environment

docs

Reproduction

https://nuxt.com/docs/examples/advanced/use-cookie

Describe the bug

Components like NuxtExampleLayout and others like NButton can't be resolved leaving a pretty much unstyled page

Additional context

No response

Logs

ue warn]: Failed to resolve component: NuxtExampleLayout
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Failed to resolve component: NTip
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Failed to resolve component: NButton
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Failed to resolve component: NTextInput
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance.
[Vue warn]: Component <Anonymous> is missing template or render function.
[Vue warn]: Failed to resolve component: NuxtExampleLayout
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Failed to resolve component: NTip
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Failed to resolve component: NButton
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Failed to resolve component: NTextInput
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance.
[Vue warn]: Component <Anonymous> is missing template or render functio

auth/local getting error on nuxt generate command

first ssr is true when i execute this command it give me this error and compile not completed.
Screenshot from 2023-07-11 22-48-21

After I tried with ssr false and it works and command successfully executed. after I uploaded it into server but its not working site is loading but auth request always returns 404 not found error. Is this not working on generate ?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/playwright.yml
  • actions/checkout v4
  • actions/setup-node v4
  • actions/upload-artifact v4
npm
.e2e/package.json
  • @playwright/test ^1.40.1
package.json
  • @nuxt/kit 3.11.2
  • @types/node ^20.11.30
  • globby ^14.0.1
  • pathe ^1.1.2
  • pkg-types ^1.0.3
  • turbo ^1.12.5
  • node >=16.x
  • @nuxt/kit 3.11.2
  • nuxt ^3.11.2
  • pnpm 9.0.4
shared/package.json
  • @iconify-json/simple-icons ^1.1.96
  • @nuxt/ui ^2.16.0
  • nuxt ^3.11.2

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.