Files
spacedrive/apps/landing/package.json
Vítor Vasconcellos 24a3aedd7b [ENG-384] Indexer rules editor (#723)
* WIP Create Indexer Rule UI + Backend api fix

* Complete IndexerEditor UI for creating new rules
- WIP testing to ensure all rules are parsed correctly
- Add utilities to satisfy the TypeScript typechecker
- Introduce a utility function to facilitate extracting information from an RSPCError
- Modify AddLocationDialog to utilize the aforementioned utility function

* Validation and submit logic is now functional
- Reorganize UI for improved user flow
- Implement validation and error messaging, replace some bare inputs with form inputs, and fix styling issues
- Resolve issues with post-processing of rules during submission
- Wrap editable portion of component in a `FormProvider` due to the `Form` being in a `Portal`
- Add specialized `ErrorMessage` component to `@sd/ui` library
- Update `AddLocationDialog` and `FormField` to utilize the new `ErrorMessage` component

* Fix submit not waiting for confirmation from backend
 - Reset form after submit
 - Disable form while submiting
 - Update form related dependencies

* Implement deleting an indexer rule
 - Modify indexer rule api route to disallow deleting default rules

* Fix form reset on error
 - Minor style adjustments
2023-04-22 04:30:11 +00:00

63 lines
1.7 KiB
JSON

{
"name": "@sd/landing",
"scripts": {
"dev": "pnpm run server",
"prod": "pnpm run build && pnpm run server:prod",
"vercel-build": "./vercel/deploy.sh",
"build": "vite build",
"server": "ts-node ./server",
"server:prod": "cross-env NODE_ENV=production ts-node ./server",
"lint": "eslint src server --cache",
"typecheck": "tsc -b"
},
"dependencies": {
"@headlessui/react": "^1.7.3",
"@icons-pack/react-simple-icons": "^5.8.0",
"@sd/assets": "workspace:*",
"@sd/docs": "workspace:*",
"@vitejs/plugin-react": "^2.1.0",
"clsx": "^1.2.1",
"compression": "^1.7.4",
"cross-env": "^7.0.3",
"express": "^4.18.1",
"markdown-yaml-metadata-parser": "^3.0.0",
"marked": "^4.1.1",
"phosphor-react": "^1.4.1",
"prismjs": "^1.29.0",
"react": "^18.2.0",
"react-burger-menu": "^3.0.8",
"react-dom": "^18.2.0",
"react-helmet": "^6.1.0",
"react-hook-form": "^7.43.9",
"react-tsparticles": "^2.3.3",
"sirv": "^2.0.2",
"ts-node": "^10.9.1",
"tsparticles": "^2.3.4",
"typescript": "^4.8.4",
"vite": "^4.0.4",
"vite-plugin-ssr": "^0.4.39"
},
"devDependencies": {
"@sd/config": "workspace:*",
"@sd/ui": "workspace:*",
"@tailwindcss/line-clamp": "^0.4.2",
"@tailwindcss/typography": "^0.5.7",
"@types/compression": "^1.7.2",
"@types/express": "^4.17.14",
"@types/marked": "^4.0.7",
"@types/node": "^18.11.9",
"@types/prismjs": "^1.26.0",
"@types/react": "^18.0.21",
"@types/react-burger-menu": "^2.8.3",
"@types/react-dom": "^18.0.6",
"@types/react-helmet": "^6.1.5",
"postcss": "^8.4.17",
"rollup-plugin-visualizer": "^5.8.2",
"sass": "^1.55.0",
"vite-plugin-esmodule": "^1.4.4",
"vite-plugin-markdown": "^2.1.0",
"vite-plugin-svgr": "^2.2.1",
"vite-tsconfig-paths": "^3.5.2"
}
}