Skip to content

Commit 1b4d8e4

Browse files
committed
initial commit
0 parents  commit 1b4d8e4

File tree

135 files changed

+20066
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+20066
-0
lines changed

.env.example

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
NEXT_PUBLIC_TMDB_API=
2+
NEXT_PUBLIC_TMDB_API_KEY=
3+
NEXT_PUBLIC_TMBD_IMAGE_URL=
4+
NEXT_PUBLIC_PROVIDER_URL=
5+
6+
NEXT_PUBLIC_STREAM_URL_AGG=
7+
NEXT_PUBLIC_STREAM_URL_VID=
8+
NEXT_PUBLIC_STREAM_URL_PRO=
9+
NEXT_PUBLIC_STREAM_URL_EMB=
10+
NEXT_PUBLIC_STREAM_URL_MULTI=
11+
NEXT_PUBLIC_STREAM_URL_SUP=
12+
NEXT_PUBLIC_STREAM_URL_CLUB=
13+
NEXT_PUBLIC_STREAM_URL_SMASH=
14+
NEXT_PUBLIC_STREAM_URL_ONE=
15+
NEXT_PUBLIC_STREAM_URL_ANY=
16+
NEXT_PUBLIC_STREAM_URL_PRIME=
17+
NEXT_PUBLIC_STREAM_URL_RGS=
18+
NEXT_PUBLIC_STREAM_URL_FRE=
19+
NEXT_PUBLIC_STREAM_URL_POR=
20+
NEXT_PUBLIC_STREAM_URL_WEB=
21+
22+
23+
NEXT_PUBLIC_FB_API_KEY=
24+
NEXT_PUBLIC_FB_AUTH_DOMAIN=
25+
NEXT_PUBLIC_FB_PROJECT_ID=
26+
NEXT_PUBLIC_FB_STORAGE_BUCKET=
27+
NEXT_PUBLIC_FB_SENDER_ID=
28+
NEXT_PUBLIC_FB_APP_ID=
29+
NEXT_PUBLIC_FB_MEASUREMENT_ID=
30+
NEXT_PUBLIC_GT_MEASUREMENT_ID=

.github/PULL_REQUEST_TEMPLATE.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<!-- If your PR fixes an open issue, use `Closes #101` to link your PR with the issue. #101 stands for the issue number you are fixing -->
2+
3+
## 🛠️ Issue (Number)
4+
5+
<!-- Example: #104 -->
6+
7+
Closes #
8+
9+
## Description
10+
11+
<!-- Please include a summary of the change. Please also include relevant motivation and context. List any dependencies that are required for this change. -->
12+
13+
## Type of change
14+
15+
<!----Please delete options that are not relevant.And in order to tick the check box just add x inside them for example [x] like this----->
16+
17+
- [ ] New Features
18+
- [ ] ADD Components
19+
- [ ] ADD Movie Streaming Service
20+
- [ ] ADD Movie Download Service
21+
- [ ] Bug fix (non-breaking change which fixes an issue)
22+
- [ ] Docs Update (no-code / low code)
23+
- [ ] Others
24+
25+
<!-- In case You selected Others in this section please provide the title here -->
26+
27+
## Checklist:
28+
29+
<!----Please delete options that are not relevant.And in order to tick the check box just but x inside them for example [x] like this----->
30+
31+
- [ ] I have made this from my own
32+
- [ ] I have taken help from some online resourses
33+
- [ ] My code follows the style guidelines of this project
34+
- [ ] I have performed a self-review of my own code
35+
- [ ] I have commented my code, particularly in hard-to-understand areas
36+
- [ ] My changes generate no new warnings
37+
- [ ] The title of my pull request is a short description of the requested changes.
38+
- [ ] I have made corresponding changes to the documentation
39+
- [ ] My PR needs documentation change
40+
41+
## ATTACH SCREEN-SHOTS
42+
43+
<!-- please fill the below table with screenshots of before and after (after your changes), You can use the drag&drop method.
44+
Just delete the '< Before Image >' and with the text cursor ther drah and drop your image from file explorer -->
45+
46+
| Before | After |
47+
| :--------------: | :-------------: |
48+
| < Before Image > | < After Image > |
49+
50+
### If you have added components, then provide the screenshots of those components below:
51+
52+
| Component Name | Screenshots |
53+
| :-----------------------: | :---------: |
54+
| < Name of the Component > | < Images > |

.github/dependabot.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
labels:
6+
- 📦 dependencies
7+
directory: "/"
8+
commit-message:
9+
prefix: "chore(deps)[github-actions]"
10+
schedule:
11+
interval: "weekly"
12+
13+
# Maintain dependencies for npm
14+
- package-ecosystem: "npm"
15+
labels:
16+
- 📦 dependencies
17+
directory: "/"
18+
commit-message:
19+
prefix: "chore(deps)[npm]"
20+
schedule:
21+
interval: "weekly"
22+
reviewers:
23+
- "dev-AshishRanjan"
24+
groups:
25+
types-dependencies:
26+
patterns:
27+
- "@types/*"
28+
update-types:
29+
- "major"
30+
- "minor"
31+
- "patch"
32+
pre-commit-dependencies:
33+
patterns:
34+
- "husky"
35+
- "prettier"
36+
update-types:
37+
- "major"
38+
- "minor"
39+
- "patch"
40+
production-dependencies:
41+
dependency-type: "production"
42+
update-types:
43+
- "major"
44+
- "minor"
45+
- "patch"
46+
development-dependencies:
47+
dependency-type: "development"
48+
update-types:
49+
- "major"
50+
- "minor"
51+
- "patch"

.github/labeler-config.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
filters:
2+
- label: "enhancement"
3+
regexs:
4+
- /\bfeat\b/
5+
- /feature/i
6+
events: [pull_request]
7+
targets: [title]
8+
- label: "documentation"
9+
regexs:
10+
- /\bdocumentation\b/
11+
- /docs/i
12+
events: [pull_request]
13+
targets: [title]
14+
- label: "bug"
15+
regexs:
16+
- /bug/i
17+
events: [pull_request]
18+
targets: [title]
19+
- label: "bug"
20+
regexs:
21+
- /fix/i
22+
events: [pull_request]
23+
targets: [title]
24+
- label: "chore"
25+
regexs:
26+
- /chore/i
27+
events: [pull_request]
28+
targets: [title]
29+
- label: "goal: build"
30+
regexs:
31+
- /build/i
32+
events: [pull_request]
33+
targets: [title]
34+
- label: "goal: refactor"
35+
regexs:
36+
- /\brefactor\b/
37+
- /refactor/i
38+
events: [pull_request]
39+
targets: [title]
40+
- label: "v3"
41+
regexs:
42+
- /\v3\b/
43+
- /v3/i
44+
events: [pull_request]
45+
targets: [title]
46+
- label: "accessibility"
47+
regexs:
48+
- /\baccessibility\b/
49+
- /accessibility/i
50+
events: [pull_request] # default -> [issues, pull_request]
51+
targets: [title] # default -> [title, comment]

.github/workflows/weekly_update.yml

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Weekly Update TMDB Collections
2+
3+
on:
4+
schedule:
5+
- cron: "0 12 * * 0" # Every Sunday at 12 PM
6+
workflow_dispatch:
7+
8+
jobs:
9+
update-collection-ids:
10+
permissions: write-all
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
- name: Delete action/collection_ids branch if present
16+
run: |
17+
git push --delete origin action/collection_ids || true
18+
- name: Download gzipped JSON file
19+
run: |
20+
curl -L -o collection_ids.json.gz http://files.tmdb.org/p/exports/collection_ids_$(date -d 'yesterday' +\%m_%d_%Y).json.gz && touch download_complete
21+
- name: Wait for download to complete
22+
run: |
23+
while [ ! -f download_complete ]; do sleep 1; done
24+
- name: Check if downloaded file exists
25+
run: |
26+
if [ -f collection_ids.json.gz ]; then
27+
gunzip collection_ids.json.gz
28+
else
29+
echo "Error: Downloaded file not found"
30+
exit 1
31+
fi
32+
- name: Add trailing comma and brackets to collection_ids.json
33+
run: |
34+
sed -i -e '$!s/$/,/' collection_ids.json
35+
echo "[" > temp.json && cat collection_ids.json >> temp.json && echo "]" >> temp.json && mv temp.json collection_ids.json
36+
- name: Copy JSON file to src/assets
37+
run: |
38+
cp collection_ids.json src/assets/collection_ids.json
39+
- name: Remove downloaded file from root
40+
run: |
41+
rm -f download_complete collection_ids.json.gz collection_ids
42+
- name: Git config
43+
run: |
44+
git config --global user.email "<41898282+github-actions[bot]@users.noreply.github.com>"
45+
git config --global user.name "github-actions[bot]"
46+
- name: Commit and push changes
47+
run: |
48+
git checkout -b action/collection_ids
49+
git add src/assets/collection_ids.json
50+
git commit -m "chore(assets)[github-actions] : Update collection_ids.json for $(date -d 'yesterday' +\%m_%d_%Y)"
51+
git push origin action/collection_ids
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
# - name: Create pull request
55+
# uses: peter-evans/create-pull-request@v3
56+
# with:
57+
# token: ${{ secrets.GITHUB_TOKEN }}
58+
# title: "chore(assets)[github-actions] : Update collection_ids.json"
59+
# body: "Automatically updating collection_ids.json file for latest TMDB collections"
60+
# labels: "📦 dependencies"
61+
# base: dev
62+
# branch: action/collection_ids
63+
- name: Create pull request
64+
uses: devops-infra/action-pull-request@v0.5.5
65+
with:
66+
github_token: ${{ secrets.GITHUB_TOKEN }}
67+
source_branch: action/collection_ids
68+
target_branch: dev
69+
title: ${{ github.event.commits[0].message }}
70+
body: "Automatically updating collection_ids.json file for latest TMDB collections"
71+
assignee: ${{ github.actor }}
72+
reviewer: dev-AshishRanjan
73+
label: 📦 dependencies
74+
get_diff: true

.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
/pnpm-lock.yaml
9+
/package-lock.json
10+
11+
# testing
12+
/coverage
13+
14+
# next.js
15+
/.next/
16+
/out/
17+
18+
# production
19+
/build
20+
21+
# misc
22+
.DS_Store
23+
*.pem
24+
25+
# debug
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*
29+
30+
# local env files
31+
.env*.local
32+
.env
33+
34+
# vercel
35+
.vercel
36+
37+
# typescript
38+
*.tsbuildinfo
39+
next-env.d.ts
40+
41+
42+
sw.js*
43+
workbox-*

.husky/pre-commit

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
echo "commenting in Rive"
5+
echo "Running formatting script..."
6+
npx prettier --write .
7+
echo "Staging changes..."
8+
git add .

.prettierignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
build/
2+
public/
3+
node_modules/
4+
template/
5+
/package-lock.json
6+
Dockerfile
7+
.dockerignore
8+
.husky/
9+
.next/
10+
public/

0 commit comments

Comments
 (0)