solid-panes 3.5.19 → 3.5.20-b3dce45b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +0 -0
- package/.eslintignore +0 -0
- package/.eslintrc +0 -0
- package/.github/workflows/ci.yml +0 -0
- package/.nvmrc +0 -0
- package/Documentation/VisualLanguage.html +0 -0
- package/Documentation/conventions.md +0 -0
- package/LICENSE.md +0 -0
- package/README.md +0 -0
- package/dev/index.html +0 -0
- package/dev/loader.ts +11 -11
- package/dev/pane/index.ts +0 -0
- package/doc/images/panes-for-classes.epgz +0 -0
- package/doc/images/panes-for-classes.svg +0 -0
- package/jest.config.js +0 -0
- package/jest.setup.ts +0 -0
- package/lib/RDFXMLPane.js +0 -0
- package/lib/RDFXMLPane.js.map +0 -0
- package/lib/argument/argumentPane.js +15 -7
- package/lib/argument/argumentPane.js.map +1 -1
- package/lib/attach/attachPane.js +0 -0
- package/lib/attach/attachPane.js.map +0 -0
- package/lib/audio/audioPane.js +0 -0
- package/lib/audio/audioPane.js.map +0 -0
- package/lib/classInstancePane.js +0 -0
- package/lib/classInstancePane.js.map +0 -0
- package/lib/dashboard/basicPreferences.d.ts +0 -0
- package/lib/dashboard/basicPreferences.d.ts.map +1 -1
- package/lib/dashboard/basicPreferences.js +6 -6
- package/lib/dashboard/basicPreferences.js.map +1 -1
- package/lib/dashboard/dashboardPane.d.ts +0 -0
- package/lib/dashboard/dashboardPane.d.ts.map +1 -1
- package/lib/dashboard/dashboardPane.js +6 -4
- package/lib/dashboard/dashboardPane.js.map +1 -1
- package/lib/dashboard/homepage.d.ts +0 -0
- package/lib/dashboard/homepage.d.ts.map +0 -0
- package/lib/dashboard/homepage.js +0 -0
- package/lib/dashboard/homepage.js.map +0 -0
- package/lib/dataContentPane.js +1 -1
- package/lib/dataContentPane.js.map +1 -1
- package/lib/defaultPane.js +0 -0
- package/lib/defaultPane.js.map +0 -0
- package/lib/dokieli/dokieliPane.js +0 -0
- package/lib/dokieli/dokieliPane.js.map +0 -0
- package/lib/dokieli/new.js +0 -0
- package/lib/dokieli/new.js.map +0 -0
- package/lib/form/pane.js +15 -6
- package/lib/form/pane.js.map +1 -1
- package/lib/global.d.js +0 -0
- package/lib/global.d.js.map +0 -0
- package/lib/home/homePane.d.ts +0 -0
- package/lib/home/homePane.d.ts.map +1 -1
- package/lib/home/homePane.js +7 -5
- package/lib/home/homePane.js.map +1 -1
- package/lib/humanReadablePane.js +0 -0
- package/lib/humanReadablePane.js.map +0 -0
- package/lib/imagePane.js +0 -0
- package/lib/imagePane.js.map +0 -0
- package/lib/index.d.ts +7 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +15 -4
- package/lib/index.js.map +1 -1
- package/lib/internal/internalPane.d.ts +0 -0
- package/lib/internal/internalPane.d.ts.map +0 -0
- package/lib/internal/internalPane.js +0 -0
- package/lib/internal/internalPane.js.map +0 -0
- package/lib/mainPage/footer.d.ts +0 -0
- package/lib/mainPage/footer.d.ts.map +0 -0
- package/lib/mainPage/footer.js +0 -0
- package/lib/mainPage/footer.js.map +0 -0
- package/lib/mainPage/header.d.ts +0 -0
- package/lib/mainPage/header.d.ts.map +1 -1
- package/lib/mainPage/header.js +4 -2
- package/lib/mainPage/header.js.map +1 -1
- package/lib/mainPage/index.d.ts +0 -0
- package/lib/mainPage/index.d.ts.map +0 -0
- package/lib/mainPage/index.js +0 -0
- package/lib/mainPage/index.js.map +0 -0
- package/lib/microblogPane/microblogPane.js +16 -14
- package/lib/microblogPane/microblogPane.js.map +1 -1
- package/lib/n3Pane.js +0 -0
- package/lib/n3Pane.js.map +0 -0
- package/lib/outline/context.d.ts +0 -0
- package/lib/outline/context.d.ts.map +0 -0
- package/lib/outline/context.js +0 -0
- package/lib/outline/context.js.map +0 -0
- package/lib/outline/dragDrop.js +16 -6
- package/lib/outline/dragDrop.js.map +1 -1
- package/lib/outline/licenseOptions.js +12 -5
- package/lib/outline/licenseOptions.js.map +1 -1
- package/lib/outline/manager.js +29 -21
- package/lib/outline/manager.js.map +1 -1
- package/lib/outline/manager.test.js +0 -0
- package/lib/outline/manager.test.js.map +0 -0
- package/lib/outline/outlineIcons.js +0 -0
- package/lib/outline/outlineIcons.js.map +0 -0
- package/lib/outline/propertyViews.d.ts +0 -0
- package/lib/outline/propertyViews.d.ts.map +0 -0
- package/lib/outline/propertyViews.js +0 -0
- package/lib/outline/propertyViews.js.map +0 -0
- package/lib/outline/propertyViews.test.js +0 -0
- package/lib/outline/propertyViews.test.js.map +0 -0
- package/lib/outline/queryByExample.js +14 -6
- package/lib/outline/queryByExample.js.map +1 -1
- package/lib/outline/userInput.js +90 -80
- package/lib/outline/userInput.js.map +1 -1
- package/lib/outline/viewAsImage.d.ts +0 -0
- package/lib/outline/viewAsImage.d.ts.map +0 -0
- package/lib/outline/viewAsImage.js +0 -0
- package/lib/outline/viewAsImage.js.map +0 -0
- package/lib/outline/viewAsMbox.d.ts +0 -0
- package/lib/outline/viewAsMbox.d.ts.map +0 -0
- package/lib/outline/viewAsMbox.js +0 -0
- package/lib/outline/viewAsMbox.js.map +0 -0
- package/lib/pad/padPane.d.ts +0 -0
- package/lib/pad/padPane.d.ts.map +1 -1
- package/lib/pad/padPane.js +6 -4
- package/lib/pad/padPane.js.map +1 -1
- package/lib/playlist/playlistPane.js +0 -0
- package/lib/playlist/playlistPane.js.map +0 -0
- package/lib/profile/editProfile.view.d.ts +0 -0
- package/lib/profile/editProfile.view.d.ts.map +1 -1
- package/lib/profile/editProfile.view.js +3 -3
- package/lib/profile/editProfile.view.js.map +1 -1
- package/lib/profile/profile.dom.d.ts +0 -0
- package/lib/profile/profile.dom.d.ts.map +0 -0
- package/lib/profile/profile.dom.js +0 -0
- package/lib/profile/profile.dom.js.map +0 -0
- package/lib/registerPanes.js +0 -0
- package/lib/registerPanes.js.map +0 -0
- package/lib/schedule/formsForSchedule.js +0 -0
- package/lib/schedule/formsForSchedule.js.map +0 -0
- package/lib/schedule/schedulePane.js +26 -14
- package/lib/schedule/schedulePane.js.map +1 -1
- package/lib/sharing/sharingPane.d.ts +0 -0
- package/lib/sharing/sharingPane.d.ts.map +0 -0
- package/lib/sharing/sharingPane.js +0 -0
- package/lib/sharing/sharingPane.js.map +0 -0
- package/lib/slideshow/slideshowPane.js +0 -0
- package/lib/slideshow/slideshowPane.js.map +0 -0
- package/lib/socialPane.js +16 -6
- package/lib/socialPane.js.map +1 -1
- package/lib/tabbed/tabbedPane.d.ts +0 -0
- package/lib/tabbed/tabbedPane.d.ts.map +0 -0
- package/lib/tabbed/tabbedPane.js +0 -0
- package/lib/tabbed/tabbedPane.js.map +0 -0
- package/lib/tableViewPane.js +0 -0
- package/lib/tableViewPane.js.map +0 -0
- package/lib/test-import-export/common.js +0 -0
- package/lib/test-import-export/common.js.map +0 -0
- package/lib/test-import-export/edit-importer.js +0 -0
- package/lib/test-import-export/edit-importer.js.map +0 -0
- package/lib/test-import-export/testImportExport.js +0 -0
- package/lib/test-import-export/testImportExport.js.map +0 -0
- package/lib/transaction/pane.js +1 -1
- package/lib/transaction/pane.js.map +1 -1
- package/lib/transaction/period.js +1 -1
- package/lib/transaction/period.js.map +1 -1
- package/lib/trip/tripPane.js +1 -1
- package/lib/trip/tripPane.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.dom.d.ts +0 -0
- package/lib/trustedApplications/trustedApplications.dom.d.ts.map +1 -1
- package/lib/trustedApplications/trustedApplications.dom.js +11 -9
- package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.test.js +0 -0
- package/lib/trustedApplications/trustedApplications.test.js.map +0 -0
- package/lib/trustedApplications/trustedApplications.utils.d.ts +0 -0
- package/lib/trustedApplications/trustedApplications.utils.d.ts.map +0 -0
- package/lib/trustedApplications/trustedApplications.utils.js +0 -0
- package/lib/trustedApplications/trustedApplications.utils.js.map +0 -0
- package/lib/trustedApplications/trustedApplications.view.d.ts +0 -0
- package/lib/trustedApplications/trustedApplications.view.d.ts.map +1 -1
- package/lib/trustedApplications/trustedApplications.view.js +5 -3
- package/lib/trustedApplications/trustedApplications.view.js.map +1 -1
- package/lib/types.d.ts +0 -0
- package/lib/types.d.ts.map +0 -0
- package/lib/types.js +0 -0
- package/lib/types.js.map +0 -0
- package/lib/ui/pane.js +0 -0
- package/lib/ui/pane.js.map +0 -0
- package/lib/versionInfo.d.ts +0 -0
- package/lib/versionInfo.d.ts.map +0 -0
- package/lib/versionInfo.js +14 -14
- package/lib/versionInfo.js.map +1 -1
- package/lib/video/videoPane.js +0 -0
- package/lib/video/videoPane.js.map +0 -0
- package/package.json +15 -15
- package/src/RDFXMLPane.js +0 -0
- package/src/argument/argumentPane.js +5 -5
- package/src/argument/argument_icon_v04.jpg +0 -0
- package/src/argument/icon_argument.png +0 -0
- package/src/argument/transparentyingyang.png +0 -0
- package/src/attach/attachPane.js +0 -0
- package/src/attach/tbl-paperclip-128.png +0 -0
- package/src/attach/tbl-paperclip-22.png +0 -0
- package/src/attach/tbl-paperclip-22a.png +0 -0
- package/src/audio/audioPane.js +0 -0
- package/src/chatPreferencesForm.ttl +0 -0
- package/src/classInstancePane.js +0 -0
- package/src/dashboard/basicPreferences.ts +4 -5
- package/src/dashboard/dashboardPane.ts +4 -3
- package/src/dashboard/homepage.ts +0 -0
- package/src/dashboard/languages/codes.html +0 -0
- package/src/dashboard/languages/codes.xml +0 -0
- package/src/dashboard/languages/codes2.txt +0 -0
- package/src/dashboard/languages/foo +0 -0
- package/src/dashboard/languages/foo.ttl +0 -0
- package/src/dashboard/languages/get-language-names.sh +0 -0
- package/src/dashboard/ontologyData.ttl +0 -0
- package/src/dashboard/preferencesFormText.ttl +0 -0
- package/src/dataContentPane.js +1 -1
- package/src/defaultPane.js +0 -0
- package/src/dokieli/Makefile +0 -0
- package/src/dokieli/dokieliPane.js +0 -0
- package/src/dokieli/new.html +0 -0
- package/src/dokieli/new.js +0 -0
- package/src/form/form-22.png +0 -0
- package/src/form/form-b-22.png +0 -0
- package/src/form/form.graffle +0 -0
- package/src/form/form.png +0 -0
- package/src/form/pane.js +5 -4
- package/src/form/psuedocode-notes.txt +0 -0
- package/src/global.d.ts +0 -0
- package/src/home/homePane.ts +7 -6
- package/src/humanReadablePane.js +0 -0
- package/src/imagePane.js +0 -0
- package/src/index.ts +24 -18
- package/src/internal/internalPane.ts +0 -0
- package/src/mainPage/footer.ts +0 -0
- package/src/mainPage/header.ts +3 -2
- package/src/mainPage/index.ts +0 -0
- package/src/meeting/Makefile +0 -0
- package/src/meeting/test/meeting1/Actions/actions.ttl +0 -0
- package/src/meeting/test/meeting1/Actions/config.ttl +0 -0
- package/src/meeting/test/meeting1/Actions/state.ttl +0 -0
- package/src/meeting/test/meeting1/Schedule/details.ttl +0 -0
- package/src/meeting/test/meeting1/Schedule/details.ttl.acl +0 -0
- package/src/meeting/test/meeting1/Schedule/forms.ttl +0 -0
- package/src/meeting/test/meeting1/Schedule/forms.ttl.acl +0 -0
- package/src/meeting/test/meeting1/Schedule/index.html +0 -0
- package/src/meeting/test/meeting1/Schedule/index.html.acl +0 -0
- package/src/meeting/test/meeting1/Schedule/results.ttl +0 -0
- package/src/meeting/test/meeting1/Schedule/results.ttl.acl +0 -0
- package/src/meeting/test/meeting1/SharedNotes/pad.ttl +0 -0
- package/src/meeting/test/meeting1/chat/chat.ttl +0 -0
- package/src/meeting/test/meeting1/details.ttl +0 -0
- package/src/meeting/test/meeting1/pad/pad.ttl +0 -0
- package/src/microblogPane/mbStyle.css +0 -0
- package/src/microblogPane/microblogPane.js +9 -8
- package/src/n3Pane.js +0 -0
- package/src/outline/context.ts +0 -0
- package/src/outline/dragDrop.js +5 -4
- package/src/outline/licenseOptions.js +4 -5
- package/src/outline/manager.js +22 -21
- package/src/outline/manager.test.ts +0 -0
- package/src/outline/outlineIcons.js +0 -0
- package/src/outline/propertyViews.test.ts +0 -0
- package/src/outline/propertyViews.ts +0 -0
- package/src/outline/queryByExample.js +4 -4
- package/src/outline/userInput.js +72 -72
- package/src/outline/viewAsImage.ts +0 -0
- package/src/outline/viewAsMbox.ts +0 -0
- package/src/pad/images/ColourOff.ai +0 -0
- package/src/pad/images/ColourOff.png +0 -0
- package/src/pad/images/ColourOn.ai +0 -0
- package/src/pad/images/ColourOn.png +0 -0
- package/src/pad/padPane.ts +3 -3
- package/src/playlist/playlistPane.js +0 -0
- package/src/profile/editProfile.view.ts +5 -8
- package/src/profile/profile.dom.ts +0 -0
- package/src/profile/profileFormText.ttl +0 -0
- package/src/registerPanes.js +0 -0
- package/src/schedule/Makefile +0 -0
- package/src/schedule/formsForSchedule.js +0 -0
- package/src/schedule/formsForSchedule.ttl +0 -0
- package/src/schedule/schedulePane.js +14 -13
- package/src/sharing/sharingPane.ts +0 -0
- package/src/slideshow/slideshowPane.js +0 -0
- package/src/socialPane.js +5 -4
- package/src/style/tabbedtab.css +0 -0
- package/src/tabbed/tabbedPane.ts +0 -0
- package/src/tableViewPane.js +0 -0
- package/src/test-import-export/common.js +0 -0
- package/src/test-import-export/edit-importer.js +0 -0
- package/src/test-import-export/testImportExport.js +0 -0
- package/src/transaction/068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
- package/src/transaction/075988-3d-transparent-glass-icon-business-currency-british-pound-sc35.png +0 -0
- package/src/transaction/22-pixel-068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
- package/src/transaction/pane.js +1 -1
- package/src/transaction/period.js +1 -1
- package/src/transaction/thumbs_075987-3d-transparent-glass-icon-business-creditcard2.png +0 -0
- package/src/transaction/thumbs_075989-3d-transparent-glass-icon-business-currency-cent-sc35.png +0 -0
- package/src/trip/tripPane.js +1 -1
- package/src/trustedApplications/__snapshots__/trustedApplications.test.ts.snap +0 -0
- package/src/trustedApplications/trustedApplications.dom.ts +2 -1
- package/src/trustedApplications/trustedApplications.test.ts +0 -0
- package/src/trustedApplications/trustedApplications.utils.ts +0 -0
- package/src/trustedApplications/trustedApplications.view.ts +4 -4
- package/src/types.ts +0 -0
- package/src/ui/22-builder.png +0 -0
- package/src/ui/builder.graffle +0 -0
- package/src/ui/builder.png +0 -0
- package/src/ui/builder2.png +0 -0
- package/src/ui/pane.js +0 -0
- package/src/versionInfo.ts +14 -14
- package/src/video/videoPane.js +0 -0
- package/timestamp.sh +0 -0
- package/travis/bumpversion.js +0 -0
- package/tsconfig.json +0 -0
- package/typings/raw-loader.d.ts +0 -0
- package/typings/solid-namespace/index.d.ts +0 -0
- package/webpack.config.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-panes",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.20-b3dce45b",
|
|
4
4
|
"description": "Solid-compatible Panes: applets and views for the mashlib and databrowser",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "npm run clean && npm run build-version && npm run build-lib && npm run build-types",
|
|
9
9
|
"build-form": "(cd src/schedule/ && make)",
|
|
10
10
|
"build-lib": "npm run build-form && babel src -d lib --source-maps --extensions '.ts,.js'",
|
|
11
|
-
"build-dev": "webpack --progress --
|
|
11
|
+
"build-dev": "webpack --progress --mode=development",
|
|
12
12
|
"build-types": "tsc --emitDeclarationOnly",
|
|
13
13
|
"build-version": "./timestamp.sh > src/versionInfo.ts && eslint 'src/versionInfo.ts' --fix",
|
|
14
14
|
"watch": "npm run build-version && babel src -d lib --source-maps --extensions '.ts,.js' --watch",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"lint-fix": "eslint 'src/**/*.js' 'src/**/*.ts' --fix",
|
|
18
18
|
"test": "npm run lint && jest",
|
|
19
19
|
"test-watch": "npm run lint && jest --onlyChanged --watch",
|
|
20
|
-
"prepublishOnly": "npm test && npm run build",
|
|
20
|
+
"ignore:prepublishOnly": "npm test && npm run build",
|
|
21
21
|
"postversion": "git push origin main --follow-tags"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
@@ -46,26 +46,26 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@babel/polyfill": "^7.12.1",
|
|
48
48
|
"@solid/better-simple-slideshow": "^0.1.0",
|
|
49
|
-
"activitystreams-pane": "^0.6.
|
|
49
|
+
"activitystreams-pane": "^0.6.4",
|
|
50
50
|
"babel-preset-env": "^1.7.0",
|
|
51
51
|
"babel-preset-metalab": "^1.0.0",
|
|
52
|
-
"chat-pane": "^2.4.
|
|
53
|
-
"contacts-pane": "^2.6.
|
|
54
|
-
"folder-pane": "^2.4.
|
|
55
|
-
"issue-pane": "^2.4.
|
|
56
|
-
"marked": "^4.0.
|
|
57
|
-
"meeting-pane": "^2.3.
|
|
52
|
+
"chat-pane": "^2.4.16",
|
|
53
|
+
"contacts-pane": "^2.6.1",
|
|
54
|
+
"folder-pane": "^2.4.13",
|
|
55
|
+
"issue-pane": "^2.4.10",
|
|
56
|
+
"marked": "^4.0.12",
|
|
57
|
+
"meeting-pane": "^2.3.9",
|
|
58
58
|
"mime-types": "^2.1.34",
|
|
59
|
-
"pane-registry": "^2.4.
|
|
59
|
+
"pane-registry": "^2.4.7",
|
|
60
60
|
"path-browserify": "^1.0.1",
|
|
61
|
-
"profile-pane": "^1.0.
|
|
61
|
+
"profile-pane": "^1.0.8",
|
|
62
62
|
"rdflib": "^2.2.17",
|
|
63
63
|
"react": "^17.0.2",
|
|
64
64
|
"react-dom": "^17.0.2",
|
|
65
|
-
"solid-logic": "^1.3.
|
|
65
|
+
"solid-logic": "^1.3.14",
|
|
66
66
|
"solid-namespace": "^0.5.2",
|
|
67
|
-
"solid-ui": "^2.4.
|
|
68
|
-
"source-pane": "^2.2.
|
|
67
|
+
"solid-ui": "^2.4.19",
|
|
68
|
+
"source-pane": "^2.2.15"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@babel/cli": "^7.16.0",
|
package/src/RDFXMLPane.js
CHANGED
|
File without changes
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
** Should allow editing the data too
|
|
7
7
|
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import { store } from 'solid-logic'
|
|
10
|
+
import * as UI from 'solid-ui'
|
|
11
|
+
import * as panes from 'pane-registry'
|
|
12
12
|
|
|
13
13
|
// console.log('@@@ argument pane icon at ' + (module.__dirname || __dirname) + '/icon_argument.png')
|
|
14
14
|
module.exports = {
|
|
@@ -17,7 +17,7 @@ module.exports = {
|
|
|
17
17
|
name: 'argument',
|
|
18
18
|
|
|
19
19
|
label: function (subject) {
|
|
20
|
-
const kb =
|
|
20
|
+
const kb = store
|
|
21
21
|
const t = kb.findTypeURIs(subject)
|
|
22
22
|
|
|
23
23
|
if (t[UI.ns.arg('Position').uri]) return 'Argument'
|
|
@@ -28,7 +28,7 @@ module.exports = {
|
|
|
28
28
|
// View the data in a file in user-friendly way
|
|
29
29
|
render: function (subject, dom) {
|
|
30
30
|
const outliner = panes.getOutliner(dom)
|
|
31
|
-
const kb =
|
|
31
|
+
const kb = store
|
|
32
32
|
const arg = UI.ns.arg
|
|
33
33
|
|
|
34
34
|
subject = kb.canon(subject)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/attach/attachPane.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/audio/audioPane.js
CHANGED
|
File without changes
|
|
File without changes
|
package/src/classInstancePane.js
CHANGED
|
File without changes
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PaneDefinition } from 'pane-registry'
|
|
2
2
|
import { IndexedFormula, NamedNode, parse, Store } from 'rdflib'
|
|
3
|
-
|
|
4
|
-
import preferencesFormText from './preferencesFormText.ttl'
|
|
3
|
+
import { icons, login, ns, widgets } from 'solid-ui'
|
|
5
4
|
import ontologyData from './ontologyData.ttl'
|
|
6
|
-
import
|
|
5
|
+
import preferencesFormText from './preferencesFormText.ttl'
|
|
7
6
|
|
|
8
7
|
export const basicPreferencesPane: PaneDefinition = {
|
|
9
8
|
icon: icons.iconBase + 'noun_Sliders_341315_000000.svg',
|
|
@@ -46,7 +45,7 @@ export const basicPreferencesPane: PaneDefinition = {
|
|
|
46
45
|
loadData(ontologyExtra, ontologyData)
|
|
47
46
|
|
|
48
47
|
async function doRender () {
|
|
49
|
-
const renderContext = await
|
|
48
|
+
const renderContext = await login.ensureLoadedPreferences({
|
|
50
49
|
dom,
|
|
51
50
|
div: container
|
|
52
51
|
})
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { icons } from 'solid-ui'
|
|
2
|
+
import { authn, authSession, store } from 'solid-logic'
|
|
2
3
|
import { Fetcher, NamedNode } from 'rdflib'
|
|
3
4
|
import { generateHomepage } from './homepage'
|
|
4
5
|
import { DataBrowserContext, PaneDefinition } from 'pane-registry'
|
|
@@ -27,11 +28,11 @@ export const dashboardPane: PaneDefinition = {
|
|
|
27
28
|
)
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
authSession.onLogin(() => {
|
|
31
32
|
// console.log('On Login')
|
|
32
33
|
runBuildPage()
|
|
33
34
|
})
|
|
34
|
-
|
|
35
|
+
authSession.onSessionRestore(() => {
|
|
35
36
|
// console.log('On Session Restore')
|
|
36
37
|
runBuildPage()
|
|
37
38
|
})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/dataContentPane.js
CHANGED
|
@@ -38,7 +38,7 @@ module.exports = {
|
|
|
38
38
|
},
|
|
39
39
|
/*
|
|
40
40
|
shouldGetFocus: function(subject) {
|
|
41
|
-
return
|
|
41
|
+
return store.whether(subject, UI.ns.rdf('type'), UI.ns.link('RDFDocument'))
|
|
42
42
|
},
|
|
43
43
|
*/
|
|
44
44
|
statementsAsTables: function statementsAsTables (sts, context, initialRoots) {
|
package/src/defaultPane.js
CHANGED
|
File without changes
|
package/src/dokieli/Makefile
CHANGED
|
File without changes
|
|
File without changes
|
package/src/dokieli/new.html
CHANGED
|
File without changes
|
package/src/dokieli/new.js
CHANGED
|
File without changes
|
package/src/form/form-22.png
CHANGED
|
File without changes
|
package/src/form/form-b-22.png
CHANGED
|
File without changes
|
package/src/form/form.graffle
CHANGED
|
File without changes
|
package/src/form/form.png
CHANGED
|
File without changes
|
package/src/form/pane.js
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
**
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import * as UI from 'solid-ui'
|
|
7
|
+
import { authn } from 'solid-logic'
|
|
8
|
+
import * as $rdf from 'rdflib'
|
|
8
9
|
const ns = UI.ns
|
|
9
10
|
|
|
10
11
|
module.exports = {
|
|
@@ -50,7 +51,7 @@ module.exports = {
|
|
|
50
51
|
|
|
51
52
|
// const t = kb.findTypeURIs(subject)
|
|
52
53
|
|
|
53
|
-
const me =
|
|
54
|
+
const me = authn.currentUser()
|
|
54
55
|
|
|
55
56
|
const box = dom.createElement('div')
|
|
56
57
|
box.setAttribute('class', 'formPane')
|
|
@@ -190,7 +191,7 @@ module.exports = {
|
|
|
190
191
|
renderFormsFor(store, subject)
|
|
191
192
|
} else {
|
|
192
193
|
complain('No suitable store is known, to edit <' + subject.uri + '>.')
|
|
193
|
-
const foobarbaz = UI.
|
|
194
|
+
const foobarbaz = UI.login.selectWorkspace(dom, function (ws) {
|
|
194
195
|
mention('Workspace selected OK: ' + ws)
|
|
195
196
|
|
|
196
197
|
const activities = store.each(undefined, ns.space('workspace'), ws)
|
|
File without changes
|
package/src/global.d.ts
CHANGED
|
File without changes
|
package/src/home/homePane.ts
CHANGED
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
**
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { authn, create, icons } from 'solid-ui'
|
|
12
11
|
import { PaneDefinition } from 'pane-registry'
|
|
13
|
-
import { CreateContext } from 'solid-ui/lib/create/types'
|
|
14
12
|
import { NamedNode } from 'rdflib'
|
|
13
|
+
import { authn } from 'solid-logic'
|
|
14
|
+
import { create, icons, login } from 'solid-ui'
|
|
15
|
+
import { CreateContext } from 'solid-ui/lib/create/types'
|
|
15
16
|
|
|
16
17
|
const HomePaneSource: PaneDefinition = {
|
|
17
18
|
icon: icons.iconBase + 'noun_547570.svg', // noun_25830
|
|
@@ -37,7 +38,7 @@ const HomePaneSource: PaneDefinition = {
|
|
|
37
38
|
var loginStatusDiv = div.appendChild(context.dom.createElement('div'))
|
|
38
39
|
// TODO: Find out what the actual type is:
|
|
39
40
|
type UriType = unknown;
|
|
40
|
-
loginStatusDiv.appendChild(UI.
|
|
41
|
+
loginStatusDiv.appendChild(UI.login.loginStatusBox(context.dom, () => {
|
|
41
42
|
// Here we know new log in status
|
|
42
43
|
}))
|
|
43
44
|
*/
|
|
@@ -50,20 +51,20 @@ const HomePaneSource: PaneDefinition = {
|
|
|
50
51
|
statusArea: div,
|
|
51
52
|
me: me
|
|
52
53
|
}
|
|
53
|
-
const relevantPanes = await
|
|
54
|
+
const relevantPanes = await login.filterAvailablePanes(
|
|
54
55
|
context.session.paneRegistry.list
|
|
55
56
|
)
|
|
56
57
|
create.newThingUI(creationContext, context, relevantPanes) // newUI Have to pass panes down
|
|
57
58
|
|
|
58
59
|
div.appendChild(dom.createElement('h4')).textContent = 'Private things'
|
|
59
60
|
// TODO: Replace by a common, representative interface
|
|
60
|
-
|
|
61
|
+
login
|
|
61
62
|
.registrationList(homePaneContext, { private: true })
|
|
62
63
|
.then(function (authContext) {
|
|
63
64
|
div.appendChild(dom.createElement('h4')).textContent = 'Public things'
|
|
64
65
|
div.appendChild(dom.createElement('p')).textContent =
|
|
65
66
|
'Things in this list are visible to others.'
|
|
66
|
-
|
|
67
|
+
login
|
|
67
68
|
.registrationList(authContext, { public: true })
|
|
68
69
|
.then(function () {
|
|
69
70
|
// done
|
package/src/humanReadablePane.js
CHANGED
|
File without changes
|
package/src/imagePane.js
CHANGED
|
File without changes
|
package/src/index.ts
CHANGED
|
@@ -10,11 +10,10 @@
|
|
|
10
10
|
** If it is relevant, then it returns a suitable tooltip for a control which selects the pane
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
// create the unique UI module on which to attach panes (no, don't attach as UI dot panes any more)
|
|
14
|
-
// var UI = require('solid-ui') // Note we will add the panes register to this.
|
|
15
13
|
import versionInfo from './versionInfo'
|
|
16
14
|
import * as UI from 'solid-ui'
|
|
17
15
|
import { LiveStore } from 'rdflib'
|
|
16
|
+
import { solidLogicSingleton, store } from 'solid-logic'
|
|
18
17
|
import OutlineManager from './outline/manager.js'
|
|
19
18
|
import registerPanes from './registerPanes.js'
|
|
20
19
|
import {
|
|
@@ -27,39 +26,46 @@ import {
|
|
|
27
26
|
import { createContext } from './outline/context'
|
|
28
27
|
import initMainPage from './mainPage'
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
function getOutliner (dom) {
|
|
31
30
|
if (!dom.outlineManager) {
|
|
32
31
|
const context = createContext(
|
|
33
32
|
dom,
|
|
34
33
|
{ list, paneForIcon, paneForPredicate, register, byName },
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
store as LiveStore,
|
|
35
|
+
solidLogicSingleton
|
|
37
36
|
)
|
|
38
37
|
dom.outlineManager = new OutlineManager(context)
|
|
39
38
|
}
|
|
40
39
|
return dom.outlineManager
|
|
41
40
|
}
|
|
41
|
+
|
|
42
42
|
if (typeof window !== 'undefined') {
|
|
43
43
|
getOutliner(window.document)
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
registerPanes((cjsOrEsModule: any) => register(cjsOrEsModule.default || cjsOrEsModule))
|
|
47
47
|
|
|
48
|
-
export {
|
|
49
|
-
list,
|
|
50
|
-
paneForIcon,
|
|
51
|
-
paneForPredicate,
|
|
52
|
-
register,
|
|
53
|
-
byName
|
|
54
|
-
} from 'pane-registry'
|
|
55
|
-
|
|
56
|
-
// We attach the solid-UI lower-level system for convenience
|
|
57
|
-
// Currently most panes are built using it anyway.
|
|
58
|
-
// It also gives access to rdflib as panes.UI.rdf
|
|
59
|
-
|
|
60
48
|
// This has common outline mode functionality for the default and other other panes
|
|
61
49
|
// A separate outline manager is required per DOM in cases like a browser extension
|
|
62
50
|
// where there are many occurrences of window and of window.document
|
|
63
51
|
// But each DOM should have just one outline manager.
|
|
64
52
|
|
|
65
|
-
export {
|
|
53
|
+
export {
|
|
54
|
+
OutlineManager,
|
|
55
|
+
getOutliner,
|
|
56
|
+
UI,
|
|
57
|
+
versionInfo,
|
|
58
|
+
initMainPage,
|
|
59
|
+
list, // from paneRegistry
|
|
60
|
+
paneForIcon, // from paneRegistry
|
|
61
|
+
paneForPredicate, // from paneRegistry
|
|
62
|
+
register, // from paneRegistry
|
|
63
|
+
byName // from paneRegistry
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// export for simpler access by non-node scripts
|
|
67
|
+
if (typeof window !== 'undefined') {
|
|
68
|
+
;(<any>window).panes = {
|
|
69
|
+
getOutliner
|
|
70
|
+
}
|
|
71
|
+
}
|
|
File without changes
|
package/src/mainPage/footer.ts
CHANGED
|
File without changes
|
package/src/mainPage/header.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { authSession, authn } from 'solid-logic'
|
|
2
|
+
import { icons, initHeader } from 'solid-ui'
|
|
2
3
|
/**
|
|
3
4
|
* menu icons
|
|
4
5
|
*/
|
|
@@ -41,7 +42,7 @@ async function setUserMenu (outliner: any) {
|
|
|
41
42
|
const logOut = {
|
|
42
43
|
label: LOG_OUT_MENU_ITEM,
|
|
43
44
|
onclick: () => {
|
|
44
|
-
|
|
45
|
+
authSession.logout()
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
|
package/src/mainPage/index.ts
CHANGED
|
File without changes
|
package/src/meeting/Makefile
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
Charles McKenzie <charles2@mit.edu>
|
|
4
4
|
*/
|
|
5
5
|
/* global alert */
|
|
6
|
-
|
|
6
|
+
import { authn, store } from 'solid-logic'
|
|
7
|
+
import * as UI from 'solid-ui'
|
|
7
8
|
|
|
8
9
|
module.exports = {
|
|
9
10
|
icon: UI.icons.originalIconBase + 'microblog/microblog.png',
|
|
10
11
|
name: 'microblogPane',
|
|
11
12
|
label: function (subject) {
|
|
12
|
-
if (
|
|
13
|
+
if (store.whether(subject, UI.ns.rdf('type'), UI.ns.foaf('Person'))) {
|
|
13
14
|
return 'Microblog'
|
|
14
15
|
} else {
|
|
15
16
|
return null
|
|
@@ -25,9 +26,9 @@ module.exports = {
|
|
|
25
26
|
const terms = UI.rdf.Namespace('http://purl.org/dc/terms/')
|
|
26
27
|
const RDF = UI.ns.rdf
|
|
27
28
|
|
|
28
|
-
const kb =
|
|
29
|
+
const kb = store
|
|
29
30
|
const charCount = 140
|
|
30
|
-
const sf =
|
|
31
|
+
const sf = store.fetcher
|
|
31
32
|
//* **********************************************
|
|
32
33
|
// BACK END
|
|
33
34
|
//* **********************************************
|
|
@@ -134,7 +135,7 @@ module.exports = {
|
|
|
134
135
|
// attempt to fetch user account from local preferences if just
|
|
135
136
|
// in case the user's foaf was not writable. add it to the store
|
|
136
137
|
// this will probably need to change.
|
|
137
|
-
const theUser =
|
|
138
|
+
const theUser = authn.currentUser()
|
|
138
139
|
|
|
139
140
|
if (theUser) {
|
|
140
141
|
let theAccount = UI.preferences.get('acct')
|
|
@@ -304,7 +305,7 @@ module.exports = {
|
|
|
304
305
|
})
|
|
305
306
|
}
|
|
306
307
|
Microblog.prototype.getMyURI = function () {
|
|
307
|
-
const me =
|
|
308
|
+
const me = authn.currentUser()
|
|
308
309
|
console.log(me)
|
|
309
310
|
const myMicroblog = kb.any(kb.sym(me), FOAF('holdsAccount'))
|
|
310
311
|
console.log('\n\n' + myMicroblog)
|
|
@@ -533,7 +534,7 @@ module.exports = {
|
|
|
533
534
|
} else if (resourceType.uri === SIOC('User').uri) {
|
|
534
535
|
this.thisIsMe = s.uri === mb.getMyURI()
|
|
535
536
|
} else if (resourceType.uri === FOAF('Person').uri) {
|
|
536
|
-
const me =
|
|
537
|
+
const me = authn.currentUser()
|
|
537
538
|
const meUri = me && me.uri
|
|
538
539
|
this.thisIsMe = s.uri === meUri
|
|
539
540
|
} else {
|
|
@@ -900,7 +901,7 @@ module.exports = {
|
|
|
900
901
|
) {
|
|
901
902
|
creator = creators[c]
|
|
902
903
|
// var mb = kb.sym(creator.uri.split("#")[0]);
|
|
903
|
-
//
|
|
904
|
+
// store.fetcher.refresh(mb);
|
|
904
905
|
break
|
|
905
906
|
// TODO add support for more than one microblog in same foaf
|
|
906
907
|
}
|
package/src/n3Pane.js
CHANGED
|
File without changes
|
package/src/outline/context.ts
CHANGED
|
File without changes
|
package/src/outline/dragDrop.js
CHANGED
|
@@ -20,9 +20,10 @@ if (!tabulator_gBrowser) {
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/* 2007: adapted from dragAndDrop UI Library */
|
|
23
|
+
import { store } from 'solid-logic'
|
|
24
|
+
import * as UI from 'solid-ui'
|
|
25
|
+
import * as $rdf from 'rdflib'
|
|
23
26
|
|
|
24
|
-
const UI = require('solid-ui')
|
|
25
|
-
const $rdf = require('rdflib')
|
|
26
27
|
const dragAndDrop = (module.exports = {})
|
|
27
28
|
|
|
28
29
|
dragAndDrop.util = {}
|
|
@@ -270,7 +271,7 @@ const TabulatorOutlinerObserver = {
|
|
|
270
271
|
const templateDoc = $rdf.sym(
|
|
271
272
|
'chrome://tabulator/content/internalKnowledge.n3#defaultNew'
|
|
272
273
|
)
|
|
273
|
-
|
|
274
|
+
store.copyTo(templateDoc, $rdf.sym(url))
|
|
274
275
|
/*
|
|
275
276
|
function WriteToFileRepresentedBy (subject){
|
|
276
277
|
var outputFormulaTerm=kb.any(subject,OWL('unionOf'))
|
|
@@ -333,7 +334,7 @@ const TabulatorOutlinerObserver = {
|
|
|
333
334
|
const thisOutline = table.outline
|
|
334
335
|
thisOutline.UserInput.insertTermTo(
|
|
335
336
|
targetTd,
|
|
336
|
-
UI.utils.getAbout(
|
|
337
|
+
UI.utils.getAbout(store, this.dragTarget)
|
|
337
338
|
)
|
|
338
339
|
},
|
|
339
340
|
onDragStart: function (x, y, td) {
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
// tabulator.options becaome UI.licenseOptions
|
|
5
5
|
// Possible future alternative directoons: Store licence preferences in a solid preferences file
|
|
6
|
+
import * as UI from 'solid-ui'
|
|
7
|
+
import { store } from 'solid-logic'
|
|
6
8
|
|
|
7
9
|
const licenseURI = [
|
|
8
10
|
'http://creativecommons.org/licenses/by-nc-nd/3.0/',
|
|
@@ -15,9 +17,6 @@ const licenseURI = [
|
|
|
15
17
|
|
|
16
18
|
const names = ['BY-NC-ND', 'BY-NC-SA', 'BY-NC', 'BY-ND', 'BY-SA', 'BY']
|
|
17
19
|
|
|
18
|
-
const UI = require('solid-ui')
|
|
19
|
-
const kb = UI.store
|
|
20
|
-
|
|
21
20
|
module.exports = function licenseOptions () {
|
|
22
21
|
this.options = {}
|
|
23
22
|
this.references = []
|
|
@@ -83,9 +82,9 @@ module.exports = function licenseOptions () {
|
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
this.checkLicence = function checkLicense (statement) {
|
|
86
|
-
const licenses =
|
|
85
|
+
const licenses = store.each(
|
|
87
86
|
statement.why,
|
|
88
|
-
|
|
87
|
+
store.sym('http://creativecommons.org/ns#license')
|
|
89
88
|
)
|
|
90
89
|
UI.log.info('licenses:' + statement.why + ': ' + licenses)
|
|
91
90
|
for (let i = 0; i < licenses.length; i++) {
|