solid-panes 3.7.3-1bd42721 → 3.7.3-1ca893eb

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.
Files changed (50) hide show
  1. package/dist/dashboard/basicPreferences.js +121 -129
  2. package/dist/dashboard/basicPreferences.js.map +1 -1
  3. package/dist/dashboard/dashboardPane.js +60 -54
  4. package/dist/dashboard/dashboardPane.js.map +1 -1
  5. package/dist/dashboard/homepage.js +45 -54
  6. package/dist/dashboard/homepage.js.map +1 -1
  7. package/dist/home/homePane.d.ts.map +1 -1
  8. package/dist/home/homePane.js +60 -55
  9. package/dist/home/homePane.js.map +1 -1
  10. package/dist/index.js +86 -25
  11. package/dist/index.js.map +1 -1
  12. package/dist/internal/internalPane.js +168 -179
  13. package/dist/internal/internalPane.js.map +1 -1
  14. package/dist/mainPage/footer.js +13 -7
  15. package/dist/mainPage/footer.js.map +1 -1
  16. package/dist/mainPage/header.js +59 -58
  17. package/dist/mainPage/header.js.map +1 -1
  18. package/dist/mainPage/index.js +19 -24
  19. package/dist/mainPage/index.js.map +1 -1
  20. package/dist/outline/context.js +17 -11
  21. package/dist/outline/context.js.map +1 -1
  22. package/dist/outline/propertyViews.js +39 -28
  23. package/dist/outline/propertyViews.js.map +1 -1
  24. package/dist/outline/viewAsImage.js +13 -5
  25. package/dist/outline/viewAsImage.js.map +1 -1
  26. package/dist/outline/viewAsMbox.js +20 -11
  27. package/dist/outline/viewAsMbox.js.map +1 -1
  28. package/dist/pad/padPane.js +395 -404
  29. package/dist/pad/padPane.js.map +1 -1
  30. package/dist/schedule/schedulePane.js +3 -4
  31. package/dist/schedule/schedulePane.js.map +1 -1
  32. package/dist/sharing/sharingPane.js +36 -32
  33. package/dist/sharing/sharingPane.js.map +1 -1
  34. package/dist/tabbed/tabbedPane.js +54 -51
  35. package/dist/tabbed/tabbedPane.js.map +1 -1
  36. package/dist/trustedApplications/trustedApplications.dom.js +134 -146
  37. package/dist/trustedApplications/trustedApplications.dom.js.map +1 -1
  38. package/dist/trustedApplications/trustedApplications.utils.js +20 -20
  39. package/dist/trustedApplications/trustedApplications.utils.js.map +1 -1
  40. package/dist/trustedApplications/trustedApplications.view.js +51 -57
  41. package/dist/trustedApplications/trustedApplications.view.js.map +1 -1
  42. package/dist/versionInfo.js +35 -29
  43. package/dist/versionInfo.js.map +1 -1
  44. package/package.json +21 -21
  45. package/dist/schedule/formsForSchedule.js +0 -124
  46. package/dist/schedule/formsForSchedule.js.map +0 -1
  47. package/dist/types.d.ts +0 -30
  48. package/dist/types.d.ts.map +0 -1
  49. package/dist/types.js +0 -2
  50. package/dist/types.js.map +0 -1
@@ -1,195 +1,184 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _solidUi = require("solid-ui");
8
+ var _rdflib = require("rdflib");
1
9
  /* Internal Pane
2
10
  **
3
11
  ** This outline pane contains the properties which are
4
12
  ** internal to the user's interaction with the web, and are not normally displayed
5
13
  */
6
14
  /* global alert confirm */
7
- import { icons, ns, widgets } from 'solid-ui';
8
- import { literal, st, sym } from 'rdflib';
15
+
9
16
  const pane = {
10
- icon: icons.originalIconBase + 'tango/22-emblem-system.png',
11
- name: 'internal',
12
- label: function () {
13
- return 'under the hood'; // There is often a URI even of no statements
14
- },
15
- render: function (subject, context) {
16
- const dom = context.dom;
17
- const store = context.session.store;
18
- const canonizedSubject = store.canon(subject);
19
- const types = store.findTypeURIs(canonizedSubject);
20
- function filter(pred) {
21
- if (types['http://www.w3.org/2007/ont/link#ProtocolEvent'])
22
- return true; // display everything for them
23
- const view = context.session.paneRegistry.byName('internal');
24
- return (view &&
25
- view.predicates &&
26
- !!(typeof view.predicates[pred.uri] !== 'undefined'));
27
- }
28
- const div = dom.createElement('div');
29
- div.setAttribute('class', 'internalPane');
30
- div.setAttribute('style', 'background-color: #ddddff; padding: 0.5em; border-radius: 1em;');
31
- function deleteRecursive(kb, folder) {
32
- const fetcher = kb.fetcher;
33
- if (!fetcher) {
34
- console.error('No fetcher available');
35
- return;
36
- }
37
- return new Promise(function (resolve, reject) {
38
- fetcher.load(folder).then(function () {
39
- const promises = kb.each(folder, ns.ldp('contains')).map(file => {
40
- if (kb.holds(file, ns.rdf('type'), ns.ldp('BasicContainer'))) {
41
- return deleteRecursive(kb, file);
42
- }
43
- else {
44
- console.log('deleteRecursive leaf file: ' + file);
45
- return fetcher.webOperation('DELETE', file.uri);
46
- }
47
- });
48
- Promise.all(promises).then(() => {
49
- console.log('deleteRecursive empty folder: ' + folder);
50
- fetcher
51
- .webOperation('DELETE', folder.uri)
52
- .then(() => {
53
- console.log('Deleted Ok: ' + folder);
54
- resolve(undefined);
55
- })
56
- .catch((err) => {
57
- const str = 'Unable to delete ' + folder + ': ' + err;
58
- console.log(str);
59
- reject(new Error(str));
60
- });
61
- resolve(undefined);
62
- }, err => {
63
- alert(err);
64
- reject(err);
65
- });
66
- });
67
- });
68
- }
69
- const isDocument = subject.uri && !subject.uri.includes('#');
70
- if (isDocument) {
71
- const controls = div.appendChild(dom.createElement('table'));
72
- controls.style.width = '100%';
73
- controls.style.margin = '1em';
74
- const controlRow = controls.appendChild(dom.createElement('tr'));
75
- const deleteCell = controlRow.appendChild(dom.createElement('td'));
76
- const isFolder = (subject.uri && subject.uri.endsWith('/')) ||
77
- store.holds(subject, ns.rdf('type'), ns.ldp('Container'));
78
- const noun = isFolder ? 'folder' : 'file';
79
- if (!isProtectedUri(subject)) {
80
- console.log(subject);
81
- const deleteButton = widgets.deleteButtonWithCheck(dom, deleteCell, noun, function () {
82
- if (!confirm(`Are you sure you want to delete ${subject}? This cannot be undone.`)) {
83
- return;
84
- }
85
- // @@ TODO Remove casing of store.fetcher
86
- if (!store.fetcher) {
87
- throw new Error('Store has no fetcher');
88
- }
89
- const promise = isFolder
90
- ? (deleteRecursive(store, subject) || Promise.resolve())
91
- : store.fetcher.webOperation('DELETE', subject.uri) || Promise.resolve();
92
- promise
93
- .then(() => {
94
- const str = 'Deleted: ' + subject;
95
- console.log(str);
96
- })
97
- .catch((err) => {
98
- const str = 'Unable to delete ' + subject + ': ' + err;
99
- console.log(str);
100
- alert(str);
101
- });
102
- });
103
- deleteButton.style = 'height: 2em;';
104
- deleteButton.class = ''; // Remove hover hide
105
- deleteCell.appendChild(deleteButton);
17
+ icon: _solidUi.icons.originalIconBase + 'tango/22-emblem-system.png',
18
+ name: 'internal',
19
+ label: function () {
20
+ return 'under the hood'; // There is often a URI even of no statements
21
+ },
22
+ render: function (subject, context) {
23
+ const dom = context.dom;
24
+ const store = context.session.store;
25
+ const canonizedSubject = store.canon(subject);
26
+ const types = store.findTypeURIs(canonizedSubject);
27
+ function filter(pred) {
28
+ if (types['http://www.w3.org/2007/ont/link#ProtocolEvent']) return true; // display everything for them
29
+ const view = context.session.paneRegistry.byName('internal');
30
+ return view && view.predicates && !!(typeof view.predicates[pred.uri] !== 'undefined');
31
+ }
32
+ const div = dom.createElement('div');
33
+ div.setAttribute('class', 'internalPane');
34
+ div.setAttribute('style', 'background-color: #ddddff; padding: 0.5em; border-radius: 1em;');
35
+ function deleteRecursive(kb, folder) {
36
+ const fetcher = kb.fetcher;
37
+ if (!fetcher) {
38
+ console.error('No fetcher available');
39
+ return;
40
+ }
41
+ return new Promise(function (resolve, reject) {
42
+ fetcher.load(folder).then(function () {
43
+ const promises = kb.each(folder, _solidUi.ns.ldp('contains')).map(file => {
44
+ if (kb.holds(file, _solidUi.ns.rdf('type'), _solidUi.ns.ldp('BasicContainer'))) {
45
+ return deleteRecursive(kb, file);
46
+ } else {
47
+ console.log('deleteRecursive leaf file: ' + file);
48
+ return fetcher.webOperation('DELETE', file.uri);
106
49
  }
107
- const refreshCell = controlRow.appendChild(dom.createElement('td'));
108
- const refreshButton = widgets.button(dom, icons.iconBase + 'noun_479395.svg', 'refresh');
109
- refreshCell.appendChild(refreshButton);
110
- refreshButton.addEventListener('click', () => {
111
- if (!store.fetcher) {
112
- throw new Error('Store has no fetcher');
113
- }
114
- store.fetcher.refresh(subject, function (ok, errm) {
115
- let str;
116
- if (ok) {
117
- str = 'Refreshed OK: ' + subject;
118
- }
119
- else {
120
- str = 'Error refreshing: ' + subject + ': ' + errm;
121
- }
122
- console.log(str);
123
- alert(str);
124
- });
50
+ });
51
+ Promise.all(promises).then(() => {
52
+ console.log('deleteRecursive empty folder: ' + folder);
53
+ fetcher.webOperation('DELETE', folder.uri).then(() => {
54
+ console.log('Deleted Ok: ' + folder);
55
+ resolve(undefined);
56
+ }).catch(err => {
57
+ const str = 'Unable to delete ' + folder + ': ' + err;
58
+ console.log(str);
59
+ reject(new Error(str));
125
60
  });
126
- }
127
- let plist = store.statementsMatching(subject);
128
- let docURI = '';
129
- if (!store.fetcher) {
61
+ resolve(undefined);
62
+ }, err => {
63
+ alert(err);
64
+ reject(err);
65
+ });
66
+ });
67
+ });
68
+ }
69
+ const isDocument = subject.uri && !subject.uri.includes('#');
70
+ if (isDocument) {
71
+ const controls = div.appendChild(dom.createElement('table'));
72
+ controls.style.width = '100%';
73
+ controls.style.margin = '1em';
74
+ const controlRow = controls.appendChild(dom.createElement('tr'));
75
+ const deleteCell = controlRow.appendChild(dom.createElement('td'));
76
+ const isFolder = subject.uri && subject.uri.endsWith('/') || store.holds(subject, _solidUi.ns.rdf('type'), _solidUi.ns.ldp('Container'));
77
+ const noun = isFolder ? 'folder' : 'file';
78
+ if (!isProtectedUri(subject)) {
79
+ console.log(subject);
80
+ const deleteButton = _solidUi.widgets.deleteButtonWithCheck(dom, deleteCell, noun, function () {
81
+ if (!confirm(`Are you sure you want to delete ${subject}? This cannot be undone.`)) {
82
+ return;
83
+ }
84
+ // @@ TODO Remove casing of store.fetcher
85
+ if (!store.fetcher) {
130
86
  throw new Error('Store has no fetcher');
87
+ }
88
+ const promise = isFolder ? deleteRecursive(store, subject) || Promise.resolve() : store.fetcher.webOperation('DELETE', subject.uri) || Promise.resolve();
89
+ promise.then(() => {
90
+ const str = 'Deleted: ' + subject;
91
+ console.log(str);
92
+ }).catch(err => {
93
+ const str = 'Unable to delete ' + subject + ': ' + err;
94
+ console.log(str);
95
+ alert(str);
96
+ });
97
+ });
98
+ deleteButton.style = 'height: 2em;';
99
+ deleteButton.class = ''; // Remove hover hide
100
+ deleteCell.appendChild(deleteButton);
101
+ }
102
+ const refreshCell = controlRow.appendChild(dom.createElement('td'));
103
+ const refreshButton = _solidUi.widgets.button(dom, _solidUi.icons.iconBase + 'noun_479395.svg', 'refresh');
104
+ refreshCell.appendChild(refreshButton);
105
+ refreshButton.addEventListener('click', () => {
106
+ if (!store.fetcher) {
107
+ throw new Error('Store has no fetcher');
131
108
  }
132
- if (subject.uri) {
133
- plist.push(st(subject, sym('http://www.w3.org/2007/ont/link#uri'), subject.uri, // @@ TODO Remove casting
134
- store.fetcher.appNode));
135
- if (subject.uri.indexOf('#') >= 0) {
136
- docURI = subject.uri.split('#')[0];
137
- plist.push(st(subject, sym('http://www.w3.org/2007/ont/link#documentURI'), subject.uri.split('#')[0], // @@ TODO Remove casting
138
- store.fetcher.appNode));
139
- plist.push(st(subject, sym('http://www.w3.org/2007/ont/link#document'), sym(subject.uri.split('#')[0]), store.fetcher.appNode));
140
- }
141
- else {
142
- docURI = subject.uri;
143
- }
144
- }
145
- if (docURI) {
146
- if (!store.updater) {
147
- throw new Error('Store has no updater');
148
- }
149
- const ed = store.updater.editable(docURI);
150
- if (ed) {
151
- plist.push(st(subject, sym('http://www.w3.org/ns/rww#editable'), literal(ed.toString()), store.fetcher.appNode));
152
- }
153
- }
154
- // @@ TODO get a proper type
155
- const outliner = context.getOutliner(dom);
156
- outliner.appendPropertyTRs(div, plist, false, filter);
157
- plist = store.statementsMatching(undefined, undefined, subject);
158
- outliner.appendPropertyTRs(div, plist, true, filter);
159
- return div;
160
- },
161
- predicates: {
162
- // Predicates used for inner workings. Under the hood
163
- 'http://www.w3.org/2007/ont/link#request': 1,
164
- 'http://www.w3.org/2007/ont/link#requestedBy': 1,
165
- 'http://www.w3.org/2007/ont/link#source': 1,
166
- 'http://www.w3.org/2007/ont/link#session': 2, // 2= test neg but display
167
- 'http://www.w3.org/2007/ont/link#uri': 1,
168
- 'http://www.w3.org/2007/ont/link#documentURI': 1,
169
- 'http://www.w3.org/2007/ont/link#document': 1,
170
- 'http://www.w3.org/2007/ont/link#all': 1, // From userinput.js
171
- 'http://www.w3.org/2007/ont/link#Document': 1,
172
- 'http://www.w3.org/ns/rww#editable': 1,
173
- 'http://www.w3.org/2000/01/rdf-schema#seeAlso': 1,
174
- 'http://www.w3.org/2002/07/owl#': 1
175
- },
176
- classes: {
177
- // Things which are inherently already undercover
178
- 'http://www.w3.org/2007/ont/link#ProtocolEvent': 1
109
+ store.fetcher.refresh(subject, function (ok, errm) {
110
+ let str;
111
+ if (ok) {
112
+ str = 'Refreshed OK: ' + subject;
113
+ } else {
114
+ str = 'Error refreshing: ' + subject + ': ' + errm;
115
+ }
116
+ console.log(str);
117
+ alert(str);
118
+ });
119
+ });
120
+ }
121
+ let plist = store.statementsMatching(subject);
122
+ let docURI = '';
123
+ if (!store.fetcher) {
124
+ throw new Error('Store has no fetcher');
125
+ }
126
+ if (subject.uri) {
127
+ plist.push((0, _rdflib.st)(subject, (0, _rdflib.sym)('http://www.w3.org/2007/ont/link#uri'), subject.uri,
128
+ // @@ TODO Remove casting
129
+ store.fetcher.appNode));
130
+ if (subject.uri.indexOf('#') >= 0) {
131
+ docURI = subject.uri.split('#')[0];
132
+ plist.push((0, _rdflib.st)(subject, (0, _rdflib.sym)('http://www.w3.org/2007/ont/link#documentURI'), subject.uri.split('#')[0],
133
+ // @@ TODO Remove casting
134
+ store.fetcher.appNode));
135
+ plist.push((0, _rdflib.st)(subject, (0, _rdflib.sym)('http://www.w3.org/2007/ont/link#document'), (0, _rdflib.sym)(subject.uri.split('#')[0]), store.fetcher.appNode));
136
+ } else {
137
+ docURI = subject.uri;
138
+ }
139
+ }
140
+ if (docURI) {
141
+ if (!store.updater) {
142
+ throw new Error('Store has no updater');
143
+ }
144
+ const ed = store.updater.editable(docURI);
145
+ if (ed) {
146
+ plist.push((0, _rdflib.st)(subject, (0, _rdflib.sym)('http://www.w3.org/ns/rww#editable'), (0, _rdflib.literal)(ed.toString()), store.fetcher.appNode));
147
+ }
179
148
  }
149
+ // @@ TODO get a proper type
150
+ const outliner = context.getOutliner(dom);
151
+ outliner.appendPropertyTRs(div, plist, false, filter);
152
+ plist = store.statementsMatching(undefined, undefined, subject);
153
+ outliner.appendPropertyTRs(div, plist, true, filter);
154
+ return div;
155
+ },
156
+ predicates: {
157
+ // Predicates used for inner workings. Under the hood
158
+ 'http://www.w3.org/2007/ont/link#request': 1,
159
+ 'http://www.w3.org/2007/ont/link#requestedBy': 1,
160
+ 'http://www.w3.org/2007/ont/link#source': 1,
161
+ 'http://www.w3.org/2007/ont/link#session': 2,
162
+ // 2= test neg but display
163
+ 'http://www.w3.org/2007/ont/link#uri': 1,
164
+ 'http://www.w3.org/2007/ont/link#documentURI': 1,
165
+ 'http://www.w3.org/2007/ont/link#document': 1,
166
+ 'http://www.w3.org/2007/ont/link#all': 1,
167
+ // From userinput.js
168
+ 'http://www.w3.org/2007/ont/link#Document': 1,
169
+ 'http://www.w3.org/ns/rww#editable': 1,
170
+ 'http://www.w3.org/2000/01/rdf-schema#seeAlso': 1,
171
+ 'http://www.w3.org/2002/07/owl#': 1
172
+ },
173
+ classes: {
174
+ // Things which are inherently already undercover
175
+ 'http://www.w3.org/2007/ont/link#ProtocolEvent': 1
176
+ }
180
177
  };
181
178
  function isProtectedUri(subject) {
182
- // TODO: Could make the code below smarter by removing some of the redundancy by creating a recursive function, but did not bother now
183
- const siteUri = subject.site().uri;
184
- return (subject.uri === siteUri ||
185
- subject.uri === siteUri + 'profile/' ||
186
- subject.uri === siteUri + 'profile/card' ||
187
- subject.uri === siteUri + 'settings/' ||
188
- subject.uri === siteUri + 'settings/prefs.ttl' ||
189
- subject.uri === siteUri + 'settings/privateTypeIndex.ttl' ||
190
- subject.uri === siteUri + 'settings/publicTypeIndex.ttl' ||
191
- subject.uri === siteUri + 'settings/serverSide.ttl');
179
+ // TODO: Could make the code below smarter by removing some of the redundancy by creating a recursive function, but did not bother now
180
+ const siteUri = subject.site().uri;
181
+ return subject.uri === siteUri || subject.uri === siteUri + 'profile/' || subject.uri === siteUri + 'profile/card' || subject.uri === siteUri + 'settings/' || subject.uri === siteUri + 'settings/prefs.ttl' || subject.uri === siteUri + 'settings/privateTypeIndex.ttl' || subject.uri === siteUri + 'settings/publicTypeIndex.ttl' || subject.uri === siteUri + 'settings/serverSide.ttl';
192
182
  }
193
- export default pane;
194
- // ends
183
+ var _default = exports.default = pane; // ends
195
184
  //# sourceMappingURL=internalPane.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internalPane.js","sourceRoot":"","sources":["../../src/internal/internalPane.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,0BAA0B;AAE1B,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAA6B,OAAO,EAAa,EAAE,EAAE,GAAG,EAAmB,MAAM,QAAQ,CAAA;AAGhG,MAAM,IAAI,GAAmB;IAC3B,IAAI,EAAE,KAAK,CAAC,gBAAgB,GAAG,4BAA4B;IAE3D,IAAI,EAAE,UAAU;IAEhB,KAAK,EAAE;QACL,OAAO,gBAAgB,CAAA,CAAC,6CAA6C;IACvE,CAAC;IAED,MAAM,EAAE,UAAU,OAAO,EAAE,OAAO;QAChC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;QACvB,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,KAAc,CAAA;QAC5C,MAAM,gBAAgB,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAqC,CAAA;QACjF,MAAM,KAAK,GAAG,KAAK,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAA;QAElD,SAAS,MAAM,CAAE,IAAe;YAC9B,IAAI,KAAK,CAAC,+CAA+C,CAA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,qCAAqC,EAAE,CAAC,EAAE,oBAAoB;QAC9D,0CAA0C,EAAE,CAAC;QAC7C,mCAAmC,EAAE,CAAC;QACtC,8CAA8C,EAAE,CAAC;QACjD,gCAAgC,EAAE,CAAC;KACpC;IAED,OAAO,EAAE;QACP,iDAAiD;QACjD,+CAA+C,EAAE,CAAC;KACnD;CACF,CAAA;AAED,SAAS,cAAc,CAAE,OAAkB;IACzC,sIAAsI;IACtI,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,CAAA;IAClC,OAAO,CACL,OAAO,CAAC,GAAG,KAAK,OAAO;QACvB,OAAO,CAAC,GAAG,KAAK,OAAO,GAAG,UAAU;QACpC,OAAO,CAAC,GAAG,KAAK,OAAO,GAAG,cAAc;QACxC,OAAO,CAAC,GAAG,KAAK,OAAO,GAAG,WAAW;QACrC,OAAO,CAAC,GAAG,KAAK,OAAO,GAAG,oBAAoB;QAC9C,OAAO,CAAC,GAAG,KAAK,OAAO,GAAG,+BAA+B;QACzD,OAAO,CAAC,GAAG,KAAK,OAAO,GAAG,8BAA8B;QACxD,OAAO,CAAC,GAAG,KAAK,OAAO,GAAG,yBAAyB,CACpD,CAAA;AACH,CAAC;AAED,eAAe,IAAI,CAAA;AAEnB,OAAO"}
1
+ {"version":3,"file":"internalPane.js","names":["_solidUi","require","_rdflib","pane","icon","icons","originalIconBase","name","label","render","subject","context","dom","store","session","canonizedSubject","canon","types","findTypeURIs","filter","pred","view","paneRegistry","byName","predicates","uri","div","createElement","setAttribute","deleteRecursive","kb","folder","fetcher","console","error","Promise","resolve","reject","load","then","promises","each","ns","ldp","map","file","holds","rdf","log","webOperation","all","undefined","catch","err","str","Error","alert","isDocument","includes","controls","appendChild","style","width","margin","controlRow","deleteCell","isFolder","endsWith","noun","isProtectedUri","deleteButton","widgets","deleteButtonWithCheck","confirm","promise","class","refreshCell","refreshButton","button","iconBase","addEventListener","refresh","ok","errm","plist","statementsMatching","docURI","push","st","sym","appNode","indexOf","split","updater","ed","editable","literal","toString","outliner","getOutliner","appendPropertyTRs","classes","siteUri","site","_default","exports","default"],"sources":["../../src/internal/internalPane.ts"],"sourcesContent":["/* Internal Pane\n **\n ** This outline pane contains the properties which are\n ** internal to the user's interaction with the web, and are not normally displayed\n */\n/* global alert confirm */\n\nimport { icons, ns, widgets } from 'solid-ui'\nimport { BlankNode, IndexedFormula, literal, NamedNode, st, sym, Variable, Store } from 'rdflib'\nimport { PaneDefinition } from 'pane-registry'\n\nconst pane: PaneDefinition = {\n icon: icons.originalIconBase + 'tango/22-emblem-system.png',\n\n name: 'internal',\n\n label: function () {\n return 'under the hood' // There is often a URI even of no statements\n },\n\n render: function (subject, context) {\n const dom = context.dom\n const store = context.session.store as Store\n const canonizedSubject = store.canon(subject) as BlankNode | NamedNode | Variable\n const types = store.findTypeURIs(canonizedSubject)\n\n function filter (pred: NamedNode) {\n if (types['http://www.w3.org/2007/ont/link#ProtocolEvent']) return true // display everything for them\n const view = context.session.paneRegistry.byName('internal')\n return (\n view &&\n view.predicates &&\n !!(typeof view.predicates[pred.uri] !== 'undefined')\n )\n }\n\n const div = dom.createElement('div')\n div.setAttribute('class', 'internalPane')\n div.setAttribute(\n 'style',\n 'background-color: #ddddff; padding: 0.5em; border-radius: 1em;'\n )\n\n function deleteRecursive (kb: IndexedFormula, folder: NamedNode) {\n const fetcher = (kb as any).fetcher\n if (!fetcher) {\n console.error('No fetcher available')\n return\n }\n return new Promise(function (resolve, reject) {\n fetcher.load(folder).then(function () {\n const promises = kb.each(folder, ns.ldp('contains')).map(file => {\n if (kb.holds(file, ns.rdf('type'), ns.ldp('BasicContainer'))) {\n return deleteRecursive(kb, file as NamedNode)\n } else {\n console.log('deleteRecursive leaf file: ' + file)\n return fetcher.webOperation('DELETE', (file as NamedNode).uri)\n }\n })\n Promise.all(promises).then(\n () => {\n console.log('deleteRecursive empty folder: ' + folder)\n fetcher\n .webOperation('DELETE', folder.uri)\n .then(() => {\n console.log('Deleted Ok: ' + folder)\n resolve(undefined)\n })\n .catch((err: string) => {\n const str = 'Unable to delete ' + folder + ': ' + err\n console.log(str)\n reject(new Error(str))\n })\n resolve(undefined)\n },\n err => {\n alert(err)\n reject(err)\n }\n )\n })\n })\n }\n\n const isDocument = subject.uri && !subject.uri.includes('#')\n if (isDocument) {\n const controls = div.appendChild(dom.createElement('table'))\n controls.style.width = '100%'\n controls.style.margin = '1em'\n const controlRow = controls.appendChild(dom.createElement('tr'))\n\n const deleteCell = controlRow.appendChild(dom.createElement('td'))\n const isFolder =\n (subject.uri && subject.uri.endsWith('/')) ||\n store.holds(subject, ns.rdf('type'), ns.ldp('Container'))\n const noun = isFolder ? 'folder' : 'file'\n if (!isProtectedUri(subject)) {\n console.log(subject)\n const deleteButton = widgets.deleteButtonWithCheck(\n dom,\n deleteCell,\n noun,\n function () {\n if (\n !confirm(\n `Are you sure you want to delete ${subject}? This cannot be undone.`\n )\n ) {\n return\n }\n // @@ TODO Remove casing of store.fetcher\n if (!store.fetcher) {\n throw new Error('Store has no fetcher')\n }\n const promise = isFolder\n ? (deleteRecursive(store, subject) || Promise.resolve())\n : store.fetcher.webOperation('DELETE', subject.uri) || Promise.resolve()\n promise\n .then(() => {\n const str = 'Deleted: ' + subject\n console.log(str)\n })\n .catch((err: any) => {\n const str = 'Unable to delete ' + subject + ': ' + err\n console.log(str)\n alert(str)\n })\n }\n )\n deleteButton.style = 'height: 2em;'\n deleteButton.class = '' // Remove hover hide\n deleteCell.appendChild(deleteButton)\n }\n\n const refreshCell = controlRow.appendChild(dom.createElement('td'))\n const refreshButton = widgets.button(\n dom,\n icons.iconBase + 'noun_479395.svg',\n 'refresh'\n )\n refreshCell.appendChild(refreshButton)\n refreshButton.addEventListener('click', () => {\n if (!store.fetcher) {\n throw new Error('Store has no fetcher')\n }\n store.fetcher.refresh(subject, function (\n ok,\n errm\n ) {\n let str\n if (ok) {\n str = 'Refreshed OK: ' + subject\n } else {\n str = 'Error refreshing: ' + subject + ': ' + errm\n }\n console.log(str)\n alert(str)\n })\n })\n }\n\n let plist = store.statementsMatching(subject)\n let docURI = ''\n if (!store.fetcher) {\n throw new Error('Store has no fetcher')\n }\n\n if (subject.uri) {\n plist.push(\n st(\n subject,\n sym('http://www.w3.org/2007/ont/link#uri'),\n subject.uri as any, // @@ TODO Remove casting\n store.fetcher.appNode\n )\n )\n if (subject.uri.indexOf('#') >= 0) {\n docURI = subject.uri.split('#')[0]\n plist.push(\n st(\n subject,\n sym('http://www.w3.org/2007/ont/link#documentURI'),\n subject.uri.split('#')[0] as any, // @@ TODO Remove casting\n store.fetcher.appNode\n )\n )\n plist.push(\n st(\n subject,\n sym('http://www.w3.org/2007/ont/link#document'),\n sym(subject.uri.split('#')[0]),\n store.fetcher.appNode\n )\n )\n } else {\n docURI = subject.uri\n }\n }\n if (docURI) {\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n\n const ed = store.updater.editable(docURI)\n if (ed) {\n plist.push(\n st(\n subject,\n sym('http://www.w3.org/ns/rww#editable'),\n literal(ed.toString()),\n store.fetcher.appNode\n )\n )\n }\n }\n // @@ TODO get a proper type\n const outliner: any = context.getOutliner(dom)\n outliner.appendPropertyTRs(div, plist, false, filter)\n plist = store.statementsMatching(undefined, undefined, subject)\n outliner.appendPropertyTRs(div, plist, true, filter)\n return div\n },\n\n predicates: {\n // Predicates used for inner workings. Under the hood\n 'http://www.w3.org/2007/ont/link#request': 1,\n 'http://www.w3.org/2007/ont/link#requestedBy': 1,\n 'http://www.w3.org/2007/ont/link#source': 1,\n 'http://www.w3.org/2007/ont/link#session': 2, // 2= test neg but display\n 'http://www.w3.org/2007/ont/link#uri': 1,\n 'http://www.w3.org/2007/ont/link#documentURI': 1,\n 'http://www.w3.org/2007/ont/link#document': 1,\n 'http://www.w3.org/2007/ont/link#all': 1, // From userinput.js\n 'http://www.w3.org/2007/ont/link#Document': 1,\n 'http://www.w3.org/ns/rww#editable': 1,\n 'http://www.w3.org/2000/01/rdf-schema#seeAlso': 1,\n 'http://www.w3.org/2002/07/owl#': 1\n },\n\n classes: {\n // Things which are inherently already undercover\n 'http://www.w3.org/2007/ont/link#ProtocolEvent': 1\n }\n}\n\nfunction isProtectedUri (subject: NamedNode): boolean {\n // TODO: Could make the code below smarter by removing some of the redundancy by creating a recursive function, but did not bother now\n const siteUri = subject.site().uri\n return (\n subject.uri === siteUri ||\n subject.uri === siteUri + 'profile/' ||\n subject.uri === siteUri + 'profile/card' ||\n subject.uri === siteUri + 'settings/' ||\n subject.uri === siteUri + 'settings/prefs.ttl' ||\n subject.uri === siteUri + 'settings/privateTypeIndex.ttl' ||\n subject.uri === siteUri + 'settings/publicTypeIndex.ttl' ||\n subject.uri === siteUri + 'settings/serverSide.ttl'\n )\n}\n\nexport default pane\n\n// ends\n"],"mappings":";;;;;;AAOA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AARA;AACA;AACA;AACA;AACA;AACA;;AAMA,MAAME,IAAoB,GAAG;EAC3BC,IAAI,EAAEC,cAAK,CAACC,gBAAgB,GAAG,4BAA4B;EAE3DC,IAAI,EAAE,UAAU;EAEhBC,KAAK,EAAE,SAAAA,CAAA,EAAY;IACjB,OAAO,gBAAgB,EAAC;EAC1B,CAAC;EAEDC,MAAM,EAAE,SAAAA,CAAUC,OAAO,EAAEC,OAAO,EAAE;IAClC,MAAMC,GAAG,GAAGD,OAAO,CAACC,GAAG;IACvB,MAAMC,KAAK,GAAGF,OAAO,CAACG,OAAO,CAACD,KAAc;IAC5C,MAAME,gBAAgB,GAAGF,KAAK,CAACG,KAAK,CAACN,OAAO,CAAqC;IACjF,MAAMO,KAAK,GAAGJ,KAAK,CAACK,YAAY,CAACH,gBAAgB,CAAC;IAElD,SAASI,MAAMA,CAAEC,IAAe,EAAE;MAChC,IAAIH,KAAK,CAAC,+CAA+C,CAAC,EAAE,OAAO,IAAI,EAAC;MACxE,MAAMI,IAAI,GAAGV,OAAO,CAACG,OAAO,CAACQ,YAAY,CAACC,MAAM,CA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GAAG,oBAAoB,IAC9C5F,OAAO,CAACe,GAAG,KAAK6E,OAAO,GAAG,+BAA+B,IACzD5F,OAAO,CAACe,GAAG,KAAK6E,OAAO,GAAG,8BAA8B,IACxD5F,OAAO,CAACe,GAAG,KAAK6E,OAAO,GAAG,yBAAyB;AAEvD;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcvG,IAAI,EAEnB","ignoreList":[]}
@@ -1,16 +1,22 @@
1
- import { initFooter } from 'solid-ui';
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createFooter = createFooter;
7
+ var _solidUi = require("solid-ui");
2
8
  /**
3
9
  * links in the footer
4
10
  */
5
11
  const SOLID_PROJECT_URL = 'https://solidproject.org';
6
12
  const SOLID_PROJECT_NAME = 'solidproject.org';
7
- export function createFooter(store) {
8
- initFooter(store, setFooterOptions());
13
+ function createFooter(store) {
14
+ (0, _solidUi.initFooter)(store, setFooterOptions());
9
15
  }
10
16
  function setFooterOptions() {
11
- return {
12
- solidProjectUrl: SOLID_PROJECT_URL,
13
- solidProjectName: SOLID_PROJECT_NAME
14
- };
17
+ return {
18
+ solidProjectUrl: SOLID_PROJECT_URL,
19
+ solidProjectName: SOLID_PROJECT_NAME
20
+ };
15
21
  }
16
22
  //# sourceMappingURL=footer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"footer.js","sourceRoot":"","sources":["../../src/mainPage/footer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErC;;EAEE;AACF,MAAM,iBAAiB,GAAG,0BAA0B,CAAA;AACpD,MAAM,kBAAkB,GAAG,kBAAkB,CAAA;AAE7C,MAAM,UAAU,YAAY,CAAE,KAAgB;IAC5C,UAAU,CAAC,KAAK,EAAE,gBAAgB,EAAE,CAAC,CAAA;AACvC,CAAC;AAED,SAAS,gBAAgB;IACvB,OAAO;QACL,eAAe,EAAE,iBAAiB;QAClC,gBAAgB,EAAE,kBAAkB;KACrC,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"footer.js","names":["_solidUi","require","SOLID_PROJECT_URL","SOLID_PROJECT_NAME","createFooter","store","initFooter","setFooterOptions","solidProjectUrl","solidProjectName"],"sources":["../../src/mainPage/footer.ts"],"sourcesContent":["import { LiveStore } from 'rdflib'\nimport { initFooter } from 'solid-ui'\n\n/**\n * links in the footer\n*/\nconst SOLID_PROJECT_URL = 'https://solidproject.org'\nconst SOLID_PROJECT_NAME = 'solidproject.org'\n\nexport function createFooter (store: LiveStore) {\n initFooter(store, setFooterOptions())\n}\n\nfunction setFooterOptions () {\n return {\n solidProjectUrl: SOLID_PROJECT_URL,\n solidProjectName: SOLID_PROJECT_NAME\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA,MAAMC,iBAAiB,GAAG,0BAA0B;AACpD,MAAMC,kBAAkB,GAAG,kBAAkB;AAEtC,SAASC,YAAYA,CAAEC,KAAgB,EAAE;EAC9C,IAAAC,mBAAU,EAACD,KAAK,EAAEE,gBAAgB,CAAC,CAAC,CAAC;AACvC;AAEA,SAASA,gBAAgBA,CAAA,EAAI;EAC3B,OAAO;IACLC,eAAe,EAAEN,iBAAiB;IAClCO,gBAAgB,EAAEN;EACpB,CAAC;AACH","ignoreList":[]}
@@ -1,19 +1,17 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { authSession, authn } from 'solid-logic';
11
- import { icons, initHeader } from 'solid-ui';
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createHeader = createHeader;
7
+ var _solidLogic = require("solid-logic");
8
+ var _solidUi = require("solid-ui");
12
9
  /**
13
10
  * menu icons
14
11
  */
15
- const HELP_MENU_ICON = icons.iconBase + 'noun_help.svg';
12
+ const HELP_MENU_ICON = _solidUi.icons.iconBase + 'noun_help.svg';
16
13
  const SOLID_ICON_URL = 'https://solidproject.org/assets/img/solid-emblem.svg';
14
+
17
15
  /**
18
16
  * menu elements
19
17
  */
@@ -26,59 +24,62 @@ const LOG_OUT_MENU_ITEM = 'Log out';
26
24
  */
27
25
  const USER_GUIDE_MENU_URL = 'https://solidos.github.io/userguide/';
28
26
  const REPORT_A_PROBLEM_MENU_URL = 'https://github.com/solidos/solidos/issues';
29
- export function createHeader(store, outliner) {
30
- return __awaiter(this, void 0, void 0, function* () {
31
- initHeader(store, yield setUserMenu(outliner), setHeaderOptions());
32
- });
27
+ async function createHeader(store, outliner) {
28
+ (0, _solidUi.initHeader)(store, await setUserMenu(outliner), setHeaderOptions());
33
29
  }
34
30
  function setHeaderOptions() {
35
- const helpMenuList = [
36
- { label: USER_GUIDE_MENU_ITEM, url: USER_GUIDE_MENU_URL, target: '_blank' },
37
- { label: REPORT_A_PROBLEM_MENU_ITEM, url: REPORT_A_PROBLEM_MENU_URL, target: '_blank' }
38
- ];
39
- const headerOptions = { logo: SOLID_ICON_URL, helpIcon: HELP_MENU_ICON, helpMenuList };
40
- return headerOptions;
31
+ const helpMenuList = [{
32
+ label: USER_GUIDE_MENU_ITEM,
33
+ url: USER_GUIDE_MENU_URL,
34
+ target: '_blank'
35
+ }, {
36
+ label: REPORT_A_PROBLEM_MENU_ITEM,
37
+ url: REPORT_A_PROBLEM_MENU_URL,
38
+ target: '_blank'
39
+ }];
40
+ const headerOptions = {
41
+ logo: SOLID_ICON_URL,
42
+ helpIcon: HELP_MENU_ICON,
43
+ helpMenuList
44
+ };
45
+ return headerOptions;
41
46
  }
42
- function setUserMenu(outliner) {
43
- return __awaiter(this, void 0, void 0, function* () {
44
- const showProfile = {
45
- label: SHOW_YOUR_PROFILE_MENU_ITEM,
46
- onclick: () => openUserProfile(outliner)
47
- };
48
- const logOut = {
49
- label: LOG_OUT_MENU_ITEM,
50
- onclick: () => {
51
- authSession.logout();
52
- }
53
- };
54
- // the order of the menu is important here, show profile first and logout last
55
- let userMenuList = []; // was [showProfile]
56
- userMenuList = userMenuList.concat(yield getMenuItems(outliner));
57
- userMenuList.push(logOut);
58
- return userMenuList;
59
- });
47
+ async function setUserMenu(outliner) {
48
+ const showProfile = {
49
+ label: SHOW_YOUR_PROFILE_MENU_ITEM,
50
+ onclick: () => openUserProfile(outliner)
51
+ };
52
+ const logOut = {
53
+ label: LOG_OUT_MENU_ITEM,
54
+ onclick: () => {
55
+ _solidLogic.authSession.logout();
56
+ }
57
+ };
58
+
59
+ // the order of the menu is important here, show profile first and logout last
60
+ let userMenuList = []; // was [showProfile]
61
+ userMenuList = userMenuList.concat(await getMenuItems(outliner));
62
+ userMenuList.push(logOut);
63
+ return userMenuList;
60
64
  }
65
+
61
66
  // Does not work to jump to user profile,
62
67
  function openUserProfile(outliner) {
63
- outliner.GotoSubject(authn.currentUser(), true, undefined, true, undefined);
64
- location.reload();
68
+ outliner.GotoSubject(_solidLogic.authn.currentUser(), true, undefined, true, undefined);
69
+ location.reload();
65
70
  }
66
- function getMenuItems(outliner) {
67
- return __awaiter(this, void 0, void 0, function* () {
68
- const items = yield outliner.getDashboardItems();
69
- return items.map((element) => {
70
- return {
71
- label: element.label,
72
- onclick: () => openDashboardPane(outliner, element.tabName || element.paneName)
73
- };
74
- });
75
- });
71
+ async function getMenuItems(outliner) {
72
+ const items = await outliner.getDashboardItems();
73
+ return items.map(element => {
74
+ return {
75
+ label: element.label,
76
+ onclick: () => openDashboardPane(outliner, element.tabName || element.paneName)
77
+ };
78
+ });
76
79
  }
77
- function openDashboardPane(outliner, pane) {
78
- return __awaiter(this, void 0, void 0, function* () {
79
- outliner.showDashboard({
80
- pane
81
- });
82
- });
80
+ async function openDashboardPane(outliner, pane) {
81
+ outliner.showDashboard({
82
+ pane
83
+ });
83
84
  }
84
85
  //# sourceMappingURL=header.js.map