solid-ui 2.4.23 → 2.4.24
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/dist/main.js +2159 -5039
- package/dist/main.js.map +1 -1
- package/lib/acl/access-controller.js +4 -67
- package/lib/acl/access-controller.js.map +1 -1
- package/lib/acl/access-groups.js +59 -137
- package/lib/acl/access-groups.js.map +1 -1
- package/lib/acl/acl-control.js +14 -54
- package/lib/acl/acl-control.js.map +1 -1
- package/lib/acl/acl.js +32 -107
- package/lib/acl/acl.js.map +1 -1
- package/lib/acl/add-agent-buttons.js +0 -92
- package/lib/acl/add-agent-buttons.js.map +1 -1
- package/lib/acl/index.js +1 -3
- package/lib/acl/index.js.map +1 -1
- package/lib/acl/styles.js +1 -2
- package/lib/acl/styles.js.map +1 -1
- package/lib/chat/bookmarks.js +8 -80
- package/lib/chat/bookmarks.js.map +1 -1
- package/lib/chat/chatLogic.js +109 -180
- package/lib/chat/chatLogic.js.map +1 -1
- package/lib/chat/dateFolder.js +6 -91
- package/lib/chat/dateFolder.js.map +1 -1
- package/lib/chat/infinite.js +33 -185
- package/lib/chat/infinite.js.map +1 -1
- package/lib/chat/message.js +37 -150
- package/lib/chat/message.js.map +1 -1
- package/lib/chat/messageTools.js +23 -96
- package/lib/chat/messageTools.js.map +1 -1
- package/lib/chat/thread.js +33 -91
- package/lib/chat/thread.js.map +1 -1
- package/lib/create/create.js +19 -51
- package/lib/create/create.js.map +1 -1
- package/lib/create/index.js +0 -2
- package/lib/create/index.js.map +1 -1
- package/lib/debug.js +0 -8
- package/lib/debug.js.map +1 -1
- package/lib/folders.js +4 -27
- package/lib/folders.js.map +1 -1
- package/lib/footer/index.js +2 -24
- package/lib/footer/index.js.map +1 -1
- package/lib/footer/styleMap.js.map +1 -1
- package/lib/header/empty-profile.js.map +1 -1
- package/lib/header/index.js +3 -72
- package/lib/header/index.js.map +1 -1
- package/lib/header/styleMap.js +4 -3
- package/lib/header/styleMap.js.map +1 -1
- package/lib/iconBase.js +3 -4
- package/lib/iconBase.js.map +1 -1
- package/lib/index.js +5 -46
- package/lib/index.js.map +1 -1
- package/lib/jss/index.js +3 -9
- package/lib/jss/index.js.map +1 -1
- package/lib/log.js +15 -51
- package/lib/log.js.map +1 -1
- package/lib/login/login.js +74 -303
- package/lib/login/login.js.map +1 -1
- package/lib/matrix/index.js +0 -2
- package/lib/matrix/index.js.map +1 -1
- package/lib/matrix/matrix.js +7 -55
- package/lib/matrix/matrix.js.map +1 -1
- package/lib/media/index.js +0 -2
- package/lib/media/index.js.map +1 -1
- package/lib/media/media-capture.js +13 -33
- package/lib/media/media-capture.js.map +1 -1
- package/lib/messageArea.js +23 -64
- package/lib/messageArea.js.map +1 -1
- package/lib/noun_Camera_1618446_000000.js.map +1 -1
- package/lib/ns.js +5 -7
- package/lib/ns.js.map +1 -1
- package/lib/pad.js +48 -234
- package/lib/pad.js.map +1 -1
- package/lib/participation.js +10 -65
- package/lib/participation.js.map +1 -1
- package/lib/preferences.js +21 -42
- package/lib/preferences.js.map +1 -1
- package/lib/signup/config-default.js +1 -8
- package/lib/signup/config-default.js.map +1 -1
- package/lib/signup/signup.js +6 -13
- package/lib/signup/signup.js.map +1 -1
- package/lib/stories/decorators.js +0 -2
- package/lib/stories/decorators.js.map +1 -1
- package/lib/style.js +8 -5
- package/lib/style.js.map +1 -1
- package/lib/style_multiSelect.js +1 -5
- package/lib/style_multiSelect.js.map +1 -1
- package/lib/table.js +309 -322
- package/lib/table.js.map +1 -1
- package/lib/tabs.js +20 -100
- package/lib/tabs.js.map +1 -1
- package/lib/utils/headerFooterHelpers.js +4 -52
- package/lib/utils/headerFooterHelpers.js.map +1 -1
- package/lib/utils/index.js +41 -135
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/label.js +13 -34
- package/lib/utils/label.js.map +1 -1
- package/lib/versionInfo.js +4 -4
- package/lib/versionInfo.js.map +1 -1
- package/lib/widgets/buttons/iconLinks.js +0 -8
- package/lib/widgets/buttons/iconLinks.js.map +1 -1
- package/lib/widgets/buttons.js +115 -291
- package/lib/widgets/buttons.js.map +1 -1
- package/lib/widgets/dragAndDrop.js +12 -41
- package/lib/widgets/dragAndDrop.js.map +1 -1
- package/lib/widgets/error.js +3 -9
- package/lib/widgets/error.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompleteBar.js +8 -71
- package/lib/widgets/forms/autocomplete/autocompleteBar.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompleteField.js +13 -65
- package/lib/widgets/forms/autocomplete/autocompleteField.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompletePicker.js +15 -107
- package/lib/widgets/forms/autocomplete/autocompletePicker.js.map +1 -1
- package/lib/widgets/forms/autocomplete/language.js +6 -55
- package/lib/widgets/forms/autocomplete/language.js.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.js +12 -131
- package/lib/widgets/forms/autocomplete/publicData.js.map +1 -1
- package/lib/widgets/forms/basic.js +12 -55
- package/lib/widgets/forms/basic.js.map +1 -1
- package/lib/widgets/forms/comment.js +1 -15
- package/lib/widgets/forms/comment.js.map +1 -1
- package/lib/widgets/forms/fieldFunction.js +3 -16
- package/lib/widgets/forms/fieldFunction.js.map +1 -1
- package/lib/widgets/forms/fieldParams.js +0 -12
- package/lib/widgets/forms/fieldParams.js.map +1 -1
- package/lib/widgets/forms/formStyle.js +1 -14
- package/lib/widgets/forms/formStyle.js.map +1 -1
- package/lib/widgets/forms.js +70 -474
- package/lib/widgets/forms.js.map +1 -1
- package/lib/widgets/index.js +0 -21
- package/lib/widgets/index.js.map +1 -1
- package/lib/widgets/multiSelect.js +48 -171
- package/lib/widgets/multiSelect.js.map +1 -1
- package/lib/widgets/peoplePicker.js +20 -90
- package/lib/widgets/peoplePicker.js.map +1 -1
- package/lib/widgets/widgetHelpers.js +2 -9
- package/lib/widgets/widgetHelpers.js.map +1 -1
- package/package.json +28 -28
package/lib/folders.js
CHANGED
|
@@ -1,37 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.deleteFolder = deleteFolder;
|
|
9
8
|
exports.deleteRecursive = deleteRecursive;
|
|
10
|
-
|
|
11
9
|
var debug = _interopRequireWildcard(require("./debug"));
|
|
12
|
-
|
|
13
10
|
var _iconBase = require("./iconBase");
|
|
14
|
-
|
|
15
11
|
var _solidLogic = require("solid-logic");
|
|
16
|
-
|
|
17
12
|
var ns = _interopRequireWildcard(require("./ns"));
|
|
18
|
-
|
|
19
13
|
var rdf = _interopRequireWildcard(require("rdflib"));
|
|
20
|
-
|
|
21
14
|
var style = _interopRequireWildcard(require("./style"));
|
|
22
|
-
|
|
23
15
|
var widgets = _interopRequireWildcard(require("./widgets"));
|
|
24
|
-
|
|
25
16
|
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); }
|
|
26
|
-
|
|
27
17
|
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; }
|
|
28
|
-
|
|
29
18
|
/** UI To Delete Folder and content
|
|
30
19
|
*
|
|
31
20
|
*/
|
|
32
|
-
|
|
33
21
|
/* global confirm */
|
|
22
|
+
|
|
34
23
|
// pull in first avoid cross-refs
|
|
24
|
+
|
|
35
25
|
var UI = {
|
|
36
26
|
icons: _iconBase.icons,
|
|
37
27
|
ns: ns,
|
|
@@ -39,7 +29,6 @@ var UI = {
|
|
|
39
29
|
style: style,
|
|
40
30
|
widgets: widgets
|
|
41
31
|
};
|
|
42
|
-
|
|
43
32
|
function deleteRecursive(kb, folder) {
|
|
44
33
|
// eslint-disable-next-line promise/param-names
|
|
45
34
|
return new Promise(function (resolve, _reject) {
|
|
@@ -49,20 +38,16 @@ function deleteRecursive(kb, folder) {
|
|
|
49
38
|
return deleteRecursive(kb, file);
|
|
50
39
|
} else {
|
|
51
40
|
debug.log('deleteRecirsive file: ' + file);
|
|
52
|
-
|
|
53
41
|
if (!confirm(' Really DELETE File ' + file)) {
|
|
54
42
|
throw new Error('User aborted delete file');
|
|
55
43
|
}
|
|
56
|
-
|
|
57
44
|
return kb.fetcher.webOperation('DELETE', file.uri);
|
|
58
45
|
}
|
|
59
46
|
});
|
|
60
47
|
debug.log('deleteRecirsive folder: ' + folder);
|
|
61
|
-
|
|
62
48
|
if (!confirm(' Really DELETE folder ' + folder)) {
|
|
63
49
|
throw new Error('User aborted delete file');
|
|
64
50
|
}
|
|
65
|
-
|
|
66
51
|
promises.push(kb.fetcher.webOperation('DELETE', folder.uri));
|
|
67
52
|
Promise.all(promises).then(function (_res) {
|
|
68
53
|
resolve();
|
|
@@ -70,14 +55,13 @@ function deleteRecursive(kb, folder) {
|
|
|
70
55
|
});
|
|
71
56
|
});
|
|
72
57
|
}
|
|
58
|
+
|
|
73
59
|
/** Iterate over files depth first
|
|
74
60
|
*
|
|
75
61
|
* @param folder - The folder whose contents we iterate over
|
|
76
62
|
* @param store - The quadstore
|
|
77
63
|
* @param action - returns a promise. All the promises must be resolved
|
|
78
64
|
*/
|
|
79
|
-
|
|
80
|
-
|
|
81
65
|
function forAllFiles(folder, kb, action) {
|
|
82
66
|
// eslint-disable-next-line promise/param-names
|
|
83
67
|
return new Promise(function (resolve, _reject) {
|
|
@@ -96,6 +80,7 @@ function forAllFiles(folder, kb, action) {
|
|
|
96
80
|
});
|
|
97
81
|
});
|
|
98
82
|
}
|
|
83
|
+
|
|
99
84
|
/** Delete Folder and contents
|
|
100
85
|
*
|
|
101
86
|
* @param {NamedNode} folder - The LDP container to be deleted
|
|
@@ -104,17 +89,12 @@ function forAllFiles(folder, kb, action) {
|
|
|
104
89
|
* @param {Document} dom - The browser 'document' gloabl or equivalent (or iuse global)
|
|
105
90
|
* @returns {DOMElement} - The control which has eben inserted in the
|
|
106
91
|
*/
|
|
107
|
-
|
|
108
92
|
/* global document */
|
|
109
|
-
|
|
110
|
-
|
|
111
93
|
function deleteFolder(folder, store, dom) {
|
|
112
94
|
store = store || _solidLogic.solidLogicSingleton.store;
|
|
113
|
-
|
|
114
95
|
if (typeof docuent !== 'undefined') {
|
|
115
96
|
dom = dom || document;
|
|
116
97
|
}
|
|
117
|
-
|
|
118
98
|
var div = dom.createElement('div');
|
|
119
99
|
var table = div.appendChild(dom.createElement('table'));
|
|
120
100
|
var mainTR = table.appendChild(dom.createElement('tr'));
|
|
@@ -125,7 +105,6 @@ function deleteFolder(folder, store, dom) {
|
|
|
125
105
|
var buttonsTR = table.appendChild(dom.createElement('tr'));
|
|
126
106
|
var buttonsTD1 = buttonsTR.appendChild(dom.createElement('td'));
|
|
127
107
|
buttonsTR.appendChild(dom.createElement('td')); // buttonsTD2
|
|
128
|
-
|
|
129
108
|
var buttonsTD3 = buttonsTR.appendChild(dom.createElement('td'));
|
|
130
109
|
var cancel = buttonsTD1.appendChild(UI.widgets.cancelButton(dom));
|
|
131
110
|
cancel.addEventListener('click', function (_event) {
|
|
@@ -137,13 +116,11 @@ function deleteFolder(folder, store, dom) {
|
|
|
137
116
|
debug.log('All deleted.');
|
|
138
117
|
});
|
|
139
118
|
}, false);
|
|
140
|
-
|
|
141
119
|
function deleteThem(folder) {
|
|
142
120
|
return forAllFiles(folder, function (file) {
|
|
143
121
|
return store.fetcher.webOperation('DELETE', file.uri);
|
|
144
122
|
});
|
|
145
123
|
}
|
|
146
|
-
|
|
147
124
|
var count = 0;
|
|
148
125
|
forAllFiles(folder, store, function () {
|
|
149
126
|
count += 1;
|
package/lib/folders.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.js","names":["UI","icons","ns","rdf","style","widgets","deleteRecursive","kb","folder","Promise","resolve","_reject","fetcher","load","then","promises","each","ldp","map","file","holds","debug","log","confirm","Error","webOperation","uri","push","all","_res","forAllFiles","action","deleteFolder","store","dom","solidLogicSingleton","docuent","document","div","createElement","table","appendChild","mainTR","p","textContent","buttonsTR","buttonsTD1","buttonsTD3","cancel","cancelButton","addEventListener","_event","parentNode","removeChild","doit","button","iconBase","deleteThem","count","msg"],"sources":["../src/folders.js"],"sourcesContent":["/** UI To Delete Folder and content\n *\n */\n/* global confirm */\n\nimport * as debug from './debug'\nimport { icons } from './iconBase'\nimport { solidLogicSingleton } from 'solid-logic'\nimport * as ns from './ns'\nimport * as rdf from 'rdflib' // pull in first avoid cross-refs\nimport * as style from './style'\nimport * as widgets from './widgets'\n\nconst UI = { icons, ns, rdf, style, widgets }\n\nexport function deleteRecursive (kb, folder) {\n // eslint-disable-next-line promise/param-names\n return new Promise(function (resolve, _reject) {\n kb.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)\n } else {\n debug.log('deleteRecirsive file: ' + file)\n if (!confirm(' Really DELETE File ' + file)) {\n throw new Error('User aborted delete file')\n }\n return kb.fetcher.webOperation('DELETE', file.uri)\n }\n })\n debug.log('deleteRecirsive folder: ' + folder)\n if (!confirm(' Really DELETE folder ' + folder)) {\n throw new Error('User aborted delete file')\n }\n promises.push(kb.fetcher.webOperation('DELETE', folder.uri))\n Promise.all(promises).then(_res => {\n resolve()\n })\n })\n })\n}\n\n/** Iterate over files depth first\n *\n * @param folder - The folder whose contents we iterate over\n * @param store - The quadstore\n * @param action - returns a promise. All the promises must be resolved\n */\nfunction forAllFiles (folder, kb, action) {\n // eslint-disable-next-line promise/param-names\n return new Promise(function (resolve, _reject) {\n kb.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 forAllFiles(file, kb, action)\n } else {\n return action(file)\n }\n })\n promises.push(action(folder))\n Promise.all(promises).then(_res => {\n resolve()\n })\n })\n })\n}\n\n/** Delete Folder and contents\n *\n * @param {NamedNode} folder - The LDP container to be deleted\n * @param {DOMElement} containingElement - Where to put the user interface\n * @param {IndexedForumula} store - Quadstore (optional)\n * @param {Document} dom - The browser 'document' gloabl or equivalent (or iuse global)\n * @returns {DOMElement} - The control which has eben inserted in the\n */\n/* global document */\nexport function deleteFolder (folder, store, dom) {\n store = store || solidLogicSingleton.store\n if (typeof docuent !== 'undefined') {\n dom = dom || document\n }\n const div = dom.createElement('div')\n const table = div.appendChild(dom.createElement('table'))\n const mainTR = table.appendChild(dom.createElement('tr'))\n mainTR.appendChild(dom.createElement('td')) // mainTD\n\n const p = mainTR.appendChild(dom.createElement('p'))\n p.textContent = `Are you sure you want to delete the folder ${folder}? This cannot be undone.`\n const buttonsTR = table.appendChild(dom.createElement('tr'))\n const buttonsTD1 = buttonsTR.appendChild(dom.createElement('td'))\n buttonsTR.appendChild(dom.createElement('td')) // buttonsTD2\n const buttonsTD3 = buttonsTR.appendChild(dom.createElement('td'))\n\n const cancel = buttonsTD1.appendChild(UI.widgets.cancelButton(dom))\n cancel.addEventListener(\n 'click',\n function (_event) {\n div.parentNode.removeChild(div)\n },\n false\n )\n\n const doit = buttonsTD3.appendChild(\n UI.widgets.button(dom, UI.icons.iconBase + 'noun_925021.svg', 'Yes, delete')\n )\n doit.addEventListener(\n 'click',\n function (_event) {\n deleteThem(folder).then(() => {\n debug.log('All deleted.')\n })\n },\n false\n )\n\n function deleteThem (folder) {\n return forAllFiles(folder, file =>\n store.fetcher.webOperation('DELETE', file.uri)\n )\n }\n let count = 0\n forAllFiles(folder, store, () => {\n count += 1\n }) // Count files\n .then(() => {\n const msg = ' Files to delete: ' + count\n debug.log(msg)\n p.textContent += msg\n })\n\n return div\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"folders.js","names":["UI","icons","ns","rdf","style","widgets","deleteRecursive","kb","folder","Promise","resolve","_reject","fetcher","load","then","promises","each","ldp","map","file","holds","debug","log","confirm","Error","webOperation","uri","push","all","_res","forAllFiles","action","deleteFolder","store","dom","solidLogicSingleton","docuent","document","div","createElement","table","appendChild","mainTR","p","textContent","buttonsTR","buttonsTD1","buttonsTD3","cancel","cancelButton","addEventListener","_event","parentNode","removeChild","doit","button","iconBase","deleteThem","count","msg"],"sources":["../src/folders.js"],"sourcesContent":["/** UI To Delete Folder and content\n *\n */\n/* global confirm */\n\nimport * as debug from './debug'\nimport { icons } from './iconBase'\nimport { solidLogicSingleton } from 'solid-logic'\nimport * as ns from './ns'\nimport * as rdf from 'rdflib' // pull in first avoid cross-refs\nimport * as style from './style'\nimport * as widgets from './widgets'\n\nconst UI = { icons, ns, rdf, style, widgets }\n\nexport function deleteRecursive (kb, folder) {\n // eslint-disable-next-line promise/param-names\n return new Promise(function (resolve, _reject) {\n kb.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)\n } else {\n debug.log('deleteRecirsive file: ' + file)\n if (!confirm(' Really DELETE File ' + file)) {\n throw new Error('User aborted delete file')\n }\n return kb.fetcher.webOperation('DELETE', file.uri)\n }\n })\n debug.log('deleteRecirsive folder: ' + folder)\n if (!confirm(' Really DELETE folder ' + folder)) {\n throw new Error('User aborted delete file')\n }\n promises.push(kb.fetcher.webOperation('DELETE', folder.uri))\n Promise.all(promises).then(_res => {\n resolve()\n })\n })\n })\n}\n\n/** Iterate over files depth first\n *\n * @param folder - The folder whose contents we iterate over\n * @param store - The quadstore\n * @param action - returns a promise. All the promises must be resolved\n */\nfunction forAllFiles (folder, kb, action) {\n // eslint-disable-next-line promise/param-names\n return new Promise(function (resolve, _reject) {\n kb.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 forAllFiles(file, kb, action)\n } else {\n return action(file)\n }\n })\n promises.push(action(folder))\n Promise.all(promises).then(_res => {\n resolve()\n })\n })\n })\n}\n\n/** Delete Folder and contents\n *\n * @param {NamedNode} folder - The LDP container to be deleted\n * @param {DOMElement} containingElement - Where to put the user interface\n * @param {IndexedForumula} store - Quadstore (optional)\n * @param {Document} dom - The browser 'document' gloabl or equivalent (or iuse global)\n * @returns {DOMElement} - The control which has eben inserted in the\n */\n/* global document */\nexport function deleteFolder (folder, store, dom) {\n store = store || solidLogicSingleton.store\n if (typeof docuent !== 'undefined') {\n dom = dom || document\n }\n const div = dom.createElement('div')\n const table = div.appendChild(dom.createElement('table'))\n const mainTR = table.appendChild(dom.createElement('tr'))\n mainTR.appendChild(dom.createElement('td')) // mainTD\n\n const p = mainTR.appendChild(dom.createElement('p'))\n p.textContent = `Are you sure you want to delete the folder ${folder}? This cannot be undone.`\n const buttonsTR = table.appendChild(dom.createElement('tr'))\n const buttonsTD1 = buttonsTR.appendChild(dom.createElement('td'))\n buttonsTR.appendChild(dom.createElement('td')) // buttonsTD2\n const buttonsTD3 = buttonsTR.appendChild(dom.createElement('td'))\n\n const cancel = buttonsTD1.appendChild(UI.widgets.cancelButton(dom))\n cancel.addEventListener(\n 'click',\n function (_event) {\n div.parentNode.removeChild(div)\n },\n false\n )\n\n const doit = buttonsTD3.appendChild(\n UI.widgets.button(dom, UI.icons.iconBase + 'noun_925021.svg', 'Yes, delete')\n )\n doit.addEventListener(\n 'click',\n function (_event) {\n deleteThem(folder).then(() => {\n debug.log('All deleted.')\n })\n },\n false\n )\n\n function deleteThem (folder) {\n return forAllFiles(folder, file =>\n store.fetcher.webOperation('DELETE', file.uri)\n )\n }\n let count = 0\n forAllFiles(folder, store, () => {\n count += 1\n }) // Count files\n .then(() => {\n const msg = ' Files to delete: ' + count\n debug.log(msg)\n p.textContent += msg\n })\n\n return div\n}\n"],"mappings":";;;;;;;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AAAoC;AAAA;AAXpC;AACA;AACA;AACA;;AAM8B;;AAI9B,IAAMA,EAAE,GAAG;EAAEC,KAAK,EAALA,eAAK;EAAEC,EAAE,EAAFA,EAAE;EAAEC,GAAG,EAAHA,GAAG;EAAEC,KAAK,EAALA,KAAK;EAAEC,OAAO,EAAPA;AAAQ,CAAC;AAEtC,SAASC,eAAe,CAAEC,EAAE,EAAEC,MAAM,EAAE;EAC3C;EACA,OAAO,IAAIC,OAAO,CAAC,UAAUC,OAAO,EAAEC,OAAO,EAAE;IAC7CJ,EAAE,CAACK,OAAO,CAACC,IAAI,CAACL,MAAM,CAAC,CAACM,IAAI,CAAC,YAAY;MACvC,IAAMC,QAAQ,GAAGR,EAAE,CAACS,IAAI,CAACR,MAAM,EAAEN,EAAE,CAACe,GAAG,CAAC,UAAU,CAAC,CAAC,CAACC,GAAG,CAAC,UAAAC,IAAI,EAAI;QAC/D,IAAIZ,EAAE,CAACa,KAAK,CAACD,IAAI,EAAEjB,EAAE,CAACC,GAAG,CAAC,MAAM,CAAC,EAAED,EAAE,CAACe,GAAG,CAAC,gBAAgB,CAAC,CAAC,EAAE;UAC5D,OAAOX,eAAe,CAACC,EAAE,EAAEY,IAAI,CAAC;QAClC,CAAC,MAAM;UACLE,KAAK,CAACC,GAAG,CAAC,wBAAwB,GAAGH,IAAI,CAAC;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I,CAAC,YAAM;IACV,IAAM6C,GAAG,GAAG,oBAAoB,GAAGD,KAAK;IACxCrC,KAAK,CAACC,GAAG,CAACqC,GAAG,CAAC;IACdhB,CAAC,CAACC,WAAW,IAAIe,GAAG;EACtB,CAAC,CAAC;EAEJ,OAAOrB,GAAG;AACZ"}
|
package/lib/footer/index.js
CHANGED
|
@@ -1,32 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.createControllerInfoBlock = createControllerInfoBlock;
|
|
9
8
|
exports.initFooter = initFooter;
|
|
10
9
|
exports.rebuildFooter = rebuildFooter;
|
|
11
|
-
|
|
12
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
|
-
|
|
14
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
|
-
|
|
16
12
|
var _solidLogic = require("solid-logic");
|
|
17
|
-
|
|
18
13
|
var _headerFooterHelpers = require("../utils/headerFooterHelpers");
|
|
19
|
-
|
|
20
14
|
/*
|
|
21
15
|
This file was copied from mashlib/src/global/footer.ts file. It is modified to
|
|
22
16
|
work in solid-ui by adjusting where imported functions are found.
|
|
23
17
|
*/
|
|
18
|
+
|
|
24
19
|
var DEFAULT_SOLID_PROJECT_URL = 'https://solidproject.org';
|
|
25
20
|
var DEFAULT_SOLID_PROJECT_NAME = 'solidproject.org';
|
|
21
|
+
|
|
26
22
|
/*
|
|
27
23
|
FooterOptions allow for customizing the link and name of the link part of the footer.
|
|
28
24
|
*/
|
|
29
|
-
|
|
30
25
|
/**
|
|
31
26
|
* Initialize footer component, the footer object returned depends on whether the user is authenticated.
|
|
32
27
|
* @param store the data store
|
|
@@ -38,8 +33,6 @@ function initFooter(_x, _x2) {
|
|
|
38
33
|
/**
|
|
39
34
|
* @ignore exporting this only for the unit test
|
|
40
35
|
*/
|
|
41
|
-
|
|
42
|
-
|
|
43
36
|
function _initFooter() {
|
|
44
37
|
_initFooter = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(store, options) {
|
|
45
38
|
var footer, pod, podOwner;
|
|
@@ -48,27 +41,20 @@ function _initFooter() {
|
|
|
48
41
|
switch (_context2.prev = _context2.next) {
|
|
49
42
|
case 0:
|
|
50
43
|
footer = document.getElementById('PageFooter');
|
|
51
|
-
|
|
52
44
|
if (footer) {
|
|
53
45
|
_context2.next = 3;
|
|
54
46
|
break;
|
|
55
47
|
}
|
|
56
|
-
|
|
57
48
|
return _context2.abrupt("return");
|
|
58
|
-
|
|
59
49
|
case 3:
|
|
60
50
|
pod = (0, _headerFooterHelpers.getPod)();
|
|
61
51
|
_context2.next = 6;
|
|
62
52
|
return (0, _headerFooterHelpers.getPodOwner)(pod, store);
|
|
63
|
-
|
|
64
53
|
case 6:
|
|
65
54
|
podOwner = _context2.sent;
|
|
66
55
|
rebuildFooter(footer, store, pod, podOwner, options)();
|
|
67
|
-
|
|
68
56
|
_solidLogic.authSession.onLogin(rebuildFooter(footer, store, pod, podOwner, options));
|
|
69
|
-
|
|
70
57
|
_solidLogic.authSession.onLogout(rebuildFooter(footer, store, pod, podOwner, options));
|
|
71
|
-
|
|
72
58
|
case 10:
|
|
73
59
|
case "end":
|
|
74
60
|
return _context2.stop();
|
|
@@ -78,7 +64,6 @@ function _initFooter() {
|
|
|
78
64
|
}));
|
|
79
65
|
return _initFooter.apply(this, arguments);
|
|
80
66
|
}
|
|
81
|
-
|
|
82
67
|
function rebuildFooter(footer, store, pod, podOwner, options) {
|
|
83
68
|
return /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
84
69
|
var user;
|
|
@@ -91,12 +76,9 @@ function rebuildFooter(footer, store, pod, podOwner, options) {
|
|
|
91
76
|
_context.t0 = footer;
|
|
92
77
|
_context.next = 5;
|
|
93
78
|
return createControllerInfoBlock(store, user, pod, podOwner, options);
|
|
94
|
-
|
|
95
79
|
case 5:
|
|
96
80
|
_context.t1 = _context.sent;
|
|
97
|
-
|
|
98
81
|
_context.t0.appendChild.call(_context.t0, _context.t1);
|
|
99
|
-
|
|
100
82
|
case 7:
|
|
101
83
|
case "end":
|
|
102
84
|
return _context.stop();
|
|
@@ -108,15 +90,11 @@ function rebuildFooter(footer, store, pod, podOwner, options) {
|
|
|
108
90
|
/**
|
|
109
91
|
* @ignore exporting this only for the unit test
|
|
110
92
|
*/
|
|
111
|
-
|
|
112
|
-
|
|
113
93
|
function createControllerInfoBlock(store, user, pod, podOwner, options) {
|
|
114
94
|
var profileLinkContainer = document.createElement('div');
|
|
115
|
-
|
|
116
95
|
if (!pod || !podOwner || user && user.equals(podOwner)) {
|
|
117
96
|
return profileLinkContainer;
|
|
118
97
|
}
|
|
119
|
-
|
|
120
98
|
(0, _headerFooterHelpers.addStyleClassToElement)(profileLinkContainer, ['footer-pod-info', 'footer'], 'footer');
|
|
121
99
|
var podLinkPre = document.createElement('span');
|
|
122
100
|
podLinkPre.innerText = "You're visiting ";
|
package/lib/footer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["DEFAULT_SOLID_PROJECT_URL","DEFAULT_SOLID_PROJECT_NAME","initFooter","store","options","footer","document","getElementById","pod","getPod","getPodOwner","podOwner","rebuildFooter","authSession","onLogin","onLogout","user","authn","currentUser","innerHTML","createControllerInfoBlock","appendChild","profileLinkContainer","createElement","equals","addStyleClassToElement","podLinkPre","innerText","podLink","href","uri","profileLinkPre","profileLink","getName","solidProjectLinkPre","solidProjectLink","solidProjectUrl","solidProjectName","solidProjectLinkPost"],"sources":["../../src/footer/index.ts"],"sourcesContent":["/*\n This file was copied from mashlib/src/global/footer.ts file. It is modified to\n work in solid-ui by adjusting where imported functions are found.\n */\nimport { LiveStore, NamedNode } from 'rdflib'\nimport { authn, authSession } from 'solid-logic'\nimport { addStyleClassToElement, getName, getPod, getPodOwner } from '../utils/headerFooterHelpers'\n\nconst DEFAULT_SOLID_PROJECT_URL = 'https://solidproject.org'\nconst DEFAULT_SOLID_PROJECT_NAME = 'solidproject.org'\n\n/*\n FooterOptions allow for customizing the link and name of the link part of the footer.\n */\nexport type FooterOptions = {\n solidProjectUrl?: string,\n solidProjectName?: string\n }\n\n/**\n * Initialize footer component, the footer object returned depends on whether the user is authenticated.\n * @param store the data store\n * @returns the footer\n */\nexport async function initFooter (store: LiveStore, options?: FooterOptions) {\n const footer = document.getElementById('PageFooter')\n if (!footer) {\n return\n }\n const pod = getPod()\n const podOwner = await getPodOwner(pod, store)\n rebuildFooter(footer, store, pod, podOwner, options)()\n authSession.onLogin(rebuildFooter(footer, store, pod, podOwner, options))\n authSession.onLogout(rebuildFooter(footer, store, pod, podOwner, options))\n}\n/**\n * @ignore exporting this only for the unit test\n */\nexport function rebuildFooter (footer: HTMLElement, store: LiveStore, pod: NamedNode | null, podOwner: NamedNode | null, options?: FooterOptions) {\n return async () => {\n const user = authn.currentUser()\n footer.innerHTML = ''\n footer.appendChild(await createControllerInfoBlock(store, user, pod, podOwner, options))\n }\n}\n/**\n * @ignore exporting this only for the unit test\n */\nexport function createControllerInfoBlock (store: LiveStore, user: NamedNode | null, pod: NamedNode | null, podOwner: NamedNode | null, options?: FooterOptions): HTMLElement {\n const profileLinkContainer = document.createElement('div')\n if (!pod || !podOwner || (user && user.equals(podOwner))) {\n return profileLinkContainer\n }\n\n addStyleClassToElement(profileLinkContainer, ['footer-pod-info', 'footer'], 'footer')\n\n const podLinkPre = document.createElement('span')\n podLinkPre.innerText = \"You're visiting \"\n\n const podLink = document.createElement('a')\n podLink.href = pod.uri\n podLink.innerText = 'the Pod'\n\n const profileLinkPre = document.createElement('span')\n profileLinkPre.innerText = ' controlled by '\n\n const profileLink = document.createElement('a')\n profileLink.href = podOwner.uri\n profileLink.innerText = getName(store, podOwner)\n\n const solidProjectLinkPre = document.createElement('span')\n solidProjectLinkPre.innerText = '. For more info, check out '\n\n const solidProjectLink = document.createElement('a')\n solidProjectLink.href = options && options.solidProjectUrl ? options.solidProjectUrl : DEFAULT_SOLID_PROJECT_URL\n solidProjectLink.innerText = options && options.solidProjectName ? options.solidProjectName : DEFAULT_SOLID_PROJECT_NAME\n\n const solidProjectLinkPost = document.createElement('span')\n solidProjectLinkPost.innerText = '.'\n\n profileLinkContainer.appendChild(podLinkPre)\n profileLinkContainer.appendChild(podLink)\n profileLinkContainer.appendChild(profileLinkPre)\n profileLinkContainer.appendChild(profileLink)\n profileLinkContainer.appendChild(solidProjectLinkPre)\n profileLinkContainer.appendChild(solidProjectLink)\n profileLinkContainer.appendChild(solidProjectLinkPost)\n\n return profileLinkContainer\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["DEFAULT_SOLID_PROJECT_URL","DEFAULT_SOLID_PROJECT_NAME","initFooter","store","options","footer","document","getElementById","pod","getPod","getPodOwner","podOwner","rebuildFooter","authSession","onLogin","onLogout","user","authn","currentUser","innerHTML","createControllerInfoBlock","appendChild","profileLinkContainer","createElement","equals","addStyleClassToElement","podLinkPre","innerText","podLink","href","uri","profileLinkPre","profileLink","getName","solidProjectLinkPre","solidProjectLink","solidProjectUrl","solidProjectName","solidProjectLinkPost"],"sources":["../../src/footer/index.ts"],"sourcesContent":["/*\n This file was copied from mashlib/src/global/footer.ts file. It is modified to\n work in solid-ui by adjusting where imported functions are found.\n */\nimport { LiveStore, NamedNode } from 'rdflib'\nimport { authn, authSession } from 'solid-logic'\nimport { addStyleClassToElement, getName, getPod, getPodOwner } from '../utils/headerFooterHelpers'\n\nconst DEFAULT_SOLID_PROJECT_URL = 'https://solidproject.org'\nconst DEFAULT_SOLID_PROJECT_NAME = 'solidproject.org'\n\n/*\n FooterOptions allow for customizing the link and name of the link part of the footer.\n */\nexport type FooterOptions = {\n solidProjectUrl?: string,\n solidProjectName?: string\n }\n\n/**\n * Initialize footer component, the footer object returned depends on whether the user is authenticated.\n * @param store the data store\n * @returns the footer\n */\nexport async function initFooter (store: LiveStore, options?: FooterOptions) {\n const footer = document.getElementById('PageFooter')\n if (!footer) {\n return\n }\n const pod = getPod()\n const podOwner = await getPodOwner(pod, store)\n rebuildFooter(footer, store, pod, podOwner, options)()\n authSession.onLogin(rebuildFooter(footer, store, pod, podOwner, options))\n authSession.onLogout(rebuildFooter(footer, store, pod, podOwner, options))\n}\n/**\n * @ignore exporting this only for the unit test\n */\nexport function rebuildFooter (footer: HTMLElement, store: LiveStore, pod: NamedNode | null, podOwner: NamedNode | null, options?: FooterOptions) {\n return async () => {\n const user = authn.currentUser()\n footer.innerHTML = ''\n footer.appendChild(await createControllerInfoBlock(store, user, pod, podOwner, options))\n }\n}\n/**\n * @ignore exporting this only for the unit test\n */\nexport function createControllerInfoBlock (store: LiveStore, user: NamedNode | null, pod: NamedNode | null, podOwner: NamedNode | null, options?: FooterOptions): HTMLElement {\n const profileLinkContainer = document.createElement('div')\n if (!pod || !podOwner || (user && user.equals(podOwner))) {\n return profileLinkContainer\n }\n\n addStyleClassToElement(profileLinkContainer, ['footer-pod-info', 'footer'], 'footer')\n\n const podLinkPre = document.createElement('span')\n podLinkPre.innerText = \"You're visiting \"\n\n const podLink = document.createElement('a')\n podLink.href = pod.uri\n podLink.innerText = 'the Pod'\n\n const profileLinkPre = document.createElement('span')\n profileLinkPre.innerText = ' controlled by '\n\n const profileLink = document.createElement('a')\n profileLink.href = podOwner.uri\n profileLink.innerText = getName(store, podOwner)\n\n const solidProjectLinkPre = document.createElement('span')\n solidProjectLinkPre.innerText = '. For more info, check out '\n\n const solidProjectLink = document.createElement('a')\n solidProjectLink.href = options && options.solidProjectUrl ? options.solidProjectUrl : DEFAULT_SOLID_PROJECT_URL\n solidProjectLink.innerText = options && options.solidProjectName ? options.solidProjectName : DEFAULT_SOLID_PROJECT_NAME\n\n const solidProjectLinkPost = document.createElement('span')\n solidProjectLinkPost.innerText = '.'\n\n profileLinkContainer.appendChild(podLinkPre)\n profileLinkContainer.appendChild(podLink)\n profileLinkContainer.appendChild(profileLinkPre)\n profileLinkContainer.appendChild(profileLink)\n profileLinkContainer.appendChild(solidProjectLinkPre)\n profileLinkContainer.appendChild(solidProjectLink)\n profileLinkContainer.appendChild(solidProjectLinkPost)\n\n return profileLinkContainer\n}\n"],"mappings":";;;;;;;;;;;AAKA;AACA;AANA;AACA;AACA;AACA;;AAKA,IAAMA,yBAAyB,GAAG,0BAA0B;AAC5D,IAAMC,0BAA0B,GAAG,kBAAkB;;AAErD;AACA;AACA;AAMA;AACA;AACA;AACA;AACA;AAJA,SAKsBC,UAAU;EAAA;AAAA;AAWhC;AACA;AACA;AAFA;EAAA,4FAXO,kBAA2BC,KAAgB,EAAEC,OAAuB;IAAA;IAAA;MAAA;QAAA;UAAA;YACnEC,MAAM,GAAGC,QAAQ,CAACC,cAAc,CAAC,YAAY,CAAC;YAAA,IAC/CF,MAAM;cAAA;cAAA;YAAA;YAAA;UAAA;YAGLG,GAAG,GAAG,IAAAC,2BAAM,GAAE;YAAA;YAAA,OACG,IAAAC,gCAAW,EAACF,GAAG,EAAEL,KAAK,CAAC;UAAA;YAAxCQ,QAAQ;YACdC,aAAa,CAACP,MAAM,EAAEF,KAAK,EAAEK,GAAG,EAAEG,QAAQ,EAAEP,OAAO,CAAC,EAAE;YACtDS,uBAAW,CAACC,OAAO,CAACF,aAAa,CAACP,MAAM,EAAEF,KAAK,EAAEK,GAAG,EAAEG,QAAQ,EAAEP,OAAO,CAAC,CAAC;YACzES,uBAAW,CAACE,QAAQ,CAACH,aAAa,CAACP,MAAM,EAAEF,KAAK,EAAEK,GAAG,EAAEG,QAAQ,EAAEP,OAAO,CAAC,CAAC;UAAA;UAAA;YAAA;QAAA;MAAA;IAAA;EAAA,CAC3E;EAAA;AAAA;AAIM,SAASQ,aAAa,CAAEP,MAAmB,EAAEF,KAAgB,EAAEK,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;EAC/CS,WAAW,CAACH,IAAI,GAAGlB,QAAQ,CAACmB,GAAG;EAC/BE,WAAW,CAACL,SAAS,GAAG,IAAAM,4BAAO,EAAC9B,KAAK,EAAEQ,QAAQ,CAAC;EAEhD,IAAMuB,mBAAmB,GAAG5B,QAAQ,CAACiB,aAAa,CAAC,MAAM,CAAC;EAC1DW,mBAAmB,CAACP,SAAS,GAAG,6BAA6B;EAE7D,IAAMQ,gBAAgB,GAAG7B,QAAQ,CAACiB,aAAa,CAAC,GAAG,CAAC;EACpDY,gBAAgB,CAACN,IAAI,GAAGzB,OAAO,IAAIA,OAAO,CAACgC,eAAe,GAAGhC,OAAO,CAACgC,eAAe,GAAGpC,yBAAyB;EAChHmC,gBAAgB,CAACR,SAAS,GAAGvB,OAAO,IAAIA,OAAO,CAACiC,gBAAgB,GAAGjC,OAAO,CAACiC,gBAAgB,GAAGpC,0BAA0B;EAExH,IAAMqC,oBAAoB,GAAGhC,QAAQ,CAACiB,aAAa,CAAC,MAAM,CAAC;EAC3De,oBAAoB,CAACX,SAAS,GAAG,GAAG;EAEpCL,oBAAoB,CAACD,WAAW,CAACK,UAAU,CAAC;EAC5CJ,oBAAoB,CAACD,WAAW,CAACO,OAAO,CAAC;EACzCN,oBAAoB,CAACD,WAAW,CAACU,cAAc,CAAC;EAChDT,oBAAoB,CAACD,WAAW,CAACW,WAAW,CAAC;EAC7CV,oBAAoB,CAACD,WAAW,CAACa,mBAAmB,CAAC;EACrDZ,oBAAoB,CAACD,WAAW,CAACc,gBAAgB,CAAC;EAClDb,oBAAoB,CAACD,WAAW,CAACiB,oBAAoB,CAAC;EAEtD,OAAOhB,oBAAoB;AAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styleMap.js","names":["styleMap","footer","borderTop","fontSize","padding"],"sources":["../../src/footer/styleMap.ts"],"sourcesContent":["export const styleMap = {\n footer: {\n borderTop: 'solid 1px $divider-color',\n fontSize: '0.9em',\n padding: '0.5em 1.5em'\n }\n}\n"],"mappings":";;;;;;AAAO,IAAMA,QAAQ,GAAG;EACtBC,MAAM,EAAE;IACNC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"styleMap.js","names":["styleMap","footer","borderTop","fontSize","padding"],"sources":["../../src/footer/styleMap.ts"],"sourcesContent":["export const styleMap = {\n footer: {\n borderTop: 'solid 1px $divider-color',\n fontSize: '0.9em',\n padding: '0.5em 1.5em'\n }\n}\n"],"mappings":";;;;;;AAAO,IAAMA,QAAQ,GAAG;EACtBC,MAAM,EAAE;IACNC,SAAS,EAAE,0BAA0B;IACrCC,QAAQ,EAAE,OAAO;IACjBC,OAAO,EAAE;EACX;AACF,CAAC;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-profile.js","names":["emptyProfile"],"sources":["../../src/header/empty-profile.ts"],"sourcesContent":["export const emptyProfile = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"26\" height=\"26\" viewBox=\"0 0 26 26\" fill=\"none\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z\" fill=\"#D8D8D8\" stroke=\"#8B8B8B\"/>\n <mask id=\"mask0\" mask-type=\"alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"26\" height=\"26\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z\" fill=\"white\" stroke=\"white\"/>\n </mask>\n <g mask=\"url(#mask0)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M17.0468 10.4586C17.0468 14.4979 15.4281 16.9214 12.9999 16.9214C10.5718 16.9214 8.95298 14.4979 8.95298 10.4586C8.95298 6.41931 12.9999 6.41931 12.9999 6.41931C12.9999 6.41931 17.0468 6.41931 17.0468 10.4586ZM4.09668 23.3842C6.52483 17.7293 12.9999 17.7293 12.9999 17.7293C12.9999 17.7293 19.475 17.7293 21.9031 23.3842C21.9031 23.3842 17.8481 25 12.9999 25C8.15169 25 4.09668 23.3842 4.09668 23.3842Z\" fill=\"#8B8B8B\"/>\n </g>\n</svg>`\n"],"mappings":";;;;;;AAAO,IAAMA,YAAY,
|
|
1
|
+
{"version":3,"file":"empty-profile.js","names":["emptyProfile"],"sources":["../../src/header/empty-profile.ts"],"sourcesContent":["export const emptyProfile = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"26\" height=\"26\" viewBox=\"0 0 26 26\" fill=\"none\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z\" fill=\"#D8D8D8\" stroke=\"#8B8B8B\"/>\n <mask id=\"mask0\" mask-type=\"alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"26\" height=\"26\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z\" fill=\"white\" stroke=\"white\"/>\n </mask>\n <g mask=\"url(#mask0)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M17.0468 10.4586C17.0468 14.4979 15.4281 16.9214 12.9999 16.9214C10.5718 16.9214 8.95298 14.4979 8.95298 10.4586C8.95298 6.41931 12.9999 6.41931 12.9999 6.41931C12.9999 6.41931 17.0468 6.41931 17.0468 10.4586ZM4.09668 23.3842C6.52483 17.7293 12.9999 17.7293 12.9999 17.7293C12.9999 17.7293 19.475 17.7293 21.9031 23.3842C21.9031 23.3842 17.8481 25 12.9999 25C8.15169 25 4.09668 23.3842 4.09668 23.3842Z\" fill=\"#8B8B8B\"/>\n </g>\n</svg>`\n"],"mappings":";;;;;;AAAO,IAAMA,YAAY,mrCASlB;AAAA"}
|