Files
lnreader-plugins/package.json
T
Marcin Majewski b2caf26da3 Move to Zustand and add Filters to web_test (#1077)
* Moved to zustand and started refactored filters

- Move from redux to zustand
- Refactor Filters typings and add some helper types
- Add Filters button and Picker/Switch filter options
- Fixed Syosetu typings

* Add rule consistent-type-definitions

- Add consistent-type-definitions eslint rule to force consistent use of types instead of interfaces
- Run eslint to auto-change every interface to types

https://dev.to/atheodosiou/types-vs-interfaces-in-typescript-making-the-right-choice-48a4
https://www.youtube.com/watch?v=zM9UPcIyyhQ

* Add other filters and refactor

- Move Dialog to FiltersDialog
- CheckboxFilter, TextFilter, XCheckboxFilter added
- Added TripleCheckbox and TripleSwitch as tri-state checkbox/switch items using Mui stylings

* TriStateCheckbox/Switch refactor

- Change name of TripleSwitch and TripleCheckbox to TriState
- Change slightly TriStateSwitch and StyledSwitch styles
- Add option to change into TriStateSwitches via `localStorage` value `useSwitches`

* Refactor code and fix issues

* fix: prettier

---------

Co-authored-by: nyagami <hoangquan05112002@gmail.com>
2024-08-18 22:31:41 +07:00

73 lines
2.2 KiB
JSON

{
"name": "lnreader-plugins",
"version": "3.0.0",
"description": "Plugins repo for LNReader",
"main": "index.js",
"type": "module",
"scripts": {
"clearMultisrc": "find . -type f -wholename \"*plugins*\\[*\\]*.[t,j]s\" -delete",
"dev": "vite",
"generate": "node ./scripts/multisrc/generate.js",
"host-linux": "chmod +x ./host.sh && ./host.sh",
"host-windows": "powershell ./host.ps1",
"icons": "npm run clearMultisrc && npm run generate && npx tsc -m node16; npm run json && node ./scripts/icon_reloading.js",
"json": " node ./scripts/json_plugins.js",
"lint": "npx eslint .",
"prepare": "husky install",
"prettier": "prettier --write \"./**/*.{js,ts}\"",
"proxy": "node proxy_server.js",
"start": "node importPlugins.js && concurrently \"npm run dev\" \"npm run proxy\"",
"test": "exit 0"
},
"author": "LNReader",
"license": "MIT",
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@fontsource/roboto": "^5.0.13",
"@mui/icons-material": "^5.15.20",
"@mui/material": "^5.15.20",
"@reduxjs/toolkit": "^2.2.5",
"cheerio": "^1.0.0-rc.12",
"dayjs": "^1.11.10",
"htmlparser2": "^9.1.0",
"protobufjs": "^7.2.6",
"qs": "^6.11.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^9.1.2",
"react-virtuoso": "^4.7.11",
"react-window": "^1.8.10",
"sanitize-html": "^2.12.1",
"urlencode": "^2.0.0",
"zustand": "^4.5.4"
},
"devDependencies": {
"@eslint/js": "^9.5.0",
"@types/eslint__js": "^8.42.3",
"@types/eslint-config-prettier": "^6.11.3",
"@types/qs": "^6.9.15",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@types/react-window": "^1.8.8",
"@vitejs/plugin-react-swc": "^3.5.0",
"concurrently": "^8.2.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"globals": "^15.6.0",
"http-proxy": "^1.18.1",
"husky": "^9.0.11",
"image-size": "^1.1.1",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"terser": "^5.31.1",
"ts-node": "^10.9.2",
"typescript": "^5.5.2",
"typescript-eslint": "^7.14.1",
"vite": "^5.2.0"
},
"lint-staged": {
"**/*.{js,ts,jsx,tsx}": "prettier --write"
}
}