Skip to content
Draft
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
2,188 changes: 682 additions & 1,506 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
],
"scripts": {
"clean": "rm -rf dist src/versionInfo.ts",
"build": "npm run clean && npm run typecheck && vite build",
"build": "npm run clean && npm run typecheck && vite build && npm run build-types",
"build-types": "tsc --emitDeclarationOnly",
"watch": "vite build --watch",
"postbuild": "npm run postbuild-js",
"postbuild-js": "rm -f dist/versionInfo.d.ts dist/versionInfo.d.ts.map dist/index.js dist/index.js.map",
Expand Down Expand Up @@ -50,20 +51,21 @@
},
"devDependencies": {
"@typescript-eslint/parser": "^8.61.1",
"@vitest/coverage-v8": "^4.1.9",
"eslint": "^9.39.4",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import": "^2.32.0",
"vitest": "^4.1.9",
"jsdom": "^21.1.0",
"solidos-toolkit": "dev",
"rdflib": "^2.4.1",
"ts-loader": "^9.6.1",
"tslib": "^2.8.1",
"typescript": "^5.9.3",
"@vitest/coverage-v8": "^4.1.9",
"solidos-toolkit": "dev"
"vitest": "^4.1.9"
},
"dependencies": {
"@uvdsl/solid-oidc-client-browser": "^0.2.3",
"solid-file-client": "^2.1.11",
"solid-namespace": "^0.5.4",
"vite": "^8.0.16",
"vitest": "^4.1.9"
Expand Down
16 changes: 16 additions & 0 deletions src/acl/aclLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,21 @@ export function createAclLogic(store): AclLogic {
})
}

/**
* Simple private ACL: owner gets read/write/control and nobody else gets access.
Will do this differently later if we keep the trash.
May use the ACL library from Dokeili instead
*/
function setACLUserOwnerOnly (
docURI: string,
me: NamedNode,
options: {
defaultForNew?: boolean,
}
): Promise<NamedNode> {
return setACLUserPublic(docURI, me, { ...options, public: [] })
}

/**
* @param docURI
* @returns
Expand Down Expand Up @@ -150,6 +165,7 @@ export function createAclLogic(store): AclLogic {
return {
findAclDocUrl,
setACLUserPublic,
setACLUserOwnerOnly,
genACLText
}
}
2 changes: 1 addition & 1 deletion src/logic/solidLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function createSolidLogic(specialFetch: { fetch: (url: any, requestInit:
const chat = createChatLogic(store, profile)
const inbox = createInboxLogic(store, profile, utilityLogic, containerLogic, acl)
const typeIndex = createTypeIndexLogic(store, authn, profile, utilityLogic)
const resource = createResourceLogic(store, acl, containerLogic, typeIndex)
const resource = createResourceLogic(store, authn, acl, containerLogic, typeIndex, profile)
debug.log('SolidAuthnLogic initialized')

function load(doc: NamedNode | NamedNode[] | string) {
Expand Down
Loading
Loading