solid-panes 3.5.23 → 3.5.24-506c1263
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 +4 -4
- package/dev/index.html +0 -0
- package/dev/loader.ts +1 -1
- 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 +0 -0
- package/lib/argument/argumentPane.js.map +0 -0
- 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 +0 -0
- package/lib/dashboard/basicPreferences.js +2 -2
- 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 +0 -0
- package/lib/dashboard/dashboardPane.js.map +0 -0
- 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 +0 -0
- package/lib/dataContentPane.js.map +0 -0
- 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 +0 -0
- package/lib/form/pane.js.map +0 -0
- 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 +0 -0
- package/lib/home/homePane.js +0 -0
- package/lib/home/homePane.js.map +0 -0
- package/lib/humanReadablePane.js +0 -0
- package/lib/humanReadablePane.js.map +0 -0
- package/lib/imagePane.js +14 -7
- 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 +0 -0
- package/lib/index.js.map +0 -0
- 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 +0 -0
- package/lib/mainPage/header.js +2 -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 +0 -0
- package/lib/microblogPane/microblogPane.js.map +0 -0
- 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/licenseOptions.js +0 -0
- package/lib/outline/licenseOptions.js.map +0 -0
- package/lib/outline/manager.js +0 -0
- package/lib/outline/manager.js.map +0 -0
- package/lib/outline/manager.test.js +3 -3
- package/lib/outline/manager.test.js.map +1 -1
- 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 +0 -0
- package/lib/outline/queryByExample.js.map +0 -0
- package/lib/outline/userInput.js +0 -0
- package/lib/outline/userInput.js.map +0 -0
- 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 +0 -0
- package/lib/pad/padPane.js +0 -0
- package/lib/pad/padPane.js.map +0 -0
- 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 +0 -0
- package/lib/profile/editProfile.view.js +1 -1
- 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 +1 -1
- package/lib/registerPanes.js.map +1 -1
- package/lib/schedule/formsForSchedule.js +0 -0
- package/lib/schedule/formsForSchedule.js.map +0 -0
- package/lib/schedule/schedulePane.js +1 -1
- 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 +23 -10
- package/lib/slideshow/slideshowPane.js.map +1 -1
- package/lib/socialPane.js +0 -0
- package/lib/socialPane.js.map +0 -0
- 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 +0 -0
- package/lib/transaction/pane.js.map +0 -0
- package/lib/transaction/period.js +0 -0
- package/lib/transaction/period.js.map +0 -0
- package/lib/trip/tripPane.js +0 -0
- package/lib/trip/tripPane.js.map +0 -0
- 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 +0 -0
- package/lib/trustedApplications/trustedApplications.dom.js.map +0 -0
- 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 +0 -0
- package/lib/trustedApplications/trustedApplications.view.js +0 -0
- package/lib/trustedApplications/trustedApplications.view.js.map +0 -0
- 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 +9 -11
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +14 -16
- 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 +25 -25
- package/src/RDFXMLPane.js +0 -0
- package/src/argument/argumentPane.js +0 -0
- 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 +2 -2
- 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 +0 -0
- 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 +0 -0
- package/src/form/psuedocode-notes.txt +0 -0
- package/src/global.d.ts +0 -0
- package/src/home/homePane.ts +0 -0
- package/src/humanReadablePane.js +0 -0
- package/src/imagePane.js +18 -7
- package/src/index.ts +0 -0
- package/src/internal/internalPane.ts +0 -0
- package/src/mainPage/footer.ts +0 -0
- package/src/mainPage/header.ts +2 -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 +0 -0
- package/src/n3Pane.js +0 -0
- package/src/outline/context.ts +0 -0
- package/src/outline/licenseOptions.js +0 -0
- package/src/outline/manager.js +0 -0
- package/src/outline/manager.test.ts +3 -3
- 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 +0 -0
- package/src/outline/userInput.js +0 -0
- 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 +0 -0
- package/src/profile/editProfile.view.ts +1 -1
- package/src/profile/profile.dom.ts +0 -0
- package/src/profile/profileFormText.ttl +0 -0
- package/src/registerPanes.js +1 -1
- 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 +1 -1
- package/src/sharing/sharingPane.ts +0 -0
- package/src/slideshow/slideshowPane.js +16 -7
- package/src/socialPane.js +0 -0
- 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 +0 -0
- package/src/transaction/period.js +0 -0
- 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 +0 -0
- package/src/trustedApplications/__snapshots__/trustedApplications.test.ts.snap +0 -0
- package/src/trustedApplications/trustedApplications.dom.ts +0 -0
- package/src/trustedApplications/trustedApplications.test.ts +0 -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 +0 -0
- package/src/versionInfo.ts +14 -16
- 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
|
@@ -16,12 +16,12 @@ module.exports = {
|
|
|
16
16
|
audience: [ns.solid('PowerUser')],
|
|
17
17
|
// Does the subject deserve an slideshow pane?
|
|
18
18
|
label: function label(subject, context) {
|
|
19
|
-
var
|
|
19
|
+
var store = context.session.store;
|
|
20
20
|
var ns = UI.ns;
|
|
21
|
-
var t =
|
|
21
|
+
var t = store.findTypeURIs(subject);
|
|
22
22
|
|
|
23
23
|
if (t[ns.ldp('Container').uri] || t[ns.ldp('BasicContainer').uri]) {
|
|
24
|
-
var contents =
|
|
24
|
+
var contents = store.each(subject, ns.ldp('contains'));
|
|
25
25
|
var count = 0;
|
|
26
26
|
contents.forEach(function (file) {
|
|
27
27
|
if (UI.widgets.isImage(file)) count++;
|
|
@@ -37,29 +37,42 @@ module.exports = {
|
|
|
37
37
|
var dom = context.dom;
|
|
38
38
|
var styleSheet = 'https://leemark.github.io/better-simple-slideshow/css/simple-slideshow-styles.css';
|
|
39
39
|
UI.widgets.addStyleSheet(dom, styleSheet);
|
|
40
|
-
var
|
|
40
|
+
var store = context.session.store;
|
|
41
41
|
var ns = UI.ns;
|
|
42
42
|
var div = dom.createElement('div');
|
|
43
43
|
div.setAttribute('class', 'bss-slides');
|
|
44
|
-
var t =
|
|
44
|
+
var t = store.findTypeURIs(subject);
|
|
45
45
|
var predicate;
|
|
46
46
|
|
|
47
47
|
if (t[ns.ldp('BasicContainer').uri] || t[ns.ldp('Container').uri]) {
|
|
48
48
|
predicate = ns.ldp('contains');
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
var images =
|
|
51
|
+
var images = store.each(subject, predicate); // @@ random order?
|
|
52
52
|
// @@ Ideally: sort by embedded time of image
|
|
53
53
|
|
|
54
54
|
images.sort(); // Sort for now by URI
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
if (!UI.widgets.isImage(images[i])) continue;
|
|
56
|
+
var _loop = function _loop(i) {
|
|
57
|
+
if (!UI.widgets.isImage(images[i])) return "continue";
|
|
58
58
|
var figure = div.appendChild(dom.createElement('figure'));
|
|
59
|
-
var img = figure.appendChild(dom.createElement('img'));
|
|
60
|
-
|
|
59
|
+
var img = figure.appendChild(dom.createElement('img')); // get image with authenticated fetch
|
|
60
|
+
|
|
61
|
+
store.fetcher._fetch(images[i].uri).then(function (response) {
|
|
62
|
+
return response.blob();
|
|
63
|
+
}).then(function (myBlob) {
|
|
64
|
+
var objectURL = URL.createObjectURL(myBlob);
|
|
65
|
+
img.setAttribute('src', objectURL); // w640 h480 //
|
|
66
|
+
});
|
|
67
|
+
|
|
61
68
|
img.setAttribute('width', '100%');
|
|
62
69
|
figure.appendChild(dom.createElement('figcaption'));
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
for (var i = 0; i < images.length; i++) {
|
|
73
|
+
var _ret = _loop(i);
|
|
74
|
+
|
|
75
|
+
if (_ret === "continue") continue;
|
|
63
76
|
}
|
|
64
77
|
|
|
65
78
|
var options = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/slideshow/slideshowPane.js"],"names":["UI","require","ns","makeBSS","module","exports","icon","icons","iconBase","name","audience","solid","label","subject","context","
|
|
1
|
+
{"version":3,"sources":["../../src/slideshow/slideshowPane.js"],"names":["UI","require","ns","makeBSS","module","exports","icon","icons","iconBase","name","audience","solid","label","subject","context","store","session","t","findTypeURIs","ldp","uri","contents","each","count","forEach","file","widgets","isImage","render","dom","styleSheet","addStyleSheet","div","createElement","setAttribute","predicate","images","sort","i","figure","appendChild","img","fetcher","_fetch","then","response","blob","myBlob","objectURL","URL","createObjectURL","length","options","setTimeout"],"mappings":"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","sourcesContent":["/* slideshow Pane\n **\n */\nconst UI = require('solid-ui')\nconst ns = UI.ns\n\n// tabulator.loadScript(\"js/panes/slideshow/better-simple-slideshow/js/better-simple-slideshow.js\")\n\nconst makeBSS = require('@solid/better-simple-slideshow')\n// load also js/panes/slideshow/better-simple-slideshow/css/simple-slideshow-styles.css\n\nmodule.exports = {\n icon: UI.icons.iconBase + 'noun_138712.svg',\n\n name: 'slideshow',\n\n audience: [ns.solid('PowerUser')],\n\n // Does the subject deserve an slideshow pane?\n label: function (subject, context) {\n const store = context.session.store\n const ns = UI.ns\n const t = store.findTypeURIs(subject)\n if (t[ns.ldp('Container').uri] || t[ns.ldp('BasicContainer').uri]) {\n const contents = store.each(subject, ns.ldp('contains'))\n let count = 0\n contents.forEach(function (file) {\n if (UI.widgets.isImage(file)) count++\n })\n return count > 0 ? 'Slideshow' : null\n }\n return null\n },\n\n // See https://github.com/leemark/better-simple-slideshow\n // and follow instructions there\n render: function (subject, context) {\n const dom = context.dom\n const styleSheet =\n 'https://leemark.github.io/better-simple-slideshow/css/simple-slideshow-styles.css'\n UI.widgets.addStyleSheet(dom, styleSheet)\n\n const store = context.session.store\n const ns = UI.ns\n const div = dom.createElement('div')\n div.setAttribute('class', 'bss-slides')\n\n const t = store.findTypeURIs(subject)\n let predicate\n if (t[ns.ldp('BasicContainer').uri] || t[ns.ldp('Container').uri]) {\n predicate = ns.ldp('contains')\n }\n const images = store.each(subject, predicate) // @@ random order?\n // @@ Ideally: sort by embedded time of image\n images.sort() // Sort for now by URI\n for (let i = 0; i < images.length; i++) {\n if (!UI.widgets.isImage(images[i])) continue\n const figure = div.appendChild(dom.createElement('figure'))\n const img = figure.appendChild(dom.createElement('img'))\n\n // get image with authenticated fetch\n store.fetcher._fetch(images[i].uri)\n .then(function(response) {\n return response.blob()\n })\n .then(function(myBlob) {\n const objectURL = URL.createObjectURL(myBlob)\n img.setAttribute('src', objectURL) // w640 h480 //\n })\n img.setAttribute('width', '100%')\n figure.appendChild(dom.createElement('figcaption'))\n }\n const options = { dom: dom }\n\n setTimeout(function () {\n makeBSS('.bss-slides', options)\n }, 1000) // Must run after the code which called this\n\n return div\n }\n}\n\n// ends\n"],"file":"slideshowPane.js"}
|
package/lib/socialPane.js
CHANGED
|
File without changes
|
package/lib/socialPane.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/tabbed/tabbedPane.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/tableViewPane.js
CHANGED
|
File without changes
|
package/lib/tableViewPane.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/transaction/pane.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/trip/tripPane.js
CHANGED
|
File without changes
|
package/lib/trip/tripPane.js.map
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
|
package/lib/types.d.ts
CHANGED
|
File without changes
|
package/lib/types.d.ts.map
CHANGED
|
File without changes
|
package/lib/types.js
CHANGED
|
File without changes
|
package/lib/types.js.map
CHANGED
|
File without changes
|
package/lib/ui/pane.js
CHANGED
|
File without changes
|
package/lib/ui/pane.js.map
CHANGED
|
File without changes
|
package/lib/versionInfo.d.ts
CHANGED
|
@@ -4,23 +4,21 @@ declare const _default: {
|
|
|
4
4
|
npmInfo: {
|
|
5
5
|
'solid-panes': string;
|
|
6
6
|
npm: string;
|
|
7
|
-
node: string;
|
|
8
|
-
v8: string;
|
|
9
|
-
uv: string;
|
|
10
|
-
zlib: string;
|
|
11
|
-
brotli: string;
|
|
12
7
|
ares: string;
|
|
8
|
+
brotli: string;
|
|
9
|
+
cldr: string;
|
|
10
|
+
icu: string;
|
|
11
|
+
llhttp: string;
|
|
13
12
|
modules: string;
|
|
14
|
-
nghttp2: string;
|
|
15
13
|
napi: string;
|
|
16
|
-
|
|
14
|
+
nghttp2: string;
|
|
15
|
+
node: string;
|
|
17
16
|
openssl: string;
|
|
18
|
-
cldr: string;
|
|
19
|
-
icu: string;
|
|
20
17
|
tz: string;
|
|
21
18
|
unicode: string;
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
uv: string;
|
|
20
|
+
v8: string;
|
|
21
|
+
zlib: string;
|
|
24
22
|
};
|
|
25
23
|
};
|
|
26
24
|
export default _default;
|
package/lib/versionInfo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionInfo.d.ts","sourceRoot":"","sources":["../src/versionInfo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"versionInfo.d.ts","sourceRoot":"","sources":["../src/versionInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAuBE"}
|
package/lib/versionInfo.js
CHANGED
|
@@ -5,28 +5,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
buildTime: "2022-
|
|
9
|
-
commit: "
|
|
8
|
+
buildTime: "2022-04-14T19:52:19Z",
|
|
9
|
+
commit: "506c126345c03f6667cde9c6440753122186f955",
|
|
10
10
|
npmInfo: {
|
|
11
|
-
'solid-panes': '3.5.
|
|
12
|
-
npm: '
|
|
13
|
-
node: '16.14.0',
|
|
14
|
-
v8: '9.4.146.24-node.20',
|
|
15
|
-
uv: '1.43.0',
|
|
16
|
-
zlib: '1.2.11',
|
|
17
|
-
brotli: '1.0.9',
|
|
11
|
+
'solid-panes': '3.5.24',
|
|
12
|
+
npm: '6.14.16',
|
|
18
13
|
ares: '1.18.1',
|
|
19
|
-
|
|
20
|
-
nghttp2: '1.45.1',
|
|
21
|
-
napi: '8',
|
|
22
|
-
llhttp: '6.0.4',
|
|
23
|
-
openssl: '1.1.1m+quic',
|
|
14
|
+
brotli: '1.0.9',
|
|
24
15
|
cldr: '40.0',
|
|
25
16
|
icu: '70.1',
|
|
17
|
+
llhttp: '2.1.4',
|
|
18
|
+
modules: '83',
|
|
19
|
+
napi: '8',
|
|
20
|
+
nghttp2: '1.42.0',
|
|
21
|
+
node: '14.19.1',
|
|
22
|
+
openssl: '1.1.1n',
|
|
26
23
|
tz: '2021a3',
|
|
27
24
|
unicode: '14.0',
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
uv: '1.42.0',
|
|
26
|
+
v8: '8.4.371.23-node.85',
|
|
27
|
+
zlib: '1.2.11'
|
|
30
28
|
}
|
|
31
29
|
};
|
|
32
30
|
exports["default"] = _default;
|
package/lib/versionInfo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/versionInfo.ts"],"names":["buildTime","commit","npmInfo","npm","
|
|
1
|
+
{"version":3,"sources":["../src/versionInfo.ts"],"names":["buildTime","commit","npmInfo","npm","ares","brotli","cldr","icu","llhttp","modules","napi","nghttp2","node","openssl","tz","unicode","uv","v8","zlib"],"mappings":";;;;;;eAAe;AACfA,EAAAA,SAAS,EAAE,sBADI;AAEfC,EAAAA,MAAM,EAAE,0CAFO;AAGfC,EAAAA,OAAO,EACP;AACE,mBAAe,QADjB;AAEEC,IAAAA,GAAG,EAAE,SAFP;AAGEC,IAAAA,IAAI,EAAE,QAHR;AAIEC,IAAAA,MAAM,EAAE,OAJV;AAKEC,IAAAA,IAAI,EAAE,MALR;AAMEC,IAAAA,GAAG,EAAE,MANP;AAOEC,IAAAA,MAAM,EAAE,OAPV;AAQEC,IAAAA,OAAO,EAAE,IARX;AASEC,IAAAA,IAAI,EAAE,GATR;AAUEC,IAAAA,OAAO,EAAE,QAVX;AAWEC,IAAAA,IAAI,EAAE,SAXR;AAYEC,IAAAA,OAAO,EAAE,QAZX;AAaEC,IAAAA,EAAE,EAAE,QAbN;AAcEC,IAAAA,OAAO,EAAE,MAdX;AAeEC,IAAAA,EAAE,EAAE,QAfN;AAgBEC,IAAAA,EAAE,EAAE,oBAhBN;AAiBEC,IAAAA,IAAI,EAAE;AAjBR;AAJe,C","sourcesContent":["export default {\nbuildTime: \"2022-04-14T19:52:19Z\",\ncommit: \"506c126345c03f6667cde9c6440753122186f955\",\nnpmInfo:\n{\n 'solid-panes': '3.5.24',\n npm: '6.14.16',\n ares: '1.18.1',\n brotli: '1.0.9',\n cldr: '40.0',\n icu: '70.1',\n llhttp: '2.1.4',\n modules: '83',\n napi: '8',\n nghttp2: '1.42.0',\n node: '14.19.1',\n openssl: '1.1.1n',\n tz: '2021a3',\n unicode: '14.0',\n uv: '1.42.0',\n v8: '8.4.371.23-node.85',\n zlib: '1.2.11'\n}\n};\n"],"file":"versionInfo.js"}
|
package/lib/video/videoPane.js
CHANGED
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-panes",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.24-506c1263",
|
|
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",
|
|
@@ -17,12 +17,12 @@
|
|
|
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": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "https://github.com/
|
|
25
|
+
"url": "https://github.com/solidos/solid-panes"
|
|
26
26
|
},
|
|
27
27
|
"keywords": [
|
|
28
28
|
"solid",
|
|
@@ -40,42 +40,42 @@
|
|
|
40
40
|
"author": "Tim Berners-Lee <timbl@mit.edu>",
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"bugs": {
|
|
43
|
-
"url": "https://github.com/
|
|
43
|
+
"url": "https://github.com/solidos/solid-panes/issues"
|
|
44
44
|
},
|
|
45
|
-
"homepage": "https://github.com/
|
|
45
|
+
"homepage": "https://github.com/solidos/solid-panes",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@solid/better-simple-slideshow": "^0.1.0",
|
|
48
|
-
"activitystreams-pane": "^0.6.
|
|
49
|
-
"chat-pane": "^2.4.
|
|
50
|
-
"contacts-pane": "^2.6.
|
|
51
|
-
"folder-pane": "^2.4.
|
|
52
|
-
"issue-pane": "^2.4.
|
|
53
|
-
"marked": "^4.0.
|
|
54
|
-
"meeting-pane": "^2.3.
|
|
48
|
+
"activitystreams-pane": "^0.6.6",
|
|
49
|
+
"chat-pane": "^2.4.18",
|
|
50
|
+
"contacts-pane": "^2.6.3",
|
|
51
|
+
"folder-pane": "^2.4.17",
|
|
52
|
+
"issue-pane": "^2.4.12",
|
|
53
|
+
"marked": "^4.0.14",
|
|
54
|
+
"meeting-pane": "^2.3.11",
|
|
55
55
|
"mime-types": "^2.1.35",
|
|
56
|
-
"pane-registry": "^2.4.
|
|
57
|
-
"profile-pane": "^1.0.
|
|
56
|
+
"pane-registry": "^2.4.10",
|
|
57
|
+
"profile-pane": "^1.0.10",
|
|
58
58
|
"rdflib": "^2.2.19",
|
|
59
|
-
"solid-logic": "^1.3.
|
|
59
|
+
"solid-logic": "^1.3.17",
|
|
60
60
|
"solid-namespace": "^0.5.2",
|
|
61
|
-
"solid-ui": "
|
|
62
|
-
"source-pane": "^2.2.
|
|
61
|
+
"solid-ui": "2.4.22",
|
|
62
|
+
"source-pane": "^2.2.17"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@babel/cli": "^7.17.6",
|
|
66
|
-
"@babel/core": "^7.17.
|
|
66
|
+
"@babel/core": "^7.17.9",
|
|
67
67
|
"@babel/preset-env": "^7.16.11",
|
|
68
68
|
"@babel/preset-typescript": "^7.16.7",
|
|
69
|
-
"@testing-library/dom": "^8.
|
|
70
|
-
"@testing-library/jest-dom": "^5.16.
|
|
69
|
+
"@testing-library/dom": "^8.13.0",
|
|
70
|
+
"@testing-library/jest-dom": "^5.16.4",
|
|
71
71
|
"@types/jest": "^27.4.1",
|
|
72
72
|
"@types/webpack-env": "^1.16.3",
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
74
|
-
"@typescript-eslint/parser": "^5.
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "^5.19.0",
|
|
74
|
+
"@typescript-eslint/parser": "^5.19.0",
|
|
75
75
|
"babel-loader": "^8.2.4",
|
|
76
76
|
"babel-plugin-inline-import": "^3.0.0",
|
|
77
77
|
"buffer": "^6.0.3",
|
|
78
|
-
"eslint": "^8.
|
|
78
|
+
"eslint": "^8.13.0",
|
|
79
79
|
"html-webpack-plugin": "^5.5.0",
|
|
80
80
|
"husky": "^7.0.4",
|
|
81
81
|
"jest": "^27.5.1",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"react-dom": "^18.0.0",
|
|
87
87
|
"ts-jest": "^27.1.4",
|
|
88
88
|
"typescript": "^4.6.3",
|
|
89
|
-
"webpack": "^5.
|
|
89
|
+
"webpack": "^5.72.0",
|
|
90
90
|
"webpack-cli": "^4.9.2",
|
|
91
|
-
"webpack-dev-server": "^4.
|
|
91
|
+
"webpack-dev-server": "^4.8.1"
|
|
92
92
|
},
|
|
93
93
|
"husky": {
|
|
94
94
|
"hooks": {
|
package/src/RDFXMLPane.js
CHANGED
|
File without changes
|
|
File without changes
|
|
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
|
|
@@ -93,7 +93,7 @@ function setupUserTypesSection (
|
|
|
93
93
|
description.innerText = 'Here you can self-assign user types to help the data browser know which views you would like to access.'
|
|
94
94
|
|
|
95
95
|
const userTypesLink = formContainer.appendChild(dom.createElement('a'))
|
|
96
|
-
userTypesLink.href = 'https://github.com/
|
|
96
|
+
userTypesLink.href = 'https://github.com/solidos/userguide/#role'
|
|
97
97
|
userTypesLink.innerText = 'Read more'
|
|
98
98
|
|
|
99
99
|
const formArea = formContainer.appendChild(dom.createElement('div'))
|
|
@@ -146,7 +146,7 @@ async function generateDeletionLink (
|
|
|
146
146
|
*
|
|
147
147
|
* This function infers the deletion link by assuming the URL structure of Node Solid server.
|
|
148
148
|
* In the future, Solid will hopefully provide a standardised way of discovering the deletion link:
|
|
149
|
-
* https://github.com/
|
|
149
|
+
* https://github.com/solidos/data-interoperability-panel/issues/18
|
|
150
150
|
*
|
|
151
151
|
* If NSS is in multi-user mode (the case on inrupt.net and solid.community), the deletion URL for
|
|
152
152
|
* vincent.dev.inrupt.net would be at dev.inrupt.net/account/delete. In single-user mode, the
|
|
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/dataContentPane.js
CHANGED
|
File without changes
|
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
|
File without changes
|
|
File without changes
|
package/src/global.d.ts
CHANGED
|
File without changes
|
package/src/home/homePane.ts
CHANGED
|
File without changes
|
package/src/humanReadablePane.js
CHANGED
|
File without changes
|
package/src/imagePane.js
CHANGED
|
@@ -10,12 +10,12 @@ module.exports = {
|
|
|
10
10
|
name: 'image',
|
|
11
11
|
|
|
12
12
|
label: function (subject, context) {
|
|
13
|
-
const
|
|
13
|
+
const store = context.session.store
|
|
14
14
|
if (
|
|
15
|
-
!
|
|
15
|
+
!store.anyStatementMatching(
|
|
16
16
|
subject,
|
|
17
17
|
UI.ns.rdf('type'),
|
|
18
|
-
|
|
18
|
+
store.sym('http://purl.org/dc/terms/Image')
|
|
19
19
|
)
|
|
20
20
|
) {
|
|
21
21
|
// NB: Not dc: namespace!
|
|
@@ -24,8 +24,8 @@ module.exports = {
|
|
|
24
24
|
|
|
25
25
|
// See also the source pane, which has lower precedence.
|
|
26
26
|
|
|
27
|
-
const contentTypeMatch = function (
|
|
28
|
-
const cts =
|
|
27
|
+
const contentTypeMatch = function (store, x, contentTypes) {
|
|
28
|
+
const cts = store.fetcher.getHeader(x, 'content-type')
|
|
29
29
|
if (cts) {
|
|
30
30
|
for (let j = 0; j < cts.length; j++) {
|
|
31
31
|
for (let k = 0; k < contentTypes.length; k++) {
|
|
@@ -39,7 +39,7 @@ module.exports = {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
const suppressed = ['application/pdf']
|
|
42
|
-
if (contentTypeMatch(
|
|
42
|
+
if (contentTypeMatch(store, subject, suppressed)) {
|
|
43
43
|
return null
|
|
44
44
|
}
|
|
45
45
|
return 'view'
|
|
@@ -47,10 +47,21 @@ module.exports = {
|
|
|
47
47
|
|
|
48
48
|
render: function (subject, context) {
|
|
49
49
|
const myDocument = context.dom
|
|
50
|
+
const store = context.session.store
|
|
50
51
|
const div = myDocument.createElement('div')
|
|
51
52
|
div.setAttribute('class', 'imageView')
|
|
52
53
|
const img = myDocument.createElement('IMG')
|
|
53
|
-
|
|
54
|
+
|
|
55
|
+
// get image with authenticated fetch
|
|
56
|
+
store.fetcher._fetch(subject.uri)
|
|
57
|
+
.then(function(response) {
|
|
58
|
+
return response.blob()
|
|
59
|
+
})
|
|
60
|
+
.then(function(myBlob) {
|
|
61
|
+
const objectURL = URL.createObjectURL(myBlob)
|
|
62
|
+
img.setAttribute('src', objectURL) // w640 h480 //
|
|
63
|
+
})
|
|
64
|
+
|
|
54
65
|
img.setAttribute('style', 'max-width: 100%; max-height: 100%;')
|
|
55
66
|
// div.style['max-width'] = '640'
|
|
56
67
|
// div.style['max-height'] = '480'
|
package/src/index.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/src/mainPage/footer.ts
CHANGED
|
File without changes
|
package/src/mainPage/header.ts
CHANGED
|
@@ -16,8 +16,8 @@ const LOG_OUT_MENU_ITEM = 'Log out'
|
|
|
16
16
|
/**
|
|
17
17
|
* URLS
|
|
18
18
|
*/
|
|
19
|
-
const USER_GUIDE_MENU_URL = 'https://
|
|
20
|
-
const REPORT_A_PROBLEM_MENU_URL = 'https://github.com/
|
|
19
|
+
const USER_GUIDE_MENU_URL = 'https://solidos.github.io/userguide/'
|
|
20
|
+
const REPORT_A_PROBLEM_MENU_URL = 'https://github.com/solidos/solidos/issues'
|
|
21
21
|
|
|
22
22
|
export async function createHeader (store, outliner) {
|
|
23
23
|
initHeader(store, await setUserMenu(outliner), setHeaderOptions())
|
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
|