stack/packages/stack-server/package.json
Stan Wohlwend 9ff2cff5c5
Organizations & RBAC (#22)
* added organizations route

* added orgganizations/[orgId] and orgganizations/[orgId]/users routes

* added more routes

* restructured dashboard pages, added organization page

* fixed redirect bug

* updated sidebar

* added mock orgnizations

* fixed breadcrumbs

* added edit org modal

* added memeber table

* added permission table

* Orgs & perms backend

* Fix build errors

* updated permission ui

* org -> team for frontend

* added enable team UI

* Stack App for teams

* formatted schema

* renamed all orgs to teams

* fixed docusaurus bug

* disabled docusaurus build progress bar

* added member profile and direct permission to profile

* removed dead code, memberProfile -> member

* removed teams attribute from the user object

* added /teams endpoint

* added create team endpoint

* added add-user endpoint

* moved add-user

* added server side get teams

* updated schema formatting

* added team enabled endpoints

* fixed type error

* moved get current teams to current-user/teams

* improved interface

* added create team

* hooked up team to frontend

* added hooked up team name with team member page

* added list team users

* added useUsers to team object

* fixed list team user bug

* added team update

* added list permissions and use permission on app

* added create permission

* list permission

* added permission list

* added inherited permission list

* add edit permission model

* restructured permission graph

* updated style

* added delete permission

* fixed delete permission bug

* added inheritence update

* fixed await bug

* fixed selection bug

* added permission update

* fixed update bug

* fixed team update refresh

* added remove user from team

* restructured permission and permission definition

* updated permission definition structure

* updated list permissions and grant permissions

* fixed list user permissions

* added grant permission

* fixed list permission

* added direct option to list team use permission

* fixed bugs

* fixed bugs

* added revoke permission

* inherited from -> contains

* added client list permission

* restructured stack-app teams and permissions

* fixed server teams and permissions

* fixed bug

* fixed bugs

* added teams pages to demo

* added styled component compiler

* added list teams

* added join and leave teams

* fixed prisma onDelete

* fixed type bugs

* removed on permission change for now

* added member

* fixed user and server user

* fixed imports

* added create team

* added more content to demo

* fixed recursion bug

* fixed recursion stack out of bound bug

* removed teamsEnabled

* added create team on sign-up options

* added create team on signup

* queriable -> queryable, fixed migration file

* fixed migration file

* fixed demo build error

* fixed license accidental change

* fixed tab styling

* added required to create permission id

* added more ui error hints

* fixed seed wrong setting

* default team name

* improved permission list ui

* improved demo display

* Update README.md

---------

Co-authored-by: Zai Shi <zaishi00@outlook.com>
2024-05-08 12:43:56 +02:00

82 lines
3.1 KiB
JSON

{
"name": "@stackframe/stack-server",
"version": "0.4.0",
"private": true,
"scripts": {
"clean": "rimraf .next && rimraf node_modules",
"typecheck": "tsc --noEmit",
"with-env": "dotenv -c development --",
"with-env:prod": "dotenv -c --",
"keygen": "node scripts/generateKey.js",
"postinstall": "npm run todo",
"dev": "npm run todo; next dev --port 8101",
"build": "npm run todo; npm run codegen && next build",
"analyze-bundle": "npm run todo; ANALYZE_BUNDLE=1 npm run build",
"start": "npm run todo; next start --port 8101",
"codegen": "npm run todo; npm run prisma -- generate",
"psql": "npm run todo; npm run with-env -- bash -c 'psql $DATABASE_CONNECTION_STRING'",
"prisma": "npm run todo; npm run with-env -- prisma",
"email": "email dev --port 3001 --dir src/email/templates",
"lint": "npm run todo; next lint",
"todo": "( sh -c 'echo && echo Analyzing TODOs...' && npm run todo-sh >/dev/null; exit 0 ) || npm run todo-win",
"todo-win": "echo \"Not running on Linux or macOS, performing simple TODO check.\" && git grep -n TODO\\ ASAP || echo \"No TODOs found, good job!\"",
"todo-sh": "( ( ! git grep -n TODO\\ ASAP 1>&2 || npm run todo-sh-error-blocker ) && echo No imminent TODOs found, good job! 1>&2 )",
"todo-sh-error-blocker": "( echo && echo ========================================= && echo There are TODO\\ ASAPs in your code, please && echo review them with '`npm run todo`'. && echo && echo Press ENTER or wait 10s to continue. && echo ========================================= && echo && bash -c 'read -t 10'; exit 1 ) 1>&2"
},
"prisma": {
"seed": "npm run with-env -- tsx prisma/seed.ts"
},
"dependencies": {
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@mdx-js/loader": "^3",
"@mdx-js/react": "^3.0.0",
"@mui/icons-material": "^5.15.10",
"@mui/joy": "^5.0.0-beta.30",
"@mui/material": "^5.15.7",
"@mui/x-data-grid": "^6.19.3",
"@next/bundle-analyzer": "^14.0.3",
"@next/mdx": "^14",
"@node-oauth/oauth2-server": "^5.1.0",
"@prisma/client": "^5.9.1",
"@react-email/components": "^0.0.14",
"@react-email/render": "^0.0.12",
"@react-email/tailwind": "^0.0.14",
"@sentry/nextjs": "^7.105.0",
"@stackframe/stack": "workspace:*",
"@stackframe/stack-shared": "workspace:*",
"@types/mdx": "^2",
"@vercel/analytics": "^1.2.2",
"bcrypt": "^5.1.1",
"bright": "^0.8.4",
"canvas-confetti": "^1.9.2",
"dotenv-cli": "^7.3.0",
"geist": "^1",
"jose": "^5.2.2",
"next": "^14.1",
"nodemailer": "^6.9.10",
"openid-client": "^5.6.4",
"pg": "^8.11.3",
"react": "^18.2",
"react-dom": "^18",
"react-email": "2.1.0",
"rehype-katex": "^7",
"remark-gfm": "^4",
"remark-heading-id": "^1.0.1",
"remark-math": "^6",
"server-only": "^0.0.1",
"sharp": "^0.32.6",
"yup": "^1.3.3"
},
"devDependencies": {
"@types/bcrypt": "^5.0.2",
"@types/canvas-confetti": "^1.6.4",
"@types/node": "^20.8.10",
"@types/nodemailer": "^6.4.14",
"@types/react": "^18.2.66",
"@types/react-dom": "^18",
"prisma": "^5.9.1",
"tsx": "^4.7.2"
}
}