diff --git a/README.md b/README.md index 2baa269..1c6faf1 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ All are optional, JWT_SECRET is recommended to be set. | AUTO_DELETE_EVERY_N_HOURS | 24 | Checks every n hours for files older then n hours and deletes them, set to 0 to disable | | WEBROOT | | The address to the root path setting this to "/convert" will serve the website on "example.com/convert/" | | FFMPEG_ARGS | | Arguments to pass to ffmpeg, e.g. `-preset veryfast` | +| HIDE_HISTORY | false | Hide the history page | > [!WARNING] > If you can't login, make sure you are accessing the service over https or set HTTP_ALLOWED=true diff --git a/bun.lock b/bun.lock index 7c05df6..27b3874 100644 --- a/bun.lock +++ b/bun.lock @@ -8,35 +8,35 @@ "@elysiajs/jwt": "^1.2.0", "@elysiajs/static": "^1.2.0", "@kitajs/html": "^4.2.7", - "elysia": "^1.2.12", + "elysia": "^1.2.25", "sanitize-filename": "^1.6.3", }, "devDependencies": { - "@eslint/js": "^9.19.0", + "@eslint/js": "^9.23.0", "@ianvs/prettier-plugin-sort-imports": "^4.4.1", "@kitajs/ts-html-plugin": "^4.1.1", - "@tailwindcss/cli": "^4.0.4", - "@tailwindcss/postcss": "^4.0.4", + "@tailwindcss/cli": "^4.0.17", + "@tailwindcss/postcss": "^4.0.17", "@total-typescript/ts-reset": "^0.6.1", - "@types/bun": "^1.2.2", + "@types/bun": "^1.2.8", "@types/eslint-plugin-tailwindcss": "^3.17.0", - "@types/node": "^22.13.1", - "autoprefixer": "^10.4.20", + "@types/node": "^22.13.16", + "autoprefixer": "^10.4.21", "cssnano": "^7.0.6", - "eslint": "^9.19.0", - "eslint-plugin-readable-tailwind": "^2.0.0-beta.4", + "eslint": "^9.23.0", + "eslint-plugin-readable-tailwind": "^2.0.0", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-tailwindcss": "4.0.0-alpha.0", "globals": "^16.0.0", - "knip": "^5.43.6", + "knip": "^5.46.4", "npm-run-all2": "^7.0.2", - "postcss": "^8.5.1", - "postcss-cli": "^11.0.0", - "prettier": "^3.4.2", - "tailwind-scrollbar": "^4.0.0", - "tailwindcss": "^4.0.4", - "typescript": "^5.7.3", - "typescript-eslint": "^8.23.0", + "postcss": "^8.5.3", + "postcss-cli": "^11.0.1", + "prettier": "^3.5.3", + "tailwind-scrollbar": "^4.0.2", + "tailwindcss": "^4.0.17", + "typescript": "^5.8.2", + "typescript-eslint": "^8.29.0", }, }, }, diff --git a/compose.yaml b/compose.yaml index e20ad4d..9535124 100644 --- a/compose.yaml +++ b/compose.yaml @@ -13,5 +13,6 @@ services: - AUTO_DELETE_EVERY_N_HOURS=1 # checks every n hours for files older then n hours and deletes them, set to 0 to disable # - FFMPEG_ARGS=-hwaccel vulkan # additional arguments to pass to ffmpeg # - WEBROOT=/convertx # the root path of the web interface, leave empty to disable + # - HIDE_HISTORY=true # hides the history tab in the web interface, defaults to false ports: - 3000:3000 diff --git a/src/components/header.tsx b/src/components/header.tsx index 7d2eef0..af3bd37 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -4,28 +4,32 @@ export const Header = ({ loggedIn, accountRegistration, allowUnauthenticated, + hideHistory, webroot = "", }: { loggedIn?: boolean; accountRegistration?: boolean; allowUnauthenticated?: boolean; + hideHistory?: boolean; webroot?: string; }) => { let rightNav: JSX.Element; if (loggedIn) { rightNav = (