영화 검색 사이트13 [영화 검색 사이트] Vue Router 404 Page Not Found https://router.vuejs.org/guide/essentials/dynamic-matching.html#catch-all-404-not-found-route Dynamic Route Matching with Params | Vue Router Dynamic Route Matching with Params Very often we will need to map routes with the given pattern to the same component. For example we may have a User component which should be rendered for all users but with different user IDs. In Vue Router we can use a d.. 2023. 2. 11. [영화 검색 사이트] Vue 플러그인 https://v3-docs.vuejs-korea.org/guide/reusability/plugins.html 플러그인 | Vue.js v3-docs.vuejs-korea.org loadImage.js export default { install(app) { app.config.globalProperties.$loadImage = (src) => { return new Promise((resolve) => { const img = document.createElement('img') img.src = src img.addEventListener('load', () => { resolve() }) }) } } } main.js import { createApp } from 'vue' import App .. 2023. 2. 11. [영화 검색 사이트] 영화 상세 페이지(스켈레톤 UI, Loader) 스켈레톤 UI 실제 데이터가 렌더링 되기 전에 보이게 될 화면의 윤곽을 먼저 그려주는 로딩 애니메이션 사용자의 이탈을 막고, ‘어떤 것들이 보여질 것이다’라고 미리 알려주는 효과 Loader.vue Movie.vue {{ theMovie.Title }} {{ theMovie.Released }} {{ theMovie.Runtime }} {{ theMovie.Country }} {{ theMovie.Plot }} Ratings {{ score }} Actors {{ theMovie.Actors }} Director {{ theMovie.Director }} Production {{ theMovie.Production }} Genre {{ theMovie.Genre }} 2023. 2. 11. [영화 검색 사이트] 로딩 애니메이션, Footer https://getbootstrap.com/docs/5.3/components/spinners/ Spinners Indicate the loading state of a component or page with Bootstrap spinners, built entirely with HTML, CSS, and no JavaScript. getbootstrap.com MovieList.vue {{ message }} movie.js export default { // module! namespaced: true, // data! state: () => ({ movies: [], message: 'Search for the movie title!', loading: false }), // computed! .. 2023. 2. 11. 이전 1 2 3 4 다음