solid-panes 3.5.28-c77cd8eb → 3.5.28-ce7214c6
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/SECURITY.md +47 -0
- package/lib/RDFXMLPane.js +2 -10
- package/lib/RDFXMLPane.js.map +1 -1
- package/lib/argument/argumentPane.js +5 -7
- package/lib/argument/argumentPane.js.map +1 -1
- package/lib/attach/attachPane.js +7 -13
- package/lib/attach/attachPane.js.map +1 -1
- package/lib/audio/audioPane.js +6 -13
- package/lib/audio/audioPane.js.map +1 -1
- package/lib/classInstancePane.js +3 -11
- package/lib/classInstancePane.js.map +1 -1
- package/lib/dashboard/basicPreferences.js +104 -96
- package/lib/dashboard/basicPreferences.js.map +1 -1
- package/lib/dashboard/homepage.js +31 -27
- package/lib/dashboard/homepage.js.map +1 -1
- package/lib/dataContentPane.js +4 -12
- package/lib/dataContentPane.js.map +1 -1
- package/lib/defaultPane.js +3 -11
- package/lib/defaultPane.js.map +1 -1
- package/lib/dokieli/dokieliPane.js +11 -15
- package/lib/dokieli/dokieliPane.js.map +1 -1
- package/lib/dokieli/new.js +1 -6
- package/lib/dokieli/new.js.map +1 -1
- package/lib/form/pane.js +5 -8
- package/lib/form/pane.js.map +1 -1
- package/lib/home/homePane.d.ts.map +1 -1
- package/lib/home/homePane.js +49 -35
- package/lib/home/homePane.js.map +1 -1
- package/lib/imagePane.js +2 -11
- package/lib/imagePane.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/mainPage/header.js +73 -65
- package/lib/mainPage/header.js.map +1 -1
- package/lib/mainPage/index.js +19 -17
- package/lib/mainPage/index.js.map +1 -1
- package/lib/microblogPane/microblogPane.js +84 -82
- package/lib/microblogPane/microblogPane.js.map +1 -1
- package/lib/n3Pane.js +2 -11
- package/lib/n3Pane.js.map +1 -1
- package/lib/outline/licenseOptions.js +11 -13
- package/lib/outline/licenseOptions.js.map +1 -1
- package/lib/outline/manager.js +616 -581
- package/lib/outline/manager.js.map +1 -1
- package/lib/outline/manager.test.js +15 -16
- package/lib/outline/manager.test.js.map +1 -1
- package/lib/outline/outlineIcons.js +2 -10
- package/lib/outline/outlineIcons.js.map +1 -1
- package/lib/outline/propertyViews.d.ts +2 -3
- package/lib/outline/propertyViews.d.ts.map +1 -1
- package/lib/outline/propertyViews.js +5 -7
- package/lib/outline/propertyViews.js.map +1 -1
- package/lib/outline/propertyViews.test.js +4 -6
- package/lib/outline/propertyViews.test.js.map +1 -1
- package/lib/outline/queryByExample.js +6 -6
- package/lib/outline/queryByExample.js.map +1 -1
- package/lib/outline/userInput.js +5 -7
- package/lib/outline/userInput.js.map +1 -1
- package/lib/playlist/playlistPane.js +6 -13
- package/lib/playlist/playlistPane.js.map +1 -1
- package/lib/profile/editProfile.view.d.ts.map +1 -1
- package/lib/profile/editProfile.view.js +0 -16
- package/lib/profile/editProfile.view.js.map +1 -1
- package/lib/registerPanes.js +50 -93
- package/lib/registerPanes.js.map +1 -1
- package/lib/schedule/formsForSchedule.js +1 -6
- package/lib/schedule/formsForSchedule.js.map +1 -1
- package/lib/schedule/schedulePane.js +4 -9
- package/lib/schedule/schedulePane.js.map +1 -1
- package/lib/slideshow/slideshowPane.js +11 -16
- package/lib/slideshow/slideshowPane.js.map +1 -1
- package/lib/socialPane.js +9 -13
- package/lib/socialPane.js.map +1 -1
- package/lib/tabbed/tabbedPane.js +34 -32
- package/lib/tabbed/tabbedPane.js.map +1 -1
- package/lib/tableViewPane.js +3 -12
- package/lib/tableViewPane.js.map +1 -1
- package/lib/test-import-export/common.js +2 -6
- package/lib/test-import-export/common.js.map +1 -1
- package/lib/test-import-export/edit-importer.js +11 -9
- package/lib/test-import-export/edit-importer.js.map +1 -1
- package/lib/transaction/pane.js +6 -12
- package/lib/transaction/pane.js.map +1 -1
- package/lib/transaction/period.js +4 -11
- package/lib/transaction/period.js.map +1 -1
- package/lib/trip/tripPane.js +5 -12
- package/lib/trip/tripPane.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.dom.js +1 -4
- package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.test.js +0 -3
- package/lib/trustedApplications/trustedApplications.test.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.utils.js +1 -1
- package/lib/trustedApplications/trustedApplications.view.js +40 -38
- package/lib/trustedApplications/trustedApplications.view.js.map +1 -1
- package/lib/ui/pane.js +5 -12
- package/lib/ui/pane.js.map +1 -1
- package/lib/versionInfo.js +4 -4
- package/lib/versionInfo.js.map +1 -1
- package/lib/video/videoPane.js +5 -12
- package/lib/video/videoPane.js.map +1 -1
- package/package.json +2 -2
- package/src/RDFXMLPane.js +2 -2
- package/src/argument/argumentPane.js +1 -1
- package/src/attach/attachPane.js +3 -3
- package/src/audio/audioPane.js +3 -3
- package/src/classInstancePane.js +3 -3
- package/src/dataContentPane.js +4 -3
- package/src/defaultPane.js +3 -3
- package/src/dokieli/dokieliPane.js +5 -5
- package/src/dokieli/new.js +1 -1
- package/src/form/pane.js +2 -2
- package/src/home/homePane.ts +14 -1
- package/src/imagePane.js +2 -2
- package/src/index.ts +1 -1
- package/src/microblogPane/microblogPane.js +1 -1
- package/src/n3Pane.js +2 -2
- package/src/outline/licenseOptions.js +8 -9
- package/src/outline/manager.js +21 -18
- package/src/outline/manager.test.ts +0 -6
- package/src/outline/outlineIcons.js +2 -4
- package/src/outline/propertyViews.test.ts +1 -7
- package/src/outline/propertyViews.ts +3 -3
- package/src/outline/queryByExample.js +9 -3
- package/src/outline/userInput.js +1 -1
- package/src/playlist/playlistPane.js +3 -3
- package/src/profile/editProfile.view.ts +0 -20
- package/src/registerPanes.js +52 -92
- package/src/schedule/formsForSchedule.js +1 -1
- package/src/schedule/schedulePane.js +2 -6
- package/src/slideshow/slideshowPane.js +6 -3
- package/src/socialPane.js +3 -2
- package/src/tableViewPane.js +3 -3
- package/src/test-import-export/common.js +1 -1
- package/src/test-import-export/edit-importer.js +10 -5
- package/src/transaction/pane.js +3 -3
- package/src/transaction/period.js +2 -2
- package/src/trip/tripPane.js +3 -3
- package/src/trustedApplications/trustedApplications.test.ts +0 -4
- package/src/ui/pane.js +3 -3
- package/src/versionInfo.ts +4 -4
- package/src/video/videoPane.js +3 -3
package/src/audio/audioPane.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* Single audio play Pane
|
|
2
2
|
**
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
const UI = require('solid-ui')
|
|
5
|
+
const $rdf = require('rdflib')
|
|
6
6
|
const ns = UI.ns
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
module.exports = {
|
|
9
9
|
icon: UI.icons.iconBase + 'noun_534313.svg',
|
|
10
10
|
|
|
11
11
|
name: 'audio',
|
package/src/classInstancePane.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
** This outline pane lists the members of a class
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const UI = require('solid-ui')
|
|
7
|
+
const $rdf = require('rdflib')
|
|
8
8
|
|
|
9
9
|
const ns = UI.ns
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
module.exports = {
|
|
12
12
|
icon: UI.icons.originalIconBase + 'tango/22-folder-open.png',
|
|
13
13
|
|
|
14
14
|
name: 'classInstance',
|
package/src/dataContentPane.js
CHANGED
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
// - Expand automatically all the way down
|
|
10
10
|
// - original source view? Use ffox view source
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
const UI = require('solid-ui')
|
|
13
|
+
const $rdf = require('rdflib')
|
|
13
14
|
const ns = UI.ns
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
module.exports = {
|
|
16
17
|
icon: UI.icons.originalIconBase + 'rdf_flyer.24.gif',
|
|
17
18
|
|
|
18
19
|
name: 'dataContents',
|
|
@@ -279,7 +280,7 @@ export const dataContentPane = {
|
|
|
279
280
|
// or we could keep all the pre-smushed triples.
|
|
280
281
|
const sts = kb.statementsMatching(undefined, undefined, undefined, subject) // @@ slow with current store!
|
|
281
282
|
|
|
282
|
-
if (
|
|
283
|
+
if ($rdf.keepThisCodeForLaterButDisableFerossConstantConditionPolice) {
|
|
283
284
|
alternativeRendering()
|
|
284
285
|
} else {
|
|
285
286
|
mainRendering()
|
package/src/defaultPane.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
** This pane hides the ones considered too low-level for the normal user.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
const UI = require('solid-ui')
|
|
9
|
+
const $rdf = require('rdflib')
|
|
10
10
|
const ns = UI.ns
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
module.exports = {
|
|
13
13
|
icon: UI.icons.originalIconBase + 'about.png',
|
|
14
14
|
|
|
15
15
|
name: 'default',
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
** review. It does not use turtle, but RDF/a
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const UI = require('solid-ui')
|
|
9
|
+
const $rdf = require('rdflib')
|
|
10
|
+
const mime = require('mime-types')
|
|
11
11
|
|
|
12
12
|
// const DOKIELI_TEMPLATE_URI = 'https://dokie.li/new' // Copy to make new dok
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
const DOKIELI_TEMPLATE = require('./new.js') // Distributed with this library
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
module.exports = {
|
|
17
17
|
icon: UI.icons.iconBase + 'dokieli-logo.png', // @@ improve? more like doccument?
|
|
18
18
|
|
|
19
19
|
name: 'Dokieli',
|
package/src/dokieli/new.js
CHANGED
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
|
+
module.exports = {
|
|
12
12
|
icon: UI.icons.iconBase + 'noun_122196.svg',
|
|
13
13
|
|
|
14
14
|
name: 'form',
|
package/src/home/homePane.ts
CHANGED
|
@@ -56,7 +56,20 @@ const HomePaneSource: PaneDefinition = {
|
|
|
56
56
|
)
|
|
57
57
|
create.newThingUI(creationContext, context, relevantPanes) // newUI Have to pass panes down
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
div.appendChild(dom.createElement('h4')).textContent = 'Private things'
|
|
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
|
+
})
|
|
60
73
|
}
|
|
61
74
|
|
|
62
75
|
const div = dom.createElement('div')
|
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
|
+
const UI = require('solid-ui')
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
module.exports = {
|
|
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
|
|
18
|
+
import registerPanes from './registerPanes.js'
|
|
19
19
|
import {
|
|
20
20
|
list,
|
|
21
21
|
paneForIcon,
|
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
|
+
const UI = require('solid-ui')
|
|
8
8
|
const ns = UI.ns
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
module.exports = {
|
|
11
11
|
icon: UI.icons.originalIconBase + 'w3c/n3_smaller.png',
|
|
12
12
|
|
|
13
13
|
name: 'n3',
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// This was a student project to
|
|
2
|
-
// allow the user to chose favoite CC
|
|
2
|
+
// allow the user to chose favoite CC licence terms and have them highlighted
|
|
3
3
|
|
|
4
4
|
// tabulator.options becaome UI.licenseOptions
|
|
5
|
-
// Possible future alternative directoons: Store
|
|
5
|
+
// Possible future alternative directoons: Store licence preferences in a solid preferences file
|
|
6
|
+
import * as UI from 'solid-ui'
|
|
6
7
|
import { store } from 'solid-logic'
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
const licenseURI = [
|
|
9
10
|
'http://creativecommons.org/licenses/by-nc-nd/3.0/',
|
|
10
11
|
'http://creativecommons.org/licenses/by-nc-sa/3.0/',
|
|
11
12
|
'http://creativecommons.org/licenses/by-nc/3.0/',
|
|
@@ -16,7 +17,7 @@ export const licenseURI = [
|
|
|
16
17
|
|
|
17
18
|
const names = ['BY-NC-ND', 'BY-NC-SA', 'BY-NC', 'BY-ND', 'BY-SA', 'BY']
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
module.exports = function licenseOptions () {
|
|
20
21
|
this.options = {}
|
|
21
22
|
this.references = []
|
|
22
23
|
this.checkedLicenses = []
|
|
@@ -80,14 +81,12 @@ export function licenseOptions () {
|
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
this.
|
|
84
|
+
this.checkLicence = function checkLicense (statement) {
|
|
84
85
|
const licenses = store.each(
|
|
85
86
|
statement.why,
|
|
86
|
-
store.sym('http://creativecommons.org/ns#license')
|
|
87
|
-
null,
|
|
88
|
-
statement.why
|
|
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++) {
|
|
92
91
|
for (let j = 0; j < this.checkedLicenses.length; j++) {
|
|
93
92
|
if (this.checkedLicenses[j] && licenses[i].uri === licenseURI[j]) {
|
package/src/outline/manager.js
CHANGED
|
@@ -6,12 +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
|
|
10
|
-
import
|
|
9
|
+
import propertyViews from './propertyViews'
|
|
10
|
+
import * as licenseOptions from './licenseOptions'
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
const outlineIcons = require('./outlineIcons.js')
|
|
13
|
+
const UserInput = require('./userInput.js')
|
|
14
|
+
const queryByExample = require('./queryByExample.js')
|
|
15
15
|
|
|
16
16
|
/* global alert XPathResult sourceWidget */
|
|
17
17
|
// XPathResult?
|
|
@@ -181,7 +181,7 @@ export default function (context) {
|
|
|
181
181
|
|
|
182
182
|
// check the IPR on the data. Ok if there is any checked license which is one the document has.
|
|
183
183
|
if (statement && statement.why) {
|
|
184
|
-
if (licenseOptions && licenseOptions.
|
|
184
|
+
if (licenseOptions && licenseOptions.checkLicence()) {
|
|
185
185
|
theClass += ' licOkay' // flag as light green etc .licOkay {background-color: #dfd}
|
|
186
186
|
}
|
|
187
187
|
}
|
|
@@ -647,20 +647,23 @@ export default function (context) {
|
|
|
647
647
|
const renderPane = function (pane) {
|
|
648
648
|
let paneDiv
|
|
649
649
|
UI.log.info('outline: Rendering pane (2): ' + pane.name)
|
|
650
|
-
|
|
651
|
-
|
|
650
|
+
if (UI.no_catch_pane_errors) {
|
|
651
|
+
// for debugging
|
|
652
652
|
paneDiv = pane.render(subject, context, options)
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
dom.
|
|
661
|
-
|
|
653
|
+
} else {
|
|
654
|
+
try {
|
|
655
|
+
paneDiv = pane.render(subject, context, options)
|
|
656
|
+
} catch (e) {
|
|
657
|
+
// Easier debugging for pane developers
|
|
658
|
+
paneDiv = dom.createElement('div')
|
|
659
|
+
paneDiv.setAttribute('class', 'exceptionPane')
|
|
660
|
+
const pre = dom.createElement('pre')
|
|
661
|
+
paneDiv.appendChild(pre)
|
|
662
|
+
pre.appendChild(
|
|
663
|
+
dom.createTextNode(UI.utils.stackString(e))
|
|
664
|
+
)
|
|
665
|
+
}
|
|
662
666
|
}
|
|
663
|
-
|
|
664
667
|
if (
|
|
665
668
|
pane.requireQueryButton &&
|
|
666
669
|
dom.getElementById('queryButton')
|
|
@@ -1,10 +1,4 @@
|
|
|
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
|
-
|
|
8
2
|
import OutlineManager from './manager'
|
|
9
3
|
|
|
10
4
|
import { lit, NamedNode, sym, blankNode } from 'rdflib'
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// This is a system of tracking tooltip phrases used by the tabulator outliner
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const outlineIcons = {}
|
|
3
|
+
const outlineIcons = (module.exports = {}) // was tabulator.Icon
|
|
4
|
+
const UI = require('solid-ui')
|
|
7
5
|
|
|
8
6
|
outlineIcons.src = [] // collect the URIs of the icon filterColumns
|
|
9
7
|
outlineIcons.tooltips = [] // look up tool tips from URL
|
|
@@ -1,12 +1,6 @@
|
|
|
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
|
-
|
|
8
2
|
import { sym } from 'rdflib'
|
|
9
|
-
import
|
|
3
|
+
import propertyViews from './propertyViews'
|
|
10
4
|
|
|
11
5
|
describe('property views', () => {
|
|
12
6
|
it.each([
|
|
@@ -4,7 +4,7 @@ import viewAsMbox from './viewAsMbox'
|
|
|
4
4
|
|
|
5
5
|
/** some builtin simple views **/
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export default (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 function propertyViews (dom) {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/** add a property view function **/
|
|
28
|
-
|
|
28
|
+
function viewsAddPropertyView (views, property, pviewfunc, isDefault) {
|
|
29
29
|
if (!views.properties[property]) {
|
|
30
30
|
views.properties[property] = []
|
|
31
31
|
}
|
|
@@ -34,4 +34,4 @@ export function viewsAddPropertyView (views, property, pviewfunc, isDefault) {
|
|
|
34
34
|
// will override an existing default!
|
|
35
35
|
views.defaults[property] = pviewfunc
|
|
36
36
|
}
|
|
37
|
-
} //
|
|
37
|
+
} // addPropertyView
|
|
@@ -9,6 +9,12 @@
|
|
|
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
|
+
|
|
12
18
|
const optionalSubqueriesIndex = []
|
|
13
19
|
|
|
14
20
|
function predParentOf (node) {
|
|
@@ -25,7 +31,7 @@ function predParentOf (node) {
|
|
|
25
31
|
}
|
|
26
32
|
}
|
|
27
33
|
|
|
28
|
-
|
|
34
|
+
function makeQueryRow (q, tr, constraint) {
|
|
29
35
|
// predtr = predParentOf(tr)
|
|
30
36
|
// var nodes = tr.childNodes
|
|
31
37
|
// var n = tr.childNodes.length
|
|
@@ -187,7 +193,7 @@ function saveQuery (selection, qs) {
|
|
|
187
193
|
|
|
188
194
|
// When the user asks for all list of all matching parts of the data
|
|
189
195
|
//
|
|
190
|
-
|
|
196
|
+
function viewAndSaveQuery (outline, selection) {
|
|
191
197
|
const qs = outline.qs
|
|
192
198
|
UI.log.info('outline.doucment is now ' + outline.document.location)
|
|
193
199
|
const q = saveQuery(selection, qs)
|
|
@@ -213,7 +219,7 @@ export function viewAndSaveQuery (outline, selection) {
|
|
|
213
219
|
* @author jambo
|
|
214
220
|
*/
|
|
215
221
|
|
|
216
|
-
|
|
222
|
+
function QuerySource () {
|
|
217
223
|
/**
|
|
218
224
|
* stores all of the queries currently held by this source,
|
|
219
225
|
* 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
|
+
module.exports = 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'
|
|
@@ -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
|
+
const UI = require('solid-ui')
|
|
7
|
+
const $rdf = require('rdflib')
|
|
8
8
|
const ns = UI.ns
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
module.exports = {
|
|
11
11
|
icon: UI.icons.iconBase + 'noun_1619.svg',
|
|
12
12
|
|
|
13
13
|
name: 'playlistSlot',
|
|
@@ -110,7 +110,6 @@ const editProfileView: PaneDefinition = {
|
|
|
110
110
|
|
|
111
111
|
main.appendChild(paneDiv(context, me, 'contact'))
|
|
112
112
|
|
|
113
|
-
|
|
114
113
|
heading('People you know who have WebIDs')
|
|
115
114
|
|
|
116
115
|
comment(`This is your public social network.
|
|
@@ -131,25 +130,6 @@ const editProfileView: PaneDefinition = {
|
|
|
131
130
|
noun: 'friend'
|
|
132
131
|
})
|
|
133
132
|
|
|
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
|
-
|
|
153
133
|
// heading('The style of your public profile') headings are in form now
|
|
154
134
|
renderProfileForm(main, me)
|
|
155
135
|
|
package/src/registerPanes.js
CHANGED
|
@@ -1,116 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
import editProfileView from './profile/editProfile.view'
|
|
3
|
-
import trustedApplications from './trustedApplications/trustedApplications.view'
|
|
4
|
-
import dashboardPane from './dashboard/dashboardPane'
|
|
5
|
-
import basicPreferences from './dashboard/basicPreferences'
|
|
6
|
-
import issuePane from 'issue-pane'
|
|
7
|
-
import contactsPane from 'contacts-pane'
|
|
8
|
-
import activityStreamsPane from 'activitystreams-pane'
|
|
9
|
-
import padPane from './pad/padPane'
|
|
10
|
-
// import argumentPane from './argument/argumentPane.js'
|
|
11
|
-
import transactionPane from './transaction/pane.js'
|
|
12
|
-
import financialPeriodPane from './transaction/period.js'
|
|
13
|
-
import meetingPane from 'meeting-pane'
|
|
14
|
-
import tabbedPane from './tabbed/tabbedPane'
|
|
15
|
-
import { longChatPane, shortChatPane } from 'chat-pane'
|
|
16
|
-
import { schedulePane } from './schedule/schedulePane.js'
|
|
17
|
-
// import publicationPane from './publication/publicationPane.js'
|
|
18
|
-
import tripPane from './trip/tripPane.js'
|
|
19
|
-
import { imagePane } from './imagePane.js'
|
|
20
|
-
import playListPane from './playlist/playlistPane.js'
|
|
21
|
-
import videoPane from './video/videoPane.js'
|
|
22
|
-
import audioPane from './audio/audioPane.js'
|
|
23
|
-
import dokieliPane from './dokieli/dokieliPane.js'
|
|
24
|
-
import folderPane from 'folder-pane'
|
|
25
|
-
import { classInstancePane } from './classInstancePane.js'
|
|
26
|
-
import { slideshowPane } from './slideshow/slideshowPane.js'
|
|
27
|
-
import { socialPane } from './socialPane.js'
|
|
28
|
-
import humanReadablePane from './humanReadablePane.js'
|
|
29
|
-
|
|
30
|
-
import { dataContentPane } from './dataContentPane.js'
|
|
31
|
-
import sourcePane from 'source-pane'
|
|
32
|
-
import { n3Pane } from './n3Pane.js'
|
|
33
|
-
import { RDFXMLPane } from './RDFXMLPane.js'
|
|
34
|
-
import { formPane } from './form/pane.js'
|
|
35
|
-
import { tableViewPane } from './tableViewPane.js'
|
|
36
|
-
import { defaultPane } from './defaultPane.js'
|
|
37
|
-
import uiPane from './ui/pane.js'
|
|
38
|
-
|
|
39
|
-
import sharingPane from './sharing/sharingPane'
|
|
40
|
-
import internalPane from './internal/internalPane'
|
|
41
|
-
|
|
42
|
-
import homePane from './home/homePane'
|
|
43
|
-
|
|
44
|
-
export function registerPanes (register) {
|
|
1
|
+
module.exports = function registerPanes (register) {
|
|
45
2
|
/* Note that the earliest panes have priority. So the most specific ones are first.
|
|
46
3
|
**
|
|
47
4
|
*/
|
|
48
5
|
// Developer designed:
|
|
49
6
|
|
|
50
|
-
register(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
register(trustedApplications) // must be registered before basicPreferences
|
|
54
|
-
register(dashboardPane)
|
|
55
|
-
register(basicPreferences)
|
|
56
|
-
register(
|
|
57
|
-
register(
|
|
58
|
-
register(
|
|
59
|
-
|
|
60
|
-
register(padPane)
|
|
61
|
-
// register(argumentPane) // A position in an argument tree
|
|
62
|
-
|
|
63
|
-
register(
|
|
64
|
-
register(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
register(
|
|
75
|
-
|
|
76
|
-
register(
|
|
7
|
+
register(require('profile-pane')) // View someone's public profile - dominates all other panes.
|
|
8
|
+
|
|
9
|
+
register(require('./profile/editProfile.view')) // Edit my profile. App. 201900802
|
|
10
|
+
register(require('./trustedApplications/trustedApplications.view')) // must be registered before basicPreferences
|
|
11
|
+
register(require('./dashboard/dashboardPane'))
|
|
12
|
+
register(require('./dashboard/basicPreferences')) // 20190702
|
|
13
|
+
register(require('issue-pane'))
|
|
14
|
+
register(require('contacts-pane'))
|
|
15
|
+
register(require('activitystreams-pane'))
|
|
16
|
+
|
|
17
|
+
register(require('./pad/padPane'))
|
|
18
|
+
// register(require('./argument/argumentPane.js')) // A position in an argument tree
|
|
19
|
+
|
|
20
|
+
register(require('./transaction/pane.js'))
|
|
21
|
+
register(require('./transaction/period.js'))
|
|
22
|
+
|
|
23
|
+
const chatPanes = require('chat-pane')
|
|
24
|
+
// FIXME: https://github.com/solidos/chat-pane/issues/40
|
|
25
|
+
if (chatPanes.longChatPane) {
|
|
26
|
+
register(chatPanes.longChatPane) // Long pane must have prio in case short pane tries to do a long pane
|
|
27
|
+
register(chatPanes.shortChatPane) // was './chat/chatPane.js'
|
|
28
|
+
} else {
|
|
29
|
+
register(chatPanes)
|
|
30
|
+
}
|
|
31
|
+
// register(require('./publication/publicationPane.js'))
|
|
32
|
+
register(require('meeting-pane'))
|
|
33
|
+
register(require('./tabbed/tabbedPane'))
|
|
34
|
+
register(require('./schedule/schedulePane.js'))
|
|
35
|
+
|
|
36
|
+
register(require('./trip/tripPane.js'))
|
|
77
37
|
// register(require('./airPane.js'))
|
|
78
38
|
|
|
79
39
|
// Content views
|
|
80
40
|
|
|
81
|
-
register(imagePane) // Basic image view
|
|
82
|
-
register(
|
|
41
|
+
register(require('./imagePane.js')) // Basic image view
|
|
42
|
+
register(require('./playlist/playlistPane.js')) // Basic playlist view
|
|
83
43
|
|
|
84
|
-
register(videoPane) // Video clip player
|
|
85
|
-
register(audioPane) // Audio clip player
|
|
44
|
+
register(require('./video/videoPane.js')) // Video clip player
|
|
45
|
+
register(require('./audio/audioPane.js')) // Audio clip player
|
|
86
46
|
|
|
87
|
-
register(dokieliPane) // Should be above dataContentPane
|
|
88
|
-
register(
|
|
89
|
-
register(classInstancePane) // Should be above dataContentPane
|
|
47
|
+
register(require('./dokieli/dokieliPane.js')) // Should be above dataContentPane
|
|
48
|
+
register(require('folder-pane')) // Should be above dataContentPane
|
|
49
|
+
register(require('./classInstancePane.js')) // Should be above dataContentPane
|
|
90
50
|
// register(require('./dynamic/dynamicPanes.js')) // warp etc warp broken 2017/8
|
|
91
|
-
register(slideshowPane)
|
|
51
|
+
register(require('./slideshow/slideshowPane.js'))
|
|
92
52
|
|
|
93
|
-
register(socialPane)
|
|
53
|
+
register(require('./socialPane.js'))
|
|
94
54
|
|
|
95
|
-
register(humanReadablePane) // A web page as a web page -- how to escape to tabr?
|
|
55
|
+
register(require('./humanReadablePane.js')) // A web page as a web page -- how to escape to tabr?
|
|
96
56
|
// register(require('markdown-pane').Pane) // replaced by markdown in humanReadablePane
|
|
97
57
|
|
|
98
|
-
register(dataContentPane) // Preferred for a data file
|
|
99
|
-
register(
|
|
100
|
-
register(n3Pane)
|
|
101
|
-
register(RDFXMLPane)
|
|
58
|
+
register(require('./dataContentPane.js')) // Preferred for a data file
|
|
59
|
+
register(require('source-pane')) // edit source
|
|
60
|
+
register(require('./n3Pane.js'))
|
|
61
|
+
register(require('./RDFXMLPane.js'))
|
|
102
62
|
|
|
103
63
|
// User configured - data driven
|
|
104
|
-
register(
|
|
64
|
+
register(require('./form/pane.js'))
|
|
105
65
|
|
|
106
66
|
// Generic:
|
|
107
67
|
|
|
108
|
-
register(tableViewPane)
|
|
68
|
+
register(require('./tableViewPane.js'))
|
|
109
69
|
|
|
110
70
|
// Fallback totally generic:
|
|
111
|
-
register(defaultPane)
|
|
71
|
+
register(require('./defaultPane.js'))
|
|
112
72
|
|
|
113
|
-
register(
|
|
73
|
+
register(require('./ui/pane.js'))
|
|
114
74
|
|
|
115
75
|
// register(require("categoryPane.js")) // Not useful enough
|
|
116
76
|
// register(require("pubsPane.js")) // not finished
|
|
@@ -131,12 +91,12 @@ export function registerPanes (register) {
|
|
|
131
91
|
// register(require("photoImportPane.js"))
|
|
132
92
|
|
|
133
93
|
// The sharing pane is fairly generic and administrative 201
|
|
134
|
-
register(sharingPane)
|
|
94
|
+
register(require('./sharing/sharingPane'))
|
|
135
95
|
|
|
136
96
|
// The internals pane is always (almost?) the last as it is the least user-friendly
|
|
137
|
-
register(internalPane)
|
|
97
|
+
register(require('./internal/internalPane'))
|
|
138
98
|
|
|
139
|
-
register(homePane)
|
|
99
|
+
register(require('./home/homePane'))
|
|
140
100
|
|
|
141
101
|
// ENDS
|
|
142
102
|
}
|