autobrr/internal
KaiserBh edae1bbf4b
refactor(web): migrate create-react-app to vite (#787)
* removed react-app type instead use vite.

* removed index.html from public since vite uses it from root: read more: https://vitejs.dev/guide/#index-html-and-project-root

* yarn.lock update.

* added vite config file. With commented rollUp option if we want the build to be called build but using default stuff for now.

* updated tsconfig to use vite and include vite.config.ts

* changed package json build commands to use vite.

* for some reason there is an error in vite config when we put project as tsconfig.json.

* build.go updated to use the new dist folder.

* refactored as well updated to use dist and web.AssetHandler again.

* Fixed issue forcing the frontend to be reloaded for all routes to work if logged in fresh without reloading it will always go back to dashboard.

* updated it to use the new function; need to fix the Index for baseUrl I believe, if enabled it works except logs route will crash due to cors.

* refactored and default port to 7474, don't think we need the rollUpOptions.

* added tmp/ to ignore .

* init air.toml, for dev hot reloading both app and backend. https://github.com/cosmtrek/air run it using air but make sure it's in PATH

* updated the start command to build and watch for changes, works great with air.

* revert

* added proxy for vite config. To be used for dev.

* refactor: I think this should fix it, when logs route etc getting accessed usually it throws error but by getting rid of the catch-all it should work as intended, since web.RegisterHandler(r) will catch the unmatched ones.

* fix: baseurl and build

* fix(build): docker ignore !web/dist

* fix(build): dockerignore add exclusions

* docs: update README.md

* build: update postcss config

---------

Co-authored-by: KaiserBh <kaiserbh@proton.me>
Co-authored-by: ze0s <ze0s@riseup.net>
2023-04-07 16:04:10 +02:00
..
action feat(actions): add "don't start" option for rtorrent (#782) 2023-03-26 23:17:44 +02:00
announce feat: add usenet support (#543) 2023-03-04 20:27:18 +01:00
api fix(config): improve container detection (#420) 2022-08-21 18:21:43 +02:00
auth feat(http): improve invalid login handling (#597) 2022-12-31 01:04:41 +01:00
client feat(releases): retry failed downloads (#491) 2022-10-19 21:52:31 +02:00
config enhancement(config): clarify logPath usage (#783) 2023-03-26 23:14:07 +02:00
database fix(feeds): check settings before unmarshalling (#789) 2023-03-26 23:10:59 +02:00
domain fix(actions): watch folder (#780) 2023-03-22 21:57:18 +01:00
download_client feat: add usenet support (#543) 2023-03-04 20:27:18 +01:00
events feat(logging); improve messages and errors (#336) 2022-07-05 13:31:44 +02:00
feed fix(feeds): torznab newznab category parsing (#775) 2023-03-19 23:35:33 +01:00
filter feat(releases): support magnet links (#730) 2023-02-28 22:16:10 +01:00
http refactor(web): migrate create-react-app to vite (#787) 2023-04-07 16:04:10 +02:00
indexer feat(indexers): add TheDarkCommunity (#808) 2023-04-02 22:36:42 +02:00
irc feat(irc): support optional SASL and NickServ auth (#511) 2022-10-27 22:25:58 +02:00
logger feat(logging): make log size and log backups configurable (#657) 2023-01-17 21:35:31 +01:00
mock feat(logging); improve messages and errors (#336) 2022-07-05 13:31:44 +02:00
notification fix(newznab): Use valid usenet release protocol for Starrs (#762) 2023-03-19 20:58:47 +01:00
release fix(macros): torrentdata parsing (#757) 2023-03-19 20:53:42 +01:00
scheduler feat: show new updates in dashboard (#690) 2023-02-05 18:44:11 +01:00
server feat: show new updates in dashboard (#690) 2023-02-05 18:44:11 +01:00
update feat: show new updates in dashboard (#690) 2023-02-05 18:44:11 +01:00
user feat(logging); improve messages and errors (#336) 2022-07-05 13:31:44 +02:00
utils feat: add backend 2021-08-11 15:26:17 +02:00