solid-panes 3.5.28-alpha → 3.5.28-c481e73e
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 -2
- package/dev/index.html +0 -0
- package/dev/loader.ts +0 -0
- 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 +15 -9
- package/lib/RDFXMLPane.js.map +1 -1
- package/lib/argument/argumentPane.js +12 -11
- package/lib/argument/argumentPane.js.map +1 -1
- package/lib/attach/attachPane.js +58 -90
- package/lib/attach/attachPane.js.map +1 -1
- package/lib/audio/audioPane.js +19 -37
- package/lib/audio/audioPane.js.map +1 -1
- package/lib/classInstancePane.js +21 -22
- package/lib/classInstancePane.js.map +1 -1
- package/lib/dashboard/basicPreferences.d.ts +0 -0
- package/lib/dashboard/basicPreferences.d.ts.map +0 -0
- package/lib/dashboard/basicPreferences.js +96 -154
- package/lib/dashboard/basicPreferences.js.map +1 -1
- package/lib/dashboard/dashboardPane.d.ts +0 -0
- package/lib/dashboard/dashboardPane.d.ts.map +0 -0
- package/lib/dashboard/dashboardPane.js +2 -18
- 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 +27 -49
- package/lib/dashboard/homepage.js.map +1 -1
- package/lib/dataContentPane.js +26 -61
- package/lib/dataContentPane.js.map +1 -1
- package/lib/defaultPane.js +23 -23
- package/lib/defaultPane.js.map +1 -1
- package/lib/dokieli/dokieliPane.js +29 -34
- package/lib/dokieli/dokieliPane.js.map +1 -1
- package/lib/dokieli/new.js +6 -1
- package/lib/dokieli/new.js.map +1 -1
- package/lib/form/pane.js +34 -45
- 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 +38 -68
- package/lib/home/homePane.js.map +1 -1
- package/lib/humanReadablePane.js +14 -28
- package/lib/humanReadablePane.js.map +1 -1
- package/lib/imagePane.js +19 -14
- package/lib/imagePane.js.map +1 -1
- package/lib/index.d.ts +0 -0
- package/lib/index.d.ts.map +0 -0
- package/lib/index.js +6 -20
- 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 +10 -41
- package/lib/internal/internalPane.js.map +1 -1
- package/lib/mainPage/footer.d.ts +0 -0
- package/lib/mainPage/footer.d.ts.map +0 -0
- package/lib/mainPage/footer.js +0 -4
- package/lib/mainPage/footer.js.map +1 -1
- package/lib/mainPage/header.d.ts +0 -0
- package/lib/mainPage/header.d.ts.map +0 -0
- package/lib/mainPage/header.js +66 -100
- 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 +17 -30
- package/lib/mainPage/index.js.map +1 -1
- package/lib/microblogPane/microblogPane.js +182 -321
- package/lib/microblogPane/microblogPane.js.map +1 -1
- package/lib/n3Pane.js +12 -8
- package/lib/n3Pane.js.map +1 -1
- package/lib/outline/context.d.ts +0 -0
- package/lib/outline/context.d.ts.map +0 -0
- package/lib/outline/context.js +0 -2
- package/lib/outline/context.js.map +1 -1
- package/lib/outline/licenseOptions.js +21 -35
- package/lib/outline/licenseOptions.js.map +1 -1
- package/lib/outline/manager.js +740 -1176
- package/lib/outline/manager.js.map +1 -1
- package/lib/outline/manager.test.js +16 -25
- package/lib/outline/manager.test.js.map +1 -1
- package/lib/outline/outlineIcons.js +39 -26
- package/lib/outline/outlineIcons.js.map +1 -1
- package/lib/outline/propertyViews.d.ts +3 -2
- package/lib/outline/propertyViews.d.ts.map +1 -1
- package/lib/outline/propertyViews.js +7 -15
- package/lib/outline/propertyViews.js.map +1 -1
- package/lib/outline/propertyViews.test.js +7 -7
- package/lib/outline/propertyViews.test.js.map +1 -1
- package/lib/outline/queryByExample.js +28 -80
- package/lib/outline/queryByExample.js.map +1 -1
- package/lib/outline/userInput.js +221 -459
- 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 -6
- package/lib/outline/viewAsImage.js.map +1 -1
- package/lib/outline/viewAsMbox.d.ts +0 -0
- package/lib/outline/viewAsMbox.d.ts.map +0 -0
- package/lib/outline/viewAsMbox.js +3 -4
- package/lib/outline/viewAsMbox.js.map +1 -1
- package/lib/pad/padPane.d.ts +0 -0
- package/lib/pad/padPane.d.ts.map +0 -0
- package/lib/pad/padPane.js +45 -93
- package/lib/pad/padPane.js.map +1 -1
- package/lib/playlist/playlistPane.js +11 -21
- package/lib/playlist/playlistPane.js.map +1 -1
- 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 +22 -23
- 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 -3
- package/lib/profile/profile.dom.js.map +1 -1
- package/lib/registerPanes.js +99 -54
- package/lib/registerPanes.js.map +1 -1
- package/lib/schedule/formsForSchedule.js +6 -1
- package/lib/schedule/formsForSchedule.js.map +1 -1
- package/lib/schedule/schedulePane.js +71 -126
- 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 +2 -10
- package/lib/sharing/sharingPane.js.map +1 -1
- package/lib/slideshow/slideshowPane.js +21 -21
- package/lib/slideshow/slideshowPane.js.map +1 -1
- package/lib/socialPane.js +58 -135
- 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 +32 -48
- package/lib/tabbed/tabbedPane.js.map +1 -1
- package/lib/tableViewPane.js +15 -9
- package/lib/tableViewPane.js.map +1 -1
- package/lib/test-import-export/common.js +8 -3
- package/lib/test-import-export/common.js.map +1 -1
- package/lib/test-import-export/edit-importer.js +10 -14
- package/lib/test-import-export/edit-importer.js.map +1 -1
- package/lib/test-import-export/testImportExport.js +0 -0
- package/lib/test-import-export/testImportExport.js.map +0 -0
- package/lib/transaction/pane.js +38 -91
- package/lib/transaction/pane.js.map +1 -1
- package/lib/transaction/period.js +27 -71
- package/lib/transaction/period.js.map +1 -1
- package/lib/trip/tripPane.js +38 -35
- 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 +0 -0
- package/lib/trustedApplications/trustedApplications.dom.js +12 -35
- package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.test.js +6 -8
- package/lib/trustedApplications/trustedApplications.test.js.map +1 -1
- 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 +1 -11
- package/lib/trustedApplications/trustedApplications.utils.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.view.d.ts +0 -0
- package/lib/trustedApplications/trustedApplications.view.d.ts.map +0 -0
- package/lib/trustedApplications/trustedApplications.view.js +38 -61
- 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 +30 -29
- package/lib/ui/pane.js.map +1 -1
- 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 +11 -7
- package/lib/video/videoPane.js.map +1 -1
- package/package.json +26 -26
- package/src/RDFXMLPane.js +2 -2
- package/src/argument/argumentPane.js +1 -1
- 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 +3 -3
- 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 +3 -3
- package/src/chatPreferencesForm.ttl +0 -0
- package/src/classInstancePane.js +3 -3
- package/src/dashboard/basicPreferences.ts +0 -0
- package/src/dashboard/dashboardPane.ts +0 -0
- 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 +3 -4
- package/src/defaultPane.js +3 -3
- package/src/dokieli/Makefile +0 -0
- package/src/dokieli/dokieliPane.js +5 -5
- package/src/dokieli/new.html +0 -0
- package/src/dokieli/new.js +1 -1
- 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 +2 -2
- package/src/form/psuedocode-notes.txt +0 -0
- package/src/global.d.ts +0 -0
- package/src/home/homePane.ts +1 -14
- package/src/humanReadablePane.js +0 -0
- package/src/imagePane.js +2 -2
- package/src/index.ts +1 -1
- package/src/internal/internalPane.ts +0 -0
- package/src/mainPage/footer.ts +0 -0
- package/src/mainPage/header.ts +0 -0
- 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 +1 -1
- package/src/n3Pane.js +2 -2
- package/src/outline/context.ts +0 -0
- package/src/outline/licenseOptions.js +9 -8
- package/src/outline/manager.js +18 -20
- package/src/outline/manager.test.ts +6 -0
- package/src/outline/outlineIcons.js +4 -2
- package/src/outline/propertyViews.test.ts +7 -1
- package/src/outline/propertyViews.ts +3 -3
- package/src/outline/queryByExample.js +3 -9
- package/src/outline/userInput.js +1 -1
- 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 +0 -0
- package/src/playlist/playlistPane.js +3 -3
- package/src/profile/editProfile.view.ts +20 -0
- package/src/profile/profile.dom.ts +0 -0
- package/src/profile/profileFormText.ttl +0 -0
- package/src/registerPanes.js +92 -52
- package/src/schedule/Makefile +0 -0
- package/src/schedule/formsForSchedule.js +1 -1
- package/src/schedule/formsForSchedule.ttl +0 -0
- package/src/schedule/schedulePane.js +6 -2
- package/src/sharing/sharingPane.ts +0 -0
- package/src/slideshow/slideshowPane.js +3 -6
- package/src/socialPane.js +4 -5
- package/src/style/tabbedtab.css +0 -0
- package/src/tabbed/tabbedPane.ts +0 -0
- package/src/tableViewPane.js +3 -3
- package/src/test-import-export/common.js +1 -1
- package/src/test-import-export/edit-importer.js +5 -10
- 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 +3 -3
- package/src/transaction/period.js +2 -2
- 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 +3 -3
- package/src/trustedApplications/__snapshots__/trustedApplications.test.ts.snap +0 -0
- package/src/trustedApplications/trustedApplications.dom.ts +0 -0
- package/src/trustedApplications/trustedApplications.test.ts +4 -0
- package/src/trustedApplications/trustedApplications.utils.ts +0 -0
- package/src/trustedApplications/trustedApplications.view.ts +0 -0
- 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 +3 -3
- package/src/versionInfo.ts +14 -14
- package/src/video/videoPane.js +3 -3
- 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
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
** review. It does not use turtle, but RDF/a
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import * as UI from 'solid-ui'
|
|
9
|
+
import * as $rdf from 'rdflib'
|
|
10
|
+
import * as mime from 'mime-types'
|
|
11
11
|
|
|
12
12
|
// const DOKIELI_TEMPLATE_URI = 'https://dokie.li/new' // Copy to make new dok
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
import * as DOKIELI_TEMPLATE from './new.js' // Distributed with this library
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
export default {
|
|
17
17
|
icon: UI.icons.iconBase + 'dokieli-logo.png', // @@ improve? more like doccument?
|
|
18
18
|
|
|
19
19
|
name: 'Dokieli',
|
package/src/dokieli/new.html
CHANGED
|
File without changes
|
package/src/dokieli/new.js
CHANGED
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
**
|
|
2
|
+
** Pane for running existing forms for any object
|
|
3
3
|
**
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ import { authn } from 'solid-logic'
|
|
|
8
8
|
import * as $rdf from 'rdflib'
|
|
9
9
|
const ns = UI.ns
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
export const formPane = {
|
|
12
12
|
icon: UI.icons.iconBase + 'noun_122196.svg',
|
|
13
13
|
|
|
14
14
|
name: 'form',
|
|
File without changes
|
package/src/global.d.ts
CHANGED
|
File without changes
|
package/src/home/homePane.ts
CHANGED
|
@@ -56,20 +56,7 @@ const HomePaneSource: PaneDefinition = {
|
|
|
56
56
|
)
|
|
57
57
|
create.newThingUI(creationContext, context, relevantPanes) // newUI Have to pass panes down
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
// TODO: Replace by a common, representative interface
|
|
61
|
-
login
|
|
62
|
-
.registrationList(homePaneContext, { private: true })
|
|
63
|
-
.then(function (authContext) {
|
|
64
|
-
div.appendChild(dom.createElement('h4')).textContent = 'Public things'
|
|
65
|
-
div.appendChild(dom.createElement('p')).textContent =
|
|
66
|
-
'Things in this list are visible to others.'
|
|
67
|
-
login
|
|
68
|
-
.registrationList(authContext, { public: true })
|
|
69
|
-
.then(function () {
|
|
70
|
-
// done
|
|
71
|
-
})
|
|
72
|
-
})
|
|
59
|
+
login.registrationList(homePaneContext, {}).then(function () {})
|
|
73
60
|
}
|
|
74
61
|
|
|
75
62
|
const div = dom.createElement('div')
|
package/src/humanReadablePane.js
CHANGED
|
File without changes
|
package/src/imagePane.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
**
|
|
3
3
|
** This outline pane contains the document contents for an Image document
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
import * as UI from 'solid-ui'
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
export const imagePane = {
|
|
8
8
|
icon: UI.icons.originalIconBase + 'tango/22-image-x-generic.png',
|
|
9
9
|
|
|
10
10
|
name: 'image',
|
package/src/index.ts
CHANGED
|
@@ -15,7 +15,7 @@ import * as UI from 'solid-ui'
|
|
|
15
15
|
import { LiveStore } from 'rdflib'
|
|
16
16
|
import { solidLogicSingleton, store } from 'solid-logic'
|
|
17
17
|
import OutlineManager from './outline/manager.js'
|
|
18
|
-
import registerPanes from './registerPanes.js'
|
|
18
|
+
import { registerPanes } from './registerPanes.js'
|
|
19
19
|
import {
|
|
20
20
|
list,
|
|
21
21
|
paneForIcon,
|
|
File without changes
|
package/src/mainPage/footer.ts
CHANGED
|
File without changes
|
package/src/mainPage/header.ts
CHANGED
|
File without changes
|
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
|
package/src/n3Pane.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
** or at least the RDF semantics we attribute to that resource,
|
|
5
5
|
** in generated N3 syntax.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
import * as UI from 'solid-ui'
|
|
8
8
|
const ns = UI.ns
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
export const n3Pane = {
|
|
11
11
|
icon: UI.icons.originalIconBase + 'w3c/n3_smaller.png',
|
|
12
12
|
|
|
13
13
|
name: 'n3',
|
package/src/outline/context.ts
CHANGED
|
File without changes
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// This was a student project to
|
|
2
|
-
// allow the user to chose favoite CC
|
|
2
|
+
// allow the user to chose favoite CC license terms and have them highlighted
|
|
3
3
|
|
|
4
4
|
// tabulator.options becaome UI.licenseOptions
|
|
5
|
-
// Possible future alternative directoons: Store
|
|
6
|
-
import * as UI from 'solid-ui'
|
|
5
|
+
// Possible future alternative directoons: Store license preferences in a solid preferences file
|
|
7
6
|
import { store } from 'solid-logic'
|
|
8
7
|
|
|
9
|
-
const licenseURI = [
|
|
8
|
+
export const licenseURI = [
|
|
10
9
|
'http://creativecommons.org/licenses/by-nc-nd/3.0/',
|
|
11
10
|
'http://creativecommons.org/licenses/by-nc-sa/3.0/',
|
|
12
11
|
'http://creativecommons.org/licenses/by-nc/3.0/',
|
|
@@ -17,7 +16,7 @@ const licenseURI = [
|
|
|
17
16
|
|
|
18
17
|
const names = ['BY-NC-ND', 'BY-NC-SA', 'BY-NC', 'BY-ND', 'BY-SA', 'BY']
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
export function licenseOptions () {
|
|
21
20
|
this.options = {}
|
|
22
21
|
this.references = []
|
|
23
22
|
this.checkedLicenses = []
|
|
@@ -81,12 +80,14 @@ module.exports = function licenseOptions () {
|
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
82
|
|
|
84
|
-
this.
|
|
83
|
+
this.checkLicense = function checkLicense (statement) {
|
|
85
84
|
const licenses = store.each(
|
|
86
85
|
statement.why,
|
|
87
|
-
store.sym('http://creativecommons.org/ns#license')
|
|
86
|
+
store.sym('http://creativecommons.org/ns#license'),
|
|
87
|
+
null,
|
|
88
|
+
statement.why
|
|
88
89
|
)
|
|
89
|
-
UI.log.info('licenses:' + statement.why + ': ' + licenses)
|
|
90
|
+
// UI.log.info('licenses:' + statement.why + ': ' + licenses)
|
|
90
91
|
for (let i = 0; i < licenses.length; i++) {
|
|
91
92
|
for (let j = 0; j < this.checkedLicenses.length; j++) {
|
|
92
93
|
if (this.checkedLicenses[j] && licenses[i].uri === licenseURI[j]) {
|
package/src/outline/manager.js
CHANGED
|
@@ -6,11 +6,12 @@ import * as paneRegistry from 'pane-registry'
|
|
|
6
6
|
import * as $rdf from 'rdflib'
|
|
7
7
|
import * as UI from 'solid-ui'
|
|
8
8
|
import { authn, authSession, store } from 'solid-logic'
|
|
9
|
-
import propertyViews from './propertyViews'
|
|
9
|
+
import { propertyViews } from './propertyViews'
|
|
10
|
+
import { licenseOptions } from './licenseOptions'
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
import { outlineIcons } from './outlineIcons.js' // @@ chec
|
|
13
|
+
import { UserInput } from './userInput.js'
|
|
14
|
+
import * as queryByExample from './queryByExample.js'
|
|
14
15
|
|
|
15
16
|
/* global alert XPathResult sourceWidget */
|
|
16
17
|
// XPathResult?
|
|
@@ -180,7 +181,7 @@ export default function (context) {
|
|
|
180
181
|
|
|
181
182
|
// check the IPR on the data. Ok if there is any checked license which is one the document has.
|
|
182
183
|
if (statement && statement.why) {
|
|
183
|
-
if (
|
|
184
|
+
if (licenseOptions && licenseOptions.checklicense()) {
|
|
184
185
|
theClass += ' licOkay' // flag as light green etc .licOkay {background-color: #dfd}
|
|
185
186
|
}
|
|
186
187
|
}
|
|
@@ -646,23 +647,20 @@ export default function (context) {
|
|
|
646
647
|
const renderPane = function (pane) {
|
|
647
648
|
let paneDiv
|
|
648
649
|
UI.log.info('outline: Rendering pane (2): ' + pane.name)
|
|
649
|
-
|
|
650
|
-
|
|
650
|
+
|
|
651
|
+
try {
|
|
651
652
|
paneDiv = pane.render(subject, context, options)
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
pre.appendChild(
|
|
662
|
-
dom.createTextNode(UI.utils.stackString(e))
|
|
663
|
-
)
|
|
664
|
-
}
|
|
653
|
+
} catch (e) {
|
|
654
|
+
// Easier debugging for pane developers
|
|
655
|
+
paneDiv = dom.createElement('div')
|
|
656
|
+
paneDiv.setAttribute('class', 'exceptionPane')
|
|
657
|
+
const pre = dom.createElement('pre')
|
|
658
|
+
paneDiv.appendChild(pre)
|
|
659
|
+
pre.appendChild(
|
|
660
|
+
dom.createTextNode(UI.utils.stackString(e))
|
|
661
|
+
)
|
|
665
662
|
}
|
|
663
|
+
|
|
666
664
|
if (
|
|
667
665
|
pane.requireQueryButton &&
|
|
668
666
|
dom.getElementById('queryButton')
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
/* eslint-env jest */
|
|
2
|
+
|
|
3
|
+
import { TextEncoder, TextDecoder } from 'util'
|
|
4
|
+
global.TextEncoder = TextEncoder as any
|
|
5
|
+
global.TextDecoder = TextDecoder as any
|
|
6
|
+
|
|
7
|
+
|
|
2
8
|
import OutlineManager from './manager'
|
|
3
9
|
|
|
4
10
|
import { lit, NamedNode, sym, blankNode } from 'rdflib'
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// This is a system of tracking tooltip phrases used by the tabulator outliner
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import * as UI from 'solid-ui'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export const outlineIcons = {}
|
|
5
7
|
|
|
6
8
|
outlineIcons.src = [] // collect the URIs of the icon filterColumns
|
|
7
9
|
outlineIcons.tooltips = [] // look up tool tips from URL
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/* eslint-env jest */
|
|
2
|
+
|
|
3
|
+
import { TextEncoder, TextDecoder } from 'util'
|
|
4
|
+
global.TextEncoder = TextEncoder as any
|
|
5
|
+
global.TextDecoder = TextDecoder as any
|
|
6
|
+
|
|
7
|
+
|
|
2
8
|
import { sym } from 'rdflib'
|
|
3
|
-
import propertyViews from './propertyViews'
|
|
9
|
+
import { propertyViews } from './propertyViews'
|
|
4
10
|
|
|
5
11
|
describe('property views', () => {
|
|
6
12
|
it.each([
|
|
@@ -4,7 +4,7 @@ import viewAsMbox from './viewAsMbox'
|
|
|
4
4
|
|
|
5
5
|
/** some builtin simple views **/
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export function propertyViews (dom) {
|
|
8
8
|
// view that applies to items that are objects of certain properties.
|
|
9
9
|
const views = {
|
|
10
10
|
properties: [],
|
|
@@ -25,7 +25,7 @@ export default (dom) => {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/** add a property view function **/
|
|
28
|
-
function viewsAddPropertyView (views, property, pviewfunc, isDefault) {
|
|
28
|
+
export function viewsAddPropertyView (views, property, pviewfunc, isDefault) {
|
|
29
29
|
if (!views.properties[property]) {
|
|
30
30
|
views.properties[property] = []
|
|
31
31
|
}
|
|
@@ -34,4 +34,4 @@ function viewsAddPropertyView (views, property, pviewfunc, isDefault) {
|
|
|
34
34
|
// will override an existing default!
|
|
35
35
|
views.defaults[property] = pviewfunc
|
|
36
36
|
}
|
|
37
|
-
} //
|
|
37
|
+
} // viewsAddPropertyView
|
|
@@ -9,12 +9,6 @@
|
|
|
9
9
|
import { store } from 'solid-logic'
|
|
10
10
|
import * as UI from 'solid-ui'
|
|
11
11
|
|
|
12
|
-
module.exports = {
|
|
13
|
-
makeQueryRow,
|
|
14
|
-
QuerySource,
|
|
15
|
-
viewAndSaveQuery // Main function to generate and use the query
|
|
16
|
-
}
|
|
17
|
-
|
|
18
12
|
const optionalSubqueriesIndex = []
|
|
19
13
|
|
|
20
14
|
function predParentOf (node) {
|
|
@@ -31,7 +25,7 @@ function predParentOf (node) {
|
|
|
31
25
|
}
|
|
32
26
|
}
|
|
33
27
|
|
|
34
|
-
function makeQueryRow (q, tr, constraint) {
|
|
28
|
+
export function makeQueryRow (q, tr, constraint) {
|
|
35
29
|
// predtr = predParentOf(tr)
|
|
36
30
|
// var nodes = tr.childNodes
|
|
37
31
|
// var n = tr.childNodes.length
|
|
@@ -193,7 +187,7 @@ function saveQuery (selection, qs) {
|
|
|
193
187
|
|
|
194
188
|
// When the user asks for all list of all matching parts of the data
|
|
195
189
|
//
|
|
196
|
-
function viewAndSaveQuery (outline, selection) {
|
|
190
|
+
export function viewAndSaveQuery (outline, selection) {
|
|
197
191
|
const qs = outline.qs
|
|
198
192
|
UI.log.info('outline.doucment is now ' + outline.document.location)
|
|
199
193
|
const q = saveQuery(selection, qs)
|
|
@@ -219,7 +213,7 @@ function viewAndSaveQuery (outline, selection) {
|
|
|
219
213
|
* @author jambo
|
|
220
214
|
*/
|
|
221
215
|
|
|
222
|
-
function QuerySource () {
|
|
216
|
+
export function QuerySource () {
|
|
223
217
|
/**
|
|
224
218
|
* stores all of the queries currently held by this source,
|
|
225
219
|
* indexed by ID number.
|
package/src/outline/userInput.js
CHANGED
|
@@ -21,7 +21,7 @@ let UserInputFormula // Formula to store references of user's work
|
|
|
21
21
|
let TempFormula // Formula to store incomplete triples (Requests),
|
|
22
22
|
// temporarily disjoint with kb to avoid bugs
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
export function UserInput (outline) {
|
|
25
25
|
const myDocument = outline.document // is this ok?
|
|
26
26
|
// UI.log.warn("myDocument when it's set is "+myDocument.location);
|
|
27
27
|
this.menuId = 'predicateMenu1'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/pad/padPane.ts
CHANGED
|
File without changes
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
** This pane allows playlists and playlists slots to be viewed
|
|
4
4
|
** seeAlso: http://smiy.sourceforge.net/pbo/spec/playbackontology.html
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import * as UI from 'solid-ui'
|
|
7
|
+
import * as $rdf from 'rdflib'
|
|
8
8
|
const ns = UI.ns
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
export default {
|
|
11
11
|
icon: UI.icons.iconBase + 'noun_1619.svg',
|
|
12
12
|
|
|
13
13
|
name: 'playlistSlot',
|
|
@@ -110,6 +110,7 @@ const editProfileView: PaneDefinition = {
|
|
|
110
110
|
|
|
111
111
|
main.appendChild(paneDiv(context, me, 'contact'))
|
|
112
112
|
|
|
113
|
+
|
|
113
114
|
heading('People you know who have WebIDs')
|
|
114
115
|
|
|
115
116
|
comment(`This is your public social network.
|
|
@@ -130,6 +131,25 @@ const editProfileView: PaneDefinition = {
|
|
|
130
131
|
noun: 'friend'
|
|
131
132
|
})
|
|
132
133
|
|
|
134
|
+
heading('Communities you participate in')
|
|
135
|
+
|
|
136
|
+
comment(`These are organizations and projects (etc) whose stuff you share`)
|
|
137
|
+
|
|
138
|
+
// TODO: would be useful to explain what it means to "drag organizations"
|
|
139
|
+
// what is it that is being dragged?
|
|
140
|
+
// is there a way to search for people (or things to drag) on this page?
|
|
141
|
+
// Also provide a way of using cut and paste
|
|
142
|
+
if (editableProfile) {
|
|
143
|
+
comment('Drag organizations onto the target below to add organizations.')
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
widgets.attachmentList(dom, me, main, {
|
|
147
|
+
doc: profile,
|
|
148
|
+
modify: !!editableProfile,
|
|
149
|
+
predicate: ns.solid('community'),
|
|
150
|
+
noun: 'community'
|
|
151
|
+
})
|
|
152
|
+
|
|
133
153
|
// heading('The style of your public profile') headings are in form now
|
|
134
154
|
renderProfileForm(main, me)
|
|
135
155
|
|
|
File without changes
|
|
File without changes
|