* fix(release): DeleteOlder func for zero duration
resolves a bug in the `DeleteOlder` function where recent 24-hour data wasn't deleted when set to `delete everything`. We now correctly set the olderThanTimestamp to a future date when duration is zero, ensuring complete deletion of all records.
* fix(releases): delete older
---------
Co-authored-by: ze0s <ze0s@riseup.net>
* feat: delete releases older than x
* check timestamp
* incomplete front end changes
commiting changes from codespace to not lose them
* change to dropdown with options
* using int comparisons to avoid nightmares
* Revert "using int comparisons to avoid nightmares"
This reverts commit dc55966a73e9f6ad79ed28c3a3e0dbe0e35448a6.
* suggestions by stacksmash76
come back to discord @stacksmash76
* Curves - a touch of warmth in our pixel realm
* replace inline css with tailwind
* remove unnecessary comment
* align label with dropdown
changed first paragraph to something more sensible
* change font weight for duration label
* padding changes
* nitpicky
* merged divs where possible
* small adjustments for light theme
* attempt to fix for postgres
* refactor: split into component and add confirmation modal
also restyle component
* fix: go fmt
---------
Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
* feat(notifications): add pushover
* add db migration
* fix lint error
* some small corrections
* fixed README
* added missing columns to postgres_migrate.go
* use token for user_key
* refactor(notifications): change priority to int
* fix: only test selected events
---------
Co-authored-by: soup <soup@r4tio.dev>
Co-authored-by: ze0s <ze0s@riseup.net>
* refactor(indexers): test api clients
* feat(indexers): test api connection
* fix(indexers): api client tests
* refactor: indexer api clients
* feat: add Toasts for indexer api tests
* fix: failing red tests
* feat: sanitize passwords from json payload
* add webhook sanitization
* update comments
Co-authored-by: soup <soup@r4tio.dev>
* sanitize RED apikeys from webhook payloads
* added an optional whitespace token between field name and data
---------
Co-authored-by: soup <soup@r4tio.dev>
* 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>
* refactor log sanitization for better performance
* Fix token error, add mutex for safer concurrency
* serve sanitized version directly from memory
* further improvements
made it check for "module":"irc" before running the irc regex checks
* Revert "further improvements"
This reverts commit 260037c3a58e1e760613167d3e15136b313c0612.
* update irc regexes to handle special characters
- added prefixes to the irc patterns
- improved tests
* more improvements for irc regexes
* fixed errors
* another edge case bites the dust
* regex improvements
* lock to 1 worker if cpu cores is 2 or less
* removed unused code
* revert to single thread
Moved regex patterns and replacements into a separate array for easier maintenance and readability.
Optimized the regex patterns that share the same replacement string to avoid redundancy.
Modify SanitizeLogFile to accept io.Writer for direct output
* style
* only check relevant lines
- only check relevant lines
- dont break unless length=0
* revert breaking change
* handle api and auth cases
---------
Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
* feat(logs): show and download log files
* feat(logs): make logs settings dropdown
* feat(logs): minor cosmetic changes
* fix(logs): send empty response when lohpath not configured
* fix(logs): remove unused imports
* feat(logs): check if logs dir exists
* feat(logs): list log files in settings
* feat(irc): add irc status examples
* feat(irc): add dropdown menu to list
* feat(irc): update heroicons and add expand button
* feat(irc): update heroicons and add expand button
* Started refactoring codebase for React 18.
* Migrated to react-router v6 fully
* Removed useless test setup along with relevant packages.
* Removed leftover console.log statement
* feat: use status forbidden for onboarding
* refactor(web): use react hook form on login
* fix: comply with r18 shenanigans
* chore: update packages
* feat: add ability to create an account via the webui without the need for autobrrctl
* refactor redundant code block.
* fix: early return and 0 value