Giter Site home page Giter Site logo

movies's Introduction


Nuxt Movies


Movies app demo built using Nuxt 3, Vue 3, UnoCSS, Image Module, The Movie Database API and TypeScript.

🍿 Live preview: https://movies.nuxt.space

Screenshots

Proxy Server

Check proxy/README

Setup

# Enable pnpm
$ corepack enable

# Install dependencies
$ pnpm install

# Start dev server with hot reload at localhost:3000
$ pnpm dev

Credits

Based on jasonujmaalvis/vue-movies and tastejs/nuxt-movies.

Data provided by The Movie Database.

This project uses the TMDB API but is not endorsed or certified by TMDB.

movies's People

Contributors

ali4zimi avatar antfu avatar archetipo95 avatar atinux avatar blackspirits avatar bramus avatar buglavecz avatar charleewa avatar danielroe avatar hiepdqflame avatar krisantuswanandi avatar lmmmmmm-bb avatar ndragun92 avatar pi0 avatar stevealexr avatar vijithmv916 avatar wilsonpinto avatar zyyv 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

movies's Issues

[Questions] Refresh or enter the website for the first time, causing an error in the request

The first time you enter or refresh a website, you will get this error. Then click on any of the other links, and the page will normally display.

Command line

[Vue warn]: Unhandled error during execution of setup function at <AutoQuery key="tvpopular" query= { type: 'tv', title: 'Popular TV Shows', query: 'popular' } >

[nitro] [dev] [unhandledRejection] FetchError: request to https://movies-proxy.vercel.app/tmdb/tv/popular?page=1 failed, reason: connect ETIMEDOUT 31.13.75.12:443 ()

截屏2022-10-20 17 42 53

use Shared Element Transition API

particularly when navigating into a movie + out again, could be nice to use Shared Element Transition API to make it smooth and beautiful

APIs are called twice

Once on the server side, once on the client side.
But if useAsyncData is used, this problem does not exist.

image

Reactivity transform will be dropped

Many places in the code use reactivity transform feature. $ref, $computed etc.

Reactivity Transform will be dropped (but will be made available via a separate package to support compatibility for those who want to still use it).

vuejs/rfcs#369 (comment)

My opinion, that would be must refaktoring these codes.

🖖

Scrolling is not smooth

Title: Scrolling Not Smooth Bug on Website

Description:
There is an issue with the scrolling functionality on the website, which is causing a lack of smoothness during scrolling. This bug needs to be addressed and fixed in the repository.

Expected Behavior:
The scrolling should be smooth and responsive, allowing users to navigate through the content seamlessly.

Actual Behavior:
The scrolling is not smooth and feels jumpy or laggy. There is a noticeable delay or inconsistency in the scrolling motion, which affects the overall user experience.

Additional Information:

  • The issue is reproducible across different web browsers (chrome and safari too).
  • The problem persists on various devices (Mac and windows ) but in linux its working smooth.
  • No JavaScript errors or console warnings are displayed.

When use Layouts

Hello, I wanted to implement this model to use it with layouts, to create a login, when doing so I delete the app.vue file and put it there in layouts/custom.vue it stays in an infinite loop, any suggestions?
image

Carousel scroll button bug

The carousel scrollLeft and scrollRight button moving the carousel all the way to the left and right respectively.

Suggestions to support i18n

It would be great if the site could support i18n.
Since the tmdb api supports multiple languages, I guess it might not be too expensive.
Movie-related information (eg posters) may be localized differently and is well supported in tmdb, which is very important for non-English site visitors.

APIs are called twice

Once on the server side, once on the client side.
But if useAsyncData is used, this problem does not exist.

image

Remember scroll position when navigating back from the detail view to the main page

Would it be possible to add the code to remember the scroll position when navigating back to the home page after viewing a detail page? Right now, when you scroll down on the home page, find a movie, click it to view details, then use the back button, it brings you back to the top of the home page instead of where you left off.

This is something I'm struggling with in my own nuxt3 project and would love to see how it can be done properly.

error.vue $computed not found and no includes property on computedRef

Hi,

I copied the error.vue page into my own project from the Mastering Nuxt 3 course. It does not work for me.

I added lang="ts" to the script tag and ts errors tells me 2 things wrong.

Cannot find name $computed. Did you mean computed?

and

Property 'includes' does not exist on type computedRef referring to message?.includes

If I remove those it works.

const message = computed(() => String(props.error?.message || ''))
const is404 = computed(() => props.error?.statusCode === 404)

Movie details page and search broken

I was looking for inspiration and I came back to the site and the search and movie details page are now broken.

Search loop infinitely:
2022-11-17 13 59 41

Movie page doesn't load:
Capture d’écran, le 2022-11-17 à 13 59 56

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.