* refactor: use ES module.
To maintain compatibility with vite 6 and since that's where the web are heading too.
Also moved some deps to devDeps, better optimized production builds. Changed some of the script command to match how others run or preview it, I think it was still using CRA.
* chore: update-lock.yaml
* refactor: since we are using ESM now, .cjs .ts required.
Changed the file extensions and refactored the .eslintrc.cjs I think there was a lot of bloat from the previous version and removed most of them and keep it simple for now, we can always expand from here a clean slate.
* refactor: added .node.json and refactored.
* fix(build): APIClient.ts had few error.
ESLint: Unexpected lexical declaration in case block.(no-case-declarations)
and TS2554: Expected 0-1 arguments, but got 2
we passed the cause to the constructor which it only takes 1 argument so removed it instead, since it's already in the string "Offline".
* fix(build): import never used.
* fix(build): add the types for react-dom/client.
* fix(build): use ESNext instead.
* fix(build): hmm why are we missing the types for the import?
Added @types/react-table.
* chore(lint): fix lint warnings
Don't use * for export.
* chore(lint): missing deps.
React Hook useEffect has a missing dependency: 'validateForm'. Either include it or remove the dependency array
* chore(lint): fix import.
* chore(lint): fix import.
* chore(lint): fix react hook.
error React Hook "useMutation" is called conditionally. React Hooks must be called in the exact same order in every component render react-hooks/rules-of-hooks
* chore(lint): value never used.
52:10 error '_regexPattern' is assigned a value but never used
* chore(lint): add missing dependency to useEffect
* chore(lint): fix imports.
* chore(lint): add deps to array.
* chore(lint): error Unexpected lexical declaration in case block no-case-declarations
* chore(lint): remove any and add types.
I am not sure about type CompleteFilterType I know it's being used for JSON so might need to use any?? dunno just test it and see if works.
* chore(lint): react-hooks/exhaustive-deps
* chore(lint): react-hooks/exhaustive-deps
* chore(lint): use type guard instead of any.
* chore(lint): react-hooks/exhaustive-deps
* Revert "chore(lint): remove any and add types."
This reverts commit 7b9168fe7826d63cb00e44df8e15fbde49b59174.
* chore(web): ignore sourcemap warnings
* chore(web): update vite to 5.0.4
* chore: add the new script `pnpm dev` to start the dev env.
* chore: add the curly braces.
more info: https://eslint.org/docs/latest/rules/no-case-declarations
* chore: remove the extra spaces
* chore: remove the extra spaces
* chore: add the curly braces.
* chore: add curly braces
* remove text-shadow property and comment
* revert switch case braces for Actions.tsx
---------
Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
* enhancement: improve font loading performance and avoid page reflow
chore: get rid of postcss-import (we're not using it and it's not needed for tailwind)
* fix indent
added missing Buffer definition for Stacktracey, made date functions more robust against undefined values
enhancement: made simplifyDate and IsEmptyDate prone against undefined values
fix: added a global Buffer definition (apparently required by Stacktracey)
* Fixed button border in settings/download-clients
Button border for "Add new" is now uniform with other "Add new"-buttons
* enhancement(docs) add helper tooltips
- Add helper tooltips for inputs and link them to docs #161
* fix build error
* tooltips: changed positition
* hide tooltip below 640 width
* made tooltips better
now attaching to TextField names
* Added icon variation for MultiSelect and CheckboxField
* cleaned up old code
* refactor
Co-authored-by: ze0s <zze0s@users.noreply.github.com>
* added tooltips for DownloadClientForms
* added tooltips for indexerforms
* div for passwordfieldwide
* tooltips for details.tsx
* added tooltips to actions.tsx
* added tooltips to indexerforms.tsx
* replaced info icon with a more rudimentary one
* linting, removed duplicate tailwind display properties
* remove margin for flex centering
* fixed tooltip alignment on all fields
* add tooltip to PwFieldWide in indexer edit window
* refactor: simplify tooltips
* refactor: scope tooltip css
* refactor: tooltip default clickable
---------
Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
* 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
* fix(tsconfig.json): changed skipLibCheck to false.
refactor(eslint): moved configuration from package.json to .eslintrc.js and added a typescript plugin for future use
* feat: wip eslint and types
* feat: fix identation
* feat: get rid of last any types
feat: Added Inter Variable as the default font
feat: Added a pattern to the page background.
fix(react-multi-select-component): Made the multiselect components theme-agnostic, so it works properly with the light theme now.
fix(react-select): Made the components fix the default 30px height of the rest of the input components.
fix(useToggle): Fixed a bug where the toggle didn't work due to useCallback memoizing a callback with the old value.
refactor(Base):
- Added small theme-primary gradient to the beginning of the header.
- Made the splitter border theme-agnostic.
- Increased logo size a bit.
- Moved the links a bit closer to the logo.
- Updated the default link style to look more stylish.
- Added a link to the autobrr Docs section (currently defaults to the Indexers sections, but this should lead to an "Overview" page for configuring autobrr)
- Adapted the user dropdown to match the other header links' stylesheets and removed the annoying ring focus.
- Adapted the header for theme-agnostic mobile usage.
- Removed the negative padding/margin hacks.
refactor(StatsItem): Increased shadow size/strength and made the description text a bit lighter on the dark theme.
refactor(Dashboard): Increased the heading text sizes.
refactor(Logs, Releases, Settings, Login, filters/details, filters/list): Adapted to match the previous changes and improved theme compatibility with regards to text.
refactor(RegexPlayground): Fixed match highlight for JS regex.
* refactor: modified existing react imports to conform with the recommended approach of not using the default export directly, since it will be deprecated in one of the future releases. see https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html for more info. note: react types don't require importing of react.
refactor: cleaned up some of the imports
* feat: added eslint and fixed all the errors/warning. eslint can now be invoked by running "npm run lint".
chore: updated .gitignore not to include unnecessary artefacts.
refactor: re-organized some of the imports.
* refactor: converted remaining few typed functional components to proper prop argument structure.
* fix: fixed small react-query invalidation bug for the FilterDetails component.
Co-authored-by: anonymous <anonymous>
* Removed recoil and replaced it with react-ridge-state, a 0.4kb alternative.
* Added AuthContext and SettingsContext persistent localStorage states.
* Fixed tailwind.config.js incorrect key directive. See https://tailwindcss.com/docs/content-configuration#safelisting-classes.
* Changed darkMode in Tailwind to "class" and started manually adjusting the theme according to the appropriate media query.
* Added possibility of changing the theme manually via the Settings tab.
* Changed Releases.tsx behavior to show the UI only when the HTTP request succeeded and there is some data (i.e. table is non-empty).
* Changed the table color of screens/filters/list.tsx to a one notch lighter shade of gray for eye-comfort.
* Replaced "User" in the header, with the users real username.
* Made data version, commit and date fields optional in settings/Application.tsx.
* Started working on a RegExp playground, which works fine, but JS won't cooperate and return the right match length. Either way, the RegExp must be implemented on backend and then must be communicated with the frontend. Otherwise a potential for incorrect results exists.
* Removed Layout.tsx, since it was redundant.
* Created a Checkbox component class for easier and consistent future use.
* Rewritten App.tsx, Login.tsx, Logout.tsx to accomodate for new changes.
* Fixed previous mistake regarding tailwind.config.js purge key, since we're still using old postcss7 from October last year
* Removed package-lock.json from both root and web directories.
* Refresh TypeScript configuration to support a types/ directory containing d.ts. The effect of this is that types don't have to be imported anymore and are at all times available globally. This also unifies them into a single source of truth, which will be a lot easier to manage in the future. Note: Only certain interop types have been moved at the time of writing.
* Fixed minor Checkbox argument mistake.
* fix: remove length from data check
* chore: lock files are annoying
* fix: select
* fix: wip release filtering