Skip to content

Commit

Permalink
feat: rewrite, but this may introduce another rewrite to adapter-static
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushSehrawat committed Mar 1, 2024
1 parent c145426 commit 2410f5b
Show file tree
Hide file tree
Showing 193 changed files with 1,885 additions and 7,017 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ node_modules
.env
.env.*
!.env.example
/src/lib/components/ui/*

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
extends: [
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.16.0
v20.10.0
10 changes: 0 additions & 10 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
/src/lib/components/ui/*
17 changes: 13 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
"plugins": [
"prettier-plugin-svelte",
"prettier-plugin-tailwindcss"
],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
57 changes: 23 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,17 @@
# Real Debrid Manager
# create-svelte

Manage your Real Debrid downloads and torrents with ease.
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).

Aim of this project is to provide a simple interface to manage and search through your Real Debrid downloads and torrents.
## Creating a project

> These screenshots may not be up to date with the current version of the app.
If you're seeing this, you've probably already done this step. Congrats!

<img src="./assets/homepage.jpeg" width="23%"></img>
<img src="./assets/torrents.jpeg" width="23%"></img>
<img src="./assets/downloads.jpeg" width="23%"></img>
<img src="./assets/scraper.jpeg" width="23%"></img>
<img src="./assets/scraper-movie.jpeg" width="23%"></img>
<img src="./assets/scraper-series.jpeg" width="23%"></img>
<img src="./assets/scraper-series-torrent.jpeg" width="23%"></img>
<img src="./assets/scraper-list.jpeg" width="23%"></img>

https://github.com/AyushSehrawat/rdm/assets/69469790/e1317cfd-ffe2-4af5-b052-0e0ed73d2fe8

## Features

- View and search through all your downloads and torrents
- Reinsert torrents with option to select files
- Copy download links, delete, stream and get info on your downloads and torrents
- Bulk delete downloads and torrents & bulk unrestrict torrents
- Scraper to search for torrents and download links and add them to your Real Debrid.
- Add torrents through magnet links and torrent files (Not yet implemented)
- Look for dead download links and torrents and refresh them (Not yet implemented)
- And much more...

## Environment Variables

To run this project, you will need to add the following environment variables to your .env file. Just rename the .env.example file to .env.
```bash
# create a new project in the current directory
npm create svelte@latest

```
PUBLIC_BASE_URI="https://api.real-debrid.com/rest/1.0"
PUBLIC_BASE_AUTH_URI="https://api.real-debrid.com"
PUBLIC_CLIENT_ID="X245A4XAIBGVM"
PUBLIC_TORRENTIO_BASE_URI="https://torrentio.strem.fun"
# create a new project in my-app
npm create svelte@latest my-app
```

## Developing
Expand All @@ -49,3 +24,17 @@ npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
```

## Building

To create a production version of your app:

```bash
npm run build
```

You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
![img](./assets/auth.excalidraw.png)
Binary file added assets/auth.excalidraw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 13 additions & 12 deletions components.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"$schema": "https://shadcn-svelte.com/schema.json",
"style": "default",
"tailwind": {
"config": "tailwind.config.js",
"css": "src/app.postcss",
"baseColor": "gray"
},
"aliases": {
"components": "$lib/components",
"utils": "$lib/utils"
}
}
"$schema": "https://shadcn-svelte.com/schema.json",
"style": "default",
"tailwind": {
"config": "tailwind.config.js",
"css": "src/app.pcss",
"baseColor": "slate"
},
"aliases": {
"components": "$lib/components",
"utils": "$lib/utils"
},
"typescript": true
}
65 changes: 33 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,51 @@
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"test": "npm run test:integration && npm run test:unit",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",
"test:integration": "playwright test",
"test:unit": "vitest"
"test": "vitest",
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
},
"devDependencies": {
"@playwright/test": "^1.40.0",
"@sveltejs/adapter-cloudflare": "^2.3.3",
"@sveltejs/kit": "^1.27.6",
"@types/luxon": "^3.3.6",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.21.0",
"@sveltejs/adapter-cloudflare": "^4.1.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/eslint": "^8.56.0",
"@types/luxon": "^3.4.2",
"@types/nprogress": "^0.2.3",
"@types/web-app-manifest": "^1.0.8",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"autoprefixer": "^10.4.16",
"eslint": "^8.55.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"postcss": "^8.4.31",
"postcss-load-config": "^4.0.1",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"super-sitemap": "^0.14.11",
"svelte": "^4.2.8",
"svelte-check": "^3.6.2",
"tailwindcss": "^3.3.5",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vite": "^4.5.0",
"vitest": "^0.34.6"
"postcss": "^8.4.32",
"postcss-load-config": "^5.0.2",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"prettier-plugin-tailwindcss": "^0.5.9",
"super-sitemap": "^0.14.14",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"tailwindcss": "^3.3.6",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^5.0.3",
"vitest": "^1.2.0"
},
"type": "module",
"dependencies": {
"@ctrl/video-filename-parser": "^5.1.0",
"@types/web-app-manifest": "^1.0.7",
"bits-ui": "^0.18.1",
"bits-ui": "^0.18.4",
"clsx": "^2.1.0",
"fuse.js": "^7.0.0",
"lucide-svelte": "^0.331.0",
"luxon": "^3.4.4",
"lucide-svelte": "^0.341.0",
"mode-watcher": "^0.2.1",
"svelte-sonner": "^0.3.17",
"nprogress": "^0.2.0",
"svelte-sonner": "^0.3.19",
"tailwind-merge": "^2.2.1",
"tailwind-variants": "^0.2.0"
"tailwind-variants": "^0.2.0",
"vaul-svelte": "^0.2.4"
}
}
}
12 changes: 0 additions & 12 deletions playwright.config.ts

This file was deleted.

Loading

0 comments on commit 2410f5b

Please sign in to comment.