From 30502c985492618023a2c74b98f7a0a1b5cda1e2 Mon Sep 17 00:00:00 2001 From: ngthanhvu Date: Sun, 24 May 2026 22:35:13 +0700 Subject: [PATCH] feat: rebrand site to CineK --- README.md | 18 +- app/app.vue | 1 + app/assets/css/main.css | 35 ++- app/components/AppFooter.vue | 8 +- app/components/AppHeader.vue | 63 ++--- app/components/AppLogo.vue | 17 +- app/components/HomeMovieCard.vue | 16 +- app/components/ScrollToTop.vue | 4 +- app/composables/useMovieLibrary.ts | 24 +- app/composables/useWatchHistory.ts | 10 +- app/pages/index.vue | 358 ++++++++++++++++------------- app/pages/lich-chieu.vue | 20 +- app/pages/lich-su.vue | 24 +- app/pages/phim/[slug].vue | 72 +++--- app/pages/phim/index.vue | 40 ++-- app/pages/thanh-vien.vue | 24 +- app/pages/xem/[slug].vue | 319 +++++++++++++++++-------- app/pages/yeu-thich.vue | 22 +- docker-compose.yml | 4 +- nuxt.config.ts | 21 ++ package-lock.json | 4 +- package.json | 2 +- public/icon.png | Bin 0 -> 27811 bytes server/api/movies/[slug].get.ts | 6 +- server/utils/movies.ts | 23 +- 25 files changed, 693 insertions(+), 442 deletions(-) create mode 100644 public/icon.png diff --git a/README.md b/README.md index e4397de..05eb83d 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# KR Phim +# CineK -KR Phim is a Korean movie streaming web app built with Nuxt and Tailwind CSS. It aggregates Korean-only movie data from the OPhim, NguonC, and KKPhim APIs, normalizes the responses on the server, and presents the content with a Netflix-inspired Nuxt-green interface. +CineK is a Korean movie streaming web app built with Nuxt and Tailwind CSS. It uses NguonC movie data, normalizes the responses on the server, and presents the content with a blue Netflix-inspired interface. ## Features -- Korean-only movie catalogue from OPhim, NguonC, and KKPhim. +- Korean-only movie catalogue from NguonC. - Netflix-style home page with a large hero carousel. - Floating movie preview cards on home page hover. - Browse page with search, type filters, and pagination. @@ -36,8 +36,6 @@ server/ api/movies/[slug].get.ts Movie detail API endpoint utils/movies.ts API adapters and normalization helpers API_nguonc.md NguonC API notes -API_ophim.md OPhim API notes -API_kkphim.md KKPhim API notes ``` ## Setup @@ -104,7 +102,7 @@ Stop the container: docker compose down ``` -The Compose service is named `kr-phim` and maps host port `3002` to container port `3002`. +The Compose service is named `cinek` and maps host port `3002` to container port `3002`. ## Available Routes @@ -113,20 +111,16 @@ The Compose service is named `kr-phim` and maps host port `3002` to container po - `/phim?type=series` - Browse Korean series. - `/phim?type=single` - Browse Korean movies. - `/phim?q=keyword` - Search Korean movies. -- `/phim/[slug]?source=ophim` - Movie detail page from OPhim. -- `/phim/[slug]?source=nguonc` - Movie detail page from NguonC. -- `/phim/[slug]?source=kkphim` - Movie detail page from KKPhim. +- `/phim/[slug]` - Movie detail page from NguonC. ## API Notes The app does not call external movie APIs directly from the browser. Instead, Nuxt server endpoints request and normalize movie data: -- OPhim list/detail data is handled in `server/utils/movies.ts`. - NguonC list/detail data is handled in `server/utils/movies.ts`. -- KKPhim list/detail data is handled in `server/utils/movies.ts`. - Only Korean movies are kept in the normalized result. -If one source is unavailable, the list endpoint still returns data from the other sources when possible and includes source status metadata. +The public server endpoints use NguonC as the single movie API source. ## Scripts diff --git a/app/app.vue b/app/app.vue index b5c6aa9..744bfb5 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,5 +1,6 @@