Commit graph

29 commits

Author SHA1 Message Date
ze0s
33897b04a1
Revert #787 (#821)
Revert "refactor(web): migrate create-react-app to vite (#787)"

This reverts commit edae1bbf4b.
2023-04-07 19:08:42 +02:00
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
ze0s
fb6cbc775a
chore: update FUNDING.yml 2023-03-30 23:44:10 +02:00
ze0s
6ac3cc79c2
build: always run test job (#739)
build: always run tests
2023-03-05 17:41:57 +01:00
ze0s
65f51da68e
build: run tests before build (#737)
* build: run Go tests before build
2023-03-04 22:22:39 +01:00
Kyle Sanderson
b2d93d50c5
chore(deps): update Go to 1.20 (#726)
* chore(github): Update to go 1.20

* chore(go): enable language functionality in 1.20

* build: update go versions and rename dockerfile.ci
2023-02-28 23:29:51 +01:00
ze0s
33aa21fc15
build(ci): move back to hosted-runners (#547)
build(release): revert to hosted-runners
2022-11-18 21:03:56 +01:00
ze0s
19c9b79496
chore: update issue templates 2022-11-12 14:26:08 +01:00
ze0s
2cc08bed71
build: revert to old way of docker job (#508)
build: try old way for docker build
2022-10-19 22:17:45 +02:00
Kyle Sanderson
2d8f7aeb4e
feat(releases): retry failed downloads (#491)
* feat(download): implement parsing and retry

* feat: retry torrent file downloads

* refactor: error handling downloadtorrentfile

* feat: add tests for download torrent file

* build: add runs-on self-hosted

* build: add runs-on self-hosted
2022-10-19 21:52:31 +02:00
ze0s
bc335ccf1f
build: images with goreleaser (#496)
* build: images with goreleaser

* build: cleanup workflow
2022-10-13 20:31:43 +02:00
Kyle Sanderson
47eaeaa635
feat(rss): implement relative URL support (#484)
* feat(rss): implement relative URL support

* bp had some words

* feat(gh): uplift golang to 1.19.1

* feat(docker): uplift golang to 1.19

* feat(docker): uplift to go 1.19

* cleanup

* chore: update go version in go.mod

* feat: refactor and add test feed process item

* unescape query params after join
* break out logic into separate method
* add tests
2022-10-04 12:59:29 +02:00
ze0s
b4c3734bbd
chore: add issue templates (#434) 2022-08-31 15:58:42 +02:00
shapechecker
22829b194f
build(docker): add multiarch build for ARM, ARM64 and AMD64 (#378)
* Update Docker workflow

add buildx and qemu to support mulitarch builds
configure arm, arm64 and amd64 builds

* Change yarn timeout

fixes issue with yarn install timing out

* chore: update gitignore

* chore: add gitignore for web dir

* chore(web): upgrade to yarn2

* build: update actions and push docker hub

* build: add yarnrc and network-timeout

* build: unifi workflow

* build: depend on web to build first

* build: store artifacts between jobs

* build: store artifacts between jobs

* build: store artifacts between jobs

* build: store artifacts between jobs

* build: adjust dockerignore

* build: conditional extract metadata

* build: conditional extract metadata

* build: always push docker hub

* build: skip docker hub for now

* build: fix metadata
2022-08-03 19:38:32 +02:00
Kyle Sanderson
98ae6da6ca
build: add darwin macos (#387)
* enable apple
2022-08-03 14:29:53 +02:00
Ludvig Lundgren
c0f1037af0
docs: improve readme (#364)
* docs: improve readme

* docs: update feature list
2022-07-20 22:47:34 +02:00
Ludvig Lundgren
f961115dac
build: pr upload binary artifacts (#358)
* build: upload artifacts on pr

* build: use head sha for docker revision
2022-07-17 18:55:38 +02:00
Ludvig Lundgren
41eef4e8be
chore(build): update to Go 18 (#321) 2022-06-26 18:46:35 +02:00
Ludvig Lundgren
d4d864cd2c
build(actions): update docker workflow (#254) 2022-04-23 15:27:50 +02:00
Ludvig Lundgren
4b7a6d4419
build: run ci and build on pr (#244) 2022-04-13 12:19:29 +02:00
Ludvig Lundgren
1374dd150c
fix(build): actions docker build-args (#165)
* fix(build): actions docker build-args
2022-03-05 16:51:11 +01:00
Ludvig Lundgren
0878790232
build: set version in docker build (#164) 2022-03-04 23:01:12 +01:00
Ludvig Lundgren
bdbdab1f18
build: run docker release on branches (#130) 2022-02-09 19:11:49 +01:00
Ludvig Lundgren
53d75ef4d5
chore: create FUNDING.yml 2022-01-26 15:19:50 +01:00
Ludvig Lundgren
f24d846434 build: update permissions for docker 2022-01-16 16:06:48 +01:00
Ludvig Lundgren
ca6241e7cb
build: update and split gh workflows (#88) 2022-01-16 15:54:59 +01:00
Ludvig Lundgren
67c6bd7b53 build: update action docker login 2022-01-13 23:45:26 +01:00
Ludvig Lundgren
d22dd2fe84
build: autobrrctl and push to ghcr (#35) 2021-11-02 20:03:23 +01:00
Ludvig Lundgren
2e8d0950c1 build: releases with actions and docker 2021-08-11 15:41:09 +02:00