solid-panes 3.5.22 → 3.5.23-9433a994
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +0 -0
- package/.eslintignore +0 -0
- package/.eslintrc +0 -0
- package/.github/workflows/ci.yml +0 -0
- package/.nvmrc +0 -0
- package/Documentation/VisualLanguage.html +0 -0
- package/Documentation/conventions.md +0 -0
- package/LICENSE.md +0 -0
- package/README.md +0 -0
- package/dev/index.html +0 -0
- package/dev/loader.ts +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 +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 +0 -0
- package/lib/dashboard/basicPreferences.js.map +0 -0
- 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 +0 -0
- package/lib/imagePane.js.map +0 -0
- 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 +0 -0
- package/lib/mainPage/header.js.map +0 -0
- 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 +0 -0
- package/lib/outline/manager.test.js.map +0 -0
- package/lib/outline/outlineIcons.js +0 -0
- package/lib/outline/outlineIcons.js.map +0 -0
- package/lib/outline/propertyViews.d.ts +0 -0
- package/lib/outline/propertyViews.d.ts.map +0 -0
- package/lib/outline/propertyViews.js +0 -0
- package/lib/outline/propertyViews.js.map +0 -0
- package/lib/outline/propertyViews.test.js +0 -0
- package/lib/outline/propertyViews.test.js.map +0 -0
- package/lib/outline/queryByExample.js +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 +0 -0
- package/lib/profile/editProfile.view.js.map +0 -0
- package/lib/profile/profile.dom.d.ts +0 -0
- package/lib/profile/profile.dom.d.ts.map +0 -0
- package/lib/profile/profile.dom.js +0 -0
- package/lib/profile/profile.dom.js.map +0 -0
- package/lib/registerPanes.js +0 -0
- package/lib/registerPanes.js.map +0 -0
- package/lib/schedule/formsForSchedule.js +0 -0
- package/lib/schedule/formsForSchedule.js.map +0 -0
- package/lib/schedule/schedulePane.js +0 -0
- package/lib/schedule/schedulePane.js.map +0 -0
- 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 +44 -7
- 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 +5 -4
- 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 +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 +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 +0 -0
- 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 +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 +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 +0 -0
- package/src/outline/outlineIcons.js +0 -0
- package/src/outline/propertyViews.test.ts +0 -0
- package/src/outline/propertyViews.ts +0 -0
- package/src/outline/queryByExample.js +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 +0 -0
- package/src/profile/profile.dom.ts +0 -0
- package/src/profile/profileFormText.ttl +0 -0
- package/src/registerPanes.js +0 -0
- package/src/schedule/Makefile +0 -0
- package/src/schedule/formsForSchedule.js +0 -0
- package/src/schedule/formsForSchedule.ttl +0 -0
- package/src/schedule/schedulePane.js +0 -0
- package/src/sharing/sharingPane.ts +0 -0
- package/src/slideshow/slideshowPane.js +12 -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
package/.babelrc
CHANGED
|
File without changes
|
package/.eslintignore
CHANGED
|
File without changes
|
package/.eslintrc
CHANGED
|
File without changes
|
package/.github/workflows/ci.yml
CHANGED
|
File without changes
|
package/.nvmrc
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/LICENSE.md
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
package/dev/index.html
CHANGED
|
File without changes
|
package/dev/loader.ts
CHANGED
|
File without changes
|
package/dev/pane/index.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/jest.config.js
CHANGED
|
File without changes
|
package/jest.setup.ts
CHANGED
|
File without changes
|
package/lib/RDFXMLPane.js
CHANGED
|
File without changes
|
package/lib/RDFXMLPane.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/attach/attachPane.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/audio/audioPane.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/classInstancePane.js
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
|
package/lib/dataContentPane.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/defaultPane.js
CHANGED
|
File without changes
|
package/lib/defaultPane.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/dokieli/new.js
CHANGED
|
File without changes
|
package/lib/dokieli/new.js.map
CHANGED
|
File without changes
|
package/lib/form/pane.js
CHANGED
|
File without changes
|
package/lib/form/pane.js.map
CHANGED
|
File without changes
|
package/lib/global.d.js
CHANGED
|
File without changes
|
package/lib/global.d.js.map
CHANGED
|
File without changes
|
package/lib/home/homePane.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/home/homePane.js
CHANGED
|
File without changes
|
package/lib/home/homePane.js.map
CHANGED
|
File without changes
|
package/lib/humanReadablePane.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/imagePane.js
CHANGED
|
File without changes
|
package/lib/imagePane.js.map
CHANGED
|
File without changes
|
package/lib/index.d.ts
CHANGED
|
File without changes
|
package/lib/index.d.ts.map
CHANGED
|
File without changes
|
package/lib/index.js
CHANGED
|
File without changes
|
package/lib/index.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/mainPage/footer.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/mainPage/footer.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/mainPage/header.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/mainPage/header.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/mainPage/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/mainPage/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/n3Pane.js
CHANGED
|
File without changes
|
package/lib/n3Pane.js.map
CHANGED
|
File without changes
|
package/lib/outline/context.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/outline/context.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/outline/manager.js
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
|
package/lib/outline/userInput.js
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
|
package/lib/pad/padPane.d.ts
CHANGED
|
File without changes
|
package/lib/pad/padPane.d.ts.map
CHANGED
|
File without changes
|
package/lib/pad/padPane.js
CHANGED
|
File without changes
|
package/lib/pad/padPane.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
|
package/lib/registerPanes.js
CHANGED
|
File without changes
|
package/lib/registerPanes.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
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
|
|
5
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
6
|
+
|
|
3
7
|
/* slideshow Pane
|
|
4
8
|
**
|
|
5
9
|
*/
|
|
@@ -16,12 +20,12 @@ module.exports = {
|
|
|
16
20
|
audience: [ns.solid('PowerUser')],
|
|
17
21
|
// Does the subject deserve an slideshow pane?
|
|
18
22
|
label: function label(subject, context) {
|
|
19
|
-
var
|
|
23
|
+
var store = context.session.store;
|
|
20
24
|
var ns = UI.ns;
|
|
21
|
-
var t =
|
|
25
|
+
var t = store.findTypeURIs(subject);
|
|
22
26
|
|
|
23
27
|
if (t[ns.ldp('Container').uri] || t[ns.ldp('BasicContainer').uri]) {
|
|
24
|
-
var contents =
|
|
28
|
+
var contents = store.each(subject, ns.ldp('contains'));
|
|
25
29
|
var count = 0;
|
|
26
30
|
contents.forEach(function (file) {
|
|
27
31
|
if (UI.widgets.isImage(file)) count++;
|
|
@@ -37,27 +41,60 @@ module.exports = {
|
|
|
37
41
|
var dom = context.dom;
|
|
38
42
|
var styleSheet = 'https://leemark.github.io/better-simple-slideshow/css/simple-slideshow-styles.css';
|
|
39
43
|
UI.widgets.addStyleSheet(dom, styleSheet);
|
|
40
|
-
var
|
|
44
|
+
var store = context.session.store;
|
|
41
45
|
var ns = UI.ns;
|
|
42
46
|
var div = dom.createElement('div');
|
|
43
47
|
div.setAttribute('class', 'bss-slides');
|
|
44
|
-
var t =
|
|
48
|
+
var t = store.findTypeURIs(subject);
|
|
45
49
|
var predicate;
|
|
46
50
|
|
|
47
51
|
if (t[ns.ldp('BasicContainer').uri] || t[ns.ldp('Container').uri]) {
|
|
48
52
|
predicate = ns.ldp('contains');
|
|
49
53
|
}
|
|
50
54
|
|
|
51
|
-
var images =
|
|
55
|
+
var images = store.each(subject, predicate); // @@ random order?
|
|
52
56
|
// @@ Ideally: sort by embedded time of image
|
|
53
57
|
|
|
54
58
|
images.sort(); // Sort for now by URI
|
|
55
59
|
|
|
60
|
+
function imageData(_x) {
|
|
61
|
+
return _imageData.apply(this, arguments);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function _imageData() {
|
|
65
|
+
_imageData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(image) {
|
|
66
|
+
var res, blob;
|
|
67
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
68
|
+
while (1) {
|
|
69
|
+
switch (_context.prev = _context.next) {
|
|
70
|
+
case 0:
|
|
71
|
+
_context.next = 2;
|
|
72
|
+
return store.fetcher.webOperation('GET', image);
|
|
73
|
+
|
|
74
|
+
case 2:
|
|
75
|
+
res = _context.sent;
|
|
76
|
+
_context.next = 5;
|
|
77
|
+
return res.blob();
|
|
78
|
+
|
|
79
|
+
case 5:
|
|
80
|
+
blob = _context.sent;
|
|
81
|
+
return _context.abrupt("return", URL.createObjectURL(blob));
|
|
82
|
+
|
|
83
|
+
case 7:
|
|
84
|
+
case "end":
|
|
85
|
+
return _context.stop();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}, _callee);
|
|
89
|
+
}));
|
|
90
|
+
return _imageData.apply(this, arguments);
|
|
91
|
+
}
|
|
92
|
+
|
|
56
93
|
for (var i = 0; i < images.length; i++) {
|
|
57
94
|
if (!UI.widgets.isImage(images[i])) continue;
|
|
58
95
|
var figure = div.appendChild(dom.createElement('figure'));
|
|
59
96
|
var img = figure.appendChild(dom.createElement('img'));
|
|
60
|
-
img.setAttribute('src', images[i].uri);
|
|
97
|
+
img.setAttribute('src', imageData(images[i].uri));
|
|
61
98
|
img.setAttribute('width', '100%');
|
|
62
99
|
figure.appendChild(dom.createElement('figcaption'));
|
|
63
100
|
}
|
|
@@ -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","imageData","image","fetcher","webOperation","res","blob","URL","createObjectURL","i","length","figure","appendChild","img","options","setTimeout"],"mappings":";;;;;;AAAA;AACA;AACA;AACA,IAAMA,EAAE,GAAGC,OAAO,CAAC,UAAD,CAAlB;;AACA,IAAMC,EAAE,GAAGF,EAAE,CAACE,EAAd,C,CAEA;;AAEA,IAAMC,OAAO,GAAGF,OAAO,CAAC,gCAAD,CAAvB,C,CACA;;;AAEAG,MA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I,CAAC9C,EAAE,CAAC0B,OAAH,CAAWC,OAAX,CAAmBS,MAAM,CAACU,CAAD,CAAzB,CAAL,EAAoC;AACpC,UAAME,MAAM,GAAGhB,GAAG,CAACiB,WAAJ,CAAgBpB,GAAG,CAACI,aAAJ,CAAkB,QAAlB,CAAhB,CAAf;AACA,UAAMiB,GAAG,GAAGF,MAAM,CAACC,WAAP,CAAmBpB,GAAG,CAACI,aAAJ,CAAkB,KAAlB,CAAnB,CAAZ;AACAiB,MAAAA,GAAG,CAAChB,YAAJ,CAAiB,KAAjB,EAAwBI,SAAS,CAACF,MAAM,CAACU,CAAD,CAAN,CAAU1B,GAAX,CAAjC;AACA8B,MAAAA,GAAG,CAAChB,YAAJ,CAAiB,OAAjB,EAA0B,MAA1B;AACAc,MAAAA,MAAM,CAACC,WAAP,CAAmBpB,GAAG,CAACI,aAAJ,CAAkB,YAAlB,CAAnB;AACD;;AACD,QAAMkB,OAAO,GAAG;AAAEtB,MAAAA,GAAG,EAAEA;AAAP,KAAhB;AAEAuB,IAAAA,UAAU,CAAC,YAAY;AACrBjD,MAAAA,OAAO,CAAC,aAAD,EAAgBgD,OAAhB,CAAP;AACD,KAFS,EAEP,IAFO,CAAV,CAlCkC,CAoCzB;;AAET,WAAOnB,GAAP;AACD;AAhEc,CAAjB,C,CAmEA","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 async function imageData (image) { // string\n const res = await store.fetcher.webOperation('GET', image)\n const blob = await res.blob()\n return URL.createObjectURL(blob)\n }\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 img.setAttribute('src', imageData(images[i].uri))\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
|