You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ You can see and try out a SolidOS Databrowser Webapp deployment at <https://soli
75
75
76
76
`browse.html`serves as a perfect example for Solid WebID authentication and for making use of mashlib functions and variables.
77
77
78
-
To run/test it locally we created a script `npm run startStaticOS`.
78
+
To run/test locally we created a script `npm run start`.
79
79
80
80
### SolidOS Databrowser Frontend
81
81
@@ -97,18 +97,18 @@ What does `global` mean in mashlib? We mean the `global object` which depends on
97
97
98
98
These are the most important window context/global variables and the sub-repos from which they are exported:
99
99
100
-
-[**solid-logic**](https://github.com/solidos/solid-logic/blob/f606b31382a416ee6188930c3ca05cb4ae73cbda/src/index.ts#L29) exports among others: `solidLogicSingleton`, `authn`, `authSession`, `store`, `chat`, `profile`
100
+
-[**solid-logic**](https://github.com/solidos/solid-logic/blob/f606b31382a416ee6188930c3ca05cb4ae73cbda/src/index.ts#L29) exports among others: `SolidLogic`
101
101
-[**pane-registry**](https://github.com/solidos/pane-registry) is exported entirely through the pane-registry variable
102
102
-[**solid-ui**](https://github.com/solidos/solid-ui/blob/c5a8888d6cb61363bc0445be007e3c96de593338/src/index.ts#L79) exports among others: authn, store, rdf, dom under the `UI` variable
103
103
-[**solid-panes**](https://github.com/solidos/solid-panes/blob/033f48f8987364cb131455b13e8b0637da95a5ab/src/index.ts#L53) exports getOutliner and the entire solid-ui through the `UI` variable, and solid-panes itself can be used through the `panes` variable
104
104
105
105
For backward compatibility reasons, there are now different ways to make use of the same variables from mashlib. For example:
106
106
107
-
- to make use of the UI (solid-ui) one can use `UI`or `panes.UI`
108
-
- authentication session, part of solid-logic, can be called as `authSession`or `UI.authn.authSession`or`panes.UI.authn.authSession`
109
-
- the store (from solid-logic) can be used as `store`or `UI.store`or`panes.UI.store`
110
-
- rdflib is entirely acessible as `UI.rdf` or `panes.UI.rdf`
111
-
- the currentUser function is called as `authn.currentUser()`or `UI.auth.currentUser()`or`panes.UI.authn.currentUser()`
107
+
- to make use of the UI (solid-ui) one can use `UI`BUT NOT `panes.UI` anymore
108
+
- authentication session, part of solid-logic, can be called as `SolidLogic.authSession`BUT NOT `UI.authn.authSession`nor`panes.UI.authn.authSession` anymore
109
+
- the store (from solid-logic) can be used as `SolidLogic.store`BUT NOT `UI.store`nor`panes.UI.store` anymore
110
+
- rdflib NOT entirely acessible as `UI.rdf` or `panes.UI.rdf` anymore but as `$rdf`
111
+
- the currentUser function is called as `SolidLogic.authn.currentUser()`BUT NOT `UI.auth.currentUser()`nor`panes.UI.authn.currentUser()` anymore
112
112
113
113
You can see example usage in the [SolidOS Databrowser Webapp code](https://github.com/solidos/mashlib/blob/main/static/browse.html#L11).
114
114
@@ -130,7 +130,7 @@ Some packages have been moved and with them some functions too. Here we report o
130
130
Functions that moved:
131
131
132
132
*`currentUser`, `checkUser`, `saveUser`, `offlineTestID` are now part of `solid-logic/authn/SolidAuthnLogic.ts`-> this is because `authn` itself moved to solid-logic.
133
-
*`setACLUserPublic`, `fetchACLRel` are not part of `solid-logic/src/acl/aclLogic.ts/` and are exported in [index.ts](https://github.com/solidos/solid-logic/blob/f606b31382a416ee6188930c3ca05cb4ae73cbda/src/index.ts#L12).
133
+
*`setACLUserPublic`, `fetchACLRel` are now part of `solid-logic/src/acl/aclLogic.ts/` and are exported in [index.ts](https://github.com/solidos/solid-logic/blob/f606b31382a416ee6188930c3ca05cb4ae73cbda/src/index.ts#L12).
134
134
*`loadIndex`, `loadTypeIndexes`, `ensureTypeIndexes`, `registerInTypeIndex` and are exported in [index.ts](https://github.com/solidos/solid-logic/blob/f606b31382a416ee6188930c3ca05cb4ae73cbda/src/index.ts#L16).
0 commit comments