docs: add README

This commit is contained in:
Sergey Krylov 2025-02-10 07:58:48 +03:00
parent e608aeee15
commit 131965d268
2 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,14 @@
# Vue 3 + Vite
# pinia-vue
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
## Мини курс по Pinia
[![Watch the video](https://img.youtube.com/vi/ok9PE-XwXro/0.jpg)](https://www.youtube.com/watch?v=ok9PE-XwXro)
Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://vuejs.org/guide/scaling-up/tooling.html#ide-support).
### Функционал
- Поиск
- Отображение списка
- Сохранение в Local Storage
### Стек
- Vue 3
- Pinia

View File

@ -2,7 +2,7 @@ import { defineStore } from 'pinia';
import { useMovieStore } from './movie-store.js';
import { ref } from 'vue';
const url = `https:api.themoviedb.org/3/search/movie?api_key=${import.meta.env.VITE_API_KEY}&query=`;
const url = `https://api.themoviedb.org/3/search/movie?api_key=${import.meta.env.VITE_API_KEY}&query=`;
export const useSearchStore = defineStore('search-store', () => {
const loading = ref(false);