Skip to content

Commit

Permalink
feat: frontend improvements,, added settings! (#86)
Browse files Browse the repository at this point in the history
* feat: added service status and other minor improvements

* Concurrency and show fixes (#52)

* Add concurrency, fix shows

* Run prettier on default_settings.json

* Better logging, added item_ids and extended info endpoint for shows

---------

Co-authored-by: Gaisberg <None>

* Torrentio rate limiter improvements, realdebrid downloading improvements

* Aired_at == None for not released seasons

* Move mount settings to general settings, fix section updating for only our sections

* Remove unused settings

* Get plex items from only wanted sections

* Add symlinking guide to readme

* Docker (#70)

* add makefile. fix entrypoint. dockerfile needs entrypoint execution tweak though.

* Fixed entrypoint. Fixed user being set to root

* Fix readme

* Done. Can now set PUID/PGID correctly. Updated Dev Env makefile.

* Sneak in update lol

* Update help

* Correct syntax for update.

---------

Co-authored-by: Spoked <Spoked@localhost>

* fix: remove auto reload, causes issues sometimes,,, will add later

* Feat: added settings page and some other minor improvements

* Feat: added settings page and some other minor improvements

* deps: updated tailwindcss

* feat: added partial settings form

* Symlink fixes (#75)

* Fix range index issues on episode check

* Fix docstring

---------

Co-authored-by: Dreu Lavelle <[email protected]>

* Symlink fixes (#76)

* Fix range index issues on episode check

* Fix docstring

* Added requested_by, and other tweaks.

* Lots of tweaks everywhere. Ready for Review

* make corrections for ids. change to watchlist count.

* Add fixes for requested changes

* remove unnecessary function

* Add latest changes

---------

Co-authored-by: Dreu Lavelle <[email protected]>
Co-authored-by: Spoked <Spoked@localhost>

* tidy imports (#79)

Co-authored-by: Dreu Lavelle <[email protected]>

* Update github actions with multiarch etc (#80)

* multiarch initial commit

* remove armv7 for testing

* enable pushing to registry

* add explicit permissions to GHA (#81)

* Add tweaks, add some kind of parsing for torrents etc.

* Symlink fixes (#76)

* Fix range index issues on episode check

* Fix docstring

* Added requested_by, and other tweaks.

* Lots of tweaks everywhere. Ready for Review

* make corrections for ids. change to watchlist count.

* Add fixes for requested changes

* remove unnecessary function

* Add latest changes

---------

Co-authored-by: Dreu Lavelle <[email protected]>
Co-authored-by: Spoked <Spoked@localhost>

* Address slow loading times and cpu usage, hacky but what the hell

* fix watchlist. needs rewrite to use plexapi. will fix later.

* Fix scraping logging indent

* feat: partial changes

* feat: added general & about in settings

* set scrape type to series instad of show. invalid url before. (#85)

Co-authored-by: Dreu Lavelle <[email protected]>

* chore: changed status code, minor changes

* feat: added plex settings

* chore: minor change

* fix origin in entrypoint. set makefile to host with mount.

* remove gif

---------

Co-authored-by: Gaisberg <[email protected]>
Co-authored-by: Gaisberg <None>
Co-authored-by: Spoked <[email protected]>
Co-authored-by: Spoked <Spoked@localhost>
Co-authored-by: Dreu Lavelle <[email protected]>
Co-authored-by: KingPin <[email protected]>
  • Loading branch information
6 people authored Dec 23, 2023
1 parent 4d37e8b commit 2641de0
Show file tree
Hide file tree
Showing 42 changed files with 1,215 additions and 110 deletions.
22 changes: 22 additions & 0 deletions backend/controllers/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,28 @@ async def root(request: Request):
}


@router.get("/health")
async def health(request: Request):
return {
"success": True,
"message": "Iceburg is running!",
}


@router.get("/user")
async def get_rd_user():
return get_user()


@router.get("/services")
async def get_services():
return {
"success": True,
"data": {
"plex": settings_manager.get("plex"),
"mdblist": settings_manager.get("mdblist"),
"overseerr": settings_manager.get("overseerr"),
"torrentio": settings_manager.get("torrentio"),
"realdebrid": settings_manager.get("realdebrid"),
},
}
11 changes: 10 additions & 1 deletion backend/controllers/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
from fastapi import APIRouter
from utils.settings import settings_manager
from pydantic import BaseModel
from typing import Any


class SetSettings(BaseModel):
key: str
value: str
value: Any


router = APIRouter(
Expand Down Expand Up @@ -34,6 +35,14 @@ async def save_settings():
}


@router.get('/get/all')
async def get_all_settings():
return {
"success": True,
"data": copy(settings_manager.get_all()),
}


@router.get("/get/{key}")
async def get_settings(key: str):
return {
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ fi
chown -R ${USERNAME}:${GROUPNAME} /iceberg

echo "Container Initialization complete."
exec su -m $USERNAME -c 'cd backend && source /venv/bin/activate && exec python /iceberg/backend/main.py & node /iceberg/frontend/build'
exec su -m $USERNAME -c 'cd backend && source /venv/bin/activate && exec python /iceberg/backend/main.py & ORIGIN=http://localhost:3000 node /iceberg/frontend/build'
10 changes: 6 additions & 4 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"@sveltejs/adapter-node": "^2.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/luxon": "^3.3.7",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.0.0",
"@types/luxon": "^3.3.7",
"autoprefixer": "^10.4.14",
"eslint": "^8.28.0",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -30,21 +30,23 @@
"prettier-plugin-tailwindcss": "^0.5.9",
"svelte": "^4.2.8",
"svelte-check": "^3.6.0",
"tailwindcss": "^3.3.2",
"tailwindcss": "^3.4.0",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^5.0.0",
"vitest": "^1.0.0"
},
"type": "module",
"dependencies": {
"bits-ui": "^0.11.6",
"bits-ui": "^0.11.8",
"clsx": "^2.0.0",
"lucide-svelte": "^0.298.0",
"luxon": "^3.4.4",
"mode-watcher": "^0.1.2",
"svelte-sonner": "^0.3.6",
"sveltekit-superforms": "^1.13.0",
"tailwind-merge": "^2.1.0",
"tailwind-variants": "^0.1.18"
"tailwind-variants": "^0.1.18",
"zod": "^3.22.4"
}
}
Loading

0 comments on commit 2641de0

Please sign in to comment.