Compare commits

22 Commits

Author SHA1 Message Date
Emrik Östling
7389e0a059 Merge pull request #68 from C4illin/release-please--branches--main--components--convertx-frontend 2024-07-09 20:31:46 +02:00
Emrik Östling
c512b45f91 chore(main): release 0.3.2 2024-07-09 20:27:52 +02:00
C4illin
3ae2db5d9b fix: increase max request body to support large uploads
issue #64
2024-07-09 20:26:48 +02:00
Emrik Östling
0945b40a9c Merge pull request #67 from C4illin/dependabot/npm_and_yarn/typescript-eslint/parser-tw-7.16.0
build(deps-dev): update @typescript-eslint/parser requirement from ^7.15.0 to ^7.16.0
2024-07-09 11:31:38 +02:00
dependabot[bot]
20b958e547 build(deps-dev): update @typescript-eslint/parser requirement
Updates the requirements on [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) to permit the latest version.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.16.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 09:18:34 +00:00
Emrik Östling
e7e146c6c9 Merge pull request #66 from C4illin/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-tw-7.16.0
build(deps-dev): update @typescript-eslint/eslint-plugin requirement from ^7.15.0 to ^7.16.0
2024-07-09 11:16:59 +02:00
dependabot[bot]
005ad2d66b build(deps-dev): update @typescript-eslint/eslint-plugin requirement
Updates the requirements on [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) to permit the latest version.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.16.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 08:15:05 +00:00
Emrik Östling
e5c3a8acc4 Merge pull request #65 from C4illin/dependabot/npm_and_yarn/types/node-tw-20.14.10
build(deps-dev): update @types/node requirement from ^20.14.9 to ^20.14.10
2024-07-08 10:16:29 +02:00
dependabot[bot]
87ecbabd1f build(deps-dev): update @types/node requirement
---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-08 08:12:13 +00:00
Emrik Östling
991c4e4ba8 Merge pull request #63 from C4illin/dependabot/npm_and_yarn/elysia-tw-1.0.27
build(deps): update elysia requirement from ^1.0.26 to ^1.0.27
2024-07-03 13:41:16 +02:00
dependabot[bot]
87ccd8b44c build(deps): update elysia requirement from ^1.0.26 to ^1.0.27
---
updated-dependencies:
- dependency-name: elysia
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-03 08:45:48 +00:00
Emrik Östling
83e6699ca6 chore: update README.md 2024-07-03 00:31:54 +02:00
Emrik Östling
c91523c038 Merge pull request #61 from C4illin/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-tw-7.15.0
build(deps-dev): update @typescript-eslint/eslint-plugin requirement from ^7.14.1 to ^7.15.0
2024-07-02 11:17:19 +02:00
dependabot[bot]
1f73f036b2 build(deps-dev): update @typescript-eslint/eslint-plugin requirement
Updates the requirements on [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) to permit the latest version.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.15.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 09:12:46 +00:00
Emrik Östling
1223fabfca Merge pull request #62 from C4illin/dependabot/npm_and_yarn/typescript-eslint/parser-tw-7.15.0
build(deps-dev): update @typescript-eslint/parser requirement from ^7.14.1 to ^7.15.0
2024-07-02 11:10:32 +02:00
dependabot[bot]
8a42a39e69 build(deps-dev): update @typescript-eslint/parser requirement
Updates the requirements on [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) to permit the latest version.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.15.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 09:09:12 +00:00
Emrik Östling
22023bad25 Merge pull request #60 from C4illin/dependabot/npm_and_yarn/typescript-tw-5.5.3
build(deps-dev): update typescript requirement from ^5.5.2 to ^5.5.3
2024-07-02 11:04:04 +02:00
dependabot[bot]
db2f2d8f0a build(deps-dev): update typescript requirement from ^5.5.2 to ^5.5.3
Updates the requirements on [typescript](https://github.com/Microsoft/TypeScript) to permit the latest version.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.5.2...v5.5.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 09:02:37 +00:00
Emrik Östling
d0fa9ac408 Merge pull request #59 from C4illin/dependabot/npm_and_yarn/elysia-tw-1.0.26
build(deps): update elysia requirement from ^1.0.25 to ^1.0.26
2024-07-01 13:47:44 +02:00
dependabot[bot]
776a97289b build(deps): update elysia requirement from ^1.0.25 to ^1.0.26
---
updated-dependencies:
- dependency-name: elysia
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 08:35:55 +00:00
Emrik Östling
95340dd0eb Merge pull request #58 from C4illin/dependabot/npm_and_yarn/biomejs/biome-1.8.3
build(deps-dev): bump @biomejs/biome from 1.8.2 to 1.8.3
2024-06-28 13:29:20 +02:00
dependabot[bot]
7dcd74cc5f build(deps-dev): bump @biomejs/biome from 1.8.2 to 1.8.3
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/cli/v1.8.3/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-28 08:25:31 +00:00
5 changed files with 21 additions and 11 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## [0.3.2](https://github.com/C4illin/ConvertX/compare/v0.3.1...v0.3.2) (2024-07-09)
### Bug Fixes
* increase max request body to support large uploads ([3ae2db5](https://github.com/C4illin/ConvertX/commit/3ae2db5d9b36fe3dcd4372ddcd32aa573ea59aa6)), closes [#64](https://github.com/C4illin/ConvertX/issues/64)
## [0.3.1](https://github.com/C4illin/ConvertX/compare/v0.3.0...v0.3.1) (2024-06-27)

View File

@@ -28,6 +28,8 @@ A self-hosted online file converter. Supports 831 different formats. Written wit
<!-- many ffmpeg fileformats are duplicates -->
Any missing converter? Open an issue or pull request!
## Deployment
```yml

BIN
bun.lockb

Binary file not shown.

View File

@@ -1,6 +1,6 @@
{
"name": "convertx-frontend",
"version": "0.3.1",
"version": "0.3.2",
"scripts": {
"dev": "bun run --watch src/index.tsx",
"hot": "bun run --hot src/index.tsx",
@@ -12,29 +12,29 @@
"@elysiajs/html": "^1.0.2",
"@elysiajs/jwt": "^1.0.2",
"@elysiajs/static": "^1.0.3",
"elysia": "^1.0.25"
"elysia": "^1.0.27"
},
"module": "src/index.tsx",
"bun-create": {
"start": "bun run src/index.tsx"
},
"devDependencies": {
"@biomejs/biome": "1.8.2",
"@biomejs/biome": "1.8.3",
"@ianvs/prettier-plugin-sort-imports": "^4.3.0",
"@kitajs/ts-html-plugin": "^4.0.1",
"@picocss/pico": "^2.0.6",
"@total-typescript/ts-reset": "^0.5.1",
"@types/bun": "^1.1.6",
"@types/eslint": "^8.56.10",
"@types/node": "^20.14.9",
"@types/node": "^20.14.10",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"cpy-cli": "^5.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.3.2",
"typescript": "^5.5.2"
"typescript": "^5.5.3"
},
"trustedDependencies": [
"@biomejs/biome"

View File

@@ -21,9 +21,6 @@ import {
} from "./helpers/normalizeFiletype";
import "./helpers/printVersions";
const db = new Database("./data/mydb.sqlite", { create: true });
const uploadsDir = "./data/uploads/";
const outputDir = "./data/output/";
@@ -104,7 +101,11 @@ interface IJobs {
// enable WAL mode
db.exec("PRAGMA journal_mode = WAL;");
const app = new Elysia()
const app = new Elysia({
serve: {
maxRequestBodySize: Number.MAX_SAFE_INTEGER,
},
})
.use(cookie())
.use(html())
.use(