solid-panes 3.5.36-afb8af9f → 3.5.36-b1bb05b3
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/coverage/clover.xml +152 -0
- package/coverage/coverage-final.json +6 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +131 -0
- package/coverage/lcov-report/outline/index.html +161 -0
- package/coverage/lcov-report/outline/outlineIcons.js.html +565 -0
- package/coverage/lcov-report/outline/propertyViews.ts.html +196 -0
- package/coverage/lcov-report/outline/viewAsImage.ts.html +121 -0
- package/coverage/lcov-report/outline/viewAsMbox.ts.html +127 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/trustedApplications/index.html +116 -0
- package/coverage/lcov-report/trustedApplications/trustedApplications.utils.ts.html +238 -0
- package/coverage/lcov.info +202 -0
- package/jest.config.js +3 -0
- package/lib/outline/manager.js +0 -8
- package/lib/outline/manager.js.map +1 -1
- package/lib/outline/manager.test.d.ts +2 -0
- package/lib/outline/manager.test.d.ts.map +1 -0
- package/lib/outline/propertyViews.test.d.ts +2 -0
- package/lib/outline/propertyViews.test.d.ts.map +1 -0
- package/lib/outline/propertyViews.test.js +1 -0
- package/lib/outline/propertyViews.test.js.map +1 -1
- package/lib/registerPanes.js +7 -2
- package/lib/registerPanes.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.test.d.ts +2 -0
- package/lib/trustedApplications/trustedApplications.test.d.ts.map +1 -0
- package/lib/trustedApplications/trustedApplications.utils.d.ts +1 -0
- package/lib/trustedApplications/trustedApplications.utils.d.ts.map +1 -1
- package/lib/versionInfo.js +2 -2
- package/lib/versionInfo.js.map +1 -1
- package/package.json +2 -2
- package/src/outline/manager.js +0 -9
- package/src/outline/propertyViews.test.ts +2 -1
- package/src/registerPanes.js +7 -2
- package/src/versionInfo.ts +2 -2
- package/tsconfig.json +7 -1
- package/.babelrc +0 -16
- package/.eslintignore +0 -3
- package/.eslintrc +0 -26
- package/.github/workflows/ci.yml +0 -82
- package/.nvmrc +0 -1
- package/lib/outline/licenseOptions.js +0 -80
- package/lib/outline/licenseOptions.js.map +0 -1
- package/lib/profile/editProfile.view.d.ts +0 -13
- package/lib/profile/editProfile.view.d.ts.map +0 -1
- package/lib/profile/editProfile.view.js +0 -135
- package/lib/profile/editProfile.view.js.map +0 -1
- package/lib/profile/profile.dom.d.ts +0 -4
- package/lib/profile/profile.dom.d.ts.map +0 -1
- package/lib/profile/profile.dom.js +0 -18
- package/lib/profile/profile.dom.js.map +0 -1
- package/src/outline/licenseOptions.js +0 -105
- package/src/profile/editProfile.view.ts +0 -164
- package/src/profile/profile.dom.ts +0 -20
- package/src/profile/profileFormText.ttl +0 -386
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manager.test.d.ts","sourceRoot":"","sources":["../../src/outline/manager.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyViews.test.d.ts","sourceRoot":"","sources":["../../src/outline/propertyViews.test.ts"],"names":[],"mappings":""}
|
|
@@ -21,6 +21,7 @@ describe('property views', function () {
|
|
|
21
21
|
var result = view((0, _rdflib.sym)('mailto:alice@mail.example'));
|
|
22
22
|
expect(result).toBeInstanceOf(HTMLAnchorElement);
|
|
23
23
|
expect(result).toHaveAttribute('href', 'mailto:alice@mail.example');
|
|
24
|
+
expect(result).toHaveTextContent('alice@mail.example');
|
|
24
25
|
});
|
|
25
26
|
});
|
|
26
27
|
//# sourceMappingURL=propertyViews.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyViews.test.js","names":["_util","require","_rdflib","_propertyViews","global","TextEncoder","TextDecoder","describe","it","each","property","views","propertyViews","document","view","defaults","result","sym","expect","toBeInstanceOf","HTMLImageElement","toHaveAttribute","HTMLAnchorElement"],"sources":["../../src/outline/propertyViews.test.ts"],"sourcesContent":["/* eslint-env jest */\n\nimport { TextEncoder, TextDecoder } from 'util'\nglobal.TextEncoder = TextEncoder as any\nglobal.TextDecoder = TextDecoder as any\n\n\nimport { sym } from 'rdflib'\nimport { propertyViews } from './propertyViews'\n\ndescribe('property views', () => {\n it.each([\n 'http://xmlns.com/foaf/0.1/depiction',\n 'http://xmlns.com/foaf/0.1/img',\n 'http://xmlns.com/foaf/0.1/thumbnail',\n 'http://xmlns.com/foaf/0.1/logo',\n 'http://schema.org/image'\n ])('renders %s as image', (property) => {\n const views = propertyViews(document)\n const view = views.defaults[property]\n const result = view(sym('https://pod.example/img.jpg'))\n expect(result).toBeInstanceOf(HTMLImageElement)\n expect(result).toHaveAttribute('src', 'https://pod.example/img.jpg')\n })\n\n it.each([\n 'http://xmlns.com/foaf/0.1/mbox'\n ])('renders %s as anchor', (property) => {\n const views = propertyViews(document)\n const view = views.defaults[property]\n const result = view(sym('mailto:alice@mail.example'))\n expect(result).toBeInstanceOf(HTMLAnchorElement)\n expect(result).toHaveAttribute('href', 'mailto:alice@mail.example')
|
|
1
|
+
{"version":3,"file":"propertyViews.test.js","names":["_util","require","_rdflib","_propertyViews","global","TextEncoder","TextDecoder","describe","it","each","property","views","propertyViews","document","view","defaults","result","sym","expect","toBeInstanceOf","HTMLImageElement","toHaveAttribute","HTMLAnchorElement","toHaveTextContent"],"sources":["../../src/outline/propertyViews.test.ts"],"sourcesContent":["/* eslint-env jest */\n\nimport { TextEncoder, TextDecoder } from 'util'\nglobal.TextEncoder = TextEncoder as any\nglobal.TextDecoder = TextDecoder as any\n\n\nimport { sym } from 'rdflib'\nimport { propertyViews } from './propertyViews'\n\ndescribe('property views', () => {\n it.each([\n 'http://xmlns.com/foaf/0.1/depiction',\n 'http://xmlns.com/foaf/0.1/img',\n 'http://xmlns.com/foaf/0.1/thumbnail',\n 'http://xmlns.com/foaf/0.1/logo',\n 'http://schema.org/image'\n ])('renders %s as image', (property) => {\n const views = propertyViews(document)\n const view = views.defaults[property]\n const result = view(sym('https://pod.example/img.jpg'))\n expect(result).toBeInstanceOf(HTMLImageElement)\n expect(result).toHaveAttribute('src', 'https://pod.example/img.jpg')\n })\n\n it.each([\n 'http://xmlns.com/foaf/0.1/mbox'\n ])('renders %s as anchor', (property) => {\n const views = propertyViews(document)\n const view = views.defaults[property]\n const result = view(sym('mailto:alice@mail.example'))\n expect(result).toBeInstanceOf(HTMLAnchorElement)\n expect(result).toHaveAttribute('href', 'mailto:alice@mail.example');\n expect(result).toHaveTextContent('alice@mail.example');\n })\n})\n"],"mappings":";;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAKA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AARA;;AAGAG,MAAM,CAACC,WAAW,GAAGA,iBAAkB;AACvCD,MAAM,CAACE,WAAW,GAAGA,iBAAkB;AAMvCC,QAAQ,CAAC,gBAAgB,EAAE,YAAM;EAC/BC,EAAE,CAACC,IAAI,CAAC,CACN,qCAAqC,EACrC,+BAA+B,EAC/B,qCAAqC,EACrC,gCAAgC,EAChC,yBAAyB,CAC1B,CAAC,CAAC,qBAAqB,EAAE,UAACC,QAAQ,EAAK;IACtC,IAAMC,KAAK,GAAG,IAAAC,4BAAa,EAACC,QAAQ,CAAC;IACrC,IAAMC,IAAI,GAAGH,KAAK,CAACI,QAAQ,CAACL,QAAQ,CAAC;IACrC,IAAMM,MAAM,GAAGF,IAAI,CAAC,IAAAG,WAAG,EAAC,6BAA6B,CAAC,CAAC;IACvDC,MAAM,CAACF,MAAM,CAAC,CAACG,cAAc,CAACC,gBAAgB,CAAC;IAC/CF,MAAM,CAACF,MAAM,CAAC,CAACK,eAAe,CAAC,KAAK,EAAE,6BAA6B,CAAC;EACtE,CAAC,CAAC;EAEFb,EAAE,CAACC,IAAI,CAAC,CACN,gCAAgC,CACjC,CAAC,CAAC,sBAAsB,EAAE,UAACC,QAAQ,EAAK;IACvC,IAAMC,KAAK,GAAG,IAAAC,4BAAa,EAACC,QAAQ,CAAC;IACrC,IAAMC,IAAI,GAAGH,KAAK,CAACI,QAAQ,CAACL,QAAQ,CAAC;IACrC,IAAMM,MAAM,GAAGF,IAAI,CAAC,IAAAG,WAAG,EAAC,2BAA2B,CAAC,CAAC;IACrDC,MAAM,CAACF,MAAM,CAAC,CAACG,cAAc,CAACG,iBAAiB,CAAC;IAChDJ,MAAM,CAACF,MAAM,CAAC,CAACK,eAAe,CAAC,MAAM,EAAE,2BAA2B,CAAC;IACnEH,MAAM,CAACF,MAAM,CAAC,CAACO,iBAAiB,CAAC,oBAAoB,CAAC;EACxD,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
package/lib/registerPanes.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.registerPanes = registerPanes;
|
|
7
7
|
var _profilePane = _interopRequireDefault(require("profile-pane"));
|
|
8
|
-
var _editProfile = _interopRequireDefault(require("./profile/editProfile.view"));
|
|
9
8
|
var _trustedApplications = _interopRequireDefault(require("./trustedApplications/trustedApplications.view"));
|
|
10
9
|
var _dashboardPane = _interopRequireDefault(require("./dashboard/dashboardPane"));
|
|
11
10
|
var _basicPreferences = _interopRequireDefault(require("./dashboard/basicPreferences"));
|
|
@@ -42,6 +41,8 @@ var _sharingPane = _interopRequireDefault(require("./sharing/sharingPane"));
|
|
|
42
41
|
var _internalPane = _interopRequireDefault(require("./internal/internalPane"));
|
|
43
42
|
var _homePane = _interopRequireDefault(require("./home/homePane"));
|
|
44
43
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
44
|
+
// import editProfileView from './profile/editProfile.view'
|
|
45
|
+
|
|
45
46
|
// import argumentPane from './argument/argumentPane.js'
|
|
46
47
|
|
|
47
48
|
// import publicationPane from './publication/publicationPane.js'
|
|
@@ -53,7 +54,11 @@ function registerPanes(register) {
|
|
|
53
54
|
// Developer designed:
|
|
54
55
|
|
|
55
56
|
register(_profilePane["default"]); // View someone's public profile - dominates all other panes.
|
|
56
|
-
|
|
57
|
+
var editProfileView = _profilePane["default"].editor;
|
|
58
|
+
if (!editProfileView) {
|
|
59
|
+
console.log("@@@ editProfileView", "profilePane is not providing an editor pane");
|
|
60
|
+
}
|
|
61
|
+
register(editProfileView); // Edit my profile.
|
|
57
62
|
|
|
58
63
|
register(_trustedApplications["default"]); // must be registered before basicPreferences
|
|
59
64
|
register(_dashboardPane["default"]);
|
package/lib/registerPanes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerPanes.js","names":["_profilePane","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"file":"registerPanes.js","names":["_profilePane","_interopRequireDefault","require","_trustedApplications","_dashboardPane","_basicPreferences","_issuePane","_contactsPane","_activitystreamsPane","_padPane","_pane","_period","_meetingPane","_tabbedPane","_chatPane","_schedulePane","_tripPane","_imagePane","_playlistPane","_videoPane","_audioPane","_dokieliPane","_folderPane","_classInstancePane","_slideshowPane","_socialPane","_humanReadablePane","_dataContentPane","_sourcePane","_n3Pane","_RDFXMLPane","_pane2","_tableViewPane","_defaultPane","_pane3","_sharingPane","_internalPane","_homePane","obj","__esModule","registerPanes","register","profilePane","editProfileView","editor","console","log","trustedApplications","dashboardPane","basicPreferences","issuePane","contactsPane","activityStreamsPane","padPane","transactionPane","financialPeriodPane","meetingPane","tabbedPane","longChatPane","shortChatPane","schedulePane","tripPane","imagePane","playListPane","videoPane","audioPane","dokieliPane","folderPane","classInstancePane","slideshowPane","socialPane","humanReadablePane","dataContentPane","sourcePane","n3Pane","RDFXMLPane","formPane","tableViewPane","defaultPane","uiPane","sharingPane","internalPane","homePane"],"sources":["../src/registerPanes.js"],"sourcesContent":["import profilePane from 'profile-pane'\n// import editProfileView from './profile/editProfile.view'\nimport trustedApplications from './trustedApplications/trustedApplications.view'\nimport dashboardPane from './dashboard/dashboardPane'\nimport basicPreferences from './dashboard/basicPreferences'\nimport issuePane from 'issue-pane'\nimport contactsPane from 'contacts-pane'\nimport activityStreamsPane from 'activitystreams-pane'\nimport padPane from './pad/padPane'\n// import argumentPane from './argument/argumentPane.js'\nimport transactionPane from './transaction/pane.js'\nimport financialPeriodPane from './transaction/period.js'\nimport meetingPane from 'meeting-pane'\nimport tabbedPane from './tabbed/tabbedPane'\nimport { longChatPane, shortChatPane } from 'chat-pane'\nimport { schedulePane } from './schedule/schedulePane.js'\n// import publicationPane from './publication/publicationPane.js'\nimport tripPane from './trip/tripPane.js'\nimport { imagePane } from './imagePane.js'\nimport playListPane from './playlist/playlistPane.js'\nimport videoPane from './video/videoPane.js'\nimport audioPane from './audio/audioPane.js'\nimport dokieliPane from './dokieli/dokieliPane.js'\nimport folderPane from 'folder-pane'\nimport { classInstancePane } from './classInstancePane.js'\nimport { slideshowPane } from './slideshow/slideshowPane.js'\nimport { socialPane } from './socialPane.js'\nimport humanReadablePane from './humanReadablePane.js'\n\nimport { dataContentPane } from './dataContentPane.js'\nimport sourcePane from 'source-pane'\nimport { n3Pane } from './n3Pane.js'\nimport { RDFXMLPane } from './RDFXMLPane.js'\nimport { formPane } from './form/pane.js'\nimport { tableViewPane } from './tableViewPane.js'\nimport { defaultPane } from './defaultPane.js'\nimport uiPane from './ui/pane.js'\n\nimport sharingPane from './sharing/sharingPane'\nimport internalPane from './internal/internalPane'\n\nimport homePane from './home/homePane'\n\nexport 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(profilePane) // View someone's public profile - dominates all other panes.\n const editProfileView = profilePane.editor ;\n if (!editProfileView) {\n console.log(\"@@@ editProfileView\", \"profilePane is not providing an editor pane\")\n }\n\n register(editProfileView) // Edit my profile. \n\n register(trustedApplications) // must be registered before basicPreferences\n register(dashboardPane)\n register(basicPreferences)\n register(issuePane)\n register(contactsPane)\n register(activityStreamsPane)\n\n register(padPane)\n // register(argumentPane) // A position in an argument tree\n\n register(transactionPane)\n register(financialPeriodPane)\n\n register(meetingPane)\n register(tabbedPane)\n\n register(longChatPane) // Long pane must have prio in case short pane tries to do a long pane\n register(shortChatPane) // was './chat/chatPane.js'\n\n // register(publicationPane) // Suppress for now\n\n register(schedulePane) // doodle poll\n\n register(tripPane)\n // register(require('./airPane.js'))\n\n // Content views\n\n register(imagePane) // Basic image view\n register(playListPane) // Basic playlist view\n\n register(videoPane) // Video clip player\n register(audioPane) // Audio clip player\n\n register(dokieliPane) // Should be above dataContentPane\n register(folderPane) // Should be above dataContentPane\n register(classInstancePane) // Should be above dataContentPane\n // register(require('./dynamic/dynamicPanes.js')) // warp etc warp broken 2017/8\n register(slideshowPane)\n\n register(socialPane)\n\n register(humanReadablePane) // 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(dataContentPane) // Preferred for a data file\n register(sourcePane) // edit source\n register(n3Pane)\n register(RDFXMLPane)\n\n // User configured - data driven\n register(formPane)\n\n // Generic:\n\n register(tableViewPane)\n\n // Fallback totally generic:\n register(defaultPane)\n\n register(uiPane)\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(sharingPane)\n\n // The internals pane is always (almost?) the last as it is the least user-friendly\n register(internalPane)\n\n register(homeP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,EAAC;;EAExB;;EAEAlB,QAAQ,CAACmB,0BAAY,CAAC,EAAG;;EAEzBnB,QAAQ,CAACoB,oBAAQ,CAAC;EAClB;;EAEA;;EAEApB,QAAQ,CAACqB,oBAAS,CAAC,EAAC;EACpBrB,QAAQ,CAACsB,wBAAY,CAAC,EAAC;;EAEvBtB,QAAQ,CAACuB,qBAAS,CAAC,EAAC;EACpBvB,QAAQ,CAACwB,qBAAS,CAAC,EAAC;;EAEpBxB,QAAQ,CAACyB,uBAAW,CAAC,EAAC;EACtBzB,QAAQ,CAAC0B,sBAAU,CAAC,EAAC;EACrB1B,QAAQ,CAAC2B,oCAAiB,CAAC,EAAC;EAC5B;EACA3B,QAAQ,CAAC4B,4BAAa,CAAC;EAEvB5B,QAAQ,CAAC6B,sBAAU,CAAC;EAEpB7B,QAAQ,CAAC8B,6BAAiB,CAAC,EAAC;EAC5B;;EAEA9B,QAAQ,CAAC+B,gCAAe,CAAC,EAAC;EAC1B/B,QAAQ,CAACgC,sBAAU,CAAC,EAAC;EACrBhC,QAAQ,CAACiC,cAAM,CAAC;EAChBjC,QAAQ,CAACkC,sBAAU,CAAC;;EAEpB;EACAlC,QAAQ,CAACmC,eAAQ,CAAC;;EAElB;;EAEAnC,QAAQ,CAACoC,4BAAa,CAAC;;EAEvB;EACApC,QAAQ,CAACqC,wBAAW,CAAC;EAErBrC,QAAQ,CAACsC,iBAAM,CAAC;;EAEhB;EACA;;EAEA;EACA;EACA;;EAEA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACAtC,QAAQ,CAACuC,uBAAW,CAAC;;EAErB;EACAvC,QAAQ,CAACwC,wBAAY,CAAC;EAEtBxC,QAAQ,CAACyC,oBAAQ,CAAC,EAAC;;EAEnB;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trustedApplications.test.d.ts","sourceRoot":"","sources":["../../src/trustedApplications/trustedApplications.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../typings/solid-namespace/index.d.ts" />
|
|
1
2
|
import { IndexedFormula, NamedNode, Literal } from 'rdflib';
|
|
2
3
|
import { Namespaces } from 'solid-namespace';
|
|
3
4
|
export declare function getStatementsToDelete(origin: NamedNode | Literal, person: NamedNode, kb: IndexedFormula, ns: Namespaces): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trustedApplications.utils.d.ts","sourceRoot":"","sources":["../../src/trustedApplications/trustedApplications.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,SAAS,EAAM,OAAO,EAAkB,MAAM,QAAQ,CAAA;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,SAAS,GAAG,OAAO,EAC3B,MAAM,EAAE,SAAS,EACjB,EAAE,EAAE,cAAc,EAClB,EAAE,EAAE,UAAU,GACb,GAAG,CAqBL;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EAAE,EACf,MAAM,EAAE,SAAS,EACjB,EAAE,EAAE,UAAU,GACb,GAAG,CASL;AAED,wBAAgB,oBAAoB,WAEnC"}
|
|
1
|
+
{"version":3,"file":"trustedApplications.utils.d.ts","sourceRoot":"","sources":["../../src/trustedApplications/trustedApplications.utils.ts"],"names":[],"mappings":";AAAA,OAAO,EAAa,cAAc,EAAE,SAAS,EAAM,OAAO,EAAkB,MAAM,QAAQ,CAAA;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,SAAS,GAAG,OAAO,EAC3B,MAAM,EAAE,SAAS,EACjB,EAAE,EAAE,cAAc,EAClB,EAAE,EAAE,UAAU,GACb,GAAG,CAqBL;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EAAE,EACf,MAAM,EAAE,SAAS,EACjB,EAAE,EAAE,UAAU,GACb,GAAG,CASL;AAED,wBAAgB,oBAAoB,WAEnC"}
|
package/lib/versionInfo.js
CHANGED
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = exports["default"] = {
|
|
8
|
-
buildTime: "2024-
|
|
9
|
-
commit: "
|
|
8
|
+
buildTime: "2024-10-27T02:27:56Z",
|
|
9
|
+
commit: "b1bb05b37ddd3a9d21671be1f0a03a19639694fa",
|
|
10
10
|
npmInfo: {
|
|
11
11
|
'solid-panes': '3.5.36',
|
|
12
12
|
npm: '8.19.4',
|
package/lib/versionInfo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionInfo.js","names":["buildTime","commit","npmInfo","npm","node","v8","uv","zlib","brotli","ares","modules","nghttp2","napi","llhttp","openssl","cldr","icu","tz","unicode","ngtcp2","nghttp3"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\nbuildTime: \"2024-
|
|
1
|
+
{"version":3,"file":"versionInfo.js","names":["buildTime","commit","npmInfo","npm","node","v8","uv","zlib","brotli","ares","modules","nghttp2","napi","llhttp","openssl","cldr","icu","tz","unicode","ngtcp2","nghttp3"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\nbuildTime: \"2024-10-27T02:27:56Z\",\ncommit: \"b1bb05b37ddd3a9d21671be1f0a03a19639694fa\",\nnpmInfo:\n{\n 'solid-panes': '3.5.36',\n npm: '8.19.4',\n node: '16.20.2',\n v8: '9.4.146.26-node.26',\n uv: '1.43.0',\n zlib: '1.2.11',\n brotli: '1.0.9',\n ares: '1.19.1',\n modules: '93',\n nghttp2: '1.47.0',\n napi: '8',\n llhttp: '6.0.11',\n openssl: '1.1.1v+quic',\n cldr: '41.0',\n icu: '71.1',\n tz: '2022f',\n unicode: '14.0',\n ngtcp2: '0.8.1',\n nghttp3: '0.7.0'\n}\n};\n"],"mappings":";;;;;;oCAAe;EACfA,SAAS,EAAE,sBAAsB;EACjCC,MAAM,EAAE,0CAA0C;EAClDC,OAAO,EACP;IACE,aAAa,EAAE,QAAQ;IACvBC,GAAG,EAAE,QAAQ;IACbC,IAAI,EAAE,SAAS;IACfC,EAAE,EAAE,oBAAoB;IACxBC,EAAE,EAAE,QAAQ;IACZC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE,OAAO;IACfC,IAAI,EAAE,QAAQ;IACdC,OAAO,EAAE,IAAI;IACbC,OAAO,EAAE,QAAQ;IACjBC,IAAI,EAAE,GAAG;IACTC,MAAM,EAAE,QAAQ;IAChBC,OAAO,EAAE,aAAa;IACtBC,IAAI,EAAE,MAAM;IACZC,GAAG,EAAE,MAAM;IACXC,EAAE,EAAE,OAAO;IACXC,OAAO,EAAE,MAAM;IACfC,MAAM,EAAE,OAAO;IACfC,OAAO,EAAE;EACX;AACA,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-panes",
|
|
3
|
-
"version": "3.5.36-
|
|
3
|
+
"version": "3.5.36-b1bb05b3",
|
|
4
4
|
"description": "Solid-compatible Panes: applets and views for the mashlib and databrowser",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"homepage": "https://github.com/solidos/solid-panes",
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@solid/better-simple-slideshow": "^0.1.0",
|
|
49
|
+
"@types/jest": "^29.5.12",
|
|
49
50
|
"activitystreams-pane": "^0.6.13",
|
|
50
51
|
"chat-pane": "^2.4.26",
|
|
51
52
|
"contacts-pane": "^2.6.12",
|
|
@@ -68,7 +69,6 @@
|
|
|
68
69
|
"@babel/preset-typescript": "^7.24.1",
|
|
69
70
|
"@testing-library/dom": "^9.3.4",
|
|
70
71
|
"@testing-library/jest-dom": "^6.4.2",
|
|
71
|
-
"@types/jest": "^29.5.12",
|
|
72
72
|
"@types/webpack-env": "^1.18.4",
|
|
73
73
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
74
74
|
"@typescript-eslint/parser": "^6.21.0",
|
package/src/outline/manager.js
CHANGED
|
@@ -7,8 +7,6 @@ import * as $rdf from 'rdflib'
|
|
|
7
7
|
import * as UI from 'solid-ui'
|
|
8
8
|
import { authn, authSession, store } from 'solid-logic'
|
|
9
9
|
import { propertyViews } from './propertyViews'
|
|
10
|
-
import { licenseOptions } from './licenseOptions'
|
|
11
|
-
|
|
12
10
|
import { outlineIcons } from './outlineIcons.js' // @@ chec
|
|
13
11
|
import { UserInput } from './userInput.js'
|
|
14
12
|
import * as queryByExample from './queryByExample.js'
|
|
@@ -179,13 +177,6 @@ export default function (context) {
|
|
|
179
177
|
td.setAttribute('notSelectable', 'false')
|
|
180
178
|
let theClass = 'obj'
|
|
181
179
|
|
|
182
|
-
// check the IPR on the data. Ok if there is any checked license which is one the document has.
|
|
183
|
-
if (statement && statement.why) {
|
|
184
|
-
if (licenseOptions && licenseOptions.checklicense && licenseOptions.checklicense()) {
|
|
185
|
-
theClass += ' licOkay' // flag as light green etc .licOkay {background-color: #dfd}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
180
|
// set about and put 'expand' icon
|
|
190
181
|
if (
|
|
191
182
|
obj.termType === 'NamedNode' ||
|
|
@@ -30,6 +30,7 @@ describe('property views', () => {
|
|
|
30
30
|
const view = views.defaults[property]
|
|
31
31
|
const result = view(sym('mailto:alice@mail.example'))
|
|
32
32
|
expect(result).toBeInstanceOf(HTMLAnchorElement)
|
|
33
|
-
expect(result).toHaveAttribute('href', 'mailto:alice@mail.example')
|
|
33
|
+
expect(result).toHaveAttribute('href', 'mailto:alice@mail.example');
|
|
34
|
+
expect(result).toHaveTextContent('alice@mail.example');
|
|
34
35
|
})
|
|
35
36
|
})
|
package/src/registerPanes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import profilePane from 'profile-pane'
|
|
2
|
-
import editProfileView from './profile/editProfile.view'
|
|
2
|
+
// import editProfileView from './profile/editProfile.view'
|
|
3
3
|
import trustedApplications from './trustedApplications/trustedApplications.view'
|
|
4
4
|
import dashboardPane from './dashboard/dashboardPane'
|
|
5
5
|
import basicPreferences from './dashboard/basicPreferences'
|
|
@@ -48,7 +48,12 @@ export function registerPanes (register) {
|
|
|
48
48
|
// Developer designed:
|
|
49
49
|
|
|
50
50
|
register(profilePane) // View someone's public profile - dominates all other panes.
|
|
51
|
-
|
|
51
|
+
const editProfileView = profilePane.editor ;
|
|
52
|
+
if (!editProfileView) {
|
|
53
|
+
console.log("@@@ editProfileView", "profilePane is not providing an editor pane")
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
register(editProfileView) // Edit my profile.
|
|
52
57
|
|
|
53
58
|
register(trustedApplications) // must be registered before basicPreferences
|
|
54
59
|
register(dashboardPane)
|
package/src/versionInfo.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
+
// See https://stackoverflow.com/questions/54139158/cannot-find-name-describe-do-you-need-to-install-type-definitions-for-a-test
|
|
3
|
+
|
|
2
4
|
"compilerOptions": {
|
|
3
5
|
/* Basic Options */
|
|
4
6
|
"target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
|
|
@@ -50,9 +52,13 @@
|
|
|
50
52
|
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
51
53
|
"typeRoots": [
|
|
52
54
|
"node_modules/@types",
|
|
55
|
+
"node_modules/@testing-library",
|
|
53
56
|
"./typings"
|
|
54
57
|
] /* List of folders to include type definitions from. */,
|
|
55
58
|
// "types": [], /* Type declaration files to be included in compilation. */
|
|
59
|
+
|
|
60
|
+
"types": ["node", "jsdom", "jest", "jest-dom"], /* https://medium.com/heybooster/debugging-typescript-jest-dom-matchers-in-vue-js-6962dab4d4cc */
|
|
61
|
+
|
|
56
62
|
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
57
63
|
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
58
64
|
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
@@ -68,5 +74,5 @@
|
|
|
68
74
|
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
69
75
|
},
|
|
70
76
|
"include": ["src/**/*"],
|
|
71
|
-
"exclude": ["node_modules", "**/*.test.ts"
|
|
77
|
+
"exclude": ["node_modules"] // was , "**/*.test.ts"
|
|
72
78
|
}
|
package/.babelrc
DELETED
package/.eslintignore
DELETED
package/.eslintrc
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"env": {
|
|
4
|
-
"browser": true,
|
|
5
|
-
"es6": true,
|
|
6
|
-
"node": true
|
|
7
|
-
},
|
|
8
|
-
"globals": {
|
|
9
|
-
"Atomics": "readonly",
|
|
10
|
-
"SharedArrayBuffer": "readonly"
|
|
11
|
-
},
|
|
12
|
-
"parser": "@typescript-eslint/parser",
|
|
13
|
-
"plugins": [
|
|
14
|
-
"@typescript-eslint"
|
|
15
|
-
],
|
|
16
|
-
"rules": {
|
|
17
|
-
"no-unused-vars": ["warn", {
|
|
18
|
-
"argsIgnorePattern": "^_",
|
|
19
|
-
"varsIgnorePattern": "^_"
|
|
20
|
-
}],
|
|
21
|
-
"@typescript-eslint/no-unused-vars": ["warn", {
|
|
22
|
-
"argsIgnorePattern": "^_",
|
|
23
|
-
"varsIgnorePattern": "^_"
|
|
24
|
-
}]
|
|
25
|
-
}
|
|
26
|
-
}
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
-
|
|
4
|
-
name: CI
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- "**"
|
|
10
|
-
pull_request:
|
|
11
|
-
branches:
|
|
12
|
-
- "**"
|
|
13
|
-
workflow_dispatch:
|
|
14
|
-
|
|
15
|
-
jobs:
|
|
16
|
-
build:
|
|
17
|
-
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
|
|
20
|
-
strategy:
|
|
21
|
-
matrix:
|
|
22
|
-
node-version:
|
|
23
|
-
- 16.x
|
|
24
|
-
- 18.x
|
|
25
|
-
|
|
26
|
-
steps:
|
|
27
|
-
- uses: actions/checkout@v2
|
|
28
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
29
|
-
uses: actions/setup-node@v1
|
|
30
|
-
with:
|
|
31
|
-
node-version: ${{ matrix.node-version }}
|
|
32
|
-
- run: npm ci
|
|
33
|
-
- run: npm run lint --if-present
|
|
34
|
-
- run: npm test
|
|
35
|
-
- run: npm run build --if-present
|
|
36
|
-
- name: Save build
|
|
37
|
-
if: matrix.node-version == '16.x'
|
|
38
|
-
uses: actions/upload-artifact@v2
|
|
39
|
-
with:
|
|
40
|
-
name: build
|
|
41
|
-
path: |
|
|
42
|
-
.
|
|
43
|
-
!node_modules
|
|
44
|
-
retention-days: 1
|
|
45
|
-
|
|
46
|
-
npm-publish-build:
|
|
47
|
-
needs: build
|
|
48
|
-
runs-on: ubuntu-latest
|
|
49
|
-
steps:
|
|
50
|
-
- uses: actions/download-artifact@v2
|
|
51
|
-
with:
|
|
52
|
-
name: build
|
|
53
|
-
- uses: actions/setup-node@v1
|
|
54
|
-
with:
|
|
55
|
-
node-version: 16.x
|
|
56
|
-
- uses: rlespinasse/github-slug-action@v3.x
|
|
57
|
-
- name: Append commit hash to package version
|
|
58
|
-
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
|
|
59
|
-
- name: Disable pre- and post-publish actions
|
|
60
|
-
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
|
|
61
|
-
- uses: JS-DevTools/npm-publish@v1
|
|
62
|
-
with:
|
|
63
|
-
token: ${{ secrets.NPM_TOKEN }}
|
|
64
|
-
tag: ${{ env.GITHUB_REF_SLUG }}
|
|
65
|
-
|
|
66
|
-
npm-publish-latest:
|
|
67
|
-
needs: build
|
|
68
|
-
runs-on: ubuntu-latest
|
|
69
|
-
if: github.ref == 'refs/heads/main'
|
|
70
|
-
steps:
|
|
71
|
-
- uses: actions/download-artifact@v2
|
|
72
|
-
with:
|
|
73
|
-
name: build
|
|
74
|
-
- uses: actions/setup-node@v1
|
|
75
|
-
with:
|
|
76
|
-
node-version: 16.x
|
|
77
|
-
- name: Disable pre- and post-publish actions
|
|
78
|
-
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
|
|
79
|
-
- uses: JS-DevTools/npm-publish@v1
|
|
80
|
-
with:
|
|
81
|
-
token: ${{ secrets.NPM_TOKEN }}
|
|
82
|
-
tag: latest
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
v18.19.0
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.licenseOptions = licenseOptions;
|
|
7
|
-
exports.licenseURI = void 0;
|
|
8
|
-
var _solidLogic = require("solid-logic");
|
|
9
|
-
// This was a student project to
|
|
10
|
-
// allow the user to chose favoite CC license terms and have them highlighted
|
|
11
|
-
|
|
12
|
-
// tabulator.options becaome UI.licenseOptions
|
|
13
|
-
// Possible future alternative directoons: Store license preferences in a solid preferences file
|
|
14
|
-
|
|
15
|
-
var licenseURI = exports.licenseURI = ['http://creativecommons.org/licenses/by-nc-nd/3.0/', 'http://creativecommons.org/licenses/by-nc-sa/3.0/', 'http://creativecommons.org/licenses/by-nc/3.0/', 'http://creativecommons.org/licenses/by-nd/3.0/', 'http://creativecommons.org/licenses/by-sa/3.0/', 'http://creativecommons.org/licenses/by/3.0/'];
|
|
16
|
-
var names = ['BY-NC-ND', 'BY-NC-SA', 'BY-NC', 'BY-ND', 'BY-SA', 'BY'];
|
|
17
|
-
function licenseOptions() {
|
|
18
|
-
this.options = {};
|
|
19
|
-
this.references = [];
|
|
20
|
-
this.checkedLicenses = [];
|
|
21
|
-
this.openCheckBoxWindow = function () {
|
|
22
|
-
this["this"].display = window.open(' ', 'NewWin', 'menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=200,width=200');
|
|
23
|
-
};
|
|
24
|
-
var message = "<font face='arial' size='2'><form name ='checkboxes'>";
|
|
25
|
-
var lics = this.checkedLicenses;
|
|
26
|
-
for (var kk = 0; kk < lics.length; kk++) {
|
|
27
|
-
message += "<input type='checkbox' name = 'n" + kk + "' onClick = 'tabulator.options.submit()'" + (
|
|
28
|
-
// @@ FIXME
|
|
29
|
-
lics[kk] ? 'CHECKED' : '') + ' />CC: ' + names[kk] + '<br />';
|
|
30
|
-
}
|
|
31
|
-
message += "<br /> <a onclick='tabulator.options.selectAll()'>[Select All] </a>"; // @@ FIXME
|
|
32
|
-
message += "<a onclick='tabulator.options.deselectAll()'> [Deselect All]</a>"; // @@ FIXME
|
|
33
|
-
message += '</form></font>';
|
|
34
|
-
this.display.document.write(message);
|
|
35
|
-
this.display.document.close();
|
|
36
|
-
var i;
|
|
37
|
-
for (i = 0; i < 6; i++) {
|
|
38
|
-
this.references[i] = this["this"].display.document.checkboxes.elements[i];
|
|
39
|
-
}
|
|
40
|
-
this.selectAll = function () {
|
|
41
|
-
var i;
|
|
42
|
-
for (i = 0; i < 6; i++) {
|
|
43
|
-
this.display.document.checkboxes.elements[i].checked = true;
|
|
44
|
-
this.references[i].checked = true;
|
|
45
|
-
this.checkedLicenses[i] = true;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
this.deselectAll = function () {
|
|
49
|
-
var i;
|
|
50
|
-
for (i = 0; i < 6; i++) {
|
|
51
|
-
this.display.document.checkboxes.elements[i].checked = false;
|
|
52
|
-
this.references[i].checked = false;
|
|
53
|
-
this.checkedLicenses[i] = false;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
this.submit = function () {
|
|
57
|
-
// alert('this.submit: checked=' + this.references[0].checked)
|
|
58
|
-
for (var _i = 0; _i < 6; _i++) {
|
|
59
|
-
this.checkedLicenses[_i] = !!this.references[_i].checked;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
this.checkLicense = function checkLicense(statement) {
|
|
63
|
-
var licenses = _solidLogic.store.each(statement.why, _solidLogic.store.sym('http://creativecommons.org/ns#license'), null, statement.why);
|
|
64
|
-
// UI.log.info('licenses:' + statement.why + ': ' + licenses)
|
|
65
|
-
for (var _i2 = 0; _i2 < licenses.length; _i2++) {
|
|
66
|
-
for (var j = 0; j < this.checkedLicenses.length; j++) {
|
|
67
|
-
if (this.checkedLicenses[j] && licenses[_i2].uri === licenseURI[j]) {
|
|
68
|
-
return true;
|
|
69
|
-
// theClass += ' licOkay' // icon_expand
|
|
70
|
-
// break
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return false;
|
|
75
|
-
};
|
|
76
|
-
return this;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// ends
|
|
80
|
-
//# sourceMappingURL=licenseOptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"licenseOptions.js","names":["_solidLogic","require","licenseURI","exports","names","licenseOptions","options","references","checkedLicenses","openCheckBoxWindow","display","window","open","message","lics","kk","length","document","write","close","i","checkboxes","elements","selectAll","checked","deselectAll","submit","checkLicense","statement","licenses","store","each","why","sym","j","uri"],"sources":["../../src/outline/licenseOptions.js"],"sourcesContent":["// This was a student project to\n// allow the user to chose favoite CC license terms and have them highlighted\n\n// tabulator.options becaome UI.licenseOptions\n// Possible future alternative directoons: Store license preferences in a solid preferences file\nimport { store } from 'solid-logic'\n\nexport const licenseURI = [\n 'http://creativecommons.org/licenses/by-nc-nd/3.0/',\n 'http://creativecommons.org/licenses/by-nc-sa/3.0/',\n 'http://creativecommons.org/licenses/by-nc/3.0/',\n 'http://creativecommons.org/licenses/by-nd/3.0/',\n 'http://creativecommons.org/licenses/by-sa/3.0/',\n 'http://creativecommons.org/licenses/by/3.0/'\n]\n\nconst names = ['BY-NC-ND', 'BY-NC-SA', 'BY-NC', 'BY-ND', 'BY-SA', 'BY']\n\nexport function licenseOptions () {\n this.options = {}\n this.references = []\n this.checkedLicenses = []\n\n this.openCheckBoxWindow = function () {\n this.this.display = window.open(\n ' ',\n 'NewWin',\n 'menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=200,width=200'\n )\n }\n let message = \"<font face='arial' size='2'><form name ='checkboxes'>\"\n const lics = this.checkedLicenses\n for (let kk = 0; kk < lics.length; kk++) {\n message +=\n \"<input type='checkbox' name = 'n\" +\n kk +\n \"' onClick = 'tabulator.options.submit()'\" + // @@ FIXME\n (lics[kk] ? 'CHECKED' : '') +\n ' />CC: ' +\n names[kk] +\n '<br />'\n }\n\n message +=\n \"<br /> <a onclick='tabulator.options.selectAll()'>[Select All] </a>\" // @@ FIXME\n message += \"<a onclick='tabulator.options.deselectAll()'> [Deselect All]</a>\" // @@ FIXME\n message += '</form></font>'\n\n this.display.document.write(message)\n\n this.display.document.close()\n\n let i\n for (i = 0; i < 6; i++) {\n this.references[i] = this.this.display.document.checkboxes.elements[i]\n }\n\n this.selectAll = function () {\n let i\n for (i = 0; i < 6; i++) {\n this.display.document.checkboxes.elements[i].checked = true\n this.references[i].checked = true\n this.checkedLicenses[i] = true\n }\n }\n\n this.deselectAll = function () {\n let i\n for (i = 0; i < 6; i++) {\n this.display.document.checkboxes.elements[i].checked = false\n this.references[i].checked = false\n this.checkedLicenses[i] = false\n }\n }\n\n this.submit = function () {\n // alert('this.submit: checked=' + this.references[0].checked)\n for (let i = 0; i < 6; i++) {\n this.checkedLicenses[i] = !!this.references[i].checked\n }\n }\n\n this.checkLicense = function checkLicense (statement) {\n const licenses = store.each(\n statement.why,\n store.sym('http://creativecommons.org/ns#license'),\n null,\n statement.why\n )\n // UI.log.info('licenses:' + statement.why + ': ' + licenses)\n for (let i = 0; i < licenses.length; i++) {\n for (let j = 0; j < this.checkedLicenses.length; j++) {\n if (this.checkedLicenses[j] && licenses[i].uri === licenseURI[j]) {\n return true\n // theClass += ' licOkay' // icon_expand\n // break\n }\n }\n }\n return false\n }\n return this\n}\n\n// ends\n"],"mappings":";;;;;;;AAKA,IAAAA,WAAA,GAAAC,OAAA;AALA;AACA;;AAEA;AACA;;AAGO,IAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,CACxB,mDAAmD,EACnD,mDAAmD,EACnD,gDAAgD,EAChD,gDAAgD,EAChD,gDAAgD,EAChD,6CAA6C,CAC9C;AAED,IAAME,KAAK,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC;AAEhE,SAASC,cAAcA,CAAA,EAAI;EAChC,IAAI,CAACC,OAAO,GAAG,CAAC,CAAC;EACjB,IAAI,CAACC,UAAU,GAAG,EAAE;EACpB,IAAI,CAACC,eAAe,GAAG,EAAE;EAEzB,IAAI,CAACC,kBAAkB,GAAG,YAAY;IACpC,IAAI,QAAK,CAACC,OAAO,GAAGC,MAAM,CAACC,IAAI,CAC7B,GAAG,EACH,QAAQ,EACR,+FACF,CAAC;EACH,CAA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F;IACA,OAAO,KAAK;EACd,CAAC;EACD,OAAO,IAAI;AACb;;AAEA","ignoreList":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Profile Editing App Pane
|
|
3
|
-
*
|
|
4
|
-
* Unlike view panes, this is available any place whatever the real subject,
|
|
5
|
-
* and allows the user to edit their own profile.
|
|
6
|
-
*
|
|
7
|
-
* Usage: paneRegistry.register('profile/profilePane')
|
|
8
|
-
* or standalone script adding onto existing mashlib.
|
|
9
|
-
*/
|
|
10
|
-
import { PaneDefinition } from 'pane-registry';
|
|
11
|
-
declare const editProfileView: PaneDefinition;
|
|
12
|
-
export default editProfileView;
|
|
13
|
-
//# sourceMappingURL=editProfile.view.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,cA+ItB,CAAA;AAED,eAAe,eAAe,CAAA"}
|