Files
myeasycms-v2/apps/web/package.json
giancarlo 99db8f4ca4 Implement custom roles and improve permissions logic
The commit refactors the handling of account roles and enhances permissions checks. The account role has been shifted to use a string type, providing the ability to define custom roles. It also introduces the RolesDataProvider component, which stipulates role-related data for different forms and tables. The modification goes further to consider user role hierarchy in permissions checks, offering a more granular access control.
2024-03-29 14:48:45 +08:00

86 lines
2.6 KiB
JSON

{
"name": "web",
"version": "0.1.0",
"private": true,
"sideEffects": false,
"scripts": {
"analyze": "ANALYZE=true pnpm run build",
"build": "pnpm with-env next build",
"clean": "git clean -xdf .next .turbo node_modules",
"dev": "pnpm with-env next dev --turbo",
"next:lint": "next lint",
"format": "prettier --check \"**/*.{js,cjs,mjs,ts,tsx,md,json}\"",
"start": "pnpm with-env next start",
"typecheck": "tsc --noEmit",
"with-env": "dotenv -e ./.env.local --"
},
"dependencies": {
"@epic-web/invariant": "^1.0.0",
"@hookform/resolvers": "^3.3.4",
"@kit/accounts": "workspace:^",
"@kit/admin": "workspace:^",
"@kit/auth": "workspace:^",
"@kit/billing": "workspace:^",
"@kit/billing-gateway": "workspace:^",
"@kit/email-templates": "workspace:^",
"@kit/i18n": "workspace:^",
"@kit/mailers": "workspace:^",
"@kit/shared": "workspace:^",
"@kit/supabase": "workspace:^",
"@kit/team-accounts": "workspace:^",
"@kit/ui": "workspace:^",
"@next/mdx": "^14.1.4",
"@radix-ui/react-icons": "^1.3.0",
"@supabase/ssr": "^0.1.0",
"@supabase/supabase-js": "^2.41.1",
"@tanstack/react-query": "5.28.6",
"@tanstack/react-query-next-experimental": "^5.28.9",
"@tanstack/react-table": "^8.15.0",
"contentlayer": "0.3.4",
"date-fns": "^3.6.0",
"edge-csrf": "^1.0.9",
"i18next": "^23.10.1",
"i18next-resources-to-backend": "^1.2.0",
"next": "14.2.0-canary.48",
"next-contentlayer": "0.3.4",
"next-sitemap": "^4.2.3",
"next-themes": "0.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.51.2",
"react-i18next": "^14.1.0",
"recharts": "^2.12.3",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",
"sonner": "^1.4.41",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.22.4"
},
"devDependencies": {
"@kit/eslint-config": "workspace:^",
"@kit/prettier-config": "workspace:^",
"@kit/tailwind-config": "workspace:^",
"@kit/tsconfig": "workspace:^",
"@next/bundle-analyzer": "canary",
"@types/mdx": "^2.0.12",
"@types/node": "^20.11.30",
"@types/react": "^18.2.73",
"@types/react-dom": "^18.2.22",
"autoprefixer": "^10.4.19",
"dotenv-cli": "^7.4.1",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"tailwindcss": "3.4.1",
"typescript": "^5.4.3"
},
"eslintConfig": {
"root": true,
"extends": [
"@kit/eslint-config/base",
"@kit/eslint-config/nextjs",
"@kit/eslint-config/react"
]
},
"prettier": "@kit/prettier-config"
}