Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Permissions Infra v0.1 #1038

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ set(JS_DIRS
services/user/Homepage/ui:Homepage_js
services/user/Workshop/ui:Workshop_js
services/user/Supervisor/ui:Supervisor_js
services/user/Permissions/ui:Permissions_js
services/user/Explorer/ui:Explorer_js
services/user/Tokens/ui:Tokens_js
services/user/Branding/ui:Branding_js
Expand Down Expand Up @@ -307,6 +308,7 @@ add_rs_component_workspace(services/:Plugins
auth-sig
clientdata
invite
permissions
sites
test
tokens
Expand Down Expand Up @@ -692,6 +694,18 @@ psibase_package(
DEPENDS ${Supervisor_js_DEP}
)

psibase_package(
OUTPUT ${SERVICE_DIR}/Permissions.psi
NAME Permissions
VERSION ${PSIBASE_VERSION}
DESCRIPTION "Handler for client-side permissions"
PACKAGE_DEPENDS "HttpServer(^${PSIBASE_VERSION})" "Sites(^${PSIBASE_VERSION})" "CommonApi(^${PSIBASE_VERSION})"
SERVICE permissions
DATA ${Plugins_OUTPUT_FILE_permissions} /plugin.wasm
DATA GLOB ${CMAKE_CURRENT_SOURCE_DIR}/services/user/Permissions/ui/dist/* /
DEPENDS ${Permissions_js_DEP}
DEPENDS ${Plugins_DEP}
)
psibase_package(
OUTPUT ${SERVICE_DIR}/SupervisorTests.psi
NAME SupervisorTests
Expand Down Expand Up @@ -787,7 +801,7 @@ psibase_package(
VERSION ${PSIBASE_VERSION}
DESCRIPTION "All development services"
PACKAGE_DEPENDS Accounts Registry AuthAny AuthSig AuthDelegate Branding Brotli Chainmail ClientData CommonApi CpuLimit
Docs Events Explorer Fractal Invite Nft Packages Producers HttpServer
Docs Events Explorer Fractal HttpServer Invite Nft Packages Permissions Producers
Sites SetCode StagedTx Supervisor Symbol Tokens Transact Homepage Workshop
)

Expand All @@ -797,7 +811,7 @@ psibase_package(
VERSION ${PSIBASE_VERSION}
DESCRIPTION "All production services"
PACKAGE_DEPENDS Accounts Registry AuthAny AuthSig AuthDelegate Branding Brotli Chainmail ClientData CommonApi CpuLimit
Docs Events Explorer Fractal Invite Nft Packages Producers HttpServer
Docs Events Explorer Fractal HttpServer Invite Nft Packages Permissions Producers
Sites SetCode StagedTx Supervisor Symbol Tokens Transact Homepage Workshop
)

Expand Down Expand Up @@ -852,29 +866,30 @@ install(
${SERVICE_DIR}/ProdDefault.psi
${SERVICE_DIR}/CpuLimit.psi
${SERVICE_DIR}/Docs.psi
${SERVICE_DIR}/Homepage.psi
${SERVICE_DIR}/Events.psi
${SERVICE_DIR}/Explorer.psi
${SERVICE_DIR}/Fractal.psi
${SERVICE_DIR}/HttpServer.psi
${SERVICE_DIR}/Homepage.psi
${SERVICE_DIR}/Invite.psi
${SERVICE_DIR}/Minimal.psi
${SERVICE_DIR}/Nft.psi
${SERVICE_DIR}/Nop.psi
${SERVICE_DIR}/Packages.psi
${SERVICE_DIR}/Permissions.psi
${SERVICE_DIR}/Producers.psi
${SERVICE_DIR}/TestDefault.psi
${SERVICE_DIR}/HttpServer.psi
${SERVICE_DIR}/Registry.psi
${SERVICE_DIR}/Workshop.psi
${SERVICE_DIR}/Sites.psi
${SERVICE_DIR}/SetCode.psi
${SERVICE_DIR}/StagedTx.psi
${SERVICE_DIR}/Supervisor.psi
${SERVICE_DIR}/SupervisorTests.psi
${SERVICE_DIR}/Symbol.psi
${SERVICE_DIR}/TestDefault.psi
${SERVICE_DIR}/TokenUsers.psi
${SERVICE_DIR}/Tokens.psi
${SERVICE_DIR}/Transact.psi
${SERVICE_DIR}/Workshop.psi
DESTINATION ${CMAKE_INSTALL_DATADIR}/psibase/packages/
COMPONENT ServerData)

Expand Down
27 changes: 0 additions & 27 deletions dev/DemoApp1/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions dev/DemoApp1/plugin/.gitignore

This file was deleted.

Loading