diff --git a/package-lock.json b/package-lock.json index 02792e0..16b38f6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "free-movies", "version": "0.0.0", "dependencies": { + "@mdi/font": "^7.2.96", "vue": "^3.3.4", "vue-router": "^4.2.4", "vuetify": "^3.3.15" @@ -385,6 +386,11 @@ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, + "node_modules/@mdi/font": { + "version": "7.2.96", + "resolved": "https://registry.npmjs.org/@mdi/font/-/font-7.2.96.tgz", + "integrity": "sha512-e//lmkmpFUMZKhmCY9zdjRe4zNXfbOIJnn6xveHbaV2kSw5aJ5dLXUxcRt1Gxfi7ZYpFLUWlkG2MGSFAiqAu7w==" + }, "node_modules/@vitejs/plugin-vue": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-4.3.4.tgz", diff --git a/package.json b/package.json index 1230b11..6408ddf 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "preview": "vite preview" }, "dependencies": { + "@mdi/font": "^7.2.96", "vue": "^3.3.4", "vue-router": "^4.2.4", "vuetify": "^3.3.15" diff --git a/src/App.vue b/src/App.vue index ed1934c..6797acc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,32 +1,18 @@ diff --git a/src/assets/main.css b/src/assets/main.css index bbeb21d..684e4fa 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -13,4 +13,12 @@ html, body { margin: 0; padding: 0; direction: rtl; +} + +.text-h1, .text-h2 { + font-family: Vazir !important; +} + +.v-list-item__prepend { + width: 32px; } \ No newline at end of file diff --git a/src/components/AppBar.vue b/src/components/AppBar.vue new file mode 100644 index 0000000..bbb6573 --- /dev/null +++ b/src/components/AppBar.vue @@ -0,0 +1,46 @@ + + + + + \ No newline at end of file diff --git a/src/components/LoadingCard.vue b/src/components/LoadingCard.vue new file mode 100644 index 0000000..b7143ba --- /dev/null +++ b/src/components/LoadingCard.vue @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/src/components/LoadingList.vue b/src/components/LoadingList.vue new file mode 100644 index 0000000..d1d2b53 --- /dev/null +++ b/src/components/LoadingList.vue @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/src/components/Movie.vue b/src/components/Movie.vue new file mode 100644 index 0000000..b33108d --- /dev/null +++ b/src/components/Movie.vue @@ -0,0 +1,139 @@ + + + + + \ No newline at end of file diff --git a/src/components/MovieCard.vue b/src/components/MovieCard.vue index 4dc75b5..b3b49f4 100644 --- a/src/components/MovieCard.vue +++ b/src/components/MovieCard.vue @@ -1,64 +1,22 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/components/Result.vue b/src/components/Result.vue index 457078e..2992566 100644 --- a/src/components/Result.vue +++ b/src/components/Result.vue @@ -1,12 +1,12 @@ + + + + \ No newline at end of file diff --git a/src/components/SearchBar.vue b/src/components/SearchBar.vue new file mode 100644 index 0000000..551dfb0 --- /dev/null +++ b/src/components/SearchBar.vue @@ -0,0 +1,49 @@ + + + + + \ No newline at end of file diff --git a/src/components/SearchBox.vue b/src/components/SearchBox.vue deleted file mode 100644 index aa7bf11..0000000 --- a/src/components/SearchBox.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/TheButton.vue b/src/components/TheButton.vue deleted file mode 100644 index 17eb3a9..0000000 --- a/src/components/TheButton.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/main.js b/src/main.js index 737427e..f349411 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,3 @@ -import './assets/main.css' - import { createApp } from 'vue/dist/vue.esm-bundler.js' import router from "@/router"; @@ -9,6 +7,9 @@ import { createVuetify } from 'vuetify' import * as components from 'vuetify/components' import * as directives from 'vuetify/directives' +import '@mdi/font/css/materialdesignicons.css' +import './assets/main.css' + const vuetify = createVuetify({ components, directives, diff --git a/src/router.js b/src/router.js index 83e0fb7..cce423c 100644 --- a/src/router.js +++ b/src/router.js @@ -4,10 +4,14 @@ import {createRouter, createWebHistory} from "vue-router"; // components import App from "@/App.vue"; import Result from "@/components/Result.vue"; +import Search from "@/components/Search.vue"; import NotFound from "@/components/NotFound.vue"; +import Movie from "@/components/Movie.vue"; const routes = [ { path: "/", component: App }, + { path: "/movie", component: Movie }, + { path: "/search", component: Search }, { path: "/search/:query", component: Result }, { path: '/:pathMatch(.*)*', component: NotFound }, ] diff --git a/vite.config.js b/vite.config.js index 5c45e1d..63358b6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -12,5 +12,8 @@ export default defineConfig({ alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } - } + }, + optimizeDeps: { + exclude: ['js-big-decimal'] + } })