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
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
9
|
-
var $rdf = _interopRequireWildcard(require("rdflib"));
|
|
10
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
3
|
/* Playlist Pane
|
|
13
4
|
**
|
|
14
5
|
** This pane allows playlists and playlists slots to be viewed
|
|
15
6
|
** seeAlso: http://smiy.sourceforge.net/pbo/spec/playbackontology.html
|
|
16
7
|
*/
|
|
17
|
-
|
|
8
|
+
var UI = require('solid-ui');
|
|
9
|
+
var $rdf = require('rdflib');
|
|
18
10
|
var ns = UI.ns;
|
|
19
|
-
|
|
11
|
+
module.exports = {
|
|
20
12
|
icon: UI.icons.iconBase + 'noun_1619.svg',
|
|
21
13
|
name: 'playlistSlot',
|
|
22
14
|
audience: [ns.solid('PowerUser')],
|
|
@@ -122,6 +114,7 @@ var _default = {
|
|
|
122
114
|
div.appendChild(tr);
|
|
123
115
|
return div;
|
|
124
116
|
}
|
|
125
|
-
};
|
|
126
|
-
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
// ends
|
|
127
120
|
//# sourceMappingURL=playlistPane.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playlistPane.js","names":["ns","
|
|
1
|
+
{"version":3,"file":"playlistPane.js","names":["UI","require","$rdf","ns","module","exports","icon","icons","iconBase","name","audience","solid","label","subject","context","kb","session","store","anyStatementMatching","rdf","sym","render","myDocument","dom","isVideo","src","_index","html5","youtube","match","vimeo","dailymotion","vk","link","contents","uri","a","createElement","setAttribute","appendChild","addEventListener","widgets","openHrefInOutlineMode","text","str","createTextNode","obj","any","index","video","div","img","replace","value","descDiv","sl","statementsMatching","slots","i","length","push","parseInt","object","pIndex","indexOf","nIndex","prev","split","indexDiv","innerHTML","next","tr"],"sources":["../../src/playlist/playlistPane.js"],"sourcesContent":["/* Playlist Pane\n **\n ** This pane allows playlists and playlists slots to be viewed\n ** seeAlso: http://smiy.sourceforge.net/pbo/spec/playbackontology.html\n */\nconst UI = require('solid-ui')\nconst $rdf = require('rdflib')\nconst ns = UI.ns\n\nmodule.exports = {\n icon: UI.icons.iconBase + 'noun_1619.svg',\n\n name: 'playlistSlot',\n\n audience: [ns.solid('PowerUser')],\n\n label: function (subject, context) {\n const kb = context.session.store\n\n if (\n !kb.anyStatementMatching(\n subject,\n UI.ns.rdf('type'),\n kb.sym('http://purl.org/ontology/pbo/core#PlaylistSlot')\n )\n ) {\n return null\n }\n\n return 'playlist slot'\n },\n\n render: function (subject, context) {\n const myDocument = context.dom\n function isVideo (src, _index) {\n if (!src) {\n return {\n html5: true\n }\n }\n\n const youtube = src.match(\n /\\/\\/(?:www\\.)?youtu(?:\\.be|be\\.com)\\/(?:watch\\?v=|embed\\/)?([a-z0-9\\-_%]+)/i\n )\n const vimeo = src.match(/\\/\\/(?:www\\.)?vimeo.com\\/([0-9a-z\\-_]+)/i)\n const dailymotion = src.match(/\\/\\/(?:www\\.)?dai.ly\\/([0-9a-z\\-_]+)/i)\n const vk = src.match(\n /\\/\\/(?:www\\.)?(?:vk\\.com|vkontakte\\.ru)\\/(?:video_ext\\.php\\?)(.*)/i\n )\n\n if (youtube) {\n return {\n youtube: youtube\n }\n } else if (vimeo) {\n return {\n vimeo: vimeo\n }\n } else if (dailymotion) {\n return {\n dailymotion: dailymotion\n }\n } else if (vk) {\n return {\n vk: vk\n }\n }\n }\n\n const link = function (contents, uri) {\n if (!uri) return contents\n const a = myDocument.createElement('a')\n a.setAttribute('href', uri)\n a.appendChild(contents)\n a.addEventListener('click', UI.widgets.openHrefInOutlineMode, true)\n return a\n }\n\n const text = function (str) {\n return myDocument.createTextNode(str)\n }\n\n const kb = context.session.store\n const obj = kb.any(\n subject,\n $rdf.sym('http://purl.org/ontology/pbo/core#playlist_item')\n )\n let index = kb.any(\n subject,\n $rdf.sym('http://purl.org/ontology/olo/core#index')\n )\n\n let uri = obj.uri\n const video = isVideo(uri)\n\n const div = myDocument.createElement('div')\n let img\n if (video && video.youtube) {\n uri = uri.replace('watch?v=', 'embed/')\n div.setAttribute('class', 'imageView')\n img = myDocument.createElement('IFRAME')\n img.setAttribute('src', uri)\n img.setAttribute('width', 560)\n img.setAttribute('height', 315)\n img.setAttribute('frameborder', 0)\n img.setAttribute('style', 'max-width: 850px; max-height: 100%;')\n img.setAttribute('allowfullscreen', 'true')\n } else {\n div.setAttribute('class', 'imageView')\n img = myDocument.createElement('IMG')\n img.setAttribute('src', obj.value)\n img.setAttribute('width', 560)\n img.setAttribute('height', 315)\n img.setAttribute('style', 'max-width: 560; max-height: 315;')\n }\n\n let descDiv\n if (index) {\n const sl = kb.statementsMatching(\n null,\n $rdf.sym('http://purl.org/ontology/olo/core#index')\n )\n const slots = []\n for (let i = 0; i < sl.length; i++) {\n if (sl[i]) {\n slots.push(parseInt(sl[i].object.value, 10))\n }\n }\n\n index = parseInt(index.value, 10)\n descDiv = myDocument.createElement('div')\n\n const pIndex =\n slots[(slots.indexOf(index) - 1 + slots.length) % slots.length]\n const nIndex =\n slots[(slots.indexOf(index) + 1 + slots.length) % slots.length]\n\n const prev = link(text('<<'), subject.uri.split('#')[0] + '#' + pIndex)\n\n descDiv.appendChild(prev)\n\n const indexDiv = myDocument.createElement('span')\n indexDiv.innerHTML = ' Playlist slot : ' + index + ' '\n\n descDiv.appendChild(indexDiv)\n\n const next = link(text('>>'), subject.uri.split('#')[0] + '#' + nIndex)\n descDiv.appendChild(next)\n }\n\n const tr = myDocument.createElement('TR') // why need tr?\n tr.appendChild(img)\n if (descDiv) {\n tr.appendChild(descDiv)\n }\n div.appendChild(tr)\n return div\n }\n}\n\n// ends\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA,IAAMA,EAAE,GAAGC,OAAO,CAAC,UAAU,CAAC;AAC9B,IAAMC,IAAI,GAAGD,OAAO,CAAC,QAAQ,CAAC;AAC9B,IAAME,EAAE,GAAGH,EAAE,CAACG,EAAE;AAEhBC,MAAM,CAACC,OAAO,GAAG;EACfC,IAAI,EAAEN,EAAE,CAACO,KAAK,CAACC,QAAQ,GAAG,eAAe;EAEzCC,IAAI,EAAE,cAAc;EAEpBC,QAAQ,EAAE,CAACP,EAAE,CAACQ,KAAK,CAAC,W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-
{"version":3,"file":"editProfile.view.d.ts","sourceRoot":"","sources":["../../src/profile/editProfile.view.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAQ9C,QAAA,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"editProfile.view.d.ts","sourceRoot":"","sources":["../../src/profile/editProfile.view.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAQ9C,QAAA,MAAM,eAAe,EAAE,cA2HtB,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -106,22 +106,6 @@ var editProfileView = {
|
|
|
106
106
|
predicate: _solidUi.ns.foaf('knows'),
|
|
107
107
|
noun: 'friend'
|
|
108
108
|
});
|
|
109
|
-
heading('Communities you participate in');
|
|
110
|
-
comment("These are organizations and projects (etc) whose stuff you share");
|
|
111
|
-
|
|
112
|
-
// TODO: would be useful to explain what it means to "drag organizations"
|
|
113
|
-
// what is it that is being dragged?
|
|
114
|
-
// is there a way to search for people (or things to drag) on this page?
|
|
115
|
-
// Also provide a way of using cut and paste
|
|
116
|
-
if (editableProfile) {
|
|
117
|
-
comment('Drag organizations onto the target below to add organizations.');
|
|
118
|
-
}
|
|
119
|
-
_solidUi.widgets.attachmentList(dom, me, main, {
|
|
120
|
-
doc: profile,
|
|
121
|
-
modify: !!editableProfile,
|
|
122
|
-
predicate: _solidUi.ns.solid('community'),
|
|
123
|
-
noun: 'community'
|
|
124
|
-
});
|
|
125
109
|
|
|
126
110
|
// heading('The style of your public profile') headings are in form now
|
|
127
111
|
renderProfileForm(main, me);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editProfile.view.js","names":["highlightColor","style","editProfileView","global","icon","icons","iconBase","name","label","render","subject","context","dom","store","session","complainIfBad","ok","mess","div","appendChild","widgets","errorMessageBlock","renderProfileForm","preferencesForm","sym","preferencesFormDoc","doc","holds","undefined","parse","profileFormText","uri","appendForm","editableProfile","createElement","setAttribute","table","main","bottom","statusArea","comment","str","p","textContent","heading","h","profileContext","me","login","ensureLoadedProfile","then","theContext","profile","updater","Error","any","ns","solid","editable","paneDiv","attachmentList","modify","predicate","foaf","noun","error"],"sources":["../../src/profile/editProfile.view.ts"],"sourcesContent":["/**\n * Profile Editing App Pane\n *\n * Unlike view panes, this is available any place whatever the real subject,\n * and allows the user to edit their own profile.\n *\n * Usage: paneRegistry.register('profile/profilePane')\n * or standalone script adding onto existing mashlib.\n */\n\nimport { PaneDefinition } from 'pane-registry'\nimport { NamedNode, parse, Store, sym } from 'rdflib'\nimport { icons, login, ns, style, widgets } from 'solid-ui'\nimport { paneDiv } from './profile.dom'\nimport profileFormText from './profileFormText.ttl'\n\nconst highlightColor = style.highlightColor || '#7C4DFF'\n\nconst editProfileView: PaneDefinition = {\n global: true,\n\n icon: icons.iconBase + 'noun_492246.svg',\n\n name: 'editProfile',\n\n label: () => null,\n\n render: function (subject, context) {\n const dom = context.dom\n const store = context.session.store as Store\n\n function complainIfBad (ok: Boolean, mess: any) {\n if (ok) return\n div.appendChild(widgets.errorMessageBlock(dom, mess, '#fee'))\n }\n\n function renderProfileForm (div: HTMLElement, subject: NamedNode) {\n const preferencesForm = sym('https://solidos.github.io/solid-panes/dashboard/profileStyle.ttl#this')\n const preferencesFormDoc = preferencesForm.doc()\n if (!store.holds(undefined, undefined, undefined, preferencesFormDoc)) {\n // If not loaded already\n parse(profileFormText, store, preferencesFormDoc.uri, 'text/turtle', () => null) // Load form directly\n }\n\n widgets.appendForm(\n dom,\n div,\n {},\n subject,\n preferencesForm,\n editableProfile,\n complainIfBad\n )\n } // renderProfileForm\n\n const div = dom.createElement('div')\n let editableProfile: NamedNode | null\n div.setAttribute('style', `border: 0.3em solid ${highlightColor}; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;`)\n\n const table = div.appendChild(dom.createElement('table'))\n // const top = table.appendChild(dom.createElement('tr'))\n const main = table.appendChild(dom.createElement('tr'))\n const bottom = table.appendChild(dom.createElement('tr'))\n const statusArea = bottom.appendChild(dom.createElement('div'))\n statusArea.setAttribute('style', 'padding: 0.7em;')\n\n function comment (str: string) {\n const p = main.appendChild(dom.createElement('p'))\n p.setAttribute('style', 'padding: 1em;')\n p.textContent = str\n return p\n }\n\n function heading (str: string) {\n const h = main.appendChild(dom.createElement('h3'))\n h.setAttribute('style', 'color:' + highlightColor + ';')\n h.textContent = str\n return h\n }\n\n const profileContext = {\n dom: dom,\n div: main,\n statusArea: statusArea,\n me: null\n }\n login.ensureLoadedProfile(profileContext)\n .then(theContext => {\n const me = theContext.me!\n\n heading('Edit your public profile')\n\n const profile = me.doc()\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n if (store.any(me, ns.solid('editableProfile'))) {\n editableProfile = store.any(me as any, ns.solid('editableProfile')) as NamedNode\n } else if (store.updater.editable(profile.uri, store)) {\n editableProfile = profile\n } else {\n statusArea.appendChild(widgets.errorMessageBlock(dom, `⚠️ Your profile ${profile} is not editable, so we cannot do much here.`, 'straw'))\n return\n }\n\n comment(`Everything you put here will be public.\n There will be other places to record private things.`)\n\n heading('Your contact information')\n\n main.appendChild(paneDiv(context, me, 'contact'))\n\n\n heading('People you know who have WebIDs')\n\n comment(`This is your public social network.\n Only put people here to whom you are happy to be publicly connected.\n (You can always keep private track of friends and family in your contacts.)`)\n\n // TODO: would be useful to explain what it means to \"drag people\"\n // what is it that is being dragged?\n // is there a way to search for people (or things to drag) on this page?\n if (editableProfile) {\n comment('Drag people onto the target below to add people.')\n }\n\n widgets.attachmentList(dom, me, main, {\n doc: profile,\n modify: !!editableProfile,\n predicate: ns.foaf('knows'),\n noun: 'friend'\n })\n\n heading('Communities you participate in')\n\n comment(`These are organizations and projects (etc) whose stuff you share`)\n\n // TODO: would be useful to explain what it means to \"drag organizations\"\n // what is it that is being dragged?\n // is there a way to search for people (or things to drag) on this page?\n // Also provide a way of using cut and paste\n if (editableProfile) {\n comment('Drag organizations onto the target below to add organizations.')\n }\n\n widgets.attachmentList(dom, me, main, {\n doc: profile,\n modify: !!editableProfile,\n predicate: ns.solid('community'),\n noun: 'community'\n })\n\n // heading('The style of your public profile') headings are in form now\n renderProfileForm(main, me)\n\n heading('Thank you for filling your profile.')\n }).catch(error => {\n statusArea.appendChild(widgets.errorMessageBlock(dom, error, '#fee'))\n })\n return div\n }\n}\n\nexport default editProfileView\n"],"mappings":";;;;;;AAWA;AACA;AACA;AAbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AAAA;AAgBA,IAAMA,cAAc,GAAGC,cAAK,CAACD,cAAc,IAAI,SAAS;AAExD,IAAME,eAA+B,GAAG;EACtCC,MAAM,EAAE,IAAI;EAEZC,IAAI,EAAEC,cAAK,CAACC,QAAQ,GAAG,iBAAiB;EAExCC,IAAI,EAAE,aAAa;EAEnBC,KAAK,EAAE;IAAA,OAAM,IAAI;EAAA;EAEjBC,MAAM,EAAE,gBAAUC,OAAO,EAAEC,OAAO,EAAE;IAClC,IAAMC,GAAG,GAAGD,OAAO,CAACC,GAAG;IACvB,IAAMC,KAAK,GAAGF,OAAO,CAACG,OAAO,CAACD,KAAc;IAE5C,SAASE,aAAa,CAAEC,EAAW,EAAEC,IAAS,EAAE;MAC9C,IAAID,EAAE,EAAE;MACRE,GAAG,CAACC,WAAW,CAACC,gBAAO,CAACC,iBAAiB,CAACT,GAAG,EAAEK,IAAI,EAAE,MAAM,CAAC,CAAC;IAC/D;IAEA,SAASK,iBAAiB,CAAEJ,GAAgB,EAAER,OAAkB,EAAE;MAChE,IAAMa,eAAe,GAAG,IAAAC,WAAG,EAAC,uEAAuE,CAAC;MACpG,IAAMC,kBAAkB,GAAGF,eAAe,CAACG,GAAG,EAAE;MAChD,IAAI,CAACb,KAAK,CAACc,KAAK,CAACC,SAAS,EAAEA,SAAS,EAAEA,SAAS,EAAEH,kBAAkB,CAAC,EAAE;QACrE;QACA,IAAAI,aAAK,EAACC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AAC,CAAC;MAGjDH,OAAO,CAAC,iCAAiC,CAAC;MAE1CJ,OAAO,0MAEsE;;MAE7E;MACA;MACA;MACA,IAAIP,eAAe,EAAE;QACnBO,OAAO,CAAC,kDAAkD,CAAC;MAC7D;MAEApB,gBAAO,CAACwC,cAAc,CAAChD,GAAG,EAAEmC,EAAE,EAAEV,IAAI,EAAE;QACpCX,GAAG,EAAE0B,OAAO;QACZS,MAAM,EAAE,CAAC,CAAC5B,eAAe;QACzB6B,SAAS,EAAEN,WAAE,CAACO,IAAI,CAAC,OAAO,CAAC;QAC3BC,IAAI,EAAE;MACR,CAAC,CAAC;MAEFpB,OAAO,CAAC,gCAAgC,CAAC;MAEzCJ,OAAO,oEAAoE;;MAE3E;MACA;MACA;MACA;MACA,IAAIP,eAAe,EAAE;QACnBO,OAAO,CAAC,gEAAgE,CAAC;MAC3E;MAEApB,gBAAO,CAACwC,cAAc,CAAChD,GAAG,EAAEmC,EAAE,EAAEV,IAAI,EAAE;QACpCX,GAAG,EAAE0B,OAAO;QACZS,MAAM,EAAE,CAAC,CAAC5B,eAAe;QACzB6B,SAAS,EAAEN,WAAE,CAACC,KAAK,CAAC,WAAW,CAAC;QAChCO,IAAI,EAAE;MACR,CAAC,CAAC;;MAEF;MACA1C,iBAAiB,CAACe,IAAI,EAAEU,EAAE,CAAC;MAE3BH,OAAO,CAAC,qCAAqC,CAAC;IAChD,CAAC,CAAC,SAAM,CAAC,UAAAqB,KAAK,EAAI;MAChB1B,UAAU,CAACpB,WAAW,CAACC,gBAAO,CAACC,iBAAiB,CAACT,GAAG,EAAEqD,KAAK,EAAE,MAAM,CAAC,CAAC;IACvE,CAAC,CAAC;IACJ,OAAO/C,GAAG;EACZ;AACF,CAAC;AAAA,eAEchB,eAAe;AAAA"}
|
|
1
|
+
{"version":3,"file":"editProfile.view.js","names":["highlightColor","style","editProfileView","global","icon","icons","iconBase","name","label","render","subject","context","dom","store","session","complainIfBad","ok","mess","div","appendChild","widgets","errorMessageBlock","renderProfileForm","preferencesForm","sym","preferencesFormDoc","doc","holds","undefined","parse","profileFormText","uri","appendForm","editableProfile","createElement","setAttribute","table","main","bottom","statusArea","comment","str","p","textContent","heading","h","profileContext","me","login","ensureLoadedProfile","then","theContext","profile","updater","Error","any","ns","solid","editable","paneDiv","attachmentList","modify","predicate","foaf","noun","error"],"sources":["../../src/profile/editProfile.view.ts"],"sourcesContent":["/**\n * Profile Editing App Pane\n *\n * Unlike view panes, this is available any place whatever the real subject,\n * and allows the user to edit their own profile.\n *\n * Usage: paneRegistry.register('profile/profilePane')\n * or standalone script adding onto existing mashlib.\n */\n\nimport { PaneDefinition } from 'pane-registry'\nimport { NamedNode, parse, Store, sym } from 'rdflib'\nimport { icons, login, ns, style, widgets } from 'solid-ui'\nimport { paneDiv } from './profile.dom'\nimport profileFormText from './profileFormText.ttl'\n\nconst highlightColor = style.highlightColor || '#7C4DFF'\n\nconst editProfileView: PaneDefinition = {\n global: true,\n\n icon: icons.iconBase + 'noun_492246.svg',\n\n name: 'editProfile',\n\n label: () => null,\n\n render: function (subject, context) {\n const dom = context.dom\n const store = context.session.store as Store\n\n function complainIfBad (ok: Boolean, mess: any) {\n if (ok) return\n div.appendChild(widgets.errorMessageBlock(dom, mess, '#fee'))\n }\n\n function renderProfileForm (div: HTMLElement, subject: NamedNode) {\n const preferencesForm = sym('https://solidos.github.io/solid-panes/dashboard/profileStyle.ttl#this')\n const preferencesFormDoc = preferencesForm.doc()\n if (!store.holds(undefined, undefined, undefined, preferencesFormDoc)) {\n // If not loaded already\n parse(profileFormText, store, preferencesFormDoc.uri, 'text/turtle', () => null) // Load form directly\n }\n\n widgets.appendForm(\n dom,\n div,\n {},\n subject,\n preferencesForm,\n editableProfile,\n complainIfBad\n )\n } // renderProfileForm\n\n const div = dom.createElement('div')\n let editableProfile: NamedNode | null\n div.setAttribute('style', `border: 0.3em solid ${highlightColor}; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;`)\n\n const table = div.appendChild(dom.createElement('table'))\n // const top = table.appendChild(dom.createElement('tr'))\n const main = table.appendChild(dom.createElement('tr'))\n const bottom = table.appendChild(dom.createElement('tr'))\n const statusArea = bottom.appendChild(dom.createElement('div'))\n statusArea.setAttribute('style', 'padding: 0.7em;')\n\n function comment (str: string) {\n const p = main.appendChild(dom.createElement('p'))\n p.setAttribute('style', 'padding: 1em;')\n p.textContent = str\n return p\n }\n\n function heading (str: string) {\n const h = main.appendChild(dom.createElement('h3'))\n h.setAttribute('style', 'color:' + highlightColor + ';')\n h.textContent = str\n return h\n }\n\n const profileContext = {\n dom: dom,\n div: main,\n statusArea: statusArea,\n me: null\n }\n login.ensureLoadedProfile(profileContext)\n .then(theContext => {\n const me = theContext.me!\n\n heading('Edit your public profile')\n\n const profile = me.doc()\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n if (store.any(me, ns.solid('editableProfile'))) {\n editableProfile = store.any(me as any, ns.solid('editableProfile')) as NamedNode\n } else if (store.updater.editable(profile.uri, store)) {\n editableProfile = profile\n } else {\n statusArea.appendChild(widgets.errorMessageBlock(dom, `⚠️ Your profile ${profile} is not editable, so we cannot do much here.`, 'straw'))\n return\n }\n\n comment(`Everything you put here will be public.\n There will be other places to record private things.`)\n\n heading('Your contact information')\n\n main.appendChild(paneDiv(context, me, 'contact'))\n\n heading('People you know who have WebIDs')\n\n comment(`This is your public social network.\n Only put people here to whom you are happy to be publicly connected.\n (You can always keep private track of friends and family in your contacts.)`)\n\n // TODO: would be useful to explain what it means to \"drag people\"\n // what is it that is being dragged?\n // is there a way to search for people (or things to drag) on this page?\n if (editableProfile) {\n comment('Drag people onto the target below to add people.')\n }\n\n widgets.attachmentList(dom, me, main, {\n doc: profile,\n modify: !!editableProfile,\n predicate: ns.foaf('knows'),\n noun: 'friend'\n })\n\n // heading('The style of your public profile') headings are in form now\n renderProfileForm(main, me)\n\n heading('Thank you for filling your profile.')\n }).catch(error => {\n statusArea.appendChild(widgets.errorMessageBlock(dom, error, '#fee'))\n })\n return div\n }\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QACZS,MAAM,EAAE,CAAC,CAAC5B,eAAe;QACzB6B,SAAS,EAAEN,WAAE,CAACO,IAAI,CAAC,OAAO,CAAC;QAC3BC,IAAI,EAAE;MACR,CAAC,CAAC;;MAEF;MACA1C,iBAAiB,CAACe,IAAI,EAAEU,EAAE,CAAC;MAE3BH,OAAO,CAAC,qCAAqC,CAAC;IAChD,CAAC,CAAC,SAAM,CAAC,UAAAqB,KAAK,EAAI;MAChB1B,UAAU,CAACpB,WAAW,CAACC,gBAAO,CAACC,iBAAiB,CAACT,GAAG,EAAEqD,KAAK,EAAE,MAAM,CAAC,CAAC;IACvE,CAAC,CAAC;IACJ,OAAO/C,GAAG;EACZ;AACF,CAAC;AAAA,eAEchB,eAAe;AAAA"}
|
package/lib/registerPanes.js
CHANGED
|
@@ -1,115 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.registerPanes = registerPanes;
|
|
7
|
-
var _profilePane = _interopRequireDefault(require("profile-pane"));
|
|
8
|
-
var _editProfile = _interopRequireDefault(require("./profile/editProfile.view"));
|
|
9
|
-
var _trustedApplications = _interopRequireDefault(require("./trustedApplications/trustedApplications.view"));
|
|
10
|
-
var _dashboardPane = _interopRequireDefault(require("./dashboard/dashboardPane"));
|
|
11
|
-
var _basicPreferences = _interopRequireDefault(require("./dashboard/basicPreferences"));
|
|
12
|
-
var _issuePane = _interopRequireDefault(require("issue-pane"));
|
|
13
|
-
var _contactsPane = _interopRequireDefault(require("contacts-pane"));
|
|
14
|
-
var _activitystreamsPane = _interopRequireDefault(require("activitystreams-pane"));
|
|
15
|
-
var _padPane = _interopRequireDefault(require("./pad/padPane"));
|
|
16
|
-
var _pane = _interopRequireDefault(require("./transaction/pane.js"));
|
|
17
|
-
var _period = _interopRequireDefault(require("./transaction/period.js"));
|
|
18
|
-
var _meetingPane = _interopRequireDefault(require("meeting-pane"));
|
|
19
|
-
var _tabbedPane = _interopRequireDefault(require("./tabbed/tabbedPane"));
|
|
20
|
-
var _chatPane = require("chat-pane");
|
|
21
|
-
var _schedulePane = require("./schedule/schedulePane.js");
|
|
22
|
-
var _tripPane = _interopRequireDefault(require("./trip/tripPane.js"));
|
|
23
|
-
var _imagePane = require("./imagePane.js");
|
|
24
|
-
var _playlistPane = _interopRequireDefault(require("./playlist/playlistPane.js"));
|
|
25
|
-
var _videoPane = _interopRequireDefault(require("./video/videoPane.js"));
|
|
26
|
-
var _audioPane = _interopRequireDefault(require("./audio/audioPane.js"));
|
|
27
|
-
var _dokieliPane = _interopRequireDefault(require("./dokieli/dokieliPane.js"));
|
|
28
|
-
var _folderPane = _interopRequireDefault(require("folder-pane"));
|
|
29
|
-
var _classInstancePane = require("./classInstancePane.js");
|
|
30
|
-
var _slideshowPane = require("./slideshow/slideshowPane.js");
|
|
31
|
-
var _socialPane = require("./socialPane.js");
|
|
32
|
-
var _humanReadablePane = _interopRequireDefault(require("./humanReadablePane.js"));
|
|
33
|
-
var _dataContentPane = require("./dataContentPane.js");
|
|
34
|
-
var _sourcePane = _interopRequireDefault(require("source-pane"));
|
|
35
|
-
var _n3Pane = require("./n3Pane.js");
|
|
36
|
-
var _RDFXMLPane = require("./RDFXMLPane.js");
|
|
37
|
-
var _pane2 = require("./form/pane.js");
|
|
38
|
-
var _tableViewPane = require("./tableViewPane.js");
|
|
39
|
-
var _defaultPane = require("./defaultPane.js");
|
|
40
|
-
var _pane3 = _interopRequireDefault(require("./ui/pane.js"));
|
|
41
|
-
var _sharingPane = _interopRequireDefault(require("./sharing/sharingPane"));
|
|
42
|
-
var _internalPane = _interopRequireDefault(require("./internal/internalPane"));
|
|
43
|
-
var _homePane = _interopRequireDefault(require("./home/homePane"));
|
|
44
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
45
|
-
// import argumentPane from './argument/argumentPane.js'
|
|
46
|
-
|
|
47
|
-
// import publicationPane from './publication/publicationPane.js'
|
|
48
|
-
|
|
49
|
-
function registerPanes(register) {
|
|
3
|
+
module.exports = function registerPanes(register) {
|
|
50
4
|
/* Note that the earliest panes have priority. So the most specific ones are first.
|
|
51
5
|
**
|
|
52
6
|
*/
|
|
53
7
|
// Developer designed:
|
|
54
8
|
|
|
55
|
-
register(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
register(
|
|
59
|
-
register(
|
|
60
|
-
register(
|
|
61
|
-
register(
|
|
62
|
-
register(
|
|
63
|
-
register(
|
|
64
|
-
register(
|
|
65
|
-
// register(argumentPane) // A position in an argument tree
|
|
66
|
-
|
|
67
|
-
register(
|
|
68
|
-
register(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
register(
|
|
9
|
+
register(require('profile-pane')); // View someone's public profile - dominates all other panes.
|
|
10
|
+
|
|
11
|
+
register(require('./profile/editProfile.view')); // Edit my profile. App. 201900802
|
|
12
|
+
register(require('./trustedApplications/trustedApplications.view')); // must be registered before basicPreferences
|
|
13
|
+
register(require('./dashboard/dashboardPane'));
|
|
14
|
+
register(require('./dashboard/basicPreferences')); // 20190702
|
|
15
|
+
register(require('issue-pane'));
|
|
16
|
+
register(require('contacts-pane'));
|
|
17
|
+
register(require('activitystreams-pane'));
|
|
18
|
+
register(require('./pad/padPane'));
|
|
19
|
+
// register(require('./argument/argumentPane.js')) // A position in an argument tree
|
|
20
|
+
|
|
21
|
+
register(require('./transaction/pane.js'));
|
|
22
|
+
register(require('./transaction/period.js'));
|
|
23
|
+
var 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
|
+
register(require('./trip/tripPane.js'));
|
|
79
36
|
// register(require('./airPane.js'))
|
|
80
37
|
|
|
81
38
|
// Content views
|
|
82
39
|
|
|
83
|
-
register(
|
|
84
|
-
register(
|
|
40
|
+
register(require('./imagePane.js')); // Basic image view
|
|
41
|
+
register(require('./playlist/playlistPane.js')); // Basic playlist view
|
|
85
42
|
|
|
86
|
-
register(
|
|
87
|
-
register(
|
|
43
|
+
register(require('./video/videoPane.js')); // Video clip player
|
|
44
|
+
register(require('./audio/audioPane.js')); // Audio clip player
|
|
88
45
|
|
|
89
|
-
register(
|
|
90
|
-
register(
|
|
91
|
-
register(
|
|
46
|
+
register(require('./dokieli/dokieliPane.js')); // Should be above dataContentPane
|
|
47
|
+
register(require('folder-pane')); // Should be above dataContentPane
|
|
48
|
+
register(require('./classInstancePane.js')); // Should be above dataContentPane
|
|
92
49
|
// register(require('./dynamic/dynamicPanes.js')) // warp etc warp broken 2017/8
|
|
93
|
-
register(
|
|
94
|
-
register(
|
|
95
|
-
register(
|
|
50
|
+
register(require('./slideshow/slideshowPane.js'));
|
|
51
|
+
register(require('./socialPane.js'));
|
|
52
|
+
register(require('./humanReadablePane.js')); // A web page as a web page -- how to escape to tabr?
|
|
96
53
|
// register(require('markdown-pane').Pane) // replaced by markdown in humanReadablePane
|
|
97
54
|
|
|
98
|
-
register(
|
|
99
|
-
register(
|
|
100
|
-
register(
|
|
101
|
-
register(
|
|
55
|
+
register(require('./dataContentPane.js')); // Preferred for a data file
|
|
56
|
+
register(require('source-pane')); // edit source
|
|
57
|
+
register(require('./n3Pane.js'));
|
|
58
|
+
register(require('./RDFXMLPane.js'));
|
|
102
59
|
|
|
103
60
|
// User configured - data driven
|
|
104
|
-
register(
|
|
61
|
+
register(require('./form/pane.js'));
|
|
105
62
|
|
|
106
63
|
// Generic:
|
|
107
64
|
|
|
108
|
-
register(
|
|
65
|
+
register(require('./tableViewPane.js'));
|
|
109
66
|
|
|
110
67
|
// Fallback totally generic:
|
|
111
|
-
register(
|
|
112
|
-
register(
|
|
68
|
+
register(require('./defaultPane.js'));
|
|
69
|
+
register(require('./ui/pane.js'));
|
|
113
70
|
|
|
114
71
|
// register(require("categoryPane.js")) // Not useful enough
|
|
115
72
|
// register(require("pubsPane.js")) // not finished
|
|
@@ -130,12 +87,12 @@ function registerPanes(register) {
|
|
|
130
87
|
// register(require("photoImportPane.js"))
|
|
131
88
|
|
|
132
89
|
// The sharing pane is fairly generic and administrative 201
|
|
133
|
-
register(
|
|
90
|
+
register(require('./sharing/sharingPane'));
|
|
134
91
|
|
|
135
92
|
// The internals pane is always (almost?) the last as it is the least user-friendly
|
|
136
|
-
register(
|
|
137
|
-
register(
|
|
93
|
+
register(require('./internal/internalPane'));
|
|
94
|
+
register(require('./home/homePane'));
|
|
138
95
|
|
|
139
96
|
// ENDS
|
|
140
|
-
}
|
|
97
|
+
};
|
|
141
98
|
//# sourceMappingURL=registerPanes.js.map
|
package/lib/registerPanes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerPanes.js","names":["
|
|
1
|
+
{"version":3,"file":"registerPanes.js","names":["module","exports","registerPanes","register","require","chatPanes","longChatPane","shortChatPane"],"sources":["../src/registerPanes.js"],"sourcesContent":["module.exports = function registerPanes (register) {\n /* Note that the earliest panes have priority. So the most specific ones are first.\n **\n */\n // Developer designed:\n\n register(require('profile-pane')) // View someone's public profile - dominates all other panes.\n\n register(require('./profile/editProfile.view')) // Edit my profile. App. 201900802\n register(require('./trustedApplications/trustedApplications.view')) // must be registered before basicPreferences\n register(require('./dashboard/dashboardPane'))\n register(require('./dashboard/basicPreferences')) // 20190702\n register(require('issue-pane'))\n register(require('contacts-pane'))\n register(require('activitystreams-pane'))\n\n register(require('./pad/padPane'))\n // register(require('./argument/argumentPane.js')) // A position in an argument tree\n\n register(require('./transaction/pane.js'))\n register(require('./transaction/period.js'))\n\n const chatPanes = require('chat-pane')\n // FIXME: https://github.com/solidos/chat-pane/issues/40\n if (chatPanes.longChatPane) {\n register(chatPanes.longChatPane) // Long pane must have prio in case short pane tries to do a long pane\n register(chatPanes.shortChatPane) // was './chat/chatPane.js'\n } else {\n register(chatPanes)\n }\n // register(require('./publication/publicationPane.js'))\n register(require('meeting-pane'))\n register(require('./tabbed/tabbedPane'))\n register(require('./schedule/schedulePane.js'))\n\n register(require('./trip/tripPane.js'))\n // register(require('./airPane.js'))\n\n // Content views\n\n register(require('./imagePane.js')) // Basic image view\n register(require('./playlist/playlistPane.js')) // Basic playlist view\n\n register(require('./video/videoPane.js')) // Video clip player\n register(require('./audio/audioPane.js')) // Audio clip player\n\n register(require('./dokieli/dokieliPane.js')) // Should be above dataContentPane\n register(require('folder-pane')) // Should be above dataContentPane\n register(require('./classInstancePane.js')) // Should be above dataContentPane\n // register(require('./dynamic/dynamicPanes.js')) // warp etc warp broken 2017/8\n register(require('./slideshow/slideshowPane.js'))\n\n register(require('./socialPane.js'))\n\n register(require('./humanReadablePane.js')) // A web page as a web page -- how to escape to tabr?\n // register(require('markdown-pane').Pane) // replaced by markdown in humanReadablePane\n\n register(require('./dataContentPane.js')) // Preferred for a data file\n register(require('source-pane')) // edit source\n register(require('./n3Pane.js'))\n register(require('./RDFXMLPane.js'))\n\n // User configured - data driven\n register(require('./form/pane.js'))\n\n // Generic:\n\n register(require('./tableViewPane.js'))\n\n // Fallback totally generic:\n register(require('./defaultPane.js'))\n\n register(require('./ui/pane.js'))\n\n // register(require(\"categoryPane.js\")) // Not useful enough\n // register(require(\"pubsPane.js\")) // not finished\n\n // @@ jambo commented these things out to pare things down temporarily.\n // Note must use // not /* to comment out to make sure expander sees it\n // register(require(\"lawPane.js\"))\n\n // register(require('./microblogPane/microblogPane.js'))\n\n // register(require(\"./social/pane.js\")) // competitor to other social\n // register(require(\"./airPane.js\"))\n // register(require(\"./lawPane.js\"))\n // register(require(\"pushbackPane.js\"))\n // register(require(\"CVPane.js\"))\n // register(require(\"photoPane.js\"))\n // register(require(\"tagPane.js\"))\n // register(require(\"photoImportPane.js\"))\n\n // The sharing pane is fairly generic and administrative 201\n register(require('./sharing/sharingPane'))\n\n // The internals pane is always (almost?) the last as it is the least user-friendly\n register(require('./internal/internalPane'))\n\n register(require('./home/homePane'))\n\n // ENDS\n}\n"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAG,SAASC,aAAa,CAAEC,QAAQ,EAAE;EACjD;AACF;AACA;EACE;;EAEAA,QAAQ,CAACC,OAAO,CAAC,cAAc,CAAC,CAAC,EAAC;;EAElCD,QAAQ,CAACC,OAAO,CAAC,4BAA4B,CAAC,CAAC,EAAC;EAChDD,QAAQ,CAACC,OAAO,CAAC,gDAAgD,CAAC,CAAC,EAAC;EACpED,QAAQ,CAACC,OAAO,CAAC,2BAA2B,CAAC,CAAC;EAC9CD,QAAQ,CAACC,OAAO,CAAC,8BAA8B,CAAC,CAAC,EAAC;EAClDD,QAAQ,CAACC,OAAO,CAAC,YAAY,CAAC,CAAC;EAC/BD,QAAQ,CAACC,OAAO,CAAC,eAAe,CAAC,CAAC;EAClCD,QAAQ,CAACC,OAAO,CAAC,sBAAsB,CAAC,CAAC;EAEzCD,QAAQ,CAACC,OAAO,CAAC,eAAe,CAAC,CAAC;EAClC;;EAEAD,QAAQ,CAACC,OAAO,CAAC,uBAAuB,CAAC,CAAC;EAC1CD,QAAQ,CAACC,OAAO,CAAC,yBAAyB,CAAC,CAAC;EAE5C,IAAMC,SAAS,GAAGD,OAAO,CAAC,WAAW,CAAC;EACtC;EACA,IAAIC,SAAS,CAACC,YAAY,EAAE;IAC1BH,QAAQ,CAACE,SAAS,CAACC,YAAY,CAAC,EAAC;IACjCH,QAAQ,CAACE,SAAS,CAACE,aAAa,CAAC,EAAC;EACpC,CAAC,M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Q,CAACC,OAAO,CAAC,kBAAkB,CAAC,CAAC;EAErCD,QAAQ,CAACC,OAAO,CAAC,cAAc,CAAC,CAAC;;EAEjC;EACA;;EAEA;EACA;EACA;;EAEA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACAD,QAAQ,CAACC,OAAO,CAAC,uBAAuB,CAAC,CAAC;;EAE1C;EACAD,QAAQ,CAACC,OAAO,CAAC,yBAAyB,CAAC,CAAC;EAE5CD,QAAQ,CAACC,OAAO,CAAC,iBAAiB,CAAC,CAAC;;EAEpC;AACF,CAAC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _default = "\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n \"Schedule event (single form).\";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n \"Schedule an event (wizard)\";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents \"Schedule an event\" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n \"128\";\n ui:property\n cal:summary;\n ui:size\n \"40\".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n \"512\";\n ui:property\n cal:location;\n ui:size\n \"40\".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label \"How many days?\";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label \"Duration (mins)\";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# \"1048\";\n# ui:size\n# \"40\".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title \"Select possible days or times\"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents \"Time proposals\" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label \"date\".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label \"date and time\".\n\n ##################################\n\n <#form3> dc:title \"Select invited people\"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents \"Who to invite\" .\n\n# ENDS\n";
|
|
8
|
-
exports["default"] = _default;
|
|
3
|
+
module.exports = "\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n \"Schedule event (single form).\";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n \"Schedule an event (wizard)\";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents \"Schedule an event\" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n \"128\";\n ui:property\n cal:summary;\n ui:size\n \"40\".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n \"512\";\n ui:property\n cal:location;\n ui:size\n \"40\".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label \"How many days?\";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label \"Duration (mins)\";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# \"1048\";\n# ui:size\n# \"40\".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title \"Select possible days or times\"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents \"Time proposals\" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label \"date\".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label \"date and time\".\n\n ##################################\n\n <#form3> dc:title \"Select invited people\"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents \"Who to invite\" .\n\n# ENDS\n";
|
|
9
4
|
//# sourceMappingURL=formsForSchedule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formsForSchedule.js","names":[],"sources":["../../src/schedule/formsForSchedule.js"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"formsForSchedule.js","names":["module","exports"],"sources":["../../src/schedule/formsForSchedule.js"],"sourcesContent":["module.exports = `\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n \"Schedule event (single form).\";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n \"Schedule an event (wizard)\";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents \"Schedule an event\" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n \"128\";\n ui:property\n cal:summary;\n ui:size\n \"40\".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n \"512\";\n ui:property\n cal:location;\n ui:size\n \"40\".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label \"How many days?\";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label \"Duration (mins)\";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# \"1048\";\n# ui:size\n# \"40\".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title \"Select possible days or times\"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents \"Time proposals\" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label \"date\".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label \"date and time\".\n\n ##################################\n\n <#form3> dc:title \"Select invited people\"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents \"Who to invite\" .\n\n# ENDS\n`\n"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,m6GAoHb"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.schedulePane = void 0;
|
|
8
4
|
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
9
5
|
var _solidLogic = require("solid-logic");
|
|
10
|
-
var _formsForSchedule = _interopRequireDefault(require("./formsForSchedule.js"));
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
6
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
7
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
8
|
/* Scheduler Pane
|
|
@@ -19,9 +13,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
19
13
|
|
|
20
14
|
var $rdf = UI.rdf;
|
|
21
15
|
var ns = UI.ns;
|
|
16
|
+
|
|
22
17
|
// @@ Give other combos too-- see schedule ontology
|
|
23
18
|
var possibleAvailabilities = [ns.sched('No'), ns.sched('Maybe'), ns.sched('Yes')];
|
|
24
|
-
|
|
19
|
+
module.exports = {
|
|
25
20
|
icon: UI.icons.iconBase + 'noun_346777.svg',
|
|
26
21
|
// @@ better?
|
|
27
22
|
|
|
@@ -262,7 +257,8 @@ var schedulePane = {
|
|
|
262
257
|
var form1 = kb.sym(formsURI + '#form1');
|
|
263
258
|
var form2 = kb.sym(formsURI + '#form2');
|
|
264
259
|
var form3 = kb.sym(formsURI + '#form3');
|
|
265
|
-
|
|
260
|
+
var formText = require('./formsForSchedule.js');
|
|
261
|
+
$rdf.parse(formText, kb, formsURI, 'text/turtle'); // Load forms directly
|
|
266
262
|
|
|
267
263
|
var inputStyle = 'background-color: #eef; padding: 0.5em; border: .5em solid white; font-size: 100%'; // font-size: 120%
|
|
268
264
|
var buttonIconStyle = 'width: 1.8em; height: 1.8em;';
|
|
@@ -898,5 +894,4 @@ var schedulePane = {
|
|
|
898
894
|
} // render
|
|
899
895
|
}; // property list
|
|
900
896
|
// ends
|
|
901
|
-
exports.schedulePane = schedulePane;
|
|
902
897
|
//# sourceMappingURL=schedulePane.js.map
|