Commit Graph

56 Commits

Author SHA1 Message Date
schroda
134e47763f Feature/update dependencies (#442)
* [Tooling] Fix "updateDeps" script

For some reason commands after "yarn outdated" did not get executed

* [Tooling] Show "outdated" info at end of "updateScript"

* Update dependencies

"apollo-upload-client" v18 requires migration to ts module "nodenext"
2023-11-04 23:11:40 +01:00
schroda
c8f02b3b8c [ESLint] Add "no-unused-imports" plugin (#426) 2023-10-27 21:19:45 +02:00
schroda
b79fbcf71d Setup graphql subscriptions 2023-10-27 20:23:45 +02:00
schroda
6a1c302e45 Remove SWR 2023-10-27 20:23:44 +02:00
schroda
1b4497db46 Setup "graphql-codgen" 2023-10-27 20:19:04 +02:00
schroda
ae5d2525f1 Add "apollo-client" dependencies 2023-10-14 01:50:31 +02:00
schroda
4e134768ef Feature/update dependencies (#419)
* Add "syncyarnlock" dependency

* Update dependencies

* Update versions in package.json

* Add script to update dependencies
2023-09-17 23:03:29 +02:00
schroda
a8f25f58bf Update dependencies (#414) 2023-09-02 17:27:49 +02:00
schroda
bde16d0411 Feature/update dependencies (#410)
* Update non breaking dependencies

* Update dependency "eslint-config-prettier" to v9.x

Update to v9.0.0
2023-08-18 00:28:09 +02:00
schroda
31dca431e4 Feature/use vite with swc (#400)
* Add vite-env.d.ts

Should have been added with bc99728dcd

* Update readmes

* Use vites SWC plugin
2023-08-11 17:30:22 +02:00
schroda
a3d36bdb17 Feature/introduce script to create changelog (#401)
* Introduce script to create a changelog

* Add information about version to server version mapping

* Add release process doc
2023-08-11 17:23:56 +02:00
schroda
a487e47260 Feature/update dependencies (#399)
* Update dependencies with non-breaking changes

* Update dependency "typescript-eslint" to v6.x

Update to v6.2.1

* Update dependencies "prettier" to v3.x

Update prettier to v3.0.1
Update eslint-plugin-prettier to 5.0.0
2023-08-05 17:40:59 +02:00
schroda
83c6851357 Update "react-i18next" to v13.x (#392)
Update to v13.0.1
2023-07-04 21:54:21 +02:00
schroda
5279339b86 Feature/update i18next to v23.x (#391)
* Update i18next to v23.x

Update to version 23.2.7

* Use new "ParseKeys" (old: "TFuncKey") type

* Remove unnecessary casts to string

Not needed anymore with the latest version
2023-07-04 21:53:25 +02:00
schroda
46ccf20168 Update dependencies with non-breaking changes (#390) 2023-07-04 21:51:30 +02:00
schroda
1d76e990ae Move "@types/node" to dev-dependencies (#388) 2023-06-26 20:40:23 +02:00
schroda
0446a01e85 Remove unused dependency "web-vitals" (#353)
Was required by CRA
2023-06-05 01:49:13 +02:00
schroda
bc99728dcd Feature/migrate to vite (#349)
* Install dependencies

* Remove dependency react-scripts

* Remove dependency "@babel/plugin-proposal-private-property-in-object"

Was necessary to prevent a react-scripts warning.

* Update scripts in package.json

* Add vite config

* Move "public/index.html" to root folder

* Remove "%PUBLIC_URL%" occurrences

* Link "src/index.tsx" in "index.html"

* Update tsconfig target to "esnext"

* Target latest LTS node version (v18.16.0)

* Add "@types/node" dependency
2023-06-05 00:58:21 +02:00
schroda
fa614a19d2 Update dependency "typescript" to v5.x (#348)
Update to 5.1.3
2023-06-04 21:42:41 +02:00
schroda
57b1c0f680 Update dependency "eslint" to v8.42.0 (#347) 2023-06-04 21:41:57 +02:00
schroda
61975b5c49 Feature/update dependency react to v18.x (#346)
* Update dependency "react" to v18.x

Update to v18.2.0

* Update dependency "react" to v18.x - Fix some dependency version issue

Something caused weird tsc issues, most likely a version mismatch since it got fixed by doing a clean install (deleting node_modules folder, yarn.lock and clearing the cache) of the dependencies

* Update dependency "react" to v18.x - Fix "i18n" tsc issues

* Update dependency "react" to v18.x - Fix tsc issue

Typography can only have a single child

* Update dependency "react" to v18.x - Prevent build warning

TODO: migrate to Vite

Gets used without being declared as a dependency.
Since CRA is unmaintained this will not get fixed.

* Update dependency "react" to v18.x - Use "createRoot"

* Update dependency "react" to v18.x - Fix dnd in strict mode
2023-06-04 21:40:04 +02:00
schroda
62bf6d66dc Update dependency "react-virtuoso" to v4.x (#345)
Update to v4.3.8
2023-06-04 21:38:41 +02:00
schroda
f2ac73891c Update dependency "file-selector" to v0.6.0 (#344) 2023-06-04 21:37:21 +02:00
schroda
c6f7cd7731 Feature/update dependency web vitals to v3.x (#343)
* Update dependency "@fontsource/roboto" to v5.x

Update to 5.0.2

* Update dependency "web-vitals" to v3.x

Update to 3.3.2
2023-06-04 21:35:39 +02:00
schroda
548b746ee4 Update dependency "@fontsource/roboto" to v5.x (#342)
Update to 5.0.2
2023-06-04 21:33:28 +02:00
schroda
7f4ec7a30c Update dependency "@mui/icons-material" to v5.11.16 (#341) 2023-06-04 21:31:49 +02:00
schroda
4e8813b526 Feature/update dependency react router dom to v6.x (#340)
* Update dependency "react-router-dom" to v6.x

Update to v6.11.2

* Update dependency "react-router-dom" to v6.x - Replace "Switch" with "Routes"

* Update dependency "react-router-dom" to v6.x - Relative paths

* Update dependency "react-router-dom" to v6.x - Nested routes

* Update dependency "react-router-dom" to v6.x - Prevent route warnings

 - Route without an element causes a warning message.
 - Routes with non-matching Route causes a warning message.

* Update dependency "react-router-dom" to v6.x - Replace "useHistory" with "useNavigate"

* Update dependency "react-router-dom" to v6.x - Fix "Link" usage

* Update dependency "react-router-dom" to v6.x - Overwrite "useParams" and "useLocations" typing

For both functions it's the users fault if they are getting used incorrectly.
It's inconvenient to always have to make sure the params exist (useParam) or to cast the return object to a specific type (useLocation)

 - "useParams": Make generic type non-optional
 - "useLocation": Add generic type

* Update dependency "react-router-dom" to v6.x - Fix use-query-params provider
2023-06-04 21:30:15 +02:00
schroda
fd5a1e240a Remove unused dependency "query-string" (#339)
Was required for "use-query-params" pre v2.x
2023-06-04 21:28:28 +02:00
schroda
6b05083d95 Feature/update dependency use query params to v2.x (#338)
* Update dependency "use-query-params" to v2.x

Update to 2.2.1

* Update dependency "use-query-params" to v2.x - Fix provider

Update to 2.2.1
2023-06-04 21:27:09 +02:00
schroda
ce02802888 Update dependency "@emotion" to v11.11.0 (#337) 2023-06-04 21:25:34 +02:00
schroda
c63b4acdf8 Update dependency "i18n" to v22.5.0 (#336) 2023-06-04 21:24:09 +02:00
schroda
31f2e0f839 Update dependency "react-beautiful-dnd" to v13.1.1 (#335) 2023-06-04 21:22:02 +02:00
schroda
8655fe1f6d Update dependency "@typescript-eslint" to v5.59.8 (#334) 2023-06-04 21:16:56 +02:00
schroda
647260f18c Update dependency "prettier" to v2.8.8 (#333) 2023-06-04 21:14:33 +02:00
schroda
1ce27ea939 Feature/update dependency mui to v5.x (#332)
* Update dependency "mui" to v5.x

Update to v5.13.3

Fixes issue of "SxProps" not being exported by "@mui/material"

* Update dependency "mui" to v5.x - Fix grid item size

Update to v5.13.3

Fixes issue of "SxProps" not being exported by "@mui/material"

* Update dependency "mui" to v5.x - Replace "ListItem" with "ListItemButton"

* Update dependency "mui" to v5.x - Fix tsc issue

* Update dependency "mui" to v5.x - Prevent reader white screen

Due to "initialChapter" being a function returning an object, it causes a re-render everytime due to it (the object) being used as a dependency.
This caused a white screen when skipping to the previous or next chapter
2023-06-04 21:13:07 +02:00
schroda
6911f60eb4 Feature/remove dependency mui system (#331)
* Remove duplicated dependency "@mui/system"

Already included in "@mui/material"

* Remove duplicated dependency "@mui/system" - Fix theme "custom" palette

Already included in "@mui/material"

* Remove duplicated dependency "@mui/system" - Fix imports

Already included in "@mui/material"
2023-06-04 21:08:39 +02:00
schroda
2a6950b015 Feature/remove dependency mui styles (#330)
* Remove deprecated dependency "@mui/styles"

* Remove deprecated dependency "@mui/styles" - Remove usage
2023-06-04 20:58:44 +02:00
schroda
3a82fd0abb Remove unused dependency "react-lazyload" (#329) 2023-06-04 20:57:13 +02:00
schroda
9e8c4254bd Remove unused dependency "p-queue" (#328) 2023-06-04 20:53:35 +02:00
schroda
95ceac335b Update to axios v1.x (#315)
Update to axious v1.4.0
2023-05-23 13:25:48 +02:00
schroda
58eb2fead3 Feature/enforce license notice in each file via eslint rule (#304)
* [ESLint] Add "eslint-plugin-header" as dev dependency

* [ESLint::eslint-plugin-header] Setup rule

* [ESLint::eslint-plugin-header] Fix errors
2023-05-18 13:17:41 +02:00
schroda
8dae72604f Update to SWR version 2.x (#296)
* Update SWR to version 2.1.5

* Improve generic type names

* Use "isLoading" property of "useSWR" response

* Correctly load library without selected tab

With the latest SWR version the library was empty on the first load.
Not sure what exactly is the reason, but due to "isPaused" the request wasn't sent even after "activeTab" wasn't undefined anymore.
Instead of using "isPaused", passing "null" as the key will also prevent SWR from doing the request.
2023-05-15 11:56:55 +02:00
schroda
23001a4298 update react scripts dependency (#255)
* Move "dependencies" close to "devDependencies"

Makes it easier to have a quick overview

* Upgrade "react-scripts" to latest version

With new versions of node (> v16) the build scripts fails with the following error "error:0308010C:digital envelope routines::unsupported"

* Upgrade "react-scripts" to v5 - Fix import

* Upgrade "eslint" dependencies

The latest version of "react-scripts" uses eslint v8 causing the following error "... ERROR in Plugin "react" was conflicted between ".eslintrc.js" >> eslint-config-airbnb ..."

* Upgrade "eslint" dependencies - Allow nested components as props

* Upgrade "eslint" dependencies - Fix lint issues
2023-03-11 20:35:58 +03:30
Aria Moradi
1c7c3e566c add i18n (#239) 2023-02-13 20:21:44 +03:30
Daniel
4e0a860dfd add prettier for auto formatting (#231)
* [Prettier] Add "prettier"

Makes the formatting of the code consistent.
By using the eslint-plugin-prettier formatting issues will be highlighted as a lint error.
These errors will be auto fixed by running "lint --fix" (which can be done automatically on file save)

* [Prettier] Add "prettier" - Fix formatting
2023-02-06 12:36:33 +03:30
Daniel
2eeea41a45 force absolute import path (#223)
* Add "no-relative-import-paths" eslint plugin

* Add "no-relative-import-paths" eslint plugin - Fix imports
2023-02-05 18:45:20 +03:30
Aria Moradi
e828582fd4 update browserlist 2022-11-07 20:23:43 +03:30
Valter Martinek
dcc1634b6f Update typescript dependency (#190) 2022-11-06 23:43:09 +03:30
Valter Martinek
6f8755fa05 Feature/swr for library screens (#186)
* Wrap data fetching in library and manga screen with swr for better dev and user experience. Refactor some API calls and data handling. Add manual refresh to manga detail.

* Fix manga card layout

* Fix refresh button position on small screens

* Revert "Fix manga card layout"

This reverts commit d85da3d8385e1ef64feed1789e4cd4591c8bd563.

* Fix manga not setting title

* Move chapters loading to Manga component, join data fetching, add auto online fetch if fetched data is old

* Revert some changes
2022-11-02 13:12:02 +03:30
robo
042172a072 mass search (#157)
* mass search

currently cripples server for like 2 mins on use

* works

its slow, really slow
but it don't break the server anymore

* concurrency using p-queue

* remove package.lock + search auto select

* sorting like yomi

* fix yarn.lock
2022-03-12 08:16:55 +03:30