-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from nnivxix/fix/glitched-watchlist-card
Fix/glitched watchlist card
- Loading branch information
Showing
5 changed files
with
101 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
TMDB_API_TOKEN= | ||
VITE_TMDB_API_TOKEN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
![vilm banner](./public/vilm-banner.jpg) | ||
|
||
# Vilm | ||
|
||
## Guide Instalation | ||
|
||
### Requirments | ||
|
||
1. Node.js >= 18 | ||
2. Typescript | ||
3. PNPM | ||
|
||
### Steps | ||
|
||
1. Clone the repository | ||
|
||
```bash | ||
git clone https://github.com/nnivxix/vilm.git | ||
``` | ||
|
||
```bash | ||
cd vilm | ||
``` | ||
|
||
```bash | ||
pnpm install | ||
``` | ||
|
||
2. Copy the `.env` file | ||
|
||
```bash | ||
cp .env.example .env | ||
``` | ||
|
||
3. Change value the `.env` file | ||
|
||
Go to `.env` file and fill the value `TMDB_API_TOKEN=` with key from [TMDB API](https://developer.themoviedb.org/docs/getting-started) | ||
|
||
4. Run the Application | ||
|
||
```bash | ||
pnpm dev | ||
``` | ||
|
||
Happy Coding | ||
|
||
## Contributions 🎉👋 | ||
|
||
All contributions and suggestions are welcome. | ||
![vilm banner](./public/vilm-banner.jpg) | ||
|
||
# Vilm | ||
|
||
## Guide Instalation | ||
|
||
### Requirments | ||
|
||
1. Node.js >= 18 | ||
2. Typescript | ||
3. PNPM | ||
|
||
### Steps | ||
|
||
1. Clone the repository | ||
|
||
```bash | ||
git clone https://github.com/nnivxix/vilm.git | ||
``` | ||
|
||
```bash | ||
cd vilm | ||
``` | ||
|
||
```bash | ||
pnpm install | ||
``` | ||
|
||
2. Copy the `.env` file | ||
|
||
```bash | ||
cp .env.example .env | ||
``` | ||
|
||
3. Change value the `.env` file | ||
|
||
Go to `.env` file and fill the value `VITE_TMDB_API_TOKEN=` with key from [TMDB API](https://developer.themoviedb.org/docs/getting-started) | ||
|
||
4. Run the Application | ||
|
||
```bash | ||
pnpm dev | ||
``` | ||
|
||
Happy Coding | ||
|
||
## Contributions 🎉👋 | ||
|
||
All contributions and suggestions are welcome. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
import "./App.css"; | ||
|
||
function App() { | ||
return ( | ||
<ThemeProvider defaultTheme="dark" storageKey="vilm-theme"> | ||
<AccountProvider> | ||
<Router> | ||
<Navbar /> | ||
<Routes> | ||
<Route path="/" element={<Home />} /> | ||
<Route path="/show/tv/:id" element={<Tv />} /> | ||
<Route path="/show/movie/:id" element={<Movie />} /> | ||
<Route path="/search" element={<Search />} /> | ||
<Route path="/setting" element={<Setting />} /> | ||
<Route path="/watchlist/movie" element={<Movies />} /> | ||
<Route path="/watchlist/tv" element={<TvShows />} /> | ||
<Route path="*" element={<NotFound />} /> | ||
</Routes> | ||
<Toaster /> | ||
<Footer /> | ||
</Router> | ||
</AccountProvider> | ||
</ThemeProvider> | ||
); | ||
} | ||
|
||
export default App; | ||
import "./App.css"; | ||
|
||
function App() { | ||
return ( | ||
<ThemeProvider defaultTheme="dark" storageKey="vilm-theme"> | ||
<AccountProvider> | ||
<Router> | ||
<Navbar /> | ||
<Routes> | ||
<Route path="/" element={<Home />} /> | ||
<Route path="/show/tv/:id" element={<Tv />} /> | ||
<Route path="/show/movie/:id" element={<Movie />} /> | ||
<Route path="/search" element={<Search />} /> | ||
<Route path="/setting" element={<Setting />} /> | ||
<Route path="/watchlist/movie" element={<Movies />} /> | ||
<Route path="/watchlist/tv" element={<TvShows />} /> | ||
<Route path="*" element={<NotFound />} /> | ||
</Routes> | ||
<Toaster /> | ||
<Footer /> | ||
</Router> | ||
</AccountProvider> | ||
</ThemeProvider> | ||
); | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const tokenStorage = localStorage.getItem("token"); | ||
|
||
const config = { | ||
apiUrl: "https://api.themoviedb.org/3", | ||
token: tokenStorage ?? import.meta.env.VITE_TMDB_API_TOKEN, | ||
}; | ||
|
||
export default config; | ||
const tokenStorage = localStorage.getItem("token"); | ||
|
||
const config = { | ||
apiUrl: "https://api.themoviedb.org/3", | ||
token: tokenStorage ?? import.meta.env.VITE_TMDB_API_TOKEN, | ||
}; | ||
|
||
export default config; |